import{N,O as Pe,P as sr,Q as or,M as Ee,S as Te,T as lr,U as ur,E as G,V as cr,W as fr,X as vr,Y as dr,Z as xe,$ as gr,A as hr,a0 as mr,K as yr,w as Ie,a1 as Le,G as R,F as Me,a2 as le,a3 as pr,a4 as _r,t as Fe,a5 as br,a6 as Ne,a7 as Cr,a8 as wr,y as Ar}from"./index.28b8c38d.js";import{c as d,d as ne,o as ae,g as Sr,n as Or,aI as m,f as H,w as Re,t as $r,bB as K,bD as ue,r as Pr,h as Er,b4 as Tr}from"./arco.f43727df.js";/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */function J(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=new Array(r);no))return!1;var u=i.get(e),c=i.get(r);if(u&&c)return u==r&&c==e;var f=-1,v=!0,p=n&en?new Jr:void 0;for(i.set(e,r),i.set(r,e);++f"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 t=new RegExp("MSIE (\\d+\\.\\d+);"),i=r.match(t);if(!i)return-1;var s=parseFloat(i[1]);return s<7?6:s}return a?11:Number.MAX_SAFE_INTEGER}function ii(){var e,r,n;if(typeof navigator>"u"||!navigator)return!1;var a=navigator.userAgent,t=a.match(/AppleWebKit.+Chrome\/(.+) Safari\/.+/i);if(Number(t==null||(e=t[1])===null||e===void 0?void 0:e.split(".")[0])<100)return!0;var i=a.match(/AppleWebKit.+Version\/(.+) Safari\/.+/i);if(Number(i==null||(r=i[1])===null||r===void 0?void 0:r.split(".")[0])<12)return!0;var s=He();if(s<=11)return!0;var o=a.match(/Firefox\/(.+)/i);return Number(o==null||(n=o[1])===null||n===void 0?void 0:n.split(".")[0])<100}function si(e,r){var n=qa(r);if(!e||e.length===0)return n?{length:0,characters:e}:0;for(var a=0,t=0;t127?i=2:i=1,n&&a+i>r)return{length:a,characters:e.slice(0,t)};a+=i}return n?{length:a,characters:e}:a}function oi(e){return Q(e!=null?e:"").length}function li(e,r,n){return Q(n!=null?n:"").slice().length===r?n||"":Q(e!=null?e:"").slice(0,r).join("")}/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */function we(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function q(e){for(var r=1;r"u")){var i=(r=window)===null||r===void 0||(n=r.getComputedStyle)===null||n===void 0?void 0:n.call(r,e),s=i.color,o=i.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),c=/(?=.*iPhone)[?=.*MicroMessenger]/.test(l)&&!/Chrome/.test(l);if((u||c)&&(t={transformOrigin:"0px 0px",transform:"scale(".concat(parseInt(o,10)/12,")")}),s&&He()>11){var f=s.match(/[\d.]+/g),v=f?"rgba(".concat(f[0],", ").concat(f[1],", ").concat(f[2],", 0)"):"";Ce(e,q(q({},t),{},{background:"conic-gradient(from 90deg at 50% 50%,".concat(v," 0deg, ").concat(s," 360deg)")}))}else Ce(e,q(q({},t),{},{background:""}))}}/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */function y(e){var r=Ie("classPrefix"),n=r.classPrefix;return d(function(){return e?"".concat(n.value,"-").concat(e):n.value})}function Ha(){var e=Ie("classPrefix"),r=e.classPrefix;return{SIZE:d(function(){return{small:"".concat(r.value,"-size-s"),medium:"".concat(r.value,"-size-m"),large:"".concat(r.value,"-size-l"),default:"",xs:"".concat(r.value,"-size-xs"),xl:"".concat(r.value,"-size-xl"),block:"".concat(r.value,"-size-full-width")}}),STATUS:d(function(){return{loading:"".concat(r.value,"-is-loading"),loadMore:"".concat(r.value,"-is-load-more"),disabled:"".concat(r.value,"-is-disabled"),focused:"".concat(r.value,"-is-focused"),success:"".concat(r.value,"-is-success"),error:"".concat(r.value,"-is-error"),warning:"".concat(r.value,"-is-warning"),selected:"".concat(r.value,"-is-selected"),active:"".concat(r.value,"-is-active"),checked:"".concat(r.value,"-is-checked"),current:"".concat(r.value,"-is-current"),hidden:"".concat(r.value,"-is-hidden"),visible:"".concat(r.value,"-is-visible"),expanded:"".concat(r.value,"-is-expanded"),indeterminate:"".concat(r.value,"-is-indeterminate")}})}}/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */var Ua=ne({name:"TLoadingGradient",setup:function(){var r=y();return ae(function(){var n=Sr().refs.circle;Or(function(){Ba(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 oe={exports:{}},M={exports:{}};(function(){var e,r,n,a,t,i;typeof performance<"u"&&performance!==null&&performance.now?M.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(M.exports=function(){return(e()-t)/1e6},r=process.hrtime,e=function(){var o;return o=r(),o[0]*1e9+o[1]},a=e(),i=process.uptime()*1e9,t=a-i):Date.now?(M.exports=function(){return Date.now()-n},n=Date.now()):(M.exports=function(){return new Date().getTime()-n},n=new Date().getTime())}).call(Le);var Wa=M.exports,A=typeof window>"u"?Le:window,B=["moz","webkit"],T="AnimationFrame",x=A["request"+T],D=A["cancel"+T]||A["cancelRequest"+T];for(var L=0;!x&&L"u",Za=function(r){return(r||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},Ya=function(){return!Ue&&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)}}(),ja=function(){return!Ue&&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 ui(e,r,n,a){var t=R(n)?n:n.handleEvent,i=function s(o){t(o),ja(e,r,s,a)};Ya(e,r,i,a)}function We(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 V(e,r){if(!!e){for(var n=e.className,a=(r||"").split(" "),t=0,i=a.length;t0&&arguments[0]!==void 0?arguments[0]:"body";return Me(r)?document.querySelector(r):R(r)?r():r},fi=function(r){var n=r.clientWidth,a=n===void 0?0:n,t=r.scrollWidth,i=t===void 0?0:t;return i>a},vi=function(r){if(!(r instanceof HTMLFormElement))throw new Error("target must be HTMLFormElement");var n=document.createElement("input");n.type="submit",n.hidden=!0,r.appendChild(n),n.click(),r.removeChild(n)};/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */var Qa={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 Va=function(r,n){var a=R(r)?d(r):H(r),t=R(n)?d(n):H(n),i=H(),s=function(){i.value=Ja()||Xe(a.value,t.value)};return ae(function(){return s()}),Re([a,t],function(){return s()}),i};/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */var ka=function(){return{name:y("loading"),centerClass:y("loading--center"),fullscreenClass:y("loading__fullscreen"),lockClass:y("loading--lock"),overlayClass:y("loading__overlay"),relativeClass:y("loading__parent"),fullClass:y("loading--full"),inheritColorClass:y("loading--inherit-color")}},ee=ne({name:"TLoading",inheritAttrs:!1,props:Qa,setup:function(r,n){var a=n.slots,t=H(!1),i=ka(),s=i.name,o=i.centerClass,l=i.fullscreenClass,u=i.lockClass,c=i.overlayClass,f=i.relativeClass,v=i.fullClass,p=i.inheritColorClass,g=y(),h=Ha(),b=h.SIZE,C=function(){t.value=!1;var I=setTimeout(function(){t.value=!0,clearTimeout(I)},r.delay)},w=Va(function(){return r.attach}),S=d(function(){return Boolean(!r.delay||r.delay&&t.value)}),P=d(function(){var _={};return r.zIndex!==void 0&&(_.zIndex=r.zIndex),["small","medium","large"].includes(r.size)||(_["font-size"]=r.size),_}),O=d(function(){return Boolean(r.default||a.default||r.content||a.content)}),X=d(function(){return r.preventScrollThrough&&r.fullscreen}),Qe=d(function(){return Boolean(r.text||a.text)}),Ve=d(function(){return O.value&&r.loading&&S.value}),ke=d(function(){return r.fullscreen&&r.loading&&S.value}),er=d(function(){return r.attach&&r.loading&&S.value}),rr=d(function(){return r.attach&&r.loading&&S.value}),nr=d(function(){var _=[o.value,b.value[r.size],F({},p.value,r.inheritColor)],I=[s.value,l.value,o.value,c.value];return{baseClasses:_,attachClasses:_.concat([s.value,v.value,F({},c.value,r.showOverlay)]),withContentClasses:_.concat([s.value,v.value,F({},c.value,r.showOverlay)]),fullScreenClasses:I,normalClasses:_.concat([s.value])}}),ar=$r(r),tr=ar.loading;return Re([tr],function(_){var I=Ra(_,1),ir=I[0];ir?(C(),X.value&&V(document.body,u.value)):X.value&&k(document.body,u.value)}),ae(function(){r.delay&&C()}),{classPrefix:g,relativeClass:f,delayShowLoading:t,styles:P,showText:Qe,hasContent:O,classes:nr,lockFullscreen:X,showWrapLoading:Ve,showNormalLoading:er,showFullScreenLoading:ke,showAttachedLoading:rr,teleportElement:w}},render:function(){var r=this,n=this.classes,a=n.fullScreenClasses,t=n.baseClasses,i=n.withContentClasses,s=n.attachClasses,o=n.normalClasses,l=m(Ua,{size:this.size},null),u=this.loading&&le(this,"indicator",l),c=this.showText&&m("div",{class:"".concat(this.classPrefix,"-loading__text")},[le(this,"text")]);return this.fullscreen?!this.showFullScreenLoading||!this.loading?null:m(ue,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[m("div",K({class:a,style:r.styles},r.$attrs),[m("div",{class:t},[u,c])])]}}):this.hasContent?m("div",K({class:this.relativeClass},this.$attrs),[pr(this,"default","content"),this.showWrapLoading&&m("div",{class:i,style:this.styles},[u,c])]):this.attach?!this.showAttachedLoading||!this.loading?null:m(ue,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[m("div",K({class:s,style:r.styles},r.$attrs),[u,c])]}}):this.loading?m("div",K({class:o,style:this.styles},this.$attrs),[u,c]):null}});/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */function Se(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function et(e){for(var r=1;r