k5web/assets/index.37837b88.js
2024-05-12 11:43:06 +08:00

90 lines
25 KiB
JavaScript

import{Q as qe,R as Ir,S as He,J as ze,l as We,T as ie,U as Pr,V as X,W as Lr,m as oe,q as E,X as le,i as Y,N as Z,Y as Xe,Z as xr,F as Mr,$ as Fr,a0 as Dr,a1 as Rr,a2 as jr,a3 as Ye,a4 as Nr,a5 as Br,a6 as Gr,a7 as Kr,s as Ze,h as Je,M as Ur,G as qr,a8 as Hr,C as zr,f as Wr,e as re,_ as R,b as $,a9 as Qe,j,o as ke,c as Xr,H as he,t as Yr,aa as Zr,ab as Jr,r as Qr,ac as kr,w as Vr}from"./tnode.17829577.js";import{d as ue,o as ce,g as en,n as rn,aI as m,c as _,f as H,w as Ve,t as nn,bH as G,bL as pe,r as an,h as tn,b3 as sn}from"./arco.02de294f.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function on(e,r){for(var n=-1,a=r.length,s=e.length;++n<a;)e[s+n]=r[n];return e}var er=on;function ln(e,r){for(var n=-1,a=e==null?0:e.length,s=0,t=[];++n<a;){var i=e[n];r(i,n,e)&&(t[s++]=i)}return t}var un=ln;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var cn=Fr,fn=Dr,vn=Rr;function dn(e){return vn(e)?cn(e):fn(e)}var B=dn,gn=er,yn=E;function hn(e,r,n){var a=r(e);return yn(e)?a:gn(a,n(e))}var rr=hn;function pn(){return[]}var nr=pn,bn=un,mn=nr,_n=Object.prototype,$n=_n.propertyIsEnumerable,be=Object.getOwnPropertySymbols,An=be?function(e){return e==null?[]:(e=Object(e),bn(be(e),function(r){return $n.call(e,r)}))}:mn,fe=An,Cn=rr,wn=fe,Tn=B;function Sn(e){return Cn(e,Tn,wn)}var ar=Sn;function On(e,r){for(var n=-1,a=e==null?0:e.length;++n<a&&r(e[n],n,e)!==!1;);return e}var En=On,In=Z,Pn=B;function Ln(e,r){return e&&In(r,Pn(r),e)}var xn=Ln,Mn=Z,Fn=le;function Dn(e,r){return e&&Mn(r,Fn(r),e)}var Rn=Dn,jn=Z,Nn=fe;function Bn(e,r){return jn(e,Nn(e),r)}var Gn=Bn,Kn=er,Un=jr,qn=fe,Hn=nr,zn=Object.getOwnPropertySymbols,Wn=zn?function(e){for(var r=[];e;)Kn(r,qn(e)),e=Un(e);return r}:Hn,tr=Wn,Xn=Z,Yn=tr;function Zn(e,r){return Xn(e,Yn(e),r)}var Jn=Zn,Qn=rr,kn=tr,Vn=le;function ea(e){return Qn(e,Vn,kn)}var ra=ea,na=Object.prototype,aa=na.hasOwnProperty;function ta(e){var r=e.length,n=new e.constructor(r);return r&&typeof e[0]=="string"&&aa.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var sa=ta,ia=Xe;function oa(e,r){var n=r?ia(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var la=oa,ua=/\w*$/;function ca(e){var r=new e.constructor(e.source,ua.exec(e));return r.lastIndex=e.lastIndex,r}var fa=ca,me=ze,_e=me?me.prototype:void 0,$e=_e?_e.valueOf:void 0;function va(e){return $e?Object($e.call(e)):{}}var da=va,ga=Xe,ya=la,ha=fa,pa=da,ba=xr,ma="[object Boolean]",_a="[object Date]",$a="[object Map]",Aa="[object Number]",Ca="[object RegExp]",wa="[object Set]",Ta="[object String]",Sa="[object Symbol]",Oa="[object ArrayBuffer]",Ea="[object DataView]",Ia="[object Float32Array]",Pa="[object Float64Array]",La="[object Int8Array]",xa="[object Int16Array]",Ma="[object Int32Array]",Fa="[object Uint8Array]",Da="[object Uint8ClampedArray]",Ra="[object Uint16Array]",ja="[object Uint32Array]";function Na(e,r,n){var a=e.constructor;switch(r){case Oa:return ga(e);case ma:case _a:return new a(+e);case Ea:return ya(e,n);case Ia:case Pa:case La:case xa:case Ma:case Fa:case Da:case Ra:case ja:return ba(e,n);case $a:return new a;case Aa:case Ta:return new a(e);case Ca:return ha(e);case wa:return new a;case Sa:return pa(e)}}var Ba=Na,Ga=X,Ka=Y,Ua="[object Map]";function qa(e){return Ka(e)&&Ga(e)==Ua}var Ha=qa,za=Ha,Wa=We,Ae=qe.exports,Ce=Ae&&Ae.isMap,Xa=Ce?Wa(Ce):za,Ya=Xa,Za=X,Ja=Y,Qa="[object Set]";function ka(e){return Ja(e)&&Za(e)==Qa}var Va=ka,et=Va,rt=We,we=qe.exports,Te=we&&we.isSet,nt=Te?rt(Te):et,at=nt,tt=ie,st=En,it=Mr,ot=xn,lt=Rn,ut=Ir.exports,ct=Pr,ft=Gn,vt=Jn,dt=ar,gt=ra,yt=X,ht=sa,pt=Ba,bt=Lr,mt=E,_t=He.exports,$t=Ya,At=oe,Ct=at,wt=B,Tt=le,St=1,Ot=2,Et=4,sr="[object Arguments]",It="[object Array]",Pt="[object Boolean]",Lt="[object Date]",xt="[object Error]",ir="[object Function]",Mt="[object GeneratorFunction]",Ft="[object Map]",Dt="[object Number]",or="[object Object]",Rt="[object RegExp]",jt="[object Set]",Nt="[object String]",Bt="[object Symbol]",Gt="[object WeakMap]",Kt="[object ArrayBuffer]",Ut="[object DataView]",qt="[object Float32Array]",Ht="[object Float64Array]",zt="[object Int8Array]",Wt="[object Int16Array]",Xt="[object Int32Array]",Yt="[object Uint8Array]",Zt="[object Uint8ClampedArray]",Jt="[object Uint16Array]",Qt="[object Uint32Array]",d={};d[sr]=d[It]=d[Kt]=d[Ut]=d[Pt]=d[Lt]=d[qt]=d[Ht]=d[zt]=d[Wt]=d[Xt]=d[Ft]=d[Dt]=d[or]=d[Rt]=d[jt]=d[Nt]=d[Bt]=d[Yt]=d[Zt]=d[Jt]=d[Qt]=!0;d[xt]=d[ir]=d[Gt]=!1;function z(e,r,n,a,s,t){var i,o=r&St,l=r&Ot,u=r&Et;if(n&&(i=s?n(e,a,s,t):n(e)),i!==void 0)return i;if(!At(e))return e;var f=mt(e);if(f){if(i=ht(e),!o)return ct(e,i)}else{var c=yt(e),v=c==ir||c==Mt;if(_t(e))return ut(e,o);if(c==or||c==sr||v&&!s){if(i=l||v?{}:bt(e),!o)return l?vt(e,lt(i,e)):ft(e,ot(i,e))}else{if(!d[c])return s?e:{};i=pt(e,c,o)}}t||(t=new tt);var b=t.get(e);if(b)return b;t.set(e,i),Ct(e)?e.forEach(function(g){i.add(z(g,r,n,g,e,t))}):$t(e)&&e.forEach(function(g,y){i.set(y,z(g,r,n,y,e,t))});var h=u?l?gt:dt:l?Tt:wt,p=f?void 0:h(e);return st(p||e,function(g,y){p&&(y=g,g=e[y]),it(i,y,z(g,r,n,y,e,t))}),i}var Al=z;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var kt="__lodash_hash_undefined__";function Vt(e){return this.__data__.set(e,kt),this}var es=Vt;function rs(e){return this.__data__.has(e)}var ns=rs,as=Ye,ts=es,ss=ns;function W(e){var r=-1,n=e==null?0:e.length;for(this.__data__=new as;++r<n;)this.add(e[r])}W.prototype.add=W.prototype.push=ts;W.prototype.has=ss;var is=W;function os(e,r){return e.has(r)}var ls=os;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function us(e){var r=-1,n=Array(e.size);return e.forEach(function(a){n[++r]=a}),n}var cs=us;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function fs(e,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(r(e[n],n,e))return!0;return!1}var vs=fs,ds=is,gs=vs,ys=ls,hs=1,ps=2;function bs(e,r,n,a,s,t){var i=n&hs,o=e.length,l=r.length;if(o!=l&&!(i&&l>o))return!1;var u=t.get(e),f=t.get(r);if(u&&f)return u==r&&f==e;var c=-1,v=!0,b=n&ps?new ds:void 0;for(t.set(e,r),t.set(r,e);++c<o;){var h=e[c],p=r[c];if(a)var g=i?a(p,h,c,r,e,t):a(h,p,c,e,r,t);if(g!==void 0){if(g)continue;v=!1;break}if(b){if(!gs(r,function(y,C){if(!ys(b,C)&&(h===y||s(h,y,n,a,t)))return b.push(C)})){v=!1;break}}else if(!(h===p||s(h,p,n,a,t))){v=!1;break}}return t.delete(e),t.delete(r),v}var lr=bs;function ms(e){var r=-1,n=Array(e.size);return e.forEach(function(a,s){n[++r]=[s,a]}),n}var _s=ms,Se=ze,Oe=Br,$s=Gr,As=lr,Cs=_s,ws=cs,Ts=1,Ss=2,Os="[object Boolean]",Es="[object Date]",Is="[object Error]",Ps="[object Map]",Ls="[object Number]",xs="[object RegExp]",Ms="[object Set]",Fs="[object String]",Ds="[object Symbol]",Rs="[object ArrayBuffer]",js="[object DataView]",Ee=Se?Se.prototype:void 0,k=Ee?Ee.valueOf:void 0;function Ns(e,r,n,a,s,t,i){switch(n){case js:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case Rs:return!(e.byteLength!=r.byteLength||!t(new Oe(e),new Oe(r)));case Os:case Es:case Ls:return $s(+e,+r);case Is:return e.name==r.name&&e.message==r.message;case xs:case Fs:return e==r+"";case Ps:var o=Cs;case Ms:var l=a&Ts;if(o||(o=ws),e.size!=r.size&&!l)return!1;var u=i.get(e);if(u)return u==r;a|=Ss,i.set(e,r);var f=As(o(e),o(r),a,s,t,i);return i.delete(e),f;case Ds:if(k)return k.call(e)==k.call(r)}return!1}var Bs=Ns,Ie=ar,Gs=1,Ks=Object.prototype,Us=Ks.hasOwnProperty;function qs(e,r,n,a,s,t){var i=n&Gs,o=Ie(e),l=o.length,u=Ie(r),f=u.length;if(l!=f&&!i)return!1;for(var c=l;c--;){var v=o[c];if(!(i?v in r:Us.call(r,v)))return!1}var b=t.get(e),h=t.get(r);if(b&&h)return b==r&&h==e;var p=!0;t.set(e,r),t.set(r,e);for(var g=i;++c<l;){v=o[c];var y=e[v],C=r[v];if(a)var T=i?a(C,y,v,r,e,t):a(y,C,v,e,r,t);if(!(T===void 0?y===C||s(y,C,n,a,t):T)){p=!1;break}g||(g=v=="constructor")}if(p&&!g){var I=e.constructor,S=r.constructor;I!=S&&"constructor"in e&&"constructor"in r&&!(typeof I=="function"&&I instanceof I&&typeof S=="function"&&S instanceof S)&&(p=!1)}return t.delete(e),t.delete(r),p}var Hs=qs,V=ie,zs=lr,Ws=Bs,Xs=Hs,Pe=X,Le=E,xe=He.exports,Ys=Nr,Zs=1,Me="[object Arguments]",Fe="[object Array]",K="[object Object]",Js=Object.prototype,De=Js.hasOwnProperty;function Qs(e,r,n,a,s,t){var i=Le(e),o=Le(r),l=i?Fe:Pe(e),u=o?Fe:Pe(r);l=l==Me?K:l,u=u==Me?K:u;var f=l==K,c=u==K,v=l==u;if(v&&xe(e)){if(!xe(r))return!1;i=!0,f=!1}if(v&&!f)return t||(t=new V),i||Ys(e)?zs(e,r,n,a,s,t):Ws(e,r,l,n,a,s,t);if(!(n&Zs)){var b=f&&De.call(e,"__wrapped__"),h=c&&De.call(r,"__wrapped__");if(b||h){var p=b?e.value():e,g=h?r.value():r;return t||(t=new V),s(p,g,n,a,t)}}return v?(t||(t=new V),Xs(e,r,n,a,s,t)):!1}var ks=Qs,Vs=ks,Re=Y;function ur(e,r,n,a,s){return e===r?!0:e==null||r==null||!Re(e)&&!Re(r)?e!==e&&r!==r:Vs(e,r,n,a,ur,s)}var ve=ur,ei=ve;function ri(e,r){return ei(e,r)}var ni=ri;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var ai=E,ti=Ze,si=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ii=/^\w*$/;function oi(e,r){if(ai(e))return!1;var n=Je(e);return n=="number"||n=="symbol"||n=="boolean"||e==null||ti(e)?!0:ii.test(e)||!si.test(e)||r!=null&&e in Object(r)}var de=oi,cr=Ye,li="Expected a function";function ge(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(li);var n=function a(){var s=arguments,t=r?r.apply(this,s):s[0],i=a.cache;if(i.has(t))return i.get(t);var o=e.apply(this,s);return a.cache=i.set(t,o)||i,o};return n.cache=new(ge.Cache||cr),n}ge.Cache=cr;var ui=ge,ci=ui,fi=500;function vi(e){var r=ci(e,function(a){return n.size===fi&&n.clear(),a}),n=r.cache;return r}var di=vi,gi=di,yi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hi=/\\(\\)?/g,pi=gi(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(yi,function(n,a,s,t){r.push(s?t.replace(hi,"$1"):a||n)}),r}),bi=pi,mi=E,_i=de,$i=bi,Ai=Kr;function Ci(e,r){return mi(e)?e:_i(e,r)?[e]:$i(Ai(e))}var fr=Ci,wi=Ze,Ti=1/0;function Si(e){if(typeof e=="string"||wi(e))return e;var r=e+"";return r=="0"&&1/e==-Ti?"-0":r}var J=Si,Oi=fr,Ei=J;function Ii(e,r){r=Oi(r,e);for(var n=0,a=r.length;e!=null&&n<a;)e=e[Ei(r[n++])];return n&&n==a?e:void 0}var vr=Ii;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Pi=vr;function Li(e,r,n){var a=e==null?void 0:Pi(e,r);return a===void 0?n:a}var xi=Li;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Mi(e,r){return e!=null&&r in Object(e)}var Fi=Mi,Di=fr,Ri=Ur,ji=E,Ni=qr,Bi=Hr,Gi=J;function Ki(e,r,n){r=Di(r,e);for(var a=-1,s=r.length,t=!1;++a<s;){var i=Gi(r[a]);if(!(t=e!=null&&n(e,i)))break;e=e[i]}return t||++a!=s?t:(s=e==null?0:e.length,!!s&&Bi(s)&&Ni(i,s)&&(ji(e)||Ri(e)))}var Ui=Ki,qi=Fi,Hi=Ui;function zi(e,r){return e!=null&&Hi(e,r,qi)}var Wi=zi;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Xi(e){return function(r){return r==null?void 0:r[e]}}var Yi=Xi;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Zi(e){if(Array.isArray(e))return e}function Ji(e,r){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a,s,t,i,o=[],l=!0,u=!1;try{if(t=(n=n.call(e)).next,r===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=t.call(n)).done)&&(o.push(a.value),o.length!==r);l=!0);}catch(f){u=!0,s=f}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw s}}return o}}function Qi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ki(e,r){return Zi(e)||Ji(e,r)||zr(e,r)||Qi()}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function je(e,r){var n=Object.keys(r);n.forEach(function(a){e.style[a]=r[a]})}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Vi=Wr,eo=Y,ro="[object Number]";function no(e){return typeof e=="number"||eo(e)&&Vi(e)==ro}var ao=no;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function to(){if(typeof navigator>"u"||!navigator)return Number.MAX_SAFE_INTEGER;var e=navigator,r=e.userAgent,n=r.indexOf("compatible")>-1&&r.indexOf("MSIE")>-1,a=r.indexOf("Trident")>-1&&r.indexOf("rv:11.0")>-1;if(n){var s=new RegExp("MSIE (\\d+\\.\\d+);"),t=r.match(s);if(!t)return-1;var i=parseFloat(t[1]);return i<7?6:i}return a?11:Number.MAX_SAFE_INTEGER}function Cl(e,r){var n=ao(r);if(!e||e.length===0)return n?{length:0,characters:e}:0;for(var a=0,s=0;s<e.length;s++){var t=0;if(e.charCodeAt(s)>127?t=2:t=1,n&&a+t>r)return{length:a,characters:e.slice(0,s)};a+=t}return n?{length:a,characters:e}:a}function wl(e){return re(e!=null?e:"").length}function Tl(e,r,n){return re(n!=null?n:"").slice().length===r?n||"":re(e!=null?e:"").slice(0,r).join("")}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Ne(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,a)}return n}function U(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Ne(Object(n),!0).forEach(function(a){R(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function so(e){var r,n,a,s={};if(!(!e||typeof window>"u")){var t=(r=window)===null||r===void 0||(n=r.getComputedStyle)===null||n===void 0?void 0:n.call(r,e),i=t.color,o=t.fontSize,l=(a=window)===null||a===void 0||(a=a.navigator)===null||a===void 0?void 0:a.userAgent,u=/Safari/.test(l)&&!/Chrome/.test(l),f=/(?=.*iPhone)[?=.*MicroMessenger]/.test(l)&&!/Chrome/.test(l);if((u||f)&&(s={transformOrigin:"0px 0px",transform:"scale(".concat(parseInt(o,10)/12,")")}),i&&to()>11){var c=i.match(/[\d.]+/g),v=c?"rgba(".concat(c[0],", ").concat(c[1],", ").concat(c[2],", 0)"):"";je(e,U(U({},s),{},{background:"conic-gradient(from 90deg at 50% 50%,".concat(v," 0deg, ").concat(i," 360deg)")}))}else je(e,U(U({},s),{},{background:""}))}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var io=ue({name:"TLoadingGradient",setup:function(){var r=$();return ce(function(){var n=en().refs.circle;rn(function(){so(n)})}),{classPrefix:r}},render:function(){var r=this.classPrefix,n="".concat(r,"-loading__gradient"),a=[n,"".concat(r,"-icon-loading")];return m("svg",{class:a,viewBox:"0 0 12 12",version:"1.1",width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg"},[m("foreignObject",{x:"0",y:"0",width:"12",height:"12"},[m("div",{class:"".concat(n,"-conic"),ref:"circle"},null)])])}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var ye={exports:{}},D={exports:{}};(function(){var e,r,n,a,s,t;typeof performance<"u"&&performance!==null&&performance.now?D.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(D.exports=function(){return(e()-s)/1e6},r=process.hrtime,e=function(){var o;return o=r(),o[0]*1e9+o[1]},a=e(),t=process.uptime()*1e9,s=a-t):Date.now?(D.exports=function(){return Date.now()-n},n=Date.now()):(D.exports=function(){return new Date().getTime()-n},n=new Date().getTime())}).call(Qe);var oo=D.exports,w=typeof window>"u"?Qe:window,q=["moz","webkit"],L="AnimationFrame",x=w["request"+L],N=w["cancel"+L]||w["cancelRequest"+L];for(var F=0;!x&&F<q.length;F++)x=w[q[F]+"Request"+L],N=w[q[F]+"Cancel"+L]||w[q[F]+"CancelRequest"+L];if(!x||!N){var ee=0,Be=0,O=[],lo=1e3/60;x=function(r){if(O.length===0){var n=oo(),a=Math.max(0,lo-(n-ee));ee=a+n,setTimeout(function(){var s=O.slice(0);O.length=0;for(var t=function(){if(!s[i].cancelled)try{s[i].callback(ee)}catch(l){setTimeout(function(){throw l},0)}},i=0;i<s.length;i++)t()},Math.round(a))}return O.push({handle:++Be,callback:r,cancelled:!1}),Be},N=function(r){for(var n=0;n<O.length;n++)O[n].handle===r&&(O[n].cancelled=!0)}}ye.exports=function(e){return x.call(w,e)};ye.exports.cancel=function(){N.apply(w,arguments)};ye.exports.polyfill=function(e){e||(e=w),e.requestAnimationFrame=x,e.cancelAnimationFrame=N};var dr=typeof window>"u",uo=function(r){return(r||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},co=function(){return!dr&&document.addEventListener?function(e,r,n,a){e&&r&&n&&e.addEventListener(r,n,a)}:function(e,r,n){e&&r&&n&&e.attachEvent("on".concat(r),n)}}(),fo=function(){return!dr&&document.removeEventListener?function(e,r,n,a){e&&r&&e.removeEventListener(r,n,a)}:function(e,r,n){e&&r&&e.detachEvent("on".concat(r),n)}}();function Sl(e,r,n,a){var s=j(n)?n:n.handleEvent,t=function i(o){s(o),fo(e,r,i,a)};co(e,r,t,a)}function gr(e,r){if(!e||!r)return!1;if(r.indexOf(" ")!==-1)throw new Error("className should not contain space.");return e.classList?e.classList.contains(r):" ".concat(e.className," ").indexOf(" ".concat(r," "))>-1}function ne(e,r){if(!!e){for(var n=e.className,a=(r||"").split(" "),s=0,t=a.length;s<t;s++){var i=a[s];!i||(e.classList?e.classList.add(i):gr(e,i)||(n+=" ".concat(i)))}e.classList||(e.className=n)}}function ae(e,r){if(!(!e||!r)){for(var n=r.split(" "),a=" ".concat(e.className," "),s=0,t=n.length;s<t;s++){var i=n[s];!i||(e.classList?e.classList.remove(i):gr(e,i)&&(a=a.replace(" ".concat(i," ")," ")))}e.classList||(e.className=uo(a))}}var yr=function(r,n){var a=j(r)?r(n):r;return a?ke(a)?document.querySelector(a):a instanceof HTMLElement?a:document.body:document.body},vo=function(){},Ol=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"body";return ke(r)?document.querySelector(r):j(r)?r():r},El=function(r){var n=r.clientWidth,a=n===void 0?0:n,s=r.scrollWidth,t=s===void 0?0:s;return t>a};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var go={attach:{type:[String,Function],default:""},content:{type:[String,Function]},default:{type:[String,Function]},delay:{type:Number,default:0},fullscreen:Boolean,indicator:{type:[Boolean,Function],default:!0},inheritColor:Boolean,loading:{type:Boolean,default:!0},preventScrollThrough:{type:Boolean,default:!0},showOverlay:{type:Boolean,default:!0},size:{type:String,default:"medium"},text:{type:[String,Function]},zIndex:{type:Number}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var yo=function(r,n){var a=j(r)?_(r):H(r),s=j(n)?_(n):H(n),t=H(),i=function(){t.value=vo()||yr(a.value,s.value)};return ce(function(){return i()}),Ve([a,s],function(){return i()}),t};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var ho=function(){return{name:$("loading"),centerClass:$("loading--center"),fullscreenClass:$("loading__fullscreen"),lockClass:$("loading--lock"),overlayClass:$("loading__overlay"),relativeClass:$("loading__parent"),fullClass:$("loading--full"),inheritColorClass:$("loading--inherit-color")}},te=ue({name:"TLoading",inheritAttrs:!1,props:go,setup:function(r,n){var a=n.slots,s=H(!1),t=ho(),i=t.name,o=t.centerClass,l=t.fullscreenClass,u=t.lockClass,f=t.overlayClass,c=t.relativeClass,v=t.fullClass,b=t.inheritColorClass,h=$(),p=Xr(),g=p.SIZE,y=function(){s.value=!1;var M=setTimeout(function(){s.value=!0,clearTimeout(M)},r.delay)},C=yo(function(){return r.attach}),T=_(function(){return Boolean(!r.delay||r.delay&&s.value)}),I=_(function(){var A={};return r.zIndex!==void 0&&(A.zIndex=r.zIndex),["small","medium","large"].includes(r.size)||(A["font-size"]=r.size),A}),S=_(function(){return Boolean(r.default||a.default||r.content||a.content)}),Q=_(function(){return r.preventScrollThrough&&r.fullscreen}),_r=_(function(){return Boolean(r.text||a.text)}),$r=_(function(){return S.value&&r.loading&&T.value}),Ar=_(function(){return r.fullscreen&&r.loading&&T.value}),Cr=_(function(){return r.attach&&r.loading&&T.value}),wr=_(function(){return r.attach&&r.loading&&T.value}),Tr=_(function(){var A=[o.value,g.value[r.size],R({},b.value,r.inheritColor)],M=[i.value,l.value,o.value,f.value];return{baseClasses:A,attachClasses:A.concat([i.value,v.value,R({},f.value,r.showOverlay)]),withContentClasses:A.concat([i.value,v.value,R({},f.value,r.showOverlay)]),fullScreenClasses:M,normalClasses:A.concat([i.value])}}),Sr=nn(r),Or=Sr.loading;return Ve([Or],function(A){var M=ki(A,1),Er=M[0];Er?(y(),Q.value&&ne(document.body,u.value)):Q.value&&ae(document.body,u.value)}),ce(function(){r.delay&&y()}),{classPrefix:h,relativeClass:c,delayShowLoading:s,styles:I,showText:_r,hasContent:S,classes:Tr,lockFullscreen:Q,showWrapLoading:$r,showNormalLoading:Cr,showFullScreenLoading:Ar,showAttachedLoading:wr,teleportElement:C}},render:function(){var r=this,n=this.classes,a=n.fullScreenClasses,s=n.baseClasses,t=n.withContentClasses,i=n.attachClasses,o=n.normalClasses,l=m(io,{size:this.size},null),u=this.loading&&he(this,"indicator",l),f=this.showText&&m("div",{class:"".concat(this.classPrefix,"-loading__text")},[he(this,"text")]);return this.fullscreen?!this.showFullScreenLoading||!this.loading?null:m(pe,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[m("div",G({class:a,style:r.styles},r.$attrs),[m("div",{class:s},[u,f])])]}}):this.hasContent?m("div",G({class:this.relativeClass},this.$attrs),[Yr(this,"default","content"),this.showWrapLoading&&m("div",{class:t,style:this.styles},[u,f])]):this.attach?!this.showAttachedLoading||!this.loading?null:m(pe,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[m("div",G({class:i,style:r.styles},r.$attrs),[u,f])]}}):this.loading?m("div",G({class:o,style:this.styles},this.$attrs),[u,f]):null}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Ge(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,a)}return n}function po(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Ge(Object(n),!0).forEach(function(a){R(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}var P=null;function bo(e){var r=Zr({fullscreen:!1,attach:"body",loading:!0,preventScrollThrough:!0},e);return r}function Ke(e){var r=bo(e);if(r.fullscreen&&P)return P;var n=ue({setup:function(){var c=an(r);return{loadingOptions:c}},render:function(){return tn(te,po({},this.loadingOptions))}}),a=yr(r.fullscreen?"body":r.attach),s=sn(n),t=s.mount(document.createElement("div")),i=$("loading__parent--relative").value,o=$("loading--lock"),l=r.preventScrollThrough&&r.fullscreen;l&&ne(document.body,o.value),a?ne(a,i):console.error("attach is not exist");var u={hide:function(){t.loading=!1,ae(a,i),ae(document.body,o.value),s.unmount()}};return u}function hr(e){if(e===!0)return P=Ke({fullscreen:!0,loading:!0,attach:"body",preventScrollThrough:!0}),P;if(e===!1){var r;(r=P)===null||r===void 0||r.hide(),P=null;return}return Ke(e)}var pr=hr;pr.install=function(e){e.config.globalProperties.$loading=hr};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var mo=Jr,_o=B;function $o(e,r){return e&&mo(e,r,_o)}var Ao=$o,Co=ie,wo=ve,To=1,So=2;function Oo(e,r,n,a){var s=n.length,t=s,i=!a;if(e==null)return!t;for(e=Object(e);s--;){var o=n[s];if(i&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++s<t;){o=n[s];var l=o[0],u=e[l],f=o[1];if(i&&o[2]){if(u===void 0&&!(l in e))return!1}else{var c=new Co;if(a)var v=a(u,f,l,e,r,c);if(!(v===void 0?wo(f,u,To|So,a,c):v))return!1}}return!0}var Eo=Oo,Io=oe;function Po(e){return e===e&&!Io(e)}var br=Po,Lo=br,xo=B;function Mo(e){for(var r=xo(e),n=r.length;n--;){var a=r[n],s=e[a];r[n]=[a,s,Lo(s)]}return r}var Fo=Mo;function Do(e,r){return function(n){return n==null?!1:n[e]===r&&(r!==void 0||e in Object(n))}}var mr=Do,Ro=Eo,jo=Fo,No=mr;function Bo(e){var r=jo(e);return r.length==1&&r[0][2]?No(r[0][0],r[0][1]):function(n){return n===e||Ro(n,e,r)}}var Go=Bo,Ko=ve,Uo=xi,qo=Wi,Ho=de,zo=br,Wo=mr,Xo=J,Yo=1,Zo=2;function Jo(e,r){return Ho(e)&&zo(r)?Wo(Xo(e),r):function(n){var a=Uo(n,e);return a===void 0&&a===r?qo(n,e):Ko(r,a,Yo|Zo)}}var Qo=Jo,ko=vr;function Vo(e){return function(r){return ko(r,e)}}var el=Vo,rl=Yi,nl=el,al=de,tl=J;function sl(e){return al(e)?rl(tl(e)):nl(e)}var il=sl,ol=Go,ll=Qo,ul=Qr,cl=E,fl=il;function vl(e){return typeof e=="function"?e:e==null?ul:Je(e)=="object"?cl(e)?ll(e[0],e[1]):ol(e):fl(e)}var dl=vl,gl=kr,yl=Ao,hl=dl;function pl(e,r){var n={};return r=hl(r),yl(e,function(a,s,t){gl(n,r(a,s,t),a)}),n}var bl=pl,se=Symbol("TdLoading"),Ue=function(r,n){var a=n.modifiers,s=a.fullscreen,t=a.inheritColor,i={attach:function(){return r},fullscreen:s!=null?s:!1,inheritColor:t!=null?t:!1,loading:n.value};oe(n.value)&&bl(n.value,function(o,l){i[l]=o}),r[se]={options:i,instance:pr(i)}},ml={mounted:function(r,n){n.value&&Ue(r,n)},updated:function(r,n){var a=r[se],s=n.value,t=n.oldValue;if(!ni(s,t)){var i,o=(i=s==null?void 0:s.loading)!==null&&i!==void 0?i:s;o?Ue(r,n):a==null||a.instance.hide()}},unmounted:function(r){var n;(n=r[se])===null||n===void 0||n.instance.hide()}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Il=Vr(te,te.name,{name:"loading",comp:ml});export{Wi as A,er as B,ra as C,yo as D,Il as L,ki as _,co as a,is as b,ls as c,ao as d,Cl as e,yr as f,Ol as g,El as h,dr as i,to as j,cs as k,xi as l,un as m,gr as n,fo as o,Zi as p,Qi as q,Al as r,vo as s,Sl as t,je as u,wl as v,Tl as w,fr as x,J as y,vr as z};