全栈小学生 62deb91d0a wap update
2023-06-02 19:20:16 +08:00

9 lines
57 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{_ as e}from"./u-icon.88a425c1.js";import{d as t,u as o,r as n,c as r,k as a,l as i,e as l,f as s,w as c,K as u,M as d,L as p,D as f,n as h,j as m,p as g,h as v,C as b,A as y,B as x,P as w,m as _,F as S,H as C,al as E,ag as D,aE as k,V as T,aF as I,$ as R,aG as O,aH as N,S as A,aI as M,R as P,aJ as j,ak as z,aK as B,ao as F,G as X,E as Y,aL as W}from"./index-e3cbb98d.js";import{_ as H,a as L}from"./tabbar.9ee65337.js";import{c as U}from"./article.492d4506.js";import{_ as G}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as $}from"./u-avatar.c9521559.js";import{_ as V}from"./app-link.vue_vue_type_script_setup_true_lang.c8488cb2.js";const q=G(t({__name:"index",props:["component","index"],setup(t){const C=t,E=o(),D=n([]),k=r((()=>"decorate"==E.mode?E.value[C.index]:C.component)),T=r((()=>{var e="";return k.value.componentBgColor&&(e+="background-color:"+k.value.componentBgColor+";"),k.value.topRounded&&(e+="border-top-left-radius:"+2*k.value.topRounded+"rpx;"),k.value.topRounded&&(e+="border-top-right-radius:"+2*k.value.topRounded+"rpx;"),k.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*k.value.bottomRounded+"rpx;"),k.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*k.value.bottomRounded+"rpx;"),e})),I=r((()=>{var e="";return k.value.elementBgColor&&(e+="background-color:"+k.value.elementBgColor+";"),k.value.topElementRounded&&(e+="border-top-left-radius:"+2*k.value.topElementRounded+"rpx;"),k.value.topElementRounded&&(e+="border-top-right-radius:"+2*k.value.topElementRounded+"rpx;"),k.value.bottomElementRounded&&(e+="border-bottom-left-radius:"+2*k.value.bottomElementRounded+"rpx;"),k.value.bottomElementRounded&&(e+="border-bottom-right-radius:"+2*k.value.bottomElementRounded+"rpx;"),e}));(()=>{if("decorate"==E.mode){let e={image:"",summary:"文章摘要",title:"文章标题",create_time:"2023-03-28 09:00:00"};D.value.push(e),D.value.push(e)}else(()=>{let e={};"diy"==k.value.sources?e.ids=k.value.articleIds:e.limit=k.value.count,U(e).then((e=>{D.value=e.data}))})()})();return(t,o)=>{const n=a(i("u-icon"),e),r=a(i("u--image"),H),C=_,E=S;return l(),s(C,{style:h(m(T))},{default:c((()=>[(l(!0),u(d,null,p(D.value,((e,t)=>(l(),s(C,{key:e.id,class:f(["item flex align-center p-[20rpx]",{"border-solid border-t-0 border-l-0 border-r-0 border-b border-gray-200 mb-[20rpx]":D.value.length-1!==t}]),onClick:t=>{return o=e.id,void w({url:"/pages/article/detail",param:{id:o}});var o},style:h(m(I))},{default:c((()=>[e.image?(l(),s(r,{key:0,width:"260rpx",height:"200rpx",src:m(g)(e.image),model:"aspectFill"},{error:c((()=>[v(n,{name:"photo",color:"#999",size:"50"})])),_:2},1032,["src"])):b("",!0),v(C,{class:"flex-1 flex flex-col justify-between ml-[20rpx]"},{default:c((()=>[v(C,{class:"text-[32rpx] leading-[1.3] multi-hidden mt-[4rpx]"},{default:c((()=>[y(x(e.title),1)])),_:2},1024),v(C,{class:"text-[28rpx] using-hidden mb-[auto] mt-[20rpx] text-gray-500"},{default:c((()=>[y(x(e.summary),1)])),_:2},1024),v(C,{class:"text-[24rpx] text-gray-400 flex justify-between mt-[10rpx]"},{default:c((()=>[v(E,null,{default:c((()=>[y(x(e.create_time),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1032,["class","onClick","style"])))),128))])),_:1},8,["style"])}}}),[["__scopeId","data-v-60a99e8b"]]),K=G(t({__name:"index",props:["component","index"],setup(t){const w=t,M=o(),P=r((()=>"decorate"==M.mode?M.value[w.index]:w.component)),j=r((()=>{var e="";return P.value.componentBgColor&&(e+="background-color:"+P.value.componentBgColor+";"),P.value.topRounded&&(e+="border-top-left-radius:"+2*P.value.topRounded+"rpx;"),P.value.topRounded&&(e+="border-top-right-radius:"+2*P.value.topRounded+"rpx;"),P.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*P.value.bottomRounded+"rpx;"),P.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*P.value.bottomRounded+"rpx;"),e})),z=n(0),B=e=>{z.value=e.detail.current},F=n("");C((()=>{X(),"decorate"==M.mode&&E((()=>P.value),((e,t)=>{e&&"GraphicNav"==e.componentName&&X()}))}));const X=()=>{var e;"decorate"==M.mode&&P.value.list.forEach(((e,t)=>{""==e.imageUrl&&(e.imageUrl="static/resource/images/diy/figure.png")})),e=0,"graphic"==P.value.mode?e=(49+P.value.imageSize)*P.value.pageCount:"img"==P.value.mode?e=(22+P.value.imageSize)*P.value.pageCount:"text"==P.value.mode&&(e=43*P.value.pageCount),F.value=e+"rpx"},Y=e=>{if(e.url){if("pages/member/index"==D()&&!k())return void T().setLoginBack({url:e.url});I(e)}};return(o,n)=>{const r=R,w=S,C=_,E=a(i("u-icon"),e),D=O,k=N,T=A;return l(),s(C,{style:h(m(j))},{default:c((()=>[m(P).navTitle?(l(),u("div",{key:0,class:"py-[30rpx] px-[32rpx] text-[30rpx]",style:h({fontWeight:m(P).font.weight,color:m(P).font.color})},x(m(P).navTitle),5)):b("",!0),"vertical"==m(P).layout?(l(),s(C,{key:1,class:"graphic-nav"},{default:c((()=>[(l(!0),u(d,null,p(m(P).list,((e,t)=>(l(),s(C,{class:f(["graphic-nav-item flex items-center justify-between py-[30rpx] px-[32rpx]",[0==t?"border-t-0":"border-t"]]),key:e.id,onClick:t=>Y(e.link)},{default:c((()=>["text"!=m(P).mode?(l(),s(C,{key:0,class:"graphic-img relative flex items-center w-10 h-10 mr-[20rpx]",style:h({width:2*m(P).imageSize+"rpx",height:2*m(P).imageSize+"rpx"})},{default:c((()=>[v(r,{src:m(g)(e.imageUrl),mode:"aspectFill",style:h({maxWidth:2*m(P).imageSize+"rpx",maxHeight:2*m(P).imageSize+"rpx",borderRadius:2*m(P).aroundRadius+"rpx"})},null,8,["src","style"]),e.label.control?(l(),s(w,{key:0,class:"tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs",style:h({color:e.label.textColor,backgroundImage:"linear-gradient("+e.label.bgColorStart+","+e.label.bgColorEnd+")"})},{default:c((()=>[y(x(e.label.text),1)])),_:2},1032,["style"])):b("",!0)])),_:2},1032,["style"])):b("",!0),"img"!=m(P).mode?(l(),s(w,{key:1,class:"graphic-text w-full truncate leading-normal",style:h({fontSize:2*m(P).font.size+"rpx",fontWeight:m(P).font.weight,color:m(P).font.color})},{default:c((()=>[y(x(e.title),1)])),_:2},1032,["style"])):b("",!0),v(E,{name:"arrow-right",color:"#CACACA"})])),_:2},1032,["class","onClick"])))),128))])),_:1})):"horizontal"==m(P).layout&&"pageSlide"==m(P).showStyle?(l(),s(k,{key:2,class:"graphic-nav p-2 box-border relative",circular:"","indicator-dots":!1,style:h({height:F.value}),onChange:B},{default:c((()=>[(l(!0),u(d,null,p(Math.ceil(m(P).list.length/(m(P).pageCount*m(P).rowCount)),((e,o)=>(l(),s(D,{class:"graphic-nav-wrap flex flex-wrap"},{default:c((()=>[t.index>=[(e-1)*(m(P).pageCount*m(P).rowCount)]&&t.index<[e*(m(P).pageCount*m(P).rowCount)]?(l(!0),u(d,{key:0},p(m(P).list,((e,t)=>(l(),s(C,{class:f(["graphic-nav-item flex flex-col items-center box-border py-2",[m(P).mode]]),key:e.id,style:h({width:100/m(P).rowCount+"%"}),onClick:t=>Y(e.link)},{default:c((()=>["text"!=m(P).mode?(l(),s(C,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:h({width:2*m(P).imageSize+"rpx",height:2*m(P).imageSize+"rpx"})},{default:c((()=>[v(r,{src:m(g)(e.imageUrl),mode:"aspectFill",style:h({maxWidth:2*m(P).imageSize+"rpx",maxHeight:2*m(P).imageSize+"rpx",borderRadius:2*m(P).aroundRadius+"rpx"})},null,8,["src","style"]),e.label.control?(l(),s(w,{key:0,class:"tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs",style:h({color:e.label.textColor,backgroundImage:"linear-gradient("+e.label.bgColorStart+","+e.label.bgColorEnd+")"})},{default:c((()=>[y(x(e.label.text),1)])),_:2},1032,["style"])):b("",!0)])),_:2},1032,["style"])):b("",!0),"img"!=m(P).mode?(l(),s(w,{key:1,class:f(["graphic-text w-full text-center truncate leading-normal",{"pt-1.5":"text"!=m(P).mode}]),style:h({fontSize:2*m(P).font.size+"rpx",fontWeight:m(P).font.weight,color:m(P).font.color})},{default:c((()=>[y(x(e.title),1)])),_:2},1032,["class","style"])):b("",!0)])),_:2},1032,["class","style","onClick"])))),128)):b("",!0)])),_:2},1024)))),256))])),_:1},8,["style"])):(l(),s(T,{key:3,"scroll-x":"singleSlide"==m(P).showStyle,class:f(["graphic-nav","graphic-nav-"+m(P).showStyle])},{default:c((()=>[(l(!0),u(d,null,p(m(P).list,((e,t)=>(l(),s(C,{class:f(["graphic-nav-item flex flex-col items-center box-border py-2",{"flex-shrink-0":"singleSlide"==m(P).showStyle}]),key:e.id,style:h({width:100/m(P).rowCount+"%"}),onClick:t=>Y(e.link)},{default:c((()=>["text"!=m(P).mode?(l(),s(C,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:h({width:2*m(P).imageSize+"rpx",height:2*m(P).imageSize+"rpx"})},{default:c((()=>[v(r,{src:m(g)(e.imageUrl),mode:"aspectFill",style:h({maxWidth:2*m(P).imageSize+"rpx",maxHeight:2*m(P).imageSize+"rpx",borderRadius:2*m(P).aroundRadius+"rpx"})},null,8,["src","style"]),e.label.control?(l(),s(w,{key:0,class:f(["tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs"]),style:h({color:e.label.textColor,backgroundImage:"linear-gradient("+e.label.bgColorStart+","+e.label.bgColorEnd+")"})},{default:c((()=>[y(x(e.label.text),1)])),_:2},1032,["style"])):b("",!0)])),_:2},1032,["style"])):b("",!0),"img"!=m(P).mode?(l(),s(w,{key:1,class:f(["graphic-text w-full text-center truncate leading-normal",{"pt-1.5":"text"!=m(P).mode}]),style:h({fontSize:2*m(P).font.size+"rpx",fontWeight:m(P).font.weight,color:m(P).font.color})},{default:c((()=>[y(x(e.title),1)])),_:2},1032,["class","style"])):b("",!0)])),_:2},1032,["class","style","onClick"])))),128))])),_:1},8,["scroll-x","class"]))])),_:1},8,["style"])}}}),[["__scopeId","data-v-f6fa4a3a"]]),Z=t({__name:"index",props:["component","index"],setup(e){const t=e,n=o(),a=r((()=>"decorate"==n.mode?n.value[t.index]:t.component)),i=r((()=>{var e="";return e+="height:"+2*a.value.height+"rpx;",a.value.componentBgColor&&(e+="background-color:"+a.value.componentBgColor+";"),e}));return(e,t)=>{const o=_;return l(),s(o,{style:h(m(i))},null,8,["style"])}}}),J=t({__name:"index",props:["component","index"],setup(e){const t=e,a=o(),i=r((()=>"decorate"==a.mode?a.value[t.index]:t.component)),f=r((()=>{var e="";return i.value.componentBgColor&&(e+="background-color:"+i.value.componentBgColor+";"),e})),b=r((()=>{var e="";return i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;"),e})),y=n(0),x=e=>{y.value=e.detail.current},w=n("");C((()=>{S(),"decorate"==a.mode&&E((()=>i.value),((e,t)=>{e&&"ImageAds"==e.componentName&&S()}))}));const S=()=>{"decorate"==a.mode&&i.value.list.forEach(((e,t)=>{""==e.imageUrl&&(e.imageUrl="static/resource/images/diy/figure.png",e.imgWidth=690,e.imgHeight=330)})),(()=>{let e=0;w.value="0rpx",i.value.list.forEach(((t,o)=>{M({success:e=>{var o=t.imgHeight/t.imgWidth;t.width=e.windowWidth,t.height=t.width*o}}),(0==e||e>t.height)&&(e=t.height)})),i.value.list.forEach(((t,o)=>{t.height=2*e+"rpx",w.value=2*e+"rpx"}))})()};return(e,t)=>{const o=R,n=_,r=O,a=N;return l(),s(n,{class:"image-ads",style:h(m(f))},{default:c((()=>[1==m(i).list.length?(l(),s(n,{key:0,class:"leading-0 overflow-hidden",onClick:t[0]||(t[0]=e=>m(I)(m(i).list[0].link)),style:h(m(b))},{default:c((()=>[v(o,{src:m(g)(m(i).list[0].imageUrl),style:h({height:m(i).list[0].height}),mode:"widthFix",class:"w-full","show-menu-by-longpress":!0},null,8,["src","style"])])),_:1},8,["style"])):(l(),s(a,{key:1,class:"swiper",style:h({height:w.value}),autoplay:"true",circular:"true",onChange:x},{default:c((()=>[(l(!0),u(d,null,p(m(i).list,(e=>(l(),s(r,{class:"swiper-item",key:e.id,onClick:t=>m(I)(e.link),style:h(m(b))},{default:c((()=>[v(n,{class:"item",style:h({height:e.height})},{default:c((()=>[v(o,{src:m(g)(e.imageUrl),mode:"scaleToFill",class:"w-full h-full"},null,8,["src"])])),_:2},1032,["style"])])),_:2},1032,["onClick","style"])))),128))])),_:1},8,["style"]))])),_:1},8,["style"])}}}),Q=G(t({__name:"index",props:["component","index"],setup(e){const t=e,u=o(),d=r((()=>"decorate"==u.mode?u.value[t.index]:t.component)),p=r((()=>{var e="";return d.value.componentBgColor&&(e+="background-color:"+d.value.componentBgColor+";"),d.value.bgUrl&&(e+="background-image:url("+g(d.value.bgUrl)+");",e+="background-size: 100%;",e+="background-repeat: no-repeat;"),d.value.topRounded&&(e+="border-top-left-radius:"+2*d.value.topRounded+"rpx;"),d.value.topRounded&&(e+="border-top-right-radius:"+2*d.value.topRounded+"rpx;"),d.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*d.value.bottomRounded+"rpx;"),d.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*d.value.bottomRounded+"rpx;"),e})),f=P(),{query:b}=j(location.href);b.code&&z()&&B({code:b.code}).then((e=>{f.getMemberInfo()}));const C=r((()=>"decorate"==u.mode?{headimg:"",nickname:"昵称",balance:0,point:0,money:0,member_no:"NIU0000021"}:f.info)),E=r((()=>{if(C.value){let e=parseFloat(C.value.balance)+parseFloat(C.value.money);return F(e.toString())}return 0})),D=()=>{T().setLoginBack({url:"/pages/member/index"})};n(!1);const k=()=>{z()?T().getAuthCode("snsapi_userinfo"):w({url:"/pages/member/personal"})};return(e,t)=>{const o=a(i("u-avatar"),$),n=_,r=S,u=a(i("app-link"),V);return l(),s(n,{style:h(m(p))},{default:c((()=>[v(n,{class:"pt-[34rpx] member-info"},{default:c((()=>[m(C)?(l(),s(n,{key:0,class:"flex ml-[32rpx] mr-[52rpx] items-center relative"},{default:c((()=>[v(o,{src:m(g)(m(C).headimg),size:"55",leftIcon:"none",onClick:k},null,8,["src"]),v(n,{class:"ml-[22rpx]"},{default:c((()=>[v(n,{class:"text-[#222222] truncate w-[430rpx] font-bold text-lg",style:h({color:m(d).textColor})},{default:c((()=>[y(x(m(C).nickname),1)])),_:1},8,["style"]),v(n,{class:"text-[#696B70] text-[24rpx] mt-[10rpx]",style:h({color:m(d).textColor})},{default:c((()=>[y(" UID"+x(m(C).member_no),1)])),_:1},8,["style"])])),_:1}),v(n,{class:"set-icon flex items-center absolute right-0 top-2"},{default:c((()=>[v(u,{url:"/pages/setting/index"},{default:c((()=>[v(r,{class:"iconfont iconshezhi text-[1.6rem] ml-[10rpx]",style:h({color:m(d).textColor})},null,8,["style"])])),_:1})])),_:1})])),_:1})):(l(),s(n,{key:1,class:"flex ml-[32rpx] mr-[52rpx] items-center relative",onClick:D},{default:c((()=>[v(o,{src:"",size:"55"}),v(n,{class:"ml-[22rpx]"},{default:c((()=>[v(n,{class:"text-[#222222] font-bold text-lg",style:h({color:m(d).textColor})},{default:c((()=>[y(x(m(X)("login"))+"/"+x(m(X)("register")),1)])),_:1},8,["style"])])),_:1}),v(n,{class:"set-icon flex items-center absolute right-0 top-2"},{default:c((()=>[v(u,{url:"/pages/setting/index"},{default:c((()=>[v(r,{class:"iconfont iconshezhi text-[1.6rem] ml-[10rpx]",style:h({color:m(d).textColor})},null,8,["style"])])),_:1})])),_:1})])),_:1})),v(n,{class:"flex m-[30rpx] mb-0 py-[30rpx] items-center"},{default:c((()=>[v(n,{class:"flex-1 text-center"},{default:c((()=>[v(n,{class:"font-bold"},{default:c((()=>[v(u,{url:m(C)?"/pages/member/balance":"",style:h({color:m(d).textColor})},{default:c((()=>[y(x(m(E)),1)])),_:1},8,["url","style"])])),_:1}),v(n,{class:"text-sm mt-[10rpx]"},{default:c((()=>[v(u,{url:m(C)?"/pages/member/balance":"",style:h({color:m(d).textColor})},{default:c((()=>[y(x(m(X)("balance")),1)])),_:1},8,["url","style"])])),_:1})])),_:1}),v(n,{class:"border-solid border-white border-l border-b-0 border-t-0 border-r-0 h-[60rpx]"}),v(n,{class:"flex-1 text-center"},{default:c((()=>[v(n,{class:"font-bold"},{default:c((()=>[v(u,{url:m(C)?"/pages/member/point":"",style:h({color:m(d).textColor})},{default:c((()=>{var e;return[y(x(parseInt(null==(e=m(C))?void 0:e.point)||0),1)]})),_:1},8,["url","style"])])),_:1}),v(n,{class:"text-sm mt-[10rpx]"},{default:c((()=>[v(u,{url:m(C)?"/pages/member/point":"",style:h({color:m(d).textColor})},{default:c((()=>[y(x(m(X)("point")),1)])),_:1},8,["url","style"])])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["style"])}}}),[["__scopeId","data-v-81b19758"]]),ee=G(t({__name:"index",props:["component","index"],setup(t){const n=t,u=o(),d=r((()=>"decorate"==u.mode?u.value[n.index]:n.component)),p=r((()=>{var e="";return d.value.componentBgColor&&(e+="background-color:"+d.value.componentBgColor+";"),d.value.topRounded&&(e+="border-top-left-radius:"+2*d.value.topRounded+"rpx;"),d.value.topRounded&&(e+="border-top-right-radius:"+2*d.value.topRounded+"rpx;"),d.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*d.value.bottomRounded+"rpx;"),d.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*d.value.bottomRounded+"rpx;"),e}));return(t,o)=>{const n=_,r=S,u=a(i("u-icon"),e);return l(),s(n,{class:"diy-text",onClick:o[1]||(o[1]=e=>m(w)(m(d).link)),style:h(m(p))},{default:c((()=>["style-1"==m(d).style?(l(),s(n,{key:0,class:"p-[20rpx]"},{default:c((()=>[v(n,{class:"",style:h({fontSize:2*m(d).fontSize+"rpx",color:m(d).textColor,fontWeight:m(d).fontWeight,textAlign:m(d).textAlign})},{default:c((()=>[y(x(m(d).text),1)])),_:1},8,["style"])])),_:1})):b("",!0),"style-2"==m(d).style?(l(),s(n,{key:1,class:"p-[20rpx] flex items-center"},{default:c((()=>[v(n,{class:"max-w-[200rpx] truncate",style:h({fontSize:2*m(d).fontSize+"rpx",color:m(d).textColor,fontWeight:m(d).fontWeight})},{default:c((()=>[y(x(m(d).text),1)])),_:1},8,["style"]),v(r,{class:"ml-[16rpx] max-w-[300rpx] truncate",style:h({color:m(d).subTitle.color,fontSize:2*m(d).subTitle.fontSize+"rpx"})},{default:c((()=>[y(x(m(d).subTitle.text),1)])),_:1},8,["style"]),m(d).more.isShow?(l(),s(n,{key:0,class:"ml-auto text-right flex items-center",style:h({color:m(d).more.color}),onClick:o[0]||(o[0]=Y((e=>m(w)(m(d).more.link)),["stop"]))},{default:c((()=>[v(r,{class:"max-w-[200rpx] truncate text-[24rpx] mr-[8rpx]"},{default:c((()=>[y(x(m(d).more.text),1)])),_:1}),v(u,{name:"arrow-right",size:"12",style:h({color:m(d).more.color})},null,8,["style"])])),_:1},8,["style"])):b("",!0)])),_:1})):b("",!0)])),_:1},8,["style"])}}}),[["__scopeId","data-v-b3400832"]]);
/**!
* Sortable 1.15.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/
function te(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function oe(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?te(Object(o),!0).forEach((function(t){re(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):te(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function re(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function ae(){return ae=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},ae.apply(this,arguments)}function ie(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},a=Object.keys(e);for(n=0;n<a.length;n++)o=a[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)o=a[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function le(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var se=le(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ce=le(/Edge/i),ue=le(/firefox/i),de=le(/safari/i)&&!le(/chrome/i)&&!le(/android/i),pe=le(/iP(ad|od|hone)/i),fe=le(/chrome/i)&&le(/android/i),he={capture:!1,passive:!1};function me(e,t,o){e.addEventListener(t,o,!se&&he)}function ge(e,t,o){e.removeEventListener(t,o,!se&&he)}function ve(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(o){return!1}return!1}}function be(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function ye(e,t,o,n){if(e){o=o||document;do{if(null!=t&&(">"===t[0]?e.parentNode===o&&ve(e,t):ve(e,t))||n&&e===o)return e;if(e===o)break}while(e=be(e))}return null}var xe,we=/\s+/g;function _e(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(we," ").replace(" "+t+" "," ");e.className=(n+(o?" "+t:"")).replace(we," ")}}function Se(e,t,o){var n=e&&e.style;if(n){if(void 0===o)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(o=e.currentStyle),void 0===t?o:o[t];t in n||-1!==t.indexOf("webkit")||(t="-webkit-"+t),n[t]=o+("string"==typeof o?"":"px")}}function Ce(e,t){var o="";if("string"==typeof e)o=e;else do{var n=Se(e,"transform");n&&"none"!==n&&(o=n+" "+o)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(o)}function Ee(e,t,o){if(e){var n=e.getElementsByTagName(t),r=0,a=n.length;if(o)for(;r<a;r++)o(n[r],r);return n}return[]}function De(){var e=document.scrollingElement;return e||document.documentElement}function ke(e,t,o,n,r){if(e.getBoundingClientRect||e===window){var a,i,l,s,c,u,d;if(e!==window&&e.parentNode&&e!==De()?(i=(a=e.getBoundingClientRect()).top,l=a.left,s=a.bottom,c=a.right,u=a.height,d=a.width):(i=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||o)&&e!==window&&(r=r||e.parentNode,!se))do{if(r&&r.getBoundingClientRect&&("none"!==Se(r,"transform")||o&&"static"!==Se(r,"position"))){var p=r.getBoundingClientRect();i-=p.top+parseInt(Se(r,"border-top-width")),l-=p.left+parseInt(Se(r,"border-left-width")),s=i+a.height,c=l+a.width;break}}while(r=r.parentNode);if(n&&e!==window){var f=Ce(r||e),h=f&&f.a,m=f&&f.d;f&&(s=(i/=m)+(u/=m),c=(l/=h)+(d/=h))}return{top:i,left:l,bottom:s,right:c,width:d,height:u}}}function Te(e,t,o){for(var n=Ae(e,!0),r=ke(e)[t];n;){var a=ke(n)[o];if(!("top"===o||"left"===o?r>=a:r<=a))return n;if(n===De())break;n=Ae(n,!1)}return!1}function Ie(e,t,o,n){for(var r=0,a=0,i=e.children;a<i.length;){if("none"!==i[a].style.display&&i[a]!==jt.ghost&&(n||i[a]!==jt.dragged)&&ye(i[a],o.draggable,e,!1)){if(r===t)return i[a];r++}a++}return null}function Re(e,t){for(var o=e.lastElementChild;o&&(o===jt.ghost||"none"===Se(o,"display")||t&&!ve(o,t));)o=o.previousElementSibling;return o||null}function Oe(e,t){var o=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===jt.clone||t&&!ve(e,t)||o++;return o}function Ne(e){var t=0,o=0,n=De();if(e)do{var r=Ce(e),a=r.a,i=r.d;t+=e.scrollLeft*a,o+=e.scrollTop*i}while(e!==n&&(e=e.parentNode));return[t,o]}function Ae(e,t){if(!e||!e.getBoundingClientRect)return De();var o=e,n=!1;do{if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var r=Se(o);if(o.clientWidth<o.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||o.clientHeight<o.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!o.getBoundingClientRect||o===document.body)return De();if(n||t)return o;n=!0}}}while(o=o.parentNode);return De()}function Me(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function Pe(e,t){return function(){if(!xe){var o=arguments,n=this;1===o.length?e.call(n,o[0]):e.apply(n,o),xe=setTimeout((function(){xe=void 0}),t)}}}function je(e,t,o){e.scrollLeft+=t,e.scrollTop+=o}function ze(e){var t=window.Polymer,o=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):o?o(e).clone(!0)[0]:e.cloneNode(!0)}var Be="Sortable"+(new Date).getTime();function Fe(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==Se(e,"display")&&e!==jt.ghost){t.push({target:e,rect:ke(e)});var o=oe({},t[t.length-1].rect);if(e.thisAnimationDuration){var n=Ce(e,!0);n&&(o.top-=n.f,o.left-=n.e)}e.fromRect=o}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var o in e)if(e.hasOwnProperty(o))for(var n in t)if(t.hasOwnProperty(n)&&t[n]===e[o][n])return Number(o);return-1}(t,{target:e}),1)},animateAll:function(o){var n=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof o&&o());var r=!1,a=0;t.forEach((function(e){var t=0,o=e.target,i=o.fromRect,l=ke(o),s=o.prevFromRect,c=o.prevToRect,u=e.rect,d=Ce(o,!0);d&&(l.top-=d.f,l.left-=d.e),o.toRect=l,o.thisAnimationDuration&&Me(s,l)&&!Me(i,l)&&(u.top-l.top)/(u.left-l.left)==(i.top-l.top)/(i.left-l.left)&&(t=function(e,t,o,n){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-o.top,2)+Math.pow(t.left-o.left,2))*n.animation}(u,s,c,n.options)),Me(l,i)||(o.prevFromRect=i,o.prevToRect=l,t||(t=n.options.animation),n.animate(o,u,l,t)),t&&(r=!0,a=Math.max(a,t),clearTimeout(o.animationResetTimer),o.animationResetTimer=setTimeout((function(){o.animationTime=0,o.prevFromRect=null,o.fromRect=null,o.prevToRect=null,o.thisAnimationDuration=null}),t),o.thisAnimationDuration=t)})),clearTimeout(e),r?e=setTimeout((function(){"function"==typeof o&&o()}),a):"function"==typeof o&&o(),t=[]},animate:function(e,t,o,n){if(n){Se(e,"transition",""),Se(e,"transform","");var r=Ce(this.el),a=r&&r.a,i=r&&r.d,l=(t.left-o.left)/(a||1),s=(t.top-o.top)/(i||1);e.animatingX=!!l,e.animatingY=!!s,Se(e,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),Se(e,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),Se(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){Se(e,"transition",""),Se(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),n)}}}}var Xe=[],Ye={initializeByDefault:!0},We={mount:function(e){for(var t in Ye)Ye.hasOwnProperty(t)&&!(t in e)&&(e[t]=Ye[t]);Xe.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),Xe.push(e)},pluginEvent:function(e,t,o){var n=this;this.eventCanceled=!1,o.cancel=function(){n.eventCanceled=!0};var r=e+"Global";Xe.forEach((function(n){t[n.pluginName]&&(t[n.pluginName][r]&&t[n.pluginName][r](oe({sortable:t},o)),t.options[n.pluginName]&&t[n.pluginName][e]&&t[n.pluginName][e](oe({sortable:t},o)))}))},initializePlugins:function(e,t,o,n){for(var r in Xe.forEach((function(n){var r=n.pluginName;if(e.options[r]||n.initializeByDefault){var a=new n(e,t,e.options);a.sortable=e,a.options=e.options,e[r]=a,ae(o,a.defaults)}})),e.options)if(e.options.hasOwnProperty(r)){var a=this.modifyOption(e,r,e.options[r]);void 0!==a&&(e.options[r]=a)}},getEventProperties:function(e,t){var o={};return Xe.forEach((function(n){"function"==typeof n.eventProperties&&ae(o,n.eventProperties.call(t[n.pluginName],e))})),o},modifyOption:function(e,t,o){var n;return Xe.forEach((function(r){e[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[t]&&(n=r.optionListeners[t].call(e[r.pluginName],o))})),n}};var He=["evt"],Le=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=o.evt,r=ie(o,He);We.pluginEvent.bind(jt)(e,t,oe({dragEl:Ge,parentEl:$e,ghostEl:Ve,rootEl:qe,nextEl:Ke,lastDownEl:Ze,cloneEl:Je,cloneHidden:Qe,dragStarted:pt,putSortable:at,activeSortable:jt.active,originalEvent:n,oldIndex:et,oldDraggableIndex:ot,newIndex:tt,newDraggableIndex:nt,hideGhostForTarget:Nt,unhideGhostForTarget:At,cloneNowHidden:function(){Qe=!0},cloneNowShown:function(){Qe=!1},dispatchSortableEvent:function(e){Ue({sortable:t,name:e,originalEvent:n})}},r))};function Ue(e){!function(e){var t=e.sortable,o=e.rootEl,n=e.name,r=e.targetEl,a=e.cloneEl,i=e.toEl,l=e.fromEl,s=e.oldIndex,c=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,p=e.originalEvent,f=e.putSortable,h=e.extraEventProperties;if(t=t||o&&o[Be]){var m,g=t.options,v="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||se||ce?(m=document.createEvent("Event")).initEvent(n,!0,!0):m=new CustomEvent(n,{bubbles:!0,cancelable:!0}),m.to=i||o,m.from=l||o,m.item=r||o,m.clone=a,m.oldIndex=s,m.newIndex=c,m.oldDraggableIndex=u,m.newDraggableIndex=d,m.originalEvent=p,m.pullMode=f?f.lastPutMode:void 0;var b=oe(oe({},h),We.getEventProperties(n,t));for(var y in b)m[y]=b[y];o&&o.dispatchEvent(m),g[v]&&g[v].call(t,m)}}(oe({putSortable:at,cloneEl:Je,targetEl:Ge,rootEl:qe,oldIndex:et,oldDraggableIndex:ot,newIndex:tt,newDraggableIndex:nt},e))}var Ge,$e,Ve,qe,Ke,Ze,Je,Qe,et,tt,ot,nt,rt,at,it,lt,st,ct,ut,dt,pt,ft,ht,mt,gt,vt=!1,bt=!1,yt=[],xt=!1,wt=!1,_t=[],St=!1,Ct=[],Et="undefined"!=typeof document,Dt=pe,kt=ce||se?"cssFloat":"float",Tt=Et&&!fe&&!pe&&"draggable"in document.createElement("div"),It=function(){if(Et){if(se)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Rt=function(e,t){var o=Se(e),n=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),r=Ie(e,0,t),a=Ie(e,1,t),i=r&&Se(r),l=a&&Se(a),s=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+ke(r).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+ke(a).width;if("flex"===o.display)return"column"===o.flexDirection||"column-reverse"===o.flexDirection?"vertical":"horizontal";if("grid"===o.display)return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&i.float&&"none"!==i.float){var u="left"===i.float?"left":"right";return!a||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return r&&("block"===i.display||"flex"===i.display||"table"===i.display||"grid"===i.display||s>=n&&"none"===o[kt]||a&&"none"===o[kt]&&s+c>n)?"vertical":"horizontal"},Ot=function(e){function t(e,o){return function(n,r,a,i){var l=n.options.group.name&&r.options.group.name&&n.options.group.name===r.options.group.name;if(null==e&&(o||l))return!0;if(null==e||!1===e)return!1;if(o&&"clone"===e)return e;if("function"==typeof e)return t(e(n,r,a,i),o)(n,r,a,i);var s=(o?n:r).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var o={},n=e.group;n&&"object"==ne(n)||(n={name:n}),o.name=n.name,o.checkPull=t(n.pull,!0),o.checkPut=t(n.put),o.revertClone=n.revertClone,e.group=o},Nt=function(){!It&&Ve&&Se(Ve,"display","none")},At=function(){!It&&Ve&&Se(Ve,"display","")};Et&&!fe&&document.addEventListener("click",(function(e){if(bt)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),bt=!1,!1}),!0);var Mt=function(e){if(Ge){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,a=e.clientY,yt.some((function(e){var t=e[Be].options.emptyInsertThreshold;if(t&&!Re(e)){var o=ke(e),n=r>=o.left-t&&r<=o.right+t,l=a>=o.top-t&&a<=o.bottom+t;return n&&l?i=e:void 0}})),i);if(t){var o={};for(var n in e)e.hasOwnProperty(n)&&(o[n]=e[n]);o.target=o.rootEl=t,o.preventDefault=void 0,o.stopPropagation=void 0,t[Be]._onDragOver(o)}}var r,a,i},Pt=function(e){Ge&&Ge.parentNode[Be]._isOutsideThisEl(e.target)};function jt(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=ae({},t),e[Be]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Rt(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==jt.supportPointer&&"PointerEvent"in window&&!de,emptyInsertThreshold:5};for(var n in We.initializePlugins(this,e,o),o)!(n in t)&&(t[n]=o[n]);for(var r in Ot(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&Tt,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?me(e,"pointerdown",this._onTapStart):(me(e,"mousedown",this._onTapStart),me(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(me(e,"dragover",this),me(e,"dragenter",this)),yt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),ae(this,Fe())}function zt(e,t,o,n,r,a,i,l){var s,c,u=e[Be],d=u.options.onMove;return!window.CustomEvent||se||ce?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=o,s.draggedRect=n,s.related=r||t,s.relatedRect=a||ke(t),s.willInsertAfter=l,s.originalEvent=i,e.dispatchEvent(s),d&&(c=d.call(u,s,i)),c}function Bt(e){e.draggable=!1}function Ft(){St=!1}function Xt(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,o=t.length,n=0;o--;)n+=t.charCodeAt(o);return n.toString(36)}function Yt(e){return setTimeout(e,0)}function Wt(e){return clearTimeout(e)}jt.prototype={constructor:jt,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(ft=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Ge):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,o=this.el,n=this.options,r=n.preventOnFilter,a=e.type,i=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(i||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=n.filter;if(function(e){Ct.length=0;var t=e.getElementsByTagName("input"),o=t.length;for(;o--;){var n=t[o];n.checked&&Ct.push(n)}}(o),!Ge&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||n.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!de||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=ye(l,n.draggable,o,!1))&&l.animated||Ze===l)){if(et=Oe(l),ot=Oe(l,n.draggable),"function"==typeof c){if(c.call(this,e,l,this))return Ue({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:o,fromEl:o}),Le("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(n){if(n=ye(s,n.trim(),o,!1))return Ue({sortable:t,rootEl:n,name:"filter",targetEl:l,fromEl:o,toEl:o}),Le("filter",t,{evt:e}),!0}))))return void(r&&e.cancelable&&e.preventDefault());n.handle&&!ye(s,n.handle,o,!1)||this._prepareDragStart(e,i,l)}}},_prepareDragStart:function(e,t,o){var n,r=this,a=r.el,i=r.options,l=a.ownerDocument;if(o&&!Ge&&o.parentNode===a){var s=ke(o);if(qe=a,$e=(Ge=o).parentNode,Ke=Ge.nextSibling,Ze=o,rt=i.group,jt.dragged=Ge,it={target:Ge,clientX:(t||e).clientX,clientY:(t||e).clientY},ut=it.clientX-s.left,dt=it.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Ge.style["will-change"]="all",n=function(){Le("delayEnded",r,{evt:e}),jt.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!ue&&r.nativeDraggable&&(Ge.draggable=!0),r._triggerDragStart(e,t),Ue({sortable:r,name:"choose",originalEvent:e}),_e(Ge,i.chosenClass,!0))},i.ignore.split(",").forEach((function(e){Ee(Ge,e.trim(),Bt)})),me(l,"dragover",Mt),me(l,"mousemove",Mt),me(l,"touchmove",Mt),me(l,"mouseup",r._onDrop),me(l,"touchend",r._onDrop),me(l,"touchcancel",r._onDrop),ue&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ge.draggable=!0),Le("delayStart",this,{evt:e}),!i.delay||i.delayOnTouchOnly&&!t||this.nativeDraggable&&(ce||se))n();else{if(jt.eventCanceled)return void this._onDrop();me(l,"mouseup",r._disableDelayedDrag),me(l,"touchend",r._disableDelayedDrag),me(l,"touchcancel",r._disableDelayedDrag),me(l,"mousemove",r._delayedDragTouchMoveHandler),me(l,"touchmove",r._delayedDragTouchMoveHandler),i.supportPointer&&me(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(n,i.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Ge&&Bt(Ge),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ge(e,"mouseup",this._disableDelayedDrag),ge(e,"touchend",this._disableDelayedDrag),ge(e,"touchcancel",this._disableDelayedDrag),ge(e,"mousemove",this._delayedDragTouchMoveHandler),ge(e,"touchmove",this._delayedDragTouchMoveHandler),ge(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?me(document,"pointermove",this._onTouchMove):me(document,t?"touchmove":"mousemove",this._onTouchMove):(me(Ge,"dragend",this),me(qe,"dragstart",this._onDragStart));try{document.selection?Yt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(o){}},_dragStarted:function(e,t){if(vt=!1,qe&&Ge){Le("dragStarted",this,{evt:t}),this.nativeDraggable&&me(document,"dragover",Pt);var o=this.options;!e&&_e(Ge,o.dragClass,!1),_e(Ge,o.ghostClass,!0),jt.active=this,e&&this._appendGhost(),Ue({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(lt){this._lastX=lt.clientX,this._lastY=lt.clientY,Nt();for(var e=document.elementFromPoint(lt.clientX,lt.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(lt.clientX,lt.clientY))!==t;)t=e;if(Ge.parentNode[Be]._isOutsideThisEl(e),t)do{if(t[Be]){if(t[Be]._onDragOver({clientX:lt.clientX,clientY:lt.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);At()}},_onTouchMove:function(e){if(it){var t=this.options,o=t.fallbackTolerance,n=t.fallbackOffset,r=e.touches?e.touches[0]:e,a=Ve&&Ce(Ve,!0),i=Ve&&a&&a.a,l=Ve&&a&&a.d,s=Dt&&gt&&Ne(gt),c=(r.clientX-it.clientX+n.x)/(i||1)+(s?s[0]-_t[0]:0)/(i||1),u=(r.clientY-it.clientY+n.y)/(l||1)+(s?s[1]-_t[1]:0)/(l||1);if(!jt.active&&!vt){if(o&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<o)return;this._onDragStart(e,!0)}if(Ve){a?(a.e+=c-(st||0),a.f+=u-(ct||0)):a={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");Se(Ve,"webkitTransform",d),Se(Ve,"mozTransform",d),Se(Ve,"msTransform",d),Se(Ve,"transform",d),st=c,ct=u,lt=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Ve){var e=this.options.fallbackOnBody?document.body:qe,t=ke(Ge,!0,Dt,!0,e),o=this.options;if(Dt){for(gt=e;"static"===Se(gt,"position")&&"none"===Se(gt,"transform")&&gt!==document;)gt=gt.parentNode;gt!==document.body&&gt!==document.documentElement?(gt===document&&(gt=De()),t.top+=gt.scrollTop,t.left+=gt.scrollLeft):gt=De(),_t=Ne(gt)}_e(Ve=Ge.cloneNode(!0),o.ghostClass,!1),_e(Ve,o.fallbackClass,!0),_e(Ve,o.dragClass,!0),Se(Ve,"transition",""),Se(Ve,"transform",""),Se(Ve,"box-sizing","border-box"),Se(Ve,"margin",0),Se(Ve,"top",t.top),Se(Ve,"left",t.left),Se(Ve,"width",t.width),Se(Ve,"height",t.height),Se(Ve,"opacity","0.8"),Se(Ve,"position",Dt?"absolute":"fixed"),Se(Ve,"zIndex","100000"),Se(Ve,"pointerEvents","none"),jt.ghost=Ve,e.appendChild(Ve),Se(Ve,"transform-origin",ut/parseInt(Ve.style.width)*100+"% "+dt/parseInt(Ve.style.height)*100+"%")}},_onDragStart:function(e,t){var o=this,n=e.dataTransfer,r=o.options;Le("dragStart",this,{evt:e}),jt.eventCanceled?this._onDrop():(Le("setupClone",this),jt.eventCanceled||((Je=ze(Ge)).removeAttribute("id"),Je.draggable=!1,Je.style["will-change"]="",this._hideClone(),_e(Je,this.options.chosenClass,!1),jt.clone=Je),o.cloneId=Yt((function(){Le("clone",o),jt.eventCanceled||(o.options.removeCloneOnHide||qe.insertBefore(Je,Ge),o._hideClone(),Ue({sortable:o,name:"clone"}))})),!t&&_e(Ge,r.dragClass,!0),t?(bt=!0,o._loopId=setInterval(o._emulateDragOver,50)):(ge(document,"mouseup",o._onDrop),ge(document,"touchend",o._onDrop),ge(document,"touchcancel",o._onDrop),n&&(n.effectAllowed="move",r.setData&&r.setData.call(o,n,Ge)),me(document,"drop",o),Se(Ge,"transform","translateZ(0)")),vt=!0,o._dragStartId=Yt(o._dragStarted.bind(o,t,e)),me(document,"selectstart",o),pt=!0,de&&Se(document.body,"user-select","none"))},_onDragOver:function(e){var t,o,n,r,a=this.el,i=e.target,l=this.options,s=l.group,c=jt.active,u=rt===s,d=l.sort,p=at||c,f=this,h=!1;if(!St){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),i=ye(i,l.draggable,a,!0),I("dragOver"),jt.eventCanceled)return h;if(Ge.contains(e.target)||i.animated&&i.animatingX&&i.animatingY||f._ignoreWhileAnimating===i)return O(!1);if(bt=!1,c&&!l.disabled&&(u?d||(n=$e!==qe):at===this||(this.lastPutMode=rt.checkPull(this,c,Ge,e))&&s.checkPut(this,c,Ge,e))){if(r="vertical"===this._getDirection(e,i),t=ke(Ge),I("dragOverValid"),jt.eventCanceled)return h;if(n)return $e=qe,R(),this._hideClone(),I("revert"),jt.eventCanceled||(Ke?qe.insertBefore(Ge,Ke):qe.appendChild(Ge)),O(!0);var m=Re(a,l.draggable);if(!m||function(e,t,o){var n=ke(Re(o.el,o.options.draggable)),r=10;return t?e.clientX>n.right+r||e.clientX<=n.right&&e.clientY>n.bottom&&e.clientX>=n.left:e.clientX>n.right&&e.clientY>n.top||e.clientX<=n.right&&e.clientY>n.bottom+r}(e,r,this)&&!m.animated){if(m===Ge)return O(!1);if(m&&a===e.target&&(i=m),i&&(o=ke(i)),!1!==zt(qe,a,Ge,t,i,o,e,!!i))return R(),m&&m.nextSibling?a.insertBefore(Ge,m.nextSibling):a.appendChild(Ge),$e=a,N(),O(!0)}else if(m&&function(e,t,o){var n=ke(Ie(o.el,0,o.options,!0)),r=10;return t?e.clientX<n.left-r||e.clientY<n.top&&e.clientX<n.right:e.clientY<n.top-r||e.clientY<n.bottom&&e.clientX<n.left}(e,r,this)){var g=Ie(a,0,l,!0);if(g===Ge)return O(!1);if(o=ke(i=g),!1!==zt(qe,a,Ge,t,i,o,e,!1))return R(),a.insertBefore(Ge,g),$e=a,N(),O(!0)}else if(i.parentNode===a){o=ke(i);var v,b,y,x=Ge.parentNode!==a,w=!function(e,t,o){var n=o?e.left:e.top,r=o?e.right:e.bottom,a=o?e.width:e.height,i=o?t.left:t.top,l=o?t.right:t.bottom,s=o?t.width:t.height;return n===i||r===l||n+a/2===i+s/2}(Ge.animated&&Ge.toRect||t,i.animated&&i.toRect||o,r),_=r?"top":"left",S=Te(i,"top","top")||Te(Ge,"top","top"),C=S?S.scrollTop:void 0;if(ft!==i&&(b=o[_],xt=!1,wt=!w&&l.invertSwap||x),v=function(e,t,o,n,r,a,i,l){var s=n?e.clientY:e.clientX,c=n?o.height:o.width,u=n?o.top:o.left,d=n?o.bottom:o.right,p=!1;if(!i)if(l&&mt<c*r){if(!xt&&(1===ht?s>u+c*a/2:s<d-c*a/2)&&(xt=!0),xt)p=!0;else if(1===ht?s<u+mt:s>d-mt)return-ht}else if(s>u+c*(1-r)/2&&s<d-c*(1-r)/2)return function(e){return Oe(Ge)<Oe(e)?1:-1}(t);if((p=p||i)&&(s<u+c*a/2||s>d-c*a/2))return s>u+c/2?1:-1;return 0}(e,i,o,r,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,wt,ft===i),0!==v){var E=Oe(Ge);do{E-=v,y=$e.children[E]}while(y&&("none"===Se(y,"display")||y===Ve))}if(0===v||y===i)return O(!1);ft=i,ht=v;var D=i.nextElementSibling,k=!1,T=zt(qe,a,Ge,t,i,o,e,k=1===v);if(!1!==T)return 1!==T&&-1!==T||(k=1===T),St=!0,setTimeout(Ft,30),R(),k&&!D?a.appendChild(Ge):i.parentNode.insertBefore(Ge,k?D:i),S&&je(S,0,C-S.scrollTop),$e=Ge.parentNode,void 0===b||wt||(mt=Math.abs(b-ke(i)[_])),N(),O(!0)}if(a.contains(Ge))return O(!1)}return!1}function I(l,s){Le(l,f,oe({evt:e,isOwner:u,axis:r?"vertical":"horizontal",revert:n,dragRect:t,targetRect:o,canSort:d,fromSortable:p,target:i,completed:O,onMove:function(o,n){return zt(qe,a,Ge,t,o,ke(o),e,n)},changed:N},s))}function R(){I("dragOverAnimationCapture"),f.captureAnimationState(),f!==p&&p.captureAnimationState()}function O(t){return I("dragOverCompleted",{insertion:t}),t&&(u?c._hideClone():c._showClone(f),f!==p&&(_e(Ge,at?at.options.ghostClass:c.options.ghostClass,!1),_e(Ge,l.ghostClass,!0)),at!==f&&f!==jt.active?at=f:f===jt.active&&at&&(at=null),p===f&&(f._ignoreWhileAnimating=i),f.animateAll((function(){I("dragOverAnimationComplete"),f._ignoreWhileAnimating=null})),f!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===Ge&&!Ge.animated||i===a&&!i.animated)&&(ft=null),l.dragoverBubble||e.rootEl||i===document||(Ge.parentNode[Be]._isOutsideThisEl(e.target),!t&&Mt(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function N(){tt=Oe(Ge),nt=Oe(Ge,l.draggable),Ue({sortable:f,name:"change",toEl:a,newIndex:tt,newDraggableIndex:nt,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){ge(document,"mousemove",this._onTouchMove),ge(document,"touchmove",this._onTouchMove),ge(document,"pointermove",this._onTouchMove),ge(document,"dragover",Mt),ge(document,"mousemove",Mt),ge(document,"touchmove",Mt)},_offUpEvents:function(){var e=this.el.ownerDocument;ge(e,"mouseup",this._onDrop),ge(e,"touchend",this._onDrop),ge(e,"pointerup",this._onDrop),ge(e,"touchcancel",this._onDrop),ge(document,"selectstart",this)},_onDrop:function(e){var t=this.el,o=this.options;tt=Oe(Ge),nt=Oe(Ge,o.draggable),Le("drop",this,{evt:e}),$e=Ge&&Ge.parentNode,tt=Oe(Ge),nt=Oe(Ge,o.draggable),jt.eventCanceled||(vt=!1,wt=!1,xt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Wt(this.cloneId),Wt(this._dragStartId),this.nativeDraggable&&(ge(document,"drop",this),ge(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),de&&Se(document.body,"user-select",""),Se(Ge,"transform",""),e&&(pt&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),Ve&&Ve.parentNode&&Ve.parentNode.removeChild(Ve),(qe===$e||at&&"clone"!==at.lastPutMode)&&Je&&Je.parentNode&&Je.parentNode.removeChild(Je),Ge&&(this.nativeDraggable&&ge(Ge,"dragend",this),Bt(Ge),Ge.style["will-change"]="",pt&&!vt&&_e(Ge,at?at.options.ghostClass:this.options.ghostClass,!1),_e(Ge,this.options.chosenClass,!1),Ue({sortable:this,name:"unchoose",toEl:$e,newIndex:null,newDraggableIndex:null,originalEvent:e}),qe!==$e?(tt>=0&&(Ue({rootEl:$e,name:"add",toEl:$e,fromEl:qe,originalEvent:e}),Ue({sortable:this,name:"remove",toEl:$e,originalEvent:e}),Ue({rootEl:$e,name:"sort",toEl:$e,fromEl:qe,originalEvent:e}),Ue({sortable:this,name:"sort",toEl:$e,originalEvent:e})),at&&at.save()):tt!==et&&tt>=0&&(Ue({sortable:this,name:"update",toEl:$e,originalEvent:e}),Ue({sortable:this,name:"sort",toEl:$e,originalEvent:e})),jt.active&&(null!=tt&&-1!==tt||(tt=et,nt=ot),Ue({sortable:this,name:"end",toEl:$e,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Le("nulling",this),qe=Ge=$e=Ve=Ke=Je=Ze=Qe=it=lt=pt=tt=nt=et=ot=ft=ht=at=rt=jt.dragged=jt.ghost=jt.clone=jt.active=null,Ct.forEach((function(e){e.checked=!0})),Ct.length=st=ct=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Ge&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],o=this.el.children,n=0,r=o.length,a=this.options;n<r;n++)ye(e=o[n],a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||Xt(e));return t},sort:function(e,t){var o={},n=this.el;this.toArray().forEach((function(e,t){var r=n.children[t];ye(r,this.options.draggable,n,!1)&&(o[e]=r)}),this),t&&this.captureAnimationState(),e.forEach((function(e){o[e]&&(n.removeChild(o[e]),n.appendChild(o[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return ye(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var o=this.options;if(void 0===t)return o[e];var n=We.modifyOption(this,e,t);o[e]=void 0!==n?n:t,"group"===e&&Ot(o)},destroy:function(){Le("destroy",this);var e=this.el;e[Be]=null,ge(e,"mousedown",this._onTapStart),ge(e,"touchstart",this._onTapStart),ge(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(ge(e,"dragover",this),ge(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),yt.splice(yt.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Qe){if(Le("hideClone",this),jt.eventCanceled)return;Se(Je,"display","none"),this.options.removeCloneOnHide&&Je.parentNode&&Je.parentNode.removeChild(Je),Qe=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(Qe){if(Le("showClone",this),jt.eventCanceled)return;Ge.parentNode!=qe||this.options.group.revertClone?Ke?qe.insertBefore(Je,Ke):qe.appendChild(Je):qe.insertBefore(Je,Ge),this.options.group.revertClone&&this.animate(Ge,Je),Se(Je,"display",""),Qe=!1}}else this._hideClone()}},Et&&me(document,"touchmove",(function(e){(jt.active||vt)&&e.cancelable&&e.preventDefault()})),jt.utils={on:me,off:ge,css:Se,find:Ee,is:function(e,t){return!!ye(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);return e},throttle:Pe,closest:ye,toggleClass:_e,clone:ze,index:Oe,nextTick:Yt,cancelNextTick:Wt,detectDirection:Rt,getChild:Ie},jt.get=function(e){return e[Be]},jt.mount=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(jt.utils=oe(oe({},jt.utils),e.utils)),We.mount(e)}))},jt.create=function(e,t){return new jt(e,t)},jt.version="1.15.0";var Ht,Lt,Ut,Gt,$t,Vt,qt=[],Kt=!1;function Zt(){qt.forEach((function(e){clearInterval(e.pid)})),qt=[]}function Jt(){clearInterval(Vt)}var Qt=Pe((function(e,t,o,n){if(t.scroll){var r,a=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,c=De(),u=!1;Lt!==o&&(Lt=o,Zt(),Ht=t.scroll,r=t.scrollFn,!0===Ht&&(Ht=Ae(o,!0)));var d=0,p=Ht;do{var f=p,h=ke(f),m=h.top,g=h.bottom,v=h.left,b=h.right,y=h.width,x=h.height,w=void 0,_=void 0,S=f.scrollWidth,C=f.scrollHeight,E=Se(f),D=f.scrollLeft,k=f.scrollTop;f===c?(w=y<S&&("auto"===E.overflowX||"scroll"===E.overflowX||"visible"===E.overflowX),_=x<C&&("auto"===E.overflowY||"scroll"===E.overflowY||"visible"===E.overflowY)):(w=y<S&&("auto"===E.overflowX||"scroll"===E.overflowX),_=x<C&&("auto"===E.overflowY||"scroll"===E.overflowY));var T=w&&(Math.abs(b-a)<=l&&D+y<S)-(Math.abs(v-a)<=l&&!!D),I=_&&(Math.abs(g-i)<=l&&k+x<C)-(Math.abs(m-i)<=l&&!!k);if(!qt[d])for(var R=0;R<=d;R++)qt[R]||(qt[R]={});qt[d].vx==T&&qt[d].vy==I&&qt[d].el===f||(qt[d].el=f,qt[d].vx=T,qt[d].vy=I,clearInterval(qt[d].pid),0==T&&0==I||(u=!0,qt[d].pid=setInterval(function(){n&&0===this.layer&&jt.active._onTouchMove($t);var t=qt[this.layer].vy?qt[this.layer].vy*s:0,o=qt[this.layer].vx?qt[this.layer].vx*s:0;"function"==typeof r&&"continue"!==r.call(jt.dragged.parentNode[Be],o,t,e,$t,qt[this.layer].el)||je(qt[this.layer].el,o,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&p!==c&&(p=Ae(p,!1)));Kt=u}}),30),eo=function(e){var t=e.originalEvent,o=e.putSortable,n=e.dragEl,r=e.activeSortable,a=e.dispatchSortableEvent,i=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=o||r;i();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(a("spill"),this.onSpill({dragEl:n,putSortable:o}))}};function to(){}function oo(){}to.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,o=e.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var n=Ie(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(t,n):this.sortable.el.appendChild(t),this.sortable.animateAll(),o&&o.animateAll()},drop:eo},ae(to,{pluginName:"revertOnSpill"}),oo.prototype={onSpill:function(e){var t=e.dragEl,o=e.putSortable||this.sortable;o.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),o.animateAll()},drop:eo},ae(oo,{pluginName:"removeOnSpill"}),jt.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?me(document,"dragover",this._handleAutoScroll):this.options.supportPointer?me(document,"pointermove",this._handleFallbackAutoScroll):t.touches?me(document,"touchmove",this._handleFallbackAutoScroll):me(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?ge(document,"dragover",this._handleAutoScroll):(ge(document,"pointermove",this._handleFallbackAutoScroll),ge(document,"touchmove",this._handleFallbackAutoScroll),ge(document,"mousemove",this._handleFallbackAutoScroll)),Jt(),Zt(),clearTimeout(xe),xe=void 0},nulling:function(){$t=Lt=Ht=Kt=Vt=Ut=Gt=null,qt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var o=this,n=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(n,r);if($t=e,t||this.options.forceAutoScrollFallback||ce||se||de){Qt(e,this.options,a,t);var i=Ae(a,!0);!Kt||Vt&&n===Ut&&r===Gt||(Vt&&Jt(),Vt=setInterval((function(){var a=Ae(document.elementFromPoint(n,r),!0);a!==i&&(i=a,Zt()),Qt(e,o.options,a,t)}),10),Ut=n,Gt=r)}else{if(!this.options.bubbleScroll||Ae(a,!0)===De())return void Zt();Qt(e,this.options,Ae(a,!1),!1)}}},ae(e,{pluginName:"scroll",initializeByDefault:!0})}),jt.mount(oo,to);const no="object"==typeof global&&global&&global.Object===Object&&global;var ro="object"==typeof self&&self&&self.Object===Object&&self;const ao=(no||ro||Function("return this")()).Symbol;var io=Object.prototype,lo=io.hasOwnProperty,so=io.toString,co=ao?ao.toStringTag:void 0;var uo=Object.prototype.toString;var po=ao?ao.toStringTag:void 0;function fo(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":po&&po in Object(e)?function(e){var t=lo.call(e,co),o=e[co];try{e[co]=void 0;var n=!0}catch(a){}var r=so.call(e);return n&&(t?e[co]=o:delete e[co]),r}(e):function(e){return uo.call(e)}(e)}var ho=/\s/;var mo=/^\s+/;function go(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&ho.test(e.charAt(t)););return t}(e)+1).replace(mo,""):e}function vo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var bo=/^[-+]0x[0-9a-f]+$/i,yo=/^0b[01]+$/i,xo=/^0o[0-7]+$/i,wo=parseInt;function _o(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==fo(e)}(e))return NaN;if(vo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=vo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=go(e);var o=yo.test(e);return o||xo.test(e)?wo(e.slice(2),o?2:8):bo.test(e)?NaN:+e}function So(e){return e?Infinity===(e=_o(e))||-Infinity===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}var Co=/^(?:0|[1-9]\d*)$/;function Eo(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){if(!vo(e))return!1;var t=fo(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(e)}function Do(e,t,o){if(!vo(o))return!1;var n=typeof t;return!!("number"==n?Eo(o)&&function(e,t){var o=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==o||"symbol"!=o&&Co.test(e))&&e>-1&&e%1==0&&e<t}(t,o.length):"string"==n&&t in o)&&function(e,t){return e===t||e!=e&&t!=t}(o[t],e)}var ko=Math.ceil,To=Math.max;var Io,Ro=function(e,t,o){return o&&"number"!=typeof o&&Do(e,t,o)&&(t=o=void 0),e=So(e),void 0===t?(t=e,e=0):t=So(t),function(e,t,o,n){for(var r=-1,a=To(ko((t-e)/(o||1)),0),i=Array(a);a--;)i[n?a:++r]=e,e+=o;return i}(e,t,o=void 0===o?e<t?1:-1:So(o),Io)};const Oo=Ro,No=G(t({__name:"index",props:["data"],setup(e){const t=e,n=o(),g=r((()=>"decorate"==n.mode?n:t.data));return C((()=>{if("decorate"==n.mode){var e=document.getElementById("componentList");const t=jt.create(e,{group:"draggable-element",animation:200,onEnd:e=>{let o=n.value[e.oldIndex];n.value.splice(e.oldIndex,1),n.value.splice(e.newIndex,0,o),W((()=>{t.sort(Oo(n.value.length).map((e=>e.toString()))),n.postMessage(e.newIndex,n.value[e.newIndex])}))}})}})),(e,t)=>{const o=a(i("diy-article"),q),r=a(i("diy-graphic-nav"),K),y=a(i("diy-horz-blank"),Z),x=a(i("diy-image-ads"),J),w=a(i("diy-member-info"),Q),S=a(i("diy-text"),ee),C=_,E=a(i("tabbar"),L);return l(),s(C,{class:"diy-group",id:"componentList"},{default:c((()=>[(l(!0),u(d,null,p(m(g).value,((e,t)=>(l(),s(C,{key:e.id,onClick:o=>m(n).changeCurrentIndex(t,e),class:f(["draggable-element relative cursor-move",{selected:m(n).currentIndex==t,decorate:"decorate"==m(n).mode}]),style:h(e.pageStyle)},{default:c((()=>["Article"==e.componentName?(l(),s(o,{key:0,component:e,index:t},null,8,["component","index"])):b("",!0),"GraphicNav"==e.componentName?(l(),s(r,{key:1,component:e,index:t},null,8,["component","index"])):b("",!0),"HorzBlank"==e.componentName?(l(),s(y,{key:2,component:e,index:t},null,8,["component","index"])):b("",!0),"ImageAds"==e.componentName?(l(),s(x,{key:3,component:e,index:t},null,8,["component","index"])):b("",!0),"MemberInfo"==e.componentName?(l(),s(w,{key:4,component:e,index:t},null,8,["component","index"])):b("",!0),"Text"==e.componentName?(l(),s(S,{key:5,component:e,index:t},null,8,["component","index"])):b("",!0)])),_:2},1032,["onClick","class","style"])))),128)),""==m(n).mode&&m(g).global.bottomTabBarSwitch?(l(),u(d,{key:0},[v(C,{class:"pt-[20rpx]"}),v(E)],64)):b("",!0)])),_:1})}}}),[["__scopeId","data-v-15815adc"]]);export{No as _};