@quicktvui/quicktvui3 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/src/tab/index.vue.d.ts +9 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Native as e}from"@extscreen/es3-vue";import{defineComponent as t,ref as o,resolveComponent as n,openBlock as a,createElementBlock as s,normalizeStyle as r,normalizeClass as l,createCommentVNode as i,withDirectives as c,vShow as u,createBlock as d,toDisplayString as p,renderSlot as f,watch as g,onMounted as h,onBeforeUnmount as m,withCtx as y,Fragment as v,createVNode as T,createElementVNode as b,pushScopeId as _,popScopeId as S,reactive as I,h as k}from"vue";import{useESToast as x,useES as F,useESLog as P,ESLogLevel as N}from"@extscreen/es3-core";var D=t({name:"qt-button",props:{type:{type:String,default:"default"},itemType:{type:Number,default:2e4},focusBorder:{type:Boolean,default:!1},focusScale:{type:Number,default:1.08},focusable:{type:Boolean,default:!0},enableFlexStyle:{type:Boolean,default:!1},icon:{type:String,default:null},focusIcon:{type:String,default:null},text:{type:String,default:""},gradientFocusBackground:{type:Object,default:()=>{}},gradientSelectedBackground:{type:Object,default:()=>null},gradientBackground:{type:Object,default:()=>null},size:String,disabled:Boolean,circle:Boolean,round:Boolean,square:Boolean,buttonStyle:Object,textStyle:Object,iconStyle:Object,focusIconStyle:Object,iconParentStyle:Object},setup(t,n){const a=o(),s=o(!1);return{focused:s,requestFocus:function(){e.callUIFunction(a.value,"requestFocus",[])},requestFocusDirectly:function(){e.callUIFunction(a.value,"requestFocusDirectly",[])},onFocus:function(e){s.value=e.isFocused,n.emit("focus",e.isFocused)},onClick:function(e){n.emit("click")}}}});const E=["focusable","enableFocusBorder","focusScale"],R=["gradientBackground"],C=["gradientBackground"],L=["gradientBackground"],w=["src"],O=["src"];D.render=function(e,t,o,g,h,m){const y=n("text-view");return a(),s("div",{ref:"buttonRef",clipChildren:!1,focusable:e.focusable,enableFocusBorder:e.focusBorder,focusScale:e.focusScale,onClick:t[0]||(t[0]=(...t)=>e.onClick&&e.onClick(...t)),name:"textButton",eventClick:"",eventFocus:"",onFocus:t[1]||(t[1]=(...t)=>e.onFocus&&e.onFocus(...t)),style:r(e.buttonStyle),class:l([e.type?"quick-button--"+e.type:"",e.size?"quick-button--"+e.size:"",{"is-disabled-button":e.disabled,"is-circle":e.circle,"is-round":e.round,"is-square":e.square}])},[i(" gradient "),e.gradientFocusBackground?(a(),s("div",{key:0,class:"button-gradient-background-css",gradientBackground:e.gradientFocusBackground,focusable:!1,showOnState:"focused"},null,8,R)):i("v-if",!0),e.gradientSelectedBackground?(a(),s("div",{key:1,class:"button-gradient-background-css",gradientBackground:e.gradientSelectedBackground,focusable:!1,showOnState:"selected"},null,8,C)):i("v-if",!0),e.gradientBackground?(a(),s("div",{key:2,class:"button-gradient-background-css",gradientBackground:e.gradientBackground,focusable:!1,showOnState:"normal"},null,8,L)):i("v-if",!0),i(" -----------------------------icon--------------------------------- "),!e.icon&&!e.focusIcon||e.$slots.default?i("v-if",!0):(a(),s("div",{key:3,duplicateParentState:!0,style:r(e.iconParentStyle),flexStyle:"${iconParentStyle}",class:l(["quick-button-icon-parent",e.size?"quick-button-icon--parent"+e.size:""])},[e.icon&&!e.$slots.default?c((a(),s("img",{key:0,style:r(e.iconStyle),flexStyle:"${iconStyle}",duplicateParentState:!0,class:l(["quick-button-icon",e.size?"quick-button-icon--"+e.size:"",{"is-square-icon":e.square}]),focusable:!1,src:e.enableFlexStyle?"${"+e.icon+"}":e.icon,showOnState:"normal"},null,14,w)),[[u,!e.focused]]):i("v-if",!0),e.focusIcon&&!e.$slots.default?c((a(),s("img",{key:1,style:r(e.focusIconStyle?e.focusIconStyle:e.iconStyle),flexStyle:"${iconStyle}",class:l(["quick-button-icon",e.size?"quick-button-icon--"+e.size:"",{"is-square-icon":e.square}]),focusable:!1,duplicateParentState:!0,src:e.enableFlexStyle?"${"+e.focusIcon+"}":e.focusIcon,showOnState:"focused"},null,14,O)),[[u,e.focused]]):i("v-if",!0)],6)),i(" ------------------------------------------------------------------- "),i(" text "),e.enableFlexStyle?(a(),d(y,{key:4,style:r(e.textStyle),duplicateParentState:"",class:l([e.type?"quick-button-text--"+e.type:"",{"is-disabled-text":e.disabled,"is-square-text":e.square}]),focusable:!1,text:"${"+e.text+"}",autoWidth:"",autoHeight:""},null,8,["style","class","text"])):e.text&&!e.$slots.default?(a(),s("span",{key:5,style:r(e.textStyle),duplicateParentState:"",class:l([e.type?"quick-button-text--"+e.type:"",{"is-disabled-text":e.disabled,"is-square-text":e.square}]),focusable:!1},p(e.text),7)):i("v-if",!0),f(e.$slots,"default")],46,E)},D.__scopeId="data-v-46a594e4",D.__file="src/button/index.vue";var A=t({name:"qt-grid-view",props:{loadMore:{type:Function,default:function(){return[1,1]}},openPage:{type:Boolean,default:!1},spanCount:{type:Number,default:0},pageSize:{type:Number},preloadNo:{type:Number,default:0},defaultFocus:{type:Number,default:-1},areaWidth:{type:Number,default:1200},blockFocusDirections:{type:Array,default:()=>[]}},setup(e,t){x();const n=F(),a=o(),s={apkVersion:String(n.getESSDKVersionCode()).slice(0,3),recordTarget:[],changeTarget:[],listResult:[],keyArr:[],type:"",pageNo:-1,isStopPage:!1,setListDataTimer:-1,stopPageTimer:-1,defaultFocusTimer:-1,pushDataTimer:-1};g((()=>e.openPage),((t,o)=>{1==t&&t&&(s.pageNo=1,s.isStopPage=!1,e.loadMore(s.pageNo))})),h((()=>{}));const r=t=>{0==s.recordTarget.length&&(s.recordTarget=i(t),s.changeTarget=t,"2.1"==s.apkVersion?(l(),e.openPage&&e.pageSize&&s.listResult.length>=e.pageSize/e.spanCount?a.value.setListData(s.listResult.concat([{type:"1002",decoration:{top:15,left:30}}])):a.value.setListData(s.listResult)):e.openPage&&e.pageSize&&s.recordTarget.length>=e.pageSize?a.value.setListData(s.recordTarget.concat([{type:"1002",decoration:{top:15,left:30}}])):a.value.setListData(s.recordTarget),e.defaultFocus>-1&&(s.defaultFocusTimer&&clearTimeout(s.defaultFocusTimer),s.defaultFocusTimer=setTimeout((()=>{a.value.scrollToPosition(e.defaultFocus),a.value.setItemFocused(e.defaultFocus)}),800)));let o={get(t,o,n){if("__ob__"!=o&&"symbol"!=typeof o&&"map"!=o&&"length"!=o&&"constructor"!=o&&"_isVue"!=o&&"valueOf"!=o&&"toString"!=o&&"observeArray"!=o&&"dep"!=o&&"notify"!=o&&"subs"!=o&&"slice"!=o)if(s.keyArr.push(o),-1!=s.keyArr.indexOf("push"))s.type="push";else{if(-1!=s.keyArr.indexOf("splice"))return s.type="splice",function(...e){if(t.splice(...e),"2.1"==s.apkVersion)if(1==e.length||2==e.length)s.recordTarget.splice(...e),l(),a.value.setListData(s.listResult);else if(t.splice(e[0],e[1],...e[2]),s.recordTarget.splice(e[0],e[1],...e[2]),l(),0==e[1])a.value.setListData(s.listResult);else{let t=-1,o=0,n=0;for(let a=0;a<s.listResult.length;a++){const r=s.listResult[a];if("1003"==r.type)t++,e[0]==t&&(o=a),e[0]+e[1]-1==t&&(n=a);else for(let s=0;s<r.list.length;s++)r.list[s],t++,e[0]==t&&(o=a),e[0]+e[1]-1==t&&(n=a)}a.value.updateItemRange(o,n-o+1,s.listResult.slice(o,n+1))}else 1==e.length?(a.value.deleteItemRange(Number(e[0]),s.recordTarget.length-e[0]),s.recordTarget.splice(...e)):2==e.length?(a.value.deleteItemRange(Number(e[0]),e[1]),s.recordTarget.splice(...e)):3==e.length&&(t.splice(e[0],e[1],...e[2]),s.recordTarget.splice(e[0],e[1],...e[2]),0==e[1]?Number(s.apkVersion)>2.2&&a.value.insertItemRange(e[0],e[2]):a.value.updateItemRange(e[0],e[1],e[2]));return s.keyArr=[],Reflect.get(t,o,n)};if(-1!=s.keyArr.indexOf("pop"))return s.type="pop",function(){return t.pop(),"2.1"==s.apkVersion?(s.listResult[s.listResult.length-1].list.length<1&&s.listResult.pop(),s.listResult[s.listResult.length-1].list.pop(),a.value.updateItem(Number(s.listResult.length-1),s.listResult[s.listResult.length-1])):a.value.deleteItemRange(Number(s.recordTarget.length-1),1),s.recordTarget.pop(),s.keyArr=[],Reflect.get(t,o,n)};if(-1!=s.keyArr.indexOf("forEach"))return s.type="forEach",function(r){return t.forEach((e=>{r(e)})),s.recordTarget=[],s.recordTarget=i(t),"2.1"==s.apkVersion?(l(),e.openPage&&e.pageSize&&s.listResult.length>=e.pageSize&&!s.isStopPage?a.value.setListData(s.listResult.concat([{type:"1002",decoration:{top:15,left:30}}])):a.value.setListData(s.listResult)):e.openPage&&e.pageSize&&s.recordTarget.length>=e.pageSize&&!s.isStopPage?a.value.setListData(s.recordTarget.concat([{type:"1002",decoration:{top:15,left:30}}])):a.value.setListData(s.recordTarget),s.keyArr=[],Reflect.get(t,o,n)};if(-1!=s.keyArr.indexOf("concat"))return s.type="concat",function(r){if("[object Array]"===Object.prototype.toString.call(r))if(t.concat(r),s.recordTarget.concat(r),"2.1"==s.apkVersion){s.pushDataTimer&&clearTimeout(s.pushDataTimer);let t=s.listResult.length,o=s.listResult.slice(s.listResult.length-1)[0];l();let n=s.listResult.slice(t);e.openPage&&!s.isStopPage?e.pageSize||2!=s.pageNo?0==n.length||"1003"!=o.type&&o.list.length<e.spanCount?(n=s.listResult.slice(t-1),s.pushDataTimer=setTimeout((()=>{a.value.addListDataWithParams(n.concat([{type:"1002",decoration:{top:15,left:30}}]),2)}),300)):s.pushDataTimer=setTimeout((()=>{a.value.addListDataWithParams(n.concat([{type:"1002",decoration:{top:15,left:30}}]),1)}),300):s.pushDataTimer=setTimeout((()=>{a.value.addListData(n.concat([{type:"1002",decoration:{top:15,left:30}}]))}),300):a.value.setListData(s.listResult)}else e.openPage&&!s.isStopPage?e.pageSize||2!=s.pageNo?s.pushDataTimer=setTimeout((()=>{a.value.addListDataWithParams(r.concat([{type:"1002",decoration:{top:15,left:30}}]),1)}),300):s.pushDataTimer=setTimeout((()=>{a.value.addListData(r.concat([{type:"1002",decoration:{top:15,left:30}}]))}),300):s.pushDataTimer=setTimeout((()=>{a.value.addListData(r)}),300);else console.log("concat:参数类型必须为数组");return s.keyArr=[],Reflect.get(t,o,n)};if(-1!=s.keyArr.indexOf("deleteItem"))return function(...e){let r=!1;for(let o=0;o<s.recordTarget.length;o++){const n=s.recordTarget[o];0!=n.id&&!n.id||n.id!=e[0]||(r=!0,t.splice(Number(o),e[1]),s.recordTarget.splice(Number(o),e[1]),"2.1"==s.apkVersion?(l(),a.value.setListData(s.listResult)):a.value.deleteItemRange(Number(o),e[1]))}return r||console.log("deleteItem:没有找到相对应id"),s.keyArr=[],Reflect.get(t,o,n)};if(-1!=s.keyArr.indexOf("updateItemProps"))return s.type="updateItemProps",function(...e){let r=e[2];if(c(r))if(Object.keys(r).forEach((o=>{t[e[0]][`${o}`]=r[`${o}`],s.recordTarget[e[0]][`${o}`]=r[`${o}`]})),"2.1"==s.apkVersion){l();let t=-1,o=0,n=0;for(let a=0;a<s.listResult.length;a++){const r=s.listResult[a];if("1003"==r.type)t++,e[0]==t&&(o=a,n=0);else for(let s=0;s<r.list.length;s++)r.list[s],t++,e[0]==t&&(o=a,n=s)}a.value.dispatchItemFunction(o,"tv_list_inner","updateItemProps",[n,e[1],e[2]])}else a.value.updateItemProps(e[0],e[1],e[2]);return s.keyArr=[],Reflect.get(t,o,n)};s.type=""}const u=Reflect.get(t,o,n);return c(u)&&"__ob__"!=o&&"dep"!=o&&"subs"!=o?r(u):(-1==s.keyArr.indexOf("push")&&(s.keyArr=[]),u)},set(t,o,n,r){const i=t[o],u=Reflect.set(t,o,n,r);if((!c(i)&&i!==n||c(i))&&"push"!=s.type)if(s.keyArr.push(o),s.recordTarget[s.keyArr[0]]=s.changeTarget[s.keyArr[0]],"2.1"==s.apkVersion){let e=s.keyArr[0],t=-1;for(let o=0;o<s.listResult.length;o++){const n=s.listResult[o];if("1003"==n.type)t++,t==e&&(s.listResult[o]=s.recordTarget[s.keyArr[0]],a.value.updateItem(Number(o),s.listResult[o]));else for(let r=0;r<n.list.length;r++)if(n.list[r],t++,t==e){s.listResult[o].list[r]=s.recordTarget[s.keyArr[0]];let e=s.listResult[o].list[r];e.decoration&&(e.decoration.top&&(e.decoration.top=0),e.decoration.bottom&&(e.decoration.bottom=0)),a.value.updateItem(Number(o),s.listResult[o])}}}else a.value.updateItem(Number(s.keyArr[0]),s.changeTarget[s.keyArr[0]]);if(o&&"push"==s.type&&i!==n)s.keyArr.push(o),s.recordTarget.push(n);else{if("push"==s.type&&s.keyArr.length>1)if("2.1"==s.apkVersion){s.pushDataTimer&&clearTimeout(s.pushDataTimer);let t=s.listResult.length,o=s.listResult.slice(s.listResult.length-1)[0];l();let n=s.listResult.slice(t);e.openPage&&!s.isStopPage?e.pageSize||2!=s.pageNo?0==n.length||"1003"!=o.type&&o.list.length<e.spanCount?(n=s.listResult.slice(t-1),s.pushDataTimer=setTimeout((()=>{a.value.addListDataWithParams(n.concat([{type:"1002",decoration:{top:15,left:30}}]),2)}),300)):s.pushDataTimer=setTimeout((()=>{a.value.addListDataWithParams(n.concat([{type:"1002",decoration:{top:15,left:30}}]),1)}),300):s.pushDataTimer=setTimeout((()=>{a.value.addListData(n.concat([{type:"1002",decoration:{top:15,left:30}}]))}),300):a.value.setListData(s.listResult)}else{let t=s.recordTarget.slice(s.keyArr[1]);s.pushDataTimer&&clearTimeout(s.pushDataTimer),e.openPage&&!s.isStopPage?e.pageSize||2!=s.pageNo?s.pushDataTimer=setTimeout((()=>{a.value.addListDataWithParams(t.concat([{type:"1002",decoration:{top:15,left:30}}]),1)}),300):s.pushDataTimer=setTimeout((()=>{a.value.addListData(t.concat([{type:"1002",decoration:{top:15,left:30}}]))}),300):s.pushDataTimer=setTimeout((()=>{a.value.addListData(t)}),300)}s.keyArr=[]}return u}};return new Proxy(t,o)},l=()=>{let t=i(s.recordTarget);s.listResult=[];let o=0,n=[];for(let e=0;e<t.length;e++){let o=t[e];if("1003"==o.type)n.push(o);else if(o.decoration.top&&(o.toCompatibleSaveTopVal=o.decoration.top,o.decoration.top=0),o.decoration.bottom&&(o.toCompatibleSaveBottompVal=o.decoration.bottom,o.decoration.bottom=0),n[n.length-1]&&1==n[n.length-1].type)n[n.length-1].list.push(o);else{let e={type:1,list:[]};e.list.push(o),n.push(e)}}for(let t=0;t<n.length;t++){const a=n[t];if("1003"==a.type)s.listResult.push(a);else for(let t=0;t<a.list.length;t+=e.spanCount){const n=a.list[t];let r={top:-1,bottom:-1};n.decoration&&(r.top=n.toCompatibleSaveTopVal?n.toCompatibleSaveTopVal:0,r.bottom=n.toCompatibleSaveBottompVal?n.toCompatibleSaveBottompVal:0);const l={type:1,decoration:r,name:"name"+o,list:a.list.slice(t,t+e.spanCount)};o++,s.listResult.push(l)}}},i=(e={})=>{let t=null;if("object"==typeof e&&null!==e)for(var o in t=e instanceof Array?[]:{},e)t[o]=i(e[o]);else t=e;return t},c=e=>null!==e&&"object"==typeof e,u=e=>{if("2.1"==s.apkVersion){let t=-1;for(let o=0;o<s.listResult.length;o++){const n=s.listResult[o];if("1003"==n.type)t++,t==e&&a.value.scrollToPosition(o);else for(let s=0;s<n.list.length;s++)n.list[s],t++,t==e&&a.value.scrollToPosition(o)}}else a.value.scrollToPosition(e)},d=e=>{if("2.1"==s.apkVersion){let t=-1,o=0,n=0;for(let a=0;a<s.listResult.length;a++){const r=s.listResult[a];if("1003"==r.type)t++;else for(let s=0;s<r.list.length;s++)r.list[s],t++,e==t&&(o=a,n=s)}a.value.dispatchItemFunction(o,"tv_list_inner","requestChildFocus",[n])}else a.value.requestChildFocus(e)},p=(e,t)=>{if("2.1"==s.apkVersion){let t=-1,o=0,n=0;for(let a=0;a<s.listResult.length;a++){const r=s.listResult[a];if("1003"==r.type)t++;else for(let s=0;s<r.list.length;s++)r.list[s],t++,e==t&&(o=a,n=s)}a.value.dispatchItemFunction(o,"tv_list_inner","setSelectChildPosition",[n])}else a.value.setSelectChildPosition(e,t)},f=()=>{a.value.destroy()};return m((()=>{s.recordTarget=[],s.listResult=[],s.changeTarget=null,s.isStopPage=!1,s.keyArr=[],s.pageNo=1,s.isStopPage=!1,s.type="",f(),s.setListDataTimer&&clearTimeout(s.setListDataTimer),s.pushDataTimer&&clearTimeout(s.pushDataTimer),s.stopPageTimer&&clearTimeout(s.stopPageTimer),s.defaultFocusTimer&&clearTimeout(s.defaultFocusTimer)})),{tv_list:a,...s,init:r,dealData:l,copyObj:i,isObject:c,hasChanged:(e,t)=>e!==t&&(e==e||t==t),hasOwn:(e,t)=>{Object.hasOwnProperty.call(e,t)},onItemClick:e=>{if("2.1"==s.apkVersion){let t=-1,o=e.position,n=e.parentPosition;for(let a=0;a<e.parentPosition+1;a++){const r=s.listResult[a];if("1003"==r.type)t++;else for(let s=0;s<r.list.length;s++)t++,o==s&&n==a&&(e.position=t)}}t.emit("item-click",e)},onItemBind:o=>{"2.1"==s.apkVersion?s.isStopPage||o.position!=s.listResult.length-1-e.preloadNo/e.spanCount||(s.pageNo++,e.loadMore(s.pageNo)):s.isStopPage||o.position!=s.recordTarget.length-1-e.preloadNo||(s.pageNo++,e.loadMore(s.pageNo)),t.emit("item-bind",o)},onItemFocused:e=>{if("2.1"==s.apkVersion){let t=-1,o=e.position,n=e.parentPosition;for(let a=0;a<e.parentPosition+1;a++){const r=s.listResult[a];if("1003"==r.type)t++;else for(let s=0;s<r.list.length;s++)t++,o==s&&n==a&&(e.position=t)}}t.emit("item-focused",e)},onItemUnbind:e=>{t.emit("item-unbind",e)},onScroll:e=>{t.emit("scroll",e)},onScrollStateChanged:e=>{t.emit("scroll-state-changed",e)},stopPage:t=>{s.stopPageTimer&&clearTimeout(s.stopPageTimer),s.stopPageTimer=setTimeout((()=>{"2.1"==s.apkVersion?e.pageSize?e.pageSize/e.spanCount<=s.listResult.length&&a.value.deleteItemRange(s.listResult.length,1):s.pageNo>2&&a.value.deleteItemRange(s.listResult.length,1):e.pageSize?e.pageSize<=s.recordTarget.length&&a.value.deleteItemRange(s.recordTarget.length,1):s.pageNo>2&&a.value.deleteItemRange(s.recordTarget.length,1)}),400),s.isStopPage=!0},scrollToTop:()=>{a.value.scrollToTop()},constclearFocus:()=>{a.value.clearFocus()},blockRootFocus:()=>{a.value.blockRootFocus()},unBlockRootFocus:()=>{a.value.unBlockRootFocus()},setDisplay:e=>{a.value.setDisplay(e)},scrollToPosition:u,scrollToIndex:(e,t,o)=>{if("2.1"==s.apkVersion){let n=-1;for(let r=0;r<s.listResult.length;r++){const l=s.listResult[r];if("1003"==l.type)n++,n==e&&a.value.scrollToIndex(0,r,t,o);else for(let s=0;s<l.list.length;s++)l.list[s],n++,n==e&&a.value.scrollToIndex(0,r,t,o)}}else a.value.scrollToIndex(0,e,t,o)},setItemFocused:d,scrollToFocused:e=>{u(e),d(e)},setItemSelected:p,scrollToSelected:(e,t)=>{u(e),p(e,t)},updateItemProps:(e,t,o)=>{a.value.updateItemProps(e,t,o)},setInitPosition:e=>{a.value.setInitPosition(e)},setListData:e=>{s.setListDataTimer&&clearTimeout(s.setListDataTimer),s.setListDataTimer=setTimeout((()=>{a.value.setListData(e)}),100)},insertItemRange:(e,t)=>{a.value.insertItemRange(e,t)},clearPostTask:()=>{a.value.clearPostTask()},destroy:f}}});function $(e,t){const o=Object.create(null),n=e.split(",");for(let e=0;e<n.length;e++)o[n[e]]=!0;return t?e=>!!o[e.toLowerCase()]:e=>!!o[e]}A.render=function(e,t,o,l,i,c){const u=n("tv-list");return a(),d(u,{class:"tv_list",ref:"tv_list",name:"tv_list",spanCount:"2.1"==e.apkVersion?"":e.spanCount,onItemBind:e.onItemBind,onItemClick:e.onItemClick,onItemFocused:e.onItemFocused,onItemUnbind:e.onItemUnbind,onScroll:e.onScroll,onScrollStateChanged:e.onScrollStateChanged,onSetListData:e.setListData,blockFocusDirections:e.blockFocusDirections},{default:y((()=>["2.1"==e.apkVersion?(a(),s(v,{key:0},[f(e.$slots,"header"),T(u,{class:"tv_list_inner",ref:"${name}",list:"${list}",name:"tv_list_inner",type:"1",clipChildren:!1,focusable:!1,horizontal:"",style:r({width:e.areaWidth+"px"}),endHintEnabled:!1,blockFocusDirections:e.blockFocusDirections},{default:y((()=>[f(e.$slots,"default")])),_:3},8,["style","blockFocusDirections"]),f(e.$slots,"loading")],64)):(a(),s(v,{key:1},[f(e.$slots,"header"),f(e.$slots,"default"),f(e.$slots,"loading")],64))])),_:3},8,["spanCount","onItemBind","onItemClick","onItemFocused","onItemUnbind","onScroll","onScrollStateChanged","onSetListData","blockFocusDirections"])},A.__file="src/grid-view/index.vue";const B="production"!==process.env.NODE_ENV?Object.freeze({}):{};"production"===process.env.NODE_ENV||Object.freeze([]);const V=()=>{},z=/^on[^a-z]/,U=e=>z.test(e),q=Object.assign,j=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},M=Object.prototype.hasOwnProperty,W=(e,t)=>M.call(e,t),G=Array.isArray,Y=e=>"[object Map]"===te(e),Q=e=>"[object Set]"===te(e),H=e=>"function"==typeof e,K=e=>"string"==typeof e,X=e=>"symbol"==typeof e,J=e=>null!==e&&"object"==typeof e,Z=e=>J(e)&&H(e.then)&&H(e.catch),ee=Object.prototype.toString,te=e=>ee.call(e),oe=e=>te(e).slice(8,-1),ne=e=>"[object Object]"===te(e),ae=e=>K(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,se=(e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))})((e=>e.charAt(0).toUpperCase()+e.slice(1))),re=(e,t)=>!Object.is(e,t),le=(e,t,o)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:o})};let ie;const ce=()=>ie||(ie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function ue(e){if(G(e)){const t={};for(let o=0;o<e.length;o++){const n=e[o],a=K(n)?ge(n):ue(n);if(a)for(const e in a)t[e]=a[e]}return t}return K(e)||J(e)?e:void 0}const de=/;(?![^(]*\))/g,pe=/:([^]+)/,fe=/\/\*[^]*?\*\//g;function ge(e){const t={};return e.replace(fe,"").split(de).forEach((e=>{if(e){const o=e.split(pe);o.length>1&&(t[o[0].trim()]=o[1].trim())}})),t}function he(e){let t="";if(K(e))t=e;else if(G(e))for(let o=0;o<e.length;o++){const n=he(e[o]);n&&(t+=n+" ")}else if(J(e))for(const o in e)e[o]&&(t+=o+" ");return t.trim()}function me(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let ye;const ve=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Te=e=>(e.w&Ie)>0,be=e=>(e.n&Ie)>0,_e=new WeakMap;let Se=0,Ie=1;const ke=30;let xe;const Fe=Symbol("production"!==process.env.NODE_ENV?"iterate":""),Pe=Symbol("production"!==process.env.NODE_ENV?"Map key iterate":"");class Ne{constructor(e,t=null,o){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=ye){t&&t.active&&t.effects.push(e)}(this,o)}run(){if(!this.active)return this.fn();let e=xe,t=Ee;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=xe,xe=this,Ee=!0,Ie=1<<++Se,Se<=ke?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ie})(this):De(this),this.fn()}finally{Se<=ke&&(e=>{const{deps:t}=e;if(t.length){let o=0;for(let n=0;n<t.length;n++){const a=t[n];Te(a)&&!be(a)?a.delete(e):t[o++]=a,a.w&=~Ie,a.n&=~Ie}t.length=o}})(this),Ie=1<<--Se,xe=this.parent,Ee=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){xe===this?this.deferStop=!0:this.active&&(De(this),this.onStop&&this.onStop(),this.active=!1)}}function De(e){const{deps:t}=e;if(t.length){for(let o=0;o<t.length;o++)t[o].delete(e);t.length=0}}let Ee=!0;const Re=[];function Ce(){Re.push(Ee),Ee=!1}function Le(){const e=Re.pop();Ee=void 0===e||e}function we(e,t,o){if(Ee&&xe){let n=_e.get(e);n||_e.set(e,n=new Map);let a=n.get(o);a||n.set(o,a=ve());!function(e,t){let o=!1;Se<=ke?be(e)||(e.n|=Ie,o=!Te(e)):o=!e.has(xe);o&&(e.add(xe),xe.deps.push(e),"production"!==process.env.NODE_ENV&&xe.onTrack&&xe.onTrack(q({effect:xe},t)))}(a,"production"!==process.env.NODE_ENV?{effect:xe,target:e,type:t,key:o}:void 0)}}function Oe(e,t,o,n,a,s){const r=_e.get(e);if(!r)return;let l=[];if("clear"===t)l=[...r.values()];else if("length"===o&&G(e)){const e=Number(n);r.forEach(((t,o)=>{("length"===o||o>=e)&&l.push(t)}))}else switch(void 0!==o&&l.push(r.get(o)),t){case"add":G(e)?ae(o)&&l.push(r.get("length")):(l.push(r.get(Fe)),Y(e)&&l.push(r.get(Pe)));break;case"delete":G(e)||(l.push(r.get(Fe)),Y(e)&&l.push(r.get(Pe)));break;case"set":Y(e)&&l.push(r.get(Fe))}const i="production"!==process.env.NODE_ENV?{target:e,type:t,key:o,newValue:n,oldValue:a,oldTarget:s}:void 0;if(1===l.length)l[0]&&("production"!==process.env.NODE_ENV?Ae(l[0],i):Ae(l[0]));else{const e=[];for(const t of l)t&&e.push(...t);"production"!==process.env.NODE_ENV?Ae(ve(e),i):Ae(ve(e))}}function Ae(e,t){const o=G(e)?e:[...e];for(const e of o)e.computed&&$e(e,t);for(const e of o)e.computed||$e(e,t)}function $e(e,t){(e!==xe||e.allowRecurse)&&("production"!==process.env.NODE_ENV&&e.onTrigger&&e.onTrigger(q({effect:e},t)),e.scheduler?e.scheduler():e.run())}const Be=$("__proto__,__v_isRef,__isVue"),Ve=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(X)),ze=Ge(),Ue=Ge(!0),qe=Ge(!0,!0),je=Me();function Me(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const o=Rt(this);for(let e=0,t=this.length;e<t;e++)we(o,"get",e+"");const n=o[t](...e);return-1===n||!1===n?o[t](...e.map(Rt)):n}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){Ce();const o=Rt(this)[t].apply(this,e);return Le(),o}})),e}function We(e){const t=Rt(this);return we(t,"has",e),t.hasOwnProperty(e)}function Ge(e=!1,t=!1){return function(o,n,a){if("__v_isReactive"===n)return!e;if("__v_isReadonly"===n)return e;if("__v_isShallow"===n)return t;if("__v_raw"===n&&a===(e?t?St:_t:t?bt:Tt).get(o))return o;const s=G(o);if(!e){if(s&&W(je,n))return Reflect.get(je,n,a);if("hasOwnProperty"===n)return We}const r=Reflect.get(o,n,a);return(X(n)?Ve.has(n):Be(n))?r:(e||we(o,"get",n),t?r:wt(r)?s&&ae(n)?r:r.value:J(r)?e?kt(r):It(r):r)}}function Ye(e=!1){return function(t,o,n,a){let s=t[o];if(Nt(s)&&wt(s)&&!wt(n))return!1;if(!e&&(Dt(n)||Nt(n)||(s=Rt(s),n=Rt(n)),!G(t)&&wt(s)&&!wt(n)))return s.value=n,!0;const r=G(t)&&ae(o)?Number(o)<t.length:W(t,o),l=Reflect.set(t,o,n,a);return t===Rt(a)&&(r?re(n,s)&&Oe(t,"set",o,n,s):Oe(t,"add",o,n)),l}}const Qe={get:ze,set:Ye(),deleteProperty:function(e,t){const o=W(e,t),n=e[t],a=Reflect.deleteProperty(e,t);return a&&o&&Oe(e,"delete",t,void 0,n),a},has:function(e,t){const o=Reflect.has(e,t);return X(t)&&Ve.has(t)||we(e,"has",t),o},ownKeys:function(e){return we(e,"iterate",G(e)?"length":Fe),Reflect.ownKeys(e)}},He={get:Ue,set:(e,t)=>("production"!==process.env.NODE_ENV&&me(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0),deleteProperty:(e,t)=>("production"!==process.env.NODE_ENV&&me(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0)},Ke=q({},He,{get:qe}),Xe=e=>e,Je=e=>Reflect.getPrototypeOf(e);function Ze(e,t,o=!1,n=!1){const a=Rt(e=e.__v_raw),s=Rt(t);o||(t!==s&&we(a,"get",t),we(a,"get",s));const{has:r}=Je(a),l=n?Xe:o?Lt:Ct;return r.call(a,t)?l(e.get(t)):r.call(a,s)?l(e.get(s)):void(e!==a&&e.get(t))}function et(e,t=!1){const o=this.__v_raw,n=Rt(o),a=Rt(e);return t||(e!==a&&we(n,"has",e),we(n,"has",a)),e===a?o.has(e):o.has(e)||o.has(a)}function tt(e,t=!1){return e=e.__v_raw,!t&&we(Rt(e),"iterate",Fe),Reflect.get(e,"size",e)}function ot(e){e=Rt(e);const t=Rt(this);return Je(t).has.call(t,e)||(t.add(e),Oe(t,"add",e,e)),this}function nt(e,t){t=Rt(t);const o=Rt(this),{has:n,get:a}=Je(o);let s=n.call(o,e);s?"production"!==process.env.NODE_ENV&&vt(o,n,e):(e=Rt(e),s=n.call(o,e));const r=a.call(o,e);return o.set(e,t),s?re(t,r)&&Oe(o,"set",e,t,r):Oe(o,"add",e,t),this}function at(e){const t=Rt(this),{has:o,get:n}=Je(t);let a=o.call(t,e);a?"production"!==process.env.NODE_ENV&&vt(t,o,e):(e=Rt(e),a=o.call(t,e));const s=n?n.call(t,e):void 0,r=t.delete(e);return a&&Oe(t,"delete",e,void 0,s),r}function st(){const e=Rt(this),t=0!==e.size,o="production"!==process.env.NODE_ENV?Y(e)?new Map(e):new Set(e):void 0,n=e.clear();return t&&Oe(e,"clear",void 0,void 0,o),n}function rt(e,t){return function(o,n){const a=this,s=a.__v_raw,r=Rt(s),l=t?Xe:e?Lt:Ct;return!e&&we(r,"iterate",Fe),s.forEach(((e,t)=>o.call(n,l(e),l(t),a)))}}function lt(e,t,o){return function(...n){const a=this.__v_raw,s=Rt(a),r=Y(s),l="entries"===e||e===Symbol.iterator&&r,i="keys"===e&&r,c=a[e](...n),u=o?Xe:t?Lt:Ct;return!t&&we(s,"iterate",i?Pe:Fe),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function it(e){return function(...t){if("production"!==process.env.NODE_ENV){const o=t[0]?`on key "${t[0]}" `:"";console.warn(`${se(e)} operation ${o}failed: target is readonly.`,Rt(this))}return"delete"!==e&&this}}function ct(){const e={get(e){return Ze(this,e)},get size(){return tt(this)},has:et,add:ot,set:nt,delete:at,clear:st,forEach:rt(!1,!1)},t={get(e){return Ze(this,e,!1,!0)},get size(){return tt(this)},has:et,add:ot,set:nt,delete:at,clear:st,forEach:rt(!1,!0)},o={get(e){return Ze(this,e,!0)},get size(){return tt(this,!0)},has(e){return et.call(this,e,!0)},add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear"),forEach:rt(!0,!1)},n={get(e){return Ze(this,e,!0,!0)},get size(){return tt(this,!0)},has(e){return et.call(this,e,!0)},add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear"),forEach:rt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((a=>{e[a]=lt(a,!1,!1),o[a]=lt(a,!0,!1),t[a]=lt(a,!1,!0),n[a]=lt(a,!0,!0)})),[e,o,t,n]}const[ut,dt,pt,ft]=ct();function gt(e,t){const o=t?e?ft:pt:e?dt:ut;return(t,n,a)=>"__v_isReactive"===n?!e:"__v_isReadonly"===n?e:"__v_raw"===n?t:Reflect.get(W(o,n)&&n in t?o:t,n,a)}const ht={get:gt(!1,!1)},mt={get:gt(!0,!1)},yt={get:gt(!0,!0)};function vt(e,t,o){const n=Rt(o);if(n!==o&&t.call(e,n)){const t=oe(e);console.warn(`Reactive ${t} contains both the raw and reactive versions of the same object${"Map"===t?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Tt=new WeakMap,bt=new WeakMap,_t=new WeakMap,St=new WeakMap;function It(e){return Nt(e)?e:Ft(e,!1,Qe,ht,Tt)}function kt(e){return Ft(e,!0,He,mt,_t)}function xt(e){return Ft(e,!0,Ke,yt,St)}function Ft(e,t,o,n,a){if(!J(e))return"production"!==process.env.NODE_ENV&&console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=a.get(e);if(s)return s;const r=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(oe(l));var l;if(0===r)return e;const i=new Proxy(e,2===r?n:o);return a.set(e,i),i}function Pt(e){return Nt(e)?Pt(e.__v_raw):!(!e||!e.__v_isReactive)}function Nt(e){return!(!e||!e.__v_isReadonly)}function Dt(e){return!(!e||!e.__v_isShallow)}function Et(e){return Pt(e)||Nt(e)}function Rt(e){const t=e&&e.__v_raw;return t?Rt(t):e}const Ct=e=>J(e)?It(e):e,Lt=e=>J(e)?kt(e):e;function wt(e){return!(!e||!0!==e.__v_isRef)}const Ot={get:(e,t,o)=>{return wt(n=Reflect.get(e,t,o))?n.value:n;var n},set:(e,t,o,n)=>{const a=e[t];return wt(a)&&!wt(o)?(a.value=o,!0):Reflect.set(e,t,o,n)}};const At=[];function $t(e,...t){if("production"===process.env.NODE_ENV)return;Ce();const o=At.length?At[At.length-1].component:null,n=o&&o.appContext.config.warnHandler,a=function(){let e=At[At.length-1];if(!e)return[];const t=[];for(;e;){const o=t[0];o&&o.vnode===e?o.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}();if(n)Ut(n,o,11,[e+t.join(""),o&&o.proxy,a.map((({vnode:e})=>`at <${an(o,e.type)}>`)).join("\n"),a]);else{const o=[`[Vue warn]: ${e}`,...t];a.length&&o.push("\n",...function(e){const t=[];return e.forEach(((e,o)=>{t.push(...0===o?[]:["\n"],...function({vnode:e,recurseCount:t}){const o=t>0?`... (${t} recursive calls)`:"",n=!!e.component&&null==e.component.parent,a=` at <${an(e.component,e.type,n)}`,s=">"+o;return e.props?[a,...Bt(e.props),s]:[a+s]}(e))})),t}(a)),console.warn(...o)}Le()}function Bt(e){const t=[],o=Object.keys(e);return o.slice(0,3).forEach((o=>{t.push(...Vt(o,e[o]))})),o.length>3&&t.push(" ..."),t}function Vt(e,t,o){return K(t)?(t=JSON.stringify(t),o?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?o?t:[`${e}=${t}`]:wt(t)?(t=Vt(e,Rt(t.value),!0),o?t:[`${e}=Ref<`,t,">"]):H(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Rt(t),o?t:[`${e}=`,t])}const zt={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function Ut(e,t,o,n){let a;try{a=n?e(...n):e()}catch(e){jt(e,t,o)}return a}function qt(e,t,o,n){if(H(e)){const a=Ut(e,t,o,n);return a&&Z(a)&&a.catch((e=>{jt(e,t,o)})),a}const a=[];for(let s=0;s<e.length;s++)a.push(qt(e[s],t,o,n));return a}function jt(e,t,o,n=!0){const a=t?t.vnode:null;if(t){let n=t.parent;const a=t.proxy,s="production"!==process.env.NODE_ENV?zt[o]:o;for(;n;){const t=n.ec;if(t)for(let o=0;o<t.length;o++)if(!1===t[o](e,a,s))return;n=n.parent}const r=t.appContext.config.errorHandler;if(r)return void Ut(r,null,10,[e,a,s])}!function(e,t,o,n=!0){if("production"!==process.env.NODE_ENV){const s=zt[t];if(o&&(a=o,At.push(a)),$t("Unhandled error"+(s?` during execution of ${s}`:"")),o&&At.pop(),n)throw e;console.error(e)}else console.error(e);var a}(e,o,a,n)}let Mt=!1,Wt=!1;const Gt=[];let Yt=0;const Qt=[];let Ht=null,Kt=0;const Xt=Promise.resolve();let Jt=null;const Zt=100;function eo(e){const t=Jt||Xt;return e?t.then(this?e.bind(this):e):t}function to(e){Gt.length&&Gt.includes(e,Mt&&e.allowRecurse?Yt+1:Yt)||(null==e.id?Gt.push(e):Gt.splice(function(e){let t=Yt+1,o=Gt.length;for(;t<o;){const n=t+o>>>1;ao(Gt[n])<e?t=n+1:o=n}return t}(e.id),0,e),oo())}function oo(){Mt||Wt||(Wt=!0,Jt=Xt.then(ro))}function no(e){G(e)?Qt.push(...e):Ht&&Ht.includes(e,e.allowRecurse?Kt+1:Kt)||Qt.push(e),oo()}const ao=e=>null==e.id?1/0:e.id,so=(e,t)=>{const o=ao(e)-ao(t);if(0===o){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return o};function ro(e){Wt=!1,Mt=!0,"production"!==process.env.NODE_ENV&&(e=e||new Map),Gt.sort(so);const t="production"!==process.env.NODE_ENV?t=>lo(e,t):V;try{for(Yt=0;Yt<Gt.length;Yt++){const e=Gt[Yt];if(e&&!1!==e.active){if("production"!==process.env.NODE_ENV&&t(e))continue;Ut(e,null,14)}}}finally{Yt=0,Gt.length=0,function(e){if(Qt.length){const t=[...new Set(Qt)];if(Qt.length=0,Ht)return void Ht.push(...t);for(Ht=t,"production"!==process.env.NODE_ENV&&(e=e||new Map),Ht.sort(((e,t)=>ao(e)-ao(t))),Kt=0;Kt<Ht.length;Kt++)"production"!==process.env.NODE_ENV&&lo(e,Ht[Kt])||Ht[Kt]();Ht=null,Kt=0}}(e),Mt=!1,Jt=null,(Gt.length||Qt.length)&&ro(e)}}function lo(e,t){if(e.has(t)){const o=e.get(t);if(o>Zt){const e=t.ownerInstance,o=e&&nn(e.type);return $t(`Maximum recursive updates exceeded${o?` in component <${o}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}e.set(t,o+1)}else e.set(t,1)}const io=new Set;"production"!==process.env.NODE_ENV&&(ce().__VUE_HMR_RUNTIME__={createRecord:fo((function(e,t){if(co.has(e))return!1;return co.set(e,{initialDef:uo(t),instances:new Set}),!0})),rerender:fo((function(e,t){const o=co.get(e);if(!o)return;o.initialDef.render=t,[...o.instances].forEach((e=>{t&&(e.render=t,uo(e.type).render=t),e.renderCache=[],e.update()}))})),reload:fo((function(e,t){const o=co.get(e);if(!o)return;t=uo(t),po(o.initialDef,t);const n=[...o.instances];for(const e of n){const n=uo(e.type);io.has(n)||(n!==o.initialDef&&po(n,t),io.add(n)),e.appContext.propsCache.delete(e.type),e.appContext.emitsCache.delete(e.type),e.appContext.optionsCache.delete(e.type),e.ceReload?(io.add(n),e.ceReload(t.styles),io.delete(n)):e.parent?to(e.parent.update):e.appContext.reload?e.appContext.reload():"undefined"!=typeof window?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}no((()=>{for(const e of n)io.delete(uo(e.type))}))}))});const co=new Map;function uo(e){return sn(e)?e.__vccOpts:e}function po(e,t){q(e,t);for(const o in e)"__file"===o||o in t||delete e[o]}function fo(e){return(t,o)=>{try{return e(t,o)}catch(e){console.error(e),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let go=null,ho=null;const mo={};function yo(e,t,{immediate:o,deep:n,flush:a,onTrack:s,onTrigger:r}=B){var l;"production"===process.env.NODE_ENV||t||(void 0!==o&&$t('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==n&&$t('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const i=e=>{$t("Invalid watch source: ",e,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=ye===(null==(l=Xo)?void 0:l.scope)?Xo:null;let u,d,p=!1,f=!1;if(wt(e)?(u=()=>e.value,p=Dt(e)):Pt(e)?(u=()=>e,n=!0):G(e)?(f=!0,p=e.some((e=>Pt(e)||Dt(e))),u=()=>e.map((e=>wt(e)?e.value:Pt(e)?To(e):H(e)?Ut(e,c,2):void("production"!==process.env.NODE_ENV&&i(e))))):H(e)?u=t?()=>Ut(e,c,2):()=>{if(!c||!c.isUnmounted)return d&&d(),qt(e,c,3,[g])}:(u=V,"production"!==process.env.NODE_ENV&&i(e)),t&&n){const e=u;u=()=>To(e())}let g=e=>{d=v.onStop=()=>{Ut(e,c,4)}},h=f?new Array(e.length).fill(mo):mo;const m=()=>{if(v.active)if(t){const e=v.run();(n||p||(f?e.some(((e,t)=>re(e,h[t]))):re(e,h)))&&(d&&d(),qt(t,c,3,[e,h===mo?void 0:f&&h[0]===mo?[]:h,g]),h=e)}else v.run()};let y;m.allowRecurse=!!t,"sync"===a?y=m:"post"===a?y=()=>Oo(m,c&&c.suspense):(m.pre=!0,c&&(m.id=c.uid),y=()=>to(m));const v=new Ne(u,y);"production"!==process.env.NODE_ENV&&(v.onTrack=s,v.onTrigger=r),t?o?m():h=v.run():"post"===a?Oo(v.run.bind(v),c&&c.suspense):v.run();return()=>{v.stop(),c&&c.scope&&j(c.scope.effects,v)}}function vo(e,t,o){const n=this.proxy,a=K(e)?e.includes(".")?function(e,t){const o=t.split(".");return()=>{let t=e;for(let e=0;e<o.length&&t;e++)t=t[o[e]];return t}}(n,e):()=>n[e]:e.bind(n,n);let s;H(t)?s=t:(s=t.handler,o=t);const r=Xo;Zo(this);const l=yo(a,s.bind(n),o);return r?Zo(r):en(),l}function To(e,t){if(!J(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),wt(e))To(e.value,t);else if(G(e))for(let o=0;o<e.length;o++)To(e[o],t);else if(Q(e)||Y(e))e.forEach((e=>{To(e,t)}));else if(ne(e))for(const o in e)To(e[o],t);return e}function bo(e,t){return H(e)?(()=>q({name:e.name},t,{setup:e}))():e}const _o=Symbol.for("v-ndc"),So=e=>e?4&e.vnode.shapeFlag?function(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((o=e.exposed,le(o,"__v_skip",!0),Pt(t=o)?t:new Proxy(t,Ot)),{get:(t,o)=>o in t?t[o]:o in Io?Io[o](e):void 0,has:(e,t)=>t in e||t in Io}));var t;var o}(e)||e.proxy:So(e.parent):null,Io=q(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>"production"!==process.env.NODE_ENV?xt(e.props):e.props,$attrs:e=>"production"!==process.env.NODE_ENV?xt(e.attrs):e.attrs,$slots:e=>"production"!==process.env.NODE_ENV?xt(e.slots):e.slots,$refs:e=>"production"!==process.env.NODE_ENV?xt(e.refs):e.refs,$parent:e=>So(e.parent),$root:e=>So(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?function(e){const t=e.type,{mixins:o,extends:n}=t,{mixins:a,optionsCache:s,config:{optionMergeStrategies:r}}=e.appContext,l=s.get(t);let i;l?i=l:a.length||o||n?(i={},a.length&&a.forEach((e=>No(i,e,r,!0))),No(i,t,r)):i=t;J(t)&&s.set(t,i);return i}(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>to(e.update)),$nextTick:e=>e.n||(e.n=eo.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?vo.bind(e):V}),ko=(e,t)=>e!==B&&!e.__isScriptSetup&&W(e,t),xo={get({_:e},t){const{ctx:o,setupState:n,data:a,props:s,accessCache:r,type:l,appContext:i}=e;if("production"!==process.env.NODE_ENV&&"__isVue"===t)return!0;let c;if("$"!==t[0]){const l=r[t];if(void 0!==l)switch(l){case 1:return n[t];case 2:return a[t];case 4:return o[t];case 3:return s[t]}else{if(ko(n,t))return r[t]=1,n[t];if(a!==B&&W(a,t))return r[t]=2,a[t];if((c=e.propsOptions[0])&&W(c,t))return r[t]=3,s[t];if(o!==B&&W(o,t))return r[t]=4,o[t];__VUE_OPTIONS_API__&&!Po||(r[t]=0)}}const u=Io[t];let d,p;return u?("$attrs"===t?(we(e,"get",t),process.env.NODE_ENV):"production"!==process.env.NODE_ENV&&"$slots"===t&&we(e,"get",t),u(e)):(d=l.__cssModules)&&(d=d[t])?d:o!==B&&W(o,t)?(r[t]=4,o[t]):(p=i.config.globalProperties,W(p,t)?p[t]:void("production"===process.env.NODE_ENV||!go||K(t)&&0===t.indexOf("__v")||(a!==B&&(e=>"_"===e||"$"===e)(t[0])&&W(a,t)?$t(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===go&&$t(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))))},set({_:e},t,o){const{data:n,setupState:a,ctx:s}=e;return ko(a,t)?(a[t]=o,!0):"production"!==process.env.NODE_ENV&&a.__isScriptSetup&&W(a,t)?($t(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):n!==B&&W(n,t)?(n[t]=o,!0):W(e.props,t)?("production"!==process.env.NODE_ENV&&$t(`Attempting to mutate prop "${t}". Props are readonly.`),!1):"$"===t[0]&&t.slice(1)in e?("production"!==process.env.NODE_ENV&&$t(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):("production"!==process.env.NODE_ENV&&t in e.appContext.config.globalProperties?Object.defineProperty(s,t,{enumerable:!0,configurable:!0,value:o}):s[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:n,appContext:a,propsOptions:s}},r){let l;return!!o[r]||e!==B&&W(e,r)||ko(t,r)||(l=s[0])&&W(l,r)||W(n,r)||W(Io,r)||W(a.config.globalProperties,r)},defineProperty(e,t,o){return null!=o.get?e._.accessCache[t]=0:W(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function Fo(e){return G(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}"production"!==process.env.NODE_ENV&&(xo.ownKeys=e=>($t("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));let Po=!0;function No(e,t,o,n=!1){const{mixins:a,extends:s}=t;s&&No(e,s,o,!0),a&&a.forEach((t=>No(e,t,o,!0)));for(const a in t)if(n&&"expose"===a)"production"!==process.env.NODE_ENV&&$t('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const n=Do[a]||o&&o[a];e[a]=n?n(e[a],t[a]):t[a]}return e}const Do={data:Eo,props:wo,emits:wo,methods:Lo,computed:Lo,beforeCreate:Co,created:Co,beforeMount:Co,mounted:Co,beforeUpdate:Co,updated:Co,beforeDestroy:Co,beforeUnmount:Co,destroyed:Co,unmounted:Co,activated:Co,deactivated:Co,errorCaptured:Co,serverPrefetch:Co,components:Lo,directives:Lo,watch:function(e,t){if(!e)return t;if(!t)return e;const o=q(Object.create(null),e);for(const n in t)o[n]=Co(e[n],t[n]);return o},provide:Eo,inject:function(e,t){return Lo(Ro(e),Ro(t))}};function Eo(e,t){return t?e?function(){return q(H(e)?e.call(this,this):e,H(t)?t.call(this,this):t)}:t:e}function Ro(e){if(G(e)){const t={};for(let o=0;o<e.length;o++)t[e[o]]=e[o];return t}return e}function Co(e,t){return e?[...new Set([].concat(e,t))]:t}function Lo(e,t){return e?q(Object.create(null),e,t):t}function wo(e,t){return e?G(e)&&G(t)?[...new Set([...e,...t])]:q(Object.create(null),Fo(e),Fo(null!=t?t:{})):t}const Oo=function(e,t){t&&t.pendingBranch?G(e)?t.effects.push(...e):t.effects.push(e):no(e)},Ao=Symbol.for("v-fgt"),$o=Symbol.for("v-txt"),Bo=Symbol.for("v-cmt");let Vo=null;const zo="__vInternal",Uo=({key:e})=>null!=e?e:null,qo=({ref:e,ref_key:t,ref_for:o})=>("number"==typeof e&&(e=""+e),null!=e?K(e)||wt(e)||H(e)?{i:go,r:e,k:t,f:!!o}:e:null);const jo="production"!==process.env.NODE_ENV?(...e)=>Mo(...e):Mo;function Mo(e,t=null,o=null,n=0,a=null,s=!1){if(e&&e!==_o||("production"===process.env.NODE_ENV||e||$t(`Invalid vnode type when creating vnode: ${e}.`),e=Bo),(r=e)&&!0===r.__v_isVNode){const n=Wo(e,t,!0);return o&&Qo(n,o),!s&&Vo&&(6&n.shapeFlag?Vo[Vo.indexOf(e)]=n:Vo.push(n)),n.patchFlag|=-2,n}var r;if(sn(e)&&(e=e.__vccOpts),t){t=function(e){return e?Et(e)||zo in e?q({},e):e:null}(t);let{class:e,style:o}=t;e&&!K(e)&&(t.class=he(e)),J(o)&&(Et(o)&&!G(o)&&(o=q({},o)),t.style=ue(o))}const l=K(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:J(e)?4:H(e)?2:0;return"production"!==process.env.NODE_ENV&&4&l&&Et(e)&&$t("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.","\nComponent that was made reactive: ",e=Rt(e)),function(e,t=null,o=null,n=0,a=null,s=(e===Ao?0:1),r=!1,l=!1){const i={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Uo(t),ref:t&&qo(t),scopeId:ho,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:go};return l?(Qo(i,o),128&s&&e.normalize(i)):o&&(i.shapeFlag|=K(o)?8:16),"production"!==process.env.NODE_ENV&&i.key!=i.key&&$t("VNode created with invalid key (NaN). VNode type:",i.type),!r&&Vo&&(i.patchFlag>0||6&s)&&32!==i.patchFlag&&Vo.push(i),i}(e,t,o,n,a,l,s,!0)}function Wo(e,t,o=!1){const{props:n,ref:a,patchFlag:s,children:r}=e,l=t?function(...e){const t={};for(let o=0;o<e.length;o++){const n=e[o];for(const e in n)if("class"===e)t.class!==n.class&&(t.class=he([t.class,n.class]));else if("style"===e)t.style=ue([t.style,n.style]);else if(U(e)){const o=t[e],a=n[e];!a||o===a||G(o)&&o.includes(a)||(t[e]=o?[].concat(o,a):a)}else""!==e&&(t[e]=n[e])}return t}(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Uo(l),ref:t&&t.ref?o&&a?G(a)?a.concat(qo(t)):[a,qo(t)]:qo(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===s&&G(r)?r.map(Go):r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ao?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Wo(e.ssContent),ssFallback:e.ssFallback&&Wo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Go(e){const t=Wo(e);return G(e.children)&&(t.children=e.children.map(Go)),t}function Yo(e=" ",t=0){return jo($o,null,e,t)}function Qo(e,t){let o=0;const{shapeFlag:n}=e;if(null==t)t=null;else if(G(t))o=16;else if("object"==typeof t){if(65&n){const o=t.default;return void(o&&(o._c&&(o._d=!1),Qo(e,o()),o._c&&(o._d=!0)))}{o=32;const n=t._;n||zo in t?3===n&&go&&(1===go.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=go}}else H(t)?(t={default:t,_ctx:go},o=32):(t=String(t),64&n?(o=16,t=[Yo(t)]):o=8);e.children=t,e.shapeFlag|=o}let Ho,Ko,Xo=null,Jo="__VUE_INSTANCE_SETTERS__";(Ko=ce()[Jo])||(Ko=ce()[Jo]=[]),Ko.push((e=>Xo=e)),Ho=e=>{Ko.length>1?Ko.forEach((t=>t(e))):Ko[0](e)};const Zo=e=>{Ho(e),e.scope.on()},en=()=>{Xo&&Xo.scope.off(),Ho(null)};const tn=/(?:^|[-_])(\w)/g,on=e=>e.replace(tn,(e=>e.toUpperCase())).replace(/[-_]/g,"");function nn(e,t=!0){return H(e)?e.displayName||e.name:e.name||t&&e.__name}function an(e,t,o=!1){let n=nn(t);if(!n&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(n=e[1])}if(!n&&e&&e.parent){const o=e=>{for(const o in e)if(e[o]===t)return o};n=o(e.components||e.parent.type.components)||o(e.appContext.components)}return n?on(n):o?"App":"Anonymous"}function sn(e){return H(e)&&"__vccOpts"in e}var rn=bo({name:"qt-poster-focus-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const ln={class:"absoluteFocusTitleRoot",delayLoad:"400",flexStyle:"${titleFocusStyle}",autoHeight:"",focusable:!1},cn={class:"absoluteFocusMainBgRoot",duplicateParentState:!0,focusable:!1,showIf:"${title.enable}"};rn.render=function(e,t,o,r,l,c){const u=n("text-view");return a(),s("div",ln,[i(" 浮动标题"),T(u,{duplicateParentState:!0,focusable:!1,fontSize:26,ellipsizeMode:2,lines:1,paddingRect:[16,18,0,0],gradientBackground:"${floatTitle.background}",style:{height:"64px",color:"#ffffff"},flexStyle:"${floatTitle.style}",text:"${floatTitle}",showIf:"${floatTitle.enable}",gravity:"left",postDelay:"250"}),b("div",cn,[i(" 主标题 "),T(u,{duplicateParentState:!0,focusable:!1,fontSize:30,ellipsizeMode:2,autoHeight:"",maxLines:2,gravity:"left",paddingRect:[16,8,12,8],style:{"background-color":"transparent",color:"#000000"},flexStyle:"${title.style}",text:"${title.text}"}),i(" 副标题 "),T(u,{duplicateParentState:!0,focusable:!1,fontSize:24,ellipsizeMode:2,lines:1,autoHeight:"",gravity:"left|top",paddingRect:[16,0,0,16],style:{color:"rgba(0,0,0,.4)","background-color":"transparent"},flexStyle:"${subTitle.style}",text:"${subTitle.text}",visibility:"${subTitle}"})])])},rn.__scopeId="data-v-703673b8",rn.__file="src/poster/qt-poster-focus-title.vue";var un=bo({name:"qt-poster-corner-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const dn={class:"cornerRoot",focusable:!1};un.render=function(e,t,o,r,l,i){const c=n("text-view");return a(),s("div",dn,[T(c,{duplicateParentState:!0,focusable:!1,textSize:e.fontSize,ellipsizeMode:2,lines:1,typeface:"bold",gravity:"center",postDelay:"350",style:{color:"white",padding:"4px 8px",height:"36px"},gradientBackground:"${corner.background}",autoWidth:"",text:"${corner.text}",showIf:"${corner.enable}"},null,8,["textSize"])])},un.__scopeId="data-v-4b767ea2",un.__file="src/poster/qt-poster-corner-title.vue";var pn=bo({name:"qt-poster",components:{"qt-poster-corner-title":un,"qt-poster-focus-title":rn},props:{requestFirstFocus:{type:Boolean,default:!1},loadDelay:{type:Number,default:500},type:{type:Number,default:10001},templateKeyMap:{type:Object,default:()=>null},isFocusable:{type:Boolean,default:!0},enableFocusBorder:{type:Boolean,default:!0}},setup:(e,t)=>({mainTextShowOnState:["normal","selected"]})});const fn=["enableFocusBorder"],gn=["showOnState"],hn={flexStyle:"${floatTitle.style}",class:"qt-ui-poster-title-css",gradientBackground:{colors:["#e5000000","#00000000"],cornerRadii4:[0,0,8,8],orientation:4},duplicateParentState:!0,delayLoad:"500",focusable:!1,showIf:"${floatTitle.enable}"},mn={flexStyle:"${ripple.style}",class:"qt-ui-poster-ripple-view-root-css",showOnState:"focused",focusable:!1,clipChildren:!1},yn=(e=>(_("data-v-3c4765e9"),e=e(),S(),e))((()=>b("img",{src:"${ripple.src}",class:"qt-ui-ripple-img-css",focusable:!1,duplicateParentState:!0,showIf:"${true}",delayLoad:"800"},null,-1)));pn.render=function(e,t,o,s,r,l){const c=n("qt-poster-focus-title"),u=n("text-view"),p=n("ripple-view"),g=n("qt-poster-corner-title"),h=n("item-frame");return a(),d(h,{type:e.type,layout:"${layout}",flexStyle:"${style}",focusable:e.isFocusable,eventClick:"",eventFocus:"",name:"poster",class:"qt-ui-poster-root-css",itemShowShimmer:"${shimmer.enable}",hideShadow:"${shadow.enable}",shimmerSize:"${size}"},{default:y((()=>[i("封面"),b("img",{class:"qt-ui-poster-img-css",duplicateParentState:!0,postDelay:"300",focusable:!1,enableFocusBorder:e.enableFocusBorder,flexStyle:"${image.style}",src:"${image.src}"},null,8,fn),i(" 焦点选中时的标题 "),T(c,{focusable:!1,showOnState:"focused"}),b("div",{style:{"flex-direction":"column","background-color":"transparent","z-index":"999"},duplicateParentState:!0,focusable:!1,flexStyle:"${titleStyle}",showOnState:e.mainTextShowOnState},[i(" 浮动标题 "),b("div",hn,[T(u,{duplicateParentState:!0,focusable:!1,textSize:26,ellipsizeMode:2,enablePostTask:"",postDelay:"200",lines:1,gravity:"left",style:{"z-index":"999",height:"50px"},flexStyle:"${floatTitle.style}",text:"${floatTitle.text}"})]),i(" 主标题"),T(u,{duplicateParentState:!0,focusable:!1,textSize:30,ellipsizeMode:2,lines:1,delayLoad:"400",postDelay:"200",gravity:"left",paddingRect:[16,8,0,0],gradientBackground:"${title.background}",style:{"z-index":"999",height:"60px"},flexStyle:"${title.style}",text:"${title.text}",showIf:"${title.enable}"})],8,gn),b("div",mn,[T(p,{class:"qt-ui-ripple-view-css",delayLoad:"800",focusable:!1,duplicateParentState:!0,color:"#FF4E46",isShowRipple:"${ripple.enable}",rippleVisible:"invisible"}),yn]),T(g,{focusable:!1,delayLoad:"600",flexStyle:"${corner.style}",style:{"z-index":"1000",position:"absolute"}}),f(e.$slots,"default")])),_:3},8,["type","focusable"])},pn.__scopeId="data-v-3c4765e9",pn.__file="src/poster/index.vue";var vn=t({name:"qt-nav-bar",props:{textKey:{type:String,default:"text"},itemGap:{type:Number,default:0},horizontal:{type:Boolean,default:!0},initSelect:{type:Number,default:0},className:{type:String,default:"list_view"},size:{type:String,default:"medium"},navs:{type:Array,default:()=>[]}},setup(e,t){const n=o();let a=o("#f5f5f5"),s=I({normal:"#80ffffff",focused:"#000000",selected:"#F5F5F5"}),r=-1,l=-1;g((()=>e.navs),(e=>{e.length>0&&i(e)}));const i=t=>{t||(t=[]),t.forEach(((t,o)=>{0!==e.itemGap&&(e.horizontal?t.decoration={right:e.itemGap}:t.decoration={bottom:e.itemGap}),t.type||(t.type=2e4)})),n.value?.setListData(t),clearTimeout(l);let o=e.initSelect;o>-1&&(n.value?.scrollToPosition(o),l=setTimeout((()=>{n.value?.setSelectPosition(o,!0),c(o)}),300))},c=e=>{clearTimeout(r),r=setTimeout((()=>{t.emit("tab-select",{position:e})}),300)};return{navList:n,focusColor:a,textColor:s,bgPadding:[10,10],onTabChange:e=>{!0===e.hasFocus&&(t.emit("tab-focus",e),c(e.position))},scrollToPosition:e=>{n.value?.scrollToPosition(e)},scrollToTop:()=>{n.value?.scrollToTop()},initNavBar:()=>{},initNavBarItem:i}}});const Tn=["stateTextColor","sateBackgroundPadding"],bn=["stateTextColor","sateBackgroundPadding"];var _n,Sn;vn.render=function(e,t,o,s,i,c){const u=n("text-view"),p=n("qt-list-view");return e.horizontal?(a(),d(p,{key:0,class:l([e.className,"qt-ui-nav-bar-root-horizontal"]),ref:"navList",clipChildren:!1,clipPadding:!1,horizontal:"",onItemFocused:e.onTabChange},{default:y((()=>[b("div",{class:"qt-ui-nav-bar-item-css",type:2e4,autoWidth:"",focusable:!0,eventFocus:"",clipChildren:!1,style:r({focusBackgroundColor:e.focusColor}),stateTextColor:e.textColor,sateBackgroundPadding:e.bgPadding},[T(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,Tn),f(e.$slots,"default")])),_:3},8,["class","onItemFocused"])):(a(),d(p,{key:1,class:l([e.className,"qt-ui-nav-bar-root-vertical"]),ref:"navList",clipChildren:!1,clipPadding:!1,onItemFocused:e.onTabChange},{default:y((()=>[b("div",{class:"qt-ui-nav-bar-item-css",type:2e4,eventFocus:"",autoWidth:"",focusable:!0,stateTextColor:e.textColor,style:r({focusBackgroundColor:e.focusColor}),sateBackgroundPadding:e.bgPadding,clipChildren:!1},[T(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,bn),f(e.$slots,"default")])),_:3},8,["class","onItemFocused"]))},vn.__file="src/nav-bar/index.vue",function(e){e[e.QT_WATERFALL_SECTION_TYPE_LOADING=-1]="QT_WATERFALL_SECTION_TYPE_LOADING",e[e.QT_WATERFALL_SECTION_TYPE_TITLE=1e3]="QT_WATERFALL_SECTION_TYPE_TITLE",e[e.QT_WATERFALL_SECTION_TYPE_FLEX=1002]="QT_WATERFALL_SECTION_TYPE_FLEX",e[e.QT_WATERFALL_SECTION_TYPE_LIST=1003]="QT_WATERFALL_SECTION_TYPE_LIST",e[e.QT_WATERFALL_SECTION_TYPE_INDEPENDENT_ITEM=1004]="QT_WATERFALL_SECTION_TYPE_INDEPENDENT_ITEM",e[e.QT_WATERFALL_SECTION_TYPE_TAB_LIST=1005]="QT_WATERFALL_SECTION_TYPE_TAB_LIST"}(_n||(_n={})),function(e){e[e.QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM=10001]="QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM",e[e.QT_WATERFALL_ITEM_TYPE_TAB=10002]="QT_WATERFALL_ITEM_TYPE_TAB"}(Sn||(Sn={}));var In=bo({name:"standard-section",props:{enablePlaceholder:{type:Boolean,default:!0},plateData:{type:String,default:""},useDiff:{type:Boolean,default:!0},cachePool:{type:Object,default:{}},sectionType:{type:Number,default:_n.QT_WATERFALL_SECTION_TYPE_FLEX},standItemType:{type:Number,default:Sn.QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM},currentPageIndex:{type:Number,default:-1}}});const kn=["type"];In.render=function(e,t,o,r,l,i){const c=n("text-view"),u=n("qt-poster"),d=n("tv-flex");return a(),s("div",{class:"standard-section-css",blockFocusDirections:["left","right"],clipChildren:!1,type:e.sectionType,focusable:!1,keyName:"_id",flexStyle:"${style}",bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[T(c,{class:"standard-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),T(d,{class:"standard-section-css",name:"QUICKTVUI_WARTERFALL_LIST",blockFocusDirections:["left","right"],clipChildren:!1,bringFocusChildToFront:!0,cachePool:e.cachePool,useDiff:e.useDiff,keyName:"_id",enablePlaceholder:e.enablePlaceholder,flexStyle:"${sectionStyle}",focusScrollTarget:"${focusScrollTarget==true}",list:"${itemList}"},{default:y((()=>[T(u,{"load-delay":500,type:e.standItemType},null,8,["type"]),f(e.$slots,"default")])),_:3},8,["cachePool","useDiff","enablePlaceholder"])],8,kn)},In.__scopeId="data-v-d1c2a896",In.__file="src/waterfall/section/standard-section.vue";const xn="tab-list-section";var Fn=bo({name:"tabs-list-section",props:{enablePlaceholder:{type:Boolean,default:!0},isSwitchBgScroll:{type:Boolean,default:!1},standItemType:{type:Number,default:10001},tabItemType:{type:Number,default:10002},sectionType:{type:Number,default:_n.QT_WATERFALL_SECTION_TYPE_LIST},fetchPendingData:{type:Function,default:null},arrangeType:{type:String,default:"TB"}},setup(e,t){const o=P();return{blockDirections:["left","right"],onItemBind:function(e){o.isLoggable(N.DEBUG)&&o.d(xn,"----------onItemBind--------------\x3e>>",e)},onItemRecycled:function(e){o.isLoggable(N.DEBUG)&&o.d(xn,"----------onItemRecycled--------------\x3e>>",e)},onItemFocused:function(e){o.isLoggable(N.DEBUG)&&o.d(xn,"----------onItemFocused--------------\x3e>>",e)}}}});const Pn={class:"qt-ui-section-tab-list-root",focusable:!1,blockFocusDirections:["right"],clipChildren:!1,useAdvancedFocusSearch:!0,bringFocusChildToFront:!0},Nn=["type"];Fn.render=function(e,t,o,s,r,l){const i=n("text-view"),c=n("qt-poster"),u=n("tv-list"),p=n("tv-item");return a(),d(p,{type:e.sectionType,clipPadding:!1,clipChildren:!1,ref:"listSection",onItemBind:e.onItemBind,onItemUnbind:e.onItemRecycled,onItemFocused:e.onItemFocused},{default:y((()=>[b("div",Pn,[T(i,{class:"standard-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),T(u,{list:"${itemList}",horizontal:"",flexStyle:"${style}",clipChildren:!1,focusable:!1,name:"QUICKTVUI_WARTERFALL_LIST",resetOnDetach:!0,enableKeepFocus:"${enableKeepFocus==true}",endHintEnabled:"${enableEndHit}",onScrollEnable:!1,setSelectChildPosition:0,enablePlaceholder:e.enablePlaceholder,cachePoolName:"HorizontalList",blockFocusDirections:e.blockDirections},{default:y((()=>[T(c,{type:e.standItemType},null,8,["type"]),b("div",{type:e.tabItemType,class:"qt-ui-section-tab-list-item",clipChildren:!1,style:{"padding-left":"24px","padding-right":"23px","justify-content":"center",height:"50px"},autoWidth:"",name:"QUICKTVUI_TAB_2",focusable:!0,eventFocus:""},[T(i,{class:"qt-ui-section-tab-list-item-text",autoWidth:"",gravity:"center",fontSize:36,lines:1,focusable:!1,duplicateParentState:!0,style:{height:"50px"},text:"${text}"})],8,Nn),f(e.$slots,"default")])),_:3},8,["enablePlaceholder","blockFocusDirections"])])])),_:3},8,["type","onItemBind","onItemUnbind","onItemFocused"])},Fn.__scopeId="data-v-88e60816",Fn.__file="src/waterfall/section/tabs-list-section.vue";var Dn=bo({name:"loading-section"});const En={focusable:!1,type:-1,class:"loading-section-css"};Dn.render=function(e,t,o,r,l,i){const c=n("qt-loading-view");return a(),s("div",En,[T(c,{class:"loading-section-loading-css"})])},Dn.__scopeId="data-v-48609f24",Dn.__file="src/waterfall/section/loading-section.vue";var Rn=bo({props:{plateTitleLeftMargin:{type:Number,default:0},type:{type:Number,default:_n.QT_WATERFALL_SECTION_TYPE_TITLE}},setup:(e,t)=>({})});const Cn=["type"];function Ln(e,t){const o=[];if(t&&t.length>0)for(let n=0;n<t.length;n++){let a=wn(e,t[n],n);o.push(a)}return o}function wn(e,t,o){return t.itemList.length>0&&function(e,t,o){const n=t.itemList,a=t.style?.spacing??0;let s=0,r=0,l=0,i=0;for(let t=0;t<n.length;t++){const c=n[t];c._sectionIndex=o;let u=c?.style.width??0,d=c?.style.height??0;s+u>=e+a&&(r+=l+a,l=0,s=0),c.layout||(c.layout=[0,0,u,d]),c.layout[0]=s,c.layout[1]=r,c.layout[1]+d>i&&(i=c.layout[1]+d),d>l&&(l=d),s+=u+a}}(e.width,t,o),{type:t.type,style:t.style,title:t.title,titleStyle:t.titleStyle,itemList:t.itemList}}function On(){let e=[];function t(e){return e.itemList.length}function o(o,n){console.log("----1--------getRangeSectionListItemCount-----------------\x3e>>>");const a=e.length;if(o<0||o>=a)return 0;console.log("----2--------getRangeSectionListItemCount-----------------\x3e>>>");let s=o+n;o+n>a&&(s=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let r=0;for(let n=o;n<s;n++){r+=t(e[n])}return r}return{addSectionList:function(n){console.log("----1--------addSectionList-----------------\x3e>>>");const a=e.length;console.log("-----2-------addSectionList-----------------\x3e>>>",a);const s=o(0,a);console.log("-----3-------addSectionList-----------------\x3e>>>",s);const r=function(e){if(e.length<=0)return 0;let o=0;for(let n=0;n<e.length;n++){o+=t(e[n])}return o}(n);return console.log("-----4-------addSectionList-----------------\x3e>>>",r),e.push(...n),{sectionIndex:a,sectionCount:n.length,itemIndex:s,itemCount:r}},deleteSection:function(t,n){const a=o(0,t-1),s=o(t,n);return e.splice(t,n),{sectionIndex:t,sectionCount:n,itemIndex:a,itemCount:s}},updateSection:function(n,a){const s=o(0,n-1),r=t(a);return e.splice(n,1,a),{sectionIndex:n,sectionCount:1,itemIndex:s,itemCount:r}},addItemList:function(t,o){const n=e.length;if(t<0||t>=n||o.length<=0)return{sectionIndex:-1,sectionCount:0,itemIndex:-1,itemCount:0};const a=e[t],s=a.itemList.length;return a.itemList.push(...o),{sectionIndex:t,sectionCount:1,itemIndex:s,itemCount:o.length}},deleteItem:function(t,o,n){return e[t].itemList.splice(o,n),{sectionIndex:t,sectionCount:1,itemIndex:o,itemCount:n}},updateItem:function(t,o,n){return e[t].itemList.splice(o,1,n),{sectionIndex:t,sectionCount:1,itemIndex:-1,itemCount:-1}},clear:function(){e=[]}}}Rn.render=function(e,t,o,l,i,c){const u=n("text-view");return a(),s("div",{class:"section-title-css",blockFocusDirections:["left","right"],clipChildren:!1,type:e.type,focusable:!1,bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[T(u,{class:"section-title-text-css",delayLoad:"200",postDelay:"300",style:r({marginLeft:e.plateTitleLeftMargin+"px"}),focusable:!1,textSize:50,text:"${title}"},null,8,["style"])],8,Cn)},Rn.__scopeId="data-v-20428d40",Rn.__file="src/waterfall/section/section-title.vue";const An="qt-waterfall";var $n=bo({name:"qt-waterfall",emits:["onScroll","onScrollStateChanged","onItemClick","onItemFocused","onItemBind","onItemAttached"],props:{enablePlaceholder:{type:Boolean,default:!0},prevLoadNumber:{type:Number,default:3},backTop:{type:Function,default:()=>{}},isLoadMore:{type:Boolean,default:!0},headBlank:{type:Number,default:90}},setup(e,t){const n=P(),a={name:"tvList"+Date.now(),size:{20008:10}},s=o();let r;const l=On();return{waterfallRef:s,init:function(e){r=e},setSectionList:function(e){if(!r)return;n.isLoggable(N.DEBUG)&&n.d(An,"-------1---setSectionList--------------\x3e>>"),l.clear(),n.isLoggable(N.DEBUG)&&n.d(An,"-------2---setSectionList--------------\x3e>>"),l.addSectionList(e);const t=Ln(r,e);n.isLoggable(N.DEBUG)&&n.d(An,"----------setSectionList-----最终数据---------\x3e>>",t),s.value?.setListData(t)},addSectionList:function(e){if(!r)return;const t=l.addSectionList(e);n.isLoggable(N.DEBUG)&&n.d(An,"----------addSectionList--------------\x3e>>",t);const o=Ln(r,e);s.value?.addListData(o)},deleteSection:function(e,t){const o=l.deleteSection(e,t);n.isLoggable(N.DEBUG)&&n.d(An,"----------deleteSection--------------\x3e>>",o),s.value?.deleteItem(e,t)},updateSection:function(e,t){const o=l.updateSection(e,t);o.itemIndex>=0&&o.itemCount>=0&&(n.isLoggable(N.DEBUG)&&n.d(An,"----------updateSection--------------\x3e>>",o),s.value?.updateItemList(o.itemIndex,o.itemCount,t.itemList))},addItemList:function(e,t){const o=l.addItemList(e,t);o.itemIndex>=0&&o.itemCount>=0&&(n.isLoggable(N.DEBUG)&&n.d(An,"----------addItemList--------------\x3e>>",o),s.value?.addItem(o.itemIndex,t))},deleteItem:function(e,t,o){const a=l.deleteItem(e,t,o);a.itemIndex>=0&&a.itemCount>=0&&(n.isLoggable(N.DEBUG)&&n.d(An,"----------deleteItem--------------\x3e>>",a),s.value?.deleteItem(a.itemIndex,a.itemCount))},updateItem:function(e,t,o){l.updateItem(e,t,o)},cachePool:a,flexCachePool:{name:"tvFlex",size:{1:50}},onScroll:function(e){e.stopPropagation();let o=e.offsetY,n=e.offsetX;t.emit("onScroll",n,o)},onItemClick:function(e){t.emit("onItemClick",e.item._sectionIndex,e.position,e.item)},onItemFocused:function(e){n.isLoggable(N.DEBUG)&&n.d(An,"----------onItemFocused--------------\x3e>>",e,"sectionIndex:"+e.item._sectionIndex+" position:"+e.position+" isFocused:"+e.isFocused+" "),t.emit("onItemFocused",e.item._sectionIndex,e.position,e.isFocused,e.item)},onItemBind:function(e){n.isLoggable(N.DEBUG)&&n.d(An,"----------onItemBind--------------\x3e>>",e),t.emit("onItemBind",e.position)},onItemAttached:function(e){t.emit("onItemAttached",e.position)},onScrollStateChanged:function(e){let o=e.offsetY,n=e.offsetX,a=e.newState;t.emit("onScrollStateChanged",n,o,a)},resumePostTask:function(){s.value?.pausePostTask()},pausePostTask:function(){s.value?.pausePostTask()},clearPostTask:function(){s.value?.clearPostTask()},destroy:function(){s.value?.destroy()},onListSectionItemBind:function(e,t){n.isLoggable(N.DEBUG)&&n.d(An,"----------onListSectionItemBind--------------\x3e>>",e,t),s.value?.updateItem(e,t)}}},components:{"standard-section":In,"tabs-list-section":Fn,"section-title":Rn,"loading-section":Dn}});const Bn=(e=>(_("data-v-2e65df68"),e=e(),S(),e))((()=>b("div",{focusable:!1,type:-1e3,style:{backgroundColor:"transparent"},flexStyle:"${sectionStyle}"},null,-1))),Vn={type:-1001,focusable:!1,flexStyle:"${sectionStyle}",style:{"background-color":"transparent","align-items":"center"}};$n.render=function(e,t,o,s,r,l){const c=n("standard-section"),u=n("tabs-list-section"),p=n("loading-section"),g=n("text-view"),h=n("tv-list");return a(),d(h,{ref:"waterfallRef",class:"qt-waterfall-root-css",clipChildren:!1,clipPadding:!1,listenBoundEvent:!0,negativeKeyTime:"30",postContentDelay:"500",onScroll:e.onScroll,onItemClick:e.onItemClick,onItemFocused:e.onItemFocused,onItemBind:e.onItemBind,onItemAttached:e.onItemAttached,focusMemory:!1,cachePool:e.cachePool,preload:1,checkScrollOffsetOnStateChanged:!0,makeChildVisibleType:"center",scrollThresholdVertical:50,scrollEventThrottle:16,enableSelectOnFocus:!1,advancedFocusSearchSpan:"1",scrollYLesserReferenceValue:30,scrollYGreaterReferenceValue:30,shakePreCheckNumber:"4",blockFocusDirections:["down"],onScrollStateChanged:e.onScrollStateChanged},{default:y((()=>[i(" 普通版块"),T(c,{useDiff:!1,"cache-pool":e.flexCachePool,enablePlaceholder:e.enablePlaceholder},{default:y((()=>[f(e.$slots,"item")])),_:3},8,["cache-pool","enablePlaceholder"]),i("一行滚动 多级tab"),T(u,{enablePlaceholder:e.enablePlaceholder},{default:y((()=>[f(e.$slots,"listItem")])),_:3},8,["enablePlaceholder"]),i(" loading"),T(p),Bn,b("div",Vn,[T(g,{focusable:!1,gravity:"center",style:{width:"500px",height:"50px",color:"rgba(255,255,255,.5)","margin-top":"55px","align-self":"center","background-color":"transparent"},fontSize:28,text:"${text}"})]),f(e.$slots,"section")])),_:3},8,["onScroll","onItemClick","onItemFocused","onItemBind","onItemAttached","cachePool","onScrollStateChanged"])},$n.__scopeId="data-v-2e65df68",$n.__file="src/waterfall/index.vue";var zn,Un,qn=bo({name:"qt-tab",props:{prevLoadNumber:{type:Number,default:3},topBlank:{type:Number,default:0},classNavBar:{type:String,default:""},classRoot:{type:String,default:""},tabsDataStrategy:{type:String,default:"overTime"},classContent:{type:String,default:""},horizontal:{type:Boolean,default:!0},pageTransform:{type:Boolean,default:!0},hideOnSingleTab:{type:Boolean,default:!0},floatNavBar:{type:Boolean,default:!0},arrangeType:{type:String,default:"TB"},decorationCreator:{type:Function,default:null},contentNextFocus:{type:Object,default:()=>({up:"tabList",left:"tabList"})},headBlank:{type:Number,default:0},nodeGap:{type:Number,default:36},enableLoadMore:{type:Boolean,default:!0},triggerTask:{type:Array,default:()=>[]},blockViewPager:{type:Array,default:()=>[]},blockViewPagerVertical:{type:Array,default:()=>[]}},setup(e,t){const n=o(),a=o(!0),s=o(300),r=o(500),l=o(1),i=o(!0),c=o();let u;return{tabs:n,ifTabs:a,navBarRef:c,initTab:function(e){let t={defaultIndex:e.defaultIndex,focusIndex:e.defaultFocusIndex,data:e.tabItemList};n.value?.setTabsData(t)},initWaterfall:function(e){u=e},setTabPageData:function(e,t){const o={data:Ln(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};n.value?.setPageData(e,o)},addPageData:function(e,t,o=0){const a={data:Ln(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};n.value?.addPageData(e,a,o)},updatePageData:function(e,t){const o={data:Ln(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};n.value?.updatePageData(e,o)},blockRootFocus:function(){n.value?.blockRootFocus()},unBlockRootFocus:function(){n.value?.unBlockRootFocus()},focusBackToTop:function(){n.value?.focusBackToTop()},requestNodeFocus:function(e){n.value?.requestNodeFocus(e)},reloadAll:function(e=!0){n.value?.reloadAll(e)},reloadPage:function(e){n.value?.reloadPage(e)},setCurrentPage:function(e){n.value?.setCurrentPage(e)},requestTabFocus:function(e){n.value?.requestTabFocus(e)},invokeContentFunction:function(e,t,o){n.value?.invokeContentFunction(e,t,o)},invokeContentFunctionDirect:function(e,t){n.value?.invokeContentFunctionDirect(e,t)},contentScrollToFocus:function(e){n.value?.contentScrollToFocus(e)},getRootNodeViewState:function(e,t,o){n.value?.getRootNodeViewState(e,t,o)},getChildNodeViewState:function(e,t,o,a,s){n.value?.getChildNodeViewState(e,t,o,a,s)},dispatchUIFunctionOnChildNode:function(e,t,o,a,s){n.value?.dispatchUIFunctionOnChildNode(e,t,o,a,s)},updateItemMatched:function(e="id",t,o){n.value?.updateItemMatched(e,t,o)},updateRootNode:function(e,t,o){n.value?.updateRootNode(e,t,o)},updateChildNode:function(e,t,o,a){n.value?.updateChildNode(e,t,o,a)},destroy:function(){n.value?.destroy()},pageSwitchDelay:s,pageResumeDelay:r,rootOpacity:l,isTabHorizontal:i,onLoadTabPageData:function(e){const o=e.pageIndex,n=e.useDiff;t.emit("onLoadTabPageData",o,n)},onTabPageChanged:function(e){const o=e.pageIndex,n=e.data;t.emit("onTabPageChanged",o,n)},onTabEvent:function(e){const o=e.params,n=e.eventName,a=e.params.itemPosition;t.emit("onTabEvent",a,n,o)}}}});function jn(e,t,o=!0){let n=e.length;o?e.map(((e,o)=>{o!==n-1&&(e.decoration={bottom:t})})):e.map(((e,o)=>{o!==n-1&&(e.decoration={right:t})}))}qn.render=function(e,t,o,s,r,c){const u=n("qt-nav-bar"),p=n("qt-waterfall"),g=n("recycler-view-pager"),h=n("tabs");return e.ifTabs?(a(),d(h,{key:0,ref:"tabs",class:l(["tabs-root-css",e.classRoot]),dataStrategy:e.tabsDataStrategy,hideOnSingleTab:this.hideOnSingleTab,pageSwitchDelay:e.pageSwitchDelay,resumeTaskDelay:e.pageResumeDelay,suspension:this.floatNavBar,clipChildren:!1,outOfDateTime:3e5,blockFocusDirections:["down"],onLoadPage:e.onLoadTabPageData,onPageChanged:e.onTabPageChanged,onTabEvent:e.onTabEvent},{default:y((()=>[T(u,{ref:"navBarRef",name:"tabList",focusable:!1,class:"tab-nav-bar-root-css","class-name":e.classNavBar,"text-key":"text",clipChldren:!1,horizontal:e.isTabHorizontal},{default:y((()=>[f(e.$slots,"navItem")])),_:3},8,["class-name","horizontal"]),T(g,{nextFocusName:e.contentNextFocus,ref:"viewPager",class:l(e.classContent),name:"content",loadingItemType:-1,clipChldren:!1,opacity:e.rootOpacity,focusable:!1,enableTransform:e.pageTransform,triggerTask:e.triggerTask,direction:e.isTabHorizontal?"horizontal":"vertical",blockFocusDirections:e.isTabHorizontal?e.blockViewPager:e.blockViewPagerVertical},{default:y((()=>[T(p)])),_:1},8,["nextFocusName","class","opacity","enableTransform","triggerTask","direction","blockFocusDirections"])])),_:3},8,["dataStrategy","hideOnSingleTab","pageSwitchDelay","resumeTaskDelay","suspension","class","onLoadPage","onPageChanged","onTabEvent"])):i("v-if",!0)},qn.__file="src/tab/index.vue",function(e){e.QT_DIRECTION_UP="up",e.QT_DIRECTION_DOWN="down",e.QT_DIRECTION_RIGHT="right",e.QT_DIRECTION_LEFT="left"}(zn||(zn={})),function(e){e[e.SCROLL_STATE_IDLE=0]="SCROLL_STATE_IDLE",e[e.SCROLL_STATE_DRAGGING=1]="SCROLL_STATE_DRAGGING",e[e.SCROLL_STATE_SETTLING=2]="SCROLL_STATE_SETTLING"}(Un||(Un={}));const Mn=[D,A,pn,vn,$n,qn],Wn=n=>{n.component("qt-loading-view",{setup(e,t){const n=o();return()=>k("LoadingViewComponent",{ref:n})}}),function(n){const a=t({props:{loadMore:{type:Function,default:function(){return[1,1]}},openPage:{type:Boolean,default:!1},preloadNo:{type:Number,default:0},defaultFocus:{type:Number,default:-1}},emits:["item-click","scroll","item-focused","item-attached","item-detached","item-bind","item-unbind","load-more","scroll-state-changed","focus-search-failed","scrollYGreaterReference","scrollYLesserReference"],setup(t,n){const a=o(),s=F(),r={apkVersion:String(s.getESSDKVersionCode()).slice(0,3),recordTarget:[],changeTarget:[],keyArr:[],type:"",pageNo:-1,isStopPage:!1,setListDataTimer:-1,stopPageTimer:-1,defaultFocusTimer:-1,pushDataTimer:-1};g((()=>t.openPage),((e,o)=>{1==e&&e&&(r.pageNo=1,r.isStopPage=!1,t.loadMore(r.pageNo))}));const l=e=>{0==r.recordTarget.length&&(r.recordTarget=c(e),i(r.recordTarget,-1),r.changeTarget=e,t.openPage?p(r.recordTarget.concat([{type:"1002",decoration:{top:18,bottom:18,right:30,left:30}}])):p(r.recordTarget),t.defaultFocus>-1&&(r.defaultFocusTimer&&clearTimeout(r.defaultFocusTimer),r.defaultFocusTimer=setTimeout((()=>{S(t.defaultFocus)}),500)));let o={get(e,o,n){if("__ob__"!=o&&"symbol"!=typeof o&&"map"!=o&&"length"!=o&&"constructor"!=o&&"_isVue"!=o&&"valueOf"!=o&&"toString"!=o&&"observeArray"!=o&&"dep"!=o&&"notify"!=o&&"subs"!=o&&"slice"!=o)if(r.keyArr.push(o),-1!=r.keyArr.indexOf("push"))r.type="push";else{if(-1!=r.keyArr.indexOf("splice"))return r.type="splice",function(...t){return e.splice(...t),-1!=r.keyArr.indexOf("list")?(r.recordTarget[r.keyArr[0]].list.splice(...t),v(Number(r.keyArr[0]),r.recordTarget[r.keyArr[0]])):1==t.length?(y(Number(t[0]),r.recordTarget.length-t[0]+1),r.recordTarget.splice(...t)):2==t.length?(y(Number(t[0]),t[1]),r.recordTarget.splice(...t)):3==t.length&&(e.splice(t[0],t[1],...t[2]),r.recordTarget.splice(t[0],t[1],...t[2]),0==t[1]?Number(r.apkVersion)>2.2&&_(t[0],t[2]):T(t[0],t[1],t[2])),r.keyArr=[],Reflect.get(e,o,n)};if(-1!=r.keyArr.indexOf("pop"))return r.type="pop",function(){return e.pop(),-1!=r.keyArr.lastIndexOf("list")?(r.recordTarget[r.keyArr[0]].list.pop(),v(Number(r.keyArr[0]),r.recordTarget[r.keyArr[0]])):(y(Number(r.recordTarget.length-1),1),r.recordTarget.pop()),r.keyArr=[],Reflect.get(e,o,n)};if(-1!=r.keyArr.indexOf("forEach"))return r.type="forEach",function(a){return e.forEach((e=>{a(e)})),r.recordTarget=[],r.recordTarget=c(e),t.openPage?p(r.recordTarget.concat([{type:"1002",decoration:{top:15,left:30}}])):p(r.recordTarget),r.keyArr=[],Reflect.get(e,o,n)};if(-1!=r.keyArr.indexOf("concat"))return r.type="concat",function(a){return e.concat(a),-1!=r.keyArr.lastIndexOf("list")?(r.recordTarget[r.keyArr[0]].list=r.recordTarget[r.keyArr[0]].list.concat(a),v(Number(r.keyArr[0]),r.recordTarget[r.keyArr[0]])):t.openPage&&!r.isStopPage?(r.recordTarget.concat(a),setTimeout((()=>{h(a.concat([{type:"1002",decoration:{bottom:18,right:30,left:30}}]),1)}),300)):f(a),r.keyArr=[],Reflect.get(e,o,n)};if(-1!=r.keyArr.indexOf("deleteItem"))return function(...t){let a=!1;for(let o=0;o<r.recordTarget.length;o++){const n=r.recordTarget[o];if(n.id&&n.id==t[0])return a=!0,y(Number(o),t[1]),e.splice(Number(o),t[1]),r.recordTarget.splice(Number(o),t[1]),!1;if(n.list&&n.list.length>0)for(let s=0;s<n.list.length;s++){const l=n.list[s];if(l.id&&l.id==t[0])return a=!0,e[o].list.splice(Number(s),t[1]),r.recordTarget[o].list.splice(Number(s),t[1]),v(Number(o),r.recordTarget[o]),!1}}return a||console.log("deleteItem:没有找到相对应id"),r.keyArr=[],Reflect.get(e,o,n)};if(-1!=r.keyArr.indexOf("updateItemProps"))return r.type="updateItemProps",function(...t){let a=t[2];return u(a)&&(Object.keys(a).forEach((o=>{e[t[0]][`${o}`]=a[`${o}`],r.recordTarget[t[0]][`${o}`]=a[`${o}`]})),-1!=r.keyArr.indexOf("list")?console.log("updateItemProps: 不支持嵌套调用updateItemProps"):b(t[0],t[1],t[2])),r.keyArr=[],Reflect.get(e,o,n)};r.type=""}const a=Reflect.get(e,o,n);return u(a)&&"__ob__"!=o&&"dep"!=o&&"subs"!=o?l(a):(-1==r.keyArr.indexOf("push")&&(r.keyArr=[]),a)},set(e,o,n,a){const s=e[o];d(e,o);const l=Reflect.set(e,o,n,a);if((!u(s)&&s!==n||u(s))&&"push"!=r.type)if(r.keyArr.push(o),-1!=r.keyArr.lastIndexOf("list")){let e=r.keyArr.lastIndexOf("list"),t=r.keyArr.lastIndexOf("list")+2,o={};for(let e=0;e<t;e++){let t=r.keyArr[e];o=o?o[t]:r.changeTarget[t]}o.name="name"+r.keyArr[e-1]+r.keyArr[e+1],v(Number(r.keyArr[0]),r.changeTarget[r.keyArr[0]]),r.recordTarget[r.keyArr[0]].list[r.keyArr[e+1]]=r.changeTarget[r.keyArr[0]].list[r.keyArr[e+1]],r.recordTarget[r.keyArr[0]].list[r.keyArr[e+1]].name="name"+r.keyArr[e-1]+r.keyArr[e+1]}else r.recordTarget[r.keyArr[0]]=r.changeTarget[r.keyArr[0]],r.recordTarget[r.keyArr[0]].name="name"+r.keyArr[0],v(Number(r.keyArr[0]),r.changeTarget[r.keyArr[0]]);if(o&&"push"==r.type&&s!==n)-1!=r.keyArr.lastIndexOf("list")?(r.keyArr.push(o),r.recordTarget[r.keyArr[0]].list.push(n)):(r.keyArr.push(o),r.recordTarget.push(n));else{if("push"==r.type)if(-1!=r.keyArr.lastIndexOf("list"))v(Number(r.keyArr[0]),r.recordTarget[r.keyArr[0]]);else{let e=r.recordTarget.slice(r.keyArr[1]);r.pushDataTimer&&clearTimeout(r.pushDataTimer),t.openPage&&!r.isStopPage?r.pushDataTimer=setTimeout((()=>{h(e.concat([{type:"1002",decoration:{bottom:18,right:30,left:30}}]),1)}),300):r.pushDataTimer=setTimeout((()=>{f(e)}),300)}r.keyArr=[]}return l}};return new Proxy(e,o)},i=(e,t)=>{for(let o=0;o<e.length;o++){const n=e[o];n.name=t>=0?"name"+t+o:"name"+o,n.list&&n.list.length>0&&i(n.list,o)}},c=(e={})=>{let t=null;if("object"==typeof e&&null!==e)for(var o in t=e instanceof Array?[]:{},e)t[o]=c(e[o]);else t=e;return t},u=e=>null!==e&&"object"==typeof e,d=(e,t)=>{Object.hasOwnProperty.call(e,t)},p=t=>{r.setListDataTimer&&clearTimeout(r.setListDataTimer),r.setListDataTimer=setTimeout((()=>{e.callUIFunction(a.value,"setListData",t)}),100)},f=t=>{e.callUIFunction(a.value,"addListData",t)},h=(t,o)=>{e.callUIFunction(a.value,"addListDataWithParams",[t,o])},y=(t,o)=>{e.callUIFunction(a.value,"deleteItemRange",[t,o])},v=(t,o)=>{e.callUIFunction(a.value,"updateItem",[t,o])},T=(t,o,n)=>{e.callUIFunction(a.value,"updateItemRange",[t,o,n])},b=(t,o,n)=>{e.callUIFunction(a.value,"updateItemProps",[o,t,n,!0])},_=(t,o)=>{e.callUIFunction(a.value,"insertItemRange",[t,o])},S=t=>{e.callUIFunction(a.value,"requestChildFocus",[t])};return m((()=>{r.recordTarget=[],r.changeTarget.length=0,r.keyArr=[],r.isStopPage=!1,r.pageNo=1,r.type="",r.setListDataTimer&&clearTimeout(r.setListDataTimer),r.defaultFocusTimer&&clearTimeout(r.defaultFocusTimer),r.pushDataTimer&&clearTimeout(r.pushDataTimer),r.stopPageTimer&&clearTimeout(r.stopPageTimer)})),n.expose({viewRef:a,init:l,...r,undataItemName:i,hasChanged:(e,t)=>e!==t&&(e==e||t==t),updateItem:v,updateItemList:T,hasFocus:t=>{e.callUIFunction(a.value,"hasFocus",(e=>{t(e)}))},updateItemProps:b,setListData:p,insertItem:_,addListData:f,addListDataWithParams:h,dispatchItemFunction:(t,o,n,s)=>{e.callUIFunction(a.value,"dispatchItemFunction",[t,o,n,s])},deleteItem:y,setBlockFocusDirectionsOnFail:t=>{e.callUIFunction(a.value,"setBlockFocusDirectionsOnFail",[t])},setListDataWithParams:(t,o)=>{e.callUIFunction(a.value,"setListDataWithParams",[t,o])},prepareForRecycle:()=>{e.callUIFunction(a.value,"prepareForRecycle",[])},setDisplay:t=>{e.callUIFunction(a.value,"setDisplay",[t])},scrollToTop:()=>{e.callUIFunction(a.value,"scrollToTop",[])},changeDisplayState:(t,o)=>{e.callUIFunction(a.value,"changeDisplayState",[t,o])},notifySaveInstance:()=>{e.callUIFunction(a.value,"notifySaveInstance",[])},notifyRestoreInstance:()=>{e.callUIFunction(a.value,"notifyRestoreInstance",[])},pausePostTask:()=>{e.callUIFunction(a.value,"pausePostTask",[])},resumePostTask:()=>{e.callUIFunction(a.value,"resumePostTask",[])},getScrollOffset:t=>{e.callUIFunction(a.value,"getScrollOffset",[],t)},scrollToPosition:t=>{e.callUIFunction(a.value,"scrollToPosition",[t])},scrollToPositionOffset:(t,o,n,s,r)=>{e.callUIFunction(a.value,"scrollToPositionWithOffset",[o,s,n])},destroy:()=>{e.callUIFunction(a.value,"destroy",[])},setInitPosition:t=>{e.callUIFunction(a.value,"setInitPosition",[t])},requestFocus:S,clearPostTask:()=>{e.callUIFunction(a.value,"clearAllPostTask",[])},clearFocus:()=>{e.callUIFunction(a.value,"clearFocus",[])},setSelectPosition:(t,o)=>{e.callUIFunction(a.value,"setSelectChildPosition",[t,o])},blockRootFocus:()=>{e.callUIFunction(a.value,"blockRootFocus",[])},unBlockRootFocus:()=>{e.callUIFunction(a.value,"unBlockRootFocus",[])},setBackgroundColor:t=>{e.callUIFunction(a.value,"setBackgroundColor",[t])},stopPage:()=>{r.stopPageTimer&&clearTimeout(r.stopPageTimer),r.stopPageTimer=setTimeout((()=>{y(r.recordTarget.length,1)}),400),r.isStopPage=!0}}),()=>{const e=n.slots.default&&n.slots.default();return k("FastListView",{ref:a,onItemClick:e=>{n.emit("item-click",e)},onScroll:e=>{n.emit("scroll",e)},onItemFocused:e=>{n.emit("item-focused",e)},onAttachedToWindow:e=>{n.emit("item-attached",e)},onDetachedFromWindow:e=>{n.emit("item-detached",e)},onBindItem:e=>{n.emit("item-bind",e)},onUnbindItem:e=>{n.emit("item-unbind",e)},onLoadMore:e=>{n.emit("load-more",e)},onScrollStateChanged:e=>{n.emit("scroll-state-changed",e)},onFocusSearchFailed:e=>{n.emit("focus-search-failed",e)},onScrollYGreaterReference:e=>{n.emit("scrollYGreaterReference",e)},onScrollYLesserReference:e=>{n.emit("scrollYLesserReference",e)}},e)}}});n.component("qt-list-view",a)}(n),function(n){const a=t({emits:["item-focused","item-attached","item-detached","item-bind","item-unbind"],setup(t,n){const a=o();return n.expose({viewRef:a,updateItem:(t,o)=>{e.callUIFunction(a.value,"updateItem",[t,o])},dispatchItemFunction:(t,o,n,s)=>{e.callUIFunction(a.value,"dispatchItemFunction",[t,o,n,s])},updateItemProps:(t,o,n)=>{e.callUIFunction(a.value,"updateItemProps",[o,t,n,!0])},batch:t=>{e.callUIFunction(a.value,"batch",[t])}}),()=>{const e=n.slots.default&&n.slots.default();return k("FastListView",{ref:a,onBindItem:e=>{n.emit("item-bind",e)},onItemFocused:e=>{n.emit("item-focused",e)},onAttachedToWindow:e=>{n.emit("item-attached",e)},onDetachedFromWindow:e=>{n.emit("item-detached",e)},onItemRecycled:e=>{n.emit("item-unbind",e)}},e)}}});n.component("qt-list-item",a)}(n);for(let e in Mn)n.component(Mn[e].name,Mn[e])};export{zn as QTDirections,Un as QTScrollState,Sn as QTWaterfallItemType,_n as QTWaterfallSectionType,Wn as QuickTVUI,jn as arrangeChildren4ListView};
|
|
1
|
+
import{Native as e}from"@extscreen/es3-vue";import{defineComponent as t,ref as o,resolveComponent as n,openBlock as a,createElementBlock as s,normalizeStyle as r,normalizeClass as l,createCommentVNode as i,withDirectives as c,vShow as u,createBlock as d,toDisplayString as p,renderSlot as f,watch as g,onMounted as h,onBeforeUnmount as m,withCtx as y,Fragment as v,createVNode as T,createElementVNode as b,pushScopeId as _,popScopeId as S,reactive as I,h as k}from"vue";import{useESToast as x,useES as F,useESLog as P,ESLogLevel as N}from"@extscreen/es3-core";var D=t({name:"qt-button",props:{type:{type:String,default:"default"},itemType:{type:Number,default:2e4},focusBorder:{type:Boolean,default:!1},focusScale:{type:Number,default:1.08},focusable:{type:Boolean,default:!0},enableFlexStyle:{type:Boolean,default:!1},icon:{type:String,default:null},focusIcon:{type:String,default:null},text:{type:String,default:""},gradientFocusBackground:{type:Object,default:()=>{}},gradientSelectedBackground:{type:Object,default:()=>null},gradientBackground:{type:Object,default:()=>null},size:String,disabled:Boolean,circle:Boolean,round:Boolean,square:Boolean,buttonStyle:Object,textStyle:Object,iconStyle:Object,focusIconStyle:Object,iconParentStyle:Object},setup(t,n){const a=o(),s=o(!1);return{focused:s,requestFocus:function(){e.callUIFunction(a.value,"requestFocus",[])},requestFocusDirectly:function(){e.callUIFunction(a.value,"requestFocusDirectly",[])},onFocus:function(e){s.value=e.isFocused,n.emit("focus",e.isFocused)},onClick:function(e){n.emit("click")}}}});const E=["focusable","enableFocusBorder","focusScale"],C=["gradientBackground"],R=["gradientBackground"],L=["gradientBackground"],w=["src"],O=["src"];D.render=function(e,t,o,g,h,m){const y=n("text-view");return a(),s("div",{ref:"buttonRef",clipChildren:!1,focusable:e.focusable,enableFocusBorder:e.focusBorder,focusScale:e.focusScale,onClick:t[0]||(t[0]=(...t)=>e.onClick&&e.onClick(...t)),name:"textButton",eventClick:"",eventFocus:"",onFocus:t[1]||(t[1]=(...t)=>e.onFocus&&e.onFocus(...t)),style:r(e.buttonStyle),class:l([e.type?"quick-button--"+e.type:"",e.size?"quick-button--"+e.size:"",{"is-disabled-button":e.disabled,"is-circle":e.circle,"is-round":e.round,"is-square":e.square}])},[i(" gradient "),e.gradientFocusBackground?(a(),s("div",{key:0,class:"button-gradient-background-css",gradientBackground:e.gradientFocusBackground,focusable:!1,showOnState:"focused"},null,8,C)):i("v-if",!0),e.gradientSelectedBackground?(a(),s("div",{key:1,class:"button-gradient-background-css",gradientBackground:e.gradientSelectedBackground,focusable:!1,showOnState:"selected"},null,8,R)):i("v-if",!0),e.gradientBackground?(a(),s("div",{key:2,class:"button-gradient-background-css",gradientBackground:e.gradientBackground,focusable:!1,showOnState:"normal"},null,8,L)):i("v-if",!0),i(" -----------------------------icon--------------------------------- "),!e.icon&&!e.focusIcon||e.$slots.default?i("v-if",!0):(a(),s("div",{key:3,duplicateParentState:!0,style:r(e.iconParentStyle),flexStyle:"${iconParentStyle}",class:l(["quick-button-icon-parent",e.size?"quick-button-icon--parent"+e.size:""])},[e.icon&&!e.$slots.default?c((a(),s("img",{key:0,style:r(e.iconStyle),flexStyle:"${iconStyle}",duplicateParentState:!0,class:l(["quick-button-icon",e.size?"quick-button-icon--"+e.size:"",{"is-square-icon":e.square}]),focusable:!1,src:e.enableFlexStyle?"${"+e.icon+"}":e.icon,showOnState:"normal"},null,14,w)),[[u,!e.focused]]):i("v-if",!0),e.focusIcon&&!e.$slots.default?c((a(),s("img",{key:1,style:r(e.focusIconStyle?e.focusIconStyle:e.iconStyle),flexStyle:"${iconStyle}",class:l(["quick-button-icon",e.size?"quick-button-icon--"+e.size:"",{"is-square-icon":e.square}]),focusable:!1,duplicateParentState:!0,src:e.enableFlexStyle?"${"+e.focusIcon+"}":e.focusIcon,showOnState:"focused"},null,14,O)),[[u,e.focused]]):i("v-if",!0)],6)),i(" ------------------------------------------------------------------- "),i(" text "),e.enableFlexStyle?(a(),d(y,{key:4,style:r(e.textStyle),duplicateParentState:"",class:l([e.type?"quick-button-text--"+e.type:"",{"is-disabled-text":e.disabled,"is-square-text":e.square}]),focusable:!1,text:"${"+e.text+"}",autoWidth:"",autoHeight:""},null,8,["style","class","text"])):e.text&&!e.$slots.default?(a(),s("span",{key:5,style:r(e.textStyle),duplicateParentState:"",class:l([e.type?"quick-button-text--"+e.type:"",{"is-disabled-text":e.disabled,"is-square-text":e.square}]),focusable:!1},p(e.text),7)):i("v-if",!0),f(e.$slots,"default")],46,E)},D.__scopeId="data-v-46a594e4",D.__file="src/button/index.vue";var A=t({name:"qt-grid-view",props:{loadMore:{type:Function,default:function(){return[1,1]}},openPage:{type:Boolean,default:!1},spanCount:{type:Number,default:0},pageSize:{type:Number},preloadNo:{type:Number,default:0},defaultFocus:{type:Number,default:-1},areaWidth:{type:Number,default:1200},blockFocusDirections:{type:Array,default:()=>[]}},setup(e,t){x();const n=F(),a=o(),s={apkVersion:String(n.getESSDKVersionCode()).slice(0,3),recordTarget:[],changeTarget:[],listResult:[],keyArr:[],type:"",pageNo:-1,isStopPage:!1,setListDataTimer:-1,stopPageTimer:-1,defaultFocusTimer:-1,pushDataTimer:-1};g((()=>e.openPage),((t,o)=>{1==t&&t&&(s.pageNo=1,s.isStopPage=!1,e.loadMore(s.pageNo))})),h((()=>{}));const r=t=>{0==s.recordTarget.length&&(s.recordTarget=i(t),s.changeTarget=t,"2.1"==s.apkVersion?(l(),e.openPage&&e.pageSize&&s.listResult.length>=e.pageSize/e.spanCount?a.value.setListData(s.listResult.concat([{type:"1002",decoration:{top:15,left:30}}])):a.value.setListData(s.listResult)):e.openPage&&e.pageSize&&s.recordTarget.length>=e.pageSize?a.value.setListData(s.recordTarget.concat([{type:"1002",decoration:{top:15,left:30}}])):a.value.setListData(s.recordTarget),e.defaultFocus>-1&&(s.defaultFocusTimer&&clearTimeout(s.defaultFocusTimer),s.defaultFocusTimer=setTimeout((()=>{a.value.scrollToPosition(e.defaultFocus),a.value.setItemFocused(e.defaultFocus)}),800)));let o={get(t,o,n){if("__ob__"!=o&&"symbol"!=typeof o&&"map"!=o&&"length"!=o&&"constructor"!=o&&"_isVue"!=o&&"valueOf"!=o&&"toString"!=o&&"observeArray"!=o&&"dep"!=o&&"notify"!=o&&"subs"!=o&&"slice"!=o)if(s.keyArr.push(o),-1!=s.keyArr.indexOf("push"))s.type="push";else{if(-1!=s.keyArr.indexOf("splice"))return s.type="splice",function(...e){if(t.splice(...e),"2.1"==s.apkVersion)if(1==e.length||2==e.length)s.recordTarget.splice(...e),l(),a.value.setListData(s.listResult);else if(t.splice(e[0],e[1],...e[2]),s.recordTarget.splice(e[0],e[1],...e[2]),l(),0==e[1])a.value.setListData(s.listResult);else{let t=-1,o=0,n=0;for(let a=0;a<s.listResult.length;a++){const r=s.listResult[a];if("1003"==r.type)t++,e[0]==t&&(o=a),e[0]+e[1]-1==t&&(n=a);else for(let s=0;s<r.list.length;s++)r.list[s],t++,e[0]==t&&(o=a),e[0]+e[1]-1==t&&(n=a)}a.value.updateItemRange(o,n-o+1,s.listResult.slice(o,n+1))}else 1==e.length?(a.value.deleteItemRange(Number(e[0]),s.recordTarget.length-e[0]),s.recordTarget.splice(...e)):2==e.length?(a.value.deleteItemRange(Number(e[0]),e[1]),s.recordTarget.splice(...e)):3==e.length&&(t.splice(e[0],e[1],...e[2]),s.recordTarget.splice(e[0],e[1],...e[2]),0==e[1]?Number(s.apkVersion)>2.2&&a.value.insertItemRange(e[0],e[2]):a.value.updateItemRange(e[0],e[1],e[2]));return s.keyArr=[],Reflect.get(t,o,n)};if(-1!=s.keyArr.indexOf("pop"))return s.type="pop",function(){return t.pop(),"2.1"==s.apkVersion?(s.listResult[s.listResult.length-1].list.length<1&&s.listResult.pop(),s.listResult[s.listResult.length-1].list.pop(),a.value.updateItem(Number(s.listResult.length-1),s.listResult[s.listResult.length-1])):a.value.deleteItemRange(Number(s.recordTarget.length-1),1),s.recordTarget.pop(),s.keyArr=[],Reflect.get(t,o,n)};if(-1!=s.keyArr.indexOf("forEach"))return s.type="forEach",function(r){return t.forEach((e=>{r(e)})),s.recordTarget=[],s.recordTarget=i(t),"2.1"==s.apkVersion?(l(),e.openPage&&e.pageSize&&s.listResult.length>=e.pageSize&&!s.isStopPage?a.value.setListData(s.listResult.concat([{type:"1002",decoration:{top:15,left:30}}])):a.value.setListData(s.listResult)):e.openPage&&e.pageSize&&s.recordTarget.length>=e.pageSize&&!s.isStopPage?a.value.setListData(s.recordTarget.concat([{type:"1002",decoration:{top:15,left:30}}])):a.value.setListData(s.recordTarget),s.keyArr=[],Reflect.get(t,o,n)};if(-1!=s.keyArr.indexOf("concat"))return s.type="concat",function(r){if("[object Array]"===Object.prototype.toString.call(r))if(t.concat(r),s.recordTarget.concat(r),"2.1"==s.apkVersion){s.pushDataTimer&&clearTimeout(s.pushDataTimer);let t=s.listResult.length,o=s.listResult.slice(s.listResult.length-1)[0];l();let n=s.listResult.slice(t);e.openPage&&!s.isStopPage?e.pageSize||2!=s.pageNo?0==n.length||"1003"!=o.type&&o.list.length<e.spanCount?(n=s.listResult.slice(t-1),s.pushDataTimer=setTimeout((()=>{a.value.addListDataWithParams(n.concat([{type:"1002",decoration:{top:15,left:30}}]),2)}),300)):s.pushDataTimer=setTimeout((()=>{a.value.addListDataWithParams(n.concat([{type:"1002",decoration:{top:15,left:30}}]),1)}),300):s.pushDataTimer=setTimeout((()=>{a.value.addListData(n.concat([{type:"1002",decoration:{top:15,left:30}}]))}),300):a.value.setListData(s.listResult)}else e.openPage&&!s.isStopPage?e.pageSize||2!=s.pageNo?s.pushDataTimer=setTimeout((()=>{a.value.addListDataWithParams(r.concat([{type:"1002",decoration:{top:15,left:30}}]),1)}),300):s.pushDataTimer=setTimeout((()=>{a.value.addListData(r.concat([{type:"1002",decoration:{top:15,left:30}}]))}),300):s.pushDataTimer=setTimeout((()=>{a.value.addListData(r)}),300);else console.log("concat:参数类型必须为数组");return s.keyArr=[],Reflect.get(t,o,n)};if(-1!=s.keyArr.indexOf("deleteItem"))return function(...e){let r=!1;for(let o=0;o<s.recordTarget.length;o++){const n=s.recordTarget[o];0!=n.id&&!n.id||n.id!=e[0]||(r=!0,t.splice(Number(o),e[1]),s.recordTarget.splice(Number(o),e[1]),"2.1"==s.apkVersion?(l(),a.value.setListData(s.listResult)):a.value.deleteItemRange(Number(o),e[1]))}return r||console.log("deleteItem:没有找到相对应id"),s.keyArr=[],Reflect.get(t,o,n)};if(-1!=s.keyArr.indexOf("updateItemProps"))return s.type="updateItemProps",function(...e){let r=e[2];if(c(r))if(Object.keys(r).forEach((o=>{t[e[0]][`${o}`]=r[`${o}`],s.recordTarget[e[0]][`${o}`]=r[`${o}`]})),"2.1"==s.apkVersion){l();let t=-1,o=0,n=0;for(let a=0;a<s.listResult.length;a++){const r=s.listResult[a];if("1003"==r.type)t++,e[0]==t&&(o=a,n=0);else for(let s=0;s<r.list.length;s++)r.list[s],t++,e[0]==t&&(o=a,n=s)}a.value.dispatchItemFunction(o,"tv_list_inner","updateItemProps",[n,e[1],e[2]])}else a.value.updateItemProps(e[0],e[1],e[2]);return s.keyArr=[],Reflect.get(t,o,n)};s.type=""}const u=Reflect.get(t,o,n);return c(u)&&"__ob__"!=o&&"dep"!=o&&"subs"!=o?r(u):(-1==s.keyArr.indexOf("push")&&(s.keyArr=[]),u)},set(t,o,n,r){const i=t[o],u=Reflect.set(t,o,n,r);if((!c(i)&&i!==n||c(i))&&"push"!=s.type)if(s.keyArr.push(o),s.recordTarget[s.keyArr[0]]=s.changeTarget[s.keyArr[0]],"2.1"==s.apkVersion){let e=s.keyArr[0],t=-1;for(let o=0;o<s.listResult.length;o++){const n=s.listResult[o];if("1003"==n.type)t++,t==e&&(s.listResult[o]=s.recordTarget[s.keyArr[0]],a.value.updateItem(Number(o),s.listResult[o]));else for(let r=0;r<n.list.length;r++)if(n.list[r],t++,t==e){s.listResult[o].list[r]=s.recordTarget[s.keyArr[0]];let e=s.listResult[o].list[r];e.decoration&&(e.decoration.top&&(e.decoration.top=0),e.decoration.bottom&&(e.decoration.bottom=0)),a.value.updateItem(Number(o),s.listResult[o])}}}else a.value.updateItem(Number(s.keyArr[0]),s.changeTarget[s.keyArr[0]]);if(o&&"push"==s.type&&i!==n)s.keyArr.push(o),s.recordTarget.push(n);else{if("push"==s.type&&s.keyArr.length>1)if("2.1"==s.apkVersion){s.pushDataTimer&&clearTimeout(s.pushDataTimer);let t=s.listResult.length,o=s.listResult.slice(s.listResult.length-1)[0];l();let n=s.listResult.slice(t);e.openPage&&!s.isStopPage?e.pageSize||2!=s.pageNo?0==n.length||"1003"!=o.type&&o.list.length<e.spanCount?(n=s.listResult.slice(t-1),s.pushDataTimer=setTimeout((()=>{a.value.addListDataWithParams(n.concat([{type:"1002",decoration:{top:15,left:30}}]),2)}),300)):s.pushDataTimer=setTimeout((()=>{a.value.addListDataWithParams(n.concat([{type:"1002",decoration:{top:15,left:30}}]),1)}),300):s.pushDataTimer=setTimeout((()=>{a.value.addListData(n.concat([{type:"1002",decoration:{top:15,left:30}}]))}),300):a.value.setListData(s.listResult)}else{let t=s.recordTarget.slice(s.keyArr[1]);s.pushDataTimer&&clearTimeout(s.pushDataTimer),e.openPage&&!s.isStopPage?e.pageSize||2!=s.pageNo?s.pushDataTimer=setTimeout((()=>{a.value.addListDataWithParams(t.concat([{type:"1002",decoration:{top:15,left:30}}]),1)}),300):s.pushDataTimer=setTimeout((()=>{a.value.addListData(t.concat([{type:"1002",decoration:{top:15,left:30}}]))}),300):s.pushDataTimer=setTimeout((()=>{a.value.addListData(t)}),300)}s.keyArr=[]}return u}};return new Proxy(t,o)},l=()=>{let t=i(s.recordTarget);s.listResult=[];let o=0,n=[];for(let e=0;e<t.length;e++){let o=t[e];if("1003"==o.type)n.push(o);else if(o.decoration.top&&(o.toCompatibleSaveTopVal=o.decoration.top,o.decoration.top=0),o.decoration.bottom&&(o.toCompatibleSaveBottompVal=o.decoration.bottom,o.decoration.bottom=0),n[n.length-1]&&1==n[n.length-1].type)n[n.length-1].list.push(o);else{let e={type:1,list:[]};e.list.push(o),n.push(e)}}for(let t=0;t<n.length;t++){const a=n[t];if("1003"==a.type)s.listResult.push(a);else for(let t=0;t<a.list.length;t+=e.spanCount){const n=a.list[t];let r={top:-1,bottom:-1};n.decoration&&(r.top=n.toCompatibleSaveTopVal?n.toCompatibleSaveTopVal:0,r.bottom=n.toCompatibleSaveBottompVal?n.toCompatibleSaveBottompVal:0);const l={type:1,decoration:r,name:"name"+o,list:a.list.slice(t,t+e.spanCount)};o++,s.listResult.push(l)}}},i=(e={})=>{let t=null;if("object"==typeof e&&null!==e)for(var o in t=e instanceof Array?[]:{},e)t[o]=i(e[o]);else t=e;return t},c=e=>null!==e&&"object"==typeof e,u=e=>{if("2.1"==s.apkVersion){let t=-1;for(let o=0;o<s.listResult.length;o++){const n=s.listResult[o];if("1003"==n.type)t++,t==e&&a.value.scrollToPosition(o);else for(let s=0;s<n.list.length;s++)n.list[s],t++,t==e&&a.value.scrollToPosition(o)}}else a.value.scrollToPosition(e)},d=e=>{if("2.1"==s.apkVersion){let t=-1,o=0,n=0;for(let a=0;a<s.listResult.length;a++){const r=s.listResult[a];if("1003"==r.type)t++;else for(let s=0;s<r.list.length;s++)r.list[s],t++,e==t&&(o=a,n=s)}a.value.dispatchItemFunction(o,"tv_list_inner","requestChildFocus",[n])}else a.value.requestChildFocus(e)},p=(e,t)=>{if("2.1"==s.apkVersion){let t=-1,o=0,n=0;for(let a=0;a<s.listResult.length;a++){const r=s.listResult[a];if("1003"==r.type)t++;else for(let s=0;s<r.list.length;s++)r.list[s],t++,e==t&&(o=a,n=s)}a.value.dispatchItemFunction(o,"tv_list_inner","setSelectChildPosition",[n])}else a.value.setSelectChildPosition(e,t)},f=()=>{a.value.destroy()};return m((()=>{s.recordTarget=[],s.listResult=[],s.changeTarget=null,s.isStopPage=!1,s.keyArr=[],s.pageNo=1,s.isStopPage=!1,s.type="",f(),s.setListDataTimer&&clearTimeout(s.setListDataTimer),s.pushDataTimer&&clearTimeout(s.pushDataTimer),s.stopPageTimer&&clearTimeout(s.stopPageTimer),s.defaultFocusTimer&&clearTimeout(s.defaultFocusTimer)})),{tv_list:a,...s,init:r,dealData:l,copyObj:i,isObject:c,hasChanged:(e,t)=>e!==t&&(e==e||t==t),hasOwn:(e,t)=>{Object.hasOwnProperty.call(e,t)},onItemClick:e=>{if("2.1"==s.apkVersion){let t=-1,o=e.position,n=e.parentPosition;for(let a=0;a<e.parentPosition+1;a++){const r=s.listResult[a];if("1003"==r.type)t++;else for(let s=0;s<r.list.length;s++)t++,o==s&&n==a&&(e.position=t)}}t.emit("item-click",e)},onItemBind:o=>{"2.1"==s.apkVersion?s.isStopPage||o.position!=s.listResult.length-1-e.preloadNo/e.spanCount||(s.pageNo++,e.loadMore(s.pageNo)):s.isStopPage||o.position!=s.recordTarget.length-1-e.preloadNo||(s.pageNo++,e.loadMore(s.pageNo)),t.emit("item-bind",o)},onItemFocused:e=>{if("2.1"==s.apkVersion){let t=-1,o=e.position,n=e.parentPosition;for(let a=0;a<e.parentPosition+1;a++){const r=s.listResult[a];if("1003"==r.type)t++;else for(let s=0;s<r.list.length;s++)t++,o==s&&n==a&&(e.position=t)}}t.emit("item-focused",e)},onItemUnbind:e=>{t.emit("item-unbind",e)},onScroll:e=>{t.emit("scroll",e)},onScrollStateChanged:e=>{t.emit("scroll-state-changed",e)},stopPage:t=>{s.stopPageTimer&&clearTimeout(s.stopPageTimer),s.stopPageTimer=setTimeout((()=>{"2.1"==s.apkVersion?e.pageSize?e.pageSize/e.spanCount<=s.listResult.length&&a.value.deleteItemRange(s.listResult.length,1):s.pageNo>2&&a.value.deleteItemRange(s.listResult.length,1):e.pageSize?e.pageSize<=s.recordTarget.length&&a.value.deleteItemRange(s.recordTarget.length,1):s.pageNo>2&&a.value.deleteItemRange(s.recordTarget.length,1)}),400),s.isStopPage=!0},scrollToTop:()=>{a.value.scrollToTop()},constclearFocus:()=>{a.value.clearFocus()},blockRootFocus:()=>{a.value.blockRootFocus()},unBlockRootFocus:()=>{a.value.unBlockRootFocus()},setDisplay:e=>{a.value.setDisplay(e)},scrollToPosition:u,scrollToIndex:(e,t,o)=>{if("2.1"==s.apkVersion){let n=-1;for(let r=0;r<s.listResult.length;r++){const l=s.listResult[r];if("1003"==l.type)n++,n==e&&a.value.scrollToIndex(0,r,t,o);else for(let s=0;s<l.list.length;s++)l.list[s],n++,n==e&&a.value.scrollToIndex(0,r,t,o)}}else a.value.scrollToIndex(0,e,t,o)},setItemFocused:d,scrollToFocused:e=>{u(e),d(e)},setItemSelected:p,scrollToSelected:(e,t)=>{u(e),p(e,t)},updateItemProps:(e,t,o)=>{a.value.updateItemProps(e,t,o)},setInitPosition:e=>{a.value.setInitPosition(e)},setListData:e=>{s.setListDataTimer&&clearTimeout(s.setListDataTimer),s.setListDataTimer=setTimeout((()=>{a.value.setListData(e)}),100)},insertItemRange:(e,t)=>{a.value.insertItemRange(e,t)},clearPostTask:()=>{a.value.clearPostTask()},destroy:f}}});function $(e,t){const o=Object.create(null),n=e.split(",");for(let e=0;e<n.length;e++)o[n[e]]=!0;return t?e=>!!o[e.toLowerCase()]:e=>!!o[e]}A.render=function(e,t,o,l,i,c){const u=n("tv-list");return a(),d(u,{class:"tv_list",ref:"tv_list",name:"tv_list",spanCount:"2.1"==e.apkVersion?"":e.spanCount,onItemBind:e.onItemBind,onItemClick:e.onItemClick,onItemFocused:e.onItemFocused,onItemUnbind:e.onItemUnbind,onScroll:e.onScroll,onScrollStateChanged:e.onScrollStateChanged,onSetListData:e.setListData,blockFocusDirections:e.blockFocusDirections},{default:y((()=>["2.1"==e.apkVersion?(a(),s(v,{key:0},[f(e.$slots,"header"),T(u,{class:"tv_list_inner",ref:"${name}",list:"${list}",name:"tv_list_inner",type:"1",clipChildren:!1,focusable:!1,horizontal:"",style:r({width:e.areaWidth+"px"}),endHintEnabled:!1,blockFocusDirections:e.blockFocusDirections},{default:y((()=>[f(e.$slots,"default")])),_:3},8,["style","blockFocusDirections"]),f(e.$slots,"loading")],64)):(a(),s(v,{key:1},[f(e.$slots,"header"),f(e.$slots,"default"),f(e.$slots,"loading")],64))])),_:3},8,["spanCount","onItemBind","onItemClick","onItemFocused","onItemUnbind","onScroll","onScrollStateChanged","onSetListData","blockFocusDirections"])},A.__file="src/grid-view/index.vue";const B="production"!==process.env.NODE_ENV?Object.freeze({}):{};"production"===process.env.NODE_ENV||Object.freeze([]);const V=()=>{},z=/^on[^a-z]/,U=e=>z.test(e),q=Object.assign,j=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},M=Object.prototype.hasOwnProperty,W=(e,t)=>M.call(e,t),G=Array.isArray,Y=e=>"[object Map]"===te(e),Q=e=>"[object Set]"===te(e),H=e=>"function"==typeof e,K=e=>"string"==typeof e,X=e=>"symbol"==typeof e,J=e=>null!==e&&"object"==typeof e,Z=e=>J(e)&&H(e.then)&&H(e.catch),ee=Object.prototype.toString,te=e=>ee.call(e),oe=e=>te(e).slice(8,-1),ne=e=>"[object Object]"===te(e),ae=e=>K(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,se=(e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))})((e=>e.charAt(0).toUpperCase()+e.slice(1))),re=(e,t)=>!Object.is(e,t),le=(e,t,o)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:o})};let ie;const ce=()=>ie||(ie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function ue(e){if(G(e)){const t={};for(let o=0;o<e.length;o++){const n=e[o],a=K(n)?ge(n):ue(n);if(a)for(const e in a)t[e]=a[e]}return t}return K(e)||J(e)?e:void 0}const de=/;(?![^(]*\))/g,pe=/:([^]+)/,fe=/\/\*[^]*?\*\//g;function ge(e){const t={};return e.replace(fe,"").split(de).forEach((e=>{if(e){const o=e.split(pe);o.length>1&&(t[o[0].trim()]=o[1].trim())}})),t}function he(e){let t="";if(K(e))t=e;else if(G(e))for(let o=0;o<e.length;o++){const n=he(e[o]);n&&(t+=n+" ")}else if(J(e))for(const o in e)e[o]&&(t+=o+" ");return t.trim()}function me(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let ye;const ve=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Te=e=>(e.w&Ie)>0,be=e=>(e.n&Ie)>0,_e=new WeakMap;let Se=0,Ie=1;const ke=30;let xe;const Fe=Symbol("production"!==process.env.NODE_ENV?"iterate":""),Pe=Symbol("production"!==process.env.NODE_ENV?"Map key iterate":"");class Ne{constructor(e,t=null,o){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=ye){t&&t.active&&t.effects.push(e)}(this,o)}run(){if(!this.active)return this.fn();let e=xe,t=Ee;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=xe,xe=this,Ee=!0,Ie=1<<++Se,Se<=ke?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ie})(this):De(this),this.fn()}finally{Se<=ke&&(e=>{const{deps:t}=e;if(t.length){let o=0;for(let n=0;n<t.length;n++){const a=t[n];Te(a)&&!be(a)?a.delete(e):t[o++]=a,a.w&=~Ie,a.n&=~Ie}t.length=o}})(this),Ie=1<<--Se,xe=this.parent,Ee=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){xe===this?this.deferStop=!0:this.active&&(De(this),this.onStop&&this.onStop(),this.active=!1)}}function De(e){const{deps:t}=e;if(t.length){for(let o=0;o<t.length;o++)t[o].delete(e);t.length=0}}let Ee=!0;const Ce=[];function Re(){Ce.push(Ee),Ee=!1}function Le(){const e=Ce.pop();Ee=void 0===e||e}function we(e,t,o){if(Ee&&xe){let n=_e.get(e);n||_e.set(e,n=new Map);let a=n.get(o);a||n.set(o,a=ve());!function(e,t){let o=!1;Se<=ke?be(e)||(e.n|=Ie,o=!Te(e)):o=!e.has(xe);o&&(e.add(xe),xe.deps.push(e),"production"!==process.env.NODE_ENV&&xe.onTrack&&xe.onTrack(q({effect:xe},t)))}(a,"production"!==process.env.NODE_ENV?{effect:xe,target:e,type:t,key:o}:void 0)}}function Oe(e,t,o,n,a,s){const r=_e.get(e);if(!r)return;let l=[];if("clear"===t)l=[...r.values()];else if("length"===o&&G(e)){const e=Number(n);r.forEach(((t,o)=>{("length"===o||o>=e)&&l.push(t)}))}else switch(void 0!==o&&l.push(r.get(o)),t){case"add":G(e)?ae(o)&&l.push(r.get("length")):(l.push(r.get(Fe)),Y(e)&&l.push(r.get(Pe)));break;case"delete":G(e)||(l.push(r.get(Fe)),Y(e)&&l.push(r.get(Pe)));break;case"set":Y(e)&&l.push(r.get(Fe))}const i="production"!==process.env.NODE_ENV?{target:e,type:t,key:o,newValue:n,oldValue:a,oldTarget:s}:void 0;if(1===l.length)l[0]&&("production"!==process.env.NODE_ENV?Ae(l[0],i):Ae(l[0]));else{const e=[];for(const t of l)t&&e.push(...t);"production"!==process.env.NODE_ENV?Ae(ve(e),i):Ae(ve(e))}}function Ae(e,t){const o=G(e)?e:[...e];for(const e of o)e.computed&&$e(e,t);for(const e of o)e.computed||$e(e,t)}function $e(e,t){(e!==xe||e.allowRecurse)&&("production"!==process.env.NODE_ENV&&e.onTrigger&&e.onTrigger(q({effect:e},t)),e.scheduler?e.scheduler():e.run())}const Be=$("__proto__,__v_isRef,__isVue"),Ve=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(X)),ze=Ge(),Ue=Ge(!0),qe=Ge(!0,!0),je=Me();function Me(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const o=Ct(this);for(let e=0,t=this.length;e<t;e++)we(o,"get",e+"");const n=o[t](...e);return-1===n||!1===n?o[t](...e.map(Ct)):n}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){Re();const o=Ct(this)[t].apply(this,e);return Le(),o}})),e}function We(e){const t=Ct(this);return we(t,"has",e),t.hasOwnProperty(e)}function Ge(e=!1,t=!1){return function(o,n,a){if("__v_isReactive"===n)return!e;if("__v_isReadonly"===n)return e;if("__v_isShallow"===n)return t;if("__v_raw"===n&&a===(e?t?St:_t:t?bt:Tt).get(o))return o;const s=G(o);if(!e){if(s&&W(je,n))return Reflect.get(je,n,a);if("hasOwnProperty"===n)return We}const r=Reflect.get(o,n,a);return(X(n)?Ve.has(n):Be(n))?r:(e||we(o,"get",n),t?r:wt(r)?s&&ae(n)?r:r.value:J(r)?e?kt(r):It(r):r)}}function Ye(e=!1){return function(t,o,n,a){let s=t[o];if(Nt(s)&&wt(s)&&!wt(n))return!1;if(!e&&(Dt(n)||Nt(n)||(s=Ct(s),n=Ct(n)),!G(t)&&wt(s)&&!wt(n)))return s.value=n,!0;const r=G(t)&&ae(o)?Number(o)<t.length:W(t,o),l=Reflect.set(t,o,n,a);return t===Ct(a)&&(r?re(n,s)&&Oe(t,"set",o,n,s):Oe(t,"add",o,n)),l}}const Qe={get:ze,set:Ye(),deleteProperty:function(e,t){const o=W(e,t),n=e[t],a=Reflect.deleteProperty(e,t);return a&&o&&Oe(e,"delete",t,void 0,n),a},has:function(e,t){const o=Reflect.has(e,t);return X(t)&&Ve.has(t)||we(e,"has",t),o},ownKeys:function(e){return we(e,"iterate",G(e)?"length":Fe),Reflect.ownKeys(e)}},He={get:Ue,set:(e,t)=>("production"!==process.env.NODE_ENV&&me(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0),deleteProperty:(e,t)=>("production"!==process.env.NODE_ENV&&me(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0)},Ke=q({},He,{get:qe}),Xe=e=>e,Je=e=>Reflect.getPrototypeOf(e);function Ze(e,t,o=!1,n=!1){const a=Ct(e=e.__v_raw),s=Ct(t);o||(t!==s&&we(a,"get",t),we(a,"get",s));const{has:r}=Je(a),l=n?Xe:o?Lt:Rt;return r.call(a,t)?l(e.get(t)):r.call(a,s)?l(e.get(s)):void(e!==a&&e.get(t))}function et(e,t=!1){const o=this.__v_raw,n=Ct(o),a=Ct(e);return t||(e!==a&&we(n,"has",e),we(n,"has",a)),e===a?o.has(e):o.has(e)||o.has(a)}function tt(e,t=!1){return e=e.__v_raw,!t&&we(Ct(e),"iterate",Fe),Reflect.get(e,"size",e)}function ot(e){e=Ct(e);const t=Ct(this);return Je(t).has.call(t,e)||(t.add(e),Oe(t,"add",e,e)),this}function nt(e,t){t=Ct(t);const o=Ct(this),{has:n,get:a}=Je(o);let s=n.call(o,e);s?"production"!==process.env.NODE_ENV&&vt(o,n,e):(e=Ct(e),s=n.call(o,e));const r=a.call(o,e);return o.set(e,t),s?re(t,r)&&Oe(o,"set",e,t,r):Oe(o,"add",e,t),this}function at(e){const t=Ct(this),{has:o,get:n}=Je(t);let a=o.call(t,e);a?"production"!==process.env.NODE_ENV&&vt(t,o,e):(e=Ct(e),a=o.call(t,e));const s=n?n.call(t,e):void 0,r=t.delete(e);return a&&Oe(t,"delete",e,void 0,s),r}function st(){const e=Ct(this),t=0!==e.size,o="production"!==process.env.NODE_ENV?Y(e)?new Map(e):new Set(e):void 0,n=e.clear();return t&&Oe(e,"clear",void 0,void 0,o),n}function rt(e,t){return function(o,n){const a=this,s=a.__v_raw,r=Ct(s),l=t?Xe:e?Lt:Rt;return!e&&we(r,"iterate",Fe),s.forEach(((e,t)=>o.call(n,l(e),l(t),a)))}}function lt(e,t,o){return function(...n){const a=this.__v_raw,s=Ct(a),r=Y(s),l="entries"===e||e===Symbol.iterator&&r,i="keys"===e&&r,c=a[e](...n),u=o?Xe:t?Lt:Rt;return!t&&we(s,"iterate",i?Pe:Fe),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function it(e){return function(...t){if("production"!==process.env.NODE_ENV){const o=t[0]?`on key "${t[0]}" `:"";console.warn(`${se(e)} operation ${o}failed: target is readonly.`,Ct(this))}return"delete"!==e&&this}}function ct(){const e={get(e){return Ze(this,e)},get size(){return tt(this)},has:et,add:ot,set:nt,delete:at,clear:st,forEach:rt(!1,!1)},t={get(e){return Ze(this,e,!1,!0)},get size(){return tt(this)},has:et,add:ot,set:nt,delete:at,clear:st,forEach:rt(!1,!0)},o={get(e){return Ze(this,e,!0)},get size(){return tt(this,!0)},has(e){return et.call(this,e,!0)},add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear"),forEach:rt(!0,!1)},n={get(e){return Ze(this,e,!0,!0)},get size(){return tt(this,!0)},has(e){return et.call(this,e,!0)},add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear"),forEach:rt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((a=>{e[a]=lt(a,!1,!1),o[a]=lt(a,!0,!1),t[a]=lt(a,!1,!0),n[a]=lt(a,!0,!0)})),[e,o,t,n]}const[ut,dt,pt,ft]=ct();function gt(e,t){const o=t?e?ft:pt:e?dt:ut;return(t,n,a)=>"__v_isReactive"===n?!e:"__v_isReadonly"===n?e:"__v_raw"===n?t:Reflect.get(W(o,n)&&n in t?o:t,n,a)}const ht={get:gt(!1,!1)},mt={get:gt(!0,!1)},yt={get:gt(!0,!0)};function vt(e,t,o){const n=Ct(o);if(n!==o&&t.call(e,n)){const t=oe(e);console.warn(`Reactive ${t} contains both the raw and reactive versions of the same object${"Map"===t?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Tt=new WeakMap,bt=new WeakMap,_t=new WeakMap,St=new WeakMap;function It(e){return Nt(e)?e:Ft(e,!1,Qe,ht,Tt)}function kt(e){return Ft(e,!0,He,mt,_t)}function xt(e){return Ft(e,!0,Ke,yt,St)}function Ft(e,t,o,n,a){if(!J(e))return"production"!==process.env.NODE_ENV&&console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=a.get(e);if(s)return s;const r=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(oe(l));var l;if(0===r)return e;const i=new Proxy(e,2===r?n:o);return a.set(e,i),i}function Pt(e){return Nt(e)?Pt(e.__v_raw):!(!e||!e.__v_isReactive)}function Nt(e){return!(!e||!e.__v_isReadonly)}function Dt(e){return!(!e||!e.__v_isShallow)}function Et(e){return Pt(e)||Nt(e)}function Ct(e){const t=e&&e.__v_raw;return t?Ct(t):e}const Rt=e=>J(e)?It(e):e,Lt=e=>J(e)?kt(e):e;function wt(e){return!(!e||!0!==e.__v_isRef)}const Ot={get:(e,t,o)=>{return wt(n=Reflect.get(e,t,o))?n.value:n;var n},set:(e,t,o,n)=>{const a=e[t];return wt(a)&&!wt(o)?(a.value=o,!0):Reflect.set(e,t,o,n)}};const At=[];function $t(e,...t){if("production"===process.env.NODE_ENV)return;Re();const o=At.length?At[At.length-1].component:null,n=o&&o.appContext.config.warnHandler,a=function(){let e=At[At.length-1];if(!e)return[];const t=[];for(;e;){const o=t[0];o&&o.vnode===e?o.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}();if(n)Ut(n,o,11,[e+t.join(""),o&&o.proxy,a.map((({vnode:e})=>`at <${an(o,e.type)}>`)).join("\n"),a]);else{const o=[`[Vue warn]: ${e}`,...t];a.length&&o.push("\n",...function(e){const t=[];return e.forEach(((e,o)=>{t.push(...0===o?[]:["\n"],...function({vnode:e,recurseCount:t}){const o=t>0?`... (${t} recursive calls)`:"",n=!!e.component&&null==e.component.parent,a=` at <${an(e.component,e.type,n)}`,s=">"+o;return e.props?[a,...Bt(e.props),s]:[a+s]}(e))})),t}(a)),console.warn(...o)}Le()}function Bt(e){const t=[],o=Object.keys(e);return o.slice(0,3).forEach((o=>{t.push(...Vt(o,e[o]))})),o.length>3&&t.push(" ..."),t}function Vt(e,t,o){return K(t)?(t=JSON.stringify(t),o?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?o?t:[`${e}=${t}`]:wt(t)?(t=Vt(e,Ct(t.value),!0),o?t:[`${e}=Ref<`,t,">"]):H(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Ct(t),o?t:[`${e}=`,t])}const zt={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function Ut(e,t,o,n){let a;try{a=n?e(...n):e()}catch(e){jt(e,t,o)}return a}function qt(e,t,o,n){if(H(e)){const a=Ut(e,t,o,n);return a&&Z(a)&&a.catch((e=>{jt(e,t,o)})),a}const a=[];for(let s=0;s<e.length;s++)a.push(qt(e[s],t,o,n));return a}function jt(e,t,o,n=!0){const a=t?t.vnode:null;if(t){let n=t.parent;const a=t.proxy,s="production"!==process.env.NODE_ENV?zt[o]:o;for(;n;){const t=n.ec;if(t)for(let o=0;o<t.length;o++)if(!1===t[o](e,a,s))return;n=n.parent}const r=t.appContext.config.errorHandler;if(r)return void Ut(r,null,10,[e,a,s])}!function(e,t,o,n=!0){if("production"!==process.env.NODE_ENV){const s=zt[t];if(o&&(a=o,At.push(a)),$t("Unhandled error"+(s?` during execution of ${s}`:"")),o&&At.pop(),n)throw e;console.error(e)}else console.error(e);var a}(e,o,a,n)}let Mt=!1,Wt=!1;const Gt=[];let Yt=0;const Qt=[];let Ht=null,Kt=0;const Xt=Promise.resolve();let Jt=null;const Zt=100;function eo(e){const t=Jt||Xt;return e?t.then(this?e.bind(this):e):t}function to(e){Gt.length&&Gt.includes(e,Mt&&e.allowRecurse?Yt+1:Yt)||(null==e.id?Gt.push(e):Gt.splice(function(e){let t=Yt+1,o=Gt.length;for(;t<o;){const n=t+o>>>1;ao(Gt[n])<e?t=n+1:o=n}return t}(e.id),0,e),oo())}function oo(){Mt||Wt||(Wt=!0,Jt=Xt.then(ro))}function no(e){G(e)?Qt.push(...e):Ht&&Ht.includes(e,e.allowRecurse?Kt+1:Kt)||Qt.push(e),oo()}const ao=e=>null==e.id?1/0:e.id,so=(e,t)=>{const o=ao(e)-ao(t);if(0===o){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return o};function ro(e){Wt=!1,Mt=!0,"production"!==process.env.NODE_ENV&&(e=e||new Map),Gt.sort(so);const t="production"!==process.env.NODE_ENV?t=>lo(e,t):V;try{for(Yt=0;Yt<Gt.length;Yt++){const e=Gt[Yt];if(e&&!1!==e.active){if("production"!==process.env.NODE_ENV&&t(e))continue;Ut(e,null,14)}}}finally{Yt=0,Gt.length=0,function(e){if(Qt.length){const t=[...new Set(Qt)];if(Qt.length=0,Ht)return void Ht.push(...t);for(Ht=t,"production"!==process.env.NODE_ENV&&(e=e||new Map),Ht.sort(((e,t)=>ao(e)-ao(t))),Kt=0;Kt<Ht.length;Kt++)"production"!==process.env.NODE_ENV&&lo(e,Ht[Kt])||Ht[Kt]();Ht=null,Kt=0}}(e),Mt=!1,Jt=null,(Gt.length||Qt.length)&&ro(e)}}function lo(e,t){if(e.has(t)){const o=e.get(t);if(o>Zt){const e=t.ownerInstance,o=e&&nn(e.type);return $t(`Maximum recursive updates exceeded${o?` in component <${o}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}e.set(t,o+1)}else e.set(t,1)}const io=new Set;"production"!==process.env.NODE_ENV&&(ce().__VUE_HMR_RUNTIME__={createRecord:fo((function(e,t){if(co.has(e))return!1;return co.set(e,{initialDef:uo(t),instances:new Set}),!0})),rerender:fo((function(e,t){const o=co.get(e);if(!o)return;o.initialDef.render=t,[...o.instances].forEach((e=>{t&&(e.render=t,uo(e.type).render=t),e.renderCache=[],e.update()}))})),reload:fo((function(e,t){const o=co.get(e);if(!o)return;t=uo(t),po(o.initialDef,t);const n=[...o.instances];for(const e of n){const n=uo(e.type);io.has(n)||(n!==o.initialDef&&po(n,t),io.add(n)),e.appContext.propsCache.delete(e.type),e.appContext.emitsCache.delete(e.type),e.appContext.optionsCache.delete(e.type),e.ceReload?(io.add(n),e.ceReload(t.styles),io.delete(n)):e.parent?to(e.parent.update):e.appContext.reload?e.appContext.reload():"undefined"!=typeof window?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}no((()=>{for(const e of n)io.delete(uo(e.type))}))}))});const co=new Map;function uo(e){return sn(e)?e.__vccOpts:e}function po(e,t){q(e,t);for(const o in e)"__file"===o||o in t||delete e[o]}function fo(e){return(t,o)=>{try{return e(t,o)}catch(e){console.error(e),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let go=null,ho=null;const mo={};function yo(e,t,{immediate:o,deep:n,flush:a,onTrack:s,onTrigger:r}=B){var l;"production"===process.env.NODE_ENV||t||(void 0!==o&&$t('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==n&&$t('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const i=e=>{$t("Invalid watch source: ",e,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=ye===(null==(l=Xo)?void 0:l.scope)?Xo:null;let u,d,p=!1,f=!1;if(wt(e)?(u=()=>e.value,p=Dt(e)):Pt(e)?(u=()=>e,n=!0):G(e)?(f=!0,p=e.some((e=>Pt(e)||Dt(e))),u=()=>e.map((e=>wt(e)?e.value:Pt(e)?To(e):H(e)?Ut(e,c,2):void("production"!==process.env.NODE_ENV&&i(e))))):H(e)?u=t?()=>Ut(e,c,2):()=>{if(!c||!c.isUnmounted)return d&&d(),qt(e,c,3,[g])}:(u=V,"production"!==process.env.NODE_ENV&&i(e)),t&&n){const e=u;u=()=>To(e())}let g=e=>{d=v.onStop=()=>{Ut(e,c,4)}},h=f?new Array(e.length).fill(mo):mo;const m=()=>{if(v.active)if(t){const e=v.run();(n||p||(f?e.some(((e,t)=>re(e,h[t]))):re(e,h)))&&(d&&d(),qt(t,c,3,[e,h===mo?void 0:f&&h[0]===mo?[]:h,g]),h=e)}else v.run()};let y;m.allowRecurse=!!t,"sync"===a?y=m:"post"===a?y=()=>Oo(m,c&&c.suspense):(m.pre=!0,c&&(m.id=c.uid),y=()=>to(m));const v=new Ne(u,y);"production"!==process.env.NODE_ENV&&(v.onTrack=s,v.onTrigger=r),t?o?m():h=v.run():"post"===a?Oo(v.run.bind(v),c&&c.suspense):v.run();return()=>{v.stop(),c&&c.scope&&j(c.scope.effects,v)}}function vo(e,t,o){const n=this.proxy,a=K(e)?e.includes(".")?function(e,t){const o=t.split(".");return()=>{let t=e;for(let e=0;e<o.length&&t;e++)t=t[o[e]];return t}}(n,e):()=>n[e]:e.bind(n,n);let s;H(t)?s=t:(s=t.handler,o=t);const r=Xo;Zo(this);const l=yo(a,s.bind(n),o);return r?Zo(r):en(),l}function To(e,t){if(!J(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),wt(e))To(e.value,t);else if(G(e))for(let o=0;o<e.length;o++)To(e[o],t);else if(Q(e)||Y(e))e.forEach((e=>{To(e,t)}));else if(ne(e))for(const o in e)To(e[o],t);return e}function bo(e,t){return H(e)?(()=>q({name:e.name},t,{setup:e}))():e}const _o=Symbol.for("v-ndc"),So=e=>e?4&e.vnode.shapeFlag?function(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((o=e.exposed,le(o,"__v_skip",!0),Pt(t=o)?t:new Proxy(t,Ot)),{get:(t,o)=>o in t?t[o]:o in Io?Io[o](e):void 0,has:(e,t)=>t in e||t in Io}));var t;var o}(e)||e.proxy:So(e.parent):null,Io=q(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>"production"!==process.env.NODE_ENV?xt(e.props):e.props,$attrs:e=>"production"!==process.env.NODE_ENV?xt(e.attrs):e.attrs,$slots:e=>"production"!==process.env.NODE_ENV?xt(e.slots):e.slots,$refs:e=>"production"!==process.env.NODE_ENV?xt(e.refs):e.refs,$parent:e=>So(e.parent),$root:e=>So(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?function(e){const t=e.type,{mixins:o,extends:n}=t,{mixins:a,optionsCache:s,config:{optionMergeStrategies:r}}=e.appContext,l=s.get(t);let i;l?i=l:a.length||o||n?(i={},a.length&&a.forEach((e=>No(i,e,r,!0))),No(i,t,r)):i=t;J(t)&&s.set(t,i);return i}(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>to(e.update)),$nextTick:e=>e.n||(e.n=eo.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?vo.bind(e):V}),ko=(e,t)=>e!==B&&!e.__isScriptSetup&&W(e,t),xo={get({_:e},t){const{ctx:o,setupState:n,data:a,props:s,accessCache:r,type:l,appContext:i}=e;if("production"!==process.env.NODE_ENV&&"__isVue"===t)return!0;let c;if("$"!==t[0]){const l=r[t];if(void 0!==l)switch(l){case 1:return n[t];case 2:return a[t];case 4:return o[t];case 3:return s[t]}else{if(ko(n,t))return r[t]=1,n[t];if(a!==B&&W(a,t))return r[t]=2,a[t];if((c=e.propsOptions[0])&&W(c,t))return r[t]=3,s[t];if(o!==B&&W(o,t))return r[t]=4,o[t];__VUE_OPTIONS_API__&&!Po||(r[t]=0)}}const u=Io[t];let d,p;return u?("$attrs"===t?(we(e,"get",t),process.env.NODE_ENV):"production"!==process.env.NODE_ENV&&"$slots"===t&&we(e,"get",t),u(e)):(d=l.__cssModules)&&(d=d[t])?d:o!==B&&W(o,t)?(r[t]=4,o[t]):(p=i.config.globalProperties,W(p,t)?p[t]:void("production"===process.env.NODE_ENV||!go||K(t)&&0===t.indexOf("__v")||(a!==B&&(e=>"_"===e||"$"===e)(t[0])&&W(a,t)?$t(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===go&&$t(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))))},set({_:e},t,o){const{data:n,setupState:a,ctx:s}=e;return ko(a,t)?(a[t]=o,!0):"production"!==process.env.NODE_ENV&&a.__isScriptSetup&&W(a,t)?($t(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):n!==B&&W(n,t)?(n[t]=o,!0):W(e.props,t)?("production"!==process.env.NODE_ENV&&$t(`Attempting to mutate prop "${t}". Props are readonly.`),!1):"$"===t[0]&&t.slice(1)in e?("production"!==process.env.NODE_ENV&&$t(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):("production"!==process.env.NODE_ENV&&t in e.appContext.config.globalProperties?Object.defineProperty(s,t,{enumerable:!0,configurable:!0,value:o}):s[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:n,appContext:a,propsOptions:s}},r){let l;return!!o[r]||e!==B&&W(e,r)||ko(t,r)||(l=s[0])&&W(l,r)||W(n,r)||W(Io,r)||W(a.config.globalProperties,r)},defineProperty(e,t,o){return null!=o.get?e._.accessCache[t]=0:W(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function Fo(e){return G(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}"production"!==process.env.NODE_ENV&&(xo.ownKeys=e=>($t("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));let Po=!0;function No(e,t,o,n=!1){const{mixins:a,extends:s}=t;s&&No(e,s,o,!0),a&&a.forEach((t=>No(e,t,o,!0)));for(const a in t)if(n&&"expose"===a)"production"!==process.env.NODE_ENV&&$t('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const n=Do[a]||o&&o[a];e[a]=n?n(e[a],t[a]):t[a]}return e}const Do={data:Eo,props:wo,emits:wo,methods:Lo,computed:Lo,beforeCreate:Ro,created:Ro,beforeMount:Ro,mounted:Ro,beforeUpdate:Ro,updated:Ro,beforeDestroy:Ro,beforeUnmount:Ro,destroyed:Ro,unmounted:Ro,activated:Ro,deactivated:Ro,errorCaptured:Ro,serverPrefetch:Ro,components:Lo,directives:Lo,watch:function(e,t){if(!e)return t;if(!t)return e;const o=q(Object.create(null),e);for(const n in t)o[n]=Ro(e[n],t[n]);return o},provide:Eo,inject:function(e,t){return Lo(Co(e),Co(t))}};function Eo(e,t){return t?e?function(){return q(H(e)?e.call(this,this):e,H(t)?t.call(this,this):t)}:t:e}function Co(e){if(G(e)){const t={};for(let o=0;o<e.length;o++)t[e[o]]=e[o];return t}return e}function Ro(e,t){return e?[...new Set([].concat(e,t))]:t}function Lo(e,t){return e?q(Object.create(null),e,t):t}function wo(e,t){return e?G(e)&&G(t)?[...new Set([...e,...t])]:q(Object.create(null),Fo(e),Fo(null!=t?t:{})):t}const Oo=function(e,t){t&&t.pendingBranch?G(e)?t.effects.push(...e):t.effects.push(e):no(e)},Ao=Symbol.for("v-fgt"),$o=Symbol.for("v-txt"),Bo=Symbol.for("v-cmt");let Vo=null;const zo="__vInternal",Uo=({key:e})=>null!=e?e:null,qo=({ref:e,ref_key:t,ref_for:o})=>("number"==typeof e&&(e=""+e),null!=e?K(e)||wt(e)||H(e)?{i:go,r:e,k:t,f:!!o}:e:null);const jo="production"!==process.env.NODE_ENV?(...e)=>Mo(...e):Mo;function Mo(e,t=null,o=null,n=0,a=null,s=!1){if(e&&e!==_o||("production"===process.env.NODE_ENV||e||$t(`Invalid vnode type when creating vnode: ${e}.`),e=Bo),(r=e)&&!0===r.__v_isVNode){const n=Wo(e,t,!0);return o&&Qo(n,o),!s&&Vo&&(6&n.shapeFlag?Vo[Vo.indexOf(e)]=n:Vo.push(n)),n.patchFlag|=-2,n}var r;if(sn(e)&&(e=e.__vccOpts),t){t=function(e){return e?Et(e)||zo in e?q({},e):e:null}(t);let{class:e,style:o}=t;e&&!K(e)&&(t.class=he(e)),J(o)&&(Et(o)&&!G(o)&&(o=q({},o)),t.style=ue(o))}const l=K(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:J(e)?4:H(e)?2:0;return"production"!==process.env.NODE_ENV&&4&l&&Et(e)&&$t("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.","\nComponent that was made reactive: ",e=Ct(e)),function(e,t=null,o=null,n=0,a=null,s=(e===Ao?0:1),r=!1,l=!1){const i={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Uo(t),ref:t&&qo(t),scopeId:ho,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:go};return l?(Qo(i,o),128&s&&e.normalize(i)):o&&(i.shapeFlag|=K(o)?8:16),"production"!==process.env.NODE_ENV&&i.key!=i.key&&$t("VNode created with invalid key (NaN). VNode type:",i.type),!r&&Vo&&(i.patchFlag>0||6&s)&&32!==i.patchFlag&&Vo.push(i),i}(e,t,o,n,a,l,s,!0)}function Wo(e,t,o=!1){const{props:n,ref:a,patchFlag:s,children:r}=e,l=t?function(...e){const t={};for(let o=0;o<e.length;o++){const n=e[o];for(const e in n)if("class"===e)t.class!==n.class&&(t.class=he([t.class,n.class]));else if("style"===e)t.style=ue([t.style,n.style]);else if(U(e)){const o=t[e],a=n[e];!a||o===a||G(o)&&o.includes(a)||(t[e]=o?[].concat(o,a):a)}else""!==e&&(t[e]=n[e])}return t}(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Uo(l),ref:t&&t.ref?o&&a?G(a)?a.concat(qo(t)):[a,qo(t)]:qo(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===s&&G(r)?r.map(Go):r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ao?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Wo(e.ssContent),ssFallback:e.ssFallback&&Wo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Go(e){const t=Wo(e);return G(e.children)&&(t.children=e.children.map(Go)),t}function Yo(e=" ",t=0){return jo($o,null,e,t)}function Qo(e,t){let o=0;const{shapeFlag:n}=e;if(null==t)t=null;else if(G(t))o=16;else if("object"==typeof t){if(65&n){const o=t.default;return void(o&&(o._c&&(o._d=!1),Qo(e,o()),o._c&&(o._d=!0)))}{o=32;const n=t._;n||zo in t?3===n&&go&&(1===go.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=go}}else H(t)?(t={default:t,_ctx:go},o=32):(t=String(t),64&n?(o=16,t=[Yo(t)]):o=8);e.children=t,e.shapeFlag|=o}let Ho,Ko,Xo=null,Jo="__VUE_INSTANCE_SETTERS__";(Ko=ce()[Jo])||(Ko=ce()[Jo]=[]),Ko.push((e=>Xo=e)),Ho=e=>{Ko.length>1?Ko.forEach((t=>t(e))):Ko[0](e)};const Zo=e=>{Ho(e),e.scope.on()},en=()=>{Xo&&Xo.scope.off(),Ho(null)};const tn=/(?:^|[-_])(\w)/g,on=e=>e.replace(tn,(e=>e.toUpperCase())).replace(/[-_]/g,"");function nn(e,t=!0){return H(e)?e.displayName||e.name:e.name||t&&e.__name}function an(e,t,o=!1){let n=nn(t);if(!n&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(n=e[1])}if(!n&&e&&e.parent){const o=e=>{for(const o in e)if(e[o]===t)return o};n=o(e.components||e.parent.type.components)||o(e.appContext.components)}return n?on(n):o?"App":"Anonymous"}function sn(e){return H(e)&&"__vccOpts"in e}var rn=bo({name:"qt-poster-focus-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const ln={class:"absoluteFocusTitleRoot",delayLoad:"400",flexStyle:"${titleFocusStyle}",autoHeight:"",focusable:!1},cn={class:"absoluteFocusMainBgRoot",duplicateParentState:!0,focusable:!1,showIf:"${title.enable}"};rn.render=function(e,t,o,r,l,c){const u=n("text-view");return a(),s("div",ln,[i(" 浮动标题"),T(u,{duplicateParentState:!0,focusable:!1,fontSize:26,ellipsizeMode:2,lines:1,paddingRect:[16,18,0,0],gradientBackground:"${floatTitle.background}",style:{height:"64px",color:"#ffffff"},flexStyle:"${floatTitle.style}",text:"${floatTitle}",showIf:"${floatTitle.enable}",gravity:"left",postDelay:"250"}),b("div",cn,[i(" 主标题 "),T(u,{duplicateParentState:!0,focusable:!1,fontSize:30,ellipsizeMode:2,autoHeight:"",maxLines:2,gravity:"left",paddingRect:[16,8,12,8],style:{"background-color":"transparent",color:"#000000"},flexStyle:"${title.style}",text:"${title.text}"}),i(" 副标题 "),T(u,{duplicateParentState:!0,focusable:!1,fontSize:24,ellipsizeMode:2,lines:1,autoHeight:"",gravity:"left|top",paddingRect:[16,0,0,16],style:{color:"rgba(0,0,0,.4)","background-color":"transparent"},flexStyle:"${subTitle.style}",text:"${subTitle.text}",visibility:"${subTitle}"})])])},rn.__scopeId="data-v-703673b8",rn.__file="src/poster/qt-poster-focus-title.vue";var un=bo({name:"qt-poster-corner-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const dn={class:"cornerRoot",focusable:!1};un.render=function(e,t,o,r,l,i){const c=n("text-view");return a(),s("div",dn,[T(c,{duplicateParentState:!0,focusable:!1,textSize:e.fontSize,ellipsizeMode:2,lines:1,typeface:"bold",gravity:"center",postDelay:"350",style:{color:"white",padding:"4px 8px",height:"36px"},gradientBackground:"${corner.background}",autoWidth:"",text:"${corner.text}",showIf:"${corner.enable}"},null,8,["textSize"])])},un.__scopeId="data-v-4b767ea2",un.__file="src/poster/qt-poster-corner-title.vue";var pn=bo({name:"qt-poster",components:{"qt-poster-corner-title":un,"qt-poster-focus-title":rn},props:{requestFirstFocus:{type:Boolean,default:!1},loadDelay:{type:Number,default:500},type:{type:Number,default:10001},templateKeyMap:{type:Object,default:()=>null},isFocusable:{type:Boolean,default:!0},enableFocusBorder:{type:Boolean,default:!0}},setup:(e,t)=>({mainTextShowOnState:["normal","selected"]})});const fn=["enableFocusBorder"],gn=["showOnState"],hn={flexStyle:"${floatTitle.style}",class:"qt-ui-poster-title-css",gradientBackground:{colors:["#e5000000","#00000000"],cornerRadii4:[0,0,8,8],orientation:4},duplicateParentState:!0,delayLoad:"500",focusable:!1,showIf:"${floatTitle.enable}"},mn={flexStyle:"${ripple.style}",class:"qt-ui-poster-ripple-view-root-css",showOnState:"focused",focusable:!1,clipChildren:!1},yn=(e=>(_("data-v-3c4765e9"),e=e(),S(),e))((()=>b("img",{src:"${ripple.src}",class:"qt-ui-ripple-img-css",focusable:!1,duplicateParentState:!0,showIf:"${true}",delayLoad:"800"},null,-1)));pn.render=function(e,t,o,s,r,l){const c=n("qt-poster-focus-title"),u=n("text-view"),p=n("ripple-view"),g=n("qt-poster-corner-title"),h=n("item-frame");return a(),d(h,{type:e.type,layout:"${layout}",flexStyle:"${style}",focusable:e.isFocusable,eventClick:"",eventFocus:"",name:"poster",class:"qt-ui-poster-root-css",itemShowShimmer:"${shimmer.enable}",hideShadow:"${shadow.enable}",shimmerSize:"${size}"},{default:y((()=>[i("封面"),b("img",{class:"qt-ui-poster-img-css",duplicateParentState:!0,postDelay:"300",focusable:!1,enableFocusBorder:e.enableFocusBorder,flexStyle:"${image.style}",src:"${image.src}"},null,8,fn),i(" 焦点选中时的标题 "),T(c,{focusable:!1,showOnState:"focused"}),b("div",{style:{"flex-direction":"column","background-color":"transparent","z-index":"999"},duplicateParentState:!0,focusable:!1,flexStyle:"${titleStyle}",showOnState:e.mainTextShowOnState},[i(" 浮动标题 "),b("div",hn,[T(u,{duplicateParentState:!0,focusable:!1,textSize:26,ellipsizeMode:2,enablePostTask:"",postDelay:"200",lines:1,gravity:"left",style:{"z-index":"999",height:"50px"},flexStyle:"${floatTitle.style}",text:"${floatTitle.text}"})]),i(" 主标题"),T(u,{duplicateParentState:!0,focusable:!1,textSize:30,ellipsizeMode:2,lines:1,delayLoad:"400",postDelay:"200",gravity:"left",paddingRect:[16,8,0,0],gradientBackground:"${title.background}",style:{"z-index":"999",height:"60px"},flexStyle:"${title.style}",text:"${title.text}",showIf:"${title.enable}"})],8,gn),b("div",mn,[T(p,{class:"qt-ui-ripple-view-css",delayLoad:"800",focusable:!1,duplicateParentState:!0,color:"#FF4E46",isShowRipple:"${ripple.enable}",rippleVisible:"invisible"}),yn]),T(g,{focusable:!1,delayLoad:"600",flexStyle:"${corner.style}",style:{"z-index":"1000",position:"absolute"}}),f(e.$slots,"default")])),_:3},8,["type","focusable"])},pn.__scopeId="data-v-3c4765e9",pn.__file="src/poster/index.vue";var vn=t({name:"qt-nav-bar",props:{textKey:{type:String,default:"text"},itemGap:{type:Number,default:0},horizontal:{type:Boolean,default:!0},initSelect:{type:Number,default:0},className:{type:String,default:"list_view"},size:{type:String,default:"medium"},navs:{type:Array,default:()=>[]}},setup(e,t){const n=o();let a=o("#f5f5f5"),s=I({normal:"#80ffffff",focused:"#000000",selected:"#F5F5F5"}),r=-1,l=-1;g((()=>e.navs),(e=>{e.length>0&&i(e)}));const i=t=>{t||(t=[]),t.forEach(((t,o)=>{0!==e.itemGap&&(e.horizontal?t.decoration={right:e.itemGap}:t.decoration={bottom:e.itemGap}),t.type||(t.type=2e4)})),n.value?.setListData(t),clearTimeout(l);let o=e.initSelect;o>-1&&(n.value?.scrollToPosition(o),l=setTimeout((()=>{n.value?.setSelectPosition(o,!0),c(o)}),300))},c=e=>{clearTimeout(r),r=setTimeout((()=>{t.emit("tab-select",{position:e})}),300)};return{navList:n,focusColor:a,textColor:s,bgPadding:[10,10],onTabChange:e=>{!0===e.hasFocus&&(t.emit("tab-focus",e),c(e.position))},scrollToPosition:e=>{n.value?.scrollToPosition(e)},scrollToTop:()=>{n.value?.scrollToTop()},initNavBar:()=>{},initNavBarItem:i}}});const Tn=["stateTextColor","sateBackgroundPadding"],bn=["stateTextColor","sateBackgroundPadding"];var _n,Sn;vn.render=function(e,t,o,s,i,c){const u=n("text-view"),p=n("qt-list-view");return e.horizontal?(a(),d(p,{key:0,class:l([e.className,"qt-ui-nav-bar-root-horizontal"]),ref:"navList",clipChildren:!1,clipPadding:!1,horizontal:"",onItemFocused:e.onTabChange},{default:y((()=>[b("div",{class:"qt-ui-nav-bar-item-css",type:2e4,autoWidth:"",focusable:!0,eventFocus:"",clipChildren:!1,style:r({focusBackgroundColor:e.focusColor}),stateTextColor:e.textColor,sateBackgroundPadding:e.bgPadding},[T(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,Tn),f(e.$slots,"default")])),_:3},8,["class","onItemFocused"])):(a(),d(p,{key:1,class:l([e.className,"qt-ui-nav-bar-root-vertical"]),ref:"navList",clipChildren:!1,clipPadding:!1,onItemFocused:e.onTabChange},{default:y((()=>[b("div",{class:"qt-ui-nav-bar-item-css",type:2e4,eventFocus:"",autoWidth:"",focusable:!0,stateTextColor:e.textColor,style:r({focusBackgroundColor:e.focusColor}),sateBackgroundPadding:e.bgPadding,clipChildren:!1},[T(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,bn),f(e.$slots,"default")])),_:3},8,["class","onItemFocused"]))},vn.__file="src/nav-bar/index.vue",function(e){e[e.QT_WATERFALL_SECTION_TYPE_LOADING=-1]="QT_WATERFALL_SECTION_TYPE_LOADING",e[e.QT_WATERFALL_SECTION_TYPE_TITLE=1e3]="QT_WATERFALL_SECTION_TYPE_TITLE",e[e.QT_WATERFALL_SECTION_TYPE_FLEX=1002]="QT_WATERFALL_SECTION_TYPE_FLEX",e[e.QT_WATERFALL_SECTION_TYPE_LIST=1003]="QT_WATERFALL_SECTION_TYPE_LIST",e[e.QT_WATERFALL_SECTION_TYPE_INDEPENDENT_ITEM=1004]="QT_WATERFALL_SECTION_TYPE_INDEPENDENT_ITEM",e[e.QT_WATERFALL_SECTION_TYPE_TAB_LIST=1005]="QT_WATERFALL_SECTION_TYPE_TAB_LIST"}(_n||(_n={})),function(e){e[e.QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM=10001]="QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM",e[e.QT_WATERFALL_ITEM_TYPE_TAB=10002]="QT_WATERFALL_ITEM_TYPE_TAB"}(Sn||(Sn={}));var In=bo({name:"standard-section",props:{enablePlaceholder:{type:Boolean,default:!0},plateData:{type:String,default:""},useDiff:{type:Boolean,default:!0},cachePool:{type:Object,default:{}},sectionType:{type:Number,default:_n.QT_WATERFALL_SECTION_TYPE_FLEX},standItemType:{type:Number,default:Sn.QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM},currentPageIndex:{type:Number,default:-1}}});const kn=["type"];In.render=function(e,t,o,r,l,i){const c=n("text-view"),u=n("qt-poster"),d=n("tv-flex");return a(),s("div",{class:"standard-section-css",blockFocusDirections:["left","right"],clipChildren:!1,type:e.sectionType,focusable:!1,keyName:"_id",flexStyle:"${style}",bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[T(c,{class:"standard-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),T(d,{class:"standard-section-css",name:"QUICKTVUI_WARTERFALL_LIST",blockFocusDirections:["left","right"],clipChildren:!1,bringFocusChildToFront:!0,cachePool:e.cachePool,useDiff:e.useDiff,keyName:"_id",enablePlaceholder:e.enablePlaceholder,flexStyle:"${sectionStyle}",focusScrollTarget:"${focusScrollTarget==true}",list:"${itemList}"},{default:y((()=>[T(u,{"load-delay":500,type:e.standItemType},null,8,["type"]),f(e.$slots,"default")])),_:3},8,["cachePool","useDiff","enablePlaceholder"])],8,kn)},In.__scopeId="data-v-d1c2a896",In.__file="src/waterfall/section/standard-section.vue";const xn="tab-list-section";var Fn=bo({name:"tabs-list-section",props:{enablePlaceholder:{type:Boolean,default:!0},isSwitchBgScroll:{type:Boolean,default:!1},standItemType:{type:Number,default:10001},tabItemType:{type:Number,default:10002},sectionType:{type:Number,default:_n.QT_WATERFALL_SECTION_TYPE_LIST},fetchPendingData:{type:Function,default:null},arrangeType:{type:String,default:"TB"}},setup(e,t){const o=P();return{blockDirections:["left","right"],onItemBind:function(e){o.isLoggable(N.DEBUG)&&o.d(xn,"----------onItemBind--------------\x3e>>",e)},onItemRecycled:function(e){o.isLoggable(N.DEBUG)&&o.d(xn,"----------onItemRecycled--------------\x3e>>",e)},onItemFocused:function(e){o.isLoggable(N.DEBUG)&&o.d(xn,"----------onItemFocused--------------\x3e>>",e)}}}});const Pn={class:"qt-ui-section-tab-list-root",focusable:!1,blockFocusDirections:["right"],clipChildren:!1,useAdvancedFocusSearch:!0,bringFocusChildToFront:!0},Nn=["type"];Fn.render=function(e,t,o,s,r,l){const i=n("text-view"),c=n("qt-poster"),u=n("tv-list"),p=n("tv-item");return a(),d(p,{type:e.sectionType,clipPadding:!1,clipChildren:!1,ref:"listSection",onItemBind:e.onItemBind,onItemUnbind:e.onItemRecycled,onItemFocused:e.onItemFocused},{default:y((()=>[b("div",Pn,[T(i,{class:"standard-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),T(u,{list:"${itemList}",horizontal:"",flexStyle:"${style}",clipChildren:!1,focusable:!1,name:"QUICKTVUI_WARTERFALL_LIST",resetOnDetach:!0,enableKeepFocus:"${enableKeepFocus==true}",endHintEnabled:"${enableEndHit}",onScrollEnable:!1,setSelectChildPosition:0,enablePlaceholder:e.enablePlaceholder,cachePoolName:"HorizontalList",blockFocusDirections:e.blockDirections},{default:y((()=>[T(c,{type:e.standItemType},null,8,["type"]),b("div",{type:e.tabItemType,class:"qt-ui-section-tab-list-item",clipChildren:!1,style:{"padding-left":"24px","padding-right":"23px","justify-content":"center",height:"50px"},autoWidth:"",name:"QUICKTVUI_TAB_2",focusable:!0,eventFocus:""},[T(i,{class:"qt-ui-section-tab-list-item-text",autoWidth:"",gravity:"center",fontSize:36,lines:1,focusable:!1,duplicateParentState:!0,style:{height:"50px"},text:"${text}"})],8,Nn),f(e.$slots,"default")])),_:3},8,["enablePlaceholder","blockFocusDirections"])])])),_:3},8,["type","onItemBind","onItemUnbind","onItemFocused"])},Fn.__scopeId="data-v-88e60816",Fn.__file="src/waterfall/section/tabs-list-section.vue";var Dn=bo({name:"loading-section"});const En={focusable:!1,type:-1,class:"loading-section-css"};Dn.render=function(e,t,o,r,l,i){const c=n("qt-loading-view");return a(),s("div",En,[T(c,{class:"loading-section-loading-css"})])},Dn.__scopeId="data-v-48609f24",Dn.__file="src/waterfall/section/loading-section.vue";var Cn=bo({props:{plateTitleLeftMargin:{type:Number,default:0},type:{type:Number,default:_n.QT_WATERFALL_SECTION_TYPE_TITLE}},setup:(e,t)=>({})});const Rn=["type"];function Ln(e,t){const o=[];if(t&&t.length>0)for(let n=0;n<t.length;n++){let a=wn(e,t[n],n);o.push(a)}return o}function wn(e,t,o){return t.itemList.length>0&&function(e,t,o){const n=t.itemList,a=t.style?.spacing??0;let s=0,r=0,l=0,i=0;for(let t=0;t<n.length;t++){const c=n[t];c._sectionIndex=o;let u=c?.style.width??0,d=c?.style.height??0;s+u>=e+a&&(r+=l+a,l=0,s=0),c.layout||(c.layout=[0,0,u,d]),c.layout[0]=s,c.layout[1]=r,c.layout[1]+d>i&&(i=c.layout[1]+d),d>l&&(l=d),s+=u+a}}(e.width,t,o),{type:t.type,style:t.style,title:t.title,titleStyle:t.titleStyle,itemList:t.itemList}}function On(){let e=[];function t(e){return e.itemList.length}function o(o,n){console.log("----1--------getRangeSectionListItemCount-----------------\x3e>>>");const a=e.length;if(o<0||o>=a)return 0;console.log("----2--------getRangeSectionListItemCount-----------------\x3e>>>");let s=o+n;o+n>a&&(s=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let r=0;for(let n=o;n<s;n++){r+=t(e[n])}return r}return{addSectionList:function(n){console.log("----1--------addSectionList-----------------\x3e>>>");const a=e.length;console.log("-----2-------addSectionList-----------------\x3e>>>",a);const s=o(0,a);console.log("-----3-------addSectionList-----------------\x3e>>>",s);const r=function(e){if(e.length<=0)return 0;let o=0;for(let n=0;n<e.length;n++){o+=t(e[n])}return o}(n);return console.log("-----4-------addSectionList-----------------\x3e>>>",r),e.push(...n),{sectionIndex:a,sectionCount:n.length,itemIndex:s,itemCount:r}},deleteSection:function(t,n){const a=o(0,t-1),s=o(t,n);return e.splice(t,n),{sectionIndex:t,sectionCount:n,itemIndex:a,itemCount:s}},updateSection:function(n,a){const s=o(0,n-1),r=t(a);return e.splice(n,1,a),{sectionIndex:n,sectionCount:1,itemIndex:s,itemCount:r}},addItemList:function(t,o){const n=e.length;if(t<0||t>=n||o.length<=0)return{sectionIndex:-1,sectionCount:0,itemIndex:-1,itemCount:0};const a=e[t],s=a.itemList.length;return a.itemList.push(...o),{sectionIndex:t,sectionCount:1,itemIndex:s,itemCount:o.length}},deleteItem:function(t,o,n){return e[t].itemList.splice(o,n),{sectionIndex:t,sectionCount:1,itemIndex:o,itemCount:n}},updateItem:function(t,o,n){return e[t].itemList.splice(o,1,n),{sectionIndex:t,sectionCount:1,itemIndex:-1,itemCount:-1}},clear:function(){e=[]}}}Cn.render=function(e,t,o,l,i,c){const u=n("text-view");return a(),s("div",{class:"section-title-css",blockFocusDirections:["left","right"],clipChildren:!1,type:e.type,focusable:!1,bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[T(u,{class:"section-title-text-css",delayLoad:"200",postDelay:"300",style:r({marginLeft:e.plateTitleLeftMargin+"px"}),focusable:!1,textSize:50,text:"${title}"},null,8,["style"])],8,Rn)},Cn.__scopeId="data-v-20428d40",Cn.__file="src/waterfall/section/section-title.vue";const An="qt-waterfall";var $n=bo({name:"qt-waterfall",emits:["onScroll","onScrollStateChanged","onItemClick","onItemFocused","onItemBind","onItemAttached"],props:{enablePlaceholder:{type:Boolean,default:!0},prevLoadNumber:{type:Number,default:3},backTop:{type:Function,default:()=>{}},isLoadMore:{type:Boolean,default:!0},headBlank:{type:Number,default:90}},setup(e,t){const n=P(),a={name:"tvList"+Date.now(),size:{20008:10}},s=o();let r;const l=On();return{waterfallRef:s,init:function(e){r=e},setSectionList:function(e){if(!r)return;n.isLoggable(N.DEBUG)&&n.d(An,"-------1---setSectionList--------------\x3e>>"),l.clear(),n.isLoggable(N.DEBUG)&&n.d(An,"-------2---setSectionList--------------\x3e>>"),l.addSectionList(e);const t=Ln(r,e);n.isLoggable(N.DEBUG)&&n.d(An,"----------setSectionList-----最终数据---------\x3e>>",t),s.value?.setListData(t)},addSectionList:function(e){if(!r)return;const t=l.addSectionList(e);n.isLoggable(N.DEBUG)&&n.d(An,"----------addSectionList--------------\x3e>>",t);const o=Ln(r,e);s.value?.addListData(o)},deleteSection:function(e,t){const o=l.deleteSection(e,t);n.isLoggable(N.DEBUG)&&n.d(An,"----------deleteSection--------------\x3e>>",o),s.value?.deleteItem(e,t)},updateSection:function(e,t){const o=l.updateSection(e,t);o.itemIndex>=0&&o.itemCount>=0&&(n.isLoggable(N.DEBUG)&&n.d(An,"----------updateSection--------------\x3e>>",o),s.value?.updateItemList(o.itemIndex,o.itemCount,t.itemList))},addItemList:function(e,t){const o=l.addItemList(e,t);o.itemIndex>=0&&o.itemCount>=0&&(n.isLoggable(N.DEBUG)&&n.d(An,"----------addItemList--------------\x3e>>",o),s.value?.addItem(o.itemIndex,t))},deleteItem:function(e,t,o){const a=l.deleteItem(e,t,o);a.itemIndex>=0&&a.itemCount>=0&&(n.isLoggable(N.DEBUG)&&n.d(An,"----------deleteItem--------------\x3e>>",a),s.value?.deleteItem(a.itemIndex,a.itemCount))},updateItem:function(e,t,o){l.updateItem(e,t,o)},cachePool:a,flexCachePool:{name:"tvFlex",size:{1:50}},onScroll:function(e){e.stopPropagation();let o=e.offsetY,n=e.offsetX;t.emit("onScroll",n,o)},onItemClick:function(e){t.emit("onItemClick",e.item._sectionIndex,e.position,e.item)},onItemFocused:function(e){n.isLoggable(N.DEBUG)&&n.d(An,"----------onItemFocused--------------\x3e>>",e,"sectionIndex:"+e.item._sectionIndex+" position:"+e.position+" isFocused:"+e.isFocused+" "),t.emit("onItemFocused",e.item._sectionIndex,e.position,e.isFocused,e.item)},onItemBind:function(e){n.isLoggable(N.DEBUG)&&n.d(An,"----------onItemBind--------------\x3e>>",e),t.emit("onItemBind",e.position)},onItemAttached:function(e){t.emit("onItemAttached",e.position)},onScrollStateChanged:function(e){let o=e.offsetY,n=e.offsetX,a=e.newState;t.emit("onScrollStateChanged",n,o,a)},resumePostTask:function(){s.value?.pausePostTask()},pausePostTask:function(){s.value?.pausePostTask()},clearPostTask:function(){s.value?.clearPostTask()},destroy:function(){s.value?.destroy()},onListSectionItemBind:function(e,t){n.isLoggable(N.DEBUG)&&n.d(An,"----------onListSectionItemBind--------------\x3e>>",e,t),s.value?.updateItem(e,t)}}},components:{"standard-section":In,"tabs-list-section":Fn,"section-title":Cn,"loading-section":Dn}});const Bn=(e=>(_("data-v-2e65df68"),e=e(),S(),e))((()=>b("div",{focusable:!1,type:-1e3,style:{backgroundColor:"transparent"},flexStyle:"${sectionStyle}"},null,-1))),Vn={type:-1001,focusable:!1,flexStyle:"${sectionStyle}",style:{"background-color":"transparent","align-items":"center"}};$n.render=function(e,t,o,s,r,l){const c=n("standard-section"),u=n("tabs-list-section"),p=n("loading-section"),g=n("text-view"),h=n("tv-list");return a(),d(h,{ref:"waterfallRef",class:"qt-waterfall-root-css",clipChildren:!1,clipPadding:!1,listenBoundEvent:!0,negativeKeyTime:"30",postContentDelay:"500",onScroll:e.onScroll,onItemClick:e.onItemClick,onItemFocused:e.onItemFocused,onItemBind:e.onItemBind,onItemAttached:e.onItemAttached,focusMemory:!1,cachePool:e.cachePool,preload:1,checkScrollOffsetOnStateChanged:!0,makeChildVisibleType:"center",scrollThresholdVertical:50,scrollEventThrottle:16,enableSelectOnFocus:!1,advancedFocusSearchSpan:"1",scrollYLesserReferenceValue:30,scrollYGreaterReferenceValue:30,shakePreCheckNumber:"4",blockFocusDirections:["down"],onScrollStateChanged:e.onScrollStateChanged},{default:y((()=>[i(" 普通版块"),T(c,{useDiff:!1,"cache-pool":e.flexCachePool,enablePlaceholder:e.enablePlaceholder},{default:y((()=>[f(e.$slots,"item")])),_:3},8,["cache-pool","enablePlaceholder"]),i("一行滚动 多级tab"),T(u,{enablePlaceholder:e.enablePlaceholder},{default:y((()=>[f(e.$slots,"listItem")])),_:3},8,["enablePlaceholder"]),i(" loading"),T(p),Bn,b("div",Vn,[T(g,{focusable:!1,gravity:"center",style:{width:"500px",height:"50px",color:"rgba(255,255,255,.5)","margin-top":"55px","align-self":"center","background-color":"transparent"},fontSize:28,text:"${text}"})]),f(e.$slots,"section")])),_:3},8,["onScroll","onItemClick","onItemFocused","onItemBind","onItemAttached","cachePool","onScrollStateChanged"])},$n.__scopeId="data-v-2e65df68",$n.__file="src/waterfall/index.vue";var zn,Un,qn=bo({name:"qt-tab",props:{prevLoadNumber:{type:Number,default:3},topBlank:{type:Number,default:0},tabNavBarClass:{type:String,default:""},tabClass:{type:String,default:""},tabsDataStrategy:{type:String,default:"overTime"},tabContentClass:{type:String,default:""},horizontal:{type:Boolean,default:!0},pageTransform:{type:Boolean,default:!0},hideOnSingleTab:{type:Boolean,default:!0},floatNavBar:{type:Boolean,default:!0},arrangeType:{type:String,default:"TB"},decorationCreator:{type:Function,default:null},contentNextFocus:{type:Object,default:()=>({up:"tabList",left:"tabList"})},headBlank:{type:Number,default:0},nodeGap:{type:Number,default:36},enableLoadMore:{type:Boolean,default:!0},triggerTask:{type:Array,default:()=>[]},blockViewPager:{type:Array,default:()=>[]},blockViewPagerVertical:{type:Array,default:()=>[]}},setup(e,t){const n=o(),a=o(!0),s=o(300),r=o(500),l=o(1),i=o(!0),c=o();let u;return{tabs:n,ifTabs:a,navBarRef:c,initTab:function(e){let t={defaultIndex:e.defaultIndex,focusIndex:e.defaultFocusIndex,data:e.tabItemList};n.value?.setTabsData(t)},initWaterfall:function(e){u=e},setTabPageData:function(e,t){const o={data:Ln(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};n.value?.setPageData(e,o)},addPageData:function(e,t,o=0){const a={data:Ln(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};n.value?.addPageData(e,a,o)},updatePageData:function(e,t){const o={data:Ln(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};n.value?.updatePageData(e,o)},blockRootFocus:function(){n.value?.blockRootFocus()},unBlockRootFocus:function(){n.value?.unBlockRootFocus()},focusBackToTop:function(){n.value?.focusBackToTop()},requestNodeFocus:function(e){n.value?.requestNodeFocus(e)},reloadAll:function(e=!0){n.value?.reloadAll(e)},reloadPage:function(e){n.value?.reloadPage(e)},setCurrentPage:function(e){n.value?.setCurrentPage(e)},requestTabFocus:function(e){n.value?.requestTabFocus(e)},invokeContentFunction:function(e,t,o){n.value?.invokeContentFunction(e,t,o)},invokeContentFunctionDirect:function(e,t){n.value?.invokeContentFunctionDirect(e,t)},contentScrollToFocus:function(e){n.value?.contentScrollToFocus(e)},getRootNodeViewState:function(e,t,o){n.value?.getRootNodeViewState(e,t,o)},getChildNodeViewState:function(e,t,o,a,s){n.value?.getChildNodeViewState(e,t,o,a,s)},dispatchUIFunctionOnChildNode:function(e,t,o,a,s){n.value?.dispatchUIFunctionOnChildNode(e,t,o,a,s)},updateItemMatched:function(e="id",t,o){n.value?.updateItemMatched(e,t,o)},updateRootNode:function(e,t,o){n.value?.updateRootNode(e,t,o)},updateChildNode:function(e,t,o,a){n.value?.updateChildNode(e,t,o,a)},destroy:function(){n.value?.destroy()},pageSwitchDelay:s,pageResumeDelay:r,rootOpacity:l,isTabHorizontal:i,onLoadTabPageData:function(e){const o=e.pageIndex,n=e.useDiff;t.emit("onLoadTabPageData",o,n)},onTabPageChanged:function(e){const o=e.pageIndex,n=e.data;t.emit("onTabPageChanged",o,n)},onTabEvent:function(e){const o=e.params,n=e.eventName,a=e.params.itemPosition;t.emit("onTabEvent",a,n,o)}}}});function jn(e,t,o=!0){let n=e.length;o?e.map(((e,o)=>{o!==n-1&&(e.decoration={bottom:t})})):e.map(((e,o)=>{o!==n-1&&(e.decoration={right:t})}))}qn.render=function(e,t,o,s,r,c){const u=n("qt-nav-bar"),p=n("qt-waterfall"),g=n("recycler-view-pager"),h=n("tabs");return e.ifTabs?(a(),d(h,{key:0,ref:"tabs",class:l(["tabs-root-css",e.tabClass]),dataStrategy:e.tabsDataStrategy,hideOnSingleTab:this.hideOnSingleTab,pageSwitchDelay:e.pageSwitchDelay,resumeTaskDelay:e.pageResumeDelay,suspension:this.floatNavBar,clipChildren:!1,outOfDateTime:3e5,blockFocusDirections:["down"],onLoadPage:e.onLoadTabPageData,onPageChanged:e.onTabPageChanged,onTabEvent:e.onTabEvent},{default:y((()=>[T(u,{ref:"navBarRef",name:"tabList",focusable:!1,class:"tab-nav-bar-root-css","class-name":e.tabNavBarClass,"text-key":"text",clipChldren:!1,horizontal:e.isTabHorizontal},{default:y((()=>[f(e.$slots,"tabItem")])),_:3},8,["class-name","horizontal"]),T(g,{nextFocusName:e.contentNextFocus,ref:"viewPager",class:l(e.tabContentClass),name:"content",loadingItemType:-1,clipChldren:!1,opacity:e.rootOpacity,focusable:!1,enableTransform:e.pageTransform,triggerTask:e.triggerTask,direction:e.isTabHorizontal?"horizontal":"vertical",blockFocusDirections:e.isTabHorizontal?e.blockViewPager:e.blockViewPagerVertical},{default:y((()=>[T(p,null,{item:y((()=>[f(e.$slots,"waterfallItem")])),_:3})])),_:3},8,["nextFocusName","class","opacity","enableTransform","triggerTask","direction","blockFocusDirections"])])),_:3},8,["dataStrategy","hideOnSingleTab","pageSwitchDelay","resumeTaskDelay","suspension","class","onLoadPage","onPageChanged","onTabEvent"])):i("v-if",!0)},qn.__file="src/tab/index.vue",function(e){e.QT_DIRECTION_UP="up",e.QT_DIRECTION_DOWN="down",e.QT_DIRECTION_RIGHT="right",e.QT_DIRECTION_LEFT="left"}(zn||(zn={})),function(e){e[e.SCROLL_STATE_IDLE=0]="SCROLL_STATE_IDLE",e[e.SCROLL_STATE_DRAGGING=1]="SCROLL_STATE_DRAGGING",e[e.SCROLL_STATE_SETTLING=2]="SCROLL_STATE_SETTLING"}(Un||(Un={}));const Mn=[D,A,pn,vn,$n,qn],Wn=n=>{n.component("qt-loading-view",{setup(e,t){const n=o();return()=>k("LoadingViewComponent",{ref:n})}}),function(n){const a=t({props:{loadMore:{type:Function,default:function(){return[1,1]}},openPage:{type:Boolean,default:!1},preloadNo:{type:Number,default:0},defaultFocus:{type:Number,default:-1}},emits:["item-click","scroll","item-focused","item-attached","item-detached","item-bind","item-unbind","load-more","scroll-state-changed","focus-search-failed","scrollYGreaterReference","scrollYLesserReference"],setup(t,n){const a=o(),s=F(),r={apkVersion:String(s.getESSDKVersionCode()).slice(0,3),recordTarget:[],changeTarget:[],keyArr:[],type:"",pageNo:-1,isStopPage:!1,setListDataTimer:-1,stopPageTimer:-1,defaultFocusTimer:-1,pushDataTimer:-1};g((()=>t.openPage),((e,o)=>{1==e&&e&&(r.pageNo=1,r.isStopPage=!1,t.loadMore(r.pageNo))}));const l=e=>{0==r.recordTarget.length&&(r.recordTarget=c(e),i(r.recordTarget,-1),r.changeTarget=e,t.openPage?p(r.recordTarget.concat([{type:"1002",decoration:{top:18,bottom:18,right:30,left:30}}])):p(r.recordTarget),t.defaultFocus>-1&&(r.defaultFocusTimer&&clearTimeout(r.defaultFocusTimer),r.defaultFocusTimer=setTimeout((()=>{S(t.defaultFocus)}),500)));let o={get(e,o,n){if("__ob__"!=o&&"symbol"!=typeof o&&"map"!=o&&"length"!=o&&"constructor"!=o&&"_isVue"!=o&&"valueOf"!=o&&"toString"!=o&&"observeArray"!=o&&"dep"!=o&&"notify"!=o&&"subs"!=o&&"slice"!=o)if(r.keyArr.push(o),-1!=r.keyArr.indexOf("push"))r.type="push";else{if(-1!=r.keyArr.indexOf("splice"))return r.type="splice",function(...t){return e.splice(...t),-1!=r.keyArr.indexOf("list")?(r.recordTarget[r.keyArr[0]].list.splice(...t),v(Number(r.keyArr[0]),r.recordTarget[r.keyArr[0]])):1==t.length?(y(Number(t[0]),r.recordTarget.length-t[0]+1),r.recordTarget.splice(...t)):2==t.length?(y(Number(t[0]),t[1]),r.recordTarget.splice(...t)):3==t.length&&(e.splice(t[0],t[1],...t[2]),r.recordTarget.splice(t[0],t[1],...t[2]),0==t[1]?Number(r.apkVersion)>2.2&&_(t[0],t[2]):T(t[0],t[1],t[2])),r.keyArr=[],Reflect.get(e,o,n)};if(-1!=r.keyArr.indexOf("pop"))return r.type="pop",function(){return e.pop(),-1!=r.keyArr.lastIndexOf("list")?(r.recordTarget[r.keyArr[0]].list.pop(),v(Number(r.keyArr[0]),r.recordTarget[r.keyArr[0]])):(y(Number(r.recordTarget.length-1),1),r.recordTarget.pop()),r.keyArr=[],Reflect.get(e,o,n)};if(-1!=r.keyArr.indexOf("forEach"))return r.type="forEach",function(a){return e.forEach((e=>{a(e)})),r.recordTarget=[],r.recordTarget=c(e),t.openPage?p(r.recordTarget.concat([{type:"1002",decoration:{top:15,left:30}}])):p(r.recordTarget),r.keyArr=[],Reflect.get(e,o,n)};if(-1!=r.keyArr.indexOf("concat"))return r.type="concat",function(a){return e.concat(a),-1!=r.keyArr.lastIndexOf("list")?(r.recordTarget[r.keyArr[0]].list=r.recordTarget[r.keyArr[0]].list.concat(a),v(Number(r.keyArr[0]),r.recordTarget[r.keyArr[0]])):t.openPage&&!r.isStopPage?(r.recordTarget.concat(a),setTimeout((()=>{h(a.concat([{type:"1002",decoration:{bottom:18,right:30,left:30}}]),1)}),300)):f(a),r.keyArr=[],Reflect.get(e,o,n)};if(-1!=r.keyArr.indexOf("deleteItem"))return function(...t){let a=!1;for(let o=0;o<r.recordTarget.length;o++){const n=r.recordTarget[o];if(n.id&&n.id==t[0])return a=!0,y(Number(o),t[1]),e.splice(Number(o),t[1]),r.recordTarget.splice(Number(o),t[1]),!1;if(n.list&&n.list.length>0)for(let s=0;s<n.list.length;s++){const l=n.list[s];if(l.id&&l.id==t[0])return a=!0,e[o].list.splice(Number(s),t[1]),r.recordTarget[o].list.splice(Number(s),t[1]),v(Number(o),r.recordTarget[o]),!1}}return a||console.log("deleteItem:没有找到相对应id"),r.keyArr=[],Reflect.get(e,o,n)};if(-1!=r.keyArr.indexOf("updateItemProps"))return r.type="updateItemProps",function(...t){let a=t[2];return u(a)&&(Object.keys(a).forEach((o=>{e[t[0]][`${o}`]=a[`${o}`],r.recordTarget[t[0]][`${o}`]=a[`${o}`]})),-1!=r.keyArr.indexOf("list")?console.log("updateItemProps: 不支持嵌套调用updateItemProps"):b(t[0],t[1],t[2])),r.keyArr=[],Reflect.get(e,o,n)};r.type=""}const a=Reflect.get(e,o,n);return u(a)&&"__ob__"!=o&&"dep"!=o&&"subs"!=o?l(a):(-1==r.keyArr.indexOf("push")&&(r.keyArr=[]),a)},set(e,o,n,a){const s=e[o];d(e,o);const l=Reflect.set(e,o,n,a);if((!u(s)&&s!==n||u(s))&&"push"!=r.type)if(r.keyArr.push(o),-1!=r.keyArr.lastIndexOf("list")){let e=r.keyArr.lastIndexOf("list"),t=r.keyArr.lastIndexOf("list")+2,o={};for(let e=0;e<t;e++){let t=r.keyArr[e];o=o?o[t]:r.changeTarget[t]}o.name="name"+r.keyArr[e-1]+r.keyArr[e+1],v(Number(r.keyArr[0]),r.changeTarget[r.keyArr[0]]),r.recordTarget[r.keyArr[0]].list[r.keyArr[e+1]]=r.changeTarget[r.keyArr[0]].list[r.keyArr[e+1]],r.recordTarget[r.keyArr[0]].list[r.keyArr[e+1]].name="name"+r.keyArr[e-1]+r.keyArr[e+1]}else r.recordTarget[r.keyArr[0]]=r.changeTarget[r.keyArr[0]],r.recordTarget[r.keyArr[0]].name="name"+r.keyArr[0],v(Number(r.keyArr[0]),r.changeTarget[r.keyArr[0]]);if(o&&"push"==r.type&&s!==n)-1!=r.keyArr.lastIndexOf("list")?(r.keyArr.push(o),r.recordTarget[r.keyArr[0]].list.push(n)):(r.keyArr.push(o),r.recordTarget.push(n));else{if("push"==r.type)if(-1!=r.keyArr.lastIndexOf("list"))v(Number(r.keyArr[0]),r.recordTarget[r.keyArr[0]]);else{let e=r.recordTarget.slice(r.keyArr[1]);r.pushDataTimer&&clearTimeout(r.pushDataTimer),t.openPage&&!r.isStopPage?r.pushDataTimer=setTimeout((()=>{h(e.concat([{type:"1002",decoration:{bottom:18,right:30,left:30}}]),1)}),300):r.pushDataTimer=setTimeout((()=>{f(e)}),300)}r.keyArr=[]}return l}};return new Proxy(e,o)},i=(e,t)=>{for(let o=0;o<e.length;o++){const n=e[o];n.name=t>=0?"name"+t+o:"name"+o,n.list&&n.list.length>0&&i(n.list,o)}},c=(e={})=>{let t=null;if("object"==typeof e&&null!==e)for(var o in t=e instanceof Array?[]:{},e)t[o]=c(e[o]);else t=e;return t},u=e=>null!==e&&"object"==typeof e,d=(e,t)=>{Object.hasOwnProperty.call(e,t)},p=t=>{r.setListDataTimer&&clearTimeout(r.setListDataTimer),r.setListDataTimer=setTimeout((()=>{e.callUIFunction(a.value,"setListData",t)}),100)},f=t=>{e.callUIFunction(a.value,"addListData",t)},h=(t,o)=>{e.callUIFunction(a.value,"addListDataWithParams",[t,o])},y=(t,o)=>{e.callUIFunction(a.value,"deleteItemRange",[t,o])},v=(t,o)=>{e.callUIFunction(a.value,"updateItem",[t,o])},T=(t,o,n)=>{e.callUIFunction(a.value,"updateItemRange",[t,o,n])},b=(t,o,n)=>{e.callUIFunction(a.value,"updateItemProps",[o,t,n,!0])},_=(t,o)=>{e.callUIFunction(a.value,"insertItemRange",[t,o])},S=t=>{e.callUIFunction(a.value,"requestChildFocus",[t])};return m((()=>{r.recordTarget=[],r.changeTarget.length=0,r.keyArr=[],r.isStopPage=!1,r.pageNo=1,r.type="",r.setListDataTimer&&clearTimeout(r.setListDataTimer),r.defaultFocusTimer&&clearTimeout(r.defaultFocusTimer),r.pushDataTimer&&clearTimeout(r.pushDataTimer),r.stopPageTimer&&clearTimeout(r.stopPageTimer)})),n.expose({viewRef:a,init:l,...r,undataItemName:i,hasChanged:(e,t)=>e!==t&&(e==e||t==t),updateItem:v,updateItemList:T,hasFocus:t=>{e.callUIFunction(a.value,"hasFocus",(e=>{t(e)}))},updateItemProps:b,setListData:p,insertItem:_,addListData:f,addListDataWithParams:h,dispatchItemFunction:(t,o,n,s)=>{e.callUIFunction(a.value,"dispatchItemFunction",[t,o,n,s])},deleteItem:y,setBlockFocusDirectionsOnFail:t=>{e.callUIFunction(a.value,"setBlockFocusDirectionsOnFail",[t])},setListDataWithParams:(t,o)=>{e.callUIFunction(a.value,"setListDataWithParams",[t,o])},prepareForRecycle:()=>{e.callUIFunction(a.value,"prepareForRecycle",[])},setDisplay:t=>{e.callUIFunction(a.value,"setDisplay",[t])},scrollToTop:()=>{e.callUIFunction(a.value,"scrollToTop",[])},changeDisplayState:(t,o)=>{e.callUIFunction(a.value,"changeDisplayState",[t,o])},notifySaveInstance:()=>{e.callUIFunction(a.value,"notifySaveInstance",[])},notifyRestoreInstance:()=>{e.callUIFunction(a.value,"notifyRestoreInstance",[])},pausePostTask:()=>{e.callUIFunction(a.value,"pausePostTask",[])},resumePostTask:()=>{e.callUIFunction(a.value,"resumePostTask",[])},getScrollOffset:t=>{e.callUIFunction(a.value,"getScrollOffset",[],t)},scrollToPosition:t=>{e.callUIFunction(a.value,"scrollToPosition",[t])},scrollToPositionOffset:(t,o,n,s,r)=>{e.callUIFunction(a.value,"scrollToPositionWithOffset",[o,s,n])},destroy:()=>{e.callUIFunction(a.value,"destroy",[])},setInitPosition:t=>{e.callUIFunction(a.value,"setInitPosition",[t])},requestFocus:S,clearPostTask:()=>{e.callUIFunction(a.value,"clearAllPostTask",[])},clearFocus:()=>{e.callUIFunction(a.value,"clearFocus",[])},setSelectPosition:(t,o)=>{e.callUIFunction(a.value,"setSelectChildPosition",[t,o])},blockRootFocus:()=>{e.callUIFunction(a.value,"blockRootFocus",[])},unBlockRootFocus:()=>{e.callUIFunction(a.value,"unBlockRootFocus",[])},setBackgroundColor:t=>{e.callUIFunction(a.value,"setBackgroundColor",[t])},stopPage:()=>{r.stopPageTimer&&clearTimeout(r.stopPageTimer),r.stopPageTimer=setTimeout((()=>{y(r.recordTarget.length,1)}),400),r.isStopPage=!0}}),()=>{const e=n.slots.default&&n.slots.default();return k("FastListView",{ref:a,onItemClick:e=>{n.emit("item-click",e)},onScroll:e=>{n.emit("scroll",e)},onItemFocused:e=>{n.emit("item-focused",e)},onAttachedToWindow:e=>{n.emit("item-attached",e)},onDetachedFromWindow:e=>{n.emit("item-detached",e)},onBindItem:e=>{n.emit("item-bind",e)},onUnbindItem:e=>{n.emit("item-unbind",e)},onLoadMore:e=>{n.emit("load-more",e)},onScrollStateChanged:e=>{n.emit("scroll-state-changed",e)},onFocusSearchFailed:e=>{n.emit("focus-search-failed",e)},onScrollYGreaterReference:e=>{n.emit("scrollYGreaterReference",e)},onScrollYLesserReference:e=>{n.emit("scrollYLesserReference",e)}},e)}}});n.component("qt-list-view",a)}(n),function(n){const a=t({emits:["item-focused","item-attached","item-detached","item-bind","item-unbind"],setup(t,n){const a=o();return n.expose({viewRef:a,updateItem:(t,o)=>{e.callUIFunction(a.value,"updateItem",[t,o])},dispatchItemFunction:(t,o,n,s)=>{e.callUIFunction(a.value,"dispatchItemFunction",[t,o,n,s])},updateItemProps:(t,o,n)=>{e.callUIFunction(a.value,"updateItemProps",[o,t,n,!0])},batch:t=>{e.callUIFunction(a.value,"batch",[t])}}),()=>{const e=n.slots.default&&n.slots.default();return k("FastListView",{ref:a,onBindItem:e=>{n.emit("item-bind",e)},onItemFocused:e=>{n.emit("item-focused",e)},onAttachedToWindow:e=>{n.emit("item-attached",e)},onDetachedFromWindow:e=>{n.emit("item-detached",e)},onItemRecycled:e=>{n.emit("item-unbind",e)}},e)}}});n.component("qt-list-item",a)}(n);for(let e in Mn)n.component(Mn[e].name,Mn[e])};export{zn as QTDirections,Un as QTScrollState,Sn as QTWaterfallItemType,_n as QTWaterfallSectionType,Wn as QuickTVUI,jn as arrangeChildren4ListView};
|
|
@@ -13,11 +13,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
type: NumberConstructor;
|
|
14
14
|
default: number;
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
tabNavBarClass: {
|
|
17
17
|
type: StringConstructor;
|
|
18
18
|
default: string;
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
tabClass: {
|
|
21
21
|
type: StringConstructor;
|
|
22
22
|
default: string;
|
|
23
23
|
};
|
|
@@ -25,7 +25,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
25
|
type: StringConstructor;
|
|
26
26
|
default: string;
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
tabContentClass: {
|
|
29
29
|
type: StringConstructor;
|
|
30
30
|
default: string;
|
|
31
31
|
};
|
|
@@ -127,11 +127,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
127
127
|
type: NumberConstructor;
|
|
128
128
|
default: number;
|
|
129
129
|
};
|
|
130
|
-
|
|
130
|
+
tabNavBarClass: {
|
|
131
131
|
type: StringConstructor;
|
|
132
132
|
default: string;
|
|
133
133
|
};
|
|
134
|
-
|
|
134
|
+
tabClass: {
|
|
135
135
|
type: StringConstructor;
|
|
136
136
|
default: string;
|
|
137
137
|
};
|
|
@@ -139,7 +139,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
139
139
|
type: StringConstructor;
|
|
140
140
|
default: string;
|
|
141
141
|
};
|
|
142
|
-
|
|
142
|
+
tabContentClass: {
|
|
143
143
|
type: StringConstructor;
|
|
144
144
|
default: string;
|
|
145
145
|
};
|
|
@@ -201,10 +201,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
201
201
|
}>>, {
|
|
202
202
|
prevLoadNumber: number;
|
|
203
203
|
topBlank: number;
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
tabNavBarClass: string;
|
|
205
|
+
tabClass: string;
|
|
206
206
|
tabsDataStrategy: string;
|
|
207
|
-
|
|
207
|
+
tabContentClass: string;
|
|
208
208
|
horizontal: boolean;
|
|
209
209
|
pageTransform: boolean;
|
|
210
210
|
hideOnSingleTab: boolean;
|