@lazycatcloud/lzc-toolkit 0.0.141 → 0.0.143
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.es.js +284 -284
- package/dist/index.umd.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(I,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(I=typeof globalThis<"u"?globalThis:I||self,e(I.ui={},I.Vue))})(this,function(I,e){"use strict";const xe={created(t,n){let o,l;function s(r){r.button==0&&(o=r.clientX,l=r.clientY)}function i(r){if(r.button!=0||o===void 0)return;const d=r.clientX,g=r.clientY,a=Math.abs(d-o),f=Math.abs(g-l);a>5||f>5||n.value&&n.value(r)}t.__mouse_down__=s,t.__mouse_up__=i,t.addEventListener("mousedown",s),t.addEventListener("mouseup",i)},unmounted(t){t.removeEventListener("mousedown",t.__mouse_down__),t.removeEventListener("mouseup",t.__mouse_up__)}},Ze={created(t,n){const{fn:o,ms:l=1500}=n.value;let s=null;function i(r){s||(o(r),s=setTimeout(()=>{s=null},l))}t.addEventListener("click",i)}};function Ke(t,n){var o;const l=e.shallowRef();return e.watchEffect(()=>{l.value=t()},{...n,flush:(o=n?.flush)!=null?o:"sync"}),e.readonly(l)}function Ge(t,n){let o,l,s;const i=e.ref(!0),r=()=>{i.value=!0,s()};e.watch(t,r,{flush:"sync"});const d=typeof n=="function"?n:n.get,g=typeof n=="function"?void 0:n.set,a=e.customRef((f,c)=>(l=f,s=c,{get(){return i.value&&(o=d(),i.value=!1),l(),o},set(m){g?.(m)}}));return Object.isExtensible(a)&&(a.trigger=r),a}function Te(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function X(t){return typeof t=="function"?t():e.unref(t)}const _e=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const qe=Object.prototype.toString,Je=t=>qe.call(t)==="[object Object]",ne=()=>{};function Oe(t,n){function o(...l){return new Promise((s,i)=>{Promise.resolve(t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})).then(s).catch(i)})}return o}function et(t,n={}){let o,l,s=ne;const i=d=>{clearTimeout(d),s(),s=ne};return d=>{const g=X(t),a=X(n.maxWait);return o&&i(o),g<=0||a!==void 0&&a<=0?(l&&(i(l),l=null),Promise.resolve(d())):new Promise((f,c)=>{s=n.rejectOnCancel?c:f,a&&!l&&(l=setTimeout(()=>{o&&i(o),l=null,f(d())},a)),o=setTimeout(()=>{l&&i(l),l=null,f(d())},g)})}}function tt(...t){let n=0,o,l=!0,s=ne,i,r,d,g,a;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:r,trailing:d=!0,leading:g=!0,rejectOnCancel:a=!1}=t[0]:[r,d=!0,g=!0,a=!1]=t;const f=()=>{o&&(clearTimeout(o),o=void 0,s(),s=ne)};return m=>{const M=X(r),u=Date.now()-n,E=()=>i=m();return f(),M<=0?(n=Date.now(),E()):(u>M&&(g||!l)?(n=Date.now(),E()):d&&(i=new Promise((N,h)=>{s=a?h:N,o=setTimeout(()=>{n=Date.now(),l=!0,N(E()),f()},Math.max(0,M-u))})),!g&&!o&&(o=setTimeout(()=>l=!0,M)),l=!1,i)}}function nt(t){return t||e.getCurrentInstance()}function Ne(t,n=200,o={}){return Oe(et(n,o),t)}function we(t,n=200,o=!1,l=!0,s=!1){return Oe(tt(n,o,l,s),t)}function Ee(t,n=!0,o){nt()?e.onMounted(t,o):n?t():e.nextTick(t)}function J(t){var n;const o=X(t);return(n=o?.$el)!=null?n:o}const ie=_e?window:void 0,ot=_e?window.document:void 0;function be(...t){let n,o,l,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,l,s]=t,n=ie):[n,o,l,s]=t,!n)return ne;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const i=[],r=()=>{i.forEach(f=>f()),i.length=0},d=(f,c,m,M)=>(f.addEventListener(c,m,M),()=>f.removeEventListener(c,m,M)),g=e.watch(()=>[J(n),X(s)],([f,c])=>{if(r(),!f)return;const m=Je(c)?{...c}:c;i.push(...o.flatMap(M=>l.map(u=>d(f,M,u,m))))},{immediate:!0,flush:"post"}),a=()=>{g(),r()};return Te(a),a}function lt(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function st(t){const n=lt();return e.computed(()=>(n.value,Boolean(t())))}function at(t){const n=e.getCurrentInstance(),o=Ge(()=>null,()=>t?J(t):n.proxy.$el);return e.onUpdated(o.trigger),e.onMounted(o.trigger),o}function it(t,n,o={}){const{window:l=ie,...s}=o;let i;const r=st(()=>l&&"ResizeObserver"in l),d=()=>{i&&(i.disconnect(),i=void 0)},g=e.computed(()=>Array.isArray(t)?t.map(c=>J(c)):[J(t)]),a=e.watch(g,c=>{if(d(),r.value&&l){i=new ResizeObserver(n);for(const m of c)m&&i.observe(m,s)}},{immediate:!0,flush:"post"}),f=()=>{d(),a()};return Te(f),{isSupported:r,stop:f}}function rt(t,n={width:0,height:0},o={}){const{window:l=ie,box:s="content-box"}=o,i=e.computed(()=>{var c,m;return(m=(c=J(t))==null?void 0:c.namespaceURI)==null?void 0:m.includes("svg")}),r=e.ref(n.width),d=e.ref(n.height),{stop:g}=it(t,([c])=>{const m=s==="border-box"?c.borderBoxSize:s==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(l&&i.value){const M=J(t);if(M){const u=l.getComputedStyle(M);r.value=Number.parseFloat(u.width),d.value=Number.parseFloat(u.height)}}else if(m){const M=Array.isArray(m)?m:[m];r.value=M.reduce((u,{inlineSize:E})=>u+E,0),d.value=M.reduce((u,{blockSize:E})=>u+E,0)}else r.value=c.contentRect.width,d.value=c.contentRect.height},o);Ee(()=>{const c=J(t);c&&(r.value="offsetWidth"in c?c.offsetWidth:n.width,d.value="offsetHeight"in c?c.offsetHeight:n.height)});const a=e.watch(()=>J(t),c=>{r.value=c?n.width:0,d.value=c?n.height:0});function f(){g(),a()}return{width:r,height:d,stop:f}}const ke=1;function ct(t,n={}){const{throttle:o=0,idle:l=200,onStop:s=ne,onScroll:i=ne,offset:r={left:0,right:0,top:0,bottom:0},eventListenerOptions:d={capture:!1,passive:!0},behavior:g="auto",window:a=ie,onError:f=p=>{console.error(p)}}=n,c=e.ref(0),m=e.ref(0),M=e.computed({get(){return c.value},set(p){E(p,void 0)}}),u=e.computed({get(){return m.value},set(p){E(void 0,p)}});function E(p,A){var _,V,Q;if(!a)return;const R=X(t);!R||(Q=R instanceof Document?a.document.body:R)==null||Q.scrollTo({top:(_=X(A))!=null?_:u.value,left:(V=X(p))!=null?V:M.value,behavior:X(g)})}const N=e.ref(!1),h=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),w=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),L=p=>{!N.value||(N.value=!1,w.left=!1,w.right=!1,w.top=!1,w.bottom=!1,s(p))},k=Ne(L,o+l),U=p=>{var A;if(!a)return;const _=((A=p?.document)==null?void 0:A.documentElement)||p?.documentElement||J(p),{display:V,flexDirection:Q}=getComputedStyle(_),R=_.scrollLeft;w.left=R<c.value,w.right=R>c.value;const K=Math.abs(R)<=(r.left||0),W=Math.abs(R)+_.clientWidth>=_.scrollWidth-(r.right||0)-ke;V==="flex"&&Q==="row-reverse"?(h.left=W,h.right=K):(h.left=K,h.right=W),c.value=R;let Y=_.scrollTop;p===a.document&&!Y&&(Y=a.document.body.scrollTop),w.top=Y<m.value,w.bottom=Y>m.value;const S=Math.abs(Y)<=(r.top||0),j=Math.abs(Y)+_.clientHeight>=_.scrollHeight-(r.bottom||0)-ke;V==="flex"&&Q==="column-reverse"?(h.top=j,h.bottom=S):(h.top=S,h.bottom=j),m.value=Y},x=p=>{var A;if(!a)return;const _=(A=p.target.documentElement)!=null?A:p.target;U(_),N.value=!0,k(p),i(p)};return be(t,"scroll",o?we(x,o,!0,!1):x,d),Ee(()=>{try{const p=X(t);if(!p)return;U(p)}catch(p){f(p)}}),be(t,"scrollend",L,d),{x:M,y:u,isScrolling:N,arrivedState:h,directions:w,measure(){const p=X(t);a&&p&&U(p)}}}let ut=0;function ve(t,n={}){const o=e.ref(!1),{document:l=ot,immediate:s=!0,manual:i=!1,id:r=`vueuse_styletag_${++ut}`}=n,d=e.ref(t);let g=()=>{};const a=()=>{if(!l)return;const c=l.getElementById(r)||l.createElement("style");c.isConnected||(c.id=r,n.media&&(c.media=n.media),l.head.appendChild(c)),!o.value&&(g=e.watch(d,m=>{c.textContent=m},{immediate:!0}),o.value=!0)},f=()=>{!l||!o.value||(g(),l.head.removeChild(l.getElementById(r)),o.value=!1)};return s&&!i&&Ee(a),i||Te(f),{id:r,css:d,unload:f,load:a,isLoaded:e.readonly(o)}}function Be(t,n){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=n,i=e.ref(null),r=rt(i),d=e.ref(!0),g=Ne(U,100);let a;const f=e.shallowRef(t),c=e.ref(0),m=e.ref({start:0,end:10}),M=e.ref({start:0,end:s});let u=0;const E=e.ref([]),N=e.computed(()=>{let{sum:S,height:j}={sum:0,height:0};return f.value.map((B,P)=>(typeof l=="number"?j=l:j=l(P),S+=j,{height:j,sum:S}))}),h=e.computed(()=>V(m.value.start)),w=e.computed(()=>typeof l=="number"?N.value.length*l:N.value[N.value.length-1]?.sum||0),L=e.computed(()=>{const{start:S,end:j}=M.value;return E.value.slice(S,j)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(a)),e.watch(f,()=>{(r.width.value||r.height.value)&&x()},{deep:!0}),e.watch([r.width,r.height],([S,j])=>{(S||j)&&x()},{deep:!0}),e.watch(c,()=>{k(),g()});function k(){d.value=!1}function U(){d.value=!0,o?.()}function x(){cancelAnimationFrame(a),a=requestAnimationFrame(p)}function p(){if(i.value){c.value=i.value.scrollTop;let S=A(c.value);u=_(S);let j=Math.max(0,S-s),B=Math.min(S+u+s,f.value.length);m.value={start:j,end:B},E.value=f.value.slice(j,B).map((P,b)=>({data:P,index:b+j})),M.value.start=S-j,M.value.end=M.value.start+u}}function A(S){let j=0,B=N.value.length-1,P=-1;for(;j<=B;){const b=Math.floor((j+B)/2);N.value[b].sum>=S?(P=b,B=b-1):j=b+1}return Math.max(0,P)}function _(S){let j=0,B=0;for(let P=S;P<N.value.length&&(j++,B+=N.value[P].height,!(B>=r.height.value));P++);return j}function V(S){if(typeof l=="number")return S*l;let j=N.value[S];return j?j.sum-j.height:0}function Q(S){return N.value[S]||{sum:0,height:0}}function R(S){if(i.value){const j=Q(S);i.value.scrollTop=j.sum-j.height,p()}}const K=e.computed(()=>({style:{width:"100%",height:`${w.value}px`,pointerEvents:d.value?void 0:"none"}})),W=e.computed(()=>({style:{transform:`translate3d(0, ${h.value}px, 0)`,"will-change":"transform"}})),Y={overflowY:"auto"};return{list:E,visiableList:L,getItemHeightData:Q,getoffsetTopIndex:A,totalHeight:w,clientHeight:r.height,scrollTo:R,scrollTop:c,isScrollEnd:d,containerProps:{ref:i,onScroll:()=>{x()},style:Y},wrapperProps:K,innerProps:W}}const re=Symbol(),ce=Symbol(),ue=Symbol(),de=Symbol(),fe=Symbol(),Me=Symbol(),ge=Symbol(),me=Symbol(),le=Symbol(),he=Symbol();function dt(){const{voidFn:t,boolFn:n,boolRef:o,numberRef:l,arrayRef:s}={voidFn:E=>{},boolFn:E=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},i=e.inject(de,s),r=e.inject(ue,n),d=e.inject(me,o),g=e.inject(ce,t),a=e.inject(re,t),f=e.inject(fe,t),c=e.inject(Me,t),m=e.inject(ge,t),M=e.inject(le,t),u=e.inject(he,l);return{selected:i,isSelected:r,isAllSelected:d,toggle:g,toggleAll:a,select:f,selectAll:c,unselect:m,unselectAll:M,selectedCount:u}}function ft(t,n,o={deep:!0}){const l=e.ref(!1),s=e.ref(new Set),i=e.ref(new Map);e.watch(t,h=>{i.value=h.reduce((w,L)=>(w.set(L[n],L),w),new Map)},{deep:o.deep,immediate:!0});const r=e.computed(()=>{let h=[];if(l.value!=null)l.value&&(h=Array.from(i.value.values()));else if(s.value.size){let w;s.value.forEach(L=>{w=i.value.get(L),w&&h.push(w)})}return h}),d=e.computed(()=>{let h=0;return l.value!=null?l.value&&(h=i.value.size):h=s.value.size,h}),g=e.computed(()=>{let h;if(l.value!=null)h=l.value;else{const w=s.value.size,L=i.value.size;h=w==L}return h});function a(){l.value=!0}function f(){l.value=!1}function c(h){u(()=>{h.forEach(w=>{s.value.add(w[n])})})}function m(h){u(()=>{h.forEach(w=>{s.value.delete(w[n])})})}function M(h){return l.value!=null?l.value:s.value.has(h[n])}function u(h){l.value!=null&&(l.value?s.value=new Set(Array.from(i.value.keys())):s.value=new Set),h(),s.value.size==0?l.value=!1:s.value.size==i.value.size?l.value=!0:l.value=null}function E(h){u(()=>{h.forEach(w=>{M(w)?s.value.delete(w[n]):s.value.add(w[n])})})}function N(){const{value:h}=g;h?f():a()}return e.provide(re,N),e.provide(ce,E),e.provide(ue,M),e.provide(de,r),e.provide(fe,c),e.provide(Me,a),e.provide(ge,m),e.provide(me,g),e.provide(le,f),e.provide(le,f),e.provide(he,d),{selected:r,select:c,selectAll:a,unselect:m,unselectAll:f,toggle:E,toggleAll:N,isSelected:M,isAllSelected:g,selectedCount:d}}function Mt(t){const n=e.ref(!1),o=e.ref(new Set),l=e.computed(()=>{let u=[];return n.value!=null?n.value&&(u=t.value):o.value.size&&(u=Array.from(o.value.values())),u}),s=e.computed(()=>{let u=0;return n.value!=null?n.value&&(u=t.value.length):u=o.value.size,u}),i=e.computed(()=>{let u;if(n.value!=null)u=n.value;else{const E=o.value.size,N=t.value.length;u=E==N}return u});function r(){n.value=!0}function d(){n.value=!1}function g(u){c(()=>{u.forEach(E=>{o.value.add(E)})})}function a(u){c(()=>{u.forEach(E=>{o.value.delete(E)})})}function f(u){return n.value!=null?n.value:o.value.has(u)}function c(u){n.value!=null&&(n.value?o.value=new Set(Array.from(t.value)):o.value=new Set),u(),o.value.size==0?n.value=!1:o.value.size==t.value.length?n.value=!0:n.value=null}function m(u){c(()=>{u.forEach(E=>{f(E)?o.value.delete(E):o.value.add(E)})})}function M(){const{value:u}=i;u?d():r()}return e.provide(re,M),e.provide(ce,m),e.provide(ue,f),e.provide(de,l),e.provide(fe,g),e.provide(Me,r),e.provide(ge,a),e.provide(me,i),e.provide(le,d),e.provide(le,d),e.provide(he,s),{selected:l,select:g,selectAll:r,unselect:a,unselectAll:d,toggle:m,toggleAll:M,isSelected:f,isAllSelected:i,selectedCount:s}}function Ie(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ze({attribute:t,selectWay:n="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:s=Ie("\u9009\u62E9"),unselect:i=Ie("\u53D6\u6D88\u9009\u62E9"),unselectAll:r=Ie("\u53D6\u6D88\u5168\u9009")}=l();let d={};const g=e.computed(()=>we(n==="colum"?Se:D,50)),a=new Set,f=e.ref(!0),c=e.ref(),m=e.ref(!1),M=e.ref({x:0,y:0}),u=e.ref({x:0,y:0,scrollTop:0}),E=new ResizeObserver(y=>N.value=y[0].target.getBoundingClientRect()),N=e.ref({}),h=e.ref({top:0,height:0,sync(y=!1){h.value.top=c.value?.scrollTop||0,y&&(h.value.height=c.value?.scrollHeight||0)}}),w=e.computed(()=>m.value?{left:Math.min(M.value.x,u.value.x)-N.value.left,top:Math.min(M.value.y,u.value.y)-N.value.top,width:Math.abs(M.value.x-u.value.x),height:Math.abs(M.value.y-u.value.y)}:{left:0,top:0,width:0,height:0}),{margin:L=50,startSpeed:k=30,maxSpeed:U=30}=o;let x;const p=L,A=k,_=U,V=y=>y**1;let Q=0;function R(y){if(cancelAnimationFrame(x),Q=K(y),Q=Math.max(Math.min(Q,_),-_),Q!==0){const T=c.value;if(!T||!m.value)return;const C=h.value.height-N.value.height;let z=h.value.top+Number(Q);z=Math.min(Math.max(0,z),C),T.scrollTop=z,Y(),x=requestAnimationFrame(()=>R(y))}}function K(y){if(c.value){const C=N.value,z=C.bottom-y;if(z<p)return A*V(1-z/p);const O=y-C.top;if(O<p)return-A*V(1-O/p)}return 0}function W(y){const T={...w.value,right:0,bottom:0};return T.left+=N.value.left,T.top+=N.value.top-h.value.top,T.right=T.width+T.left,T.bottom=T.height+T.top,T.left<y.right&&T.right>y.left&&T.top<y.bottom&&T.bottom>y.top}function Y(){h.value.sync();const{top:y,height:T}=h.value;u.value.y=Math.min(T+N.value.top,u.value.y+y-u.value.scrollTop),u.value.scrollTop=y}function S(y,T,C="dynamic-styles"){let z=document.getElementById(C);z||(z=document.createElement("style"),z.id=C,document.head.appendChild(z));const O=z.sheet.cssRules,H=O.length,F=`${y} { ${T} }`;for(let q=0;q<H;q++){const te=O[q];if(te.selectorText===y&&te.style.cssText===T)return}z.sheet.insertRule(F,H)}function j(y,T){f.value=!0,m.value=!0,h.value.sync(!0);const C=T+h.value.top;M.value.x=y,M.value.y=C,u.value.x=y,u.value.y=C,c.value?.classList.add("disable-scroll-behavior"),a.clear()}function B(y,T,C){!m.value||(f.value&&n==="colum"&&!$()&&(r(),f.value=!1),C?.(),R(T),u.value.x=Math.max(y,N.value.left),u.value.y=Math.min(T+h.value.top,h.value.height+N.value.top),u.value.scrollTop=h.value.top,g.value())}function P(){m.value=!1,c.value?.classList.remove("disable-scroll-behavior")}function b(){!m.value||(Q||Y(),g.value())}function $(){if(!m.value)return!1;const{width:y,height:T}=w.value;return!(Math.max(y,T)>5)}function ae(){$()&&r()}function Se(){$()||c.value?.querySelectorAll(`[${t}]`).forEach(y=>{d[`${t}`]=y.getAttribute(`${t}`),W(y.getBoundingClientRect())?s([d]):i([d])})}function D(){const y=[];let T=null,C=0;c.value?.querySelectorAll(`[${t}]`).forEach((z,O)=>{const H=z.getAttribute(`${t}`);y.push(H),W(z.getBoundingClientRect())?(T===null&&(T=O),T=Math.min(T,O),C=Math.max(C,O)):(d[`${t}`]=H,a.has(H)&&i([d]))});for(let z=T;z<C+1;z++)d[`${t}`]=y[z],s([d]),a.add(y[z])}function v(y){return!y?.value||(c.value=y.value,!c?.value)?!1:(E.observe(c.value),S(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:v,dragStart:j,dragMove:B,dragEnd:P,onScroll:b,isSingleClick:$,cancelSelectAllBySingleClick:ae,selectFn:g,selectRange:w,isPressing:m,containerEl:c,observer:E}}function gt(t){const n=ze(t),{observer:o,selectRange:l}=n,{onScroll:s,dragStart:i,dragMove:r,dragEnd:d,cancelSelectAllBySingleClick:g}=n,a=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:f}=ve(`.drag-select-box {
|
|
1
|
+
(function(I,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(I=typeof globalThis<"u"?globalThis:I||self,e(I.ui={},I.Vue))})(this,function(I,e){"use strict";const xe={created(t,n){let o,l;function s(r){r.button==0&&(o=r.clientX,l=r.clientY)}function i(r){if(r.button!=0||o===void 0)return;const d=r.clientX,g=r.clientY,a=Math.abs(d-o),f=Math.abs(g-l);a>5||f>5||n.value&&n.value(r)}t.__mouse_down__=s,t.__mouse_up__=i,t.addEventListener("mousedown",s),t.addEventListener("mouseup",i)},unmounted(t){t.removeEventListener("mousedown",t.__mouse_down__),t.removeEventListener("mouseup",t.__mouse_up__)}},Ze={created(t,n){const{fn:o,ms:l=1500}=n.value;let s=null;function i(r){s||(o(r),s=setTimeout(()=>{s=null},l))}t.addEventListener("click",i)}};function Ke(t,n){var o;const l=e.shallowRef();return e.watchEffect(()=>{l.value=t()},{...n,flush:(o=n?.flush)!=null?o:"sync"}),e.readonly(l)}function Ge(t,n){let o,l,s;const i=e.ref(!0),r=()=>{i.value=!0,s()};e.watch(t,r,{flush:"sync"});const d=typeof n=="function"?n:n.get,g=typeof n=="function"?void 0:n.set,a=e.customRef((f,c)=>(l=f,s=c,{get(){return i.value&&(o=d(),i.value=!1),l(),o},set(m){g?.(m)}}));return Object.isExtensible(a)&&(a.trigger=r),a}function Te(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function X(t){return typeof t=="function"?t():e.unref(t)}const _e=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const qe=Object.prototype.toString,Je=t=>qe.call(t)==="[object Object]",ne=()=>{};function Oe(t,n){function o(...l){return new Promise((s,i)=>{Promise.resolve(t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})).then(s).catch(i)})}return o}function et(t,n={}){let o,l,s=ne;const i=d=>{clearTimeout(d),s(),s=ne};return d=>{const g=X(t),a=X(n.maxWait);return o&&i(o),g<=0||a!==void 0&&a<=0?(l&&(i(l),l=null),Promise.resolve(d())):new Promise((f,c)=>{s=n.rejectOnCancel?c:f,a&&!l&&(l=setTimeout(()=>{o&&i(o),l=null,f(d())},a)),o=setTimeout(()=>{l&&i(l),l=null,f(d())},g)})}}function tt(...t){let n=0,o,l=!0,s=ne,i,r,d,g,a;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:r,trailing:d=!0,leading:g=!0,rejectOnCancel:a=!1}=t[0]:[r,d=!0,g=!0,a=!1]=t;const f=()=>{o&&(clearTimeout(o),o=void 0,s(),s=ne)};return m=>{const M=X(r),u=Date.now()-n,E=()=>i=m();return f(),M<=0?(n=Date.now(),E()):(u>M&&(g||!l)?(n=Date.now(),E()):d&&(i=new Promise((N,h)=>{s=a?h:N,o=setTimeout(()=>{n=Date.now(),l=!0,N(E()),f()},Math.max(0,M-u))})),!g&&!o&&(o=setTimeout(()=>l=!0,M)),l=!1,i)}}function nt(t){return t||e.getCurrentInstance()}function Ne(t,n=200,o={}){return Oe(et(n,o),t)}function we(t,n=200,o=!1,l=!0,s=!1){return Oe(tt(n,o,l,s),t)}function Ee(t,n=!0,o){nt()?e.onMounted(t,o):n?t():e.nextTick(t)}function J(t){var n;const o=X(t);return(n=o?.$el)!=null?n:o}const ie=_e?window:void 0,ot=_e?window.document:void 0;function be(...t){let n,o,l,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,l,s]=t,n=ie):[n,o,l,s]=t,!n)return ne;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const i=[],r=()=>{i.forEach(f=>f()),i.length=0},d=(f,c,m,M)=>(f.addEventListener(c,m,M),()=>f.removeEventListener(c,m,M)),g=e.watch(()=>[J(n),X(s)],([f,c])=>{if(r(),!f)return;const m=Je(c)?{...c}:c;i.push(...o.flatMap(M=>l.map(u=>d(f,M,u,m))))},{immediate:!0,flush:"post"}),a=()=>{g(),r()};return Te(a),a}function lt(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function st(t){const n=lt();return e.computed(()=>(n.value,Boolean(t())))}function at(t){const n=e.getCurrentInstance(),o=Ge(()=>null,()=>t?J(t):n.proxy.$el);return e.onUpdated(o.trigger),e.onMounted(o.trigger),o}function it(t,n,o={}){const{window:l=ie,...s}=o;let i;const r=st(()=>l&&"ResizeObserver"in l),d=()=>{i&&(i.disconnect(),i=void 0)},g=e.computed(()=>Array.isArray(t)?t.map(c=>J(c)):[J(t)]),a=e.watch(g,c=>{if(d(),r.value&&l){i=new ResizeObserver(n);for(const m of c)m&&i.observe(m,s)}},{immediate:!0,flush:"post"}),f=()=>{d(),a()};return Te(f),{isSupported:r,stop:f}}function rt(t,n={width:0,height:0},o={}){const{window:l=ie,box:s="content-box"}=o,i=e.computed(()=>{var c,m;return(m=(c=J(t))==null?void 0:c.namespaceURI)==null?void 0:m.includes("svg")}),r=e.ref(n.width),d=e.ref(n.height),{stop:g}=it(t,([c])=>{const m=s==="border-box"?c.borderBoxSize:s==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(l&&i.value){const M=J(t);if(M){const u=l.getComputedStyle(M);r.value=Number.parseFloat(u.width),d.value=Number.parseFloat(u.height)}}else if(m){const M=Array.isArray(m)?m:[m];r.value=M.reduce((u,{inlineSize:E})=>u+E,0),d.value=M.reduce((u,{blockSize:E})=>u+E,0)}else r.value=c.contentRect.width,d.value=c.contentRect.height},o);Ee(()=>{const c=J(t);c&&(r.value="offsetWidth"in c?c.offsetWidth:n.width,d.value="offsetHeight"in c?c.offsetHeight:n.height)});const a=e.watch(()=>J(t),c=>{r.value=c?n.width:0,d.value=c?n.height:0});function f(){g(),a()}return{width:r,height:d,stop:f}}const ke=1;function ct(t,n={}){const{throttle:o=0,idle:l=200,onStop:s=ne,onScroll:i=ne,offset:r={left:0,right:0,top:0,bottom:0},eventListenerOptions:d={capture:!1,passive:!0},behavior:g="auto",window:a=ie,onError:f=y=>{console.error(y)}}=n,c=e.ref(0),m=e.ref(0),M=e.computed({get(){return c.value},set(y){E(y,void 0)}}),u=e.computed({get(){return m.value},set(y){E(void 0,y)}});function E(y,A){var _,V,Q;if(!a)return;const R=X(t);!R||(Q=R instanceof Document?a.document.body:R)==null||Q.scrollTo({top:(_=X(A))!=null?_:u.value,left:(V=X(y))!=null?V:M.value,behavior:X(g)})}const N=e.ref(!1),h=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),w=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),L=y=>{!N.value||(N.value=!1,w.left=!1,w.right=!1,w.top=!1,w.bottom=!1,s(y))},k=Ne(L,o+l),U=y=>{var A;if(!a)return;const _=((A=y?.document)==null?void 0:A.documentElement)||y?.documentElement||J(y),{display:V,flexDirection:Q}=getComputedStyle(_),R=_.scrollLeft;w.left=R<c.value,w.right=R>c.value;const K=Math.abs(R)<=(r.left||0),W=Math.abs(R)+_.clientWidth>=_.scrollWidth-(r.right||0)-ke;V==="flex"&&Q==="row-reverse"?(h.left=W,h.right=K):(h.left=K,h.right=W),c.value=R;let Y=_.scrollTop;y===a.document&&!Y&&(Y=a.document.body.scrollTop),w.top=Y<m.value,w.bottom=Y>m.value;const S=Math.abs(Y)<=(r.top||0),j=Math.abs(Y)+_.clientHeight>=_.scrollHeight-(r.bottom||0)-ke;V==="flex"&&Q==="column-reverse"?(h.top=j,h.bottom=S):(h.top=S,h.bottom=j),m.value=Y},x=y=>{var A;if(!a)return;const _=(A=y.target.documentElement)!=null?A:y.target;U(_),N.value=!0,k(y),i(y)};return be(t,"scroll",o?we(x,o,!0,!1):x,d),Ee(()=>{try{const y=X(t);if(!y)return;U(y)}catch(y){f(y)}}),be(t,"scrollend",L,d),{x:M,y:u,isScrolling:N,arrivedState:h,directions:w,measure(){const y=X(t);a&&y&&U(y)}}}let ut=0;function ve(t,n={}){const o=e.ref(!1),{document:l=ot,immediate:s=!0,manual:i=!1,id:r=`vueuse_styletag_${++ut}`}=n,d=e.ref(t);let g=()=>{};const a=()=>{if(!l)return;const c=l.getElementById(r)||l.createElement("style");c.isConnected||(c.id=r,n.media&&(c.media=n.media),l.head.appendChild(c)),!o.value&&(g=e.watch(d,m=>{c.textContent=m},{immediate:!0}),o.value=!0)},f=()=>{!l||!o.value||(g(),l.head.removeChild(l.getElementById(r)),o.value=!1)};return s&&!i&&Ee(a),i||Te(f),{id:r,css:d,unload:f,load:a,isLoaded:e.readonly(o)}}function Be(t,n){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=n,i=e.ref(null),r=rt(i),d=e.ref(!0),g=Ne(U,100);let a;const f=e.shallowRef(t),c=e.ref(0),m=e.ref({start:0,end:10}),M=e.ref({start:0,end:s});let u=0;const E=e.ref([]),N=e.computed(()=>{let{sum:S,height:j}={sum:0,height:0};return f.value.map((B,P)=>(typeof l=="number"?j=l:j=l(P),S+=j,{height:j,sum:S}))}),h=e.computed(()=>V(m.value.start)),w=e.computed(()=>typeof l=="number"?N.value.length*l:N.value[N.value.length-1]?.sum||0),L=e.computed(()=>{const{start:S,end:j}=M.value;return E.value.slice(S,j)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(a)),e.watch(f,()=>{(r.width.value||r.height.value)&&x()},{deep:!0}),e.watch([r.width,r.height],([S,j])=>{(S||j)&&x()},{deep:!0}),e.watch(c,()=>{k(),g()});function k(){d.value=!1}function U(){d.value=!0,o?.()}function x(){cancelAnimationFrame(a),a=requestAnimationFrame(y)}function y(){if(i.value){c.value=i.value.scrollTop;let S=A(c.value);u=_(S);let j=Math.max(0,S-s),B=Math.min(S+u+s,f.value.length);m.value={start:j,end:B},E.value=f.value.slice(j,B).map((P,b)=>({data:P,index:b+j})),M.value.start=S-j,M.value.end=M.value.start+u}}function A(S){let j=0,B=N.value.length-1,P=-1;for(;j<=B;){const b=Math.floor((j+B)/2);N.value[b].sum>=S?(P=b,B=b-1):j=b+1}return Math.max(0,P)}function _(S){let j=0,B=0;for(let P=S;P<N.value.length&&(j++,B+=N.value[P].height,!(B>=r.height.value));P++);return j}function V(S){if(typeof l=="number")return S*l;let j=N.value[S];return j?j.sum-j.height:0}function Q(S){return N.value[S]||{sum:0,height:0}}function R(S){if(i.value){const j=Q(S);i.value.scrollTop=j.sum-j.height,y()}}const K=e.computed(()=>({style:{width:"100%",height:`${w.value}px`,pointerEvents:d.value?void 0:"none"}})),W=e.computed(()=>({style:{transform:`translate3d(0, ${h.value}px, 0)`,"will-change":"transform"}})),Y={overflowY:"auto"};return{list:E,visiableList:L,getItemHeightData:Q,getoffsetTopIndex:A,totalHeight:w,clientHeight:r.height,scrollTo:R,scrollTop:c,isScrollEnd:d,containerProps:{ref:i,onScroll:()=>{x()},style:Y},wrapperProps:K,innerProps:W}}const re=Symbol(),ce=Symbol(),ue=Symbol(),de=Symbol(),fe=Symbol(),Me=Symbol(),ge=Symbol(),me=Symbol(),le=Symbol(),he=Symbol();function dt(){const{voidFn:t,boolFn:n,boolRef:o,numberRef:l,arrayRef:s}={voidFn:E=>{},boolFn:E=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},i=e.inject(de,s),r=e.inject(ue,n),d=e.inject(me,o),g=e.inject(ce,t),a=e.inject(re,t),f=e.inject(fe,t),c=e.inject(Me,t),m=e.inject(ge,t),M=e.inject(le,t),u=e.inject(he,l);return{selected:i,isSelected:r,isAllSelected:d,toggle:g,toggleAll:a,select:f,selectAll:c,unselect:m,unselectAll:M,selectedCount:u}}function ft(t,n,o={deep:!0}){const l=e.ref(!1),s=e.ref(new Set),i=e.ref(new Map);e.watch(t,h=>{i.value=h.reduce((w,L)=>(w.set(L[n],L),w),new Map)},{deep:o.deep,immediate:!0});const r=e.computed(()=>{let h=[];if(l.value!=null)l.value&&(h=Array.from(i.value.values()));else if(s.value.size){let w;s.value.forEach(L=>{w=i.value.get(L),w&&h.push(w)})}return h}),d=e.computed(()=>{let h=0;return l.value!=null?l.value&&(h=i.value.size):h=s.value.size,h}),g=e.computed(()=>{let h;if(l.value!=null)h=l.value;else{const w=s.value.size,L=i.value.size;h=w==L}return h});function a(){l.value=!0}function f(){l.value=!1}function c(h){u(()=>{h.forEach(w=>{s.value.add(w[n])})})}function m(h){u(()=>{h.forEach(w=>{s.value.delete(w[n])})})}function M(h){return l.value!=null?l.value:s.value.has(h[n])}function u(h){l.value!=null&&(l.value?s.value=new Set(Array.from(i.value.keys())):s.value=new Set),h(),s.value.size==0?l.value=!1:s.value.size==i.value.size?l.value=!0:l.value=null}function E(h){u(()=>{h.forEach(w=>{M(w)?s.value.delete(w[n]):s.value.add(w[n])})})}function N(){const{value:h}=g;h?f():a()}return e.provide(re,N),e.provide(ce,E),e.provide(ue,M),e.provide(de,r),e.provide(fe,c),e.provide(Me,a),e.provide(ge,m),e.provide(me,g),e.provide(le,f),e.provide(le,f),e.provide(he,d),{selected:r,select:c,selectAll:a,unselect:m,unselectAll:f,toggle:E,toggleAll:N,isSelected:M,isAllSelected:g,selectedCount:d}}function Mt(t){const n=e.ref(!1),o=e.ref(new Set),l=e.computed(()=>{let u=[];return n.value!=null?n.value&&(u=t.value):o.value.size&&(u=Array.from(o.value.values())),u}),s=e.computed(()=>{let u=0;return n.value!=null?n.value&&(u=t.value.length):u=o.value.size,u}),i=e.computed(()=>{let u;if(n.value!=null)u=n.value;else{const E=o.value.size,N=t.value.length;u=E==N}return u});function r(){n.value=!0}function d(){n.value=!1}function g(u){c(()=>{u.forEach(E=>{o.value.add(E)})})}function a(u){c(()=>{u.forEach(E=>{o.value.delete(E)})})}function f(u){return n.value!=null?n.value:o.value.has(u)}function c(u){n.value!=null&&(n.value?o.value=new Set(Array.from(t.value)):o.value=new Set),u(),o.value.size==0?n.value=!1:o.value.size==t.value.length?n.value=!0:n.value=null}function m(u){c(()=>{u.forEach(E=>{f(E)?o.value.delete(E):o.value.add(E)})})}function M(){const{value:u}=i;u?d():r()}return e.provide(re,M),e.provide(ce,m),e.provide(ue,f),e.provide(de,l),e.provide(fe,g),e.provide(Me,r),e.provide(ge,a),e.provide(me,i),e.provide(le,d),e.provide(le,d),e.provide(he,s),{selected:l,select:g,selectAll:r,unselect:a,unselectAll:d,toggle:m,toggleAll:M,isSelected:f,isAllSelected:i,selectedCount:s}}function Ie(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ze({attribute:t,selectWay:n="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:s=Ie("\u9009\u62E9"),unselect:i=Ie("\u53D6\u6D88\u9009\u62E9"),unselectAll:r=Ie("\u53D6\u6D88\u5168\u9009")}=l();let d={};const g=e.computed(()=>we(n==="colum"?Se:D,50)),a=new Set,f=e.ref(!0),c=e.ref(),m=e.ref(!1),M=e.ref({x:0,y:0}),u=e.ref({x:0,y:0,scrollTop:0}),E=new ResizeObserver(p=>N.value=p[0].target.getBoundingClientRect()),N=e.ref({}),h=e.ref({top:0,height:0,sync(p=!1){h.value.top=c.value?.scrollTop||0,p&&(h.value.height=c.value?.scrollHeight||0)}}),w=e.computed(()=>m.value?{left:Math.min(M.value.x,u.value.x)-N.value.left,top:Math.min(M.value.y,u.value.y)-N.value.top,width:Math.abs(M.value.x-u.value.x),height:Math.abs(M.value.y-u.value.y)}:{left:0,top:0,width:0,height:0}),{margin:L=50,startSpeed:k=30,maxSpeed:U=30}=o;let x;const y=L,A=k,_=U,V=p=>p**1;let Q=0;function R(p){if(cancelAnimationFrame(x),Q=K(p),Q=Math.max(Math.min(Q,_),-_),Q!==0){const T=c.value;if(!T||!m.value)return;const C=h.value.height-N.value.height;let z=h.value.top+Number(Q);z=Math.min(Math.max(0,z),C),T.scrollTop=z,Y(),x=requestAnimationFrame(()=>R(p))}}function K(p){if(c.value){const C=N.value,z=C.bottom-p;if(z<y)return A*V(1-z/y);const O=p-C.top;if(O<y)return-A*V(1-O/y)}return 0}function W(p){const T={...w.value,right:0,bottom:0};return T.left+=N.value.left,T.top+=N.value.top-h.value.top,T.right=T.width+T.left,T.bottom=T.height+T.top,T.left<p.right&&T.right>p.left&&T.top<p.bottom&&T.bottom>p.top}function Y(){h.value.sync();const{top:p,height:T}=h.value;u.value.y=Math.min(T+N.value.top,u.value.y+p-u.value.scrollTop),u.value.scrollTop=p}function S(p,T,C="dynamic-styles"){let z=document.getElementById(C);z||(z=document.createElement("style"),z.id=C,document.head.appendChild(z));const O=z.sheet.cssRules,H=O.length,F=`${p} { ${T} }`;for(let q=0;q<H;q++){const te=O[q];if(te.selectorText===p&&te.style.cssText===T)return}z.sheet.insertRule(F,H)}function j(p,T){f.value=!0,m.value=!0,h.value.sync(!0);const C=T+h.value.top;M.value.x=p,M.value.y=C,u.value.x=p,u.value.y=C,c.value?.classList.add("disable-scroll-behavior"),a.clear()}function B(p,T,C){!m.value||(f.value&&n==="colum"&&!$()&&(r(),f.value=!1),C?.(),R(T),u.value.x=Math.max(p,N.value.left),u.value.y=Math.min(T+h.value.top,h.value.height+N.value.top),u.value.scrollTop=h.value.top,g.value())}function P(){m.value=!1,c.value?.classList.remove("disable-scroll-behavior")}function b(){!m.value||(Q||Y(),g.value())}function $(){if(!m.value)return!1;const{width:p,height:T}=w.value;return!(Math.max(p,T)>5)}function ae(){$()&&r()}function Se(){$()||c.value?.querySelectorAll(`[${t}]`).forEach(p=>{d[`${t}`]=p.getAttribute(`${t}`),W(p.getBoundingClientRect())?s([d]):i([d])})}function D(){const p=[];let T=null,C=0;c.value?.querySelectorAll(`[${t}]`).forEach((z,O)=>{const H=z.getAttribute(`${t}`);p.push(H),W(z.getBoundingClientRect())?(T===null&&(T=O),T=Math.min(T,O),C=Math.max(C,O)):(d[`${t}`]=H,a.has(H)&&i([d]))});for(let z=T;z<C+1;z++)d[`${t}`]=p[z],s([d]),a.add(p[z])}function v(p){return!p?.value||(c.value=p.value,!c?.value)?!1:(E.observe(c.value),S(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:v,dragStart:j,dragMove:B,dragEnd:P,onScroll:b,isSingleClick:$,cancelSelectAllBySingleClick:ae,selectFn:g,selectRange:w,isPressing:m,containerEl:c,observer:E}}function gt(t){const n=ze(t),{observer:o,selectRange:l}=n,{onScroll:s,dragStart:i,dragMove:r,dragEnd:d,cancelSelectAllBySingleClick:g}=n,a=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:f}=ve(`.drag-select-box {
|
|
2
2
|
position: absolute;
|
|
3
3
|
z-index: 99999;
|
|
4
4
|
background-color: rgb(191 219 254);
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
.${s} {
|
|
12
12
|
opacity: 0;
|
|
13
13
|
animation: lzcDelayLoad 0s ${i} forwards;
|
|
14
|
-
}`),{LoadingComp:e.defineComponent({setup(){const d=at();return e.onMounted(()=>{d.value?.classList?.add(s)}),()=>e.h(t,n)}})}}function Tt({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=Ae({component:t,componentProps:n,delay:o}),s=e.ref(!1);function i(){s.value=!0}function r(){s.value=!1}return{LoadingComp:l,loading:s,load:i,unload:r}}const Nt=[(t=>(e.pushScopeId("data-v-92a1804d"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],wt=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(t){return e.useCssVars(n=>({"4e4a9ce4":t.width+"px",e56fe5c2:t.height+"px"})),(n,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(n.$attrs)),Nt,16))}}),Qn="",Ye=Z(wt,[["__scopeId","data-v-92a1804d"]]),Et="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9cQSZMgtnLR7m19Hj//i9TNeBDyU7+jOWj2mDgBVlqXqRmHOgXZPvNOLXsHzSwWPdeKelMEiDKlkThMIhSVGTqGKaZRxxm/4VlsSeLTb17ojkpkESwlPrDhTLmn6VXbQACd4RFbhBoElgEfur6yJMXhE9Aoz+mz56sDMP+7a4TDcgW4Bn7wPax05VpGnQ6u4NPgnlq0F8Ojq6n2puxehXkFydeAsDWgYfLFwcYtLztQjieLv2y6hQc2DJx5qSYAUZJV+rr9hLCAAcGoNu6oSSZrI5K7zaIICAJQ2iwZGuGHuwjiaIgFGV2sHmQpIJr8eiM0BB6Byr6i7OBAmd0yiSRJXWQeQFDA5g6YpDK+SxB2As7z1SvPA0rKKJElQ/qA3MeNyp4Raxuk1NFGBHSZwcUFhqqlgKZgAjoj8bFPBlhephQ+kDdM4vKkWmAdXE0DRjL4YCfiiFmk1MGPemEFxJIdyg+QO3zQ/+q8FTa1VCER2tDUM7kE2v1BcEUyBoItLpavRUtiDNNSeccFNBARqIi3dDXfbIFJkyBD9tJQmMq1lbBvelkawrthDh8Hd9XvJT+Qi1NUSa9+3oRHw8T2+0iNNImbtqPSl6VkToVAlP9BQIV6hubuZyVDfnAA4LSoaNaqv/3HjsvPdLb3IkDFjhk8BAQbOZpNGpRCUp8dyy8GOtspBczgNjtO938wP08IP1BiyQJWVc88uB1x5F+sYEd0Y/f2FKb1tPJ4nhVFMuO34niW38mu639ycRuN3/UMLYCAbktSFKkrVvcf2LQV74lW8jChRMzOfxpv/2uhHHrYDokYVYab4acWhjZU7yLWIt3w/1Uklo+D1nV/+xyqc3Bt3O11JCMmb9nn/WH3s8C68Id0QV9CV9I/6P1jUg5x4Tgar6hLoQgX9nH69/dRiy+Eh3fhofMl7QSoE4qT6Z/0Hb2tuTjyFJ10gLlTSleKzPMXx7FL75OUSUCjm11TW6yMYRBfpAURwUZroxzs+rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC",vt={class:"loading-wrap"},It=["src"],zt=e.defineComponent({__name:"PageLoading",props:{delay:{default:"0.15s"},size:{default:"mini"}},setup(t){const n=t;e.useCssVars(l=>({b1cf73a8:t.delay}));const o=e.computed(()=>{const l={};return n.size==="mini"?(l.width="22px",l.height="22px"):n.size==="large"&&(l.width="28px",l.height="28px"),l});return(l,s)=>(e.openBlock(),e.createElementBlock("div",vt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(Et),style:e.normalizeStyle(e.unref(o))},null,12,It)]))}}),Yn="",At=Z(zt,[["__scopeId","data-v-3c54972f"]]);async function je(t){return new Promise(n=>setTimeout(()=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kzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",Ct=["onClick"],St=["onClick"],xt=["src"],_t=["src"],Ot=e.defineComponent({__name:"index",props:{visible:null,message:{default:""},duration:{default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!1},icon:{default:void 0},showClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!1},className:{default:""},overlayContentStyle:{default:void 0},captureEventP:{type:Boolean,default:!0}},emits:["close"],setup(t,{emit:n}){const o=t,l="lzc-loading-toast",s=e.computed(()=>{let a={};return o.captureEventP&&(a.pointerEvents="none"),a}),i=e.computed(()=>{let a={padding:"12px"};return(o.icon||o.showIcon)&&(a.padding="20px"),o.width&&(a.width=o.width),o.maxWidth&&(a.maxWidth=o.maxWidth),o.overlayContentStyle&&(a={...a,...o.overlayContentStyle}),a}),r=e.computed(()=>{let a={};return o.showClose&&!o.icon&&(a.paddingRight="16px"),a});function d(){o.closeOnClickOverlay&&n("close")}function g(){o.closeOnClick&&n("close")}return(a,f)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"lzc-animate-fade-in lzc-animate-duration-300","leave-active-class":"lzc-animate-fade-out lzc-animate-duration-300"},{default:e.withCtx(()=>[e.createElementVNode("div",{id:l,style:e.normalizeStyle(e.unref(s))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${l} ${t.className}`),onClick:e.withModifiers(d,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(g,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(i))},[t.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:f[0]||(f[0]=e.withModifiers(c=>n("close"),["stop"])),src:e.unref(jt),class:e.normalizeClass(`${l}-close`)},null,10,xt)):e.createCommentVNode("",!0),t.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:t.icon||e.unref(Lt),class:e.normalizeClass(`${l}-icon`)},null,10,_t)):e.createCommentVNode("",!0),t.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`),style:e.normalizeStyle(e.unref(r))},e.toDisplayString(t.message),7)):e.createCommentVNode("",!0)],6)],10,St)],10,Ct),[[e.vShow,t.visible]])],4)]),_:1}))}}),Un="",Rn="",bt=Z(Ot,[["__scopeId","data-v-0947d1e3"]]);class Ue{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(n){this.options={...n,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=bt}async show(){const n=this.options,l={...n,onClose:()=>{this.close(),n?.onClose?.()}},s=e.createVNode(this.loadingToast,l);e.render(s,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,n.duration!==0&&setTimeout(()=>{this.destory()},n.duration),await je(n.duration+this.animateDuration)}async destory(){!this.visible.value||(this.visible.value=!1,await new Promise(n=>{setTimeout(()=>{if(!this.el){n();return}document.body.removeChild(this.el),n()},this.animateDuration-10)}))}close(){document.querySelector("#lzc-loading-toast")?.remove()}}function kt(t,n){const o=!!n?.debug,l=n?.printErrorLog!==!1,s=n?.loading!==!1,i=n?.autoClose!==!1,r=n?.delay!=null?n.delay:300,d={...n,showIcon:n?.showIcon!==!1,captureEventP:n?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,i,r,d);const g=e.ref(!1);let a=null;const f=new Ue(d);async function c(...M){if(o&&console.log(`useDelayAsync - handler - processing: ${g.value}`),!g.value){g.value=!0,a=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,g.value),s&&(!g.value||f.show())},r);try{o&&console.time("useDelayAsync - handler-execute-time");const u=await t(...M);o&&console.log("useDelayAsync - execute res: ",u),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await m(i),await n?.onSuccess?.(u)}catch(u){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(u),await m(i),await n?.onError?.(u)}}}async function m(M=!0){o&&console.log("useDelayAsync - close - closeLoading: ",M),g.value=!1,a&&clearTimeout(a),a=null,M&&await f.destory()}return e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),m()}),{processing:g,handler:c,close:m}}function Bt(t,n){return t>n?"horizontal":n>t?"vertical":""}function Qt(){const t=e.ref(0),n=e.ref(0),o=e.ref(0),l=e.ref(0),s=e.ref(0),i=e.ref(0),r=e.ref(""),d=()=>r.value==="vertical",g=()=>r.value==="horizontal",a=()=>{o.value=0,l.value=0,s.value=0,i.value=0,r.value=""};return{move:m=>{const M=m.touches[0];o.value=(M.clientX<0?0:M.clientX)-t.value,l.value=M.clientY-n.value,s.value=Math.abs(o.value),i.value=Math.abs(l.value);const u=10;(!r.value||s.value<u&&i.value<u)&&(r.value=Bt(s.value,i.value))},start:m=>{a(),t.value=m.touches[0].clientX,n.value=m.touches[0].clientY},reset:a,startX:t,startY:n,deltaX:o,deltaY:l,offsetX:s,offsetY:i,direction:r,isVertical:d,isHorizontal:g}}const Re=250,Le=5,$e=500;function Yt(t,n,o,l){var s=Math.min(o/t,l/n),i=t*s,r=n*s;return{width:ee(i),height:ee(r)}}function Ut(t){return t<3?"444ms":t<6?"555ms":"666ms"}function pe(t,n,o){return Math.min(Math.max(t,n),o)}function ee(t,n=2){return parseFloat(t.toFixed(n))}function ye(t,n,o){return t=ee(t),n=ee(n),`translate3d(${t}px, ${n}px, 0) scale3d(${o},${o},${o})`}function Pe(t){return Math.sqrt((t[0].clientX-t[1].clientX)**2+(t[0].clientY-t[1].clientY)**2)}function Fe(t){return{x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}function Rt(t){const n=e.ref(1),o=e.ref(6),l=e.ref(!1),s=e.ref(!0),i=e.ref(),r=e.ref(),d=e.ref({width:0,height:0}),g=e.ref({width:0,height:0}),a=e.reactive({scale:1,offsetX:0,offsetY:0,touched:!1,zooming:!1,preview:!0}),f=e.ref({}),c=Qt(),m=ct(r);let M,u,E,N,h,w,L,k;e.watch([i,r],([D,v])=>{U(D,v)},{immediate:!0});async function U(D,v){await x(D,v),D&&p()}async function x(D,v){if(D=D??i.value,v=v??r.value,!v)return;let{clientWidth:y=0,clientHeight:T=0}=D||{};const{clientWidth:C,clientHeight:z}=v;if(D instanceof HTMLImageElement){const O=Yt(D.naturalWidth||C,D.naturalHeight||z,C,z);y=O.width,T=O.height}(y===0||T===0)&&(y=d.value.width||C,T=d.value.height||z),d.value={width:Math.min(y,C),height:Math.min(T,z)},g.value={width:C,height:z}}function p(){const D=P();o.value=Math.max(o.value,D*2)}function A(D,v){const{width:y,height:T}=g.value,C=Math.max(0,(T-v)*.5),z=Math.max(0,(y-D)*.5);return{top:C,left:z}}async function _(D){const{touches:v}=D;M=v.length,!(M===2&&l.value)&&(a.zooming=M===2,N=Date.now(),c.start(D),Y("start",D),a.zooming&&(D.preventDefault(),u=a.scale,E=Pe(v),await W(a.scale),k||(k=Fe(v))),a.touched||(a.touched=!0))}async function V(D){const{touches:v}=D;if(M=v.length,c.move(D),Y("move",D),a.zooming&&M==2){D.preventDefault(),w=!1;const y=Pe(v),T=u*y/E;k&&B(T,k)}}async function Q(D){D.touches.length||(Y("end",D),ae(),a.scale>=n.value&&a.scale<=o.value?a.zooming&&await K(a.scale):(a.zooming=!1,a.scale<n.value?await B(n.value,void 0,!0):a.scale>o.value&&await B(o.value,k,!0)),c.reset(),R())}function R(){k=void 0,a.touched=!1}async function K(D){if(a.preview)return;a.preview=!0;const{value:v}=f,{scaleW:y,scaleH:T}=S(D),{left:C,top:z}=A(y,T);D===1&&(v.maxHeight="100%"),v.width=`${y}px`,v.height=`${T}px`,v.transitionDuration="0s",v.transform=ye(C,z,1),f.value=v,await e.nextTick();const O=r.value;if(!O)return;const{offsetX:H,offsetY:F}=a;H<0&&(O.scrollLeft=Math.abs(H)),F<0&&(O.scrollTop=Math.abs(F))}async function W(D){if(!a.preview)return;a.preview=!1;const v=r.value;if(!v)return;const{scrollTop:y,scrollLeft:T}=v,{width:C,height:z}=d.value,{scaleW:O,scaleH:H}=S(D),{top:F,left:q}=A(O,H),te=q!=0?q:T*-1,oe=F!=0?F:y*-1;v.scrollTop=0,v.scrollLeft=0;const{value:G}=f;G.width=`${C}px`,G.height=`${z}px`,G.maxHeight="none",G.transitionDuration="0s",G.transform=ye(te,oe,D),f.value=G,await e.nextTick(),a.offsetX=te,a.offsetY=oe,await je(20)}function Y(D,v){m.measure();let{clientX:y,clientY:T}=v.touches.length!=0?v.touches[0]:v.changedTouches[0];const{top:C,left:z,right:O,bottom:H}=m.arrivedState;if(D=="start")L=C||z||O||H;else if(M==2)L=!1;else if(L){if(c.direction.value=="vertical")if(a.scale!=1)L=!1;else{const F=c.startY.value<T;L=C&&F||H&&!F}else if(c.direction.value=="horizontal"){const F=c.startX.value<y;L=z&&F||O&&!F}}L&&w&&(L=!1,v.preventDefault()),D=="end"&&!L&&(y=c.startX.value,T=c.startY.value,L=!0),(D!="move"||L)&&t.onSwipeEdge?.(D,c.direction.value,y,T)}function S(D){const{width:v,height:y}=d.value;return{scaleW:ee(D*v),scaleH:ee(D*y)}}function j(){w||(w=!0,r.value?.addEventListener("transitionend",$))}async function B(D,v,y){if(D=ee(D),D=pe(D,n.value-n.value*.5,o.value+o.value*.5),D!==a.scale){a.preview&&await W(a.scale),v||(v={x:c.startX.value,y:c.startY.value});const{value:T}=f,{width:C,height:z}=d.value,{scaleW:O,scaleH:H}=S(D),{top:F,left:q}=A(O,H),te=D/a.scale,oe={top:Math.abs(z*D-g.value.height)*-1,bottom:F,left:Math.abs(C*D-g.value.width)*-1,right:q};let G=q!=0?q:(a.offsetX-v.x)*te+v.x,De=F!=0?F:(a.offsetY-v.y)*te+v.y;G=ee(pe(G,oe.left,oe.right)),De=ee(pe(De,oe.top,oe.bottom)),T.width=`${C}px`,T.height=`${z}px`,T.transitionDuration=y?Ut(D):"0s",T.transform=ye(G,De,D),a.offsetX=G,a.offsetY=De,a.scale=D,f.value=T,await e.nextTick(),y&&j(),t.onScale?.()}}function P(){const{width:D,height:v}=d.value,{width:y,height:T}=g.value,C=2.5;let z;return v==T?(z=y/D,z-1<.1&&(z=C)):z=Math.max(C,y/D,T/v),z}function b(){const D=a.scale>1?1:P();B(D,D!=1?{x:c.startX.value,y:c.startY.value}:void 0,!0)}async function $(){r.value?.removeEventListener("transitionend",$),w=!1,a.preview||await K(a.scale)}async function ae(D){if(M>1)return;const{offsetX:v,offsetY:y}=c,T=Date.now()-N;v.value<Le&&y.value<Le&&(T<Re?s.value?h?(clearTimeout(h),h=null,b()):h=setTimeout(async()=>{t.onTap?.(),h=null},Re):t.onTap?.():T>$e&&t.onLongPress?.())}function Se(){B(1,void 0,!0)}return{imageRef:i,containerRef:r,state:a,style:f,resetScale:Se,onTouchStart:_,onTouchMove:V,onTouchEnd:Q}}function $t(){const t=e.reactive({scale:1,startX:0,startY:0,offsetX:0,offsetY:0,dragging:!1,started:!1});function n(s,i){t.startX=s,t.startY=i,t.scale=1}function o(s,i){t.started=!0,t.dragging=!0,t.offsetX=s-t.startX,t.offsetY=i-t.startY,t.scale=1-Math.abs(t.offsetY/i*.4)}function l(){!t.dragging||(Math.abs(t.offsetY)>window.innerHeight*.14?t.scale=.3:t.scale=1,t.dragging=!1,t.offsetX=0,t.offsetY=0)}return{state:t,dragStart:n,dragMove:o,dragEnd:l}}const Pt=["onClick"],Ft=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(t){const n=t,o=e.ref(),l=e.ref(),s=e.ref(),i=e.computed(()=>{switch(n.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),r=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${i.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),d=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function g(){!n.buttonClickEvent||n.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(a,f)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(g,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(r),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(d))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,Pt))}}),$n="",Ht=Z(Ft,[["__scopeId","data-v-25d39b90"]]),He={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class Vt{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(Ht),{...He,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||He.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const n=this.container.querySelector("#toastWrapper");n.style.opacity="0",n.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const Wt=["xlink:href","fill","color"],se=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(t){const n=t,o=e.computed(()=>`#${n.prefix}-${n.name}`),l=e.computed(()=>({width:`${n.width??n.height}px`,height:`${n.height??n.width}px`,aspectRatio:n.width&&n.height?void 0:"1/1"}));function s(i){const{style:r}=i;return typeof r=="object"?r:{}}return(i,r)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(i.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:t.color,color:t.color},null,8,Wt)],4))}});function Xt(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:i=.9,observeMethod:r="classList"}=t,d=e.ref(!0),g=Ne(V,100);let a,f="";const c=e.ref(0),m=e.ref(0),M=e.ref(0),u=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),E=e.ref({clientHeight:0}),N=e.computed(()=>!!m.value),h=e.computed(()=>u.value.scrollHeight>u.value.clientHeight),w=e.computed(()=>l?u.value.clientHeight-U.value:u.value.clientHeight-E.value.clientHeight),L=e.computed(()=>u.value.scrollHeight-u.value.clientHeight),k=e.computed(()=>Math.max(u.value.clientHeight/u.value.scrollHeight,.05)),U=e.computed(()=>k.value>i?0:k.value*u.value.clientHeight),x=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${M.value}px,0)`,height:l?`${U.value}px`:void 0}));function p(b){_(),m.value=b.clientY-o.value.getBoundingClientRect().top||1,f=getComputedStyle(n.value).scrollBehavior,f==="smooth"&&(n.value.style.scrollBehavior="unset")}function A(){n.value.style.scrollBehavior=f,m.value=0,g()}function _(){d.value=!1}function V(){N.value||(d.value=!0)}function Q(b){if(!N.value)return;let $=b.clientY-u.value.top-m.value;$<0?M.value=0:$>=w.value?M.value=w.value:M.value=$,n.value.scrollTo({top:M.value/w.value*L.value})}function R(){N.value||K()}function K(){cancelAnimationFrame(a),a=requestAnimationFrame(W)}function W(){n.value&&(c.value=s.scrollTop?.value??n.value.scrollTop,M.value=c.value/L.value*w.value)}function Y(b){let $="addEventListener";b==="add"?$="addEventListener":$="removeEventListener",o.value?.[$]("pointerdown",p,{passive:!0}),window[$]("pointermove",Q,{passive:!0}),window[$]("pointerup",A,{passive:!0})}const S=new MutationObserver(b=>{(r=="classList"||b.map(ae=>ae.oldValue).join().includes("height"))&&j()});function j(){u.value.top=n.value?.getBoundingClientRect().top??0,u.value.scrollHeight=n.value?.scrollHeight??0,u.value.clientHeight=n.value?.clientHeight??0}function B(){_(),setTimeout(()=>{E.value.clientHeight=o.value?.clientHeight??0,V()},150)}function P(){if(n.value&&o.value){n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",R,{passive:!0}),Y("add");const b={};r==="classList"?Object.assign(b,{subtree:!0,childList:!0}):Object.assign(b,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),S.observe(n.value,b),setTimeout(()=>{j()},100),B()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(c,()=>{_(),g()}),{isScrollEnd:d,isDragSlider:N,offsetTop:M,scrollTop:c,scrollable:h,sliderPos:x,init:P,modifySliderEventListener:Y}}const Zt=(t=>(e.pushScopeId("data-v-405c22cf"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Kt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null},setup(t,{expose:n}){const o=t,l=!!e.useSlots().default,s=e.ref(null),i=e.computed(()=>o.containerEl),r=Xt({containerEl:i,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:d,isScrollEnd:g,sliderPos:a}=r,f=e.ref(!1),c=o.autoHide?e.computed(()=>f.value||!g.value):e.computed(()=>d.value),{load:m}=ve(`.hide-scrollbar {
|
|
14
|
+
}`),{LoadingComp:e.defineComponent({setup(){const d=at();return e.onMounted(()=>{d.value?.classList?.add(s)}),()=>e.h(t,n)}})}}function Tt({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=Ae({component:t,componentProps:n,delay:o}),s=e.ref(!1);function i(){s.value=!0}function r(){s.value=!1}return{LoadingComp:l,loading:s,load:i,unload:r}}const Nt=[(t=>(e.pushScopeId("data-v-92a1804d"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],wt=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(t){return e.useCssVars(n=>({"4e4a9ce4":t.width+"px",e56fe5c2:t.height+"px"})),(n,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(n.$attrs)),Nt,16))}}),Qn="",Ye=Z(wt,[["__scopeId","data-v-92a1804d"]]),Et="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9cQSZMgtnLR7m19Hj//i9TNeBDyU7+jOWj2mDgBVlqXqRmHOgXZPvNOLXsHzSwWPdeKelMEiDKlkThMIhSVGTqGKaZRxxm/4VlsSeLTb17ojkpkESwlPrDhTLmn6VXbQACd4RFbhBoElgEfur6yJMXhE9Aoz+mz56sDMP+7a4TDcgW4Bn7wPax05VpGnQ6u4NPgnlq0F8Ojq6n2puxehXkFydeAsDWgYfLFwcYtLztQjieLv2y6hQc2DJx5qSYAUZJV+rr9hLCAAcGoNu6oSSZrI5K7zaIICAJQ2iwZGuGHuwjiaIgFGV2sHmQpIJr8eiM0BB6Byr6i7OBAmd0yiSRJXWQeQFDA5g6YpDK+SxB2As7z1SvPA0rKKJElQ/qA3MeNyp4Raxuk1NFGBHSZwcUFhqqlgKZgAjoj8bFPBlhephQ+kDdM4vKkWmAdXE0DRjL4YCfiiFmk1MGPemEFxJIdyg+QO3zQ/+q8FTa1VCER2tDUM7kE2v1BcEUyBoItLpavRUtiDNNSeccFNBARqIi3dDXfbIFJkyBD9tJQmMq1lbBvelkawrthDh8Hd9XvJT+Qi1NUSa9+3oRHw8T2+0iNNImbtqPSl6VkToVAlP9BQIV6hubuZyVDfnAA4LSoaNaqv/3HjsvPdLb3IkDFjhk8BAQbOZpNGpRCUp8dyy8GOtspBczgNjtO938wP08IP1BiyQJWVc88uB1x5F+sYEd0Y/f2FKb1tPJ4nhVFMuO34niW38mu639ycRuN3/UMLYCAbktSFKkrVvcf2LQV74lW8jChRMzOfxpv/2uhHHrYDokYVYab4acWhjZU7yLWIt3w/1Uklo+D1nV/+xyqc3Bt3O11JCMmb9nn/WH3s8C68Id0QV9CV9I/6P1jUg5x4Tgar6hLoQgX9nH69/dRiy+Eh3fhofMl7QSoE4qT6Z/0Hb2tuTjyFJ10gLlTSleKzPMXx7FL75OUSUCjm11TW6yMYRBfpAURwUZroxzs+rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC",vt={class:"loading-wrap"},It=["src"],zt=e.defineComponent({__name:"PageLoading",props:{delay:{default:"0.15s"},size:{default:"mini"}},setup(t){const n=t;e.useCssVars(l=>({b1cf73a8:t.delay}));const o=e.computed(()=>{const l={};return n.size==="mini"?(l.width="22px",l.height="22px"):n.size==="large"&&(l.width="28px",l.height="28px"),l});return(l,s)=>(e.openBlock(),e.createElementBlock("div",vt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(Et),style:e.normalizeStyle(e.unref(o))},null,12,It)]))}}),Yn="",At=Z(zt,[["__scopeId","data-v-3c54972f"]]);async function je(t){return new Promise(n=>setTimeout(()=>n(),t))}const jt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgM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vZz4KPC9zdmc+",Ct=["onClick"],St=["onClick"],xt=["src"],_t=["src"],Ot=e.defineComponent({__name:"index",props:{visible:null,message:{default:""},duration:{default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!1},icon:{default:void 0},showClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!1},className:{default:""},overlayContentStyle:{default:void 0},captureEventP:{type:Boolean,default:!0}},emits:["close"],setup(t,{emit:n}){const o=t,l="lzc-loading-toast",s=e.computed(()=>{let a={};return o.captureEventP&&(a.pointerEvents="none"),a}),i=e.computed(()=>{let a={padding:"12px"};return(o.icon||o.showIcon)&&(a.padding="20px"),o.width&&(a.width=o.width),o.maxWidth&&(a.maxWidth=o.maxWidth),o.overlayContentStyle&&(a={...a,...o.overlayContentStyle}),a}),r=e.computed(()=>{let a={};return o.showClose&&!o.icon&&(a.paddingRight="16px"),a});function d(){o.closeOnClickOverlay&&n("close")}function g(){o.closeOnClick&&n("close")}return(a,f)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"lzc-animate-fade-in lzc-animate-duration-300","leave-active-class":"lzc-animate-fade-out lzc-animate-duration-300"},{default:e.withCtx(()=>[e.createElementVNode("div",{id:l,style:e.normalizeStyle(e.unref(s))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${l} ${t.className}`),onClick:e.withModifiers(d,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(g,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(i))},[t.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:f[0]||(f[0]=e.withModifiers(c=>n("close"),["stop"])),src:e.unref(jt),class:e.normalizeClass(`${l}-close`)},null,10,xt)):e.createCommentVNode("",!0),t.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:t.icon||e.unref(Lt),class:e.normalizeClass(`${l}-icon`)},null,10,_t)):e.createCommentVNode("",!0),t.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`),style:e.normalizeStyle(e.unref(r))},e.toDisplayString(t.message),7)):e.createCommentVNode("",!0)],6)],10,St)],10,Ct),[[e.vShow,t.visible]])],4)]),_:1}))}}),Un="",Rn="",bt=Z(Ot,[["__scopeId","data-v-0947d1e3"]]);class Ue{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(n){this.options={...n,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=bt}async show(){const n=this.options,l={...n,onClose:()=>{this.close(),n?.onClose?.()}},s=e.createVNode(this.loadingToast,l);e.render(s,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,n.duration!==0&&setTimeout(()=>{this.destory()},n.duration),await je(n.duration+this.animateDuration)}async destory(){!this.visible.value||(this.visible.value=!1,await new Promise(n=>{setTimeout(()=>{if(!this.el){n();return}document.body.removeChild(this.el),n()},this.animateDuration-10)}))}close(){document.querySelector("#lzc-loading-toast")?.remove()}}function kt(t,n){const o=!!n?.debug,l=n?.printErrorLog!==!1,s=n?.loading!==!1,i=n?.autoClose!==!1,r=n?.delay!=null?n.delay:300,d={...n,showIcon:n?.showIcon!==!1,captureEventP:n?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,i,r,d);const g=e.ref(!1);let a=null;const f=new Ue(d);async function c(...M){if(o&&console.log(`useDelayAsync - handler - processing: ${g.value}`),!g.value){g.value=!0,a=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,g.value),s&&(!g.value||f.show())},r);try{o&&console.time("useDelayAsync - handler-execute-time");const u=await t(...M);o&&console.log("useDelayAsync - execute res: ",u),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await m(i),await n?.onSuccess?.(u)}catch(u){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(u),await m(i),await n?.onError?.(u)}}}async function m(M=!0){o&&console.log("useDelayAsync - close - closeLoading: ",M),g.value=!1,a&&clearTimeout(a),a=null,M&&await f.destory()}return e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),m()}),{processing:g,handler:c,close:m}}function Bt(t,n){return t>n?"horizontal":n>t?"vertical":""}function Qt(){const t=e.ref(0),n=e.ref(0),o=e.ref(0),l=e.ref(0),s=e.ref(0),i=e.ref(0),r=e.ref(""),d=()=>r.value==="vertical",g=()=>r.value==="horizontal",a=()=>{o.value=0,l.value=0,s.value=0,i.value=0,r.value=""};return{move:m=>{const M=m.touches[0];o.value=(M.clientX<0?0:M.clientX)-t.value,l.value=M.clientY-n.value,s.value=Math.abs(o.value),i.value=Math.abs(l.value);const u=10;(!r.value||s.value<u&&i.value<u)&&(r.value=Bt(s.value,i.value))},start:m=>{a(),t.value=m.touches[0].clientX,n.value=m.touches[0].clientY},reset:a,startX:t,startY:n,deltaX:o,deltaY:l,offsetX:s,offsetY:i,direction:r,isVertical:d,isHorizontal:g}}const Re=250,Le=5,$e=500;function Yt(t,n,o,l){var s=Math.min(o/t,l/n),i=t*s,r=n*s;return{width:ee(i),height:ee(r)}}function Ut(t){return t<3?"444ms":t<6?"555ms":"666ms"}function pe(t,n,o){return Math.min(Math.max(t,n),o)}function ee(t,n=2){return parseFloat(t.toFixed(n))}function ye(t,n,o){return t=ee(t),n=ee(n),`translate3d(${t}px, ${n}px, 0) scale3d(${o},${o},${o})`}function Pe(t){return Math.sqrt((t[0].clientX-t[1].clientX)**2+(t[0].clientY-t[1].clientY)**2)}function Fe(t){return{x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}function Rt(t){const n=e.ref(1),o=e.ref(6),l=e.ref(!1),s=e.ref(!0),i=e.ref(),r=e.ref(),d=e.ref({width:0,height:0}),g=e.ref({width:0,height:0}),a=e.reactive({scale:1,offsetX:0,offsetY:0,touched:!1,zooming:!1,preview:!0}),f=e.ref({}),c=Qt(),m=ct(r);let M,u,E,N,h,w,L,k;e.watch([i,r],([D,v])=>{U(D,v)},{immediate:!0});async function U(D,v){await x(D,v),D&&y()}async function x(D,v){if(D=D??i.value,v=v??r.value,!v)return;let{clientWidth:p=0,clientHeight:T=0}=D||{};const{clientWidth:C,clientHeight:z}=v;if(D instanceof HTMLImageElement){const O=Yt(D.naturalWidth||C,D.naturalHeight||z,C,z);p=O.width,T=O.height}(p===0||T===0)&&(p=d.value.width||C,T=d.value.height||z),d.value={width:Math.min(p,C),height:Math.min(T,z)},g.value={width:C,height:z}}function y(){const D=P();o.value=Math.max(o.value,D*2)}function A(D,v){const{width:p,height:T}=g.value,C=Math.max(0,(T-v)*.5),z=Math.max(0,(p-D)*.5);return{top:C,left:z}}async function _(D){const{touches:v}=D;M=v.length,!(M===2&&l.value)&&(a.zooming=M===2,N=Date.now(),c.start(D),Y("start",D),a.zooming&&(D.preventDefault(),u=a.scale,E=Pe(v),await W(a.scale),k||(k=Fe(v))),a.touched||(a.touched=!0))}async function V(D){const{touches:v}=D;if(M=v.length,c.move(D),Y("move",D),a.zooming&&M==2){D.preventDefault(),w=!1;const p=Pe(v),T=u*p/E;k&&B(T,k)}}async function Q(D){D.touches.length||(Y("end",D),ae(),a.scale>=n.value&&a.scale<=o.value?a.zooming&&await K(a.scale):(a.zooming=!1,a.scale<n.value?await B(n.value,void 0,!0):a.scale>o.value&&await B(o.value,k,!0)),c.reset(),R())}function R(){k=void 0,a.touched=!1}async function K(D){if(a.preview)return;a.preview=!0;const{value:v}=f,{scaleW:p,scaleH:T}=S(D),{left:C,top:z}=A(p,T);D===1&&(v.maxHeight="100%"),v.width=`${p}px`,v.height=`${T}px`,v.transitionDuration="0s",v.transform=ye(C,z,1),f.value=v,await e.nextTick();const O=r.value;if(!O)return;const{offsetX:H,offsetY:F}=a;H<0&&(O.scrollLeft=Math.abs(H)),F<0&&(O.scrollTop=Math.abs(F))}async function W(D){if(!a.preview)return;a.preview=!1;const v=r.value;if(!v)return;const{scrollTop:p,scrollLeft:T}=v,{width:C,height:z}=d.value,{scaleW:O,scaleH:H}=S(D),{top:F,left:q}=A(O,H),te=q!=0?q:T*-1,oe=F!=0?F:p*-1;v.scrollTop=0,v.scrollLeft=0;const{value:G}=f;G.width=`${C}px`,G.height=`${z}px`,G.maxHeight="none",G.transitionDuration="0s",G.transform=ye(te,oe,D),f.value=G,await e.nextTick(),a.offsetX=te,a.offsetY=oe,await je(20)}function Y(D,v){m.measure();let{clientX:p,clientY:T}=v.touches.length!=0?v.touches[0]:v.changedTouches[0];const{top:C,left:z,right:O,bottom:H}=m.arrivedState;if(D=="start")L=C||z||O||H;else if(M==2)L=!1;else if(L){if(c.direction.value=="vertical")if(a.scale!=1)L=!1;else{const F=c.startY.value<T;L=C&&F||H&&!F}else if(c.direction.value=="horizontal"){const F=c.startX.value<p;L=z&&F||O&&!F}}L&&w&&(L=!1,v.preventDefault()),D=="end"&&!L&&(p=c.startX.value,T=c.startY.value,L=!0),(D!="move"||L)&&t.onSwipeEdge?.(D,c.direction.value,p,T)}function S(D){const{width:v,height:p}=d.value;return{scaleW:ee(D*v),scaleH:ee(D*p)}}function j(){w||(w=!0,r.value?.addEventListener("transitionend",$))}async function B(D,v,p){if(D=ee(D),D=pe(D,n.value-n.value*.5,o.value+o.value*.5),D!==a.scale){a.preview&&await W(a.scale),v||(v={x:c.startX.value,y:c.startY.value});const{value:T}=f,{width:C,height:z}=d.value,{scaleW:O,scaleH:H}=S(D),{top:F,left:q}=A(O,H),te=D/a.scale,oe={top:Math.abs(z*D-g.value.height)*-1,bottom:F,left:Math.abs(C*D-g.value.width)*-1,right:q};let G=q!=0?q:(a.offsetX-v.x)*te+v.x,De=F!=0?F:(a.offsetY-v.y)*te+v.y;G=ee(pe(G,oe.left,oe.right)),De=ee(pe(De,oe.top,oe.bottom)),T.width=`${C}px`,T.height=`${z}px`,T.transitionDuration=p?Ut(D):"0s",T.transform=ye(G,De,D),a.offsetX=G,a.offsetY=De,a.scale=D,f.value=T,await e.nextTick(),p&&j(),t.onScale?.()}}function P(){const{width:D,height:v}=d.value,{width:p,height:T}=g.value,C=2.5;let z;return v==T?(z=p/D,z-1<.1&&(z=C)):z=Math.max(C,p/D,T/v),z}function b(){const D=a.scale>1?1:P();B(D,D!=1?{x:c.startX.value,y:c.startY.value}:void 0,!0)}async function $(){r.value?.removeEventListener("transitionend",$),w=!1,a.preview||await K(a.scale)}async function ae(D){if(M>1)return;const{offsetX:v,offsetY:p}=c,T=Date.now()-N;v.value<Le&&p.value<Le&&(T<Re?s.value?h?(clearTimeout(h),h=null,b()):h=setTimeout(async()=>{t.onTap?.(),h=null},Re):t.onTap?.():T>$e&&t.onLongPress?.())}function Se(){B(1,void 0,!0)}return{imageRef:i,containerRef:r,state:a,style:f,resetScale:Se,onTouchStart:_,onTouchMove:V,onTouchEnd:Q}}function $t(){const t=e.reactive({scale:1,startX:0,startY:0,offsetX:0,offsetY:0,dragging:!1,started:!1});function n(s,i){t.startX=s,t.startY=i,t.scale=1}function o(s,i){t.started=!0,t.dragging=!0,t.offsetX=s-t.startX,t.offsetY=i-t.startY,t.scale=1-Math.abs(t.offsetY/i*.4)}function l(){!t.dragging||(Math.abs(t.offsetY)>window.innerHeight*.14?t.scale=.3:t.scale=1,t.dragging=!1,t.offsetX=0,t.offsetY=0)}return{state:t,dragStart:n,dragMove:o,dragEnd:l}}const Pt=["onClick"],Ft=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(t){const n=t,o=e.ref(),l=e.ref(),s=e.ref(),i=e.computed(()=>{switch(n.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),r=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${i.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),d=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function g(){!n.buttonClickEvent||n.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(a,f)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(g,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(r),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(d))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,Pt))}}),$n="",Ht=Z(Ft,[["__scopeId","data-v-25d39b90"]]),He={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class Vt{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(Ht),{...He,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||He.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const n=this.container.querySelector("#toastWrapper");n.style.opacity="0",n.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const Wt=["xlink:href","fill","color"],se=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(t){const n=t,o=e.computed(()=>`#${n.prefix}-${n.name}`),l=e.computed(()=>({width:`${n.width??n.height}px`,height:`${n.height??n.width}px`,aspectRatio:n.width&&n.height?void 0:"1/1"}));function s(i){const{style:r}=i;return typeof r=="object"?r:{}}return(i,r)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(i.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:t.color,color:t.color},null,8,Wt)],4))}});function Xt(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:i=.9,observeMethod:r="classList"}=t,d=e.ref(!0),g=Ne(V,100);let a,f="";const c=e.ref(0),m=e.ref(0),M=e.ref(0),u=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),E=e.ref({clientHeight:0}),N=e.computed(()=>!!m.value),h=e.computed(()=>u.value.scrollHeight>u.value.clientHeight),w=e.computed(()=>l?u.value.clientHeight-U.value:u.value.clientHeight-E.value.clientHeight),L=e.computed(()=>u.value.scrollHeight-u.value.clientHeight),k=e.computed(()=>Math.max(u.value.clientHeight/u.value.scrollHeight,.05)),U=e.computed(()=>k.value>i?0:k.value*u.value.clientHeight),x=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${M.value}px,0)`,height:l?`${U.value}px`:void 0}));function y(b){_(),m.value=b.clientY-o.value.getBoundingClientRect().top||1,f=getComputedStyle(n.value).scrollBehavior,f==="smooth"&&(n.value.style.scrollBehavior="unset")}function A(){n.value.style.scrollBehavior=f,m.value=0,g()}function _(){d.value=!1}function V(){N.value||(d.value=!0)}function Q(b){if(!N.value)return;let $=b.clientY-u.value.top-m.value;$<0?M.value=0:$>=w.value?M.value=w.value:M.value=$,n.value.scrollTo({top:M.value/w.value*L.value})}function R(){N.value||K()}function K(){cancelAnimationFrame(a),a=requestAnimationFrame(W)}function W(){n.value&&(c.value=s.scrollTop?.value??n.value.scrollTop,M.value=c.value/L.value*w.value)}function Y(b){let $="addEventListener";b==="add"?$="addEventListener":$="removeEventListener",o.value?.[$]("pointerdown",y,{passive:!0}),window[$]("pointermove",Q,{passive:!0}),window[$]("pointerup",A,{passive:!0})}const S=new MutationObserver(b=>{(r=="classList"||b.map(ae=>ae.oldValue).join().includes("height"))&&j()});function j(){u.value.top=n.value?.getBoundingClientRect().top??0,u.value.scrollHeight=n.value?.scrollHeight??0,u.value.clientHeight=n.value?.clientHeight??0}function B(){_(),setTimeout(()=>{E.value.clientHeight=o.value?.clientHeight??0,V()},150)}function P(){if(n.value&&o.value){n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",R,{passive:!0}),Y("add");const b={};r==="classList"?Object.assign(b,{subtree:!0,childList:!0}):Object.assign(b,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),S.observe(n.value,b),setTimeout(()=>{j()},100),B()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(c,()=>{_(),g()}),{isScrollEnd:d,isDragSlider:N,offsetTop:M,scrollTop:c,scrollable:h,sliderPos:x,init:P,modifySliderEventListener:Y}}const Zt=(t=>(e.pushScopeId("data-v-405c22cf"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Kt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null},setup(t,{expose:n}){const o=t,l=!!e.useSlots().default,s=e.ref(null),i=e.computed(()=>o.containerEl),r=Xt({containerEl:i,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:d,isScrollEnd:g,sliderPos:a}=r,f=e.ref(!1),c=o.autoHide?e.computed(()=>f.value||!g.value):e.computed(()=>d.value),{load:m}=ve(`.hide-scrollbar {
|
|
15
15
|
scrollbar-width: none;
|
|
16
16
|
-ms-overflow-style: none;
|
|
17
17
|
}
|
|
18
18
|
.hide-scrollbar::-webkit-scrollbar {
|
|
19
19
|
display: none;
|
|
20
|
-
}`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{m(),e.nextTick(()=>{r.init()})}),e.onUnmounted(()=>{r.modifySliderEventListener("remove")});function M(){f.value=!0}function u(){f.value=!1}return n({uScrollBarReturn:r}),(E,N)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:s,class:"slider-wrapper",onMouseenter:M,onMouseleave:u,style:e.normalizeStyle(e.unref(a))},[e.renderSlot(E.$slots,"default",{},()=>[Zt],!0)],36),[[e.vShow,e.unref(c)]])]),_:3}))}}),Fn="",Gt=Z(Kt,[["__scopeId","data-v-405c22cf"]]),qt=t=>(e.pushScopeId("data-v-df5da876"),t=t(),e.popScopeId(),t),Jt={class:"pull-refresh"},en={key:0,class:"pull-arrow-circle"},tn={key:0,class:"box-load"},nn={class:"left-load"},on={class:"right-load"},ln=qt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),sn={class:"pull-arrow"},an={key:1},rn=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(t){const n=t,o=.7,l="#2EC1CC",s=e.ref(-999),i=e.ref(1),r=e.ref(0),d=e.ref(.3),g=e.ref(!1),a=e.ref(0),f=e.ref(0),c=e.ref(0),m=e.ref(0),M=e.ref(0),u=e.ref(),E=e.computed(()=>n.scrollTop),N=e.computed(()=>({transition:`${m.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${i.value})`})),h=e.computed(()=>({borderColor:l,transition:m.value,transform:`rotate(${100+r.value}deg)`,opacity:d.value}));e.watch(M,p=>{p===0&&(s.value=-50,d.value=.3)}),e.watch(f,p=>{if(M.value===2)return;const A=Math.pow(p,o);A===0&&(s.value=-50),A<=50&&A>0&&(s.value=A-45,r.value=Math.pow(A,1.5),A>15?g.value=!0:g.value=!1),A>50&&(s.value=5,d.value=1,M.value)});const w=e.ref(0),L=p=>{w.value=p.touches[0].pageY},k=p=>{const A=p.touches[0].pageY-w.value;w.value=p.touches[0].pageY,!n.refreshOff&&(!n?.refresh||M.value!==2&&E.value===0&&(a.value===0&&(a.value=p.touches[0].pageY),c.value=0,x.value.style.transition=`${c.value}ms`,m.value=0,f.value=p.touches[0].pageY-a.value,x.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`,A>0&&p.preventDefault()))},U=()=>{if(n.refreshOff||!n?.refresh||M.value===2)return;a.value=0,c.value=300;const p=Math.pow(f.value,o);x.value.style.transition=`${c.value}ms`,p>50?(M.value=2,f.value=Math.pow(50,1/o),x.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`,m.value=300,n?.refresh&&n?.refresh().then(()=>{u.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{u.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{M.value=0,f.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`,setTimeout(()=>{u.value=void 0},m.value)},600)})):(f.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`)},x=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(x.value=document.querySelector(n.pullRefreshContainer),x.value?.addEventListener("touchstart",L),x.value?.addEventListener("touchmove",k),x.value?.addEventListener("touchend",U))}),(p,A)=>(e.openBlock(),e.createElementBlock("div",Jt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(N))},[u.value?(e.openBlock(),e.createElementBlock("div",an,e.toDisplayString(u.value),1)):(e.openBlock(),e.createElementBlock("div",en,[M.value==2?(e.openBlock(),e.createElementBlock("div",tn,[e.createElementVNode("div",nn,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",on,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),ln])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(h))},[e.createElementVNode("div",sn,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:g.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Hn="",Ve=Z(rn,[["__scopeId","data-v-df5da876"]]),cn=["data-key"],un={inheritAttrs:!1},dn=e.defineComponent({...un,__name:"VirtualList",props:{data:null,getItemKey:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:n,emit:o}){const l=t,s=Be(e.toRef(l,"data"),{itemHeight:M=>l.itemHeight(l.data[M]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:i,containerProps:r,wrapperProps:d,innerProps:g,getItemHeightData:a,scrollTop:f}=s;n({vListReturn:s});const c="virtualListWrapper"+new Date().getTime();function m(M,u){return l.getItemKey?l.getItemKey(M,u):`${u}`}return(M,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Ve,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(f),pullRefreshContainer:"#"+c},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:c},[e.createElementVNode("div",e.mergeProps({onScrollPassive:u[0]||(u[0]=(...E)=>e.unref(r).onScroll&&e.unref(r).onScroll(...E)),ref:e.unref(r).ref,class:"virtualList"},M.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(d))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(g))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),({data:E,index:N})=>(e.openBlock(),e.createElementBlock("div",{key:m(E,N),"data-key":m(E,N),style:e.normalizeStyle({height:`${e.unref(a)(N).height}px`,display:"flex"})},[e.renderSlot(M.$slots,"default",{data:E,index:N},void 0,!0)],12,cn))),128))],16)],16)],16)])],64))}}),Vn="",fn=Z(dn,[["__scopeId","data-v-dfe60586"]]),Ce=t=>(e.pushScopeId("data-v-33519afd"),t=t(),e.popScopeId(),t),Mn={style:{position:"absolute"}},gn=Ce(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),mn=["width","height"],hn=[Ce(()=>e.createElementVNode("title",null,"logo",-1)),Ce(()=>e.createElementVNode("g",{id:"group-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M260,0 L260,260 L0,260 L0,0 L260,0 Z M173.523673,59.478426 L168.543315,62.4752911 C160.9116,67.0675753 153.089651,71.6349169 145.95806,75.5800674 C142.130471,77.697465 141.695584,77.8197038 137.842227,77.8197038 L123.620155,77.8194132 C120.16747,77.8127705 119.807362,77.673506 116.200006,75.5626777 L115.86045,75.3641139 C113.295911,73.8653877 110.281688,72.1255413 103.60737,68.2932221 C100.032855,66.2486474 96.3694634,64.1645054 92.8123362,62.1486494 L88.1098826,59.4837265 L86.4238232,64.6191026 C83.7525911,72.7551036 81.4062856,80.7653112 79.9222326,87.4417622 C78.9474243,91.8460343 78.2380884,93.2327734 74.2195073,98.9752733 C73.3694777,100.207223 72.630007,101.343155 72.0710109,102.283257 C67.5201215,110.313953 65.2975905,119.339776 65.6004928,128.457001 C66.1750084,143.318086 73.5375842,157.955758 85.6992798,168.473706 C96.9509724,178.204645 111.5737,183.826593 127.858154,184.209647 L130.088901,184.229303 C130.3376,186.684365 130.531293,189.982467 130.67329,193.770543 L130.951876,201.202421 L137.351863,197.414204 C154.766094,187.106546 169.345402,176.172255 180.160428,163.526119 C190.679421,151.226139 196.179795,138.745301 195.345608,125.762609 C194.727393,116.39373 192.289395,107.848059 187.082918,99.046007 C186.275378,97.7498121 185.738167,97.0056347 184.495395,95.37077 C181.975467,92.0558065 181.159964,90.5424149 180.493634,87.4039653 C178.713605,78.9218624 176.863265,71.4211865 175.088993,65.0761883 L173.523673,59.478426 Z M93.177,72.537 L93.8226224,72.9040486 C95.6240552,73.9292933 97.4266638,74.9575498 99.2051531,75.9748184 C106.15023,79.9626119 109.111289,81.6727026 111.728598,83.2042091 C116.752992,86.1442112 118.538634,86.6733184 123.964152,86.6733184 L137.842227,86.6733184 C143.264867,86.6733184 145.156143,86.1417146 150.243765,83.3272749 L153.915953,81.276117 C157.635687,79.179445 161.486156,76.9543599 165.360239,74.6740288 L168.062636,73.0710869 L168.527808,74.8705095 C169.630114,79.2468106 170.742831,84.0476913 171.830914,89.2325336 C172.820403,93.8931438 174.207097,96.4665356 177.447051,100.728693 C178.530829,102.154402 178.952253,102.738183 179.517404,103.643654 C183.925243,111.098001 185.980436,118.301862 186.51071,126.337939 C187.173867,136.658947 182.587388,147.066077 173.431821,157.771787 L171.503004,159.959402 C163.609627,168.649028 153.591728,176.617571 141.90907,184.187495 L139.123121,185.960576 L139.113767,185.819152 C139.047016,184.932364 138.975009,184.102769 138.897435,183.336992 C138.769034,182.069465 138.589718,180.629122 138.367155,179.053334 L137.795381,175.005053 L133.714496,175.253822 C132.500079,175.327852 131.274186,175.368647 130.037423,175.375838 C114.999567,175.463276 101.629066,170.545082 91.4908024,161.777083 C81.1421175,152.827103 74.9249947,140.466728 74.4483613,128.138982 C74.2004611,120.675327 76.0261036,113.26129 79.7275986,106.727863 C80.126032,106.059698 80.7615655,105.083428 81.4902403,104.02721 C86.0997527,97.4404488 87.2937074,95.1062887 88.5657754,89.358959 C89.6596645,84.4377825 91.2792852,78.6447463 93.1627518,72.6043699 L93.177,72.537 Z",id:"path-1",fill:"#FFF"})],-1))],pn=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const n=t;e.useCssVars(l=>({"312487ac":o}));const o=`${n.duration}ms`;return(l,s)=>(e.openBlock(),e.createElementBlock("div",Mn,[gn,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:t.width,height:t.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},hn,8,mn))]))}}),Zn="",yn=Z(pn,[["__scopeId","data-v-33519afd"]]),Dn=["image/avif","image/bmp","image/jpg","image/jpeg","image/gif","image/heic","image/heif","image/png","image/tga","image/webp","image/wbmp","image/svg+xml"],Tn=["image/bmp","image/jpg","image/jpeg","image/gif","image/heic","image/heif","image/png","image/webp","image/svg+xml"];function We(t,n){const o=e.ref(t?.value),l=e.computed(()=>o.value?.startsWith("/_lzc")),s=e.ref(!1),i=e.computed(()=>s.value),r=e.computed(()=>{const g=n?.value;return!g||g.startsWith("video/")?!0:g.startsWith("image/")?l.value?Dn.includes(g):Tn.includes(g):!1});t&&e.watch(t,g=>{o.value=g,s.value=!1});function d(){s.value=!0}return{imgSrc:o,isError:s,hasError:i,isSupport:r,handleError:d}}function Xe(){return{vImageCancel:{beforeUnmount(n){!n||(n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const Nn=t=>(e.pushScopeId("data-v-19f4eb61"),t=t(),e.popScopeId(),t),wn=["title"],En=Nn(()=>e.createElementVNode("span",{class:"tip"},"\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301",-1)),vn=["src"],In=["src"],zn=["title"],An={inheritAttrs:!1},jn=e.defineComponent({...An,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean},autoRemoveThumbnail:{type:Boolean}},emits:["load"],setup(t,{emit:n}){const o=t,l=e.ref(),s=e.ref(),i=e.ref(!1),r=e.ref(!1),d=e.ref(!1),{src:g,mime:a}=e.toRefs(o),{imgSrc:f,isSupport:c,hasError:m,handleError:M}=We(g,a),{vImageCancel:u}=Xe(),{LoadingComp:E}=Ae({component:Ye,delay:300}),N=Ke(()=>d.value&&o.autoRemoveThumbnail?!1:o.thumbnail&&!d.value);function h(){r.value=!0}function w(){r.value&&(d.value=!0)}async function L(){h(),l.value?.classList.remove("src-class"),await je(10),setTimeout(()=>k(),350),l.value?.addEventListener("transitionend",k),l.value?.classList.add("showing")}function k(p){p&&p.propertyName!="opacity"||(l.value?.removeEventListener("transitionend",k),l.value?.classList.remove("showing"),d.value||l.value&&n("load",l.value),w())}async function U(p){p?L():s.value&&n("load",s.value),i.value=!0}function x(p){p?M():h(),i.value=!0}return(p,A)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(E),{key:0})),e.unref(c)?e.unref(m)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},p.$attrs,{title:e.unref(f),class:"tip-wrap"}),[e.createVNode(se,{class:"bad-image",name:"\u56FE\u7247\u635F\u574F"})],16,zn)):e.renderSlot(p.$slots,"default",{key:2,src:e.unref(f),onLoad:U,onError:x},()=>[e.unref(N)?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},p.$attrs,{ref_key:"thumbnailRef",ref:s,onLoad:A[0]||(A[0]=_=>U()),onError:A[1]||(A[1]=_=>x()),src:t.thumbnail}),null,16,vn)),[[e.unref(u)]]):e.createCommentVNode("",!0),t.isShowSrc||r.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},p.$attrs,{ref_key:"srcRef",ref:l,class:"src-class",onLoad:A[2]||(A[2]=_=>U(!0)),onError:A[3]||(A[3]=_=>x(!0)),src:e.unref(f)}),null,16,In)),[[e.unref(u)],[e.vShow,r.value]]):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},p.$attrs,{title:e.unref(f),class:"tip-wrap"}),[e.createVNode(se,{class:"no-support-icon",name:"\u4E0D\u652F\u6301\u663E\u793A"}),En],16,wn))],64))}}),Kn="",Ln=Z(jn,[["__scopeId","data-v-19f4eb61"]]),Cn=["title"],Sn=["src"],xn=["title"],_n=e.defineComponent({__name:"Thumbnail",props:{src:null,mime:null},setup(t){const n=t,o=e.ref(!1),{src:l,mime:s}=e.toRefs(n),{imgSrc:i,hasError:r,isSupport:d,handleError:g}=We(l,s),{vImageCancel:a}=Xe();return(f,c)=>e.unref(d)?e.unref(r)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(i),class:"icon-wrap"},[e.createVNode(se,{class:"icon",name:"\u56FE\u7247\u635F\u574F"})],8,xn)):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,fetchpriority:"high",onLoad:c[0]||(c[0]=m=>o.value=!0),onError:c[1]||(c[1]=(...m)=>e.unref(g)&&e.unref(g)(...m)),src:e.unref(i)},null,40,Sn)),[[e.unref(a)],[e.vShow,o.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(i),class:"icon-wrap"},[e.createVNode(se,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"})],8,Cn))}}),Gn="",On=Z(_n,[["__scopeId","data-v-5a7af152"]]);I.DefaultLoading=Ye,I.Image=Ln,I.LONG_PRESS_START_TIME=$e,I.Loading=yn,I.LoadingToast=Ue,I.PageLoading=At,I.PullRefresh=Ve,I.ScrollBar=Gt,I.SvgIcon=se,I.TAP_OFFSET=Le,I.Thumbnail=On,I.ToastCreator=Vt,I.VirtualList=fn,I.allSelectedKey=de,I.clamp=pe,I.closeDialogKey=Qe,I.dialogController=Dt,I.getCenter=Fe,I.getTransform=ye,I.isAllSelectedKey=me,I.isSelectedKey=ue,I.selectAllKey=Me,I.selectKey=fe,I.selectedCountKey=he,I.toggleAllKey=re,I.toggleKey=ce,I.unselectAllKey=le,I.unselectKey=ge,I.useDelayAsync=kt,I.useDelayLoad=Tt,I.useDelayLoadComp=Ae,I.useDownDrag=$t,I.useDragSelect=ze,I.useDragSelectByMobile=mt,I.useDragSelectByPc=gt,I.useScaleImage=Rt,I.useSelectable=ft,I.useSelectableByBase=Mt,I.useSelectableInjectors=dt,I.useVirtualList=Be,I.vDebounceClick=Ze,I.vSingleClick=xe,Object.defineProperties(I,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
20
|
+
}`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{m(),e.nextTick(()=>{r.init()})}),e.onUnmounted(()=>{r.modifySliderEventListener("remove")});function M(){f.value=!0}function u(){f.value=!1}return n({uScrollBarReturn:r}),(E,N)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:s,class:"slider-wrapper",onMouseenter:M,onMouseleave:u,style:e.normalizeStyle(e.unref(a))},[e.renderSlot(E.$slots,"default",{},()=>[Zt],!0)],36),[[e.vShow,e.unref(c)]])]),_:3}))}}),Fn="",Gt=Z(Kt,[["__scopeId","data-v-405c22cf"]]),qt=t=>(e.pushScopeId("data-v-df5da876"),t=t(),e.popScopeId(),t),Jt={class:"pull-refresh"},en={key:0,class:"pull-arrow-circle"},tn={key:0,class:"box-load"},nn={class:"left-load"},on={class:"right-load"},ln=qt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),sn={class:"pull-arrow"},an={key:1},rn=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(t){const n=t,o=.7,l="#2EC1CC",s=e.ref(-999),i=e.ref(1),r=e.ref(0),d=e.ref(.3),g=e.ref(!1),a=e.ref(0),f=e.ref(0),c=e.ref(0),m=e.ref(0),M=e.ref(0),u=e.ref(),E=e.computed(()=>n.scrollTop),N=e.computed(()=>({transition:`${m.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${i.value})`})),h=e.computed(()=>({borderColor:l,transition:m.value,transform:`rotate(${100+r.value}deg)`,opacity:d.value}));e.watch(M,y=>{y===0&&(s.value=-50,d.value=.3)}),e.watch(f,y=>{if(M.value===2)return;const A=Math.pow(y,o);A===0&&(s.value=-50),A<=50&&A>0&&(s.value=A-45,r.value=Math.pow(A,1.5),A>15?g.value=!0:g.value=!1),A>50&&(s.value=5,d.value=1,M.value)});const w=e.ref(0),L=y=>{w.value=y.touches[0].pageY},k=y=>{const A=y.touches[0].pageY-w.value;w.value=y.touches[0].pageY,!n.refreshOff&&(!n?.refresh||M.value!==2&&E.value===0&&(a.value===0&&(a.value=y.touches[0].pageY),c.value=0,x.value.style.transition=`${c.value}ms`,m.value=0,f.value=y.touches[0].pageY-a.value,x.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`,A>0&&y.preventDefault()))},U=()=>{if(n.refreshOff||!n?.refresh||M.value===2)return;a.value=0,c.value=300;const y=Math.pow(f.value,o);x.value.style.transition=`${c.value}ms`,y>50?(M.value=2,f.value=Math.pow(50,1/o),x.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`,m.value=300,n?.refresh&&n?.refresh().then(()=>{u.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{u.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{M.value=0,f.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`,setTimeout(()=>{u.value=void 0},m.value)},600)})):(f.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`)},x=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(x.value=document.querySelector(n.pullRefreshContainer),x.value?.addEventListener("touchstart",L),x.value?.addEventListener("touchmove",k),x.value?.addEventListener("touchend",U))}),(y,A)=>(e.openBlock(),e.createElementBlock("div",Jt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(N))},[u.value?(e.openBlock(),e.createElementBlock("div",an,e.toDisplayString(u.value),1)):(e.openBlock(),e.createElementBlock("div",en,[M.value==2?(e.openBlock(),e.createElementBlock("div",tn,[e.createElementVNode("div",nn,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",on,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),ln])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(h))},[e.createElementVNode("div",sn,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:g.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Hn="",Ve=Z(rn,[["__scopeId","data-v-df5da876"]]),cn=["data-key"],un={inheritAttrs:!1},dn=e.defineComponent({...un,__name:"VirtualList",props:{data:null,getItemKey:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:n,emit:o}){const l=t,s=Be(e.toRef(l,"data"),{itemHeight:M=>l.itemHeight(l.data[M]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:i,containerProps:r,wrapperProps:d,innerProps:g,getItemHeightData:a,scrollTop:f}=s;n({vListReturn:s});const c="virtualListWrapper"+new Date().getTime();function m(M,u){return l.getItemKey?l.getItemKey(M,u):`${u}`}return(M,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Ve,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(f),pullRefreshContainer:"#"+c},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:c},[e.createElementVNode("div",e.mergeProps({onScrollPassive:u[0]||(u[0]=(...E)=>e.unref(r).onScroll&&e.unref(r).onScroll(...E)),ref:e.unref(r).ref,class:"virtualList"},M.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(d))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(g))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),({data:E,index:N})=>(e.openBlock(),e.createElementBlock("div",{key:m(E,N),"data-key":m(E,N),style:e.normalizeStyle({height:`${e.unref(a)(N).height}px`,display:"flex"})},[e.renderSlot(M.$slots,"default",{data:E,index:N},void 0,!0)],12,cn))),128))],16)],16)],16)])],64))}}),Vn="",fn=Z(dn,[["__scopeId","data-v-dfe60586"]]),Ce=t=>(e.pushScopeId("data-v-33519afd"),t=t(),e.popScopeId(),t),Mn={style:{position:"absolute"}},gn=Ce(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),mn=["width","height"],hn=[Ce(()=>e.createElementVNode("title",null,"logo",-1)),Ce(()=>e.createElementVNode("g",{id:"group-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M260,0 L260,260 L0,260 L0,0 L260,0 Z M173.523673,59.478426 L168.543315,62.4752911 C160.9116,67.0675753 153.089651,71.6349169 145.95806,75.5800674 C142.130471,77.697465 141.695584,77.8197038 137.842227,77.8197038 L123.620155,77.8194132 C120.16747,77.8127705 119.807362,77.673506 116.200006,75.5626777 L115.86045,75.3641139 C113.295911,73.8653877 110.281688,72.1255413 103.60737,68.2932221 C100.032855,66.2486474 96.3694634,64.1645054 92.8123362,62.1486494 L88.1098826,59.4837265 L86.4238232,64.6191026 C83.7525911,72.7551036 81.4062856,80.7653112 79.9222326,87.4417622 C78.9474243,91.8460343 78.2380884,93.2327734 74.2195073,98.9752733 C73.3694777,100.207223 72.630007,101.343155 72.0710109,102.283257 C67.5201215,110.313953 65.2975905,119.339776 65.6004928,128.457001 C66.1750084,143.318086 73.5375842,157.955758 85.6992798,168.473706 C96.9509724,178.204645 111.5737,183.826593 127.858154,184.209647 L130.088901,184.229303 C130.3376,186.684365 130.531293,189.982467 130.67329,193.770543 L130.951876,201.202421 L137.351863,197.414204 C154.766094,187.106546 169.345402,176.172255 180.160428,163.526119 C190.679421,151.226139 196.179795,138.745301 195.345608,125.762609 C194.727393,116.39373 192.289395,107.848059 187.082918,99.046007 C186.275378,97.7498121 185.738167,97.0056347 184.495395,95.37077 C181.975467,92.0558065 181.159964,90.5424149 180.493634,87.4039653 C178.713605,78.9218624 176.863265,71.4211865 175.088993,65.0761883 L173.523673,59.478426 Z M93.177,72.537 L93.8226224,72.9040486 C95.6240552,73.9292933 97.4266638,74.9575498 99.2051531,75.9748184 C106.15023,79.9626119 109.111289,81.6727026 111.728598,83.2042091 C116.752992,86.1442112 118.538634,86.6733184 123.964152,86.6733184 L137.842227,86.6733184 C143.264867,86.6733184 145.156143,86.1417146 150.243765,83.3272749 L153.915953,81.276117 C157.635687,79.179445 161.486156,76.9543599 165.360239,74.6740288 L168.062636,73.0710869 L168.527808,74.8705095 C169.630114,79.2468106 170.742831,84.0476913 171.830914,89.2325336 C172.820403,93.8931438 174.207097,96.4665356 177.447051,100.728693 C178.530829,102.154402 178.952253,102.738183 179.517404,103.643654 C183.925243,111.098001 185.980436,118.301862 186.51071,126.337939 C187.173867,136.658947 182.587388,147.066077 173.431821,157.771787 L171.503004,159.959402 C163.609627,168.649028 153.591728,176.617571 141.90907,184.187495 L139.123121,185.960576 L139.113767,185.819152 C139.047016,184.932364 138.975009,184.102769 138.897435,183.336992 C138.769034,182.069465 138.589718,180.629122 138.367155,179.053334 L137.795381,175.005053 L133.714496,175.253822 C132.500079,175.327852 131.274186,175.368647 130.037423,175.375838 C114.999567,175.463276 101.629066,170.545082 91.4908024,161.777083 C81.1421175,152.827103 74.9249947,140.466728 74.4483613,128.138982 C74.2004611,120.675327 76.0261036,113.26129 79.7275986,106.727863 C80.126032,106.059698 80.7615655,105.083428 81.4902403,104.02721 C86.0997527,97.4404488 87.2937074,95.1062887 88.5657754,89.358959 C89.6596645,84.4377825 91.2792852,78.6447463 93.1627518,72.6043699 L93.177,72.537 Z",id:"path-1",fill:"#FFF"})],-1))],pn=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const n=t;e.useCssVars(l=>({"312487ac":o}));const o=`${n.duration}ms`;return(l,s)=>(e.openBlock(),e.createElementBlock("div",Mn,[gn,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:t.width,height:t.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},hn,8,mn))]))}}),Zn="",yn=Z(pn,[["__scopeId","data-v-33519afd"]]),Dn=["image/avif","image/bmp","image/jpg","image/jpeg","image/gif","image/heic","image/heif","image/png","image/tga","image/webp","image/wbmp","image/svg+xml"],Tn=["image/bmp","image/jpg","image/jpeg","image/gif","image/heic","image/heif","image/png","image/webp","image/svg+xml"];function We(t,n){const o=e.ref(t?.value),l=e.computed(()=>o.value?.startsWith("/_lzc")),s=e.ref(!1),i=e.computed(()=>s.value),r=e.computed(()=>{const g=n?.value;return!g||g.startsWith("video/")?!0:g.startsWith("image/")?l.value?Dn.includes(g):Tn.includes(g):!1});t&&e.watch(t,g=>{o.value=g,s.value=!1});function d(){s.value=!0}return{imgSrc:o,isError:s,hasError:i,isSupport:r,handleError:d}}function Xe(){return{vImageCancel:{beforeUnmount(n){!n||(n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const Nn=t=>(e.pushScopeId("data-v-dea30fb7"),t=t(),e.popScopeId(),t),wn=["title"],En=Nn(()=>e.createElementVNode("span",{class:"tip"},"\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301",-1)),vn=["src"],In=["src"],zn=["title"],An={inheritAttrs:!1},jn=e.defineComponent({...An,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean},autoRemoveThumbnail:{type:Boolean}},emits:["load"],setup(t,{emit:n}){const o=t,l=e.ref(),s=e.ref(),i=e.ref(!1),r=e.ref(!1),d=e.ref(!1),{src:g,mime:a}=e.toRefs(o),{imgSrc:f,isSupport:c,hasError:m,handleError:M}=We(g,a),{vImageCancel:u}=Xe(),{LoadingComp:E}=Ae({component:Ye,delay:300}),N=Ke(()=>d.value&&o.autoRemoveThumbnail?!1:o.thumbnail&&!d.value);function h(){r.value=!0}function w(){r.value&&(d.value=!0)}async function L(){h(),l.value?.addEventListener("animationend",k),l.value?.classList.add("showing"),await je(10),l.value?.classList.remove("src-class")}function k(){l.value?.removeEventListener("animationend",k),l.value?.classList.remove("showing"),l.value&&n("load",l.value),w()}async function U(y){y?L():s.value&&n("load",s.value),i.value=!0}function x(y){y?M():h(),i.value=!0}return(y,A)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(E),{key:0})),e.unref(c)?e.unref(m)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},y.$attrs,{title:e.unref(f),class:"tip-wrap"}),[e.createVNode(se,{class:"bad-image",name:"\u56FE\u7247\u635F\u574F"})],16,zn)):e.renderSlot(y.$slots,"default",{key:2,src:e.unref(f),onLoad:U,onError:x},()=>[e.unref(N)?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},y.$attrs,{ref_key:"thumbnailRef",ref:s,onLoad:A[0]||(A[0]=_=>U()),onError:A[1]||(A[1]=_=>x()),src:t.thumbnail}),null,16,vn)),[[e.unref(u)]]):e.createCommentVNode("",!0),t.isShowSrc||r.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},y.$attrs,{ref_key:"srcRef",ref:l,class:"src-class",onLoad:A[2]||(A[2]=_=>U(!0)),onError:A[3]||(A[3]=_=>x(!0)),src:e.unref(f)}),null,16,In)),[[e.unref(u)],[e.vShow,r.value]]):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},y.$attrs,{title:e.unref(f),class:"tip-wrap"}),[e.createVNode(se,{class:"no-support-icon",name:"\u4E0D\u652F\u6301\u663E\u793A"}),En],16,wn))],64))}}),Kn="",Ln=Z(jn,[["__scopeId","data-v-dea30fb7"]]),Cn=["title"],Sn=["src"],xn=["title"],_n=e.defineComponent({__name:"Thumbnail",props:{src:null,mime:null},setup(t){const n=t,o=e.ref(!1),{src:l,mime:s}=e.toRefs(n),{imgSrc:i,hasError:r,isSupport:d,handleError:g}=We(l,s),{vImageCancel:a}=Xe();return(f,c)=>e.unref(d)?e.unref(r)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(i),class:"icon-wrap"},[e.createVNode(se,{class:"icon",name:"\u56FE\u7247\u635F\u574F"})],8,xn)):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,fetchpriority:"high",onLoad:c[0]||(c[0]=m=>o.value=!0),onError:c[1]||(c[1]=(...m)=>e.unref(g)&&e.unref(g)(...m)),src:e.unref(i)},null,40,Sn)),[[e.unref(a)],[e.vShow,o.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(i),class:"icon-wrap"},[e.createVNode(se,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"})],8,Cn))}}),Gn="",On=Z(_n,[["__scopeId","data-v-5a7af152"]]);I.DefaultLoading=Ye,I.Image=Ln,I.LONG_PRESS_START_TIME=$e,I.Loading=yn,I.LoadingToast=Ue,I.PageLoading=At,I.PullRefresh=Ve,I.ScrollBar=Gt,I.SvgIcon=se,I.TAP_OFFSET=Le,I.Thumbnail=On,I.ToastCreator=Vt,I.VirtualList=fn,I.allSelectedKey=de,I.clamp=pe,I.closeDialogKey=Qe,I.dialogController=Dt,I.getCenter=Fe,I.getTransform=ye,I.isAllSelectedKey=me,I.isSelectedKey=ue,I.selectAllKey=Me,I.selectKey=fe,I.selectedCountKey=he,I.toggleAllKey=re,I.toggleKey=ce,I.unselectAllKey=le,I.unselectKey=ge,I.useDelayAsync=kt,I.useDelayLoad=Tt,I.useDelayLoadComp=Ae,I.useDownDrag=$t,I.useDragSelect=ze,I.useDragSelectByMobile=mt,I.useDragSelectByPc=gt,I.useScaleImage=Rt,I.useSelectable=ft,I.useSelectableByBase=Mt,I.useSelectableInjectors=dt,I.useVirtualList=Be,I.vDebounceClick=Ze,I.vSingleClick=xe,Object.defineProperties(I,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.lzc-modal[data-v-14584295]{position:absolute;inset:0;display:flex;z-index:999;background-color:#1c191780}.lzc-dialog[data-v-14584295]{margin:auto;display:flex;flex-direction:column}.ldio-mm5gwljcryb[data-v-92a1804d]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-92a1804d]{box-sizing:content-box;position:absolute;top:50%;left:50%;width:var(--4e4a9ce4);height:var(--e56fe5c2);border:3px solid #dfdfdf;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-92a1804d .7s linear infinite}@keyframes ldio-mm5gwljcryb-92a1804d{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-92a1804d]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}.loading-wrap[data-v-3c54972f]{display:flex;align-items:center;justify-content:center;width:100%;transform:rotateY(180deg)}.loading-circle[data-v-3c54972f]{opacity:0;animation:loading-spin-3c54972f .8s var(--b1cf73a8) linear infinite}@keyframes loading-spin-3c54972f{0%{opacity:1}to{opacity:1;transform:rotate(-360deg)}}.lzc-loading-toast[data-v-0947d1e3]{display:flex;position:fixed;top:0;width:100%;height:100%;z-index:2147483647;box-sizing:border-box}.lzc-loading-toast-wrap[data-v-0947d1e3]{margin:auto;text-align:center;box-sizing:border-box}.lzc-loading-toast-content[data-v-0947d1e3]{display:flex;flex-direction:column;border-radius:8px;position:relative;pointer-events:auto;background-color:#000c;box-sizing:border-box}.lzc-loading-toast-content[data-v-0947d1e3]>:not([hidden])~:not([hidden]){margin-top:4px;margin-bottom:0}.lzc-loading-toast-close[data-v-0947d1e3]{height:10px;width:10px;position:absolute;right:12px;top:12px;cursor:pointer;box-sizing:border-box}.lzc-loading-toast-icon[data-v-0947d1e3]{width:35px;height:35px;margin:0 auto;border-radius:9999px;animation:lzc-spin-0947d1e3 1s linear infinite;box-sizing:border-box}.lzc-loading-toast-message[data-v-0947d1e3]{display:flex;flex-wrap:wrap;font-size:16px;color:#fff;margin-left:auto;margin-right:auto;box-sizing:border-box;white-space:pre-wrap;line-height:26px}@keyframes lzc-spin-0947d1e3{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes lzc-fade-in{0%{opacity:0}to{opacity:1}}.lzc-animate-fade-in{animation:lzc-fade-in 1s linear 1}.lzc-animate-duration-300{animation-duration:.3s}@keyframes lzc-fade-out{0%{opacity:1}to{opacity:0}}.lzc-animate-fade-out{animation:lzc-fade-out 1s linear 1}@keyframes slide-25d39b90{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-25d39b90]{animation:slide-25d39b90 .3s linear}.v-leave-active[data-v-405c22cf]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-405c22cf]{opacity:0}.slider-wrapper[data-v-405c22cf]{position:absolute;right:0;touch-action:none}.default-slider[data-v-405c22cf]{width:6px;height:100%;background-color:#0003;border-radius:3px;margin-right:3px}.pull-refresh[data-v-df5da876]{position:relative}.pull-refresh-box[data-v-df5da876]{position:absolute;display:flex;justify-content:center;width:100%;font-size:14px;color:#85898b99;text-align:center;z-index:500}.pull-arrow-circle[data-v-df5da876]{position:relative;width:30px;height:30px;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.box-load[data-v-df5da876]{position:relative;width:18px;height:18px;border-radius:50%;overflow:hidden;animation:boxs-df5da876 3s infinite linear forwards}@keyframes boxs-df5da876{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.left-load[data-v-df5da876]{position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.left-circle[data-v-df5da876]{position:absolute;width:9px;height:18px;border-radius:18px 0 0 18px;transform:rotate(-180deg);transform-origin:9px 9px;animation:pr1A-df5da876 3s infinite linear forwards}@keyframes pr1A-df5da876{0%{transform:rotate(-180deg)}25%{transform:rotate(-180deg)}50%{transform:rotate(0)}75%{transform:rotate(0)}to{transform:rotate(180deg)}}.right-load[data-v-df5da876]{left:9px;position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.right-circle[data-v-df5da876]{position:absolute;width:9px;height:18px;border-radius:0 18px 18px 0;transform:rotate(-180deg);transform-origin:0px 9px;animation:pr2A-df5da876 3s infinite linear forwards}@keyframes pr2A-df5da876{0%{transform:rotate(-180deg)}25%{transform:rotate(0)}50%{transform:rotate(0)}75%{transform:rotate(180deg)}to{transform:rotate(180deg)}}.among-load[data-v-df5da876]{top:2px;left:2px;width:14px;height:14px;border-radius:50%;position:absolute;background:#fff;z-index:5;overflow:hidden}.pull-circle-line[data-v-df5da876]{position:relative;width:15px;height:15px;border-radius:50%;background-color:#fff;box-sizing:border-box;border-width:2px;border-style:solid;display:flex;align-items:center;justify-content:center}.pull-arrow[data-v-df5da876]{position:absolute;left:-3px;transform:rotate(120deg);background-color:#fff;width:4px;height:6px}.arrows[data-v-df5da876]{width:0;height:0;position:absolute;right:-4px;bottom:4px;transform:rotate(-30deg);border-bottom-width:6px;border-bottom-style:solid;border-right:6px solid transparent;transition:.5s;opacity:0}.opacity[data-v-df5da876]{opacity:1}.left-item[data-v-df5da876]{text-align:center;height:100px;line-height:100px;color:#333}.left-item-active[data-v-df5da876]{color:#e93b3d}.virtualList[data-v-dfe60586]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-dfe60586]{width:100%;height:100%;position:relative}@keyframes loading-rotate-33519afd{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-33519afd]{width:100%;height:100%;border-radius:100%;background:conic-gradient(from .25turn at 50% 50%,rgba(255,255,255,0),240deg,#2ec1cc);position:absolute;top:0;animation:loading-rotate-33519afd var(--312487ac) linear infinite}.v-enter-active[data-v-
|
|
1
|
+
.lzc-modal[data-v-14584295]{position:absolute;inset:0;display:flex;z-index:999;background-color:#1c191780}.lzc-dialog[data-v-14584295]{margin:auto;display:flex;flex-direction:column}.ldio-mm5gwljcryb[data-v-92a1804d]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-92a1804d]{box-sizing:content-box;position:absolute;top:50%;left:50%;width:var(--4e4a9ce4);height:var(--e56fe5c2);border:3px solid #dfdfdf;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-92a1804d .7s linear infinite}@keyframes ldio-mm5gwljcryb-92a1804d{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-92a1804d]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}.loading-wrap[data-v-3c54972f]{display:flex;align-items:center;justify-content:center;width:100%;transform:rotateY(180deg)}.loading-circle[data-v-3c54972f]{opacity:0;animation:loading-spin-3c54972f .8s var(--b1cf73a8) linear infinite}@keyframes loading-spin-3c54972f{0%{opacity:1}to{opacity:1;transform:rotate(-360deg)}}.lzc-loading-toast[data-v-0947d1e3]{display:flex;position:fixed;top:0;width:100%;height:100%;z-index:2147483647;box-sizing:border-box}.lzc-loading-toast-wrap[data-v-0947d1e3]{margin:auto;text-align:center;box-sizing:border-box}.lzc-loading-toast-content[data-v-0947d1e3]{display:flex;flex-direction:column;border-radius:8px;position:relative;pointer-events:auto;background-color:#000c;box-sizing:border-box}.lzc-loading-toast-content[data-v-0947d1e3]>:not([hidden])~:not([hidden]){margin-top:4px;margin-bottom:0}.lzc-loading-toast-close[data-v-0947d1e3]{height:10px;width:10px;position:absolute;right:12px;top:12px;cursor:pointer;box-sizing:border-box}.lzc-loading-toast-icon[data-v-0947d1e3]{width:35px;height:35px;margin:0 auto;border-radius:9999px;animation:lzc-spin-0947d1e3 1s linear infinite;box-sizing:border-box}.lzc-loading-toast-message[data-v-0947d1e3]{display:flex;flex-wrap:wrap;font-size:16px;color:#fff;margin-left:auto;margin-right:auto;box-sizing:border-box;white-space:pre-wrap;line-height:26px}@keyframes lzc-spin-0947d1e3{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes lzc-fade-in{0%{opacity:0}to{opacity:1}}.lzc-animate-fade-in{animation:lzc-fade-in 1s linear 1}.lzc-animate-duration-300{animation-duration:.3s}@keyframes lzc-fade-out{0%{opacity:1}to{opacity:0}}.lzc-animate-fade-out{animation:lzc-fade-out 1s linear 1}@keyframes slide-25d39b90{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-25d39b90]{animation:slide-25d39b90 .3s linear}.v-leave-active[data-v-405c22cf]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-405c22cf]{opacity:0}.slider-wrapper[data-v-405c22cf]{position:absolute;right:0;touch-action:none}.default-slider[data-v-405c22cf]{width:6px;height:100%;background-color:#0003;border-radius:3px;margin-right:3px}.pull-refresh[data-v-df5da876]{position:relative}.pull-refresh-box[data-v-df5da876]{position:absolute;display:flex;justify-content:center;width:100%;font-size:14px;color:#85898b99;text-align:center;z-index:500}.pull-arrow-circle[data-v-df5da876]{position:relative;width:30px;height:30px;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.box-load[data-v-df5da876]{position:relative;width:18px;height:18px;border-radius:50%;overflow:hidden;animation:boxs-df5da876 3s infinite linear forwards}@keyframes boxs-df5da876{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.left-load[data-v-df5da876]{position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.left-circle[data-v-df5da876]{position:absolute;width:9px;height:18px;border-radius:18px 0 0 18px;transform:rotate(-180deg);transform-origin:9px 9px;animation:pr1A-df5da876 3s infinite linear forwards}@keyframes pr1A-df5da876{0%{transform:rotate(-180deg)}25%{transform:rotate(-180deg)}50%{transform:rotate(0)}75%{transform:rotate(0)}to{transform:rotate(180deg)}}.right-load[data-v-df5da876]{left:9px;position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.right-circle[data-v-df5da876]{position:absolute;width:9px;height:18px;border-radius:0 18px 18px 0;transform:rotate(-180deg);transform-origin:0px 9px;animation:pr2A-df5da876 3s infinite linear forwards}@keyframes pr2A-df5da876{0%{transform:rotate(-180deg)}25%{transform:rotate(0)}50%{transform:rotate(0)}75%{transform:rotate(180deg)}to{transform:rotate(180deg)}}.among-load[data-v-df5da876]{top:2px;left:2px;width:14px;height:14px;border-radius:50%;position:absolute;background:#fff;z-index:5;overflow:hidden}.pull-circle-line[data-v-df5da876]{position:relative;width:15px;height:15px;border-radius:50%;background-color:#fff;box-sizing:border-box;border-width:2px;border-style:solid;display:flex;align-items:center;justify-content:center}.pull-arrow[data-v-df5da876]{position:absolute;left:-3px;transform:rotate(120deg);background-color:#fff;width:4px;height:6px}.arrows[data-v-df5da876]{width:0;height:0;position:absolute;right:-4px;bottom:4px;transform:rotate(-30deg);border-bottom-width:6px;border-bottom-style:solid;border-right:6px solid transparent;transition:.5s;opacity:0}.opacity[data-v-df5da876]{opacity:1}.left-item[data-v-df5da876]{text-align:center;height:100px;line-height:100px;color:#333}.left-item-active[data-v-df5da876]{color:#e93b3d}.virtualList[data-v-dfe60586]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-dfe60586]{width:100%;height:100%;position:relative}@keyframes loading-rotate-33519afd{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-33519afd]{width:100%;height:100%;border-radius:100%;background:conic-gradient(from .25turn at 50% 50%,rgba(255,255,255,0),240deg,#2ec1cc);position:absolute;top:0;animation:loading-rotate-33519afd var(--312487ac) linear infinite}.v-enter-active[data-v-dea30fb7],.v-leave-active[data-v-dea30fb7]{transition:opacity .6s ease}.v-enter-from[data-v-dea30fb7],.v-leave-to[data-v-dea30fb7]{opacity:0}.tip[data-v-dea30fb7]{font-size:14px;color:#aeaeae}.tip-wrap[data-v-dea30fb7]{display:flex;flex-direction:column;align-items:center;justify-content:center}.no-support-icon[data-v-dea30fb7]{width:162px;height:134px}.bad-image[data-v-dea30fb7]{width:92px;height:92px}.src-class[data-v-dea30fb7]{width:unset!important;height:unset!important;max-width:none!important;max-height:none!important;transform:scale(0);opacity:.00001}@keyframes fadeIn-dea30fb7{0%{opacity:0}to{opacity:1}}.showing[data-v-dea30fb7]{animation:fadeIn-dea30fb7 .35s linear}img[data-v-dea30fb7]{user-select:none;pointer-events:none}img[data-v-5a7af152]{pointer-events:none}.icon-wrap[data-v-5a7af152]{display:flex;align-items:center;justify-content:center}.icon[data-v-5a7af152]{width:100%;height:100%}
|