Files
sub2api-add/plugins/plugin-admin/ui/app.js
T
Qiufeng ada4ab3c21
Business Plugins CI / check (plugin-admin) (push) Successful in 1m42s
Business Plugins CI / check (subscription-admin) (push) Successful in 1m30s
feat: complete unified plugin admin v1.1.0
2026-08-30 12:10:04 +08:00

64 lines
1.9 MiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function n(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var r={},i=[],a=()=>{},o=()=>!1,s=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith(`onUpdate:`),l=Object.assign,u=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,f=(e,t)=>d.call(e,t),p=Array.isArray,m=e=>C(e)===`[object Map]`,h=e=>C(e)===`[object Set]`,g=e=>C(e)===`[object Date]`,_=e=>typeof e==`function`,v=e=>typeof e==`string`,y=e=>typeof e==`symbol`,b=e=>typeof e==`object`&&!!e,x=e=>(b(e)||_(e))&&_(e.then)&&_(e.catch),S=Object.prototype.toString,C=e=>S.call(e),w=e=>C(e).slice(8,-1),T=e=>C(e)===`[object Object]`,E=e=>v(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,D=n(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),O=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},k=/-\w/g,A=O(e=>e.replace(k,e=>e.slice(1).toUpperCase())),j=/\B([A-Z])/g,M=O(e=>e.replace(j,`-$1`).toLowerCase()),ee=O(e=>e.charAt(0).toUpperCase()+e.slice(1)),N=O(e=>e?`on${ee(e)}`:``),P=(e,t)=>!Object.is(e,t),F=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},te=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ne=e=>{let t=parseFloat(e);return isNaN(t)?e:t},re=e=>{let t=v(e)?Number(e):NaN;return isNaN(t)?e:t},ie,ae=()=>ie||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function oe(e){if(p(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=v(r)?ue(r):oe(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(v(e)||b(e))return e}var se=/;(?![^(]*\))/g,ce=/:([^]+)/,le=/\/\*[^]*?\*\//g;function ue(e){let t={};return e.replace(le,``).split(se).forEach(e=>{if(e){let n=e.split(ce);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function de(e){let t=``;if(v(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){let r=de(e[n]);r&&(t+=r+` `)}else if(b(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var fe=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,pe=n(fe);fe+``;function me(e){return!!e||e===``}function he(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=ge(e[r],t[r]);return n}function ge(e,t){if(e===t)return!0;let n=g(e),r=g(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=y(e),r=y(t),n||r)return e===t;if(n=p(e),r=p(t),n||r)return n&&r?he(e,t):!1;if(n=b(e),r=b(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!ge(e[n],t[n]))return!1}}return String(e)===String(t)}var _e=e=>!!(e&&e.__v_isRef===!0),ve=e=>v(e)?e:e==null?``:p(e)||b(e)&&(e.toString===S||!_(e.toString))?_e(e)?ve(e.value):JSON.stringify(e,ye,2):String(e),ye=(e,t)=>_e(t)?ye(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[be(t,r)+` =>`]=n,e),{})}:h(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>be(e))}:y(t)?be(t):b(t)&&!p(t)&&!T(t)?String(t):t,be=(e,t=``)=>y(e)?`Symbol(${e.description??t})`:e,xe,Se=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&xe&&(xe.active?(this.parent=xe,this.index=(xe.scopes||=[]).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let t=xe;try{return xe=this,e()}finally{xe=t}}}on(){++this._on===1&&(this.prevScope=xe,xe=this)}off(){if(this._on>0&&--this._on===0){if(xe===this)xe=this.prevScope;else{let e=xe;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function Ce(e){return new Se(e)}function we(){return xe}function Te(e,t=!1){xe&&xe.cleanups.push(e)}var Ee,De=new WeakSet,Oe=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,xe&&(xe.active?xe.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,De.has(this)&&(De.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Me(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ge(this),Fe(this);let e=Ee,t=Ve;Ee=this,Ve=!0;try{return this.fn()}finally{Ie(this),Ee=e,Ve=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)ze(e);this.deps=this.depsTail=void 0,Ge(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?De.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Le(this)&&this.run()}get dirty(){return Le(this)}},ke=0,Ae,je;function Me(e,t=!1){if(e.flags|=8,t){e.next=je,je=e;return}e.next=Ae,Ae=e}function Ne(){ke++}function Pe(){if(--ke>0)return;if(je){let e=je;for(je=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ae;){let t=Ae;for(Ae=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Fe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ie(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),ze(r),Be(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Le(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Re(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Re(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ke)||(e.globalVersion=Ke,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Le(e))))return;e.flags|=2;let t=e.dep,n=Ee,r=Ve;Ee=e,Ve=!0;try{Fe(e);let n=e.fn(e._value);(t.version===0||P(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{Ee=n,Ve=r,Ie(e),e.flags&=-3}}function ze(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)ze(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Be(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var Ve=!0,He=[];function Ue(){He.push(Ve),Ve=!1}function We(){let e=He.pop();Ve=e===void 0||e}function Ge(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=Ee;Ee=void 0;try{t()}finally{Ee=e}}}var Ke=0,qe=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Je=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Ee||!Ve||Ee===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Ee)t=this.activeLink=new qe(Ee,this),Ee.deps?(t.prevDep=Ee.depsTail,Ee.depsTail.nextDep=t,Ee.depsTail=t):Ee.deps=Ee.depsTail=t,Ye(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=Ee.depsTail,t.nextDep=void 0,Ee.depsTail.nextDep=t,Ee.depsTail=t,Ee.deps===t&&(Ee.deps=e)}return t}trigger(e){this.version++,Ke++,this.notify(e)}notify(e){Ne();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Pe()}}};function Ye(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Ye(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var Xe=new WeakMap,Ze=Symbol(``),Qe=Symbol(``),$e=Symbol(``);function et(e,t,n){if(Ve&&Ee){let t=Xe.get(e);t||Xe.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Je),r.map=t,r.key=n),r.track()}}function tt(e,t,n,r,i,a){let o=Xe.get(e);if(!o){Ke++;return}let s=e=>{e&&e.trigger()};if(Ne(),t===`clear`)o.forEach(s);else{let i=p(e),a=i&&E(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===$e||!y(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get($e)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(Ze)),m(e)&&s(o.get(Qe)));break;case`delete`:i||(s(o.get(Ze)),m(e)&&s(o.get(Qe)));break;case`set`:m(e)&&s(o.get(Ze));break}}Pe()}function nt(e,t){let n=Xe.get(e);return n&&n.get(t)}function rt(e){let t=Ft(e);return t===e?t:(et(t,`iterate`,$e),Nt(e)?t:t.map(Lt))}function it(e){return et(e=Ft(e),`iterate`,$e),e}function at(e,t){return Mt(e)?Rt(jt(e)?Lt(t):t):Lt(t)}var ot={__proto__:null,[Symbol.iterator](){return st(this,Symbol.iterator,e=>at(this,e))},concat(...e){return rt(this).concat(...e.map(e=>p(e)?rt(e):e))},entries(){return st(this,`entries`,e=>(e[1]=at(this,e[1]),e))},every(e,t){return lt(this,`every`,e,t,void 0,arguments)},filter(e,t){return lt(this,`filter`,e,t,e=>e.map(e=>at(this,e)),arguments)},find(e,t){return lt(this,`find`,e,t,e=>at(this,e),arguments)},findIndex(e,t){return lt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return lt(this,`findLast`,e,t,e=>at(this,e),arguments)},findLastIndex(e,t){return lt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return lt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return dt(this,`includes`,e)},indexOf(...e){return dt(this,`indexOf`,e)},join(e){return rt(this).join(e)},lastIndexOf(...e){return dt(this,`lastIndexOf`,e)},map(e,t){return lt(this,`map`,e,t,void 0,arguments)},pop(){return ft(this,`pop`)},push(...e){return ft(this,`push`,e)},reduce(e,...t){return ut(this,`reduce`,e,t)},reduceRight(e,...t){return ut(this,`reduceRight`,e,t)},shift(){return ft(this,`shift`)},some(e,t){return lt(this,`some`,e,t,void 0,arguments)},splice(...e){return ft(this,`splice`,e)},toReversed(){return rt(this).toReversed()},toSorted(e){return rt(this).toSorted(e)},toSpliced(...e){return rt(this).toSpliced(...e)},unshift(...e){return ft(this,`unshift`,e)},values(){return st(this,`values`,e=>at(this,e))}};function st(e,t,n){let r=it(e),i=r[t]();return r!==e&&!Nt(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var ct=Array.prototype;function lt(e,t,n,r,i,a){let o=it(e),s=o!==e&&!Nt(e),c=o[t];if(c!==ct[t]){let t=c.apply(e,a);return s?Lt(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,at(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function ut(e,t,n,r){let i=it(e),a=i!==e&&!Nt(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=at(e,t)),n.call(this,t,at(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?at(e,c):c}function dt(e,t,n){let r=Ft(e);et(r,`iterate`,$e);let i=r[t](...n);return(i===-1||i===!1)&&Pt(n[0])?(n[0]=Ft(n[0]),r[t](...n)):i}function ft(e,t,n=[]){Ue(),Ne();let r=Ft(e)[t].apply(e,n);return Pe(),We(),r}var eee=n(`__proto__,__v_isRef,__isVue`),pt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(y));function tee(e){y(e)||(e=String(e));let t=Ft(this);return et(t,`has`,e),t.hasOwnProperty(e)}var mt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?see:Et:i?Tt:wt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=p(e);if(!r){let e;if(a&&(e=ot[t]))return e;if(t===`hasOwnProperty`)return tee}let o=Reflect.get(e,t,zt(e)?e:n);if((y(t)?pt.has(t):eee(t))||(r||et(e,`get`,t),i))return o;if(zt(o)){let e=a&&E(t)?o:o.value;return r&&b(e)?kt(e):e}return b(o)?r?kt(o):Dt(o):o}},ht=class extends mt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=p(e)&&E(t);if(!this._isShallow){let e=Mt(i);if(!Nt(n)&&!Mt(n)&&(i=Ft(i),n=Ft(n)),!a&&zt(i)&&!zt(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:f(e,t),s=Reflect.set(e,t,n,zt(e)?e:r);return e===Ft(r)&&s&&(o?P(n,i)&&tt(e,`set`,t,n,i):tt(e,`add`,t,n)),s}deleteProperty(e,t){let n=f(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&tt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!y(t)||!pt.has(t))&&et(e,`has`,t),n}ownKeys(e){return et(e,`iterate`,p(e)?`length`:Ze),Reflect.ownKeys(e)}},nee=class extends mt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},gt=new ht,ree=new nee,iee=new ht(!0),_t=e=>e,vt=e=>Reflect.getPrototypeOf(e);function aee(e,t,n){return function(...r){let i=this.__v_raw,a=Ft(i),o=m(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,u=i[e](...r),d=n?_t:t?Rt:Lt;return!t&&et(a,`iterate`,c?Qe:Ze),l(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:s?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function yt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function oee(e,t){let n={get(n){let r=this.__v_raw,i=Ft(r),a=Ft(n);e||(P(n,a)&&et(i,`get`,n),et(i,`get`,a));let{has:o}=vt(i),s=t?_t:e?Rt:Lt;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&et(Ft(t),`iterate`,Ze),t.size},has(t){let n=this.__v_raw,r=Ft(n),i=Ft(t);return e||(P(t,i)&&et(r,`has`,t),et(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=Ft(a),s=t?_t:e?Rt:Lt;return!e&&et(o,`iterate`,Ze),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return l(n,e?{add:yt(`add`),set:yt(`set`),delete:yt(`delete`),clear:yt(`clear`)}:{add(e){let n=Ft(this),r=vt(n),i=Ft(e),a=!t&&!Nt(e)&&!Mt(e)?i:e;return r.has.call(n,a)||P(e,a)&&r.has.call(n,e)||P(i,a)&&r.has.call(n,i)||(n.add(a),tt(n,`add`,a,a)),this},set(e,n){!t&&!Nt(n)&&!Mt(n)&&(n=Ft(n));let r=Ft(this),{has:i,get:a}=vt(r),o=i.call(r,e);o||=(e=Ft(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?P(n,s)&&tt(r,`set`,e,n,s):tt(r,`add`,e,n),this},delete(e){let t=Ft(this),{has:n,get:r}=vt(t),i=n.call(t,e);i||=(e=Ft(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&tt(t,`delete`,e,void 0,a),o},clear(){let e=Ft(this),t=e.size!==0,n=e.clear();return t&&tt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=aee(r,e,t)}),n}function bt(e,t){let n=oee(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(f(n,r)&&r in t?n:t,r,i)}var xt={get:bt(!1,!1)},St={get:bt(!1,!0)},Ct={get:bt(!0,!1)},wt=new WeakMap,Tt=new WeakMap,Et=new WeakMap,see=new WeakMap;function cee(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Dt(e){return Mt(e)?e:At(e,!1,gt,xt,wt)}function Ot(e){return At(e,!1,iee,St,Tt)}function kt(e){return At(e,!0,ree,Ct,Et)}function At(e,t,n,r,i){if(!b(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=cee(w(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function jt(e){return Mt(e)?jt(e.__v_raw):!!(e&&e.__v_isReactive)}function Mt(e){return!!(e&&e.__v_isReadonly)}function Nt(e){return!!(e&&e.__v_isShallow)}function Pt(e){return e?!!e.__v_raw:!1}function Ft(e){let t=e&&e.__v_raw;return t?Ft(t):e}function It(e){return!f(e,`__v_skip`)&&Object.isExtensible(e)&&te(e,`__v_skip`,!0),e}var Lt=e=>b(e)?Dt(e):e,Rt=e=>b(e)?kt(e):e;function zt(e){return e?e.__v_isRef===!0:!1}function I(e){return Vt(e,!1)}function Bt(e){return Vt(e,!0)}function Vt(e,t){return zt(e)?e:new lee(e,t)}var lee=class{constructor(e,t){this.dep=new Je,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Ft(e),this._value=t?e:Lt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||Nt(e)||Mt(e);e=n?e:Ft(e),P(e,t)&&(this._rawValue=e,this._value=n?e:Lt(e),this.dep.trigger())}};function Ht(e){return zt(e)?e.value:e}var uee={get:(e,t,n)=>t===`__v_raw`?e:Ht(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return zt(i)&&!zt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Ut(e){return jt(e)?e:new Proxy(e,uee)}function Wt(e){let t=p(e)?Array(e.length):{};for(let n in e)t[n]=Gt(e,n);return t}var dee=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=y(t)?t:String(t),this._raw=Ft(e);let r=!0,i=e;if(!p(e)||y(this._key)||!E(this._key))do r=!Pt(i)||Nt(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=Ht(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&zt(this._raw[this._key])){let t=this._object[this._key];if(zt(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return nt(this._raw,this._key)}};function Gt(e,t,n){return new dee(e,t,n)}var Kt=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Je(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ke-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Ee!==this)return Me(this,!0),!0}get value(){let e=this.dep.track();return Re(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function qt(e,t,n=!1){let r,i;return _(e)?r=e:(r=e.get,i=e.set),new Kt(r,i,n)}var Jt={},Yt=new WeakMap,Xt=void 0;function Zt(e,t=!1,n=Xt){if(n){let t=Yt.get(n);t||Yt.set(n,t=[]),t.push(e)}}function Qt(e,t,n=r){let{immediate:i,deep:o,once:s,scheduler:c,augmentJob:l,call:d}=n,f=e=>o?e:Nt(e)||o===!1||o===0?$t(e,1):$t(e),m,h,g,v,y=!1,b=!1;if(zt(e)?(h=()=>e.value,y=Nt(e)):jt(e)?(h=()=>f(e),y=!0):p(e)?(b=!0,y=e.some(e=>jt(e)||Nt(e)),h=()=>e.map(e=>{if(zt(e))return e.value;if(jt(e))return f(e);if(_(e))return d?d(e,2):e()})):h=_(e)?t?d?()=>d(e,2):e:()=>{if(g){Ue();try{g()}finally{We()}}let t=Xt;Xt=m;try{return d?d(e,3,[v]):e(v)}finally{Xt=t}}:a,t&&o){let e=h,t=o===!0?1/0:o;h=()=>$t(e(),t)}let x=we(),S=()=>{m.stop(),x&&x.active&&u(x.effects,m)};if(s&&t){let e=t;t=(...t)=>{let n=e(...t);return S(),n}}let C=b?Array(e.length).fill(Jt):Jt,w=e=>{if(!(!(m.flags&1)||!m.dirty&&!e))if(t){let n=m.run();if(e||o||y||(b?n.some((e,t)=>P(e,C[t])):P(n,C))){g&&g();let e=Xt;Xt=m;try{let e=[n,C===Jt?void 0:b&&C[0]===Jt?[]:C,v];C=n,d?d(t,3,e):t(...e)}finally{Xt=e}}}else m.run()};return l&&l(w),m=new Oe(h),m.scheduler=c?()=>c(w,!1):w,v=e=>Zt(e,!1,m),g=m.onStop=()=>{let e=Yt.get(m);if(e){if(d)d(e,4);else for(let t of e)t();Yt.delete(m)}},t?i?w(!0):C=m.run():c?c(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function $t(e,t=1/0,n){if(t<=0||!b(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,zt(e))$t(e.value,t,n);else if(p(e))for(let r=0;r<e.length;r++)$t(e[r],t,n);else if(h(e)||m(e))e.forEach(e=>{$t(e,t,n)});else if(T(e)){for(let r in e)$t(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&$t(e[r],t,n)}return e}function en(e,t,n,r){try{return r?e(...r):e()}catch(e){nn(e,t,n)}}function tn(e,t,n,r){if(_(e)){let i=en(e,t,n,r);return i&&x(i)&&i.catch(e=>{nn(e,t,n)}),i}if(p(e)){let i=[];for(let a=0;a<e.length;a++)i.push(tn(e[a],t,n,r));return i}}function nn(e,t,n,i=!0){let a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||r;if(t){let r=t.parent,i=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,a)===!1)return}r=r.parent}if(o){Ue(),en(o,null,10,[e,i,a]),We();return}}fee(e,n,a,i,s)}function fee(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var rn=[],an=-1,on=[],sn=null,cn=0,ln=Promise.resolve(),un=null;function dn(e){let t=un||ln;return e?t.then(this?e.bind(this):e):t}function pee(e){let t=an+1,n=rn.length;for(;t<n;){let r=t+n>>>1,i=rn[r],a=gn(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function fn(e){if(!(e.flags&1)){let t=gn(e),n=rn[rn.length-1];!n||!(e.flags&2)&&t>=gn(n)?rn.push(e):rn.splice(pee(t),0,e),e.flags|=1,pn()}}function pn(){un||=ln.then(_n)}function mee(e){p(e)?on.push(...e):sn&&e.id===-1?sn.splice(cn+1,0,e):e.flags&1||(on.push(e),e.flags|=1),pn()}function mn(e,t,n=an+1){for(;n<rn.length;n++){let t=rn[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;rn.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function hn(e){if(on.length){let e=[...new Set(on)].sort((e,t)=>gn(e)-gn(t));if(on.length=0,sn){sn.push(...e);return}for(sn=e,cn=0;cn<sn.length;cn++){let e=sn[cn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}sn=null,cn=0}}var gn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function _n(e){try{for(an=0;an<rn.length;an++){let e=rn[an];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),en(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;an<rn.length;an++){let e=rn[an];e&&(e.flags&=-2)}an=-1,rn.length=0,hn(e),un=null,(rn.length||on.length)&&_n(e)}}var vn=null,yn=null;function bn(e){let t=vn;return vn=e,yn=e&&e.type.__scopeId||null,t}function L(e,t=vn,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Oi(-1);let i=bn(t),a;try{a=e(...n)}finally{bn(i),r._d&&Oi(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function xn(e,t){if(vn===null)return e;let n=oa(vn),i=e.dirs||=[];for(let e=0;e<t.length;e++){let[a,o,s,c=r]=t[e];a&&(_(a)&&(a={mounted:a,updated:a}),a.deep&&$t(o),i.push({dir:a,instance:n,value:o,oldValue:void 0,arg:s,modifiers:c}))}return e}function Sn(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(Ue(),tn(c,n,8,[e.el,s,e,t]),We())}}function Cn(e,t){if(Ji){let n=Ji.provides,r=Ji.parent&&Ji.parent.provides;r===n&&(n=Ji.provides=Object.create(r)),n[e]=t}}function wn(e,t,n=!1){let r=Yi();if(r||Hr){let i=Hr?Hr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&_(t)?t.call(r&&r.proxy):t}}var hee=Symbol.for(`v-scx`),gee=()=>wn(hee);function Tn(e,t){return En(e,null,t)}function R(e,t,n){return En(e,t,n)}function En(e,t,n=r){let{immediate:i,deep:o,flush:s,once:c}=n,u=l({},n),d=t&&i||!t&&s!==`post`,f;if(ta){if(s===`sync`){let e=gee();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=a,e.resume=a,e.pause=a,e}}let p=Ji;u.call=(e,t,n)=>tn(e,p,t,n);let m=!1;s===`post`?u.scheduler=e=>{fi(e,p&&p.suspense)}:s!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():fn(e)}),u.augmentJob=e=>{t&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=Qt(e,t,u);return ta&&(f?f.push(h):d&&h()),h}function _ee(e,t,n){let r=this.proxy,i=v(e)?e.includes(`.`)?Dn(r,e):()=>r[e]:e.bind(r,r),a;_(t)?a=t:(a=t.handler,n=t);let o=Qi(this),s=En(i,a.bind(r),n);return o(),s}function Dn(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var On=new WeakMap,kn=Symbol(`_vte`),An=e=>e.__isTeleport,jn=e=>e&&(e.disabled||e.disabled===``),vee=e=>e&&(e.defer||e.defer===``),Mn=e=>typeof SVGElement<`u`&&e instanceof SVGElement,Nn=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,Pn=(e,t)=>{let n=e&&e.to;return v(n)?t?t(n):null:n},yee={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=jn(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=jn(e.props),r=e.target=Pn(e.props,m),a=zn(r,e,h,p);r&&(o!==`svg`&&Mn(r)?o=`svg`:o!==`mathml`&&Nn(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),Rn(e,!1)))},S=e=>{let t=()=>{if(On.get(e)===t){if(On.delete(e),jn(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),Rn(e,!0)}x(e)}};On.set(e,t),fi(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),vee(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),Rn(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=On.get(e);if(u){u.flags|=8,On.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=jn(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||Mn(p)?o=`svg`:(o===`mathml`||Nn(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),hi(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Fn(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=Pn(t.props,m);e&&(t.target=e,Fn(t,e,null,l,0))}else g&&Fn(t,p,h,l,1);Rn(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=jn(f),m=a||!p,h=On.get(e);if(h&&(h.flags|=8,On.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e<s.length;e++){let i=s[e];r(i,t,n,m,!!i.dynamicChildren)}},move:Fn,hydrate:In};function Fn(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),!On.has(e)&&(!d||jn(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function In(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,n){let r=n;for(;r;){if(r&&r.nodeType===8){if(r.data===`teleport start anchor`)t.targetStart=r;else if(r.data===`teleport anchor`){t.targetAnchor=r,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}}r=o(r)}}function p(e,t){t.anchor=d(o(e),t,s(e),n,r,i,a)}let m=t.target=Pn(t.props,c),h=jn(t.props);if(m){let c=m._lpa||m.firstChild;t.shapeFlag&16&&(h?(p(e,t),f(m,c),t.targetAnchor||zn(m,t,u,l,s(e)===m?e:null)):(t.anchor=o(e),f(m,c),t.targetAnchor||zn(m,t,u,l),d(c&&o(c),t,m,n,r,i,a))),Rn(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var Ln=yee;function Rn(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute(`data-v-owner`,n.uid),r=r.nextSibling;n.ut()}}function zn(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[kn]=o,e&&(r(a,e,i),r(o,e,i)),o}var Bn=Symbol(`_leaveCb`),Vn=Symbol(`_enterCb`);function Hn(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return mr(()=>{e.isMounted=!0}),_r(()=>{e.isUnmounting=!0}),e}var Un=[Function,Array],Wn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Un,onEnter:Un,onAfterEnter:Un,onEnterCancelled:Un,onBeforeLeave:Un,onLeave:Un,onAfterLeave:Un,onLeaveCancelled:Un,onBeforeAppear:Un,onAppear:Un,onAfterAppear:Un,onAppearCancelled:Un},Gn=e=>{let t=e.subTree;return t.component?Gn(t.component):t},Kn={name:`BaseTransition`,props:Wn,setup(e,{slots:t}){let n=Yi(),r=Hn();return()=>{let i=t.default&&er(t.default(),!0),a=i&&i.length?qn(i):n.subTree?Bi():void 0;if(!a)return;let o=Ft(e),{mode:s}=o;if(r.isLeaving)return Zn(a);let c=Qn(a);if(!c)return Zn(a);let l=Xn(c,o,r,n,e=>l=e);c.type!==Si&&$n(c,l);let u=n.subTree&&Qn(n.subTree);if(u&&u.type!==Si&&!Ni(u,c)&&Gn(n).type!==Si){let e=Xn(u,o,r,n);if($n(u,e),s===`out-in`&&c.type!==Si)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},Zn(a);s===`in-out`&&c.type!==Si?e.delayLeave=(e,t,n)=>{let i=Yn(r,u);i[String(u.key)]=u,e[Bn]=()=>{t(),e[Bn]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function qn(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==Si){t=n;break}}return t}var Jn=Kn;function Yn(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Xn(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=Yn(n,e),C=(e,t)=>{e&&tn(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),p(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=_||c;else return;t[Bn]&&t[Bn](!0);let i=S[x];i&&Ni(e,i)&&i.el[Bn]&&i.el[Bn](),C(r,[t])},enter(t){if(S[x]===e)return;let r=l,i=u,o=d;if(!n.isMounted)if(a)r=v||l,i=y||u,o=b||d;else return;let s=!1;t[Vn]=e=>{s||(s=!0,C(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[Vn]=void 0)};let c=t[Vn].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[Vn]&&t[Vn](!0),n.isUnmounting)return r();C(f,[t]);let a=!1;t[Bn]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[Bn]=void 0,S[i]===e&&delete S[i])};let o=t[Bn].bind(null,!1);S[i]=e,m?w(m,[t,o]):o()},clone(e){let a=Xn(e,t,n,r,i);return i&&i(a),a}};return T}function Zn(e){if(sr(e))return e=Ri(e),e.children=null,e}function Qn(e){if(!sr(e))return An(e.type)&&e.children?qn(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&_(n.default))return n.default()}}function $n(e,t){e.shapeFlag&6&&e.component?(e.transition=t,$n(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function er(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===bi?(o.patchFlag&128&&i++,r=r.concat(er(o.children,t,s))):(t||o.type!==Si)&&r.push(s==null?o:Ri(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function z(e,t){return _(e)?l({name:e.name},t,{setup:e}):e}function tr(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function nr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var rr=new WeakMap;function ir(e,t,n,i,a=!1){if(p(e)){e.forEach((e,r)=>ir(e,t&&(p(t)?t[r]:t),n,i,a));return}if(or(i)&&!a){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&ir(e,t,n,i.component.subTree);return}let s=i.shapeFlag&4?oa(i.component):i.el,c=a?null:s,{i:l,r:d}=e,m=t&&t.r,h=l.refs===r?l.refs={}:l.refs,g=l.setupState,y=Ft(g),b=g===r?o:e=>!nr(h,e)&&f(y,e),x=(e,t)=>!(t&&nr(h,t));if(m!=null&&m!==d){if(ar(t),v(m))h[m]=null,b(m)&&(g[m]=null);else if(zt(m)){let e=t;x(m,e.k)&&(m.value=null),e.k&&(h[e.k]=null)}}if(_(d)){Ue();try{en(d,l,12,[c,h])}finally{We()}}else{let t=v(d),r=zt(d);if(t||r){let i=()=>{if(e.f){let n=t?b(d)?g[d]:h[d]:x(d)||!e.k?d.value:h[e.k];if(a)p(n)&&u(n,s);else if(p(n))n.includes(s)||n.push(s);else if(t)h[d]=[s],b(d)&&(g[d]=h[d]);else{let t=[s];x(d,e.k)&&(d.value=t),e.k&&(h[e.k]=t)}}else t?(h[d]=c,b(d)&&(g[d]=c)):r&&(x(d,e.k)&&(d.value=c),e.k&&(h[e.k]=c))};if(c){let t=()=>{i(),rr.delete(e)};t.id=-1,rr.set(e,t),fi(t,n)}else ar(e),i()}}}function ar(e){let t=rr.get(e);t&&(t.flags|=8,rr.delete(e))}ae().requestIdleCallback,ae().cancelIdleCallback;var or=e=>!!e.type.__asyncLoader,sr=e=>e.type.__isKeepAlive;function cr(e,t){ur(e,`a`,t)}function lr(e,t){ur(e,`da`,t)}function ur(e,t,n=Ji){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(dr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)sr(e.parent.vnode)&&bee(r,t,n,e),e=e.parent}}function bee(e,t,n,r){let i=dr(t,e,r,!0);vr(()=>{u(r[t],i)},n)}function dr(e,t,n=Ji,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{Ue();let i=Qi(n),a=tn(t,n,e,r);return i(),We(),a};return r?i.unshift(a):i.push(a),a}}var fr=e=>(t,n=Ji)=>{(!ta||e===`sp`)&&dr(e,(...e)=>t(...e),n)},pr=fr(`bm`),mr=fr(`m`),hr=fr(`bu`),gr=fr(`u`),_r=fr(`bum`),vr=fr(`um`),xee=fr(`sp`),See=fr(`rtg`),Cee=fr(`rtc`);function wee(e,t=Ji){dr(`ec`,e,t)}var yr=`components`,Tee=`directives`;function br(e,t){return Cr(yr,e,!0,t)||e}var xr=Symbol.for(`v-ndc`);function Sr(e){return v(e)?Cr(yr,e,!1)||e:e||xr}function Eee(e){return Cr(Tee,e)}function Cr(e,t,n=!0,r=!1){let i=vn||Ji;if(i){let n=i.type;if(e===yr){let e=$ee(n,!1);if(e&&(e===t||e===A(t)||e===ee(A(t))))return n}let a=wr(i[e]||n[e],t)||wr(i.appContext[e],t);return!a&&r?n:a}}function wr(e,t){return e&&(e[t]||e[A(t)]||e[ee(A(t))])}function Tr(e,t,n,r){let i,a=n&&n[r],o=p(e);if(o||v(e)){let n=o&&jt(e),r=!1,s=!1;n&&(r=!Nt(e),s=Mt(e),e=it(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?Rt(Lt(e[n])):Lt(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(b(e))if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}else i=[];return n&&(n[r]=i),i}function Dee(e,t,n={},r,i){if(vn.ce||vn.parent&&or(vn.parent)&&vn.parent.ce){let e=Object.keys(n).length>0;return t!=="default"&&(n.name=t),Ei(),ji(bi,null,[V(`slot`,n,r&&r())],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),Ei();let o=a&&Er(a(n)),s=n.key||o&&o.key,c=ji(bi,{key:(s&&!y(s)?s:`_${t}`)+(!o&&r?`_fb`:``)},o||(r?r():[]),o&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),a&&a._c&&(a._d=!0),c}function Er(e){return e.some(e=>!Mi(e)||!(e.type===Si||e.type===bi&&!Er(e.children)))?e:null}var Dr=e=>e?ea(e)?oa(e):Dr(e.parent):null,Or=l(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Dr(e.parent),$root:e=>Dr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Pr(e),$forceUpdate:e=>e.f||=()=>{fn(e.update)},$nextTick:e=>e.n||=dn.bind(e.proxy),$watch:e=>_ee.bind(e)}),kr=(e,t)=>e!==r&&!e.__isScriptSetup&&f(e,t),Oee={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(t[0]!==`$`){let e=s[t];if(e!==void 0)switch(e){case 1:return i[t];case 2:return a[t];case 4:return n[t];case 3:return o[t]}else if(kr(i,t))return s[t]=1,i[t];else if(a!==r&&f(a,t))return s[t]=2,a[t];else if(f(o,t))return s[t]=3,o[t];else if(n!==r&&f(n,t))return s[t]=4,n[t];else jr&&(s[t]=0)}let u=Or[t],d,p;if(u)return t===`$attrs`&&et(e.attrs,`get`,``),u(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==r&&f(n,t))return s[t]=4,n[t];if(p=l.config.globalProperties,f(p,t))return p[t]},set({_:e},t,n){let{data:i,setupState:a,ctx:o}=e;return kr(a,t)?(a[t]=n,!0):i!==r&&f(i,t)?(i[t]=n,!0):f(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(n[c]||e!==r&&c[0]!==`$`&&f(e,c)||kr(t,c)||f(o,c)||f(i,c)||f(Or,c)||f(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?f(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function Ar(e){return p(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var jr=!0;function kee(e){let t=Pr(e),n=e.proxy,r=e.ctx;jr=!1,t.beforeCreate&&Mr(t.beforeCreate,e,`bc`);let{data:i,computed:o,methods:s,watch:c,provide:l,inject:u,created:d,beforeMount:f,mounted:m,beforeUpdate:h,updated:g,activated:v,deactivated:y,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:T,renderTracked:E,renderTriggered:D,errorCaptured:O,serverPrefetch:k,expose:A,inheritAttrs:j,components:M,directives:ee,filters:N}=t;if(u&&Aee(u,r,null),s)for(let e in s){let t=s[e];_(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);b(t)&&(e.data=Dt(t))}if(jr=!0,o)for(let e in o){let t=o[e],i=U({get:_(t)?t.bind(n,n):_(t.get)?t.get.bind(n,n):a,set:!_(t)&&_(t.set)?t.set.bind(n):a});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(c)for(let e in c)Nr(c[e],r,n,e);if(l){let e=_(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Cn(t,e[t])})}d&&Mr(d,e,`c`);function P(e,t){p(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(P(pr,f),P(mr,m),P(hr,h),P(gr,g),P(cr,v),P(lr,y),P(wee,O),P(Cee,E),P(See,D),P(_r,S),P(vr,w),P(xee,k),p(A))if(A.length){let t=e.exposed||={};A.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};T&&e.render===a&&(e.render=T),j!=null&&(e.inheritAttrs=j),M&&(e.components=M),ee&&(e.directives=ee),k&&tr(e)}function Aee(e,t,n=a){p(e)&&(e=Lr(e));for(let n in e){let r=e[n],i;i=b(r)?`default`in r?wn(r.from||n,r.default,!0):wn(r.from||n):wn(r),zt(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Mr(e,t,n){tn(p(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Nr(e,t,n,r){let i=r.includes(`.`)?Dn(n,r):()=>n[r];if(v(e)){let n=t[e];_(n)&&R(i,n)}else if(_(e))R(i,e.bind(n));else if(b(e))if(p(e))e.forEach(e=>Nr(e,t,n,r));else{let r=_(e.handler)?e.handler.bind(n):t[e.handler];_(r)&&R(i,r,e)}}function Pr(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Fr(c,e,o,!0)),Fr(c,t,o)),b(t)&&a.set(t,c),c}function Fr(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Fr(e,a,n,!0),i&&i.forEach(t=>Fr(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=jee[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var jee={data:Ir,props:Br,emits:Br,methods:zr,computed:zr,beforeCreate:Rr,created:Rr,beforeMount:Rr,mounted:Rr,beforeUpdate:Rr,updated:Rr,beforeDestroy:Rr,beforeUnmount:Rr,destroyed:Rr,unmounted:Rr,activated:Rr,deactivated:Rr,errorCaptured:Rr,serverPrefetch:Rr,components:zr,directives:zr,watch:Nee,provide:Ir,inject:Mee};function Ir(e,t){return t?e?function(){return l(_(e)?e.call(this,this):e,_(t)?t.call(this,this):t)}:t:e}function Mee(e,t){return zr(Lr(e),Lr(t))}function Lr(e){if(p(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Rr(e,t){return e?[...new Set([].concat(e,t))]:t}function zr(e,t){return e?l(Object.create(null),e,t):t}function Br(e,t){return e?p(e)&&p(t)?[...new Set([...e,...t])]:l(Object.create(null),Ar(e),Ar(t??{})):t}function Nee(e,t){if(!e)return t;if(!t)return e;let n=l(Object.create(null),e);for(let r in t)n[r]=Rr(e[r],t[r]);return n}function Vr(){return{app:null,config:{isNativeTag:o,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var Pee=0;function Fee(e,t){return function(n,r=null){_(n)||(n=l({},n)),r!=null&&!b(r)&&(r=null);let i=Vr(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:Pee++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:tte,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&_(e.install)?(a.add(e),e.install(c,...t)):_(e)&&(a.add(e),e(c,...t))),c},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),c},component(e,t){return t?(i.components[e]=t,c):i.components[e]},directive(e,t){return t?(i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(!s){let u=c._ceVNode||V(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,oa(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(tn(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return i.provides[e]=t,c},runWithContext(e){let t=Hr;Hr=c;try{return e()}finally{Hr=t}}};return c}}var Hr=null,Iee=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${A(t)}Modifiers`]||e[`${M(t)}Modifiers`];function Lee(e,t,...n){if(e.isUnmounted)return;let i=e.vnode.props||r,a=n,o=t.startsWith(`update:`),s=o&&Iee(i,t.slice(7));s&&(s.trim&&(a=n.map(e=>v(e)?e.trim():e)),s.number&&(a=n.map(ne)));let c,l=i[c=N(t)]||i[c=N(A(t))];!l&&o&&(l=i[c=N(M(t))]),l&&tn(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,tn(u,e,6,a)}}var Ree=new WeakMap;function Ur(e,t,n=!1){let r=n?Ree:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!_(e)){let r=e=>{let n=Ur(e,t,!0);n&&(s=!0,l(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(b(e)&&r.set(e,null),null):(p(a)?a.forEach(e=>o[e]=null):l(o,a),b(e)&&r.set(e,o),o)}function Wr(e,t){return!e||!s(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),f(e,t[0].toLowerCase()+t.slice(1))||f(e,M(t))||f(e,t))}function Gr(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=bn(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Vi(u.call(t,e,d,f,m,p,h)),y=s}else{let e=t;v=Vi(e.length>1?e(f,{attrs:s,slots:o,emit:l}):e(f,null)),y=t.props?s:Kr(s)}}catch(t){wi.length=0,nn(t,e,1),v=V(Si)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(c)&&(y=qr(y,a)),b=Ri(b,y,!1,!0))}return n.dirs&&(b=Ri(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&$n(b,n.transition),v=b,bn(_),v}var Kr=e=>{let t;for(let n in e)(n===`class`||n===`style`||s(n))&&((t||={})[n]=e[n]);return t},qr=(e,t)=>{let n={};for(let r in e)(!c(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Jr(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Yr(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(Xr(o,r,n)&&!Wr(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||Yr(r,o,l):!!o;return!1}function Yr(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(Xr(t,e,a)&&!Wr(n,a))return!0}return!1}function Xr(e,t,n){let r=e[n],i=t[n];return n===`style`&&b(r)&&b(i)?!ge(r,i):r!==i}function Zr({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var Qr={},$r=()=>Object.create(Qr),ei=e=>Object.getPrototypeOf(e)===Qr;function ti(e,t,n,r=!1){let i={},a=$r();e.propsDefaults=Object.create(null),ri(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:Ot(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function ni(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=Ft(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(Wr(e.emitsOptions,o))continue;let u=t[o];if(c)if(f(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=A(o);i[t]=ii(c,s,t,u,e,!1)}else u!==a[o]&&(a[o]=u,l=!0)}}}else{ri(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!f(t,a)&&((r=M(a))===a||!f(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=ii(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!f(t,e))&&(delete a[e],l=!0)}l&&tt(e.attrs,`set`,``)}function ri(e,t,n,i){let[a,o]=e.propsOptions,s=!1,c;if(t)for(let r in t){if(D(r))continue;let l=t[r],u;a&&f(a,u=A(r))?!o||!o.includes(u)?n[u]=l:(c||={})[u]=l:Wr(e.emitsOptions,r)||(!(r in i)||l!==i[r])&&(i[r]=l,s=!0)}if(o){let t=Ft(n),i=c||r;for(let r=0;r<o.length;r++){let s=o[r];n[s]=ii(a,t,s,i[s],e,!f(i,s))}}return s}function ii(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=f(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&_(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=Qi(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===M(n))&&(r=!0))}return r}var zee=new WeakMap;function ai(e,t,n=!1){let a=n?zee:t.propsCache,o=a.get(e);if(o)return o;let s=e.props,c={},u=[],d=!1;if(!_(e)){let r=e=>{d=!0;let[n,r]=ai(e,t,!0);l(c,n),r&&u.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!d)return b(e)&&a.set(e,i),i;if(p(s))for(let e=0;e<s.length;e++){let t=A(s[e]);oi(t)&&(c[t]=r)}else if(s)for(let e in s){let t=A(e);if(oi(t)){let n=s[e],r=c[t]=p(n)||_(n)?{type:n}:l({},n),i=r.type,a=!1,o=!0;if(p(i))for(let e=0;e<i.length;++e){let t=i[e],n=_(t)&&t.name;if(n===`Boolean`){a=!0;break}else n===`String`&&(o=!1)}else a=_(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||f(r,`default`))&&u.push(t)}}let m=[c,u];return b(e)&&a.set(e,m),m}function oi(e){return e[0]!==`$`&&!D(e)}var si=e=>e===`_`||e===`_ctx`||e===`$stable`,ci=e=>p(e)?e.map(Vi):[Vi(e)],Bee=(e,t,n)=>{if(t._n)return t;let r=L((...e)=>ci(t(...e)),n);return r._c=!1,r},li=(e,t,n)=>{let r=e._ctx;for(let n in e){if(si(n))continue;let i=e[n];if(_(i))t[n]=Bee(n,i,r);else if(i!=null){let e=ci(i);t[n]=()=>e}}},ui=(e,t)=>{let n=ci(t);e.slots.default=()=>n},di=(e,t,n)=>{for(let r in t)(n||!si(r))&&(e[r]=t[r])},Vee=(e,t,n)=>{let r=e.slots=$r();if(e.vnode.shapeFlag&32){let e=t._;e?(di(r,t,n),n&&te(r,`_`,e,!0)):li(t,r)}else t&&ui(e,t)},Hee=(e,t,n)=>{let{vnode:i,slots:a}=e,o=!0,s=r;if(i.shapeFlag&32){let e=t._;e?n&&e===1?o=!1:di(a,t,n):(o=!t.$stable,li(t,a)),s=t}else t&&(ui(e,t),s={default:1});if(o)for(let e in a)!si(e)&&s[e]==null&&delete a[e]},fi=qee;function Uee(e){return Wee(e)}function Wee(e,t){let n=ae();n.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=a,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Ni(e,t)&&(r=pe(e),ce(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case xi:y(e,t,n,r);break;case Si:b(e,t,n,r);break;case Ci:e??x(t,n,r,o);break;case bi:M(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?ee(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,ge)}u!=null&&i?ir(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&ir(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)T(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),k(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},T=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&O(e.children,d,null,r,i,pi(e,a),s,u),_&&Sn(e,null,r,`created`),E(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!D(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Wi(f,r,e)}_&&Sn(e,null,r,`beforeMount`);let v=Gee(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&fi(()=>{try{f&&Wi(f,r,e),v&&g.enter(d),_&&Sn(e,null,r,`mounted`)}finally{}},i)},E=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||yi(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;E(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},O=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?Hi(e[l]):Vi(e[l]);v(null,c,t,n,r,i,a,o,s)}},k=(e,t,n,i,a,o,s)=>{let l=t.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=e.patchFlag&16;let m=e.props||r,h=t.props||r,g;if(n&&mi(n,!1),(g=h.onVnodeBeforeUpdate)&&Wi(g,n,t,e),f&&Sn(t,e,n,`beforeUpdate`),n&&mi(n,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?A(e.dynamicChildren,d,l,n,i,pi(t,a),o):s||re(e,t,l,null,n,i,pi(t,a),o,!1),u>0){if(u&16)j(l,m,h,n,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],i=m[r],o=h[r];(o!==i||r===`value`)&&c(l,r,i,o,a,n)}}u&1&&e.children!==t.children&&p(l,t.children)}else!s&&d==null&&j(l,m,h,n,a);((g=h.onVnodeUpdated)||f)&&fi(()=>{g&&Wi(g,n,t,e),f&&Sn(t,e,n,`updated`)},i)},A=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s],u=c.el&&(c.type===bi||!Ni(c,l)||c.shapeFlag&198)?m(c.el):n;v(c,l,u,null,r,i,a,o,!0)}},j=(e,t,n,i,a)=>{if(t!==n){if(t!==r)for(let r in t)!D(r)&&!(r in n)&&c(e,r,t[r],null,a,i);for(let r in n){if(D(r))continue;let o=n[r],s=t[r];o!==s&&r!==`value`&&c(e,r,s,o,a,i)}`value`in n&&c(e,`value`,t.value,n.value,a)}},M=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),O(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(A(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&hi(e,t,!0)):re(e,t,n,f,i,a,s,c,l)},ee=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):N(t,n,r,i,a,o,c):P(e,t,c)},N=(e,t,n,r,i,a,o)=>{let s=e.component=qi(e,r,i);if(sr(e)&&(s.ctx.renderer=ge),Yee(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,te,o),!e.el){let r=s.subTree=V(Si);b(null,r,t,n),e.placeholder=r.el}}else te(s,e,t,n,i,a,o)},P=(e,t,n)=>{let r=t.component=e.component;if(Jr(e,t,n))if(r.asyncDep&&!r.asyncResolved){ne(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},te=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=gi(e);if(n){t&&(t.el=c.el,ne(e,t,o)),n.asyncDep.then(()=>{fi(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;mi(e,!1),t?(t.el=c.el,ne(e,t,o)):t=c,n&&F(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Wi(d,s,t,c),mi(e,!0);let f=Gr(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),pe(p),e,i,a),t.el=f.el,u===null&&Zr(e,f.el),r&&fi(r,i),(d=t.props&&t.props.onVnodeUpdated)&&fi(()=>Wi(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=or(t);if(mi(e,!1),l&&F(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Wi(o,d,t),mi(e,!0),s&&ve){let t=()=>{e.subTree=Gr(e),ve(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=Gr(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&fi(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;fi(()=>Wi(o,d,e),i)}(t.shapeFlag&256||d&&or(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&fi(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Oe(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>fn(u),mi(e,!0),l()},ne=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,ni(e,t.props,r,n),Hee(e,t.children,n),Ue(),mn(e),We()},re=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){oe(l,d,n,r,i,a,o,s,c);return}else if(f&256){ie(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&fe(l,i,a),d!==l&&p(n,d)):u&16?m&16?oe(l,d,n,r,i,a,o,s,c):fe(l,i,a,!0):(u&8&&p(n,``),m&16&&O(d,n,r,i,a,o,s,c))},ie=(e,t,n,r,a,o,s,c,l)=>{e||=i,t||=i;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;p<f;p++){let r=t[p]=l?Hi(t[p]):Vi(t[p]);v(e[p],r,n,null,a,o,s,c,l)}u>d?fe(e,a,o,!0,!1,f):O(t,n,r,a,o,s,c,l,f)},oe=(e,t,n,r,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let r=e[u],i=t[u]=l?Hi(t[u]):Vi(t[u]);if(Ni(r,i))v(r,i,n,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let r=e[f],i=t[p]=l?Hi(t[p]):Vi(t[p]);if(Ni(r,i))v(r,i,n,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,i=e<d?t[e].el:r;for(;u<=p;)v(null,t[u]=l?Hi(t[u]):Vi(t[u]),n,i,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)ce(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?Hi(t[u]):Vi(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u<b;u++)C[u]=0;for(u=m;u<=f;u++){let r=e[u];if(y>=b){ce(r,a,o,!0);continue}let i;if(r.key!=null)i=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&Ni(r,t[_])){i=_;break}i===void 0?ce(r,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(r,t[i],n,null,a,o,s,c,l),y++)}let w=x?Kee(C):i;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,i=t[e],f=t[e+1],p=e+1<d?f.el||vi(f):r;C[u]===0?v(null,i,n,p,a,o,s,c,l):x&&(_<0||u!==w[_]?se(i,n,p,2):_--)}}},se=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){se(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,ge);return}if(c===bi){o(a,t,n);for(let e=0;e<u.length;e++)se(u[e],t,n,r);o(e.anchor,t,n);return}if(c===Ci){S(e,t,n);return}if(r!==2&&d&1&&l)if(r===0)l.persisted&&!a[Bn]?o(a,t,n):(l.beforeEnter(a),o(a,t,n),fi(()=>l.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[Bn];a._isLeaving&&a[Bn](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}else o(a,t,n)},ce=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(Ue(),ir(s,null,n,e,!0),We()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!or(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Wi(_,t,e),u&6)de(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Sn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,ge,r):l&&!l.hasOnce&&(a!==bi||d>0&&d&64)?fe(l,t,n,!1,!0):(a===bi&&d&384||!i&&u&16)&&fe(c,t,n),r&&le(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&fi(()=>{_&&Wi(_,t,e),h&&Sn(e,null,t,`unmounted`),v&&(e.el=null)},n)},le=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===bi){ue(n,r);return}if(t===Ci){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},ue=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},de=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;_i(c),_i(l),r&&F(r),i.stop(),a&&(a.flags|=8,ce(o,e,t,n)),s&&fi(s,t),fi(()=>{e.isUnmounted=!0},t)},fe=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)ce(e[o],t,n,r,i)},pe=e=>{if(e.shapeFlag&6)return pe(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[kn];return n?h(n):t},me=!1,he=(e,t,n)=>{let r;e==null?t._vnode&&(ce(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,me||=(me=!0,mn(r),hn(),!1)},ge={p:v,um:ce,m:se,r:le,mt:N,mc:O,pc:re,pbc:A,n:pe,o:e},_e,ve;return t&&([_e,ve]=t(ge)),{render:he,hydrate:_e,createApp:Fee(he,_e)}}function pi({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function mi({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Gee(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function hi(e,t,n=!1){let r=e.children,i=t.children;if(p(r)&&p(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=Hi(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&hi(t,a)),a.type===xi&&(a.patchFlag===-1&&(a=i[e]=Hi(a)),a.el=t.el),a.type===Si&&!a.el&&(a.el=t.el)}}function Kee(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function gi(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:gi(t)}function _i(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function vi(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?vi(t.subTree):null}var yi=e=>e.__isSuspense;function qee(e,t){t&&t.pendingBranch?p(e)?t.effects.push(...e):t.effects.push(e):mee(e)}var bi=Symbol.for(`v-fgt`),xi=Symbol.for(`v-txt`),Si=Symbol.for(`v-cmt`),Ci=Symbol.for(`v-stc`),wi=[],Ti=null;function Ei(e=!1){wi.push(Ti=e?null:[])}function Jee(){wi.pop(),Ti=wi[wi.length-1]||null}var Di=1;function Oi(e,t=!1){Di+=e,e<0&&Ti&&t&&(Ti.hasOnce=!0)}function ki(e){return e.dynamicChildren=Di>0?Ti||i:null,Jee(),Di>0&&Ti&&Ti.push(e),e}function Ai(e,t,n,r,i,a){return ki(B(e,t,n,r,i,a,!0))}function ji(e,t,n,r,i){return ki(V(e,t,n,r,i,!0))}function Mi(e){return e?e.__v_isVNode===!0:!1}function Ni(e,t){return e.type===t.type&&e.key===t.key}var Pi=({key:e})=>e??null,Fi=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:v(e)||zt(e)||_(e)?{i:vn,r:e,k:t,f:!!n}:e);function B(e,t=null,n=null,r=0,i=null,a=e===bi?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Pi(t),ref:t&&Fi(t),scopeId:yn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:vn};return s?(Ui(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=v(n)?8:16),Di>0&&!o&&Ti&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Ti.push(c),c}var V=Ii;function Ii(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===xr)&&(e=Si),Mi(e)){let r=Ri(e,t,!0);return n&&Ui(r,n),Di>0&&!a&&Ti&&(r.shapeFlag&6?Ti[Ti.indexOf(e)]=r:Ti.push(r)),r.patchFlag=-2,r}if(ete(e)&&(e=e.__vccOpts),t){t=Li(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=de(e)),b(n)&&(Pt(n)&&!p(n)&&(n=l({},n)),t.style=oe(n))}let o=v(e)?1:yi(e)?128:An(e)?64:b(e)?4:_(e)?2:0;return B(e,t,n,r,i,o,a,!0)}function Li(e){return e?Pt(e)||ei(e)?l({},e):e:null}function Ri(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?H(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Pi(l),ref:t&&t.ref?n&&a?p(a)?a.concat(Fi(t)):[a,Fi(t)]:Fi(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==bi?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ri(e.ssContent),ssFallback:e.ssFallback&&Ri(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&$n(u,c.clone(u)),u}function zi(e=` `,t=0){return V(xi,null,e,t)}function Bi(e=``,t=!1){return t?(Ei(),ji(Si,null,e)):V(Si,null,e)}function Vi(e){return e==null||typeof e==`boolean`?V(Si):p(e)?V(bi,null,e.slice()):Mi(e)?Hi(e):V(xi,null,String(e))}function Hi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ri(e)}function Ui(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(p(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Ui(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!ei(t)?t._ctx=vn:r===3&&vn&&(vn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(_(t)){if(r&65){Ui(e,{default:t});return}t={default:t,_ctx:vn},n=32}else t=String(t),r&64?(n=16,t=[zi(t)]):n=8;e.children=t,e.shapeFlag|=n}function H(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=de([t.class,r.class]));else if(e===`style`)t.style=oe([t.style,r.style]);else if(s(e)){let n=t[e],i=r[e];i&&n!==i&&!(p(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!c(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function Wi(e,t,n,r=null){tn(e,t,7,[n,r])}var Gi=Vr(),Ki=0;function qi(e,t,n){let i=e.type,a=(t?t.appContext:e.appContext)||Gi,o={uid:Ki++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Se(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ai(i,a),emitsOptions:Ur(i,a),emit:null,emitted:null,propsDefaults:r,inheritAttrs:i.inheritAttrs,ctx:r,data:r,props:r,attrs:r,slots:r,refs:r,setupState:r,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Lee.bind(null,o),e.ce&&e.ce(o),o}var Ji=null,Yi=()=>Ji||vn,Xi,Zi;{let e=ae(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Xi=t(`__VUE_INSTANCE_SETTERS__`,e=>Ji=e),Zi=t(`__VUE_SSR_SETTERS__`,e=>ta=e)}var Qi=e=>{let t=Ji;return Xi(e),e.scope.on(),()=>{e.scope.off(),Xi(t)}},$i=()=>{Ji&&Ji.scope.off(),Xi(null)};function ea(e){return e.vnode.shapeFlag&4}var ta=!1;function Yee(e,t=!1,n=!1){t&&Zi(t);let{props:r,children:i}=e.vnode,a=ea(e);ti(e,r,a,t),Vee(e,i,n||t);let o=a?Xee(e,t):void 0;return t&&Zi(!1),o}function Xee(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Oee);let{setup:r}=n;if(r){Ue();let n=e.setupContext=r.length>1?Qee(e):null,i=Qi(e),a=en(r,e,0,[e.props,n]),o=x(a);if(We(),i(),(o||e.sp)&&!or(e)&&tr(e),o){if(a.then($i,$i),t)return a.then(n=>{na(e,n,t)}).catch(t=>{nn(t,e,0)});e.asyncDep=a}else na(e,a,t)}else aa(e,t)}function na(e,t,n){_(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=Ut(t)),aa(e,n)}var ra,ia;function aa(e,t,n){let r=e.type;if(!e.render){if(!t&&ra&&!r.render){let t=r.template||Pr(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r;r.render=ra(t,l(l({isCustomElement:n,delimiters:a},i),o))}}e.render=r.render||a,ia&&ia(e)}{let t=Qi(e);Ue();try{kee(e)}finally{We(),t()}}}var Zee={get(e,t){return et(e,`get`,``),e[t]}};function Qee(e){return{attrs:new Proxy(e.attrs,Zee),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function oa(e){return e.exposed?e.exposeProxy||=new Proxy(Ut(It(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Or)return Or[n](e)},has(e,t){return t in e||t in Or}}):e.proxy}function $ee(e,t=!0){return _(e)?e.displayName||e.name:e.name||t&&e.__name}function ete(e){return _(e)&&`__vccOpts`in e}var U=(e,t)=>qt(e,t,ta);function sa(e,t,n){try{Oi(-1);let r=arguments.length;return r===2?b(t)&&!p(t)?Mi(t)?V(e,null,[t]):V(e,t):V(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Mi(n)&&(n=[n]),V(e,t,n))}finally{Oi(1)}}var tte=`3.5.39`,ca=void 0,la=typeof window<`u`&&window.trustedTypes;if(la)try{ca=la.createPolicy(`vue`,{createHTML:e=>e})}catch{}var ua=ca?e=>ca.createHTML(e):e=>e,nte=`http://www.w3.org/2000/svg`,rte=`http://www.w3.org/1998/Math/MathML`,da=typeof document<`u`?document:null,fa=da&&da.createElement(`template`),ite={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?da.createElementNS(nte,e):t===`mathml`?da.createElementNS(rte,e):n?da.createElement(e,{is:n}):da.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>da.createTextNode(e),createComment:e=>da.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>da.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{fa.innerHTML=ua(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=fa.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},pa=`transition`,ma=`animation`,ha=Symbol(`_vtc`),ga={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},_a=l({},Wn,ga),va=(e=>(e.displayName=`Transition`,e.props=_a,e))((e,{slots:t})=>sa(Jn,xa(e),t)),ya=(e,t=[])=>{p(e)?e.forEach(e=>e(...t)):e&&e(...t)},ba=e=>e?p(e)?e.some(e=>e.length>1):e.length>1:!1;function xa(e){let t={};for(let n in e)n in ga||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:u=o,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=ate(i),g=h&&h[0],_=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:w=y,onAppearCancelled:T=b}=t,E=(e,t,n,r)=>{e._enterCancelled=r,wa(e,t?d:s),wa(e,t?u:o),n&&n()},D=(e,t)=>{e._isLeaving=!1,wa(e,f),wa(e,m),wa(e,p),t&&t()},O=e=>(t,n)=>{let i=e?w:y,o=()=>E(t,e,n);ya(i,[t,o]),Ta(()=>{wa(t,e?c:a),Ca(t,e?d:s),ba(i)||Ea(t,r,g,o)})};return l(t,{onBeforeEnter(e){ya(v,[e]),Ca(e,a),Ca(e,o)},onBeforeAppear(e){ya(C,[e]),Ca(e,c),Ca(e,u)},onEnter:O(!1),onAppear:O(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>D(e,t);Ca(e,f),e._enterCancelled?(Ca(e,p),Aa(e)):(Aa(e),Ca(e,p)),Ta(()=>{e._isLeaving&&(wa(e,f),Ca(e,m),ba(x)||Ea(e,r,_,n))}),ya(x,[e,n])},onEnterCancelled(e){E(e,!1,void 0,!0),ya(b,[e])},onAppearCancelled(e){E(e,!0,void 0,!0),ya(T,[e])},onLeaveCancelled(e){D(e),ya(S,[e])}})}function ate(e){if(e==null)return null;if(b(e))return[Sa(e.enter),Sa(e.leave)];{let t=Sa(e);return[t,t]}}function Sa(e){return re(e)}function Ca(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[ha]||(e[ha]=new Set)).add(t)}function wa(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[ha];n&&(n.delete(t),n.size||(e[ha]=void 0))}function Ta(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var ote=0;function Ea(e,t,n,r){let i=e._endId=++ote,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Da(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function Da(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${pa}Delay`),a=r(`${pa}Duration`),o=Oa(i,a),s=r(`${ma}Delay`),c=r(`${ma}Duration`),l=Oa(s,c),u=null,d=0,f=0;t===pa?o>0&&(u=pa,d=o,f=a.length):t===ma?l>0&&(u=ma,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?pa:ma:null,f=u?u===pa?a.length:c.length:0);let p=u===pa&&/\b(?:transform|all)(?:,|$)/.test(r(`${pa}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Oa(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>ka(t)+ka(e[n])))}function ka(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Aa(e){return(e?e.ownerDocument:document).body.offsetHeight}function ste(e,t,n){let r=e[ha];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var ja=Symbol(`_vod`),Ma=Symbol(`_vsh`),Na={name:`show`,beforeMount(e,{value:t},{transition:n}){e[ja]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Pa(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Pa(e,!0),r.enter(e)):r.leave(e,()=>{Pa(e,!1)}):Pa(e,t))},beforeUnmount(e,{value:t}){Pa(e,t)}};function Pa(e,t){e.style.display=t?e[ja]:`none`,e[Ma]=!t}var cte=Symbol(``),lte=/(?:^|;)\s*display\s*:/;function ute(e,t,n){let r=e.style,i=v(n),a=!1;if(n&&!i){if(t)if(v(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??Ia(r,t,``)}else for(let e in t)n[e]??Ia(r,e,``);for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?Ia(r,i,``):fte(e,i,!v(t)&&t?t[i]:void 0,o)||Ia(r,i,o)}}else if(i){if(t!==n){let e=r[cte];e&&(n+=`;`+e),r.cssText=n,a=lte.test(n)}}else t&&e.removeAttribute(`style`);ja in e&&(e[ja]=a?r.display:``,e[Ma]&&(r.display=`none`))}var Fa=/\s*!important$/;function Ia(e,t,n){if(p(n))n.forEach(n=>Ia(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=dte(e,t);Fa.test(n)?e.setProperty(M(r),n.replace(Fa,``),`important`):e[r]=n}}var La=[`Webkit`,`Moz`,`ms`],Ra={};function dte(e,t){let n=Ra[t];if(n)return n;let r=A(t);if(r!==`filter`&&r in e)return Ra[t]=r;r=ee(r);for(let n=0;n<La.length;n++){let i=La[n]+r;if(i in e)return Ra[t]=i}return t}function fte(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&v(r)&&n===r}var za=`http://www.w3.org/1999/xlink`;function Ba(e,t,n,r,i,a=pe(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(za,t.slice(6,t.length)):e.setAttributeNS(za,t,n):n==null||a&&!me(n)?e.removeAttribute(t):e.setAttribute(t,a?``:y(n)?String(n):n)}function Va(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?ua(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=me(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function pte(e,t,n,r){e.addEventListener(t,n,r)}function mte(e,t,n,r){e.removeEventListener(t,n,r)}var Ha=Symbol(`_vei`);function hte(e,t,n,r,i=null){let a=e[Ha]||(e[Ha]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=vte(t);r?pte(e,n,a[t]=xte(r,i),s):o&&(mte(e,n,o,s),a[t]=void 0)}}var gte=/(Once|Passive|Capture)$/,_te=/^on:?(?:Once|Passive|Capture)$/;function vte(e){let t,n;for(;(n=e.match(gte))&&!_te.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):M(e.slice(2)),t]}var Ua=0,yte=Promise.resolve(),bte=()=>Ua||=(yte.then(()=>Ua=0),Date.now());function xte(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(p(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&tn(e,t,5,a)}}else tn(r,t,5,[e])};return n.value=e,n.attached=bte(),n}var Wa=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ste=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?ste(e,r,o):t===`style`?ute(e,n,r):s(t)?c(t)||hte(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):Cte(e,t,r,o))?(Va(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Ba(e,t,r,o,a,t!==`value`)):e._isVueCE&&(wte(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!v(r)))?Va(e,A(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Ba(e,t,r,o))};function Cte(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Wa(t)&&_(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return Wa(t)&&v(n)?!1:t in e}function wte(e,t){let n=e._def.props;if(!n)return!1;let r=A(t);return Array.isArray(n)?n.some(e=>A(e)===r):Object.keys(n).some(e=>A(e)===r)}var Ga=new WeakMap,Ka=new WeakMap,qa=Symbol(`_moveCb`),Ja=Symbol(`_enterCb`),Tte=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:l({},_a,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=Yi(),r=Hn(),i,a;return gr(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!kte(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(Ete),i.forEach(Dte);let r=i.filter(Ote);Aa(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;Ca(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[qa]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[qa]=null,wa(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=Ft(e),s=xa(o),c=o.tag||bi;if(i=[],a)for(let e=0;e<a.length;e++){let t=a[e];t.el&&t.el instanceof Element&&!t.el[Ma]&&(i.push(t),$n(t,Xn(t,s,r,n)),Ga.set(t,Ya(t.el)))}a=t.default?er(t.default()):[];for(let e=0;e<a.length;e++){let t=a[e];t.key!=null&&$n(t,Xn(t,s,r,n))}return V(c,null,a)}}});function Ete(e){let t=e.el;t[qa]&&t[qa](),t[Ja]&&t[Ja]()}function Dte(e){Ka.set(e,Ya(e.el))}function Ote(e){let t=Ga.get(e),n=Ka.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),(!Number.isFinite(o)||o===0)&&(o=1),(!Number.isFinite(s)||s===0)&&(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function Ya(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function kte(e,t,n){let r=e.cloneNode(),i=e[ha];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=Da(r);return a.removeChild(r),o}var Ate=l({patchProp:Ste},ite),jte;function Xa(){return jte||=Uee(Ate)}var Za=((...e)=>{Xa().render(...e)}),Mte=((...e)=>{let t=Xa().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Pte(e);if(!r)return;let i=t._component;!_(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Nte(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function Nte(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Pte(e){return v(e)?document.querySelector(e):e}var Fte=typeof window<`u`,Ite=Symbol(),Lte;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(Lte||={});var Qa=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function Rte(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function $a(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){zte(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function eo(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function to(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var no=typeof navigator==`object`?navigator:{userAgent:``},ro=/Macintosh/.test(no.userAgent)&&/AppleWebKit/.test(no.userAgent)&&!/Safari/.test(no.userAgent),zte=Fte?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!ro?Bte:`msSaveOrOpenBlob`in no?Vte:Hte:()=>{};function Bte(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?to(r):eo(r.href)?$a(e,t,n):(r.target=`_blank`,to(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){to(r)},0))}function Vte(e,t=`download`,n){if(typeof e==`string`)if(eo(e))$a(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){to(t)})}else navigator.msSaveOrOpenBlob(Rte(e,n),t)}function Hte(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return $a(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(Qa.HTMLElement))||`safari`in Qa,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||ro)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:Ute}=Object;function Wte(){let e=Ce(!0),t=e.run(()=>I({})),n=[],r=[],i=It({install(e){i._a=e,e.provide(Ite,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}var{assign:Gte}=Object;function io(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ao(e,t){if(e){if(typeof e==`string`)return io(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?io(e,t):void 0}}function Kte(e){if(Array.isArray(e))return io(e)}function oo(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function qte(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W(e){return Kte(e)||oo(e)||ao(e)||qte()}function so(e){"@babel/helpers - typeof";return so=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},so(e)}function Jte(e,t){if(so(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(so(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function co(e){var t=Jte(e,`string`);return so(t)==`symbol`?t:t+``}function G(e,t,n){return(t=co(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lo=typeof global==`object`&&global&&global.Object===Object&&global,Yte=typeof self==`object`&&self&&self.Object===Object&&self,uo=lo||Yte||Function(`return this`)(),fo=uo.Symbol,po=Object.prototype,mo=po.hasOwnProperty,Xte=po.toString,ho=fo?fo.toStringTag:void 0;function Zte(e){var t=mo.call(e,ho),n=e[ho];try{e[ho]=void 0;var r=!0}catch{}var i=Xte.call(e);return r&&(t?e[ho]=n:delete e[ho]),i}var Qte=Object.prototype.toString;function $te(e){return Qte.call(e)}var go=`[object Null]`,_o=`[object Undefined]`,vo=fo?fo.toStringTag:void 0;function yo(e){return e==null?e===void 0?_o:go:vo&&vo in Object(e)?Zte(e):$te(e)}function bo(e){return typeof e==`object`&&!!e}var ene=`[object Symbol]`;function xo(e){return typeof e==`symbol`||bo(e)&&yo(e)==ene}function So(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var K=Array.isArray,tne=1/0,Co=fo?fo.prototype:void 0,wo=Co?Co.toString:void 0;function To(e){if(typeof e==`string`)return e;if(K(e))return So(e,To)+``;if(xo(e))return wo?wo.call(e):``;var t=e+``;return t==`0`&&1/e==-tne?`-0`:t}var nne=/\s/;function Eo(e){for(var t=e.length;t--&&nne.test(e.charAt(t)););return t}var rne=/^\s+/;function ine(e){return e&&e.slice(0,Eo(e)+1).replace(rne,``)}function Do(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var Oo=NaN,ane=/^[-+]0x[0-9a-f]+$/i,one=/^0b[01]+$/i,sne=/^0o[0-7]+$/i,cne=parseInt;function ko(e){if(typeof e==`number`)return e;if(xo(e))return Oo;if(Do(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Do(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=ine(e);var n=one.test(e);return n||sne.test(e)?cne(e.slice(2),n?2:8):ane.test(e)?Oo:+e}var Ao=1/0,lne=17976931348623157e292;function jo(e){return e?(e=ko(e),e===Ao||e===-Ao?(e<0?-1:1)*lne:e===e?e:0):e===0?e:0}function Mo(e){var t=jo(e),n=t%1;return t===t?n?t-n:t:0}function No(e){return e}var une=`[object AsyncFunction]`,dne=`[object Function]`,fne=`[object GeneratorFunction]`,pne=`[object Proxy]`;function q(e){if(!Do(e))return!1;var t=yo(e);return t==dne||t==fne||t==une||t==pne}var Po=uo[`__core-js_shared__`],Fo=function(){var e=/[^.]+$/.exec(Po&&Po.keys&&Po.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function mne(e){return!!Fo&&Fo in e}var hne=Function.prototype.toString;function Io(e){if(e!=null){try{return hne.call(e)}catch{}try{return e+``}catch{}}return``}var gne=/[\\^$.*+?()[\]{}|]/g,_ne=/^\[object .+?Constructor\]$/,vne=Function.prototype,yne=Object.prototype,bne=vne.toString,xne=yne.hasOwnProperty,Sne=RegExp(`^`+bne.call(xne).replace(gne,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function Cne(e){return!Do(e)||mne(e)?!1:(q(e)?Sne:_ne).test(Io(e))}function wne(e,t){return e?.[t]}function Lo(e,t){var n=wne(e,t);return Cne(n)?n:void 0}var Ro=Lo(uo,`WeakMap`),zo=Object.create,Tne=function(){function e(){}return function(t){if(!Do(t))return{};if(zo)return zo(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Bo(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Vo(){}function Ho(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}var Uo=800,Wo=16,Go=Date.now;function Ene(e){var t=0,n=0;return function(){var r=Go(),i=Wo-(r-n);if(n=r,i>0){if(++t>=Uo)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Dne(e){return function(){return e}}var Ko=function(){try{var e=Lo(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),qo=Ene(Ko?function(e,t){return Ko(e,`toString`,{configurable:!0,enumerable:!1,value:Dne(t),writable:!0})}:No);function One(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function kne(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Ane(e){return e!==e}function jne(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function Mne(e,t,n){return t===t?jne(e,t,n):kne(e,Ane,n)}function Jo(e,t){return!!(e!=null&&e.length)&&Mne(e,t,0)>-1}var Nne=9007199254740991,Pne=/^(?:0|[1-9]\d*)$/;function Yo(e,t){var n=typeof e;return t??=Nne,!!t&&(n==`number`||n!=`symbol`&&Pne.test(e))&&e>-1&&e%1==0&&e<t}function Xo(e,t,n){t==`__proto__`&&Ko?Ko(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Zo(e,t){return e===t||e!==e&&t!==t}var Fne=Object.prototype.hasOwnProperty;function Qo(e,t,n){var r=e[t];(!(Fne.call(e,t)&&Zo(r,n))||n===void 0&&!(t in e))&&Xo(e,t,n)}function $o(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?Xo(n,s,c):Qo(n,s,c)}return n}var es=Math.max;function ts(e,t,n){return t=es(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=es(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),Bo(e,this,s)}}function ns(e,t){return qo(ts(e,t,No),e+``)}var Ine=9007199254740991;function rs(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=Ine}function is(e){return e!=null&&rs(e.length)&&!q(e)}function as(e,t,n){if(!Do(n))return!1;var r=typeof t;return(r==`number`?is(n)&&Yo(t,n.length):r==`string`&&t in n)?Zo(n[t],e):!1}function os(e){return ns(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&as(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var Lne=Object.prototype;function ss(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Lne)}function Rne(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var zne=`[object Arguments]`;function cs(e){return bo(e)&&yo(e)==zne}var ls=Object.prototype,Bne=ls.hasOwnProperty,Vne=ls.propertyIsEnumerable,us=cs(function(){return arguments}())?cs:function(e){return bo(e)&&Bne.call(e,`callee`)&&!Vne.call(e,`callee`)};function Hne(){return!1}var ds=typeof exports==`object`&&exports&&!exports.nodeType&&exports,fs=ds&&typeof module==`object`&&module&&!module.nodeType&&module,ps=fs&&fs.exports===ds?uo.Buffer:void 0,ms=(ps?ps.isBuffer:void 0)||Hne,Une=`[object Arguments]`,Wne=`[object Array]`,Gne=`[object Boolean]`,Kne=`[object Date]`,qne=`[object Error]`,Jne=`[object Function]`,Yne=`[object Map]`,Xne=`[object Number]`,Zne=`[object Object]`,Qne=`[object RegExp]`,$ne=`[object Set]`,ere=`[object String]`,tre=`[object WeakMap]`,nre=`[object ArrayBuffer]`,rre=`[object DataView]`,ire=`[object Float32Array]`,are=`[object Float64Array]`,ore=`[object Int8Array]`,sre=`[object Int16Array]`,hs=`[object Int32Array]`,gs=`[object Uint8Array]`,_s=`[object Uint8ClampedArray]`,vs=`[object Uint16Array]`,ys=`[object Uint32Array]`,bs={};bs[ire]=bs[are]=bs[ore]=bs[sre]=bs[hs]=bs[gs]=bs[_s]=bs[vs]=bs[ys]=!0,bs[Une]=bs[Wne]=bs[nre]=bs[Gne]=bs[rre]=bs[Kne]=bs[qne]=bs[Jne]=bs[Yne]=bs[Xne]=bs[Zne]=bs[Qne]=bs[$ne]=bs[ere]=bs[tre]=!1;function xs(e){return bo(e)&&rs(e.length)&&!!bs[yo(e)]}function Ss(e){return function(t){return e(t)}}var Cs=typeof exports==`object`&&exports&&!exports.nodeType&&exports,ws=Cs&&typeof module==`object`&&module&&!module.nodeType&&module,Ts=ws&&ws.exports===Cs&&lo.process,Es=function(){try{return ws&&ws.require&&ws.require(`util`).types||Ts&&Ts.binding&&Ts.binding(`util`)}catch{}}(),Ds=Es&&Es.isTypedArray,Os=Ds?Ss(Ds):xs,ks=Object.prototype.hasOwnProperty;function As(e,t){var n=K(e),r=!n&&us(e),i=!n&&!r&&ms(e),a=!n&&!r&&!i&&Os(e),o=n||r||i||a,s=o?Rne(e.length,String):[],c=s.length;for(var l in e)(t||ks.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Yo(l,c)))&&s.push(l);return s}function js(e,t){return function(n){return e(t(n))}}var Ms=js(Object.keys,Object),Ns=Object.prototype.hasOwnProperty;function Ps(e){if(!ss(e))return Ms(e);var t=[];for(var n in Object(e))Ns.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Fs(e){return is(e)?As(e):Ps(e)}function Is(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Ls=Object.prototype.hasOwnProperty;function Rs(e){if(!Do(e))return Is(e);var t=ss(e),n=[];for(var r in e)r==`constructor`&&(t||!Ls.call(e,r))||n.push(r);return n}function zs(e){return is(e)?As(e,!0):Rs(e)}var Bs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vs=/^\w*$/;function Hs(e,t){if(K(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||xo(e)?!0:Vs.test(e)||!Bs.test(e)||t!=null&&e in Object(t)}var Us=Lo(Object,`create`);function Ws(){this.__data__=Us?Us(null):{},this.size=0}function Gs(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var Ks=`__lodash_hash_undefined__`,qs=Object.prototype.hasOwnProperty;function Js(e){var t=this.__data__;if(Us){var n=t[e];return n===Ks?void 0:n}return qs.call(t,e)?t[e]:void 0}var Ys=Object.prototype.hasOwnProperty;function Xs(e){var t=this.__data__;return Us?t[e]!==void 0:Ys.call(t,e)}var Zs=`__lodash_hash_undefined__`;function Qs(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=Us&&t===void 0?Zs:t,this}function $s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}$s.prototype.clear=Ws,$s.prototype.delete=Gs,$s.prototype.get=Js,$s.prototype.has=Xs,$s.prototype.set=Qs;function cre(){this.__data__=[],this.size=0}function ec(e,t){for(var n=e.length;n--;)if(Zo(e[n][0],t))return n;return-1}var lre=Array.prototype.splice;function ure(e){var t=this.__data__,n=ec(t,e);return n<0?!1:(n==t.length-1?t.pop():lre.call(t,n,1),--this.size,!0)}function dre(e){var t=this.__data__,n=ec(t,e);return n<0?void 0:t[n][1]}function fre(e){return ec(this.__data__,e)>-1}function pre(e,t){var n=this.__data__,r=ec(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function tc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}tc.prototype.clear=cre,tc.prototype.delete=ure,tc.prototype.get=dre,tc.prototype.has=fre,tc.prototype.set=pre;var nc=Lo(uo,`Map`);function mre(){this.size=0,this.__data__={hash:new $s,map:new(nc||tc),string:new $s}}function hre(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function rc(e,t){var n=e.__data__;return hre(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function gre(e){var t=rc(this,e).delete(e);return this.size-=+!!t,t}function _re(e){return rc(this,e).get(e)}function vre(e){return rc(this,e).has(e)}function yre(e,t){var n=rc(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function ic(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ic.prototype.clear=mre,ic.prototype.delete=gre,ic.prototype.get=_re,ic.prototype.has=vre,ic.prototype.set=yre;var bre=`Expected a function`;function ac(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(bre);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(ac.Cache||ic),n}ac.Cache=ic;var xre=500;function Sre(e){var t=ac(e,function(e){return n.size===xre&&n.clear(),e}),n=t.cache;return t}var Cre=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wre=/\\(\\)?/g,Tre=Sre(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Cre,function(e,n,r,i){t.push(r?i.replace(wre,`$1`):n||e)}),t});function oc(e){return e==null?``:To(e)}function sc(e,t){return K(e)?e:Hs(e,t)?[e]:Tre(oc(e))}var Ere=1/0;function cc(e){if(typeof e==`string`||xo(e))return e;var t=e+``;return t==`0`&&1/e==-Ere?`-0`:t}function lc(e,t){t=sc(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[cc(t[n++])];return n&&n==r?e:void 0}function J(e,t,n){var r=e==null?void 0:lc(e,t);return r===void 0?n:r}function uc(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var dc=fo?fo.isConcatSpreadable:void 0;function Dre(e){return K(e)||us(e)||!!(dc&&e&&e[dc])}function fc(e,t,n,r,i){var a=-1,o=e.length;for(n||=Dre,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?fc(s,t-1,n,r,i):uc(i,s):r||(i[i.length]=s)}return i}function Ore(e){return e!=null&&e.length?fc(e,1):[]}function pc(e){return qo(ts(e,void 0,Ore),e+``)}var mc=js(Object.getPrototypeOf,Object),kre=`[object Object]`,Are=Function.prototype,jre=Object.prototype,hc=Are.toString,Mre=jre.hasOwnProperty,Nre=hc.call(Object);function gc(e){if(!bo(e)||yo(e)!=kre)return!1;var t=mc(e);if(t===null)return!0;var n=Mre.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&hc.call(n)==Nre}function _c(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}function vc(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:_c(e,t,n)}var Pre=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function yc(e){return Pre.test(e)}function Fre(e){return e.split(``)}var bc=`\\ud800-\\udfff`,Ire=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Lre=`\\ufe0e\\ufe0f`,Rre=`[`+bc+`]`,xc=`[`+Ire+`]`,Sc=`\\ud83c[\\udffb-\\udfff]`,zre=`(?:`+xc+`|`+Sc+`)`,Cc=`[^`+bc+`]`,wc=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Tc=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Bre=`\\u200d`,Ec=zre+`?`,Dc=`[`+Lre+`]?`,Vre=`(?:`+Bre+`(?:`+[Cc,wc,Tc].join(`|`)+`)`+Dc+Ec+`)*`,Hre=Dc+Ec+Vre,Ure=`(?:`+[Cc+xc+`?`,xc,wc,Tc,Rre].join(`|`)+`)`,Wre=RegExp(Sc+`(?=`+Sc+`)|`+Ure+Hre,`g`);function Gre(e){return e.match(Wre)||[]}function Oc(e){return yc(e)?Gre(e):Fre(e)}function Kre(e){return function(t){t=oc(t);var n=yc(t)?Oc(t):void 0,r=n?n[0]:t.charAt(0),i=n?vc(n,1).join(``):t.slice(1);return r[e]()+i}}var kc=Kre(`toUpperCase`);function qre(e){return kc(oc(e).toLowerCase())}function Jre(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function Yre(e){return function(t){return e?.[t]}}var Xre=Yre({À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`}),Zre=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qre=RegExp(`[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]`,`g`);function $re(e){return e=oc(e),e&&e.replace(Zre,Xre).replace(Qre,``)}var eie=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function tie(e){return e.match(eie)||[]}var nie=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function rie(e){return nie.test(e)}var Ac=`\\ud800-\\udfff`,iie=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,jc=`\\u2700-\\u27bf`,Mc=`a-z\\xdf-\\xf6\\xf8-\\xff`,aie=`\\xac\\xb1\\xd7\\xf7`,oie=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,sie=`\\u2000-\\u206f`,cie=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,Nc=`A-Z\\xc0-\\xd6\\xd8-\\xde`,lie=`\\ufe0e\\ufe0f`,Pc=aie+oie+sie+cie,Fc=`['’]`,Ic=`[`+Pc+`]`,uie=`[`+iie+`]`,Lc=`\\d+`,die=`[`+jc+`]`,Rc=`[`+Mc+`]`,zc=`[^`+Ac+Pc+Lc+jc+Mc+Nc+`]`,fie=`(?:`+uie+`|\\ud83c[\\udffb-\\udfff])`,pie=`[^`+Ac+`]`,Bc=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Vc=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Hc=`[`+Nc+`]`,mie=`\\u200d`,Uc=`(?:`+Rc+`|`+zc+`)`,hie=`(?:`+Hc+`|`+zc+`)`,Wc=`(?:`+Fc+`(?:d|ll|m|re|s|t|ve))?`,Gc=`(?:`+Fc+`(?:D|LL|M|RE|S|T|VE))?`,Kc=fie+`?`,qc=`[`+lie+`]?`,gie=`(?:`+mie+`(?:`+[pie,Bc,Vc].join(`|`)+`)`+qc+Kc+`)*`,_ie=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,vie=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,yie=qc+Kc+gie,bie=`(?:`+[die,Bc,Vc].join(`|`)+`)`+yie,xie=RegExp([Hc+`?`+Rc+`+`+Wc+`(?=`+[Ic,Hc,`$`].join(`|`)+`)`,hie+`+`+Gc+`(?=`+[Ic,Hc+Uc,`$`].join(`|`)+`)`,Hc+`?`+Uc+`+`+Wc,Hc+`+`+Gc,vie,_ie,Lc,bie].join(`|`),`g`);function Sie(e){return e.match(xie)||[]}function Cie(e,t,n){return e=oc(e),t=n?void 0:t,t===void 0?rie(e)?Sie(e):tie(e):e.match(t)||[]}var wie=RegExp(`['’]`,`g`);function Jc(e){return function(t){return Jre(Cie($re(t).replace(wie,``)),e,``)}}var Yc=Jc(function(e,t,n){return t=t.toLowerCase(),e+(n?qre(t):t)}),Tie=Math.ceil,Eie=Math.max;function Xc(e,t,n){t=(n?as(e,t,n):t===void 0)?1:Eie(Mo(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var i=0,a=0,o=Array(Tie(r/t));i<r;)o[a++]=_c(e,i,i+=t);return o}function Die(){this.__data__=new tc,this.size=0}function Oie(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function kie(e){return this.__data__.get(e)}function Aie(e){return this.__data__.has(e)}var jie=200;function Mie(e,t){var n=this.__data__;if(n instanceof tc){var r=n.__data__;if(!nc||r.length<jie-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ic(r)}return n.set(e,t),this.size=n.size,this}function Zc(e){var t=this.__data__=new tc(e);this.size=t.size}Zc.prototype.clear=Die,Zc.prototype.delete=Oie,Zc.prototype.get=kie,Zc.prototype.has=Aie,Zc.prototype.set=Mie;function Nie(e,t){return e&&$o(t,Fs(t),e)}function Pie(e,t){return e&&$o(t,zs(t),e)}var Qc=typeof exports==`object`&&exports&&!exports.nodeType&&exports,$c=Qc&&typeof module==`object`&&module&&!module.nodeType&&module,el=$c&&$c.exports===Qc?uo.Buffer:void 0,tl=el?el.allocUnsafe:void 0;function nl(e,t){if(t)return e.slice();var n=e.length,r=tl?tl(n):new e.constructor(n);return e.copy(r),r}function rl(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function il(){return[]}var Fie=Object.prototype.propertyIsEnumerable,al=Object.getOwnPropertySymbols,ol=al?function(e){return e==null?[]:(e=Object(e),rl(al(e),function(t){return Fie.call(e,t)}))}:il;function Iie(e,t){return $o(e,ol(e),t)}var sl=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)uc(t,ol(e)),e=mc(e);return t}:il;function Lie(e,t){return $o(e,sl(e),t)}function cl(e,t,n){var r=t(e);return K(e)?r:uc(r,n(e))}function ll(e){return cl(e,Fs,ol)}function ul(e){return cl(e,zs,sl)}var dl=Lo(uo,`DataView`),fl=Lo(uo,`Promise`),pl=Lo(uo,`Set`),ml=`[object Map]`,Rie=`[object Object]`,hl=`[object Promise]`,gl=`[object Set]`,_l=`[object WeakMap]`,vl=`[object DataView]`,zie=Io(dl),Bie=Io(nc),Vie=Io(fl),Hie=Io(pl),Uie=Io(Ro),yl=yo;(dl&&yl(new dl(new ArrayBuffer(1)))!=vl||nc&&yl(new nc)!=ml||fl&&yl(fl.resolve())!=hl||pl&&yl(new pl)!=gl||Ro&&yl(new Ro)!=_l)&&(yl=function(e){var t=yo(e),n=t==Rie?e.constructor:void 0,r=n?Io(n):``;if(r)switch(r){case zie:return vl;case Bie:return ml;case Vie:return hl;case Hie:return gl;case Uie:return _l}return t});var bl=yl,Wie=Object.prototype.hasOwnProperty;function Gie(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&Wie.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}var xl=uo.Uint8Array;function Sl(e){var t=new e.constructor(e.byteLength);return new xl(t).set(new xl(e)),t}function Kie(e,t){var n=t?Sl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var qie=/\w*$/;function Jie(e){var t=new e.constructor(e.source,qie.exec(e));return t.lastIndex=e.lastIndex,t}var Cl=fo?fo.prototype:void 0,wl=Cl?Cl.valueOf:void 0;function Yie(e){return wl?Object(wl.call(e)):{}}function Tl(e,t){var n=t?Sl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Xie=`[object Boolean]`,Zie=`[object Date]`,Qie=`[object Map]`,$ie=`[object Number]`,eae=`[object RegExp]`,tae=`[object Set]`,nae=`[object String]`,rae=`[object Symbol]`,iae=`[object ArrayBuffer]`,aae=`[object DataView]`,oae=`[object Float32Array]`,sae=`[object Float64Array]`,cae=`[object Int8Array]`,lae=`[object Int16Array]`,uae=`[object Int32Array]`,dae=`[object Uint8Array]`,fae=`[object Uint8ClampedArray]`,pae=`[object Uint16Array]`,mae=`[object Uint32Array]`;function hae(e,t,n){var r=e.constructor;switch(t){case iae:return Sl(e);case Xie:case Zie:return new r(+e);case aae:return Kie(e,n);case oae:case sae:case cae:case lae:case uae:case dae:case fae:case pae:case mae:return Tl(e,n);case Qie:return new r;case $ie:case nae:return new r(e);case eae:return Jie(e);case tae:return new r;case rae:return Yie(e)}}function El(e){return typeof e.constructor==`function`&&!ss(e)?Tne(mc(e)):{}}var gae=`[object Map]`;function _ae(e){return bo(e)&&bl(e)==gae}var Dl=Es&&Es.isMap,vae=Dl?Ss(Dl):_ae,yae=`[object Set]`;function bae(e){return bo(e)&&bl(e)==yae}var Ol=Es&&Es.isSet,xae=Ol?Ss(Ol):bae,Sae=1,Cae=2,wae=4,kl=`[object Arguments]`,Tae=`[object Array]`,Al=`[object Boolean]`,jl=`[object Date]`,Ml=`[object Error]`,Nl=`[object Function]`,Pl=`[object GeneratorFunction]`,Fl=`[object Map]`,Il=`[object Number]`,Ll=`[object Object]`,Rl=`[object RegExp]`,zl=`[object Set]`,Bl=`[object String]`,Vl=`[object Symbol]`,Hl=`[object WeakMap]`,Ul=`[object ArrayBuffer]`,Wl=`[object DataView]`,Gl=`[object Float32Array]`,Kl=`[object Float64Array]`,ql=`[object Int8Array]`,Jl=`[object Int16Array]`,Yl=`[object Int32Array]`,Xl=`[object Uint8Array]`,Zl=`[object Uint8ClampedArray]`,Ql=`[object Uint16Array]`,$l=`[object Uint32Array]`,eu={};eu[kl]=eu[Tae]=eu[Ul]=eu[Wl]=eu[Al]=eu[jl]=eu[Gl]=eu[Kl]=eu[ql]=eu[Jl]=eu[Yl]=eu[Fl]=eu[Il]=eu[Ll]=eu[Rl]=eu[zl]=eu[Bl]=eu[Vl]=eu[Xl]=eu[Zl]=eu[Ql]=eu[$l]=!0,eu[Ml]=eu[Nl]=eu[Hl]=!1;function tu(e,t,n,r,i,a){var o,s=t&Sae,c=t&Cae,l=t&wae;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!Do(e))return e;var u=K(e);if(u){if(o=Gie(e),!s)return Ho(e,o)}else{var d=bl(e),f=d==Nl||d==Pl;if(ms(e))return nl(e,s);if(d==Ll||d==kl||f&&!i){if(o=c||f?{}:El(e),!s)return c?Lie(e,Pie(o,e)):Iie(e,Nie(o,e))}else{if(!eu[d])return i?e:{};o=hae(e,d,s)}}a||=new Zc;var p=a.get(e);if(p)return p;a.set(e,o),xae(e)?e.forEach(function(r){o.add(tu(r,t,n,r,e,a))}):vae(e)&&e.forEach(function(r,i){o.set(i,tu(r,t,n,i,e,a))});var m=u?void 0:(l?c?ul:ll:c?zs:Fs)(e);return One(m||e,function(r,i){m&&(i=r,r=e[i]),Qo(o,i,tu(r,t,n,i,e,a))}),o}var nu=1,ru=4;function iu(e){return tu(e,nu|ru)}var au=`__lodash_hash_undefined__`;function ou(e){return this.__data__.set(e,au),this}function su(e){return this.__data__.has(e)}function cu(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ic;++t<n;)this.add(e[t])}cu.prototype.add=cu.prototype.push=ou,cu.prototype.has=su;function lu(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function uu(e,t){return e.has(t)}var du=1,fu=2;function pu(e,t,n,r,i,a){var o=n&du,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&fu?new cu:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!lu(t,function(e,t){if(!uu(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function mu(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function hu(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var gu=1,_u=2,vu=`[object Boolean]`,yu=`[object Date]`,bu=`[object Error]`,xu=`[object Map]`,Su=`[object Number]`,Cu=`[object RegExp]`,wu=`[object Set]`,Tu=`[object String]`,Eu=`[object Symbol]`,Du=`[object ArrayBuffer]`,Ou=`[object DataView]`,ku=fo?fo.prototype:void 0,Au=ku?ku.valueOf:void 0;function ju(e,t,n,r,i,a,o){switch(n){case Ou:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Du:return!(e.byteLength!=t.byteLength||!a(new xl(e),new xl(t)));case vu:case yu:case Su:return Zo(+e,+t);case bu:return e.name==t.name&&e.message==t.message;case Cu:case Tu:return e==t+``;case xu:var s=mu;case wu:var c=r&gu;if(s||=hu,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=_u,o.set(e,t);var u=pu(s(e),s(t),r,i,a,o);return o.delete(e),u;case Eu:if(Au)return Au.call(e)==Au.call(t)}return!1}var Mu=1,Nu=Object.prototype.hasOwnProperty;function Pu(e,t,n,r,i,a){var o=n&Mu,s=ll(e),c=s.length;if(c!=ll(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:Nu.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||=u==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}var Fu=1,Iu=`[object Arguments]`,Lu=`[object Array]`,Ru=`[object Object]`,zu=Object.prototype.hasOwnProperty;function Bu(e,t,n,r,i,a){var o=K(e),s=K(t),c=o?Lu:bl(e),l=s?Lu:bl(t);c=c==Iu?Ru:c,l=l==Iu?Ru:l;var u=c==Ru,d=l==Ru,f=c==l;if(f&&ms(e)){if(!ms(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new Zc,o||Os(e)?pu(e,t,n,r,i,a):ju(e,t,c,n,r,i,a);if(!(n&Fu)){var p=u&&zu.call(e,`__wrapped__`),m=d&&zu.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new Zc,i(h,g,n,r,a)}}return f?(a||=new Zc,Pu(e,t,n,r,i,a)):!1}function Vu(e,t,n,r,i){return e===t?!0:e==null||t==null||!bo(e)&&!bo(t)?e!==e&&t!==t:Bu(e,t,n,r,Vu,i)}var Hu=1,Uu=2;function Wu(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new Zc;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?Vu(u,l,Hu|Uu,r,d):f))return!1}}return!0}function Gu(e){return e===e&&!Do(e)}function Ku(e){for(var t=Fs(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Gu(i)]}return t}function qu(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}function Ju(e){var t=Ku(e);return t.length==1&&t[0][2]?qu(t[0][0],t[0][1]):function(n){return n===e||Wu(n,e,t)}}function Yu(e,t){return e!=null&&t in Object(e)}function Xu(e,t,n){t=sc(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=cc(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&rs(i)&&Yo(o,i)&&(K(e)||us(e)))}function Zu(e,t){return e!=null&&Xu(e,t,Yu)}var Qu=1,$u=2;function ed(e,t){return Hs(e)&&Gu(t)?qu(cc(e),t):function(n){var r=J(n,e);return r===void 0&&r===t?Zu(n,e):Vu(t,r,Qu|$u)}}function td(e){return function(t){return t?.[e]}}function nd(e){return function(t){return lc(t,e)}}function rd(e){return Hs(e)?td(cc(e)):nd(e)}function id(e){return typeof e==`function`?e:e==null?No:typeof e==`object`?K(e)?ed(e[0],e[1]):Ju(e):rd(e)}function ad(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}var od=ad();function sd(e,t){return e&&od(e,t,Fs)}function cd(e,t){return function(n,r){if(n==null)return n;if(!is(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var ld=cd(sd),ud=function(){return uo.Date.now()},dd=`Expected a function`,fd=Math.max,pd=Math.min;function md(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(dd);t=ko(t)||0,Do(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?fd(ko(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function m(e){return l=e,s=setTimeout(_,t),u?p(e):o}function h(e){var n=e-c,r=e-l,i=t-n;return d?pd(i,a-r):i}function g(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function _(){var e=ud();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(ud())}function x(){var e=ud(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}function hd(e,t,n){(n!==void 0&&!Zo(e[t],n)||n===void 0&&!(t in e))&&Xo(e,t,n)}function gd(e){return bo(e)&&is(e)}function _d(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}function vd(e){return $o(e,zs(e))}function yd(e,t,n,r,i,a,o){var s=_d(e,n),c=_d(t,n),l=o.get(c);if(l){hd(e,n,l);return}var u=a?a(s,c,n+``,e,t,o):void 0,d=u===void 0;if(d){var f=K(c),p=!f&&ms(c),m=!f&&!p&&Os(c);u=c,f||p||m?K(s)?u=s:gd(s)?u=Ho(s):p?(d=!1,u=nl(c,!0)):m?(d=!1,u=Tl(c,!0)):u=[]:gc(c)||us(c)?(u=s,us(s)?u=vd(s):(!Do(s)||q(s))&&(u=El(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),hd(e,n,u)}function bd(e,t,n,r,i){e!==t&&od(t,function(a,o){if(i||=new Zc,Do(a))yd(e,t,o,n,bd,r,i);else{var s=r?r(_d(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),hd(e,o,s)}},zs)}var xd=os(function(e,t,n,r){bd(e,t,n,r)});function Sd(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var Cd=200;function wd(e,t,n,r){var i=-1,a=Jo,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=So(t,Ss(n))),r?(a=Sd,o=!1):t.length>=Cd&&(a=uu,o=!1,t=new cu(t));outer:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=l;f--;)if(t[f]===d)continue outer;c.push(u)}else a(t,d,r)||c.push(u)}return c}var Td=ns(function(e,t){return gd(e)?wd(e,fc(t,1,gd,!0)):[]});function Ed(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Dd=/[\\^$.*+?()[\]{}|]/g,Od=RegExp(Dd.source);function kd(e){return e=oc(e),e&&Od.test(e)?e.replace(Dd,`\\$&`):e}function Ad(e,t){var n=[];return ld(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function jd(e,t){return(K(e)?rl:Ad)(e,id(t,3))}function Md(e,t){return e>t}var Nd=Math.max,Pd=Math.min;function Fd(e,t,n){return e>=Pd(t,n)&&e<Nd(t,n)}function Id(e,t,n){return t=jo(t),n===void 0?(n=t,t=0):n=jo(n),e=ko(e),Fd(e,t,n)}var Ld=`[object String]`;function Rd(e){return typeof e==`string`||!K(e)&&bo(e)&&yo(e)==Ld}var zd=Math.min;function Bd(e,t,n){for(var r=n?Sd:Jo,i=e[0].length,a=e.length,o=a,s=Array(a),c=1/0,l=[];o--;){var u=e[o];o&&t&&(u=So(u,Ss(t))),c=zd(u.length,c),s[o]=!n&&(t||i>=120&&u.length>=120)?new cu(o&&u):void 0}u=e[0];var d=-1,f=s[0];outer:for(;++d<i&&l.length<c;){var p=u[d],m=t?t(p):p;if(p=n||p!==0?p:0,!(f?uu(f,m):r(l,m,n))){for(o=a;--o;){var h=s[o];if(!(h?uu(h,m):r(e[o],m,n)))continue outer}f&&f.push(m),l.push(p)}}return l}function Vd(e){return gd(e)?e:[]}var Hd=ns(function(e){var t=So(e,Vd);return t.length&&t[0]===e[0]?Bd(t):[]});function Ud(e,t){return t.length<2?e:lc(e,_c(t,0,-1))}var Wd=`[object Boolean]`;function Gd(e){return e===!0||e===!1||bo(e)&&yo(e)==Wd}var Kd=`[object Date]`;function qd(e){return bo(e)&&yo(e)==Kd}var Jd=Es&&Es.isDate,Yd=Jd?Ss(Jd):qd,Xd=`[object Map]`,Zd=`[object Set]`,Qd=Object.prototype.hasOwnProperty;function $d(e){if(e==null)return!0;if(is(e)&&(K(e)||typeof e==`string`||typeof e.splice==`function`||ms(e)||Os(e)||us(e)))return!e.length;var t=bl(e);if(t==Xd||t==Zd)return!e.size;if(ss(e))return!Ps(e).length;for(var n in e)if(Qd.call(e,n))return!1;return!0}function ef(e,t){return Vu(e,t)}var tf=`[object Number]`;function nf(e){return typeof e==`number`||bo(e)&&yo(e)==tf}function rf(e){return nf(e)&&e!=+e}function af(e){return e==null}function of(e){return e===null}function sf(e){return e===void 0}var cf=Jc(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()});function lf(e,t){return e<t}function uf(e,t){var n={};return t=id(t,3),sd(e,function(e,r,i){Xo(n,t(e,r,i),e)}),n}function df(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],o=t(a);if(o!=null&&(s===void 0?o===o&&!xo(o):n(o,s)))var s=o,c=a}return c}function ff(e){return e&&e.length?df(e,No,Md):void 0}function pf(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==void 0&&(n=n===void 0?a:n+a)}return n}var mf=os(function(e,t,n){bd(e,t,n)});function hf(e){return e&&e.length?df(e,No,lf):void 0}var gf=Object.prototype.hasOwnProperty;function _f(e,t){t=sc(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=cc(t[n]);if(i===`__proto__`&&!gf.call(e,`__proto__`)||(i===`constructor`||i===`prototype`)&&n<r-1)return!1}var a=Ud(e,t);return a==null||delete a[cc(Ed(t))]}function vf(e){return gc(e)?void 0:e}var yf=1,bf=2,xf=4,Sf=pc(function(e,t){var n={};if(e==null)return n;var r=!1;t=So(t,function(t){return t=sc(t,e),r||=t.length>1,t}),$o(e,ul(e),n),r&&(n=tu(n,yf|bf|xf,vf));for(var i=t.length;i--;)_f(n,t[i]);return n});function Cf(e,t,n,r){if(!Do(e))return e;t=sc(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var c=cc(t[i]),l=n;if(c===`__proto__`||c===`constructor`||c===`prototype`)return e;if(i!=o){var u=s[c];l=r?r(u,c,s):void 0,l===void 0&&(l=Do(u)?u:Yo(t[i+1])?[]:{})}Qo(s,c,l),s=s[c]}return e}function wf(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=lc(e,o);n(s,o)&&Cf(a,sc(o,e),s)}return a}function Tf(e,t){if(e==null)return{};var n=So(ul(e),function(e){return[e]});return t=id(t),wf(e,n,function(e,n){return t(e,n[0])})}var Eae=9007199254740991,Dae=Math.floor;function Ef(e,t){var n=``;if(!e||t<1||t>Eae)return n;do t%2&&(n+=e),t=Dae(t/2),t&&(e+=e);while(t);return n}var Oae=td(`length`),Df=`\\ud800-\\udfff`,kae=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Aae=`\\ufe0e\\ufe0f`,jae=`[`+Df+`]`,Of=`[`+kae+`]`,kf=`\\ud83c[\\udffb-\\udfff]`,Mae=`(?:`+Of+`|`+kf+`)`,Af=`[^`+Df+`]`,jf=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Mf=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Nae=`\\u200d`,Nf=Mae+`?`,Pf=`[`+Aae+`]?`,Pae=`(?:`+Nae+`(?:`+[Af,jf,Mf].join(`|`)+`)`+Pf+Nf+`)*`,Fae=Pf+Nf+Pae,Iae=`(?:`+[Af+Of+`?`,Of,jf,Mf,jae].join(`|`)+`)`,Ff=RegExp(kf+`(?=`+kf+`)|`+Iae+Fae,`g`);function Lae(e){for(var t=Ff.lastIndex=0;Ff.test(e);)++t;return t}function If(e){return yc(e)?Lae(e):Oae(e)}var Rae=Math.ceil;function zae(e,t){t=t===void 0?` `:To(t);var n=t.length;if(n<2)return n?Ef(t,e):t;var r=Ef(t,Rae(e/If(t)));return yc(t)?vc(Oc(r),0,e).join(``):r.slice(0,e)}function Lf(e,t,n){e=oc(e),t=Mo(t);var r=t?If(e):0;return t&&r<t?zae(t-r,n)+e:e}function Bae(e,t){return wf(e,t,function(t,n){return Zu(e,n)})}var Rf=pc(function(e,t){return e==null?{}:Bae(e,t)}),Vae=Array.prototype.splice;function Hae(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;Yo(i)?Vae.call(e,i,1):_f(e,i)}}return e}var Uae=Math.ceil,Wae=Math.max;function Gae(e,t,n,r){for(var i=-1,a=Wae(Uae((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}function Kae(e){return function(t,n,r){return r&&typeof r!=`number`&&as(t,n,r)&&(n=r=void 0),t=jo(t),n===void 0?(n=t,t=0):n=jo(n),r=r===void 0?t<n?1:-1:jo(r),Gae(t,n,r,e)}}var zf=Kae();function qae(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],a=e.length;for(t=id(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return Hae(e,i),n}function Bf(e,t,n){return e==null?e:Cf(e,t,n)}function Vf(e){return e&&e.length?pf(e,No):0}var Jae=`Expected a function`;function Hf(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(Jae);return Do(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),md(e,t,{leading:r,maxWait:t,trailing:i})}var Yae=pl&&1/hu(new pl([,-0]))[1]==1/0?function(e){return new pl(e)}:Vo,Xae=200;function Uf(e,t,n){var r=-1,i=Jo,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=Sd;else if(a>=Xae){var l=t?null:Yae(e);if(l)return hu(l);o=!1,i=uu,c=new cu}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function Wf(e,t){return e&&e.length?Uf(e,id(t,2)):[]}var Zae=0;function Qae(e){var t=++Zae;return oc(e)+t}function $ae(e,t,n){var r=e.length;if(r<2)return r?Uf(e[0]):[];for(var i=-1,a=Array(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=wd(a[i]||o,e[s],t,n));return Uf(fc(a,1),t,n)}var eoe=ns(function(e){var t=Ed(e);return t=typeof t==`function`?t:void 0,$ae(rl(e,gd),void 0,t)});function Gf(e){if(Array.isArray(e))return e}function toe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Kf(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y(e,t){return Gf(e)||toe(e,t)||ao(e,t)||Kf()}var qf=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function Jf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var Yf={exports:{}},Xf={exports:{}};Xf.exports,(function(){var e,t,n,r,i,a;typeof performance<`u`&&performance!==null&&performance.now?Xf.exports=function(){return performance.now()}:typeof process<`u`&&process!==null&&process.hrtime?(Xf.exports=function(){return(e()-i)/1e6},t=process.hrtime,e=function(){var e=t();return e[0]*1e9+e[1]},r=e(),a=process.uptime()*1e9,i=r-a):Date.now?(Xf.exports=function(){return Date.now()-n},n=Date.now()):(Xf.exports=function(){return new Date().getTime()-n},n=new Date().getTime())}).call(qf);var noe=Xf.exports;Yf.exports;for(var roe=noe,Zf=typeof window>`u`?qf:window,Qf=[`moz`,`webkit`],$f=`AnimationFrame`,ep=Zf[`request`+$f],tp=Zf[`cancel`+$f]||Zf[`cancelRequest`+$f],np=0;!ep&&np<Qf.length;np++)ep=Zf[Qf[np]+`Request`+$f],tp=Zf[Qf[np]+`Cancel`+$f]||Zf[Qf[np]+`CancelRequest`+$f];if(!ep||!tp){var rp=0,ip=0,ap=[],ioe=1e3/60;ep=function(e){if(ap.length===0){var t=roe(),n=Math.max(0,ioe-(t-rp));rp=n+t,setTimeout(function(){var e=ap.slice(0);ap.length=0;for(var t=function(){if(!e[n].cancelled)try{e[n].callback(rp)}catch(e){setTimeout(function(){throw e},0)}},n=0;n<e.length;n++)t()},Math.round(n))}return ap.push({handle:++ip,callback:e,cancelled:!1}),ip},tp=function(e){for(var t=0;t<ap.length;t++)ap[t].handle===e&&(ap[t].cancelled=!0)}}Yf.exports=function(e){return ep.call(Zf,e)},Yf.exports.cancel=function(){tp.apply(Zf,arguments)},Yf.exports.polyfill=function(e){e||=Zf,e.requestAnimationFrame=ep,e.cancelAnimationFrame=tp};var aoe=Yf.exports,op=Jf(aoe),ooe=function(e,t,n,r){var i=(n-t)/2,a=e/(r/2);return a<1?i*a*a*a+t:(a-=2,i*(a*a*a+2)+t)},sp=typeof window>`u`,soe=function(e){return(e||``).replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,``)},cp=function(){return!sp&&document.addEventListener?function(e,t,n,r){e&&t&&n&&e.addEventListener(t,n,r)}:function(e,t,n){e&&t&&n&&e.attachEvent(`on${t}`,n)}}(),lp=function(){return!sp&&document.removeEventListener?function(e,t,n,r){e&&t&&e.removeEventListener(t,n,r)}:function(e,t,n){e&&t&&e.detachEvent(`on${t}`,n)}}();function coe(e,t,n,r){var i=q(n)?n:n.handleEvent,a=function(n){i(n),lp(e,t,a,r)};cp(e,t,a,r)}function up(e,t){if(!e||!t)return!1;if(t.indexOf(` `)!==-1)throw Error(`className should not contain space.`);return e.classList?e.classList.contains(t):` ${e.className} `.indexOf(` ${t} `)>-1}function dp(e,t){if(e){for(var n=e.className,r=(t||``).split(` `),i=0,a=r.length;i<a;i++){var o=r[i];o&&(e.classList?e.classList.add(o):up(e,o)||(n+=` ${o}`))}e.classList||(e.className=n)}}function fp(e,t){if(!(!e||!t)){for(var n=t.split(` `),r=` ${e.className} `,i=0,a=n.length;i<a;i++){var o=n[i];o&&(e.classList?e.classList.remove(o):up(e,o)&&(r=r.replace(` ${o} `,` `)))}e.classList||(e.className=soe(r))}}var pp=function(e,t){var n=q(e)?e(t):e;return n?Rd(n)?document.querySelector(n):n instanceof HTMLElement?n:document.body:document.body},mp=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:`body`;return Rd(e)?document.querySelector(e):q(e)?e():e};function hp(e){return e&&e===e.window}function gp(e,t){if(sp||!e)return 0;var n=t?`scrollLeft`:`scrollTop`,r=0;return hp(e)?r=e[t?`pageXOffset`:`pageYOffset`]:e instanceof Document?r=e.documentElement[n]:e&&(r=e[n]),r}function _p(e,t){var n=t.container,r=n===void 0?window:n,i=t.duration,a=i===void 0?450:i,o=t.easing,s=o===void 0?ooe:o,c=gp(r),l=Date.now();return new Promise(function(t){var n=function(){var i=Date.now()-l,o=s(Math.min(i,a),c,e,a);hp(r)?r.scrollTo(window.pageXOffset,o):r instanceof Document||r.constructor.name===`HTMLDocument`?r.documentElement.scrollTop=o:r.scrollTop=o,op(i<a?n:t)};op(n)})}var vp=function(e){var t=e.clientWidth,n=t===void 0?0:t,r=e.scrollWidth;return(r===void 0?0:r)>n},loe=function(e){if(!(e instanceof HTMLFormElement))throw Error(`target must be HTMLFormElement`);var t=document.createElement(`input`);t.type=`submit`,t.hidden=!0,e.appendChild(t),t.click(),e.removeChild(t)};function yp(e,t){var n=e.getBoundingClientRect();if(t){var r=t.getBoundingClientRect();return n.top>=r.top&&n.left>=r.left&&n.bottom<=r.bottom&&n.right<=r.right}return n.top>=0&&n.left>=0&&n.bottom+80<=window.innerHeight&&n.right<=window.innerWidth}function bp(e,t){var n=``;return document.defaultView&&document.defaultView.getComputedStyle&&(n=document.defaultView.getComputedStyle(e,null).getPropertyValue(t)),n&&n.toLowerCase?n.toLowerCase():n}function xp(e){var t=e.parentNode;return!t||t.nodeName===`HTML`?!1:bp(e,`position`)===`fixed`||xp(t)}function Sp(){var e=document.body,t=document.documentElement;return{scrollTop:window.pageYOffset||t.scrollTop||e.scrollTop,scrollLeft:window.pageXOffset||t.scrollLeft||e.scrollLeft}}function uoe(){if(window.innerWidth!==void 0)return{width:window.innerWidth,height:window.innerHeight};var e=document.documentElement;return{width:e.clientWidth,height:e.clientHeight}}var Cp=function(e){return Mi(e)&&e.type===Si};function X(e,t,n){var r=e;return r.install=function(i,a){i.component(t||a||r.name,e),n&&i.directive(n.name,n.comp)},r}function wp(e){var t;return Do(e)&&`defaultNode`in e?t=e.defaultNode:(Mi(e)||Rd(e))&&(t=e),t}function Tp(e){var t=[],n=function(e){if(K(e))return e.forEach(function(e){if(e.children&&K(e.children)){if(e.type!==bi)return;n(e.children)}else t.push(e)}),t};return n(e)}function Ep(e){return Do(e)&&`params`in e?e.params:{}}function doe(e){return Do(e)&&`slotFirst`in e?e.slotFirst:!1}function Dp(e){var t=Yi(),n=t.vnode,r=t.slots,i=n.props||{};return!!(Object.prototype.hasOwnProperty.call(i,e)||r&&Object.prototype.hasOwnProperty.call(r,e))}var foe=`Copy to clipboard: #{key}, Enter`,poe=function(e){var t=(/mac os x/i.test(navigator.userAgent)?`⌘`:`Ctrl`)+`+C`;return e.replace(/#{\s*key\s*}/g,t)},moe=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case`INPUT`:case`TEXTAREA`:t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type===`Caret`&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}},hoe=function(e,t){var n,r,i,a,o,s=!1;t||={};try{if(r=moe(),i=document.createRange(),a=document.getSelection(),o=document.createElement(`span`),o.textContent=e,o.style.all=`unset`,o.style.position=`fixed`,o.style.top=`0`,o.style.clip=`rect(0, 0, 0, 0)`,o.style.whiteSpace=`pre`,o.style.webkitUserSelect=`text`,o.style.userSelect=`text`,o.addEventListener(`copy`,function(n){n.stopPropagation(),t.format&&(n.preventDefault(),n.clipboardData.clearData(),n.clipboardData.setData(t.format,e)),t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(o),i.selectNodeContents(o),a.addRange(i),!document.execCommand(`copy`))throw Error(`copy command was unsuccessful`);s=!0}catch{try{window.clipboardData.setData(t.format||`text`,e),t.onCopy&&t.onCopy(window.clipboardData),s=!0}catch{n=poe(`message`in t?t.message:foe),window.prompt(n,e)}}finally{a&&(typeof a.removeRange==`function`?a.removeRange(i):a.removeAllRanges()),o&&document.body.removeChild(o),r()}return s},goe=/^data:image\/(?:png|jpe?g|gif|webp|svg\+xml|bmp|x-icon)[;,]/i,_oe=/^(?:javascript|vbscript):/i,Op=function(e){return(e||``).replace(/[\u0000-\u001F\u007F]+/g,``)},voe=function(e){return e==null?``:Op(String(e)).trim()},yoe=function(e){var t=voe(e);return t?!!(_oe.test(t)||/^data:/i.test(t)&&!goe.test(t)):!1},boe=function(e){var t=Op(e||``);return/expression\s*\(|javascript\s*:|vbscript\s*:|@import/i.test(t)},xoe=new Set(`script.foreignobject.iframe.frame.frameset.object.embed.link.meta.base.style.form.input.button.textarea.select.option.audio.video.source.track.portal.noscript.template.handler.listener.set`.split(`.`)),Soe=new Set([`href`,`xlink:href`,`src`,`action`,`formaction`,`background`,`poster`,`ping`,`longdesc`,`cite`,`data`,`srcdoc`]),kp=function(e){for(var t=0,n=Array.from(e.attributes);t<n.length;t++){var r=n[t],i=r.name.toLowerCase();if(i.startsWith(`on`)){e.removeAttribute(r.name);continue}if(Soe.has(i)&&yoe(r.value)){e.removeAttribute(r.name);continue}i===`style`&&boe(r.value)&&e.removeAttribute(r.name)}},Ap=function(e){for(var t=0,n=Array.from(e.children);t<n.length;t++){var r,i,a=n[t],o=((r=a.localName)==null||(i=r.toLowerCase)==null?void 0:i.call(r))??``;if(xoe.has(o)){a.remove();continue}kp(a),Ap(a)}},Coe=function(e){if(!e||typeof e!=`string`||typeof DOMParser>`u`||typeof XMLSerializer>`u`)return``;var t;try{t=new DOMParser().parseFromString(e,`image/svg+xml`)}catch{return``}if(t.querySelector(`parsererror`))return``;var n=t.documentElement;if(!n||n.localName?.toLowerCase()!==`svg`)return``;kp(n),Ap(n);try{return new XMLSerializer().serializeToString(n)}catch{return``}},jp={exports:{}};jp.exports,(function(e,t){(function(t,n){e.exports=n()})(qf,function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=so(t)==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach(function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w})})(jp,jp.exports);var Mp=jp.exports,Z=Jf(Mp),Np={exports:{}};Np.exports,(function(e,t){(function(t,n){e.exports=n(Mp)})(qf,function(e){function t(e){return e&&so(e)==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`zh-cn`,weekdays:`星期日_星期一_星期二_星期三_星期四_星期五_星期六`.split(`_`),weekdaysShort:`周日_周一_周二_周三_周四_周五_周六`.split(`_`),weekdaysMin:`日_一_二_三_四_五_六`.split(`_`),months:`一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月`.split(`_`),monthsShort:`1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月`.split(`_`),ordinal:function(e,t){return t===`W`?e+`周`:e+`日`},weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`YYYY/MM/DD`,LL:`YYYY年M月D日`,LLL:`YYYY年M月D日Ah点mm分`,LLLL:`YYYY年M月D日ddddAh点mm分`,l:`YYYY/M/D`,ll:`YYYY年M月D日`,lll:`YYYY年M月D日 HH:mm`,llll:`YYYY年M月D日dddd HH:mm`},relativeTime:{future:`%s内`,past:`%s前`,s:`几秒`,m:`1 分钟`,mm:`%d 分钟`,h:`1 小时`,hh:`%d 小时`,d:`1 天`,dd:`%d 天`,M:`1 个月`,MM:`%d 个月`,y:`1 年`,yy:`%d 年`},meridiem:function(e,t){var n=100*e+t;return n<600?`凌晨`:n<900?`早上`:n<1100?`上午`:n<1300?`中午`:n<1800?`下午`:`晚上`}};return n.default.locale(r,null,!0),r})})(Np,Np.exports),Np.exports;var woe={autoComplete:{empty:`暂无数据`},pagination:{itemsPerPage:`{size} 条/页`,jumpTo:`跳至`,page:`页`,total:`共 {count} 条数据`},cascader:{empty:`暂无数据`,loadingText:`加载中`,placeholder:`请选择`},calendar:{yearSelection:`{year} 年`,monthSelection:`{month} 月`,yearRadio:`年`,monthRadio:`月`,hideWeekend:`隐藏周末`,showWeekend:`显示周末`,today:`今天`,thisMonth:`本月`,week:`一,二,三,四,五,六,日`,cellMonth:`1 月,2 月,3 月,4 月,5 月,6 月,7 月,8 月,9 月,10 月,11 月,12 月`},transfer:{title:`{checked} / {total} 项`,empty:`暂无数据`,placeholder:`请输入关键词搜索`},timePicker:{dayjsLocale:`zh-cn`,now:`此刻`,confirm:`确定`,anteMeridiem:`上午`,postMeridiem:`下午`,placeholder:`选择时间`},dialog:{confirm:`确认`,cancel:`取消`},drawer:{confirm:`确认`,cancel:`取消`},popconfirm:{confirm:{content:`确定`},cancel:{content:`取消`}},table:{empty:`暂无数据`,loadingText:`正在加载中,请稍后`,loadingMoreText:`点击加载更多`,filterInputPlaceholder:`请输入内容(无默认值)`,sortAscendingOperationText:`点击升序`,sortCancelOperationText:`点击取消排序`,sortDescendingOperationText:`点击降序`,clearFilterResultButtonText:`清空筛选`,columnConfigButtonText:`列配置`,columnConfigTitleText:`表格列配置`,columnConfigDescriptionText:`请选择需要在表格中显示的数据列`,confirmText:`确认`,cancelText:`取消`,resetText:`重置`,selectAllText:`全选`,searchResultText:`搜索“{result}”,找到 {count} 条结果`},select:{empty:`暂无数据`,loadingText:`加载中`,placeholder:`请选择`},tree:{empty:`暂无数据`},treeSelect:{empty:`暂无数据`,loadingText:`加载中`,placeholder:`请选择`},datePicker:{dayjsLocale:`zh-cn`,placeholder:{date:`请选择日期`,month:`请选择月份`,year:`请选择年份`,quarter:`请选择季度`,week:`请选择周`},weekdays:[`一`,`二`,`三`,`四`,`五`,`六`,`日`],months:[`1 月`,`2 月`,`3 月`,`4 月`,`5 月`,`6 月`,`7 月`,`8 月`,`9 月`,`10 月`,`11 月`,`12 月`],quarters:[`一季度`,`二季度`,`三季度`,`四季度`],rangeSeparator:` - `,direction:`ltr`,format:`YYYY-MM-DD`,dayAriaLabel:`日`,weekAbbreviation:`周`,yearAriaLabel:`年`,monthAriaLabel:`月`,confirm:`确定`,selectTime:`选择时间`,selectDate:`选择日期`,nextYear:`下一年`,preYear:`上一年`,nextMonth:`下个月`,preMonth:`上个月`,preDecade:`上个十年`,nextDecade:`下个十年`,now:`当前`},upload:{sizeLimitMessage:`文件大小不能超过 {sizeLimit}`,cancelUploadText:`取消上传`,triggerUploadText:{fileInput:`选择文件`,image:`点击上传图片`,normal:`点击上传`,reupload:`重新选择`,continueUpload:`继续选择`,delete:`删除`,uploading:`上传中`},dragger:{dragDropText:`释放鼠标`,draggingText:`拖拽到此区域`,clickAndDragText:`点击上方“选择文件”或将文件拖拽到此区域`},file:{fileNameText:`文件名`,fileSizeText:`文件大小`,fileStatusText:`状态`,fileOperationText:`操作`,fileOperationDateText:`上传日期`},progress:{uploadingText:`上传中`,waitingText:`待上传`,failText:`上传失败`,successText:`上传成功`}},form:{errorMessage:{date:"请输入正确的${name}",url:"请输入正确的${name}",required:"${name}必填",whitespace:"${name}不能为空",max:"${name}字符长度不能超过 ${validate} 个字符,一个中文等于两个字符",min:"${name}字符长度不能少于 ${validate} 个字符,一个中文等于两个字符",len:"${name}字符长度必须是 ${validate}",enum:"${name}只能是${validate}等",idcard:"请输入正确的${name}",telnumber:"请输入正确的${name}",pattern:"请输入正确的${name}",validator:"${name}不符合要求",boolean:"${name}数据类型必须是布尔类型",number:"${name}必须是数字",email:"请输入正确的${name}"},colonText:`:`},input:{placeholder:`请输入`},list:{loadingText:`正在加载中,请稍等`,loadingMoreText:`点击加载更多`},alert:{expandText:`展开更多`,collapseText:`收起`},anchor:{copySuccessText:`链接复制成功`,copyText:`复制链接`},colorPicker:{swatchColorTitle:`系统预设颜色`,recentColorTitle:`最近使用颜色`,clearConfirmText:`确定清空最近使用的颜色吗?`,singleColor:`单色`,gradientColor:`渐变`},guide:{finishButtonProps:{content:`完成`,theme:`primary`},nextButtonProps:{content:`下一步`,theme:`primary`},skipButtonProps:{content:`跳过`,theme:`default`},prevButtonProps:{content:`上一步`,theme:`default`}},image:{errorText:`图片无法显示`,loadingText:`图片加载中`},imageViewer:{errorText:`图片加载失败,可尝试重新加载`,mirrorTipText:`镜像`,rotateTipText:`旋转`,originalSizeTipText:`原始大小`,previewText:`预览`},typography:{expandText:`展开`,collapseText:`收起`,copiedText:`复制成功`},rate:{rateText:[`极差`,`失望`,`一般`,`满意`,`惊喜`]},empty:{titleText:{maintenance:`建设中`,success:`成功`,fail:`失败`,empty:`暂无数据`,networkError:`网络错误`}},descriptions:{colonText:`:`},chat:{placeholder:`请输入消息...`,stopBtnText:`中止`,refreshTipText:`重新生成`,copyTipText:`复制`,likeTipText:`点赞`,dislikeTipText:`点踩`,copyCodeBtnText:`复制代码`,copyCodeSuccessText:`已复制`,clearHistoryBtnText:`清空历史记录`,copyTextSuccess:`已成功复制到剪贴板`,copyTextFail:`复制到剪贴板失败`,confirmClearHistory:`确定要清空所有的消息吗?`,loadingText:`思考中...`,loadingEndText:`已深度思考`,uploadImageText:`上传图片`,uploadAttachmentText:`上传附件`,shareTipText:`分享`},qrcode:{expiredText:`二维码过期`,refreshText:`点击刷新`,scannedText:`已扫描`}},Toe={classPrefix:`t`,animation:{include:[`ripple`,`expand`,`fade`],exclude:[]},attach:null,calendar:{firstDayOfWeek:1,fillWithZero:!0,controllerConfig:void 0},icon:{},input:{autocomplete:``},dialog:{closeOnEscKeydown:!0,closeOnOverlayClick:!0,confirmBtnTheme:{default:`primary`,info:`primary`,warning:`primary`,danger:`primary`,success:`primary`}},message:{},popconfirm:{confirmBtnTheme:{default:`primary`,warning:`primary`,danger:`primary`}},table:{expandIcon:void 0,sortIcon:void 0,filterIcon:void 0,treeExpandAndFoldIcon:void 0,hideSortTips:!1,size:`medium`},select:{clearIcon:void 0,filterable:!1},drawer:{closeOnEscKeydown:!0,closeOnOverlayClick:!0,size:`small`},tree:{folderIcon:void 0},datePicker:{firstDayOfWeek:1},steps:{checkIcon:void 0,errorIcon:void 0},tag:{closeIcon:void 0},form:{requiredMark:void 0},empty:{titleText:{maintenance:void 0,success:void 0,fail:void 0,empty:void 0,networkError:void 0},image:{maintenance:void 0,success:void 0,fail:void 0,empty:void 0,networkError:void 0}}},Pp=function(e){return e.ripple=`ripple`,e.expand=`expand`,e.fade=`fade`,e}(Pp||{}),Fp=mf(Toe,woe),Ip=Symbol(`configProvide`),Eoe=function(e,t){return xd(e,t,function(e,t){if(K(e))return t})};function Doe(e){return e===0?0:e===1?1:2}function Ooe(e){if(Rd(e)){var t=e,n,r={},i=[...arguments].slice(1);if(i.length>0){var a=i[0],o=i[1];typeof a==`number`?(n=a,o&&so(o)===`object`?r=o:r.count=n):so(a)===`object`&&a!==null&&(r=a)}if(t.includes(`|`)){var s=t.split(`|`).map(function(e){return e.trim()}),c;if(typeof n==`number`?c=n:typeof r?.count==`number`&&(c=r.count),typeof c==`number`){var l=Doe(c);t=l<s.length?s[l]:s[s.length-1]}else t=Y(s,1)[0]}return r&&Object.keys(r).length>0&&(t=t.replace(/\{\s*([\w-]+)\s*\}/g,function(e,t){return Object.prototype.hasOwnProperty.call(r,t)?String(r[t]):e})),t}return``}var Lp=I();function Rp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0,n=null;Yi()?(n=wn(Ip,null),n||=Lp):n=Lp;var r=U(function(){return n?.value||Fp}),i=U(function(){return Object.assign({},r.value[e],t)});return{t:function(e){var t=[...arguments].slice(1);return q(e)?t.length?e.apply(void 0,t):e(sa):Ooe.apply(void 0,[e].concat(t))},global:i,globalConfig:i,classPrefix:U(function(){return r.value.classPrefix})}}var koe=function(e){var t=iu(Fp),n=U(function(){return Object.assign({},Eoe(t,e.globalConfig))});return Cn(Ip,n),Lp.value||=n.value,n};function zp(e,t,n,r){if(typeof window>`u`)return null;if(!window||!window.IntersectionObserver)return n(),null;var i=null;try{i=new window.IntersectionObserver(function(t){t[0].isIntersecting&&(n(),i.unobserve(e))},{rootMargin:`0px 0px ${r}px 0px`,root:t}),i.observe(e)}catch(e){console.error(e),n()}return i}var Bp=new Set,Vp={warn:function(e,t){console.warn(`TDesign ${e} Warn: ${t}`)},warnOnce:function(e,t){var n=`TDesign ${e} Warn: ${t}`;Bp.has(n)||(Bp.add(n),console.warn(n))},error:function(e,t){console.error(`TDesign ${e} Error: ${t}`)},errorOnce:function(e,t){var n=`TDesign ${e} Error: ${t}`;Bp.has(n)||(Bp.add(n),console.error(n))},info:function(e,t){console.info(`TDesign ${e} Info: ${t}`)}},Aoe=/(.png|.jpg|.jpeg|.jpe|.webp|.avif|.heic|.heif|.svg|.gif|.bmp)/i,joe=/(.png|.jpg|.jpeg|.jpe|.webp|.avif|.heic|.heif|.svg|.gif|.bmp|.dwg|.dxf|.svf|.tif|.tiff|.arw)/i,Moe=/(.pdf)/i,Noe=/(.xlsx|.xls|.csv|.xlc|.xlm|.xlt|.xlw)/i,Poe=/(.dox|docx|.document|.wps|.wdb|.msword)/i,Foe=/(.ppt|.pptx|.key)/i,Hp=/(.avi|.mp4|.wmv|.mpg|.mpeg|.mov|.rm|.ram|.swf|.flv|.rmvb|.flash|.mid|.3gp)/i,Up={"audio/*":/(.mp2|.mp3|.mp4|.ogg|.3gpp|.ac3|.au)/i,"video/*":Hp,"image/*":joe,".jpg":/image\/jpeg|\.jpg$/i,".heic":/image\/heic|image\/heic-sequence|\.heic$/i,".heif":/image\/heif|image\/heif-sequence|\.heif$/i,".ico":/image\/vnd.microsoft.icon/i,".doc":/application\/msword/i,".docx":/application\/vnd.openxmlformats-officedocument.wordprocessingml.document/i,".xls":/application\/vnd.ms-excel/i,".xlsx":/application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet/i,".ppt":/application\/vnd.ms-powerpoint/i,".pptx":/application\/vnd.openxmlformats-officedocument.presentationml.presentation/i,".vsd":/application\/vnd.visio/i,".txt":/text\/plain/i,".abw":/application\/x-abiword/i,".avi":/video\/x-msvideo/i,".azw":/application\/vnd.amazon.ebook/i,".bin":/application\/octet-stream/i,".cda":/application\/x-cdf/i,".mpkg":/application\/vnd.apple.installer+xml/i,".odp":/application\/vnd.oasis.opendocument.presentation/i,".ods":/application\/vnd.oasis.opendocument.spreadsheet/i,".odt":/application\/vnd.oasis.opendocument.text/i,".oga":/audio\/ogg/i,".ogv":/video\/ogg/i,".ogx":/application\/ogg/i,".ai":/application\/postscript/i,".eps":/application\/postscript/i,".ps":/application\/postscript/i},Wp={B:1,KB:1024,MB:1048576,GB:1073741824};function Ioe(e){return e<Wp.KB?`${e} Bytes`:e>=Wp.KB&&e<Wp.MB?`${(e/Wp.KB).toFixed(1)} KB`:e>=Wp.MB&&e<Wp.GB?`${(e/Wp.MB).toFixed(1)} MB`:e>=Wp.GB?`${(e/Wp.GB).toFixed(1)} GB`:``}function Gp(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],t=new Date,n=t.getMonth()+1;n=n<10?`0${n}`:n;var r=`${t.getFullYear()}-${n}-${t.getDate()}`,i=`${t.getHours()}:${t.getMinutes()}:${t.getSeconds()}`;return e?[r,i].join(` `):r}function Kp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:7,r=e,i=0,a=0;if(!r)return``;for(var o=0;o<r.length;o++){var s=r[o],c=escape(s).indexOf(`%u`)===0;o<t*2&&i<t?c?i+=1:i+=2:o>o-n&&a<n&&(c?a+=1:a+=2)}return r.replace(RegExp(`^(.{${i}})(.+)(.{${a}})\$`),`$1…$3`)}function Loe(e){return e<1024?`${e} Bytes`:e>=1024&&e<1048576?`${(e/1024).toFixed(1)} KB`:e>=1048576?`${(e/1048576).toFixed(1)} MB`:``}function Roe(e,t,n){var r=[`B`,`KB`,`MB`,`GB`],i=1,a=r.indexOf(n);return a===-1&&(Vp.warn(`Upload`,`\`sizeLimit.unit\` can only be one of ${r.join()}`),a=i),e>t*Wp[n]}function zoe(e){return new Promise(function(t){if(!e){t(``);return}var n=new FileReader;n.readAsDataURL(e),n.onload=function(e){t(e.target?.result)}})}function Boe(e,t,n){var r=t||n;if(!e)return!0;if(!r)return!1;for(var i=e.split(`,`).map(function(e){return e.trim()}),a=0,o=i.length;a<o;a++){var s=i[a];if(Up[s]&&Up[s].test(r)||new RegExp(s,`i`).test(r))return!0}return!1}function qp(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,n=[],r=0;r<e.length;r++)Boe(t,e[r].type,e[r].name)&&n.push(e[r]);return n}function Jp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,co(r.key),r)}}function Yp(e,t,n){return t&&Jp(e.prototype,t),n&&Jp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xp(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var Zp=/^ArrowDown$/i,Qp=/^ArrowUp$/i,Voe=/^ArrowLeft$/i,Hoe=/^ArrowRight$/i,$p=/^Escape$/i,em=/^Space$/i,tm=/^Enter$/i,nm=/^(Shift|ShiftLeft|ShiftRight)$/i,rm=/^KeyC$/i,im=/^(KeyA|KeyL)$/i,am=/^(Enter|Space)$/i;function Uoe(){var e=Yi();return function(t,n){var r;if(q(e.props[t]))r=e.props[t](sa);else if(e.slots[t])r=e.slots[t]&&e.slots[t](null)[0];else if(n){var i=n[e.props.theme];r=V(i,null,null)}return r}}function om(){var e=Yi();return function(t,n){var r,i;return n||=e.slots,Tp(((r=n)==null||(i=r.default)==null?void 0:i.call(r))||[]).filter(function(e){return e.type.name?.endsWith(t)})}}function sm(){var e=Yi();return function(){var t,n=e.slots;return((n==null||(t=n.default)==null?void 0:t.call(n))||[]).filter(function(e){return so(e.type)===`symbol`&&!e.children?!1:e.type!==Si}).map(function(e){return e.children&&K(e.children)&&e.type===bi?e.children:e}).flat()}}function cm(){function e(t){var n=[];return t.forEach(function(t){Mi(t)&&t.type===bi&&Array.isArray(t.children)?n.push.apply(n,W(e(t.children))):Mi(t)&&[Ln,Si].some(function(e){return e===t.type})||n.push(t)}),n}return e}var Woe=Object.prototype.hasOwnProperty,lm=function(e,t){return Woe.call(e,t)},um=function(e,t){return lm(e,t)?e[t]:void 0};function dm(e,t,n){var r,i,a=(r=e.slots)[Yc(t)]?.call(r,n);return a&&a.filter(function(e){return!Cp(e)}).length||(a=(i=e.slots)[cf(t)]?.call(i,n),a&&a.filter(function(e){return!Cp(e)}).length)?a:null}function fm(e){return[void 0,null,``].includes(e)?!0:!(e instanceof Array?e:[e]).filter(function(e){var t;return(e==null||(t=e.type)==null?void 0:t.toString())!==`Symbol(Comment)`}).length}function Goe(e,t){var n=e?.vnode.props||{};return lm(n,Yc(t))||lm(n,cf(t))}var pm=function(){var e=Yi();return function(t,n){var r=Ep(n),i=wp(n),a=doe(n),o=e.slots[Yc(t)]||e.slots[cf(t)];if(a&&o)return dm(e,t,r);if(Goe(e,t)){var s=e.props[Yc(t)]||e.props[cf(t)],c=e.type.props[t]?.type;return c?.length>1&&c.includes(Boolean)&&c.includes(Function)&&s===``&&!o?i:s===!1||s===null?void 0:s===!0?dm(e,t,r)||i:q(s)?s(sa,r):[void 0,``].includes(s)&&o?dm(e,t,r):s}if(o)return dm(e,t,r);var l=e.props[Yc(t)]||e.props[cf(t)];return l===!1||l===null?void 0:l===!0?i:q(l)?l(sa,r):l}},mm=function(){var e=pm();return function(t,n){var r=wp(n);return e(t,n)||r}},hm=function(){var e=pm();return function(t,n,r){var i=Ep(r),a=wp(r),o=i?{params:i}:void 0,s=e(t,o),c=e(n,o),l=fm(s)?c:s;return fm(l)?a:l}},gm=function(e){return e.filter(function(e){return!Cp(e)})};function _m(e){return e?Rd(e)?e:Array.isArray(e)?gm(e).map(function(e){return _m(e)}).filter(Boolean).join(` `):Cp(e)?``:Rd(e.children)?e.children:Array.isArray(e.children)?gm(e.children).map(function(e){return _m(e)}).filter(Boolean).join(` `):e.children&&Do(e.children)?Object.values(e.children).map(function(e){return!e||q(e)?``:_m(e)}).filter(Boolean).join(` `):``:``}function vm(){return{beforeEnter:function(e){e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height=`0`,e.style.paddingTop=`0`,e.style.paddingBottom=`0`},enter:function(e){e.dataset.oldOverflow=e.style.overflow,e.style.height=`${e.scrollHeight}px`,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom,e.style.overflow=`hidden`},afterEnter:function(e){e.style.height=``,e.style.overflow=e.dataset.oldOverflow},beforeLeave:function(e){e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.height=`${e.scrollHeight}px`,e.style.overflow=`hidden`},leave:function(e){e.scrollHeight!==0&&(e.style.height=`0`,e.style.paddingTop=`0`,e.style.paddingBottom=`0`)},afterLeave:function(e){e.style.height=``,e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom}}}function Q(e){var t=Rp(`classPrefix`).classPrefix;return U(function(){return e?`${t.value}-${e}`:t.value})}function ym(){var e=Rp(`classPrefix`).classPrefix;return{classPrefix:e,SIZE:U(function(){return{small:`${e.value}-size-s`,medium:`${e.value}-size-m`,large:`${e.value}-size-l`,default:``,xs:`${e.value}-size-xs`,xl:`${e.value}-size-xl`,block:`${e.value}-size-full-width`}}),STATUS:U(function(){return{loading:`${e.value}-is-loading`,loadMore:`${e.value}-is-load-more`,disabled:`${e.value}-is-disabled`,focused:`${e.value}-is-focused`,success:`${e.value}-is-success`,error:`${e.value}-is-error`,warning:`${e.value}-is-warning`,selected:`${e.value}-is-selected`,active:`${e.value}-is-active`,checked:`${e.value}-is-checked`,current:`${e.value}-is-current`,hidden:`${e.value}-is-hidden`,visible:`${e.value}-is-visible`,expanded:`${e.value}-is-expanded`,indeterminate:`${e.value}-is-indeterminate`}})}}function bm(e,t,n,r){var i=Yi(),a=i.emit,o=i.vnode,s=I(),c=o.props||{};return Object.prototype.hasOwnProperty.call(c,r)||Object.prototype.hasOwnProperty.call(c,cf(r))?[e,function(e){a(`update:${r}`,e);var t=[...arguments].slice(1);n?.apply(void 0,[e].concat(t))}]:(s.value=t,[s,function(e){s.value=e;var t=[...arguments].slice(1);n?.apply(void 0,[e].concat(t))}])}var Koe=`t-display-none-element-refresh`;function xm(){var e=I(0);Cn(Koe,e),gr(function(){e.value+=1})}function Sm(e){var t=Yi(),n=U(function(){return t.props.disabled}),r=wn(`formDisabled`,Object.create(null));return U(function(){var t,i;return K(n.value)&&n.value.length===2?n.value:Gd(e==null||(t=e.beforeDisabled)==null?void 0:t.value)?e.beforeDisabled.value:Gd(n.value)?n.value:Gd(e==null||(i=e.afterDisabled)==null?void 0:i.value)?e.afterDisabled.value:Gd(r.disabled?.value)?r.disabled.value:!1})}var Cm=function(e,t){Array.from(e).filter(function(e){return e instanceof HTMLDivElement&&!!e.getAttribute(`draggable`)}).forEach(t)},wm=function(e,t){var n;return Cm(t,function(t){e instanceof Node&&t.contains(e)&&(n=t)}),n};function qoe(e){var t=null,n,r=[],i=function(e){var t=e.target;n=t,t.style.opacity=`0.5`;var r=e.dataTransfer;if(r){r.effectAllowed=`copy`;try{r.setData(`text/plain`,``)}catch{}}},a=function(e){e.target.style.opacity=``},o=function(e){if(t){var n=wm(e.target,t.children),r=e.dataTransfer;r&&(r.dropEffect=n!=null&&n.draggable?`copy`:`none`),n!=null&&n.draggable&&e.preventDefault()}},s=function(e){var i=wm(e.target,t.children);if(i&&i!==n&&i.draggable){var a=i.firstChild;a instanceof HTMLElement&&Object.assign(a.style,{outline:`1px dashed #0052d9`}),r.includes(i)||r.push(i)}},c=function(e){for(var t=e.target,n=0,i=r;n<i.length;n++){var a=i[n];a.contains(t)||(a.firstChild.style.outline=`none`)}},l=function(r){r.preventDefault(),Cm(t.children,function(e){var t=e.firstChild;t&&(t.style.outline=`none`)});var i=wm(r.target,t.children);if(i&&i.parentNode!==n&&i.draggable){var a,o=[].indexOf.call(t.children,n),s=[].indexOf.call(t.children,i);s>o&&(i=t.children[s+1]);var c=e.theme===`card`?o:o-1,l=e.theme===`card`?s:s-1;(a=e.onDragSort)==null||a.call(e,{currentIndex:c,current:e.panels[c].value,targetIndex:l,target:e.panels[l].value})}};function u(e){t=e,t.addEventListener(`dragstart`,i,!1),t.addEventListener(`dragend`,a,!1),t.addEventListener(`dragover`,o,!1),t.addEventListener(`dragenter`,s,!1),document.addEventListener(`dragleave`,c,!1),document.addEventListener(`mousemove`,c,!1),t.addEventListener(`drop`,l,!1)}return vr(function(){t&&(t.removeEventListener(`dragstart`,i),t.removeEventListener(`dragend`,a),t.removeEventListener(`dragover`,o),t.removeEventListener(`dragenter`,s),document.removeEventListener(`dragleave`,c),document.removeEventListener(`mousemove`,c),t.removeEventListener(`drop`,l))}),{setNavsWrap:u}}function Joe(e,t){var n=I(),r=I(!0),i=function(){!t.value||!e.value||n.value||(r.value=!1,n.value=zp(e.value,null,function(){r.value=!0},10))};return mr(i),t.value&&R([t,e],i),_r(function(){var r,i;t.value&&((r=n.value)==null||(i=r.unobserve)==null||i.call(r,e.value))}),{showElement:r}}function Tm(e){var t=Rp(`icon`).globalConfig,n={};return Object.keys(e).forEach(function(r){n[r]=t.value?.[r]||e[r]}),n}function Em(e){var t=I(``);return R([e],function(e,n){var r=Y(e,1)[0];if(Y(n,1)[0]!==r){if(typeof r==`string`){t.value=r;return}zoe(r).then(function(e){t.value=e})}},{immediate:!0}),{previewUrl:t}}var Yoe=Pp.expand,Xoe=Pp.ripple,Zoe=Pp.fade;function Qoe(){var e=Rp(`animation`).globalConfig,t=function(t){var n,r=e.value;return r&&!((n=r.exclude)!=null&&n.includes(t))&&r.include?.includes(t)};return{keepExpand:t(Yoe),keepRipple:t(Xoe),keepFade:t(Zoe)}}function $oe(e,t,n){var r=U(function(){return Math.max(n.rowHeight||48,48)}),i=I(!1),a=U(function(){return n?.type===`lazy`&&!i.value}),o=!sp&&window.requestAnimationFrame||function(e){return setTimeout(e,16.6)},s=function(){i.value||o(function(){i.value=!0})};return mr(function(){n?.type===`lazy`&&dn(function(){var i=Math.max(10,n.bufferSize||10),a=r.value*i;zp(t.value,e.value,s,a)})}),{hasLazyLoadHolder:a,tRowHeight:r}}function Dm(e,t){mr(function(){window.addEventListener(e,t)}),_r(function(){window.removeEventListener(e,t)})}function Om(e,t){Dm(`resize`,e);var n=null;mr(function(){!window.ResizeObserver||!t||(n=new window.ResizeObserver(e),n.observe(t))}),_r(function(){var e;(e=n)==null||e.disconnect()})}var km=[`dialog`,`drawer`],ese=1e3,tse=5e3,nse=1,Am=new(Yp(function e(){var t=this;Xp(this,e),G(this,`popupStack`,{popup:new Set,dialog:new Set,message:new Set,drawer:new Set}),G(this,`zIndexStack`,[]),G(this,`getNextZIndex`,function(e){return(e===`message`?Array.from(t.popupStack.message).pop()||tse:Array.from(t.popupStack.popup).pop()||ese)+nse}),G(this,`add`,function(e){var n=t.getNextZIndex(e);return t.popupStack[e].add(n),km.includes(e)&&t.popupStack.popup.add(n),t.zIndexStack.push(n),n}),G(this,`delete`,function(e,n){t.popupStack[n].delete(e),km.includes(n)&&t.popupStack.popup.delete(e);var r=t.zIndexStack.indexOf(e);r!==-1&&t.zIndexStack.splice(r,1)}),G(this,`isTopInteractivePopup`,function(e,n){return km.includes(e)?n===t.zIndexStack[t.zIndexStack.length-1]:t.popupStack[e]?.size>1?n===Array.from(t.popupStack[e]).pop():!0}),G(this,`getLastZIndex`,function(){return t.zIndexStack[t.zIndexStack.length-1]})}));function jm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.visible,r=t.runOnMounted,i=I(0),a=function(){i.value=Am.add(e)},o=function(){Am.delete(i.value,e)};return R(function(){return n?.value},function(e){e?a():o()},{immediate:!0}),r&&(mr(function(){a()}),_r(function(){o()})),{zIndex:kt(i),open:a,close:o,isTopInteractivePopup:function(){return km.includes(e)?Am.isTopInteractivePopup(e,i.value):!1}}}function Mm(e){var t=Yi(),n=U(function(){return t.props.readonly}),r=wn(`formReadonly`,Object.create(null));return U(function(){var t,i;return Gd(e==null||(t=e.beforeReadonly)==null?void 0:t.value)?e.beforeReadonly.value:Gd(n?.value)?n.value:Gd(e==null||(i=e.afterReadonly)==null?void 0:i.value)?e.afterReadonly.value:Gd(r.readonly?.value)?r.readonly.value:!1})}function Nm(e,t){if(!(typeof window>`u`)&&window&&window.ResizeObserver){var n=null,r=function(){!n||!e.value||(n.unobserve(e.value),n.disconnect(),n=null)},i=function(e){n=new ResizeObserver(t),n.observe(e)};e&&R(e,function(e){r(),e&&i(e)},{immediate:!0,flush:`post`}),_r(function(){r()})}}function Pm(e,t){e&&Object.keys(t).forEach(function(n){e.style[n]=t[n]})}var Fm=200,rse=200,ise=`rgba(0, 0, 0, 0)`,ase=`rgba(0, 0, 0, 0.35)`,ose=function(e,t){var n;if(t)return t;if(e!=null&&(n=e.dataset)!=null&&n.ripple)return e.dataset.ripple;if(e instanceof Element){var r=getComputedStyle(e).getPropertyValue(`--ripple-color`);if(r)return r}return ase};function Im(e,t){var n=I(null),r=Q(),i=Qoe().keepRipple,a=function(a){var o=e.value;if(!(!o||!(o instanceof Element))){var s=ose(o,t?.value);if(!(a.button!==0||!e||!i)&&!(o.classList.contains(`${r.value}-is-active`)||o.classList.contains(`${r.value}-is-disabled`)||o.classList.contains(`${r.value}-is-checked`)||o.classList.contains(`${r.value}-is-loading`))&&o instanceof Element){var c=getComputedStyle(o),l=parseInt(c.borderWidth,10),u=l>0?l:0,d=o.offsetWidth;n.value.parentNode===null&&(Pm(n.value,{position:`absolute`,left:`${0-u}px`,top:`${0-u}px`,width:`calc(100% + ${u*2}px)`,height:`calc(100% + ${u*2}px)`,borderRadius:c.borderRadius,pointerEvents:`none`,overflow:`hidden`}),o.appendChild(n.value));var f=document.createElement(`div`);Pm(f,{marginTop:`0`,marginLeft:`0`,right:`${d}px`,width:`${d+20}px`,height:`100%`,transition:`transform ${Fm}ms cubic-bezier(.38, 0, .24, 1), background ${Fm*2}ms linear`,transform:`skewX(-8deg)`,pointerEvents:`none`,position:`absolute`,zIndex:0,backgroundColor:s,opacity:`0.9`});for(var p=new WeakMap,m=o.children.length,h=0;h<m;++h){var g=o.children[h];g.style.zIndex===``&&g!==n.value&&(g.style.zIndex=`1`,p.set(g,!0))}var _=o.style.position;!_&&o instanceof Element&&(_=getComputedStyle(o).position),(_===``||_===`static`)&&(o.style.position=`relative`),n.value.insertBefore(f,n.value.firstChild),setTimeout(function(){f.style.transform=`translateX(${d}px)`},0);var v=!1,y=null,b=function(){v||(v=!0,f.style.backgroundColor=ise,y&&=(y.disconnect(),null),e.value&&(e.value.removeEventListener(`pointerup`,b,!1),e.value.removeEventListener(`pointerleave`,b,!1)),setTimeout(function(){f.remove(),n.value.children.length===0&&n.value.remove()},Fm*2+100))};typeof MutationObserver<`u`&&(y=new MutationObserver(function(){if(!(!o||!(o instanceof Element))){var e=o.classList;(e.contains(`${r.value}-is-loading`)||e.contains(`${r.value}-is-disabled`)||e.contains(`${r.value}-is-active`)||e.contains(`${r.value}-is-checked`))&&(f.style.transition=`transform ${Fm}ms cubic-bezier(.38, 0, .24, 1), background ${rse}ms linear`,b())}}),y.observe(o,{attributes:!0,attributeFilter:[`class`]})),e.value.addEventListener(`pointerup`,b,!1),e.value.addEventListener(`pointerleave`,b,!1)}}};mr(function(){var t=e?.value;t&&(n.value=document.createElement(`div`),t.addEventListener(`pointerdown`,a,!1))}),vr(function(){var t;e==null||(t=e.value)==null||t.removeEventListener(`pointerdown`,a,!1)})}function Lm(e,t){var n=q(e)?U(e):I(e),r=q(t)?U(t):I(t),i=I(),a=function(){i.value=pp(n.value,r.value)};return mr(function(){return a()}),R([n,r],function(){return a()}),i}function Rm(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:`value`,a=Yi(),o=a.emit,s=a.vnode,c=I(),l=s.props||{},u=Object.prototype.hasOwnProperty.call(l,`modelValue`)||Object.prototype.hasOwnProperty.call(l,`model-value`),d=Object.prototype.hasOwnProperty.call(l,i)||Object.prototype.hasOwnProperty.call(l,cf(i));return u?[t,function(e){o(`update:modelValue`,e);var t=[...arguments].slice(1);r?.apply(void 0,[e].concat(t))}]:d?[e,function(e){o(`update:${i}`,e);var t=[...arguments].slice(1);r?.apply(void 0,[e].concat(t))}]:(c.value=n,[c,function(e){c.value=e;var t=[...arguments].slice(1);r?.apply(void 0,[e].concat(t))}])}function zm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zm(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sse(e){var t=e.data,n=e.container,r=e.fixedHeight,i=r!==void 0&&r,a=e.lineHeight,o=a===void 0?30:a,s=e.bufferSize,c=s===void 0?20:s,l=e.threshold,u=l===void 0?100:l,d=Dt({visibleData:[],cachedHeight:[],cachedScrollY:[]}),f=U(function(){return t.value.length>u}),p=I(0),m=new Map,h=0,g=0,_=0,v=0,y=0,b=0,x=function(){t.value.forEach(function(e,t){e.$index=t,i&&(d.cachedScrollY[t]=t*o)}),i||(d.cachedScrollY[t.value.length-1]=void 0)};x();var S=U(function(){var e=d.cachedHeight;if(e.length){var n=e.reduce(function(e,t){return e+t||o},0);if(e.length===t.value.length)return n;var r=n/e.length;return n+(t.value.length-e.length)*r}return f.value?t.value.length*o:0}),C=U(function(){var e=d.visibleData,t=e[0];return t?e.length===1?0:d.cachedScrollY[t.$index]:0}),w=function(){b=Math.min(y+h+c*2,t.value.length),d.visibleData=t.value.slice(y,b)},T=function(){var e,r=m.get(_);if(r){var i=r==null||(e=r.getBoundingClientRect())==null?void 0:e.height;d.cachedScrollY[_]=n.value.scrollTop-v,d.cachedHeight[_]=i;for(var a=_+1;a<=(o=d.visibleData[d.visibleData.length-1])?.$index;a++){var o,s=(m.get(a)?.getBoundingClientRect()||{}).height;d.cachedHeight[a]=s;var c=d.cachedScrollY[a-1]+d.cachedHeight[a-1];d.cachedScrollY.splice(a,1,c)}for(var l=_-1;l>=(u=d.visibleData[0])?.$index;l--){var u,f=(m.get(l)?.getBoundingClientRect()||{}).height;d.cachedHeight[l]=f;var p=d.cachedScrollY[l+1]-d.cachedHeight[l];d.cachedScrollY.splice(l,1,p)}if(d.cachedScrollY[0]>0){for(var h=d.cachedScrollY[0],x=Math.min(b,t.value.length),S=0;S<x;S++)d.cachedScrollY.splice(S,1,d.cachedScrollY[S]-h);var C=d.cachedScrollY[_-1]?d.cachedScrollY[_-1]+v:v;n.value.scrollTop=C,g=C}if(d.cachedScrollY[y]<0){var w=d.cachedHeight.slice(0,Math.max(0,_)).reduce(function(e,t){return e+t},0)+v;n.value.scrollTop=w,g=w,w===0&&(_=0,v=0)}dn(function(){var e=n.value,t=e.scrollTop,r=e.scrollHeight;if(t+e.clientHeight===r)for(var i=b-1;i>=y;i--)i===b-1?d.cachedScrollY.splice(i,1,r.value-d.cachedHeight[i]):d.cachedScrollY.splice(i,1,d.cachedScrollY[i+1]-d.cachedHeight[i])})}},E=function(){if(f.value){var e=n.value.scrollTop,r=e-g;g=e,r+=v;var i=_;if(r){if(r>=0){for(;i<t.value.length&&r>(d.cachedHeight[i]||o);)d.cachedHeight[i]||(d.cachedHeight[i]=o),r-=d.cachedHeight[i],i++;i>=t.value.length?(_=t.value.length-1,v=0):(_=i,v=r);var a=n.value,s=a.clientHeight,l=a.scrollHeight;e+s===l&&(_=t.value.length-h+1),y<=_-c&&(y=Math.min(t.value.length-h,_-c),y<0&&(y=0))}else{for(;r<0;)i--,d.cachedHeight[i]||(d.cachedHeight[i]=o),r+=d.cachedHeight[i];i<0?(_=0,v=0):(_=i,v=r),T(),y>_-c&&(y=Math.max(0,_-c))}w()}}};!i&&R(p,T,{flush:`post`});var D=function(){f.value&&p.value++};R(t,function(){x(),d.visibleData=[],d.cachedScrollY=[],d.cachedHeight=[],g=0,_=0,v=0,y=0,m.clear(),t.value.length<=u?d.visibleData=t.value:w(),n.value&&(n.value.scrollTop=0)});var O=!1,k=function(){O&&(h=Math.ceil(n.value.offsetHeight/o),w())};return mr(function(){if(!(!window||!window.IntersectionObserver)){var e=new window.IntersectionObserver(function(t){var r=t[0];(r.isIntersecting||r.intersectionRatio)&&(O=!0,f.value&&k(),e.unobserve(n.value))});n.value&&e.observe(n.value)}}),Bm(Bm({trs:m,scrollHeight:S},Wt(d)),{},{translateY:C,handleScroll:E,handleRowMounted:D,refreshContainer:k,fixedHeight:i,calculateScrollY:T})}function Vm(e,t){var n=I([]),r=I((t.value.data?.length||0)*(t.value.scroll?.rowHeight||50)),i=I(0),a=[],o=I(0),s=I(0),c=I([0,15]),l=U(function(){var e=t.value.scroll;return e?{bufferSize:e.bufferSize||10,isFixedRowHeight:e.isFixedRowHeight??!1,rowHeight:e.rowHeight||47,threshold:e.threshold||100,type:e.type,fixedRows:e.fixedRows??[0,0]}:{}}),u=U(function(){var e=t.value.data;return l.value.type===`virtual`&&l.value.threshold<e.length});function d(){for(var n=e.value?.scrollTop??0,r=l.value.fixedRows[0],i=[],s=0,c=-1,u=-1,d=0,f=0,p=t.value.data.length;f<p;f++){var m=a[f]??l.value.rowHeight;if(d+=m,d>n&&c===-1&&(c=f,c-l.value.bufferSize>0&&(s=d-m-Vf(i))),c===-1&&(i.push(m),i.length>l.value.bufferSize&&i.shift()),u===-1&&(d>o.value+n||f===t.value.data.length-1)&&(u=f),c!==-1&&u!==-1)break}var h=ff([c-l.value.bufferSize,0]),g=hf([u+l.value.bufferSize,t.value.data.length]),_=Vf(a.slice(0,Math.min(h,r)));return{startIndex:h,endIndex:g,translateY:s-_}}var f=Hf(function(){var e=d(),i=e.startIndex,a=e.endIndex,o=e.translateY,s=l.value.fixedRows,u=Y(s,2),f=u[0],p=u[1],m=f?t.value.data.slice(0,f):[];f&&i<f&&(m=m.slice(0,i));var h=p?t.value.data.slice(t.value.data.length-p):[],g=a-t.value.data.length+1+(p??0);p&&g>0&&(h=h.slice(g)),c.value.join()!==[i,a].join()&&i>=0&&(r.value=o,n.value=m.concat(t.value.data.slice(i,a),h),c.value=[i,a])},100),p=function(t){if(!(!u.value||!t||l.value.isFixedRowHeight||!e.value)){var n=t.ref.value?.getBoundingClientRect().height||l.value.rowHeight,r=t.data.VIRTUAL_SCROLL_INDEX;if(a[r]!==n){var o=n-a[r];a[r]=n,i.value+=o}}},m=function(){u.value&&f()},h=function(n){var i=Y(n,1)[0].contentRect;t.value.preventResizeRefresh||(Math.abs(i.width-s.value)>16&&e.value&&(e.value.scrollTop=0,r.value=0),s.value=i.width,o.value=i.height)},g=function(e){e.forEach(function(e,t){e.VIRTUAL_SCROLL_INDEX=t})},_=function(t){var n=t.index,r=t.top,i=r===void 0?0:r,o=t.behavior,s=Vf(a.slice(0,n+1))-i;e.value.scrollTo({top:s,behavior:o||`auto`})};return Nm(U(function(){return u.value?e.value:void 0}),h),R(function(){return[W(t.value.data),l.value,u.value,e.value]},function(){if(!(!u.value||!e.value)){var n=t.value.data;if(g(n),o.value=e.value.getBoundingClientRect().height,a.length!==t.value.data.length){var r=Array.from(a);r.length=t.value.data.length,r.fill(l.value.rowHeight||47),a=r}i.value=Vf(a),c.value=[0,0],f()}},{immediate:!0}),R(function(){return o.value},function(){f()}),{visibleData:n,translateY:r,scrollHeight:i,isVirtualScroll:u,handleScroll:m,handleRowMounted:p,scrollToElement:function(e){if(_(e),!l.value.isFixedRowHeight)var t,n=e.time??60,r=setTimeout(function(){_(e),clearTimeout(r)},n)}}}function Hm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Um(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Hm(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Wm={debounceTime:0,config:{attributes:!0,childList:!0,characterData:!0,subtree:!0}};function cse(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wm,r=I(Um(Um({},Wm),n)),i=null,a=function(){var n;if(e){var a=r.value,o=a.debounceTime,s=o===void 0?0:o,c=a.config,l=c===void 0?Wm.config:c,u=function(){var e=[...arguments];t?.apply(void 0,e)};(n=i)==null||n.disconnect(),i=new MutationObserver(s>0?md(u,s):u),i.observe(e,l)}};R(function(){return n},function(e){ef(e,r.value)||(r.value=Um(Um({},Wm),e),a())},{deep:!0}),mr(a),_r(function(){return i?.disconnect()})}var Gm=function(e){if(typeof window>`u`)return``;var t=document?.documentElement;return getComputedStyle(t).getPropertyValue(e).trim()??``};function Km(e){var t={};return Object.entries(e).forEach(function(e){var n=Y(e,1)[0];t[n]=I(``)}),dn(function(){Object.entries(e).forEach(function(e){var n=Y(e,2),r=n[0],i=n[1];t[r].value=Gm(i)})}),cse(document?.documentElement,function(n){n.some(function(n){return n.type===`attributes`&&n.attributeName===`theme-mode`?(Object.entries(e).forEach(function(e){var n=Y(e,2),r=n[0],i=n[1];t[r].value=Gm(i)}),!0):!1})}),t}function qm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lse(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qm(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jm(e,t){return U(function(){var n=lse({},e);return Object.keys(t??{}).forEach(function(r){var i=e?.[r],a=t?.[r];typeof i==`function`&&typeof a==`function`?n[r]=function(){try{a.apply(void 0,arguments)}catch(e){console.warn(`[useEventForward]: Error in component callback for ${String(r)}:`,e)}try{i.apply(void 0,arguments)}catch(e){console.warn(`[useEventForward]: Error in self defined callback for ${String(r)}:`,e)}}:typeof a==`function`&&(n[r]=a)}),n})}function use(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ym(e,t){if(e==null)return{};var n,r,i=use(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var dse=[`from`,`to`,`direction`];function Xm(e){var t={};return Object.keys(e).forEach(function(n){(!sf(e[n])||of(e[n]))&&(t[n]=e[n])}),t}function fse(e){if(Rd(e))return e;if(K(e))return e[0]&&e[0][0]===`#`&&e.unshift(`90deg`),`linear-gradient( ${e.join(`,`)} )`;var t=e.from,n=e.to,r=e.direction,i=r===void 0?`to right`:r,a=Ym(e,dse),o=Object.keys(a);return o.length?(o=o.sort(function(e,t){return parseFloat(e.substr(0,e.length-1))-parseFloat(t.substr(0,t.length-1))}),`linear-gradient(${i}, ${o.map(function(e){return`${a[e]} ${e}`}).join(`,`)})`):`linear-gradient(${i}, ${t}, ${n})`}function Zm(){if(typeof navigator>`u`||!navigator)return 2**53-1;var e=navigator.userAgent,t=e.indexOf(`compatible`)>-1&&e.indexOf(`MSIE`)>-1,n=e.indexOf(`Trident`)>-1&&e.indexOf(`rv:11.0`)>-1;if(t){var r=e.match(/MSIE (\d+\.\d+);/);if(!r)return-1;var i=parseFloat(r[1]);return i<7?6:i}return n?11:2**53-1}function pse(){var e,t,n;if(typeof navigator>`u`||!navigator)return!1;var r=navigator.userAgent,i=r.match(/AppleWebKit.+Chrome\/(.+) Safari\/.+/i);if(Number(i==null||(e=i[1])==null?void 0:e.split(`.`)[0])<100)return!0;var a=r.match(/AppleWebKit.+Version\/(.+) Safari\/.+/i);if(Number(a==null||(t=a[1])==null?void 0:t.split(`.`)[0])<12||Zm()<=11)return!0;var o=r.match(/Firefox\/(.+)/i);return Number(o==null||(n=o[1])==null?void 0:n.split(`.`)[0])<100}function Qm(e,t){var n=nf(t);if(!e||e.length===0)return n?{length:0,characters:e}:0;for(var r=0,i=0;i<e.length;i++){var a=0;if(a=e.charCodeAt(i)>127?2:1,n&&r+a>t)return{length:r,characters:e.slice(0,i)};r+=a}return n?{length:r,characters:e}:r}function mse(e){return W(e??``).length}function hse(e,t,n){return W(n??``).slice().length===t?n||``:W(e??``).slice(0,t).join(``)}function $m(e){return nf(e)?`${e}px`:e}var gse=[`padding-top`,`padding-bottom`,`padding-left`,`padding-right`,`font-family`,`font-weight`,`font-size`,`font-variant`,`text-rendering`,`text-transform`,`width`,`text-indent`,`border-width`,`box-sizing`,`line-height`,`letter-spacing`];function _se(e){if(typeof window>`u`)return{paddingSize:0,borderSize:0,boxSizing:0,sizingStyle:``};var t=window.getComputedStyle(e),n=t.getPropertyValue(`box-sizing`)||t.getPropertyValue(`-moz-box-sizing`)||t.getPropertyValue(`-webkit-box-sizing`);return{paddingSize:parseFloat(t.getPropertyValue(`padding-bottom`))+parseFloat(t.getPropertyValue(`padding-top`)),borderSize:parseFloat(t.getPropertyValue(`border-bottom-width`))+parseFloat(t.getPropertyValue(`border-top-width`)),boxSizing:n,sizingStyle:gse.map(function(e){return`${e}:${t.getPropertyValue(e)}`}).join(`;`)}}function vse(){var e;if(typeof window>`u`)return!1;var t=(e=window)==null||(e=e.navigator)==null?void 0:e.userAgent;return/Safari/.test(t)&&!/Chrome/.test(t)}function eh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function th(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?eh(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yse(e){var t,n,r={};if(!(!e||typeof window>`u`)){var i=(t=window).getComputedStyle?.call(t,e),a=i?.color||``,o=i?.fontSize||`12px`,s=(n=window)==null||(n=n.navigator)==null?void 0:n.userAgent,c=/Safari/.test(s)&&!/Chrome/.test(s),l=/(?=.*iPhone)[?=.*MicroMessenger]/.test(s)&&!/Chrome/.test(s),u=/(?=.*iPad)[?=.*MicroMessenger]/.test(s)&&!/Chrome/.test(s);if((c||l||u)&&(r={transformOrigin:`0px 0px`,transform:`scale(${parseInt(o,10)/12})`}),a&&Zm()>11){var d=a.match(/[\d.]+/g),f=d?`rgba(${d[0]}, ${d[1]}, ${d[2]}, 0)`:``;Pm(e,th(th({},r),{},{background:`conic-gradient(from 90deg at 50% 50%,${f} 0deg, ${a} 360deg)`}))}else Pm(e,th(th({},r),{},{background:``}))}}var bse=z({name:`TLoadingGradient`,setup:function(){var e=Q(),t=I();return mr(function(){dn(function(){yse(t.value)})}),function(){var n=`${e.value}-loading__gradient`;return V(`svg`,{class:[n,`${e.value}-icon-loading`],viewBox:`0 0 12 12`,version:`1.1`,width:`1em`,height:`1em`,xmlns:`http://www.w3.org/2000/svg`},[V(`foreignObject`,{x:`0`,y:`0`,width:`12`,height:`12`},[V(`div`,{class:`${n}-conic`,ref:t},null)])])}}}),xse={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}},Sse=function(){return{name:Q(`loading`),centerClass:Q(`loading--center`),fullscreenClass:Q(`loading__fullscreen`),lockClass:Q(`loading--lock`),overlayClass:Q(`loading__overlay`),relativeClass:Q(`loading__parent`),fullClass:Q(`loading--full`),inheritColorClass:Q(`loading--inherit-color`)}},nh=z({name:`TLoading`,inheritAttrs:!1,props:xse,setup:function(e,t){var n=t.slots,r=t.attrs,i=I(!1),a=Sse(),o=a.name,s=a.centerClass,c=a.fullscreenClass,l=a.lockClass,u=a.overlayClass,d=a.relativeClass,f=a.fullClass,p=a.inheritColorClass,m=Q(),h=pm(),g=hm(),_=ym().SIZE,v=function(){i.value=!1;var t=setTimeout(function(){i.value=!0,clearTimeout(t)},e.delay)},y=Lm(function(){return e.attach}),b=U(function(){return!!(!e.delay||e.delay&&i.value)}),x=U(function(){var t={};return e.zIndex!==void 0&&(t.zIndex=e.zIndex),[`small`,`medium`,`large`].includes(e.size)||(t[`font-size`]=e.size),t}),S=U(function(){return!!(e.default||n.default||e.content||n.content)}),C=U(function(){return e.preventScrollThrough&&e.fullscreen}),w=U(function(){return!!(e.text||n.text)}),T=U(function(){return S.value&&e.loading&&b.value}),E=U(function(){return e.fullscreen&&e.loading&&b.value}),D=U(function(){return e.attach&&e.loading&&b.value}),O=U(function(){var t=[s.value,um(_.value,e.size),G({},p.value,e.inheritColor)],n=[o.value,c.value,s.value,u.value];return{baseClasses:t,attachClasses:t.concat([o.value,f.value,G({},u.value,e.showOverlay)]),withContentClasses:t.concat([o.value,f.value,G({},u.value,e.showOverlay)]),fullScreenClasses:n,normalClasses:t.concat([o.value])}}),k=Wt(e).loading;return R([k],function(e){Y(e,1)[0]?(v(),C.value&&dp(document.body,l.value)):C.value&&fp(document.body,l.value)}),mr(function(){e.delay&&v()}),function(){var t=O.value,n=t.fullScreenClasses,i=t.baseClasses,a=t.withContentClasses,o=t.attachClasses,s=t.normalClasses,c=V(bse,null,null),l=k.value&&h(`indicator`,c),u=w.value&&V(`div`,{class:`${m.value}-loading__text`},[h(`text`)]);return e.fullscreen?!E.value||!e.loading?null:V(Ln,{disabled:!e.attach||!y.value,to:y.value},{default:function(){return[V(`div`,H({class:n,style:x.value},r),[V(`div`,{class:i},[l,u])])]}}):S.value?V(`div`,H({class:d.value},r),[g(`default`,`content`),T.value&&V(`div`,{class:a,style:x.value},[l,u])]):e.attach?!D.value||!k.value?null:V(Ln,{disabled:!e.attach||!y.value,to:y.value},{default:function(){return[V(`div`,H({class:o,style:x.value},r),[l,u])]}}):k.value?V(`div`,H({class:s,style:x.value},r),[l,u]):null}}}),rh=null;function Cse(e){return mf({fullscreen:!1,attach:`body`,loading:!0,preventScrollThrough:!0},e)}function ih(e,t){var n=Cse(e);if(n.fullscreen&&rh)return rh;var r=I(``),i=I(``),a=z({setup:function(){var e=Dt(n);return r.value=Q(`loading__parent--relative`).value,i.value=Q(`loading--lock`).value,function(){return sa(nh,e)}}}),o=pp(n.fullscreen?`body`:n.attach),s=V(a);(t??oh._context)&&(s.appContext=t??oh._context);var c=document.createElement(`div`);return Za(s,c),n.preventScrollThrough&&n.fullscreen&&dp(document.body,i.value),o?dp(o,r.value):console.error(`attach is not exist`),{hide:function(){fp(o,r.value),fp(document.body,i.value),Za(null,c),c.remove()}}}function ah(e,t){if(e===!0)return rh=ih({fullscreen:!0,loading:!0,attach:`body`,preventScrollThrough:!0},t),rh;if(e===!1){var n;(n=rh)==null||n.hide(),rh=null;return}return ih(e)}var oh=ah;oh.install=function(e){e.config.globalProperties.$loading=ah,oh._context=e._context};var sh=Symbol(`TdLoading`),ch=function(e,t){var n=t.modifiers,r=n.fullscreen,i=n.inheritColor,a={attach:function(){return e},fullscreen:r??!1,inheritColor:i??!1,loading:t.value};Do(t.value)&&uf(t.value,function(e,t){a[t]=e}),e[sh]={options:a,instance:oh(a)}},lh={mounted:function(e,t){t.value&&ch(e,t)},updated:function(e,t){var n=e[sh],r=t.value,i=t.oldValue;ef(r,i)||(r?.loading??r?ch(e,t):n?.instance.hide())},unmounted:function(e){var t;(t=e[sh])==null||t.instance.hide()}},uh=X(nh,nh.name,{name:`loading`,comp:lh}),wse={block:Boolean,content:{type:[String,Function]},default:{type:[String,Function]},disabled:{type:Boolean,default:void 0},form:{type:String,default:void 0},ghost:Boolean,href:{type:String,default:``},icon:{type:Function},loading:Boolean,loadingProps:{type:Object},shape:{type:String,default:`rectangle`,validator:function(e){return!e||[`rectangle`,`square`,`round`,`circle`].includes(e)}},size:{type:String,default:`medium`,validator:function(e){return!e||[`extra-small`,`small`,`medium`,`large`].includes(e)}},suffix:{type:Function},tag:{type:String,validator:function(e){return!e||[`button`,`a`,`div`].includes(e)}},theme:{type:String,validator:function(e){return!e||[`default`,`primary`,`danger`,`warning`,`success`].includes(e)}},type:{type:String,default:`button`,validator:function(e){return!e||[`submit`,`reset`,`button`].includes(e)}},variant:{type:String,default:`base`,validator:function(e){return!e||[`base`,`outline`,`dashed`,`text`].includes(e)}},onClick:Function};function dh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?dh(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ph=z({name:`TButton`,props:wse,setup:function(e,t){var n=t.attrs,r=t.slots,i=pm(),a=hm(),o=Q(`button`),s=ym(),c=s.STATUS,l=s.SIZE,u=I();Im(u);var d=Sm(),f=U(function(){var t=e.theme,n=e.variant;return t||(n===`base`?`primary`:`default`)}),p=U(function(){return[`${o.value}`,`${o.value}--variant-${e.variant}`,`${o.value}--theme-${f.value}`,`${o.value}--shape-${e.shape}`,G(G(G(G(G({},l.value[e.size],e.size!==`medium`),c.value.disabled,d.value),c.value.loading,e.loading),`${o.value}--ghost`,e.ghost),l.value.block,e.block)]});return function(){var t=a(`default`,`content`),s=e.loading?V(uh,fh({inheritColor:!0},e.loadingProps),null):i(`icon`),c=s&&!t,l=e.suffix||r.suffix?V(`span`,{class:`${o.value}__suffix`},[i(`suffix`)]):null;t=t?V(`span`,{class:`${o.value}__text`},[t]):``,s&&(t=[s,t]),l&&(t=[t].concat(l));var f=function(){return!e.tag&&e.href?`a`:e.tag||`button`},m={class:[].concat(W(p.value),[G({},`${o.value}--icon-only`,c)]),type:e.type,disabled:d.value||e.loading,href:e.href,tabindex:d.value?void 0:`0`,form:e.form};return sa(f(),fh(fh(fh({ref:u},n),m),{},{onClick:e.onClick}),[t])}}}),mh=X(ph);function hh(e){"@babel/helpers - typeof";return hh=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},hh(e)}function Tse(e,t){if(hh(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(hh(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ese(e){var t=Tse(e,`string`);return hh(t)==`symbol`?t:t+``}function gh(e,t,n){return(t=Ese(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _h=e=>[`strokeLinecap`,`fillRule`,`clipRule`,`strokeWidth`].includes(e)?e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,`$1-$2`).toLowerCase():e,vh=(e,t)=>{var n={};if(e.attrs)for(var[r,i]of Object.entries(e.attrs))if(typeof i==`string`&&i.startsWith(`props.`)){var a=i.split(`.`)[1];n[_h(r)]=t[a]}else n[_h(r)]=i;e.tag===`svg`&&(n.class=t.class,n.style=t.style,n.onClick=t.onClick);var o=e.children?e.children.map(e=>vh(e,t)):[];return sa(e.tag,n,o)},yh={classPrefix:`t`,locale:`zh-CN`};function Dse(){var{classPrefix:e}=yh;return{SIZE:{default:``,xs:`${e}-size-xs`,small:`${e}-size-s`,medium:`${e}-size-m`,large:`${e}-size-l`,xl:`${e}-size-xl`,block:`${e}-size-full-width`},STATUS:{loading:`${e}-is-loading`,disabled:`${e}-is-disabled`,focused:`${e}-is-focused`,success:`${e}-is-success`,error:`${e}-is-error`,warning:`${e}-is-warning`,selected:`${e}-is-selected`,active:`${e}-is-active`,checked:`${e}-is-checked`,current:`${e}-is-current`,hidden:`${e}-is-hidden`,visible:`${e}-is-visible`,expanded:`${e}-is-expanded`,indeterminate:`${e}-is-indeterminate`}}}function bh(e){var t=Dse().SIZE,n=U(()=>e.value in t?t[e.value]:``);return{style:U(()=>e.value===void 0||e.value in t?{}:{fontSize:e.value}),className:n}}function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?xh(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ose={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`add-rectangle`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M21 3H3V21L21 21V3Z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M21 3H3V21L21 21V3Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M12 7.5V12M12 12V16.5M12 12H16.5M12 12L7.5 12`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},kse=z({name:`AddRectangleIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-add-rectangle`,l.value]),f=U(()=>Sh(Sh({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Ose,p.value)}});function Ch(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ch(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ch(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ase={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`add`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M12 5L12 19M19 12L5 12`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},Th=z({name:`AddIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-add`,l.value]),f=U(()=>wh(wh({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Ase,p.value)}});function Eh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Dh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Eh(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var jse={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`app`},children:[{tag:`g`,attrs:{id:`fill1`},children:[{tag:`path`,attrs:{fill:`props.fillColor1`,d:`M3 3H10V10H3V3Z`}},{tag:`path`,attrs:{fill:`props.fillColor1`,d:`M14 14H21V21H14V14Z`}},{tag:`path`,attrs:{fill:`props.fillColor1`,d:`M3 14H10V21H3V14Z`}}]},{tag:`path`,attrs:{id:`fill2`,fill:`props.fillColor2`,d:`M21.5 6.5C21.5 8.70914 19.7091 10.5 17.5 10.5C15.2909 10.5 13.5 8.70914 13.5 6.5C13.5 4.29086 15.2909 2.5 17.5 2.5C19.7091 2.5 21.5 4.29086 21.5 6.5Z`}},{tag:`g`,attrs:{id:`stroke1`},children:[{tag:`path`,attrs:{stroke:`props.strokeColor1`,d:`M3 3H10V10H3V3Z`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{stroke:`props.strokeColor1`,d:`M14 14H21V21H14V14Z`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{stroke:`props.strokeColor1`,d:`M3 14H10V21H3V14Z`,strokeWidth:`props.strokeWidth`}}]},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M21.5 6.5C21.5 8.70914 19.7091 10.5 17.5 10.5C15.2909 10.5 13.5 8.70914 13.5 6.5C13.5 4.29086 15.2909 2.5 17.5 2.5C19.7091 2.5 21.5 4.29086 21.5 6.5Z`,strokeWidth:`props.strokeWidth`}}]}]},Oh=z({name:`AppIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-app`,l.value]),f=U(()=>Dh(Dh({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(jse,p.value)}});function kh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ah(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?kh(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Mse={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{fill:`props.filledColor`,d:`M15 12H19.5L12 22L4.5 12H9V2H15V12Z`}}]},Nse=z({name:`ArrowTriangleDownFilledIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-arrow-triangle-down-filled`,l.value]),f=U(()=>Ah(Ah({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Mse,p.value)}});function jh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Mh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?jh(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Pse={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{fill:`props.filledColor`,d:`M15 12H19.5L12 2L4.5 12H9V22H15V12Z`}}]},Fse=z({name:`ArrowTriangleUpFilledIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-arrow-triangle-up-filled`,l.value]),f=U(()=>Mh(Mh({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Pse,p.value)}});function Nh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ph(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Nh(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ise={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`backtop`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M17.5 14.5L12 9L6.5 14.5M5 5H19M12 10.25V20`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},Lse=z({name:`BacktopIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-backtop`,l.value]),f=U(()=>Ph(Ph({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Ise,p.value)}});function Fh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ih(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Fh(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Rse={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`browse-off`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M13.1758 8.17578C14.4396 8.56376 15.4368 9.56096 15.8247 10.8247M21.2858 15.2856C22.0085 14.2983 22.5776 13.1913 22.9578 12C21.4771 7.36017 17.131 4 12.0001 4C11.3698 4 10.7513 4.05072 10.1484 4.1483M5.80747 5.80786C3.57225 7.23888 1.86478 9.42193 1.04199 12.0001C2.52275 16.6399 6.86881 20.0001 11.9997 20.0001C14.2796 20.0001 16.4045 19.3367 18.1919 18.1923L5.80747 5.80786ZM8 12.0003C8 10.8957 8.44771 9.89573 9.17157 9.17188L14.8284 14.8287C14.1046 15.5526 13.1046 16.0003 12 16.0003C9.79086 16.0003 8 14.2094 8 12.0003Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M20.9996 21L3 3`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},zse=z({name:`BrowseOffIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-browse-off`,l.value]),f=U(()=>Ih(Ih({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Rse,p.value)}});function Lh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Rh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Lh(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Bse={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`browse`,clipPath:`url(#clip0_543_7945)`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M11.9997 4C6.86881 4 2.52275 7.36017 1.04199 12C2.52275 16.6398 6.86881 20 11.9997 20C17.1306 20 21.4766 16.6398 22.9574 12C21.4766 7.36017 17.1306 4 11.9997 4Z`}},{tag:`path`,attrs:{id:`fill2`,fill:`props.fillColor2`,d:`M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M11.9997 4C6.86881 4 2.52275 7.36017 1.04199 12C2.52275 16.6398 6.86881 20 11.9997 20C17.1306 20 21.4766 16.6398 22.9574 12C21.4766 7.36017 17.1306 4 11.9997 4Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},zh=z({name:`BrowseIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-browse`,l.value]),f=U(()=>Rh(Rh({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Bse,p.value)}});function Bh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Bh(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Vse={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`calendar`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M21 10H3V21H21V10Z`}},{tag:`path`,attrs:{id:`fill2`,fill:`props.fillColor2`,d:`M21 10H3V5H21V10Z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M3 10H21M3 10V5H21V10M3 10V21H21V10M7 5V1.5M17 5V1.5`,strokeWidth:`props.strokeWidth`}}]}]},Hh=z({name:`CalendarIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-calendar`,l.value]),f=U(()=>Vh(Vh({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Vse,p.value)}});function Uh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Uh(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Hse={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{id:`caret-right-small`,fill:`props.strokeColor1`,d:`M14.9999 12L9.49988 6.5L9.49988 17.5L14.9999 12Z`}}]},Use=z({name:`CaretRightSmallIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-caret-right-small`,l.value]),f=U(()=>Wh(Wh({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Hse,p.value)}});function Gh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Kh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Gh(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Wse={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`catalog`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M4 2L20 2L20 22L4 22L4 21L4 15L4 9L4 3L4 2Z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M4 2H20V22H4V2Z`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M9 8H15M9 12H15M9 16H15`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},Gse=z({name:`CatalogIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-catalog`,l.value]),f=U(()=>Kh(Kh({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Wse,p.value)}});function qh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qh(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Kse={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`chart-line`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M21 21H3V3`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M20.5 8L15.5 13L11.5 9L6.5 14`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},Yh=z({name:`ChartLineIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-chart-line`,l.value]),f=U(()=>Jh(Jh({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Kse,p.value)}});function Xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Xh(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var qse={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{fill:`props.filledColor`,d:`M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM7.49985 10.5858L10.4999 13.5858L16.4999 7.58578L17.9141 8.99999L10.4999 16.4142L6.08564 12L7.49985 10.5858Z`}}]},Qh=z({name:`CheckCircleFilledIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-check-circle-filled`,l.value]),f=U(()=>Zh(Zh({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(qse,p.value)}});function $h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?$h(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Jse={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`check-circle`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M16.5 9L10.5 15L7.5 12`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},tg=z({name:`CheckCircleIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-check-circle`,l.value]),f=U(()=>eg(eg({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Jse,p.value)}});function ng(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ng(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ng(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Yse={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`check`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M19.5708 7.37842L10.3785 16.5708L5.42871 11.6211`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},ig=z({name:`CheckIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-check`,l.value]),f=U(()=>rg(rg({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Yse,p.value)}});function ag(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function og(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ag(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ag(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Xse={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`chevron-down`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M17.5 9.5L12 15L6.5 9.5`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},sg=z({name:`ChevronDownIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-chevron-down`,l.value]),f=U(()=>og(og({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Xse,p.value)}});function cg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?cg(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Zse={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`chevron-left.double`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M10.5 7.5L6 12L10.5 16.5M17 7.5L12.5 12L17 16.5`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},Qse=z({name:`ChevronLeftDoubleIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-chevron-left-double`,l.value]),f=U(()=>lg(lg({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Zse,p.value)}});function ug(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ug(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ug(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var $se={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`chevron-left`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M14.5 17.5L9 12L14.5 6.5`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},fg=z({name:`ChevronLeftIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-chevron-left`,l.value]),f=U(()=>dg(dg({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh($se,p.value)}});function pg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?pg(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ece={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`chevron-right-circle`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M10.5 16L14.5 12L10.5 8`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},tce=z({name:`ChevronRightCircleIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-chevron-right-circle`,l.value]),f=U(()=>mg(mg({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(ece,p.value)}});function hg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?hg(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var nce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`chevron-right.double`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M13.5 16.5L18 12L13.5 7.5M7 16.5L11.5 12L7 7.5`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},rce=z({name:`ChevronRightDoubleIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-chevron-right-double`,l.value]),f=U(()=>gg(gg({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(nce,p.value)}});function _g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_g(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ice={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`chevron-right`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M9.5 17.5L15 12L9.5 6.5`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},yg=z({name:`ChevronRightIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-chevron-right`,l.value]),f=U(()=>vg(vg({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(ice,p.value)}});function bg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?bg(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ace={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`chevron-up`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M17.5 14.5L12 9L6.5 14.5`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},Sg=z({name:`ChevronUpIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-chevron-up`,l.value]),f=U(()=>xg(xg({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(ace,p.value)}});function Cg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Cg(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var oce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{fill:`props.filledColor`,d:`M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM8.81753 7.40346L11.9999 10.5858L15.1815 7.40414L16.5957 8.81835L13.4141 12L16.5957 15.1816L15.1815 16.5958L11.9999 13.4142L8.81753 16.5965L7.40332 15.1823L10.5856 12L7.40332 8.81767L8.81753 7.40346Z`}}]},Tg=z({name:`CloseCircleFilledIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-close-circle-filled`,l.value]),f=U(()=>wg(wg({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(oce,p.value)}});function Eg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Dg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Eg(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var sce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`close`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M16.9503 7.05029L12.0005 12M12.0005 12L7.05078 16.9498M12.0005 12L16.9503 16.9498M12.0005 12L7.05078 7.05029`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},Og=z({name:`CloseIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-close`,l.value]),f=U(()=>Dg(Dg({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(sce,p.value)}});function kg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ag(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?kg(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var cce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`cloud-download`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M4 17.4003C2.21916 16.4899 1 14.6373 1 12.5C1 9.79943 2.94636 7.55346 5.51282 7.08835C5.72518 3.69029 8.54842 1 12 1C15.4516 1 18.2748 3.69029 18.4872 7.08835C21.0536 7.55346 23 9.79943 23 12.5C23 14.6373 21.7808 16.4899 20 17.4003`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M8 18L12 22L16 18M12 20.75V11`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},jg=z({name:`CloudDownloadIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-cloud-download`,l.value]),f=U(()=>Ag(Ag({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(cce,p.value)}});function Mg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ng(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Mg(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var lce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`control-platform`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M12 2L21 7V17L12 22L3 17V7L12 2Z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M12 12L20.5 7.5M12 12V21.5M12 12L3.5 7.5M12 2L21 7V17L12 22L3 17V7L12 2Z`,strokeWidth:`props.strokeWidth`}}]}]},Pg=z({name:`ControlPlatformIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-control-platform`,l.value]),f=U(()=>Ng(Ng({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(lce,p.value)}});function Fg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ig(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Fg(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var uce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`copy`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M10 10H21V21H10z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M10 10H21V21H10V10Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M14 6.5V3L3 3L3 14H6.5`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},dce=z({name:`CopyIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-copy`,l.value]),f=U(()=>Ig(Ig({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(uce,p.value)}});function Lg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Rg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Lg(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var fce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`dashboard`},children:[{tag:`path`,attrs:{id:`fill2`,fill:`props.fillColor2`,d:`M15 11.9998C15 13.6566 13.6569 14.9998 12 14.9998C10.3431 14.9998 9 13.6566 9 11.9998C9 10.3429 10.3431 8.99976 12 8.99976C13.6569 8.99976 15 10.3429 15 11.9998Z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M19.5668 4.41406L14.1113 9.86853M14.1113 9.86853C13.5692 9.33152 12.8233 8.99985 12 8.99985C10.3431 8.99985 9 10.343 9 11.9998C9 13.6567 10.3431 14.9998 12 14.9998C13.6569 14.9998 15 13.6567 15 11.9998C15 11.1663 14.6601 10.4122 14.1113 9.86853Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M6.99912 20.6617C4.0106 18.9325 2 15.7011 2 12C2 6.47715 6.47715 2 12 2C13.095 2 14.1488 2.17598 15.1348 2.50121M17.0034 20.6603C19.9906 18.9308 22.0001 15.7001 22.0001 12.0001C22.0001 10.9051 21.8241 9.85125 21.4989 8.86523`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},pce=z({name:`DashboardIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-dashboard`,l.value]),f=U(()=>Rg(Rg({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(fce,p.value)}});function zg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zg(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var mce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`delete`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M5 5H19L18.5 22H5.5L5 5Z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M21 5H3M5 5H19L18.5 22H5.5L5 5ZM8.5 2H15.5V5H8.5V2Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M12 9V18`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},Vg=z({name:`DeleteIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-delete`,l.value]),f=U(()=>Bg(Bg({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(mce,p.value)}});function Hg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ug(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Hg(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var hce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`download`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M16.5 10.5L12 15L7.5 10.5M12 13.75V4`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M20.5 15V20H3.5V15`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},gce=z({name:`DownloadIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-download`,l.value]),f=U(()=>Ug(Ug({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(hce,p.value)}});function Wg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Wg(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var _ce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`edit-1`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M3.0001 20.9999L7.5 20.9999L17.5 11L13 6.5L3.0001 16.5L3.0001 20.9999Z`}},{tag:`path`,attrs:{id:`fill2`,fill:`props.fillColor2`,d:`M21.5 7L17 2.5L13 6.5L17.5 11L21.5 7Z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M12.9999 6.5L3 16.5L3 20.9999L7.4999 20.9999L17.4999 11M12.9999 6.5L17.4999 11M12.9999 6.5L16.9999 2.5L21.4999 7L17.4999 11`,strokeWidth:`props.strokeWidth`}}]}]},vce=z({name:`Edit1Icon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-edit-1`,l.value]),f=U(()=>Gg(Gg({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(_ce,p.value)}});function Kg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Kg(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var yce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`ellipsis`},children:[{tag:`g`,attrs:{id:`stroke1`},children:[{tag:`path`,attrs:{stroke:`props.strokeColor1`,d:`M4 11.5H5V12.5H4V11.5Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{stroke:`props.strokeColor1`,d:`M11.5 11.5H12.5V12.5H11.5V11.5Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{stroke:`props.strokeColor1`,d:`M19 11.5H20V12.5H19V11.5Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]}]},Jg=z({name:`EllipsisIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-ellipsis`,l.value]),f=U(()=>qg(qg({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(yce,p.value)}});function Yg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Yg(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var bce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{fill:`props.filledColor`,d:`M12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1ZM11.0001 14H13.0001V6.49998H11.0001V14ZM13.004 15.5H11.0001V17.5039H13.004V15.5Z`}}]},Zg=z({name:`ErrorCircleFilledIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-error-circle-filled`,l.value]),f=U(()=>Xg(Xg({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(bce,p.value)}});function Qg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $g(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Qg(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var xce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`error-circle`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M12 7.5V13M12 16.5H12.0039V16.5039H12V16.5Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},Sce=z({name:`ErrorCircleIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-error-circle`,l.value]),f=U(()=>$g($g({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(xce,p.value)}});function e_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?e_(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Cce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`error`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M12 3L12 15.5M12 20H12.0039V20.0039H12V20Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},wce=z({name:`ErrorIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-error`,l.value]),f=U(()=>t_(t_({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Cce,p.value)}});function n_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?n_(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Tce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`file-copy`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M7 18V2H14V8H20V18H7Z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M14 2V8H20M14 2H15L20 7V8M14 2H7V18H20V8`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M3 6L3 22H14`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},Ece=z({name:`FileCopyIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-file-copy`,l.value]),f=U(()=>r_(r_({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Tce,p.value)}});function i_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?i_(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Dce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`file-excel`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M4 22H20V8H14V2H4V22Z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M14 2V8H20M14 2H15L20 7V8M14 2H4V22H20V8`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M14 11L14 11.6465C14 11.918 13.8896 12.1779 13.6941 12.3664L12 14M10 11L10 11.6465C10 11.918 10.1104 12.1779 10.3059 12.3664L12 14M12 14L10.3059 15.6336C10.1104 15.8221 10 16.082 10 16.3535L10 17M12 14L13.6941 15.6336C13.8896 15.8221 14 16.082 14 16.3535V17`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},Oce=z({name:`FileExcelIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-file-excel`,l.value]),f=U(()=>a_(a_({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Dce,p.value)}});function o_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?o_(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var kce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`file-pdf`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M20 10V7L15 2H4V22H20M14 2V8H20`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M7 16V13H9.71428C9.87208 13 10 13.1279 10 13.2857V15.7143C10 15.8721 9.87208 16 9.71428 16H7ZM7 16V19M20.6667 13H18.2857C18.1279 13 18 13.1279 18 13.2857V16M18 16H20.6667M18 16V19M12.5 13V19H15.2143C15.3721 19 15.5 18.8721 15.5 18.7143V13.2857C15.5 13.1279 15.3721 13 15.2143 13H12.5Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},Ace=z({name:`FilePdfIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-file-pdf`,l.value]),f=U(()=>s_(s_({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(kce,p.value)}});function c_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?c_(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var jce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`file-powerpoint`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M4 22H20V8H14V2H4V22Z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M14 2V8H20M14 2H15L20 7V8M14 2H4V22H20V8`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M10 14.6V11H13C13.5523 11 14 11.4477 14 12V13.6C14 14.1523 13.5523 14.6 13 14.6H10ZM10 14.6V17`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},Mce=z({name:`FilePowerpointIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-file-powerpoint`,l.value]),f=U(()=>l_(l_({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(jce,p.value)}});function u_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?u_(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Nce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`file-word`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M4 22H20V8H14V2H4V22Z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M14 2V8H20M14 2H15L20 7V8M14 2H4V22H20V8`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M9 12L9 16C9 16.5523 9.44772 17 10 17H12M12 17L12 12M12 17H14C14.5523 17 15 16.5523 15 16V12`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},Pce=z({name:`FileWordIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-file-word`,l.value]),f=U(()=>d_(d_({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Nce,p.value)}});function f_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?f_(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Fce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`file`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M4 22H20V8H14V2H4V22Z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M14 2V8H20M14 2H15L20 7V8M14 2H4V22H20V8`,strokeWidth:`props.strokeWidth`}}]}]},Ice=z({name:`FileIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-file`,l.value]),f=U(()=>p_(p_({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Fce,p.value)}});function m_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?m_(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Lce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`filter`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M19.5 4H4.5L10.5 12.5V20H13.5V12.5L19.5 4Z`,fillRule:`evenodd`,clipRule:`evenodd`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M19.5 4H4.5L10.5 12.5V20H13.5V12.5L19.5 4Z`,fillRule:`evenodd`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`,clipRule:`evenodd`}}]}]},Rce=z({name:`FilterIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-filter`,l.value]),f=U(()=>h_(h_({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Lce,p.value)}});function g_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function __(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?g_(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var zce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{fill:`props.filledColor`,d:`M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM11.8265 11.8902C12.2582 11.3593 12.8004 10.9159 13.2365 10.5723C13.7034 10.2045 14.0002 9.63718 14.0002 9C14.0002 7.89543 13.1048 7 12.0002 7C11.131 7 10.3888 7.5551 10.1138 8.33325L9.78055 9.27609L7.89487 8.6096L8.22811 7.66676C8.77675 6.11451 10.2571 5 12.0002 5C14.2094 5 16.0002 6.79086 16.0002 9C16.0002 10.2759 15.4018 11.4125 14.4742 12.1433C14.0426 12.4834 13.6573 12.8088 13.3783 13.1519C13.1038 13.4896 13.0002 13.762 13.0002 14V15.25H11.0002V14C11.0002 13.1334 11.3905 12.4265 11.8265 11.8902ZM11.0001 18.2539V16.25H13.004V18.2539H11.0001Z`}}]},v_=z({name:`HelpCircleFilledIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-help-circle-filled`,l.value]),f=U(()=>__(__({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(zce,p.value)}});function y_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?y_(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Bce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`history`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M2.552 13C3.0517 17.7767 7.09104 21.5 12 21.5C17.2467 21.5 21.5 17.2467 21.5 12C21.5 6.7533 17.2467 2.5 12 2.5C10.3719 2.5 8.8394 2.90957 7.5 3.63131C5.69871 4.60193 4.24661 6.13714 3.38065 8M12 7V12L14.5 14.5M2.5 3.5V8.5H7.5`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},x_=z({name:`HistoryIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-history`,l.value]),f=U(()=>b_(b_({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Bce,p.value)}});function S_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function C_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?S_(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Vce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`image-error`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M21 11V3H3V21H11M13 14L9 10L3.5 15.5M17.75 8.25C17.75 9.35457 16.8546 10.25 15.75 10.25C14.6454 10.25 13.75 9.35457 13.75 8.25C13.75 7.14543 14.6454 6.25 15.75 6.25C16.8546 6.25 17.75 7.14543 17.75 8.25Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M21.8287 16.1719L19.0003 19.0003M19.0003 19.0003L16.1719 21.8287M19.0003 19.0003L16.1719 16.1719M19.0003 19.0003L21.8287 21.8287`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},w_=z({name:`ImageErrorIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-image-error`,l.value]),f=U(()=>C_(C_({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Vce,p.value)}});function T_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function E_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?T_(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Hce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`image`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M3 21H20L9 10L3 16V21Z`}},{tag:`circle`,attrs:{id:`fill2`,cx:15.75,cy:8.25,r:2,fill:`props.fillColor2`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M3 16V3H21V21H20M3 16V21H20M3 16L9 10L20 21`,strokeWidth:`props.strokeWidth`}},{tag:`circle`,attrs:{id:`stroke2`,cx:15.75,cy:8.25,r:2,stroke:`props.strokeColor2`,strokeWidth:`props.strokeWidth`}}]}]},D_=z({name:`ImageIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-image`,l.value]),f=U(()=>E_(E_({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Hce,p.value)}});function O_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function k_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?O_(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Uce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{fill:`props.filledColor`,d:`M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM10.996 8.50002V6.49611H12.9999V8.50002H10.996ZM12.9999 10L12.9999 17.5H10.9999V10L12.9999 10Z`}}]},A_=z({name:`InfoCircleFilledIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-info-circle-filled`,l.value]),f=U(()=>k_(k_({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Uce,p.value)}});function j_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function M_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?j_(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Wce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`link`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M11.6762 6.99023L13.9998 4.6666C15.4726 3.19382 17.8604 3.19382 19.3332 4.6666C20.806 6.13938 20.806 8.52723 19.3332 10L17.0096 12.3236M6.98974 11.6766L4.66611 14.0003C3.19333 15.4731 3.19333 17.8609 4.66611 19.3337C6.13889 20.8065 8.52675 20.8065 9.99953 19.3337L12.3232 17.0101M13.9985 9.99989L9.99847 14`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},Gce=z({name:`LinkIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-link`,l.value]),f=U(()=>M_(M_({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Wce,p.value)}});function N_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function P_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?N_(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Kce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`lock-on`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M4.49951 10H19.4995V21H4.49951V10Z`}},{tag:`g`,attrs:{id:`stroke1`},children:[{tag:`path`,attrs:{stroke:`props.strokeColor1`,d:`M4.49951 11H19.4995V21H4.49951V11Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{stroke:`props.strokeColor1`,d:`M6.99951 7C6.99951 4.23858 9.23809 2 11.9995 2C14.7609 2 16.9995 4.23858 16.9995 7V11H6.99951V7Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M9.99951 16H13.9995`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},F_=z({name:`LockOnIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-lock-on`,l.value]),f=U(()=>P_(P_({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Kce,p.value)}});function I_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function L_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?I_(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var qce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`menu`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M21 3H3V10.5H21V3Z`}},{tag:`path`,attrs:{id:`fill2`,fill:`props.fillColor2`,d:`M3 21H21V10.5H3V21Z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M3 10.5V21H21V10.5M3 10.5H21M3 10.5V3H21V10.5M17 7H11M7 7H6.99609V7.00391`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},Jce=z({name:`MenuIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-menu`,l.value]),f=U(()=>L_(L_({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(qce,p.value)}});function R_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function z_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?R_(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Yce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`minus-rectangle`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M21 3H3V21L21 21V3Z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M21 3H3V21L21 21V3Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M16.5 12L7.5 12`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},Xce=z({name:`MinusRectangleIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-minus-rectangle`,l.value]),f=U(()=>z_(z_({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Yce,p.value)}});function B_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function V_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?B_(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Zce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`mirror`},children:[{tag:`g`,attrs:{id:`fill1`},children:[{tag:`path`,attrs:{fill:`props.fillColor1`,d:`M8 8.5V17.5H3L8 8.5Z`}},{tag:`path`,attrs:{fill:`props.fillColor1`,d:`M16 8.5V17.5H21L16 8.5Z`}}]},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M12 3L12 21`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`g`,attrs:{id:`stroke1`},children:[{tag:`path`,attrs:{stroke:`props.strokeColor1`,d:`M8 8.5V17.5H3L8 8.5Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{stroke:`props.strokeColor1`,d:`M16 8.5V17.5H21L16 8.5Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]}]},Qce=z({name:`MirrorIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-mirror`,l.value]),f=U(()=>V_(V_({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Zce,p.value)}});function H_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?H_(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var $ce={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`more`},children:[{tag:`g`,attrs:{id:`stroke1`},children:[{tag:`path`,attrs:{stroke:`props.strokeColor1`,d:`M11.5 4H12.5V5H11.5V4Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{stroke:`props.strokeColor1`,d:`M11.5 11.5H12.5V12.5H11.5V11.5Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{stroke:`props.strokeColor1`,d:`M11.5 19H12.5V20H11.5V19Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]}]},ele=z({name:`MoreIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-more`,l.value]),f=U(()=>U_(U_({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh($ce,p.value)}});function W_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function G_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?W_(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var tle={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`page-first`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M7.5 18V6M16.25 17.25L11 12L16.25 6.75`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},nle=z({name:`PageFirstIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-page-first`,l.value]),f=U(()=>G_(G_({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(tle,p.value)}});function K_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function q_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?K_(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var rle={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`page-last`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M16.5 18V6M7.75 17.25L13 12L7.75 6.75`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},ile=z({name:`PageLastIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-page-last`,l.value]),f=U(()=>q_(q_({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(rle,p.value)}});function J_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Y_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?J_(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ale={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`pause`},children:[{tag:`path`,attrs:{fill:`props.filledColor`,d:`M11 17L11 7H8V17H11Z`}},{tag:`path`,attrs:{fill:`props.filledColor`,d:`M16 17L16 7H13L13 17H16Z`}}]}]},ole=z({name:`PauseIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-pause`,l.value]),f=U(()=>Y_(Y_({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(ale,p.value)}});function X_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?X_(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var sle={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`play-circle`},children:[{tag:`path`,attrs:{fill:`props.filledColor`,d:`M12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12Z`}},{tag:`path`,attrs:{fill:`props.filledColor`,d:`M18.25 12L8.5 17.6292L8.5 6.37085L18.25 12Z`}}]}]},cle=z({name:`PlayCircleIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-play-circle`,l.value]),f=U(()=>Z_(Z_({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(sle,p.value)}});function Q_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Q_(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var lle={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`refresh`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M21.448 13C20.9483 17.7767 16.909 21.5 12 21.5C8.18227 21.5 4.89052 19.248 3.38065 16M2.5 20.5V15.5H5.5M2.55176 11C3.05145 6.22334 7.09079 2.5 11.9998 2.5C15.8175 2.5 19.1092 4.75197 20.6191 8M21.4998 3.5V8.5H18.4998`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},ev=z({name:`RefreshIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-refresh`,l.value]),f=U(()=>$_($_({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(lle,p.value)}});function tv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tv(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ule={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`remove`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M19 12L5 12`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},dle=z({name:`RemoveIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-remove`,l.value]),f=U(()=>nv(nv({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(ule,p.value)}});function rv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function iv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?rv(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var fle={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`rollback`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M5.75 7H14C17.3137 7 20 9.68629 20 13C20 16.3137 17.3137 19 14 19L6.5 19M8 10.5L4.5 7L8 3.5`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},av=z({name:`RollbackIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-rollback`,l.value]),f=U(()=>iv(iv({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(fle,p.value)}});function ov(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ov(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ov(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ple={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`rotation`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M12 20C12 15.5818 8.41828 12 4 12M3 3V21H21`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},mle=z({name:`RotationIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-rotation`,l.value]),f=U(()=>sv(sv({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(ple,p.value)}});function cv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?cv(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var hle={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`round`},children:[{tag:`circle`,attrs:{id:`fill1`,cx:12,cy:12,r:7,fill:`props.fillColor1`}},{tag:`circle`,attrs:{id:`stroke1`,cx:12,cy:12,r:7,stroke:`props.strokeColor1`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},gle=z({name:`RoundIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-round`,l.value]),f=U(()=>lv(lv({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(hle,p.value)}});function uv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?uv(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var _le={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`save`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M3 3H16L21 8V21H3V3Z`}},{tag:`g`,attrs:{id:`fill2`},children:[{tag:`path`,attrs:{fill:`props.fillColor2`,d:`M12 3H7V7H12V3Z`}},{tag:`path`,attrs:{fill:`props.fillColor2`,d:`M7 21H17V15H7V21Z`}}]},{tag:`g`,attrs:{id:`stroke2`},children:[{tag:`path`,attrs:{stroke:`props.strokeColor2`,d:`M12 3H7V7H12V3Z`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{stroke:`props.strokeColor2`,d:`M7 21H17V15H7V21Z`,strokeWidth:`props.strokeWidth`}}]},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M3 3H16L21 8V21H3V3Z`,strokeWidth:`props.strokeWidth`}}]}]},vle=z({name:`SaveIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-save`,l.value]),f=U(()=>dv(dv({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(_le,p.value)}});function fv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?fv(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var yle={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`search`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M15.8033 15.8033C12.8744 18.7322 8.12563 18.7322 5.1967 15.8033C2.26777 12.8744 2.26777 8.12563 5.1967 5.1967C8.12563 2.26777 12.8744 2.26777 15.8033 5.1967C18.7322 8.12563 18.7322 12.8744 15.8033 15.8033Z`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M15.8027 15.8037L21.106 21.107`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M15.8033 15.8033C12.8744 18.7322 8.12563 18.7322 5.1967 15.8033C2.26777 12.8744 2.26777 8.12563 5.1967 5.1967C8.12563 2.26777 12.8744 2.26777 15.8033 5.1967C18.7322 8.12563 18.7322 12.8744 15.8033 15.8033Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},mv=z({name:`SearchIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-search`,l.value]),f=U(()=>pv(pv({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(yle,p.value)}});function hv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?hv(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ble={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`setting`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M20.6604 7L12.0001 2L3.33984 7V17L12.0001 22L20.6604 17V7ZM12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16Z`,fillRule:`evenodd`,clipRule:`evenodd`}},{tag:`path`,attrs:{id:`fill2`,fill:`props.fillColor2`,d:`M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M12.0001 2L20.6604 7V17L12.0001 22L3.33984 17V7L12.0001 2Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},_v=z({name:`SettingIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-setting`,l.value]),f=U(()=>gv(gv({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(ble,p.value)}});function vv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?vv(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var xle={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`shop`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M4 8H20V22H4V8Z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M15.5 11V5.5C15.5 3.567 13.933 2 12 2C10.067 2 8.5 3.567 8.5 5.5V11M4 8H20V22H4V8Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},Sle=z({name:`ShopIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-shop`,l.value]),f=U(()=>yv(yv({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(xle,p.value)}});function bv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?bv(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Cle={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{fill:`props.filledColor`,d:`M12.0012 0.63031L14.9039 8.98087L23.7427 9.16099L16.6978 14.502L19.2579 22.9639L12.0012 17.9143L4.74461 22.9639L7.30465 14.502L0.259766 9.16099L9.09859 8.98087L12.0012 0.63031Z`}}]},wle=z({name:`StarFilledIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-star-filled`,l.value]),f=U(()=>xv(xv({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Cle,p.value)}});function Sv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Cv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Sv(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Tle={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`path`,attrs:{fill:`props.filledColor`,d:`M12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23ZM12.9999 5.49999H10.9999L10.9998 12.4142L14.9999 16.4142L16.4141 15L12.9999 11.5858V5.49999Z`}}]},wv=z({name:`TimeFilledIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-time-filled`,l.value]),f=U(()=>Cv(Cv({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Tle,p.value)}});function Tv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ev(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Tv(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ele={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`time`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M12 6.5L12 12L15 15`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},Dv=z({name:`TimeIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-time`,l.value]),f=U(()=>Ev(Ev({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Ele,p.value)}});function Ov(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ov(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ov(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Dle={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`upload`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M16.5 8.5L12 4L7.5 8.5M12 5.25V15`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M20.5 15V20H3.5V15`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},Av=z({name:`UploadIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-upload`,l.value]),f=U(()=>kv(kv({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Dle,p.value)}});function jv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Mv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?jv(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ole={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`user-circle`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z`}},{tag:`g`,attrs:{id:`fill2`},children:[{tag:`path`,attrs:{fill:`props.fillColor2`,d:`M15.5 8.5C15.5 10.433 13.933 12 12 12C10.067 12 8.5 10.433 8.5 8.5C8.5 6.567 10.067 5 12 5C13.933 5 15.5 6.567 15.5 8.5Z`}},{tag:`path`,attrs:{fill:`props.fillColor2`,d:`M18.5 19.5996V19C18.5 16.7909 16.7091 15 14.5 15H9.5C7.29086 15 5.5 16.7909 5.5 19V19.5996C7.24803 21.0961 9.51846 22 12 22C14.4815 22 16.752 21.0961 18.5 19.5996Z`,fillRule:`evenodd`,clipRule:`evenodd`}}]},{tag:`g`,attrs:{id:`stroke2`},children:[{tag:`path`,attrs:{stroke:`props.strokeColor2`,d:`M15.5 8.5C15.5 10.433 13.933 12 12 12C10.067 12 8.5 10.433 8.5 8.5C8.5 6.567 10.067 5 12 5C13.933 5 15.5 6.567 15.5 8.5Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{stroke:`props.strokeColor2`,d:`M18.5 19.5996V19C18.5 16.7909 16.7091 15 14.5 15H9.5C7.29086 15 5.5 16.7909 5.5 19V19.5996C7.24803 21.0961 9.51846 22 12 22C14.4815 22 16.752 21.0961 18.5 19.5996Z`,fillRule:`evenodd`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`,clipRule:`evenodd`}}]},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},Nv=z({name:`UserCircleIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-user-circle`,l.value]),f=U(()=>Mv(Mv({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Ole,p.value)}});function Pv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Pv(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var kle={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`video`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M3 3H21V21H3V3Z`}},{tag:`path`,attrs:{id:`fill2`,fill:`props.fillColor2`,d:`M15.75 11.9997L9 15.8968L9 8.10254L15.75 11.9997Z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M3 3H21V21H3V3Z`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M15.75 11.9997L9 15.8968L9 8.10254L15.75 11.9997Z`,strokeWidth:`props.strokeWidth`}}]}]},Ale=z({name:`VideoIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-video`,l.value]),f=U(()=>Fv(Fv({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(kle,p.value)}});function Iv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Lv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Iv(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var jle={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`view-list`},children:[{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M3 5H21M3 12H21M3 19H21`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},Mle=z({name:`ViewListIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-view-list`,l.value]),f=U(()=>Lv(Lv({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(jle,p.value)}});function Rv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Rv(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Nle={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`zoom-in`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M15.8033 15.8033C12.8744 18.7322 8.12563 18.7322 5.1967 15.8033C2.26777 12.8744 2.26777 8.12563 5.1967 5.1967C8.12563 2.26777 12.8744 2.26777 15.8033 5.1967C18.7322 8.12563 18.7322 12.8744 15.8033 15.8033Z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M15.8033 15.8033C12.8744 18.7322 8.12563 18.7322 5.1967 15.8033C2.26777 12.8744 2.26777 8.12563 5.1967 5.1967C8.12563 2.26777 12.8744 2.26777 15.8033 5.1967C18.7322 8.12563 18.7322 12.8744 15.8033 15.8033ZM15.8033 15.8033L21.1066 21.1066`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M10.5 13.5V10.5M10.5 10.5L10.5 7.5M10.5 10.5H7.5M10.5 10.5H13.5`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},Ple=z({name:`ZoomInIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-zoom-in`,l.value]),f=U(()=>zv(zv({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Nle,p.value)}});function Bv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Bv(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Fle={tag:`svg`,attrs:{fill:`none`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`},children:[{tag:`g`,attrs:{id:`zoom-out`},children:[{tag:`path`,attrs:{id:`fill1`,fill:`props.fillColor1`,d:`M15.8033 15.8033C12.8744 18.7322 8.12563 18.7322 5.1967 15.8033C2.26777 12.8744 2.26777 8.12563 5.1967 5.1967C8.12563 2.26777 12.8744 2.26777 15.8033 5.1967C18.7322 8.12563 18.7322 12.8744 15.8033 15.8033Z`}},{tag:`path`,attrs:{id:`stroke1`,stroke:`props.strokeColor1`,d:`M15.8033 15.8033C12.8744 18.7322 8.12563 18.7322 5.1967 15.8033C2.26777 12.8744 2.26777 8.12563 5.1967 5.1967C8.12563 2.26777 12.8744 2.26777 15.8033 5.1967C18.7322 8.12563 18.7322 12.8744 15.8033 15.8033ZM15.8033 15.8033L21.1066 21.1066`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}},{tag:`path`,attrs:{id:`stroke2`,stroke:`props.strokeColor2`,d:`M7.5 10.5H10.5L13.5 10.5`,strokeLinecap:`square`,strokeWidth:`props.strokeWidth`}}]}]},Ile=z({name:`ZoomOutIcon`,props:{size:{type:String},onClick:{type:Function},fillColor:{type:[Array,String]},strokeColor:{type:[Array,String]},strokeWidth:{type:Number}},setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor:`currentColor`),a=U(()=>e.strokeColor?Array.isArray(e.strokeColor)?e.strokeColor[1]??e.strokeColor[0]:e.strokeColor:`currentColor`),o=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`transparent`),s=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[1]??e.fillColor[0]:e.fillColor:`transparent`),c=U(()=>e.fillColor?Array.isArray(e.fillColor)?e.fillColor[0]:e.fillColor:`currentColor`),{className:l,style:u}=bh(r),d=U(()=>[`t-icon`,`t-icon-zoom-out`,l.value]),f=U(()=>Vv(Vv({fill:`none`},u.value),n.style)),p=U(()=>({class:d.value,style:f.value,onClick:t=>e.onClick?.call(e,{e:t}),strokeColor1:i.value,strokeColor2:a.value,fillColor1:o.value,fillColor2:s.value,strokeWidth:e.strokeWidth||2,filledColor:c.value}));return()=>vh(Fle,p.value)}}),Lle=typeof window>`u`;function Rle(e,t){if(!Lle&&!(!document||!e||typeof e!=`string`)&&!(document.querySelectorAll(`.${t}[src="${e}"]`).length>0)){var n=document.createElement(`script`);n.setAttribute(`class`,t),n.setAttribute(`src`,e),document.body.appendChild(n)}}var zle={name:{type:String,default:``},size:{type:String,default:void 0},url:{type:[String,Array],default:void 0},loadDefaultIcons:{type:Boolean,default:!0},onClick:Function};function Hv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Uv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Hv(Object(n),!0).forEach(function(t){gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var{classPrefix:Wv}=yh,Ble=`https://tdesign.gtimg.com/icon/0.4.2/fonts/index.js`,Gv=X(z({name:`Icon`,props:zle,setup(e,t){var{attrs:n}=t,r=U(()=>e.size),i=U(()=>e.name||``),{className:a,style:o}=bh(r),s=U(()=>{var t=[];return t=e.url instanceof Array?e.url.concat():[e.url],e.loadDefaultIcons&&t.push(Ble),t}),c=U(()=>[`${Wv}-icon`,`${Wv}-icon-${i.value}`,a.value]),l=U(()=>Uv(Uv({},o.value),n.style));mr(()=>{Array.from(new Set(s.value)).forEach(e=>{Rle(e,`${Wv}-svg-js-stylesheet--unique-class`)})});var u=U(()=>({class:c.value,style:l.value,onClick:t=>e.onClick?.call(e,{e:t})}));return()=>sa(`svg`,u.value,sa(`use`,{href:e.url?`#${i.value}`:`#t-icon-${i.value}`}))}}),`TIcon`),Kv=X(z({name:`TLink`,props:{content:{type:[String,Function]},default:{type:[String,Function]},disabled:{type:Boolean,default:void 0},download:{type:[String,Boolean]},hover:{type:String,default:`underline`,validator:function(e){return!e||[`color`,`underline`].includes(e)}},href:{type:String,default:``},prefixIcon:{type:Function},size:{type:String,default:`medium`,validator:function(e){return!e||[`small`,`medium`,`large`].includes(e)}},suffixIcon:{type:Function},target:{type:String,default:``},theme:{type:String,default:`default`,validator:function(e){return!e||[`default`,`primary`,`danger`,`warning`,`success`].includes(e)}},underline:Boolean,onClick:Function},emits:[`click`],setup:function(e,t){var n=t.emit,r=hm(),i=pm(),a=Q(`link`),o=ym(),s=o.STATUS,c=o.SIZE,l=Rp(`classPrefix`).classPrefix,u=Sm(),d=U(function(){return[`${a.value}`,`${a.value}--theme-${e.theme}`,G(G(G(G({},c.value[e.size],e.size!==`medium`),s.value.disabled,u.value),`${l.value}-is-underline`,e.underline),`${a.value}--hover-${e.hover}`,!u.value)]}),f=function(e){u.value||n(`click`,e)};return function(){var t=r(`default`,`content`),n=i(`prefixIcon`),o=i(`suffixIcon`);return V(`a`,{class:W(d.value),href:u.value||!e.href?void 0:e.href,target:e.target?e.target:void 0,download:e.download?e.download:void 0,onClick:f},[n?V(`span`,{class:`${a.value}__prefix-icon`},[n]):null,t,o?V(`span`,{class:`${a.value}__suffix-icon`},[o]):null])}}})),Vle={align:{type:String,default:`top`,validator:function(e){return!e||[`start`,`end`,`center`,`stretch`,`baseline`,`top`,`middle`,`bottom`].includes(e)}},gutter:{type:[Number,Object,Array],default:0},justify:{type:String,default:`start`,validator:function(e){return!e||[`start`,`end`,`center`,`space-around`,`space-between`].includes(e)}},tag:{type:String,default:`div`}},qv=function(e){var t=`xs`;return t=e<768?`xs`:e>=768&&e<992?`sm`:e>=992&&e<1200?`md`:e>=1200&&e<1400?`lg`:e>=1400&&e<1880?`xl`:`xxl`,t};function Jv(){var e=I(qv(sp?0:window.innerWidth));return Dm(`resize`,function(){e.value=qv(sp?0:window.innerWidth)}),e}function Yv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Yv(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hle(e,t){var n=t.justify,r=t.align;return[e,G(G({},`${e}--${n}`,n),`${e}--align-${r}`,r)]}function Ule(e,t){var n={},r=function(e){return Object.assign(n,{marginLeft:`${e/-2}px`,marginRight:`${e/-2}px`})},i=function(e){return Object.assign(n,{rowGap:`${e}px`})},a={isNumber:function(e){nf(e)&&r(e)},isArray:function(e){K(e)&&e.length&&(a.isNumber(e[0]),nf(e[1])&&i(e[1]),Do(e[0])&&!sf(e[0][t])&&r(e[0][t]),Do(e[1])&&!sf(e[1][t])&&i(e[1][t]))},isObject:function(e){Do(e)&&e[t]&&(K(e)&&e.length?(r(e[t][0]),i(e[t][1])):r(e[t]))}};return Object.keys(a).forEach(function(t){a[t](e)}),n}function Wle(e){return nf(e)?`${e} ${e} 0`:/^\d+(\.\d+)?(px|r?em|%)$/.test(e)?`0 0 ${e}`:e}function Gle(e,t){var n={},r=function(e){return Object.assign(n,{paddingLeft:`${e/2}px`,paddingRight:`${e/2}px`})},i={isNumber:function(e){nf(e)&&r(e)},isArray:function(e){K(e)&&e.length&&(nf(e[0])&&r(e[0]),Do(e[0])&&e[0][t]&&r(e[0][t]))},isObject:function(e){Do(e)&&!K(e)&&e[t]&&r(e[t])}};return Object.keys(i).forEach(function(t){i[t](e)}),n}function Kle(e,t){var n=t.span,r=t.order,i=t.offset,a=t.push,o=t.pull,s=[`xs`,`sm`,`md`,`lg`,`xl`,`xxl`].reduce(function(n,r){var i=t[r],a={};return nf(i)?a.span=i:Do(i)&&(a=i||{}),Xv(Xv({},n),{},G(G(G(G(G({},`${e}-${r}-${a.span}`,!sf(a.span)),`${e}-${r}-order-${a.order}`,parseInt(a.order,10)>=0),`${e}-${r}-offset-${a.offset}`,parseInt(a.offset,10)>=0),`${e}-${r}-push-${a.push}`,parseInt(a.push,10)>=0),`${e}-${r}-pull-${a.pull}`,parseInt(a.pull,10)>=0))},{});return Xv(G(G(G(G(G(G({},`${e}`,!0),`${e}-${n}`,!sf(n)),`${e}-order-${r}`,r),`${e}-offset-${i}`,i),`${e}-push-${a}`,a),`${e}-pull-${o}`,o),s)}var qle=z({name:`TRow`,props:Vle,setup:function(e){var t=Wt(e).gutter,n=pm();Cn(`rowContext`,Dt({gutter:t}));var r=Jv(),i=Q(`row`),a=U(function(){return Hle(i.value,e)}),o=U(function(){return Ule(e.gutter,r.value)});return function(){var t=e.tag;return sa(t,{class:a.value,style:o.value},[n(`default`)])}}}),Jle=z({name:`TCol`,inject:[`rowContext`],props:{flex:{type:[String,Number]},lg:{type:[Number,Object]},md:{type:[Number,Object]},offset:{type:Number,default:0},order:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},sm:{type:[Number,Object]},span:{type:Number},tag:{type:String,default:`div`},xl:{type:[Number,Object]},xs:{type:[Number,Object]},xxl:{type:[Number,Object]}},setup:function(e){var t=Q(`col`),n=pm(),r=wn(`rowContext`,Object.create(null)),i=Jv(),a=U(function(){return Kle(t.value,e)}),o=U(function(){var t={},n=e.flex;if(n&&(t.flex=Wle(n)),r){var a=r.gutter;Object.assign(t,Gle(a,i.value))}return t});return function(){var t=e.tag;return sa(t,{class:a.value,style:o.value},[n(`default`)])}}}),Yle=X(qle),Xle=X(Jle),Zle=z({name:`TLayout`,setup:function(){var e=I(!1),t=pm(),n=Q(`layout`),r=U(function(){return[n.value,G({},`${n.value}--with-sider`,e.value)]});return Cn(`layout`,{hasSide:e}),function(){return V(`section`,{class:r.value},[t(`default`)])}}}),Qle=z({name:`THeader`,props:{height:{type:String,default:``}},setup:function(e){var t=Q(`layout__header`),n=pm();return function(){return V(`header`,{class:t.value,style:e.height?{height:e.height}:{}},[n(`default`)])}}}),$le=z({name:`TFooter`,props:{height:{type:String,default:``}},setup:function(e){var t=Q(`layout__footer`),n=pm();return function(){return V(`footer`,{class:t.value,style:e.height?{height:e.height}:{}},[n(`default`)])}}}),eue=z({name:`TAside`,props:{width:{type:String,default:``}},setup:function(e){var t=wn(`layout`,Object.create(null)).hasSide,n=Q(`layout__sider`),r=pm();if(t)return mr(function(){t.value=!0}),vr(function(){t.value=!1}),function(){var t=e.width?{width:e.width}:{};return V(`aside`,{class:n.value,style:t},[r(`default`)])}}}),tue=z({name:`TContent`,props:{content:{type:[String,Function]},default:{type:[String,Function]}},setup:function(){var e=Q(`layout__content`),t=hm();return function(){return V(`main`,{class:e.value},[t(`default`,`content`)])}}}),nue=X(eue),rue=X(Zle),iue=X(Qle),aue=X($le),oue=X(tue),Zv=X(z({name:`TDivider`,props:{align:{type:String,default:`center`,validator:function(e){return!e||[`left`,`right`,`center`].includes(e)}},content:{type:[String,Function]},dashed:Boolean,default:{type:[String,Function]},layout:{type:String,default:`horizontal`,validator:function(e){return!e||[`horizontal`,`vertical`].includes(e)}},size:{type:[String,Number]}},setup:function(e){var t=Q(`divider`),n=hm();return function(){var r=n(`default`,`content`),i=U(function(){return e.layout!==`vertical`}),a=U(function(){return i.value&&!!r});return V(`div`,{class:[`${t.value}`,[`${t.value}--${e.layout}`],G(G(G({},`${t.value}--dashed`,!!e.dashed),`${t.value}--with-text`,!!a.value),`${t.value}--with-text-${e.align}`,!!a.value)],style:U(function(){return e.size?{margin:i.value?`${$m(e.size)} 0`:`0 ${$m(e.size)}`}:null}).value},[a.value&&V(`span`,{class:`${t.value}__inner-text`},[r])])}}})),sue={align:{type:String,validator:function(e){return!e||[`start`,`end`,`center`,`baseline`].includes(e)}},breakLine:Boolean,direction:{type:String,default:`horizontal`,validator:function(e){return!e||[`vertical`,`horizontal`].includes(e)}},separator:{type:[String,Function]},size:{type:[String,Number,Array],default:`medium`}};function Qv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $v(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Qv(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ey={small:`8px`,medium:`16px`,large:`24px`},cue=pse(),ty=X(z({name:`TSpace`,props:$v($v({},sue),{},{forceFlexGapPolyfill:Boolean}),setup:function(e){var t=Q(`space`),n=pm(),r=sm(),i=cm(),a=U(function(){return e.forceFlexGapPolyfill||cue}),o=U(function(){var t=``;K(e.size)?t=e.size.map(function(e){return nf(e)?`${e}px`:Rd(e)&&[`small`,`medium`,`large`].includes(e)?ey[e]:e}).join(` `):Rd(e.size)?t=[`small`,`medium`,`large`].includes(e.size)?ey[e.size]:e.size:nf(e.size)&&(t=`${e.size}px`);var n={};if(a.value){var r=Y(t.split(` `),2),i=r[0],o=r[1];n[`--td-space-column-gap`]=i,n[`--td-space-row-gap`]=o||i}else n.gap=t;return n});function s(){var e=i(r()),a=n(`separator`);return e.map(function(n,r){var i=r+1!==e.length&&a;return V(bi,null,[V(`div`,{class:`${t.value}-item`},[n]),i&&V(`div`,{class:`${t.value}-item-separator`},[a])])})}return function(){return V(`div`,{class:[`${t.value}`,G(G(G(G({},`${t.value}-align-${e.align}`,e.align),`${t.value}-${e.direction}`,e.direction),`${t.value}--break-line`,e.breakLine),`${t.value}--polyfill`,a.value)],style:o.value},[s()])}}})),ny={bordered:Boolean,colon:Boolean,column:{type:Number,default:2},contentStyle:{type:Object},itemLayout:{type:String,default:`horizontal`,validator:function(e){return!e||[`horizontal`,`vertical`].includes(e)}},items:{type:Array},labelStyle:{type:Object},layout:{type:String,default:`horizontal`,validator:function(e){return!e||[`horizontal`,`vertical`].includes(e)}},size:{type:String,default:`medium`,validator:function(e){return!e||[`small`,`medium`,`large`].includes(e)}},tableLayout:{type:String,default:`fixed`,validator:function(e){return!e||[`fixed`,`auto`].includes(e)}},title:{type:[String,Function]}},ry=Symbol(`TDescriptions`),iy=function(e){return e.props=`props`,e.slots=`slots`,e}(iy||{});function ay(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Rd(e)?e:q(e)?e(sa,t):q(e?.render)?e.render(sa,t):e}function oy(e,t,n){var r=e.props?.[t];if(r)return r;var i=e.children,a=i?.[t]||i?.[n];return a?a?.():null}function sy(e,t){return e===iy.props}var lue=z({name:`TDescriptionsRow`,props:{row:Array,itemType:String},setup:function(e){var t=wn(ry),n=Q(`descriptions`),r=Rp(`descriptions`).globalConfig,i=U(function(){return t.layout===`horizontal`}),a=U(function(){return t.itemLayout===`horizontal`}),o=function(o){var s=[`${n.value}__label`],c=null,l=null;return sy(e.itemType,o)?(c=o.label,l=o.span):(c=oy(o,`label`),l=o.props.span),V(`td`,H({colspan:i.value?a.value?1:l:1,class:s},{style:t.labelStyle}),[c,t.colon&&r.value.colonText])},s=function(r){var o=[`${n.value}__content`],s=null,c=null;return sy(e.itemType,r)?(s=r.content,c=r.span):(s=oy(r,`content`,`default`),c=r.props.span),V(`td`,H({colspan:i.value?c>1&&a.value?c*2-1:c:1,class:o},{style:t.contentStyle}),[s])},c=function(){return V(`tr`,null,[e.row.map(function(e){return V(bi,null,[o(e),s(e)])})])},l=function(){return V(bi,null,[V(`tr`,null,[e.row.map(function(e){return o(e)})]),V(`tr`,null,[e.row.map(function(e){return s(e)})])])},u=function(){return V(bi,null,[e.row.map(function(e){return V(`tr`,null,[o(e),s(e)])})])},d=function(){return V(bi,null,[e.row.map(function(e){return V(bi,null,[V(`tr`,null,[o(e)]),V(`tr`,null,[s(e)])])})])};return function(){return V(bi,null,[i.value?a.value?c():l():a.value?u():d()])}}}),uue=z({name:`TDescriptions`,props:ny,setup:function(e){var t=Q(`descriptions`),n=ym().SIZE,r=om(),i=pm(),a=I(iy.props),o=function(){var t=e.column,n=e.layout,i=[];if(K(e.items))i=e.items.map(function(e){return{label:ay(e.label),content:ay(e.content),span:e.span||1}}),a.value=iy.props;else{var o=r(`TDescriptionsItem`);o.length!==0&&(i=o,a.value=iy.slots)}if(n===`vertical`)return[i];var s=[],c=t,l=[];return i.forEach(function(e,n){var r=1;sy(a.value,e)?(r=af(e.span)?r:e.span,r=r>t?t:r):(e.props=e.props||{},r=af(e.props?.span)?r:e.props.span,r=r>t?t:r,e.props.span=r),c>=r?(s.push(e),c-=r):(l.push(s),s=[e],c=t-r),n===i.length-1&&(sy(a.value,e)?e.span+=c:e.props.span+=c,l.push(s))}),l};Cn(ry,e);var s=function(){return V(`table`,{class:[`${t.value}__body`,n.value[e.size],G({},`${t.value}__body--fixed`,e.tableLayout===`fixed`),G({},`${t.value}__body--border`,e.bordered)]},[V(`tbody`,null,[o().map(function(e){return V(lue,{"item-type":a.value,row:e},null)})])])},c=function(){var e=i(`title`);return e?V(`div`,{class:`${t.value}__header`},[e]):``};return function(){return V(`div`,{class:t.value},[c(),s()])}}}),due=z({name:`TDescriptionsItem`,props:{content:{type:[String,Function]},default:{type:[String,Function]},label:{type:[String,Function]},span:{type:Number,default:1}}}),fue=X(uue),pue=X(due);function cy(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function ly(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){cy(a,r,i,o,s,`next`,e)}function s(e){cy(a,r,i,o,s,`throw`,e)}o(void 0)})}}var uy={exports:{}},dy={exports:{}};dy.exports,(function(e){function t(e,t){this.v=e,this.k=t}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(dy);var fy=dy.exports,py={exports:{}},my={exports:{}};my.exports,(function(e){function t(n,r,i,a){var o=Object.defineProperty;try{o({},``,{})}catch{o=0}e.exports=t=function(e,n,r,i){if(n)o?o(e,n,{value:r,enumerable:!i,configurable:!i,writable:!i}):e[n]=r;else{var a=function(n,r){t(e,n,function(e){return this._invoke(n,r,e)})};a(`next`,0),a(`throw`,1),a(`return`,2)}},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,i,a)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(my);var hy=my.exports;py.exports,(function(e){var t=hy;function n(){var r,i,a=typeof Symbol==`function`?Symbol:{},o=a.iterator||`@@iterator`,s=a.toStringTag||`@@toStringTag`;function c(e,n,a,o){var s=n&&n.prototype instanceof u?n:u,c=Object.create(s.prototype);return t(c,`_invoke`,function(e,t,n){var a,o,s,c=0,u=n||[],d=!1,f={p:0,n:0,v:r,a:p,f:p.bind(r,4),d:function(e,t){return a=e,o=0,s=r,f.n=t,l}};function p(e,t){for(o=e,s=t,i=0;!d&&c&&!n&&i<u.length;i++){var n,a=u[i],p=f.p,m=a[2];e>3?(n=m===t)&&(s=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=r):a[0]<=p&&((n=e<2&&p<a[1])?(o=0,f.v=t,f.n=a[1]):p<m&&(n=e<3||a[0]>t||t>m)&&(a[4]=e,a[5]=t,f.n=m,o=0))}if(n||e>1)return l;throw d=!0,t}return function(n,u,m){if(c>1)throw TypeError(`Generator is already running`);for(d&&u===1&&p(u,m),o=u,s=m;(i=o<2?r:s)||!d;){a||(o?o<3?(o>1&&(f.n=-1),p(o,s)):f.n=s:f.v=s);try{if(c=2,a){if(o||(n=`next`),i=a[n]){if(!(i=i.call(a,s)))throw TypeError(`iterator result is not an object`);if(!i.done)return i;s=i.value,o<2&&(o=0)}else o===1&&(i=a.return)&&i.call(a),o<2&&(s=TypeError(`The iterator does not provide a '`+n+`' method`),o=1);a=r}else if((i=(d=f.n<0)?s:e.call(t,f))!==l)break}catch(e){a=r,o=1,s=e}finally{c=1}}return{value:i,done:d}}}(e,a,o),!0),c}var l={};function u(){}function d(){}function f(){}i=Object.getPrototypeOf;var p=[][o]?i(i([][o]())):(t(i={},o,function(){return this}),i),m=f.prototype=u.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,t(e,s,`GeneratorFunction`)),e.prototype=Object.create(m),e}return d.prototype=f,t(m,`constructor`,f),t(f,`constructor`,d),d.displayName=`GeneratorFunction`,t(f,s,`GeneratorFunction`),t(m),t(m,s,`Generator`),t(m,o,function(){return this}),t(m,`toString`,function(){return`[object Generator]`}),(e.exports=n=function(){return{w:c,m:h}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(py);var gy=py.exports,_y={exports:{}},vy={exports:{}},yy={exports:{}};yy.exports,(function(e){var t=fy,n=hy;function r(e,i){function a(n,r,o,s){try{var c=e[n](r),l=c.value;return l instanceof t?i.resolve(l.v).then(function(e){a(`next`,e,o,s)},function(e){a(`throw`,e,o,s)}):i.resolve(l).then(function(e){c.value=e,o(c)},function(e){return a(`throw`,e,o,s)})}catch(e){s(e)}}var o;this.next||(n(r.prototype),n(r.prototype,typeof Symbol==`function`&&Symbol.asyncIterator||`@asyncIterator`,function(){return this})),n(this,`_invoke`,function(e,t,n){function r(){return new i(function(t,r){a(e,n,t,r)})}return o=o?o.then(r,r):r()},!0)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(yy);var by=yy.exports;vy.exports,(function(e){var t=gy,n=by;function r(e,r,i,a,o){return new n(t().w(e,r,i,a),o||Promise)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(vy);var xy=vy.exports;_y.exports,(function(e){var t=xy;function n(e,n,r,i,a){var o=t(e,n,r,i,a);return o.next().then(function(e){return e.done?e.value:o.next()})}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(_y);var mue=_y.exports,Sy={exports:{}};Sy.exports,(function(e){function t(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Sy);var hue=Sy.exports,Cy={exports:{}},wy={exports:{}};wy.exports,(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(wy);var gue=wy.exports;Cy.exports,(function(e){var t=gue.default;function n(e){if(e!=null){var n=e[typeof Symbol==`function`&&Symbol.iterator||`@@iterator`],r=0;if(n)return n.call(e);if(typeof e.next==`function`)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw TypeError(t(e)+` is not iterable`)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Cy);var _ue=Cy.exports;uy.exports,(function(e){var t=fy,n=gy,r=mue,i=xy,a=by,o=hue,s=_ue;function c(){var l=n(),u=l.m(c),d=(Object.getPrototypeOf?Object.getPrototypeOf(u):u.__proto__).constructor;function f(e){var t=typeof e==`function`&&e.constructor;return!!t&&(t===d||(t.displayName||t.name)===`GeneratorFunction`)}var p={throw:1,return:2,break:3,continue:3};function m(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,p[e],t)},delegateYield:function(e,i,a){return t.resultName=i,n(r.d,s(e),a)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(e.exports=c=function(){return{wrap:function(e,t,n,r){return l.w(m(e),t,n,r&&r.reverse())},isGeneratorFunction:f,mark:l.m,awrap:function(e,n){return new t(e,n)},AsyncIterator:a,async:function(e,t,n,a,o){return(f(t)?i:r)(m(e),t,n,a,o)},keys:o,values:s}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports})(uy);var vue=uy.exports,Ty=vue(),yue=Ty;try{regeneratorRuntime=Ty}catch{(typeof globalThis>`u`?`undefined`:so(globalThis))===`object`?globalThis.regeneratorRuntime=Ty:Function(`r`,`regeneratorRuntime = r`)(Ty)}var Ey=Jf(yue),Dy=X(z({name:`TAffix`,props:{container:{type:[String,Function],default:function(){return function(){return window}}},content:{type:[String,Function]},default:{type:[String,Function]},offsetBottom:{type:Number,default:0},offsetTop:{type:Number,default:0},zIndex:{type:Number},onFixedChange:Function},emits:[`fixedChange`],setup:function(e,t){var n=Q(`affix`),r=hm(),i=I(null),a=I(null),o=I(document?.createElement(`div`)),s=I(!1),c=I(!1),l=I(),u=I(),d=0,f=function(){s.value||=(d=window.requestAnimationFrame(function(){d=0;var r=i.value?.getBoundingClientRect()??{top:0,width:0,height:0},c=r.top,f=r.width,p=r.height,m=0;l.value instanceof HTMLElement&&(m=l.value.getBoundingClientRect().top);var h,g=c-m,_=l.value[l.value instanceof Window?`innerHeight`:`clientHeight`]-p,v=m+_-e.offsetBottom;if(h=!sf(e.offsetTop)&&g<=e.offsetTop?m+e.offsetTop:!sf(e.offsetBottom)&&c>=v&&v,a.value){var y=h!==!1,b=i.value.contains(o.value);y?(a.value.className=n.value,u.value={top:`${h}px`,width:`${f}px`,height:`${p}px`,zIndex:e.zIndex},b||(o.value.style.width=`${f}px`,o.value.style.height=`${p}px`,i.value.appendChild(o.value))):(a.value.removeAttribute(`class`),u.value=void 0,b&&o.value.remove()),t.emit(`fixedChange`,y,{top:Number(h)}),q(e.onFixedChange)&&e.onFixedChange(y,{top:Number(h)})}s.value=!1}),!0)},p=function(){var t=ly(Ey.mark(function t(){return Ey.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,dn();case 1:if(!c.value){t.next=2;break}return t.abrupt(`return`);case 2:l.value=mp(e.container),cp(l.value,`scroll`,f),cp(window,`resize`,f),c.value=!0;case 3:case`end`:return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),m=function(){!l.value||!c.value||(lp(l.value,`scroll`,f),lp(window,`resize`,f),d&&window.cancelAnimationFrame(d),c.value=!1)};return R(function(){return e.offsetTop},function(){f()}),R(function(){return e.offsetBottom},function(){f()}),R(function(){return e.zIndex},function(){f()}),mr(p),cr(p),lr(m),_r(m),t.expose({scrollContainer:l,affixWrapRef:i,handleScroll:f}),function(){return V(`div`,{ref:i},[V(`div`,{ref:a,style:u.value},[r(`default`,`content`)])])}}})),Oy={exports:{}};Oy.exports,(function(e,t){(function(t,n){e.exports=n()})(qf,function(){return function(){var e={686:(function(e,t,n){n.d(t,{default:function(){return O}});var r=n(279),i=n.n(r),a=n(370),o=n.n(a),s=n(817),c=n.n(s);function l(e){try{return document.execCommand(e)}catch{return!1}}var u=function(e){var t=c()(e);return l(`cut`),t};function d(e){var t=document.documentElement.getAttribute(`dir`)===`rtl`,n=document.createElement(`textarea`);n.style.fontSize=`12pt`,n.style.border=`0`,n.style.padding=`0`,n.style.margin=`0`,n.style.position=`absolute`,n.style[t?`right`:`left`]=`-9999px`;var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top=`${r}px`,n.setAttribute(`readonly`,``),n.value=e,n}var f=function(e,t){var n=d(e);t.container.appendChild(n);var r=c()(n);return l(`copy`),n.remove(),r},p=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},n=``;return typeof e==`string`?n=f(e,t):e instanceof HTMLInputElement&&![`text`,`search`,`url`,`tel`,`password`].includes(e?.type)?n=f(e.value,t):(n=c()(e),l(`copy`)),n};function m(e){"@babel/helpers - typeof";return m=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},m(e)}var h=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.action,n=t===void 0?`copy`:t,r=e.container,i=e.target,a=e.text;if(n!==`copy`&&n!==`cut`)throw Error(`Invalid "action" value, use either "copy" or "cut"`);if(i!==void 0)if(i&&m(i)===`object`&&i.nodeType===1){if(n===`copy`&&i.hasAttribute(`disabled`))throw Error(`Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute`);if(n===`cut`&&(i.hasAttribute(`readonly`)||i.hasAttribute(`disabled`)))throw Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw Error(`Invalid "target" value, use a valid Element`);if(a)return p(a,{container:r});if(i)return n===`cut`?u(i):p(i,{container:r})};function g(e){"@babel/helpers - typeof";return g=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},g(e)}function _(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function b(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}function x(e,t){return x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},x(e,t)}function S(e){var t=T();return function(){var n=E(e),r;if(t){var i=E(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return C(this,r)}}function C(e,t){return t&&(g(t)===`object`||typeof t==`function`)?t:w(e)}function w(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function T(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function D(e,t){var n=`data-clipboard-${e}`;if(t.hasAttribute(n))return t.getAttribute(n)}var O=function(e){b(n,e);var t=S(n);function n(e,r){var i;return _(this,n),i=t.call(this),i.resolveOptions(r),i.listenClick(e),i}return y(n,[{key:`resolveOptions`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof e.action==`function`?e.action:this.defaultAction,this.target=typeof e.target==`function`?e.target:this.defaultTarget,this.text=typeof e.text==`function`?e.text:this.defaultText,this.container=g(e.container)===`object`?e.container:document.body}},{key:`listenClick`,value:function(e){var t=this;this.listener=o()(e,`click`,function(e){return t.onClick(e)})}},{key:`onClick`,value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||`copy`,r=h({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?`success`:`error`,{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:`defaultAction`,value:function(e){return D(`action`,e)}},{key:`defaultTarget`,value:function(e){var t=D(`target`,e);if(t)return document.querySelector(t)}},{key:`defaultText`,value:function(e){return D(`text`,e)}},{key:`destroy`,value:function(){this.listener.destroy()}}],[{key:`copy`,value:function(e){return p(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body})}},{key:`cut`,value:function(e){return u(e)}},{key:`isSupported`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[`copy`,`cut`],t=typeof e==`string`?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n&&=!!document.queryCommandSupported(e)}),n}}]),n}(i())}),828:(function(e){if(typeof Element<`u`&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}function n(e,t){for(;e&&e.nodeType!==9;){if(typeof e.matches==`function`&&e.matches(t))return e;e=e.parentNode}}e.exports=n}),438:(function(e,t,n){var r=n(828);function i(e,t,n,r,i){var a=o.apply(this,arguments);return e.addEventListener(n,a,i),{destroy:function(){e.removeEventListener(n,a,i)}}}function a(e,t,n,r,a){return typeof e.addEventListener==`function`?i.apply(null,arguments):typeof n==`function`?i.bind(null,document).apply(null,arguments):(typeof e==`string`&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return i(e,t,n,r,a)}))}function o(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=a}),879:(function(e,t){t.node=function(e){return e!==void 0&&e instanceof HTMLElement&&e.nodeType===1},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return e!==void 0&&(n===`[object NodeList]`||n===`[object HTMLCollection]`)&&`length`in e&&(e.length===0||t.node(e[0]))},t.string=function(e){return typeof e==`string`||e instanceof String},t.fn=function(e){return Object.prototype.toString.call(e)===`[object Function]`}}),370:(function(e,t,n){var r=n(879),i=n(438);function a(e,t,n){if(!e&&!t&&!n)throw Error(`Missing required arguments`);if(!r.string(t))throw TypeError(`Second argument must be a String`);if(!r.fn(n))throw TypeError(`Third argument must be a Function`);if(r.node(e))return o(e,t,n);if(r.nodeList(e))return s(e,t,n);if(r.string(e))return c(e,t,n);throw TypeError(`First argument must be a String, HTMLElement, HTMLCollection, or NodeList`)}function o(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function s(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}function c(e,t,n){return i(document.body,e,t,n)}e.exports=a}),817:(function(e){function t(e){var t;if(e.nodeName===`SELECT`)e.focus(),t=e.value;else if(e.nodeName===`INPUT`||e.nodeName===`TEXTAREA`){var n=e.hasAttribute(`readonly`);n||e.setAttribute(`readonly`,``),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute(`readonly`),t=e.value}else{e.hasAttribute(`contenteditable`)&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}e.exports=t}),279:(function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||={};return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||={})[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||={},r=n[e],i=[];if(r&&t)for(var a=0,o=r.length;a<o;a++)r[a].fn!==t&&r[a].fn._!==t&&i.push(r[a]);return i.length?n[e]=i:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t})},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return(function(){n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t}})(),(function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}})(),n(686)}().default})})(Oy,Oy.exports);var bue=Oy.exports,xue=Jf(bue),ky=/#(\S+)$/;function Ay(e,t){var n=e.getBoundingClientRect().top;return t===window?n-document.documentElement.clientTop:n-t.getBoundingClientRect().top}function Sue(e){var t=document.createElement(`div`),n=new xue(t,{text:function(){return e}});t.click(),n.destroy(),t.remove()}var Cue={affixProps:{type:Object},bounds:{type:Number,default:5},container:{type:[String,Function],default:function(){return function(){return window}}},cursor:{type:Function},size:{type:String,default:`medium`,validator:function(e){return[`small`,`medium`,`large`].includes(e)}},targetOffset:{type:Number,default:0},onChange:Function,onClick:Function},jy=Symbol(`AnchorInjectionProvide`);function wue(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var Tue=z({name:`TAnchor`,inheritAttrs:!1,props:Cue,setup:function(e,t){var n=t.attrs,r=I(null),i=I([]),a=I(``),o=I(),s=I(!1),c=Dt({}),l=Q(`anchor`),u=Q(`anchor__line`),d=Q(`anchor__line-cursor`),f=ym(),p=f.STATUS,m=f.SIZE,h=pm(),g=function(){if(!sp){var t=e.container;o.value=mp(t),cp(o.value,`scroll`,_),_()}},_=function(){if(!s.value){var t=e.bounds,n=e.targetOffset,r=[],c=``,l=o.value instanceof HTMLElement&&Math.abs(o.value.scrollTop+o.value.clientHeight-o.value.scrollHeight)<2;if(i.value.forEach(function(e){var i=v(e);if(i){var a=Ay(i,o.value);a<t+n&&r.push({link:e,top:a})}}),r.length&&(c=r.reduce(function(e,t){return e.top>t.top?e:t}).link),l&&i.value.length&&i.value.indexOf(a.value)>i.value.indexOf(c)){var u=v(a.value);if(u){var d=Ay(u,o.value);if(o.value instanceof HTMLElement){var f=o.value.clientHeight;d+u.offsetHeight>0&&d<f&&(c=a.value)}}}x(c)}},v=function(e){var t=e.match(ky);if(t){var n=document.getElementById(t[1]);if(n)return n}},y=function(e){!ky.test(e)||i.value.indexOf(e)!==-1||i.value.push(e)},b=function(e){i.value=i.value.filter(function(t){return t!==e})},x=function(){var t=ly(Ey.mark(function t(n){var r;return Ey.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(a.value!==n){t.next=1;break}return t.abrupt(`return`);case 1:return a.value=n,(r=e.onChange)==null||r.call(e,n,a.value),t.next=2,dn();case 2:S();case 3:case`end`:return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),S=function(){var e=r.value?.querySelector(`.${p.value.active}>a`);if(!e){Object.assign(c,{});return}var t=e.offsetTop,n=e.offsetHeight;Object.assign(c,{top:`${t}px`,height:`${n}px`,opacity:1})},C=function(t){var n;(n=e.onClick)==null||n.call(e,t)},w=function(){var t=ly(Ey.mark(function t(n){var r,i,a,c,l;return Ey.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=v(n),x(n),r){t.next=1;break}return t.abrupt(`return`);case 1:return s.value=!0,i=e.targetOffset,a=gp(o.value),c=Ay(r,o.value),l=a+c-i,t.next=2,_p(l,{container:o.value});case 2:s.value=!1;case 3:case`end`:return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),T=function(){return h(`cursor`)||V(`div`,{class:d.value},null)};return mr(ly(Ey.mark(function e(){return Ey.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(g(),!a.value){e.next=2;break}return e.next=1,dn();case 1:w(a.value);case 2:case`end`:return e.stop()}},e)}))),vr(function(){o.value&&lp(o.value,`scroll`,_)}),Tn(function(){o.value&&lp(o.value,`scroll`,_),g()}),Cn(jy,Dt({registerLink:y,unregisterLink:b,handleScrollTo:w,handleLinkClick:C,active:a})),function(){var t=e.size,i=e.affixProps,a=V(`div`,H({ref:r,class:[l.value,m.value[t]]},n),[V(`div`,{class:u.value},[V(`div`,{class:`${d.value}-wrapper`,style:c},[T()])]),h(`default`)]);return i?V(Dy,i,wue(a)?a:{default:function(){return[a]}}):a}}}),Eue={href:{type:String,default:``,required:!0},target:{type:String,default:`_self`,validator:function(e){return[`_self`,`_blank`,`_parent`,`_top`].includes(e)}},title:{type:[String,Function],default:``},customScroll:{type:Boolean,default:!1}};function My(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ny(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?My(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):My(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Py=z({name:`TAnchorItem`,inject:{tAnchor:{default:void 0}},props:Ny(Ny({},Eue),{},{href:{type:String,required:!0,validator:function(e){return ky.test(e)}}}),setup:function(e,t){var n=t.slots,r=wn(jy,void 0),i=Q(`anchor__item`),a=ym().STATUS,o=function(){r.registerLink(e.href)},s=function(t){var n=t||e.href;n&&r.unregisterLink(n)},c=function(t){var n=e.href,i=e.title;e.customScroll||r.handleScrollTo(n),r.handleLinkClick({href:n,title:Rd(i)?i:void 0,e:t})},l=function(){var t=e.title,r=n.title,i;return Rd(t)?i=t:q(t)?i=t(sa):r&&(i=r(null)),i};return R(function(){return e.href},function(e,t){s(t),o()},{immediate:!0}),mr(function(){o()}),vr(function(){s()}),function(){var t=e.href,o=e.target,s=n.default,u=n.title,d=l(),f=Rd(d)?d:null,p=r.active===t,m=G(G({},i.value,!0),a.value.active,p),h=G({},`${i.value}-link`,!0);return V(`div`,{class:m},[V(`a`,{href:t,title:f,class:h,target:o,onClick:c},[u?u(null):d]),s&&s(null)])}}}),Fy={closeBtn:{type:[String,Boolean,Function],default:void 0},content:{type:[String,Function]},duration:{type:Number,default:3e3},icon:{type:[Boolean,Function],default:!0},theme:{type:String,default:`info`,validator:function(e){return!e||[`info`,`success`,`warning`,`error`,`question`,`loading`].includes(e)}},onClose:Function,onCloseBtnClick:Function,onDurationEnd:Function},Iy=`32px`,Ly=6e3,Ry=3e3,zy=[`info`,`success`,`warning`,`error`,`question`,`loading`],By={center:{left:`50%`,top:`50%`,transform:`translateX(-50%) translateY(-50%)`},left:{left:Iy,top:`50%`,transform:`translateY(-50%)`},bottom:{bottom:Iy,left:`50%`,transform:`translateX(-50%)`},right:{right:Iy,top:`50%`,transform:`translateY(-50%)`},top:{top:Iy,left:`50%`,transform:`translateX(-50%)`},"top-left":{left:Iy,top:Iy},"top-right":{right:Iy,top:Iy},"bottom-left":{left:Iy,bottom:Iy},"bottom-right":{right:Iy,bottom:Iy}},Vy=Object.keys(By),Hy={duration:200,easing:`linear`};function Uy(e,t){for(var n=Object.keys(t),r=0;r<n.length;r+=1){var i=n[r];e.style[i]=t[i]}}function Due(e,t,n){return Vy.includes(e)?[`top-left`,`left`,`bottom-left`].includes(e)?[{opacity:0,marginLeft:`-${t}px`},{opacity:1,marginLeft:`0`}]:[`top-right`,`right`,`bottom-right`].includes(e)?[{opacity:0,marginRight:`-${t}px`},{opacity:1,marginRight:`0`}]:[`top`,`center`].includes(e)?[{opacity:0,marginTop:`-${n}px`},{opacity:1,marginTop:`0`}]:[`bottom`].includes(e)?[{opacity:0,transform:`translate3d(0, ${n}px, 0)`},{opacity:1,transform:`translate3d(0, 0, 0)`}]:null:null}function Oue(e,t){return Vy.includes(e)?[`bottom-left`,`bottom`,`bottom-right`].includes(e)?[{opacity:1,marginTop:`0px`},{opacity:0,marginTop:`${t}px`}]:[{opacity:1,marginTop:`0px`},{opacity:0,marginTop:`-${t}px`}]:null}function kue(e,t){var n;if(e){var r=Due(t,e?.offsetWidth||0,e?.offsetHeight||0);if(r){var i=r[r.length-1];Uy(e,i),(n=e.animate)==null||n.call(e,r,Hy)}}}function Aue(e,t,n){if(e){var r=Oue(t,e.offsetHeight||0);if(!r){n();return}var i=r[r.length-1];Uy(e,i);var a=e.animate&&e.animate(r,Hy);a?a.onfinish=function(){e.style.display=`none`,n()}:(e.style.display=`none`,n())}}function Wy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Wy(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ky=z({name:`TMessage`,props:Gy(Gy({},Fy),{},{placement:String,className:String}),setup:function(e,t){var n=t.slots,r=t.expose,i=Q(`message`),a=Tm({InfoCircleFilledIcon:A_,CheckCircleFilledIcon:Qh,ErrorCircleFilledIcon:Zg,HelpCircleFilledIcon:v_,CloseIcon:Og}),o=a.InfoCircleFilledIcon,s=a.CheckCircleFilledIcon,c=a.ErrorCircleFilledIcon,l=a.HelpCircleFilledIcon,u=a.CloseIcon,d=Q(),f=pm(),p=hm(),m=I(null),h=I(null),g=U(function(){var t={};return zy.forEach(function(n){return t[`${d.value}-is-${n}`]=e.theme===n}),[i.value,t,G({},`${d.value}-is-closable`,e.closeBtn||n.closeBtn),e.className]}),_=function(t){var n,r;(n=e.onClose)==null||n.call(e,{trigger:`close-click`,e:t}),(r=e.onCloseBtnClick)==null||r.call(e,{e:t})},v=function(){e.duration&&clearTimeout(h.value)},y=function(){e.duration&&(h.value=Number(setTimeout(function(){v();var t=m.value;Aue(t,e.placement,function(){var t,n;(t=e.onClose)==null||t.call(e,{trigger:`duration-end`}),(n=e.onDurationEnd)==null||n.call(e)})},e.duration)))},b=function(){var e=V(u,null,null);return V(`span`,{class:`${i.value}__close`,onClick:_},[f(`closeBtn`,e)])},x=function(){if(e.icon!==!1){if(q(e.icon))return e.icon(sa);if(n.icon)return n.icon(null);var t={info:o,success:s,warning:c,error:c,question:l,loading:uh}[e.theme];return V(t,null,null)}};return pr(function(){e.duration&&y()}),mr(function(){var t=m.value;kue(t,e.placement)}),r({close:_}),function(){return V(`div`,{ref:m,class:g.value,onMouseenter:v,onMouseleave:y},[x(),p(`content`,`default`),b()])}}});function qy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qy(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var jue=function(){var e=0;return function(){return e+=1,e}}(),Mue=z({name:`TMessageList`,props:{zIndex:{type:Number,default:0},placement:{type:String,default:``}},setup:function(e,t){var n=t.expose,r=Q(`message__list`),i=I([]),a=I([]),o=U(function(){return Jy(Jy({},By[e.placement]),{},{zIndex:e.zIndex===6e3?Ly:e.zIndex})}),s=function(e){var t=Jy(Jy({},e),{},{key:jue()});return i.value.push(t),t.key},c=function(e){i.value.splice(e,1)},l=function(){i.value=[]},u=function(e){if(e)return isNaN(Number(e))?e:`${e}px`},d=function(e){return e.offset&&{position:`relative`,left:u(e.offset[0]),top:u(e.offset[1])}},f=function(e,t){return Jy(Jy({},t),{},{onCloseBtnClick:function(n){return t.onCloseBtnClick&&t.onCloseBtnClick(n),c(e)},onDurationEnd:function(){return t.onDurationEnd&&t.onDurationEnd(),c(e)}})},p=function(e){e&&a.value.push(e)};return n({add:s,removeAll:l,list:i,messageList:a}),function(){if(i.value.length)return V(`div`,{class:r.value,style:o.value},[i.value.map(function(e,t){return V(Ky,H({key:e.key,style:d(e),ref:p},f(t,e)),null)})])}}});function Yy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Yy(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Zy=new Map;function Nue(e){var t=Xy({duration:Ry,attach:`body`,zIndex:Ly,placement:`top`},e);return t.content=e.content,t}var Pue=function(e,t){var n=Nue(e),r=n.attach,i=n.placement,a=pp(r);Zy.get(a)||Zy.set(a,{});var o=Zy.get(a)[i],s;if(!o||!a.contains(o.el)){var c=document.createElement(`div`),l=V(Mue,{zIndex:n.zIndex,placement:n.placement});(t??eb._context)&&(l.appContext=t??eb._context),a.appendChild(c),Za(l,c),s=l.component.exposed.add(n),Zy.get(a)[i]=l}else s=o.component.exposed.add(n);return new Promise(function(e){var t=Zy.get(a)[i];dn(function(){var n=t.component.exposed.messageList.value;e(n?.find(function(e){var t;return((t=e.$)==null||(t=t.vnode)==null?void 0:t.key)===s}))})})},Qy=function(e,t,n,r){var i={theme:e};return Mi(t)?i.content=function(){return t}:Rd(t)?i.content=t:Do(t)&&!(t instanceof Array)&&(i=Xy(Xy({},i),t)),(n||n===0)&&(i.duration=n),Pue(i,r)},$y={info:function(e,t,n){return Qy(`info`,e,t,n)},success:function(e,t,n){return Qy(`success`,e,t,n)},warning:function(e,t,n){return Qy(`warning`,e,t,n)},error:function(e,t,n){return Qy(`error`,e,t,n)},question:function(e,t,n){return Qy(`question`,e,t,n)},loading:function(e,t,n){return Qy(`loading`,e,t,n)},close:function(e){e.then(function(e){return e?.close()})},closeAll:function(){Zy instanceof Map&&Zy.forEach(function(e){Object.keys(e).forEach(function(t){e[t].component.exposed.removeAll()})})}},eb=Qy;eb.install=function(e){e.config.globalProperties.$message=Qy,Object.keys($y).forEach(function(t){e.config.globalProperties.$message[t]=$y[t]}),eb._context=e._context},Object.keys($y).forEach(function(e){eb[e]=$y[e]});var Fue={id:{type:String,default:``,required:!0},tag:{type:String,default:`div`}},tb=`bottom`,nb=`right`,rb=`left`,Iue=`auto`,ib=[`top`,tb,nb,rb],ab=`start`,Lue=`clippingParents`,Rue=`viewport`,ob=`popper`,zue=`reference`,sb=ib.reduce(function(e,t){return e.concat([t+`-`+ab,t+`-end`])},[]),cb=[].concat(ib,[Iue]).reduce(function(e,t){return e.concat([t,t+`-`+ab,t+`-end`])},[]),Bue=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function lb(e){return e?(e.nodeName||``).toLowerCase():null}function ub(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function db(e){return e instanceof ub(e).Element||e instanceof Element}function fb(e){return e instanceof ub(e).HTMLElement||e instanceof HTMLElement}function pb(e){return typeof ShadowRoot>`u`?!1:e instanceof ub(e).ShadowRoot||e instanceof ShadowRoot}function Vue(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!fb(i)||!lb(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function Hue(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!fb(r)||!lb(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var Uue={name:`applyStyles`,enabled:!0,phase:`write`,fn:Vue,effect:Hue,requires:[`computeStyles`]};function mb(e){return e.split(`-`)[0]}var hb=Math.max,gb=Math.min,_b=Math.round;function vb(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function yb(){return!/^((?!chrome|android).)*safari/i.test(vb())}function bb(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&fb(e)&&(i=e.offsetWidth>0&&_b(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&_b(r.height)/e.offsetHeight||1);var o=(db(e)?ub(e):window).visualViewport,s=!yb()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function xb(e){var t=bb(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Sb(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&pb(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Cb(e){return ub(e).getComputedStyle(e)}function Wue(e){return[`table`,`td`,`th`].indexOf(lb(e))>=0}function wb(e){return((db(e)?e.ownerDocument:e.document)||window.document).documentElement}function Tb(e){return lb(e)===`html`?e:e.assignedSlot||e.parentNode||(pb(e)?e.host:null)||wb(e)}function Eb(e){return!fb(e)||Cb(e).position===`fixed`?null:e.offsetParent}function Gue(e){var t=/firefox/i.test(vb());if(/Trident/i.test(vb())&&fb(e)&&Cb(e).position===`fixed`)return null;var n=Tb(e);for(pb(n)&&(n=n.host);fb(n)&&[`html`,`body`].indexOf(lb(n))<0;){var r=Cb(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function Db(e){for(var t=ub(e),n=Eb(e);n&&Wue(n)&&Cb(n).position===`static`;)n=Eb(n);return n&&(lb(n)===`html`||lb(n)===`body`&&Cb(n).position===`static`)?t:n||Gue(e)||t}function Ob(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function kb(e,t,n){return hb(e,gb(t,n))}function Kue(e,t,n){var r=kb(e,t,n);return r>n?n:r}function Ab(){return{top:0,right:0,bottom:0,left:0}}function jb(e){return Object.assign({},Ab(),e)}function Mb(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var que=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,jb(typeof e==`number`?Mb(e,ib):e)};function Jue(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=mb(n.placement),c=Ob(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=que(i.padding,n),d=xb(a),f=c===`y`?`top`:rb,p=c===`y`?tb:nb,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=Db(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=kb(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function Yue(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||Sb(t.elements.popper,r)&&(t.elements.arrow=r))}var Xue={name:`arrow`,enabled:!0,phase:`main`,fn:Jue,effect:Yue,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function Nb(e){return e.split(`-`)[1]}var Zue={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function Que(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:_b(n*i)/i||0,y:_b(r*i)/i||0}}function Pb(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=rb,b=`top`,x=window;if(l){var S=Db(n),C=`clientHeight`,w=`clientWidth`;if(S===ub(n)&&(S=wb(n),Cb(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=tb;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=nb;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&Zue),O=u===!0?Que({x:p,y:h},ub(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var k;return Object.assign({},D,(k={},k[b]=v?`0`:``,k[y]=_?`0`:``,k.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,k))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function $ue(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:mb(t.placement),variation:Nb(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Pb(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Pb(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var ede={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:$ue,data:{}},Fb={passive:!0};function tde(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=ub(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,Fb)}),s&&c.addEventListener(`resize`,n.update,Fb),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,Fb)}),s&&c.removeEventListener(`resize`,n.update,Fb)}}var nde={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:tde,data:{}},rde={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Ib(e){return e.replace(/left|right|bottom|top/g,function(e){return rde[e]})}var ide={start:`end`,end:`start`};function Lb(e){return e.replace(/start|end/g,function(e){return ide[e]})}function Rb(e){var t=ub(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function zb(e){return bb(wb(e)).left+Rb(e).scrollLeft}function ade(e,t){var n=ub(e),r=wb(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=yb();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+zb(e),y:c}}function ode(e){var t=wb(e),n=Rb(e),r=e.ownerDocument?.body,i=hb(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=hb(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+zb(e),s=-n.scrollTop;return Cb(r||t).direction===`rtl`&&(o+=hb(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function Bb(e){var t=Cb(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Vb(e){return[`html`,`body`,`#document`].indexOf(lb(e))>=0?e.ownerDocument.body:fb(e)&&Bb(e)?e:Vb(Tb(e))}function Hb(e,t){t===void 0&&(t=[]);var n=Vb(e),r=n===e.ownerDocument?.body,i=ub(n),a=r?[i].concat(i.visualViewport||[],Bb(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(Hb(Tb(a)))}function Ub(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function sde(e,t){var n=bb(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Wb(e,t,n){return t===`viewport`?Ub(ade(e,n)):db(t)?sde(t,n):Ub(ode(wb(e)))}function cde(e){var t=Hb(Tb(e)),n=[`absolute`,`fixed`].indexOf(Cb(e).position)>=0&&fb(e)?Db(e):e;return db(n)?t.filter(function(e){return db(e)&&Sb(e,n)&&lb(e)!==`body`}):[]}function lde(e,t,n,r){var i=t===`clippingParents`?cde(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=Wb(e,n,r);return t.top=hb(i.top,t.top),t.right=gb(i.right,t.right),t.bottom=gb(i.bottom,t.bottom),t.left=hb(i.left,t.left),t},Wb(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Gb(e){var t=e.reference,n=e.element,r=e.placement,i=r?mb(r):null,a=r?Nb(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case tb:c={x:o,y:t.y+t.height};break;case nb:c={x:t.x+t.width,y:s};break;case rb:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?Ob(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case ab:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}function Kb(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?Lue:s,l=n.rootBoundary,u=l===void 0?Rue:l,d=n.elementContext,f=d===void 0?ob:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=jb(typeof g==`number`?Mb(g,ib):g),v=f===`popper`?zue:ob,y=e.rects.popper,b=e.elements[m?v:f],x=lde(db(b)?b:b.contextElement||wb(e.elements.popper),c,u,o),S=bb(e.elements.reference),C=Gb({reference:S,element:y,strategy:`absolute`,placement:i}),w=Ub(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function qb(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?cb:c,u=Nb(r),d=u?s?sb:sb.filter(function(e){return Nb(e)===u}):ib,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=Kb(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[mb(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function Jb(e){if(mb(e)===`auto`)return[];var t=Ib(e);return[Lb(e),t,Lb(t)]}function Yb(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0||p,h=n.allowedAutoPlacements,g=t.options.placement,_=mb(g)===g,v=c||(_||!m?[Ib(g)]:Jb(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(mb(n)===`auto`?qb(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=mb(E),O=Nb(E)===ab,k=[`top`,tb].indexOf(D)>=0,A=k?`width`:`height`,j=Kb(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),M=k?O?nb:rb:O?tb:`top`;b[A]>x[A]&&(M=Ib(M));var ee=Ib(M),N=[];if(a&&N.push(j[D]<=0),s&&N.push(j[M]<=0,j[ee]<=0),N.every(function(e){return e})){w=E,C=!1;break}S.set(E,N)}if(C)for(var P=m?3:1,F=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},te=P;te>0&&F(te)!==`break`;te--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var Xb={name:`flip`,enabled:!0,phase:`main`,fn:Yb,requiresIfExists:[`offset`],data:{_skip:!1}};function Zb(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Qb(e){return[`top`,nb,tb,rb].some(function(t){return e[t]>=0})}function $b(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Kb(t,{elementContext:`reference`}),s=Kb(t,{altBoundary:!0}),c=Zb(o,r),l=Zb(s,i,a),u=Qb(c),d=Qb(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var ex={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:$b};function tx(e,t,n){var r=mb(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function nx(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=cb.reduce(function(e,n){return e[n]=tx(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var rx={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:nx};function ix(e){var t=e.state,n=e.name;t.modifiersData[n]=Gb({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var ax={name:`popperOffsets`,enabled:!0,phase:`read`,fn:ix,data:{}};function ox(e){return e===`x`?`y`:`x`}function sx(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0||f,m=n.tetherOffset,h=m===void 0?0:m,g=Kb(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=mb(t.placement),v=Nb(t.placement),y=!v,b=Ob(_),x=ox(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var k=b===`y`?`top`:rb,A=b===`y`?tb:nb,j=b===`y`?`height`:`width`,M=S[b],ee=M+g[k],N=M-g[A],P=p?-w[j]/2:0,F=v===`start`?C[j]:w[j],te=v===`start`?-w[j]:-C[j],ne=t.elements.arrow,re=p&&ne?xb(ne):{width:0,height:0},ie=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:Ab(),ae=ie[k],oe=ie[A],se=kb(0,C[j],re[j]),ce=y?C[j]/2-P-se-ae-E.mainAxis:F-se-ae-E.mainAxis,le=y?-C[j]/2+P+se+oe+E.mainAxis:te+se+oe+E.mainAxis,ue=t.elements.arrow&&Db(t.elements.arrow),de=ue?b===`y`?ue.clientTop||0:ue.clientLeft||0:0,fe=D?.[b]??0,pe=M+ce-fe-de,me=M+le-fe,he=kb(p?gb(ee,pe):ee,M,p?hb(N,me):N);S[b]=he,O[b]=he-M}if(s){var ge=b===`x`?`top`:rb,_e=b===`x`?tb:nb,ve=S[x],ye=x===`y`?`height`:`width`,be=ve+g[ge],xe=ve-g[_e],Se=[`top`,rb].indexOf(_)!==-1,Ce=D?.[x]??0,we=Se?be:ve-C[ye]-w[ye]-Ce+E.altAxis,Te=Se?ve+C[ye]+w[ye]-Ce-E.altAxis:xe,Ee=p&&Se?Kue(we,ve,Te):kb(p?we:be,ve,p?Te:xe);S[x]=Ee,O[x]=Ee-ve}t.modifiersData[r]=O}}var cx={name:`preventOverflow`,enabled:!0,phase:`main`,fn:sx,requiresIfExists:[`offset`]};function lx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ux(e){return e===ub(e)||!fb(e)?Rb(e):lx(e)}function dx(e){var t=e.getBoundingClientRect(),n=_b(t.width)/e.offsetWidth||1,r=_b(t.height)/e.offsetHeight||1;return n!==1||r!==1}function fx(e,t,n){n===void 0&&(n=!1);var r=fb(t),i=fb(t)&&dx(t),a=wb(t),o=bb(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((lb(t)!==`body`||Bb(a))&&(s=ux(t)),fb(t)?(c=bb(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=zb(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function px(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function mx(e){var t=px(e);return Bue.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function hx(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function gx(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var _x={placement:`bottom`,modifiers:[],strategy:`absolute`};function vx(){return![...arguments].some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function yx(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?_x:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},_x,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:db(e)?Hb(e):e.contextElement?Hb(e.contextElement):[],popper:Hb(t)};var s=mx(gx([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(vx(t,n)){i.rects={reference:fx(t,Db(n),i.options.strategy===`fixed`),popper:xb(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:hx(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!vx(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var bx=yx({defaultModifiers:[nde,ax,ede,Uue,rx,Xb,cx,Xue,ex]}),xx={attach:{type:[String,Function],default:`body`},content:{type:[String,Function]},default:{type:[String,Function]},delay:{type:[Number,Array]},destroyOnClose:Boolean,disabled:Boolean,hideEmptyPopup:Boolean,overlayClassName:{type:[String,Object,Array]},overlayInnerClassName:{type:[String,Object,Array]},overlayInnerStyle:{type:[Boolean,Object,Function]},overlayStyle:{type:[Boolean,Object,Function]},placement:{type:String,default:`top`},popperOptions:{type:Object},showArrow:Boolean,trigger:{type:String,default:`hover`,validator:function(e){return!e||[`hover`,`click`,`focus`,`mousedown`,`context-menu`].includes(e)}},triggerElement:{type:[String,Function]},visible:{type:Boolean,default:void 0},modelValue:{type:Boolean,default:void 0},defaultVisible:Boolean,zIndex:{type:Number},onOverlayClick:Function,onScroll:Function,onScrollToBottom:Function,onVisibleChange:Function};function Sx(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}function Cx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[];return e.forEach(function(e){K(e)?t.push.apply(t,W(e)):e.type===bi?t.push.apply(t,W(Cx(e.children))):t.push(e)}),t.filter(function(e){return!(e&&(e.type===Si||e.type===bi&&e.children.length===0||e.type===xi&&e.children.trim()===``))})}function Tx(e,t){return!e&&!t?!1:!!(!e||!t||[`width`,`height`,`x`,`y`].some(function(n){return e[n]!==t[n]}))}function Ex(e){var t=Yi(),n=I();return mr(function(){n.value=e(t)}),gr(function(){var r=e(t);n.value!==r&&(n.value=r)}),n}var Dx=z({name:`TPopupTrigger`,props:{forwardRef:Function},emits:[`resize`],setup:function(e,t){var n=t.emit,r=t.slots,i=Ex(function(e){return e.parent.vnode.el.nextElementSibling}),a=I();return R(i,function(){var t;(t=e.forwardRef)==null||t.call(e,i.value)}),Nm(i,function(e){a.value=Y(e,1)[0].contentRect}),R(a,function(e,t){Tx(e,t)&&n(`resize`)}),function(){var e=Cx(r.default?.call(r));return e.length>1||e[0]?.type===xi?V(`span`,null,[e]):e[0]}}}),Ox=z({name:`TPopupContent`,emits:[`resize`],setup:function(e,t){var n=t.emit,r=t.slots;return Nm(Ex(function(e){return e.vnode.el.children[0]}),function(){n(`resize`)}),function(){return V(`div`,{style:`position: absolute; top: 0px; left: 0px; width: 100%`},[r.default()])}}}),kx=z({name:`TPopupContainer`,inheritAttrs:!1,props:{parent:Object,visible:Boolean,attach:xx.attach,forwardRef:Function},emits:[`resize`,`contentMounted`],setup:function(e,t){var n=t.emit,r=t.attrs,i=t.slots,a=t.expose,o=I(),s=I(!1);function c(){n(`resize`)}return mr(function(){requestAnimationFrame(function(){s.value=e.visible})}),R(function(){return e.visible},function(t){t&&(s.value=e.visible)}),a({unmountContent:function(){s.value=!1}}),function(){var t,a=function(){return pp(e.attach,o.value)};return V(bi,null,[V(Dx,{class:r.class,forwardRef:function(t){e.forwardRef(t),o.value=t},onResize:c},Sx(t=i.default())?t:{default:function(){return[t]}}),s.value&&V(Ln,{disabled:!a(),to:a()},{default:function(){return[V(Ox,{onResize:c,onVnodeMounted:function(){return n(`contentMounted`)}},{default:function(){return[i.content&&i.content()]}})]}})])}}});function Ax(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ax(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ax(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mx(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var Nx=`data-td-popup`,Px=`data-td-popup-parent`;function Fx(e,t){var n=[],r=[Px,Nx];if(!e)return n;return t&&r.unshift(r.pop()),i(e),n;function i(e){document.querySelectorAll(`[${r[0]}="${e}"]`).forEach(function(t){n.push(t);var a=t.getAttribute(r[1]);a&&a!==e&&i(a)})}}var Ix=Symbol();function Lx(e){return e.replace(/-(left|top)$/,`-start`).replace(/-(right|bottom)$/,`-end`)}function Rx(e){var t=[];return{add:function(n,r){n&&(cp(e.value,n,r),t.push(function(){lp(e.value,n,r)}))},clean:function(){t.forEach(function(e){return e?.()}),t.length=0}}}var zx=X(z({name:`TPopup`,props:jx(jx({},xx),{},{expandAnimation:{type:Boolean}}),setup:function(e,t){var n,r=t.expose,i=Wt(e),a=i.visible,o=i.modelValue,s=Y(Rm(a,o,e.defaultVisible,e.onVisibleChange,`visible`),2),c=s[0],l=s[1],u=pm(),d=hm(),f,p,m,h=I(),g=I(),_=I(),v=I(),y=I(!1),b=I({}),x=typeof process<`u`&&(n={})!=null&&n.TEST?``:Date.now().toString(36),S=wn(Ix,void 0);Cn(Ix,{id:x,assertMouseLeave:te});var C=Q(`popup`),w=ym().STATUS,T=U(function(){var t=e.trigger===`hover`?[].concat(e.delay??[250,150]):[0,0];return{show:t[0],hide:t[1]??t[0]}}),E=Rx(h);R(function(){return[e.trigger,h.value]},function(){h.value&&(E.clean(),E.add({hover:`mouseenter`,focus:`focusin`,"context-menu":`contextmenu`,click:`click`}[e.trigger],function(t){if(!e.disabled){if(t.type===`contextmenu`&&t.preventDefault(),(t.type===`click`||t.type===`contextmenu`)&&c.value){ee(t);return}M(t)}}),E.add({hover:`mouseleave`,focus:`focusout`}[e.trigger],ee))}),R(function(){return[e.overlayStyle,e.overlayInnerStyle,g.value]},function(){O(),A()},{immediate:!0}),R(function(){return e.triggerElement},function(e){typeof e==`string`&&dn(function(){h.value=document.querySelector(e)})},{immediate:!0}),R(function(){return e.placement},function(){j(),A()}),R(function(){return c.value},function(t){if(t){!sp&&cp(document,`mousedown`,F,!0),e.trigger===`focus`&&coe(h.value,`keydown`,function(e){var t,n=typeof process<`u`&&(t={})!=null&&t.TEST?`27`:`Escape`;e.code===n&&ee(e)});return}!sp&&lp(document,`mousedown`,F,!0)},{immediate:!0}),R(function(){return[c.value,g.value]},function(){c.value&&g.value&&ie&&ie?.(g.value)}),vr(function(){j(),N(),lp(document,`mousedown`,F,!0)}),r({update:A,getOverlay:function(){return g.value},getOverlayState:function(){return{hover:y.value}},getPopper:function(){return f},close:function(){return ee()}});function D(){var t=e.overlayStyle;if(!(!h.value||!g.value)){if(q(t))return t(h.value,g.value);if(Do(t))return t}}function O(){var t=e.overlayInnerStyle;!h.value||!g.value||(q(t)?Pm(g.value,t(h.value,g.value)):Do(t)&&Pm(g.value,t))}function k(){if(!h.value||!_.value)return{};var t=h.value.getBoundingClientRect(),n=_.value.getBoundingClientRect(),r=e.placement;if(r.startsWith(`top`)||r.startsWith(`bottom`)){var i=Math.abs(t.left+t.width/2-n.left),a=_.value.offsetWidth??_.value.offsetWidth,o=a-4;return Id(i,0,a)?{left:`${ff([12,hf([o,i])])-4}px`,marginLeft:0}:{}}var s=t.top+t.height/2-n.top,c=_.value.offsetHeight??_.value.clientHeight,l=c-8;return Id(s,0,c)?{top:`${ff([8,hf([l,s])])-4}px`,marginTop:0}:{}}function A(){if(!(!_.value||!c.value)){if(f){if(h.value.getRootNode()instanceof ShadowRoot)f.state.elements.reference=h.value,f.update();else{for(var t=h.value.getBoundingClientRect(),n=h.value;n&&n!==document.body;)n=n.parentElement;n!==document.body||t.width===0&&t.height===0?l(!1,{trigger:P({type:`mouseenter`})}):(f.state.elements.reference=h.value,f.update())}e.showArrow&&(b.value=k());return}f=bx(h.value,_.value,jx({placement:Lx(e.placement),onFirstUpdate:function(){dn(A)}},e.popperOptions)),e.showArrow&&(b.value=k())}}function j(){if(f){var t;(t=f)==null||t.destroy(),f=null}if(e.destroyOnClose){var n;(n=v.value)==null||n.unmountContent()}}function M(e){N(),p=setTimeout(function(){l(!0,{trigger:P(e)})},T.value.show)}function ee(e){N(),m=setTimeout(function(){l(!1,{trigger:P(e),e})},T.value.hide)}function N(){clearTimeout(p),clearTimeout(m)}function P(e){switch(e?.type){case`mouseenter`:return`trigger-element-hover`;case`mouseleave`:return`trigger-element-hover`;case`focusin`:return`trigger-element-focus`;case`focusout`:return`trigger-element-blur`;case`click`:return`trigger-element-click`;case`context-menu`:case`keydown`:return`keydown-esc`;case`mousedown`:return`document`;default:return`trigger-element-close`}}function F(e){var t,n;if(!((t=_.value)!=null&&t.contains(e.target))&&!((n=h.value)!=null&&n.contains(e.target))){var r=Fx(x).find(function(t){return t.contains(e.target)});r&&Fx(r.getAttribute(Px),!0).some(function(e){return e===_.value})||ee(e)}}function te(t){y.value=!1,!(e.trigger!==`hover`||h.value.contains(t.target))&&(Fx(x).some(function(e){var n=e.getBoundingClientRect();return t.x>n.x&&t.x<n.x+n.width&&t.y>n.y&&t.y<n.y+n.height})||(ee(t),S?.assertMouseLeave(t)))}function ne(){y.value=!0,c.value&&e.trigger===`hover`&&N()}function re(t){var n;(n=e.onOverlayClick)==null||n.call(e,{e:t})}var ie=wn(`updateScrollTop`,void 0);function ae(t){var n,r=t.target,i=r.scrollTop,a=r.clientHeight,o=r.scrollHeight,s=md(function(t){return e.onScrollToBottom?.call(e,{e:t})},100);Math.abs(a+i-o)<1&&s(t),(n=e.onScroll)==null||n.call(e,{e:t})}return function(){var t=u(`content`),n=e.hideEmptyPopup&&[``,void 0,null].includes(t),r=c.value||!e.destroyOnClose?xn(V(`div`,H(G(G({},Nx,x),Px,S?.id),{class:[C.value,e.overlayClassName],ref:function(e){return _.value=e},style:[{zIndex:e.zIndex},D(),n&&{visibility:`hidden`}],onClick:re,onMouseenter:ne,onMouseleave:te}),[V(`div`,{class:[`${C.value}__content`,G(G(G({},`${C.value}__content--text`,Rd(e.content)),`${C.value}__content--arrow`,e.showArrow),w.value.disabled,e.disabled),e.overlayInnerClassName],ref:g,onScroll:ae},[t,e.showArrow&&V(`div`,{class:`${C.value}__arrow`,style:b.value},null)])]),[[Na,c.value]]):null;return V(kx,{ref:function(e){return v.value=e},forwardRef:function(t){typeof e.triggerElement!=`string`&&(h.value=t)},onContentMounted:function(){if(c.value){A();var e=setTimeout(function(){O(),clearTimeout(e)},60)}},onResize:function(){c.value&&A()},visible:c.value,attach:e.attach},{content:function(){return V(va,{name:`${C.value}--animation${e.expandAnimation?`-expand`:``}`,appear:!0,onEnter:A,onAfterLeave:j},Mx(r)?r:{default:function(){return[r]}})},default:function(){return typeof e.triggerElement==`string`?null:d(`default`,`triggerElement`)}})}}})),Bx=z({name:`TAnchorTarget`,props:Fue,setup:function(e,t){var n=t.slots,r=Rp(`anchor`),i=r.globalConfig,a=r.classPrefix,o=Tm({FileCopyIcon:Ece}).FileCopyIcon,s=Q(`anchor`),c=function(){var t=document.createElement(`a`);t.href=`#${e.id}`,Sue(t.href),eb.success(i.value.copySuccessText,1e3)};return function(){var t=n.default,r=e.tag,l=e.id,u=[`${s.value}__target`],d=`${a.value}-copy`;return V(r,{id:l,class:u},{default:function(){return[t&&t(null),V(zx,{content:i.value.copyText,placement:`top`,showArrow:!0,class:d},{default:function(){return[V(o,{onClick:c},null)]}})]}})}}}),Vx=X(Tue),Hx=X(Py),ude=X(Bx),dde={ellipsis:{type:[String,Function]},itemsAfterCollapse:{type:Number,default:void 0},itemsBeforeCollapse:{type:Number,default:void 0},maxItemWidth:{type:String,default:void 0},maxItems:{type:Number,default:void 0},options:{type:Array},separator:{type:[String,Function]},theme:{type:String,default:`light`,validator:function(e){return!e||[`light`].includes(e)}}},fde={content:{type:[String,Function,Object]},default:{type:[String,Function]},disabled:Boolean,href:{type:String,default:``},icon:{type:Function},maxWidth:{type:String,default:void 0},replace:Boolean,router:{type:Object},target:{type:String,default:`_self`,validator:function(e){return!e||[`_blank`,`_self`,`_parent`,`_top`].includes(e)}},to:{type:[String,Object]},onClick:Function},pde={delay:{type:Number},destroyOnClose:{type:Boolean,default:!0},duration:{type:Number},placement:{type:String,default:`top`},showArrow:{type:Boolean,default:!0},theme:{type:String,default:`default`,validator:function(e){return!e||[`default`,`primary`,`success`,`danger`,`warning`,`light`].includes(e)}}},mde=function(){var e=I(0),t=I(0),n=function(n){e.value=n.clientX,t.value=n.clientY};return sp||(mr(function(){window.addEventListener(`mousemove`,n,{passive:!0})}),vr(function(){window.removeEventListener(`mousemove`,n)})),{x:e,y:t}};function Ux(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ux(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ux(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Gx=X(z({name:`TTooltip`,props:Wx(Wx({},xx),pde),setup:function(e,t){var n=I(null),r=I(null),i=Wt(e),a=i.visible,o=i.modelValue,s=Y(Rm(a,o,e.defaultVisible,e.onVisibleChange,`visible`),2),c=s[0],l=s[1],u=Yi(),d=I(e.visible||e.defaultVisible),f=Q(),p=pm(),m=hm(),h=mde().x,g=I(h.value);mr(function(){e.duration&&d.value&&(n.value=setTimeout(function(){l(!1,{}),clearTimeout(n.value),n.value=null},e.duration))});var _=function(e,t){n.value&&t?.trigger!==`document`||(e&&(g.value=h.value),l(e,t))},v=U(function(){return[`${f.value}-tooltip`,G({},`${f.value}-tooltip--${e.theme}`,e.theme),e.overlayClassName]}),y=U(function(){return Wx(Wx({},u?.vnode.props),{},{placement:e.placement===`mouse`?`bottom-left`:e.placement,showArrow:e.placement!==`mouse`&&e.showArrow,overlayClassName:v.value,onVisibleChange:_,disabled:e.disabled})}),b=U(function(){if(e.placement!==`mouse`||g.value===0)return e.overlayInnerStyle;var t=function(e){return{transform:`translateX(${g.value-e.getBoundingClientRect().left}px)`}};return e.overlayInnerStyle?function(n,r){return Wx(Wx({},t(n)),q(e.overlayInnerStyle)?e.overlayInnerStyle(n,r):e.overlayInnerStyle)}:t});return R(function(){return d.value},function(){n.value&&!d.value&&(clearTimeout(n.value),n.value=null)}),t.expose({updatePopper:function(){var e,t;(e=r.value)==null||(t=e.update)==null||t.call(e)}}),function(){var t=p(`content`);return V(zx,H(Sf(y.value,[`content`,`default`]),{ref:r,hideEmptyPopup:!0,overlayInnerStyle:b.value,visible:c.value}),Wx({default:function(){return[m(`default`,`triggerElement`)]}},!t&&!e.content?{}:{content:function(){return t}}))}}}));function Kx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Kx(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hde(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var gde={separator:``,theme:`light`,maxItemWidth:void 0},Jx=z({name:`TBreadcrumbItem`,inheritAttrs:!1,props:qx(qx({},fde),{},{isEllipsisItem:Boolean}),setup:function(e,t){var n=t.attrs,r=hm(),i=pm(),a=I(),o=wn(`tBreadcrumb`,gde),s=I(o?.theme),c=I(!1),l=Q(`breadcrumb__item`),u=Q(`breadcrumb__separator`),d=Q(`is-disabled`),f=Q(`link`),p=Q(`breadcrumb__inner`),m=Q(`breadcrumb--text-overflow`),h=U(function(){var t=o?.maxItemWidth;return{maxWidth:`${e.maxWidth||t||`120`}px`}}),g=Yi().proxy;mr(function(){a.value&&(c.value=vp(a.value))}),hr(function(){a.value&&(c.value=vp(a.value))});var _=function(){var t=e.router||g.$router;e.to&&t?e.replace?t.replace(e.to):t.push(e.to):window.location.href=e.href},v=function(t){e.disabled||(t.preventDefault(),e.target===`_blank`?e.href?window.open(e.href):window.open(e.to):_())};return function(){var t=[l.value,s.value],g=[m.value];e.disabled&&g.push(d.value);var _={onClick:function(t){if(e.disabled){t.stopPropagation();return}}},y=r(`default`,`content`),b=V(`span`,{class:p.value,style:h.value},[i(`icon`),V(`span`,{ref:a,class:`${p.value}-text`},[y])]),x=V(`span`,qx({class:g},_),[b]);return(e.href||e.to)&&!e.disabled&&(g.push(f.value),x=V(`a`,H({class:g,href:e.href,target:e.target},_,{onClick:v}),[b])),e!=null&&e.isEllipsisItem&&(x=V(`div`,{style:`display: flex`},[y])),V(`div`,H({class:t},n,{onClick:e.disabled?void 0:e.onClick}),[c.value?V(Gx,{content:function(){return y}},hde(x)?x:{default:function(){return[x]}}):x,V(`span`,{class:u.value,style:{textOverflow:c.value?`ellipsis`:`clip`}},[o.separator])])}}});function Yx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Yx(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zx(e){return e===0||e===void 0}var _de=function(e,t,n){var r=Wt(e),i=r.maxItems,a=r.itemsBeforeCollapse,o=r.itemsAfterCollapse,s=U(function(){var e=t.value,n=i.value??0,r=e.length,s=a.value+o.value;return n>0&&(Zx(a.value)||Zx(o.value))?(Vp.error(`Breadcrumb`,`需要设置 itemsBeforeCollapse 和 itemsAfterCollapse 属性来控制省略号前后的显示项数。`),!1):!(n<=0||r<=n||s>=r)});return{getDisplayItems:U(function(){var e=t.value;if(!s.value)return e;var r=e.length,i=e.slice(0,a.value),c=e.slice(r-o.value,r);return[].concat(W(i),[{content:n,disabled:!0,isEllipsisItem:!0}],W(c))}),getEllipsisItems:U(function(){var e=t.value;if(!s.value)return[];var n=e.slice(a.value,e.length-o.value);return n.map(function(e,t){return Xx(Xx({},e),{},{isLast:t===n.length-1})})})}};function Qx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $x(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Qx(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var vde=function(e){var t=om();return{breadcrumbOptions:U(function(){var n,r=[],i=0;(n=e.options)!=null&&n.length&&e.options.forEach(function(e){r.push($x($x({},e),{},{index:i++}))});var a=t(`TBreadcrumbItem`);return K(a)&&a.forEach(function(e){var t=function(t,n){if(e!=null&&e.children){var r=e.children,i=r[t]?.call(r);if(i)return t==="default"&&K(i)&&i.filter(function(e){return Mi(e)&&Rd(e?.children)}).map(function(e){return e?.children}).join(``)||i}return e.props?.[n]};r.push($x($x({},e.props),{},{content:t(`default`,`content`),icon:function(){return t(`icon`,`icon`)},index:i++}))}),r})}},yde=X(z({name:`TBreadcrumb`,props:dde,setup:function(e){var t=Wt(e),n=t.theme,r=t.maxItemWidth,i=Q(`breadcrumb`),a=pm(),o=Tm({ChevronRightIcon:yg,EllipsisIcon:Jg}),s=o.ChevronRightIcon,c=o.EllipsisIcon,l=a(`separator`)||V(s,null,null);return Cn(`tBreadcrumb`,Dt({separator:l,theme:n,maxItemWidth:r})),function(){var t=vde(e).breadcrumbOptions,n=_de(e,t,a(`ellipsis`,{params:{items:t.value.slice(e.itemsBeforeCollapse,t.value.length-e.itemsAfterCollapse),separator:l}})||V(c,null,null)).getDisplayItems.value.map(function(e,t){return so(e)===`object`&&`content`in e?V(Jx,H({key:t},e),{default:function(){return[e.content]}}):e});return V(`div`,{class:i.value},[n])}}})),bde=X(Jx),xde={active:Boolean,content:{type:[String,Function],default:``},disabled:Boolean,divider:Boolean,prefixIcon:{type:Function},theme:{type:String,default:`default`,validator:function(e){return!e||[`default`,`success`,`warning`,`error`].includes(e)}},value:{type:[String,Number,Object]},onClick:Function};function eS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?eS(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var nS=z({name:`TDropdownItem`,props:tS(tS({},xde),{},{maxColumnWidth:{type:[String,Number],default:100},minColumnWidth:{type:[String,Number],default:10},isSubmenu:Boolean}),setup:function(e){var t=pm(),n=hm(),r=I();Im(e.isSubmenu?null:r);var i=t(`prefixIcon`),a=Q(`dropdown__item`),o=function(t){var n;e.disabled||(n=e.onClick)==null||n.call(e,e.value,{e:t})};return function(){var t=n(`default`,`content`);return V(`li`,{class:[a.value,`${a.value}--theme-${e.theme}`,G(G({},`${a.value}--active`,e.active),`${a.value}--disabled`,e.disabled)],onClick:o,style:{maxWidth:$m(e.maxColumnWidth),minWidth:$m(e.minColumnWidth)},ref:r},[e.prefixIcon?V(`div`,{class:`${a.value}-icon`},[i]):null,t])}}}),rS={direction:{type:String,default:`right`,validator:function(e){return!e||[`left`,`right`].includes(e)}},disabled:Boolean,hideAfterItemClick:{type:Boolean,default:!0},maxColumnWidth:{type:[String,Number],default:100},maxHeight:{type:Number,default:300},minColumnWidth:{type:[String,Number],default:10},options:{type:Array,default:function(){return[]}},panelBottomContent:{type:[String,Function]},panelTopContent:{type:[String,Function]},placement:{type:String,default:`bottom-left`,validator:function(e){return!e||[`top`,`left`,`right`,`bottom`,`top-left`,`top-right`,`bottom-left`,`bottom-right`,`left-top`,`left-bottom`,`right-top`,`right-bottom`].includes(e)}},popupProps:{type:Object},trigger:{type:String,default:`hover`,validator:function(e){return!e||[`hover`,`click`,`focus`,`context-menu`].includes(e)}},onClick:Function};function iS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sde(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?iS(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var aS=z({name:`TDropdownMenu`,props:rS,setup:function(e){var t=pm(),n=Q(`dropdown`),r=Q(`dropdown__menu`),i=Dt({}),a=I(null),o=I(),s=I(),c=I(0),l=I(!1),u=Tm({ChevronRightIcon:yg}).ChevronRightIcon,d=function(t){var n,r,i=t.data,a=t.context;i==null||(n=i.onClick)==null||n.call(i,i,a),(r=e.onClick)==null||r.call(e,i,a)},f=function(e,t){i[t]=e.target.scrollTop};mr(function(){o.value&&parseInt(window?.getComputedStyle(o.value).height,10)>=e.maxHeight&&(l.value=!0);var t=document.querySelector(`.${n.value}__item`);t&&(a.value=t.scrollHeight+2),s.value&&(c.value=s.value.offsetHeight)});var p=function(e){return q(e)?e(sa):e},m=function(t,r){var o,s=[],l;return(o=t.forEach)==null||o.call(t,function(t,o){var h=Sde({},t),g=i[r]||0,_=o*a.value+(r===0?c.value:0)-g;h.children?(h.children=m(h.children,r+1),l=V(`div`,{key:o},[V(nS,{style:h.style,class:[`${n.value}__item`,`${n.value}__item--suffix`,h.class],value:h.value,theme:h.theme,active:h.active,prefixIcon:h.prefixIcon,disabled:h.disabled,minColumnWidth:e.minColumnWidth,maxColumnWidth:e.maxColumnWidth,isSubmenu:!0},{default:function(){return[V(`div`,{class:`${n.value}__item-content`},[V(`span`,{class:`${n.value}__item-text`},[p(h.content)]),V(u,{class:`${n.value}__item-direction`,size:`16`},null)]),V(`div`,{class:[`${n.value}__submenu-wrapper`,G({},`${n.value}__submenu-wrapper--${e.direction}`,e.direction)],style:{position:`absolute`,top:`${_}px`}},[V(`div`,{class:[`${n.value}__submenu`,G({},`${n.value}__submenu--disabled`,h.disabled)],style:{position:`static`,maxHeight:`${e.maxHeight}px`},onScroll:function(e){return f(e,r+1)}},[V(`ul`,null,[h.children])])])]}}),h.divider?V(Zv,null,null):null])):l=V(`div`,{key:o},[V(nS,{style:h.style,class:[`${n.value}__item`,h.class],value:h.value,theme:h.theme,active:h.active,prefixIcon:h.prefixIcon,disabled:h.disabled,minColumnWidth:e.minColumnWidth,maxColumnWidth:e.maxColumnWidth,onClick:h.disabled||h.children?function(){return null}:function(e,t){return d({data:h,context:t})}},{default:function(){return[V(`span`,{class:`${n.value}__item-text`},[p(h.content)])]}}),h.divider?V(Zv,null,null):null]),s.push(l)}),s};return function(){var i=t(`panelTopContent`),a=t(`panelBottomContent`);return V(`div`,{class:[r.value,`${r.value}--${e.direction}`,G({},`${r.value}--overflow`,l.value)],style:{maxHeight:`${e.maxHeight}px`},ref:o,onScroll:function(e){return f(e,0)}},[i?V(`div`,{class:`${n.value}__top-content`,ref:s},[i]):null,m(e.options,0),a?V(`div`,{class:`${n.value}__bottom-content`},[a]):null])}}});function oS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?oS(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var cS=function(e){var t;if(!e)return[];if(K(e)&&((t=e[0])==null||(t=t.type)==null?void 0:t.name)===`TDropdownMenu`){var n,r,i=(n=e[0])==null||(n=n.children)==null||(r=n.default)==null?void 0:r.call(n);if(K(i))return cS(i)}return K(e)?(e=e.reduce(function(e,t){return e=e.concat(K(t.children)?t.children:t),e},[]),e.map(function(e){var t,n,r,i,a,o,s,c,l,u,d=(t=e.children)==null||(n=t.content)==null?void 0:n.call(t),f=((r=e.children)==null||(i=r.prefixIcon)==null?void 0:i.call(r))||((a=e.children)==null||(o=a[`prefix-icon`])==null?void 0:o.call(a)),p=(s=e.children)==null||(c=s.default)==null?void 0:c.call(s),m=p==null||(l=p.filter)==null?void 0:l.call(p,function(e){return![`TDropdownMenu`,`TDropdownItem`].includes(e.type?.name)}),h=p==null||(u=p.filter)==null?void 0:u.call(p,function(e){return!Rd(e.children)&&[`TDropdownMenu`,`TDropdownItem`].includes(e.type?.name)}),g=Object.keys(e.props||{}).reduce(function(t,n){return e.props[n]===``&&e.type?.name===`TDropdownItem`&&[`active`,`divider`,`disabled`].includes(n)?t[Yc(n)]=!0:t[Yc(n)]=e.props[n],t},{});return sS(sS(sS({content:d||m||p},g),f?{prefixIcon:function(){return f}}:{}),{},{children:h?.length>0?cS(h):null})}).filter(function(e){return!!e.content})):K(e)&&K(e[0]?.children)?cS(e[0]?.children):[]};function Cde(e){var t,n,r,i,a=om(),o=Yi(),s=((t=a(`DropdownMenu`))==null||(t=t[0])==null||(t=t.children)==null||(n=t.default)==null?void 0:n.call(t))||((r=o.slots)==null||(i=r.dropdown)==null?void 0:i.call(r));return U(function(){return e.options&&e.options.length>0?e.options:cS(s)})}function lS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?lS(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var wde=X(z({name:`TDropdown`,props:rS,setup:function(e,t){var n=t.attrs,r=t.slots,i=pm(),a=Q(`dropdown`),o=I(null),s=I(!1),c=U(function(){var t=e.popupProps?.delay;return nf(t)?t+10:K(t)?(t[1]??t[0])+10:160}),l=function(t,n){var r;if(e.hideAfterItemClick){var i,a,o,l;setTimeout(function(){return s.value=!1},c.value),(i=e.popupProps)==null||(a=i.onVisibleChange)==null||a.call(i,!1,n),(o=e.popupProps)==null||(l=o[`on-visible-change`])==null||l.call(o,!1,n)}e==null||(r=e.onClick)==null||r.call(e,t,n)},u=function(t,n){var r,i,a,o;s.value=t,(r=e.popupProps)==null||(i=r.onVisibleChange)==null||i.call(r,t,n),(a=e.popupProps)==null||(o=a[`on-visible-change`])==null||o.call(a,t,n)};return function(){var t=i(`default`)?.[0],c=Cde(e),d=uS(uS(uS({},n),{},{disabled:e.disabled,placement:e.placement,trigger:e.trigger},Sf(e.popupProps,[`onVisibleChange`,`on-visible-change`])),{},{overlayInnerClassName:[a.value,e.popupProps?.overlayInnerClassName]});return V(zx,H({destroyOnClose:!0,ref:o,visible:s.value,onVisibleChange:u,expandAnimation:!0},d),{default:function(){return[t]},content:function(){var t;return(t=c.value)!=null&&t.length?V(aS,H(Sf(e,`onClick`),{options:c.value,onClick:l}),r):null}})}}})),Tde=X(nS),Ede=X(aS),Dde={collapsed:Boolean,expanded:{type:Array,default:void 0},defaultExpanded:{type:Array,default:[]},expandMutex:Boolean,expandType:{type:String,default:`normal`,validator:function(e){return!e||[`normal`,`popup`].includes(e)}},logo:{type:Function},operations:{type:Function},theme:{type:String,default:`light`,validator:function(e){return!e||[`light`,`dark`].includes(e)}},value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},defaultValue:{type:[String,Number]},width:{type:[String,Number,Array],default:`232px`},onChange:Function,onExpand:Function};function Ode(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=kde(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function kde(e,t){if(e){if(typeof e==`string`)return dS(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dS(e,t):void 0}}function dS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function fS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ade(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?fS(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var pS=function(e,t,n){if(e)for(var r=0;r<e.children.length;++r){var i=e.children[r];if(i.value===t)return[].concat(W(n),[e.value]);var a=pS(i,t,[].concat(W(n),[e.value]));if(a)return a}},mS=function(e,t){if(!e)return[];for(var n=0;n<e.children.length;++n){var r=e.children[n];if(r.value===t)return e.children;var i=mS(r,t);if(i)return i}},hS=function(e,t){if(e.value===t)return e;if(e.children.length>0)for(var n=0,r=e.children.length;n<r;n++){var i=hS(e.children[n],t);if(i)return i}},gS=function(){function e(t){Xp(this,e),G(this,`data`,null),G(this,`cache`,new Set),G(this,`isMutex`,I(!1)),G(this,`expandValues`,null);var n={value:null,parent:null,children:[]};this.data=n,this.isMutex=t?.isMutex,this.expandValues=new Set(t?.expandValues)}return Yp(e,[{key:`add`,value:function(e){var t=e.value,n=e.parent,r=e.vnode,i=Ade({value:t,parent:n,children:[],vnode:r},e);if(this.cache.forEach(function(t,n,r){e.value===t.parent&&(i.children.push(t),r.delete(t))}),e.parent==null)this.data.children.push(i),i.parent=this.data;else if(this.data.children.length>0){var a=hS(this.data,n);a&&!a.children.some(function(e){return e.value===i.value})?a.children.push(i):this.cache.add(i)}else this.cache.add(i)}},{key:`select`,value:function(e){var t=pS(this.data,e,[])||[];return t.push(e),t.filter(function(e){return e!=null})}},{key:`expand`,value:function(e){var t=this;if(this.expandValues.has(e))return this.expandValues.delete(e),W(this.expandValues);if(this.expandValues.add(e),!this.isMutex.value)return W(this.expandValues);var n=mS(this.data,e)||[],r=new Set(n.filter(function(t){return t.children?.length>0&&t.value!==e}).map(function(e){return e.value}));return this.expandValues.forEach(function(e){r.has(e)&&t.expandValues.delete(e)}),W(this.expandValues)}},{key:`remove`,value:function(e){this.cache.forEach(function(t,n,r){t.value===e&&r.delete(t)});var t=function(n){if(!n||!n.children)return!1;var r=n.children.findIndex(function(t){return t.value===e});if(r!==-1)return n.children.splice(r,1),!0;var i=Ode(n.children),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;if(t(o))return!0}}catch(e){i.e(e)}finally{i.f()}return!1};t(this.data)}},{key:`getChild`,value:function(e){var t=hS(this.data,e);return t?t.children:[]}}])}();function _S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_S(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_S(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var jde=z({name:`TMenu`,props:vS(vS({},Dde),{},{onCollapsed:Function}),setup:function(e,t){var n=Q(),r=pm(),i=hm(),a=I(e.expandType),o=U(function(){return e.theme}),s=U(function(){return e.expandMutex}),c=U(function(){return e.collapsed}),l=U(function(){return[`${n.value}-default-menu`,`${n.value}-menu--${e.theme}`,G({},`${n.value}-is-collapsed`,e.collapsed)]}),u=U(function(){return[`${n.value}-menu`,`${n.value}-menu--scroll`]}),d=U(function(){var t=e.width,n=function(e){return nf(e)?`${e}px`:e};return K(t)?t.map(function(e){return n(e)}):[n(t),`64px`]}),f=U(function(){return{height:`100%`,width:e.collapsed?d.value[1]:d.value[0]}}),p=Wt(e),m=p.value,h=p.modelValue,g=p.expanded,_=Y(Rm(m,h,e.defaultValue,e.onChange),2),v=_[0],y=_[1],b=Y(bm(g,e.defaultExpanded,e.onExpand,`expanded`),2),x=b[0],S=b[1],C=I([]);Tn(function(){var t;a.value=e.collapsed?`popup`:e.expandType,(t=e.onCollapsed)==null||t.call(e,{collapsed:e.collapsed})});var w=new gS({isMutex:s,expandValues:x.value?W(x.value):[]});return Cn(`TdMenu`,{activeValue:v,activeValues:C,expandValues:x,mode:a,theme:o,isHead:!1,vMenu:w,collapsed:c,select:function(e){e!==v.value&&y(e)},open:function(e,t){if(a.value===`normal`)S(w.expand(e));else if(t===`add`)x.value.indexOf(e)===-1&&S([].concat(W(x.value),[e]));else if(t===`remove`){var n=x.value.indexOf(e),r=W(x.value);r.splice(n,1),S(r)}}}),R(function(){return e.expanded},function(e){w.expandValues=new Set(e)}),R(function(){return e.collapsed},function(e,t){!e&&t&&S(W(w.expandValues))}),R(v,function(e){C.value=w.select(e)}),Tn(function(){t.slots.options&&Vp.warnOnce(`TMenu`,"`options` slot is going to be deprecated, please use `operations` for slot instead.")}),mr(function(){C.value=w.select(v.value)}),function(){var e=i(`operations`,`options`),t=r(`logo`);return V(`div`,{class:l.value,style:f.value},[V(`div`,{class:`${n.value}-default-menu__inner`},[t&&V(`div`,{class:`${n.value}-menu__logo`},[t]),V(`ul`,{class:u.value},[i(`default`,`content`)]),e&&V(`div`,{class:`${n.value}-menu__operations`},[e])])])}}}),Mde={expanded:{type:Array,default:void 0},defaultExpanded:{type:Array,default:[]},expandType:{type:String,default:`normal`,validator:function(e){return!e||[`normal`,`popup`].includes(e)}},logo:{type:Function},operations:{type:Function},theme:{type:String,default:`light`,validator:function(e){return!e||[`light`,`dark`].includes(e)}},value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},defaultValue:{type:[String,Number]},onChange:Function,onExpand:Function},yS={default:{type:Function},destroyOnHide:{type:Boolean,default:!0},disabled:Boolean,draggable:{type:Boolean,default:!0},label:{type:[String,Function]},lazy:Boolean,panel:{type:[String,Function]},removable:Boolean,value:{type:[String,Number]},onRemove:Function},bS=z({name:`TTabPanel`,props:yS,setup:function(e){var t=Q(`tab-panel`),n=ym().STATUS,r=hm();xm();var i=wn(`tabs`),a=U(function(){return e.value===i.value.value}),o=I(!e.lazy||a.value);R(a,function(){a.value?o.value||=!0:e.destroyOnHide&&(o.value=!1)},{immediate:!0});var s=U(function(){return[t.value,G({},n.value.hidden,!a.value)]});return function(){return o.value?V(`div`,{key:e.value,class:s.value},[r(`default`,`panel`)]):null}}}),xS={action:{type:[String,Function]},addable:Boolean,disabled:Boolean,dragSort:Boolean,list:{type:Array},placement:{type:String,default:`top`,validator:function(e){return!e||[`left`,`top`,`bottom`,`right`].includes(e)}},scrollPosition:{type:String,default:`auto`,validator:function(e){return!e||[`auto`,`start`,`center`,`end`].includes(e)}},size:{type:String,default:`medium`,validator:function(e){return!e||[`medium`,`large`].includes(e)}},theme:{type:String,default:`normal`,validator:function(e){return!e||[`normal`,`card`].includes(e)}},value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},defaultValue:{type:[String,Number]},onAdd:Function,onChange:Function,onDragSort:Function,onRemove:Function},Nde=z({name:`TTabNavItem`,props:{index:Number,active:{type:Boolean},theme:xS.theme,size:xS.size,placement:xS.placement,label:{type:null},disabled:yS.disabled,removable:yS.removable,value:yS.value,draggable:yS.draggable,onClick:Function,onTabRemove:Function,onTabPanelRemove:Function},setup:function(e){var t=I();Im(t);var n=Q(`tabs__nav-item`),r=Tm({CloseIcon:Og}).CloseIcon,i=Q(),a=ym(),o=a.STATUS,s=a.SIZE,c=function(t){var n,r=t.e;r&&r.stopPropagation(),e.onTabRemove({e:r,value:e.value,index:e.index}),(n=e.onTabPanelRemove)==null||n.call(e,{e:r,value:e.value})},l=function(t){e.disabled||e.onClick(t)},u=U(function(){return G(G(G(G(G(G(G(G({},n.value,!0),`${i.value}-tabs__nav--card`,e.theme===`card`),o.value.disabled,e.disabled),o.value.active,e.active),`${i.value}-is-left`,e.placement===`left`),`${i.value}-is-right`,e.placement===`right`),s.value.medium,e.size===`medium`),s.value.large,e.size===`large`)}),d=function(){return e.removable&&!e.disabled?V(`span`,{onClick:function(e){return c({e})},class:`remove-btn`},[V(r,null,null)]):null},f=function(){return V(`div`,{class:u.value,onClick:l,ref:t,draggable:e.draggable},[V(`span`,{class:`${n.value}-text-wrapper`},[e.label]),d()])},p=function(){return V(`div`,{class:u.value,onClick:l,draggable:e.draggable},[V(`div`,{class:[`${n.value}-wrapper`,G(G({},o.value.disabled,e.disabled),o.value.active,e.active)],ref:t},[V(`span`,{class:`${n.value}-text-wrapper`},[e.label])]),d()])};return function(){return e.theme===`card`?f():p()}}}),Pde=z({props:{navs:{type:Array},placement:xS.placement,value:xS.value},setup:function(e){var t=Q(`tabs`),n=Q(),r=I(),i=U(function(){return[`${t.value}__bar`,`${n.value}-is-${e.placement}`]}),a=I(null),o=function(){for(var t=Y([`left`,`right`].includes(e.placement.toLowerCase())?[`height`,`top`]:[`width`,`left`],2),n=t[0],r=t[1],i=0,a=0;a<e.navs.length;a++){var o;if(e.navs[a].props.value===e.value)break;if((o=e.navs[a])!=null&&o.el){var s=getComputedStyle(e.navs[a].el)[n];i+=parseFloat(s)}}return e.navs[a]?G(G({},r,`${i}px`),n,e.navs[a].el?getComputedStyle(e.navs[a].el)[n]:`0px`):{}},s=function(){return a.value=o()};return mr(function(){dn(function(){s()})}),R([function(){return e.navs},function(){return e.value},function(){return e.placement}],function(){dn(function(){s()})}),Nm(r,md(function(){s()},35)),function(){return V(`div`,{class:i.value,style:a.value,ref:r},null)}}}),SS=function(e){return e?.offsetWidth||0},Fde=function(e){return e?.offsetLeft||0};function Ide(e,t,n){var r=e.navsContainer,i=e.activeTab,a=e.rightOperations,o=e.leftOperations,s=SS(i),c=SS(r),l=Fde(i),u=SS(a),d=SS(o);if(n===`auto`){if(l-d<t)return l-d;if(l+s>t+c-u)return l+s-c+u}else if(n===`start`)return l-d;else if(n===`center`)return l+(s-c)/2;else if(n===`end`)return l+s-c+u;return t}function Lde(e,t,n){var r=e.navsContainer,i=e.activeTab,a=SS(r),o=SS(i),s=Math.abs(a-o);return n===`next`?t+s:t-s}function Rde(e){var t=e.navsWrap,n=e.navsContainer,r=e.rightOperations,i=e.toRightBtn,a=SS(t),o=SS(n),s=SS(r),c=SS(i);return a-o+s-c}function zde(e,t){return Math.max(0,Math.min(e,t))}function CS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?CS(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Bde=z({name:`TTabNav`,resizeObserver:null,props:{theme:xS.theme,panels:{type:Array,default:function(){return[]}},action:Array,value:xS.value,placement:xS.placement,scrollPosition:xS.scrollPosition,size:xS.size,disabled:xS.disabled,addable:xS.addable,onChange:xS.onChange,onAdd:xS.onAdd,onRemove:xS.onRemove,dragSort:xS.dragSort,onDragSort:xS.onDragSort},setup:function(e){var t=Q(`tabs`),n=Tm({ChevronLeftIcon:fg,ChevronRightIcon:yg,AddIcon:Th}),r=n.ChevronLeftIcon,i=n.ChevronRightIcon,a=n.AddIcon,o=Q(),s=ym().SIZE,c=I(0),l=I(),u=I(),d=I(),f=I(),p=I(),m=I(),h=I(0),g=U(function(){var t;return[`top`,`bottom`].includes(e==null||(t=e.placement)==null?void 0:t.toLowerCase())}),_=function(){return{navsContainer:l.value,navsWrap:u.value,leftOperations:d.value,rightOperations:f.value,toRightBtn:p.value,activeTab:m.value}},v=U(function(){return[`left`,`right`].includes(e.placement.toLowerCase())}),y=U(function(){return c.value>1}),b=U(function(){return c.value<h.value-1}),x=U(function(){return v.value?{}:{transform:`translate3d(${-c.value}px, 0, 0)`}}),S=U(function(){return e.addable?{"min-height":`48px`}:null}),C=U(function(){return G(G(G({},`${t.value}__btn`,!0),s.value.medium,e.size===`medium`),s.value.large,e.size===`large`)}),w=U(function(){return wS(G({},`${t.value}__btn--left`,!0),C.value)}),T=U(function(){return wS(G({},`${t.value}__btn--right`,!0),C.value)}),E=U(function(){return wS(G({},`${t.value}__add-btn`,!0),C.value)}),D=U(function(){return G(G(G(G({},`${t.value}__nav-container`,!0),`${t.value}__nav--card`,e.theme===`card`),`${o.value}-is-${e.placement}`,!0),`${o.value}-is-addable`,e.addable)}),O=U(function(){return G(G({},`${t.value}__nav-scroll`,!0),`${o.value}-is-scrollable`,y.value||b.value)}),k=U(function(){return[`${t.value}__nav-wrap`,`${o.value}-is-smooth`,G({},`${o.value}-is-vertical`,v.value)]}),A=function(e){c.value=zde(e,h.value)},j=function(e){A(Lde(_(),c.value,e))},M=function(e){if(!(!y.value&&!b.value)){e.preventDefault();var t=e.deltaX,n=e.deltaY;A(Math.abs(t)>Math.abs(n)?c.value+t:c.value+n)}},ee=function(){setTimeout(function(){A(Ide(_(),c.value,e.scrollPosition))},0)},N=function(){dn(function(){h.value=Rde(_()),h.value-c.value<=0&&A(h.value)})};R([function(){return e.placement},function(){return e.panels}],N),R([function(){return e.scrollPosition}],ee),Om(md(N),l.value);var P=function(t){var n;(n=e.onAdd)==null||n.call(e,{e:t})},F=function(t,n){var r=n.value;if(n.disabled||e.value===r)return!1;e.onChange(r)},te=function(t){var n=t.e,r=t.value,i=t.index;e.onRemove({e:n,value:r,index:i})},ne=function(t){t!=null&&t.$el&&t?.value===e.value&&m.value!==t.$el&&(m.value=t.$el,ee())},re=qoe(e).setNavsWrap;mr(function(){re(u.value),N(),ee()});var ie=function(){return e.panels.map(function(t,n){var r,i=t!=null&&(r=t.children)!=null&&r.label?t.children.label():q(t.label)?t.label(sa):t.label||`选项卡${n+1}`,a=e.dragSort;return a&&t.draggable===!1&&(a=t.draggable),V(Nde,{ref:ne,draggable:a,key:t.value,index:n,theme:e.theme,size:e.size,placement:e.placement,label:i,active:t.value===e.value,disabled:e.disabled||t.disabled,removable:t.removable,value:t.value,onClick:function(e){return F(e,t)},onTabRemove:te,onTabPanelRemove:t.onRemove},null)})},ae=function(){return[V(`div`,{ref:d,class:[`${t.value}__operations`,`${t.value}__operations--left`]},[V(va,{name:`fade`,mode:`out-in`,appear:!0},{default:function(){return[y.value?V(`div`,{class:w.value,onClick:function(){return j(`prev`)}},[V(r,null,null)]):null]}})]),V(`div`,{ref:f,class:[`${t.value}__operations`,`${t.value}__operations--right`]},[V(va,{name:`fade`,mode:`out-in`,appear:!0},{default:function(){return[b.value?V(`div`,{ref:p,class:T.value,onClick:function(){return j(`next`)}},[V(i,null,null)]):null]}}),e.addable?V(`div`,{class:E.value,onClick:P},[V(a,null,null)]):null,g.value&&e.action])]},oe=function(){var t=ie();return V(`div`,{class:D.value},[V(`div`,{class:O.value,onWheel:M},[V(`div`,{ref:u,class:k.value,style:x.value},[e.theme!==`card`&&V(Pde,{placement:e.placement,value:e.value,navs:t},null),t])])])};return function(){return V(`div`,{ref:l,class:[`${t.value}__nav`],style:S.value},[ae(),oe()])}}}),TS=X(z({name:`TTabs`,props:xS,setup:function(e){var t=Q(`tabs`),n=Q(),r=pm(),i=Wt(e),a=i.value,o=i.modelValue,s=Y(Rm(a,o,e.defaultValue||``,e.onChange),2),c=s[0],l=s[1];Cn(`tabs`,{value:c});var u=function(t){var n;(n=e.onAdd)==null||n.call(e,{e:t.e})},d=function(e){l(e)},f=function(t){var n,r=t.e,i=t.value,a=t.index;(n=e.onRemove)==null||n.call(e,{value:i,index:a,e:r})},p=function(){var e=r(`default`);if(!e)return[];var t=function(e){return e.map(function(e){return e.children&&K(e.children)?t(e.children):e}).flat().filter(function(e){return e.type.name===`TTabPanel`})};return t(e)},m=function(){var t,i=((t=e.list)!=null&&t.length?e.list:p())||[],a=r(`action`),o=i.map(function(e){var t=e;return e.props&&Object.keys(e.props).forEach(function(n){t[n]=e.props[n]}),t}),s={theme:e.theme,value:c.value,size:e.size,disabled:e.disabled,placement:e.placement,scrollPosition:e.scrollPosition,addable:e.addable,panels:o,dragSort:e.dragSort,action:a};return V(`div`,{class:G(G({},`${n.value}-tabs__header`,!0),`${n.value}-is-${e.placement}`,!0)},[V(Bde,H(s,{onDragSort:e.onDragSort,onChange:d,onAdd:u,onRemove:f}),null)])},h=function(){var t,r=p();if((t=e.list)!=null&&t.length)return e.list.map(function(e){return V(bS,H(e,{onRemove:f}),null)});if(r&&r.length)return V(`div`,{class:[`${n.value}-tabs__content`]},[r])};return function(){return V(`div`,{class:[t.value]},[e.placement===`bottom`?[h(),m()]:[m(),h()]])}}})),ES=X(bS),Vde={content:{type:[String,Function]},default:{type:[String,Function]},disabled:Boolean,icon:{type:Function},popupProps:{type:Object},title:{type:[String,Function]},value:{type:[String,Number]}},DS=z({name:`TFakeArrow`,props:{isActive:{type:Boolean},overlayClassName:{type:[String,Object,Array]},overlayStyle:{type:[Object,String]}},setup:function(e){var t=Q(`fake-arrow`),n=U(function(){return[t.value,G(G({},`${t.value}--transform`,vse()),`${t.value}--active`,e.isActive),e.overlayClassName]});return function(){return V(`svg`,{class:n.value,width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:e.overlayStyle},[V(`path`,{d:`M3.75 5.7998L7.99274 10.0425L12.2361 5.79921`,stroke:`black`,"stroke-opacity":`0.9`,"stroke-width":`1.3`},null)])}}});function OS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?OS(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var AS=z({name:`TSubmenu`,props:kS(kS({},Vde),{},{expandType:String}),setup:function(e,t){var n=t.slots,r=Q(),i=pm(),a=hm(),o=Yi(),s=wn(`TdMenu`),c=Wt(e).value,l=s.theme,u=s.activeValues,d=s.expandValues,f=s.isHead,p=s.open,m=wn(`TdSubmenu`,{}),h=m.setSubPopup,g=m.closeParentPopup,_=m.cancelHideTimer,v=U(function(){return e.expandType||s.mode.value}),y=I([]),b=U(function(){return u.value.indexOf(e.value)>-1}),x=I(!1),S=I(!1),C=U(function(){return l.value===`light`?`#E7E7E7`:`#383838`}),w=U(function(){return v.value===`popup`?x.value:d?d.value?.includes(e.value):!1}),T=I(!1),E=I(),D=I(),O=I(),k=Q(`slide-down`);Im(O,C);var A=I(null),j=I(null),M=function(){A.value!==null&&(clearTimeout(A.value),A.value=null),j.value!==null&&(clearTimeout(j.value),j.value=null)},ee=function(e){var t=e.placement,n=E.value;if(n){var i=`${r.value}-menu__spacer`,a=t.startsWith(`bottom`),o=t.startsWith(`top`);n.classList.toggle(`${i}--bottom`,a),n.classList.toggle(`${i}--top`,o)}},N=U(function(){return[`${r.value}-submenu`,G(G({},`${r.value}-is-disabled`,e.disabled),`${r.value}-is-opened`,w.value)]}),P=U(function(){return[`${r.value}-menu__popup`,`${r.value}-is-${f?`horizontal`:`vertical`}`,G({},`${r.value}-is-opened`,x.value),e.popupProps?.overlayInnerClassName]}),F=U(function(){return[`${r.value}-menu--${l.value}`,f&&`${r.value}-is-head-menu`,G({},`${r.value}-menu-is-nested`,T.value),e.popupProps?.overlayClassName]}),te=U(function(){return[`${r.value}-menu__item`,G(G(G({},`${r.value}-is-disabled`,e.disabled),`${r.value}-is-opened`,w.value),`${r.value}-is-active`,b.value)]}),ne=U(function(){return[`${r.value}-menu__sub`,G({},`${r.value}-is-opened`,w.value)]}),re=U(function(){return[G({},`${r.value}-fake-arrow--active`,w.value)]});Cn(`TdSubmenu`,Dt({value:c,addMenuItem:function(e){y.value.push(e),m&&m.addMenuItem(e)},setSubPopup:function(e){D.value=e},closeParentPopup:function(e){M(),j.value=setTimeout(function(){x.value=!1,j.value=null},100),q(g)&&g(e)},cancelHideTimer:function(){j.value!==null&&(clearTimeout(j.value),j.value=null),q(_)&&_()}}));var ie=function(e){q(h)&&h(e)},ae=function(){e.disabled||(M(),q(_)&&_(),A.value=setTimeout(function(){x.value||(p(e.value),dn().then(function(){ie(E.value)})),x.value=!0,A.value=null},0))},oe=function(e){return e?.classList.contains(`${r.value}-menu__popup`)},se=function(e){M(),j.value=setTimeout(function(){var t=oe(e.relatedTarget);S.value||t||(x.value=!1,j.value=null)},100)},ce=function(e){var t=e.toElement,n=e.relatedTarget,r=t||n;if(r!==D.value){for(var i=function(e){return e===O.value};r!==null&&r!==document&&!i(r);)r=r.parentNode;S.value=!1,i(r)||(M(),j.value=setTimeout(function(){x.value=!1,j.value=null},100),g?.(e))}},le=function(){S.value=!0,j.value!==null&&(clearTimeout(j.value),j.value=null),q(_)&&_()},ue=function(){e.disabled||p(e.value)},de=function(t){var n,i=`right-top`;!T.value&&f&&(i=`bottom-left`);var o=V(`div`,{ref:E,class:[`${r.value}-menu__spacer`,G({},`${r.value}-menu__spacer--left`,T.value||!f)],onMouseenter:le,onMouseleave:ce},[V(`ul`,{class:[`${r.value}-menu__popup-wrapper`,G({},`${r.value}-menu__popup-overflow`,f)]},[a(`default`,`content`)])]),s={content:function(){return o}},c=((n=e.popupProps)==null||(n=n.popperOptions)==null?void 0:n.modifiers)||[],l=kS(kS({},e.popupProps?.popperOptions),{},{modifiers:[{name:`onPlacementChange`,enabled:!0,phase:`main`,fn:function(e){var t=e.state;ee({placement:t.placement})}}].concat(W(c))});return V(zx,H(e.popupProps??{},{overlayInnerClassName:W(P.value),overlayClassName:W(F.value),visible:x.value,placement:i,popperOptions:l}),kS({default:function(){return[V(`div`,{ref:O,class:te.value},[t])]}},s))},fe=function(){var e=i(`icon`),t=[V(`div`,{ref:O,class:te.value,onClick:ue},[e,V(`span`,{class:[`${r.value}-menu__content`]},[i(`title`,{silent:!0})])]),V(`ul`,{style:`opacity: 0; width: 0; height: 0; overflow: hidden`},[a(`default`,`content`)])],n=v.value===`popup`&&T.value,s=[e,V(`span`,{class:[`${r.value}-menu__content`]},[i(`title`,{silent:!0})]),V(DS,{overlayClassName:/menu/i.test(o?.parent.proxy.$options.name)?re.value:null,overlayStyle:{transform:`rotate(${n?-90:0}deg)`}},null)];return v.value===`normal`?t:de(s)},pe=function(){for(var e=n.content||n.default,t=i(`icon`),s=a(`default`,`content`),c=o.parent,l=44;c&&c.type.name!==`TMenu`;)c.type.name===`TSubmenu`&&(l+=16),c=c.parent;var u=vm(),d=u.beforeEnter,f=u.enter,p=u.afterEnter,m=u.beforeLeave,h=u.leave,g=u.afterLeave,_=v.value===`popup`&&T.value,y=[V(`div`,{ref:O,class:te.value,onClick:ue},[t,V(`span`,{class:[`${r.value}-menu__content`]},[i(`title`,{silent:!0})]),e&&V(DS,{overlayClassName:re.value,overlayStyle:{transform:`rotate(${_?-90:0}deg)`}},null)]),V(va,{name:k.value,onBeforeEnter:d,onEnter:f,onAfterEnter:p,onBeforeLeave:m,onLeave:h,onAfterLeave:g},{default:function(){return[xn(V(`ul`,{class:ne.value,style:{"--padding-left":`${l}px`}},[s]),[[Na,w.value]])]}})],b=[t,V(`span`,{class:[`${r.value}-menu__content`]},[i(`title`,{silent:!0})]),V(DS,{overlayClassName:/menu/i.test(c.proxy.$options.name)?re.value:null,overlayStyle:{transform:`rotate(${_?-90:0}deg)`,"margin-left":`auto`}},null)];return v.value===`normal`?y:de(b)};return R(x,function(t){s.open(e.value,t?`add`:`remove`)}),R(E,function(){ie(E.value)}),mr(function(){var t;s==null||(t=s.vMenu)==null||t.add({value:e.value,parent:m?.value,vnode:n.default});for(var r=o.parent;r&&!/^t(head)?menu/i.test((i=r)?.type.name);){var i;if(/submenu/i.test(r?.type.name)){T.value=!0;break}r=r?.parent}}),_r(function(){var t;M(),s==null||(t=s.vMenu)==null||t.remove(e.value)}),function(){var e=null,t={},r;return v.value===`popup`&&(t={onMouseenter:ae,onMouseleave:se},u.value.length<2&&(r=V(`div`,{style:`display:none`},[a(`default`,`content`)]))),Object.keys(n).length>0&&(e=f?fe():pe()),V(`li`,H({class:N.value},t),[e,r])}}}),Hde=z({name:`PopupOverflowContent`,props:{foldIndex:{type:Number,required:!0}},setup:function(e,t){var n=Q(),r=I(),i=function(){if(r.value){var t=`${n.value}-menu__item`,i=`${n.value}-submenu`,a=[],o=function(e,n){n>3||Array.from(e.children).forEach(function(e){e instanceof HTMLElement&&(e.classList.contains(t)||e.classList.contains(i)?a.push(e):o(e,n+1))})};o(r.value,0),a.forEach(function(t,n){t.style.display=n<e.foldIndex?`none`:``})}};return mr(i),gr(i),function(){var e;return V(`div`,{ref:r},[(e=t.slots).default?.call(e)])}}});function jS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ude(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?jS(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wde(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=Gde(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function Gde(e,t){if(e){if(typeof e==`string`)return MS(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?MS(e,t):void 0}}function MS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function NS(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var PS=`__t_head_menu_more__`,Kde=z({name:`THeadMenu`,props:Mde,setup:function(e,t){var n=Q(),r=Yi().proxy;Tn(function(){t.slots.options&&Vp.warnOnce(`TMenu`,"`options` slot is going to be deprecated, please use `operations` for slot instead.")});var i=Wt(e),a=i.value,o=i.modelValue,s=i.expanded,c=Y(Rm(a,o,e.defaultValue,e.onChange),2),l=c[0],u=c[1],d=Y(bm(s,e.defaultExpanded,e.onExpand,`expanded`),2),f=d[0],p=d[1],m=I([]),h=U(function(){return e.theme}),g=U(function(){return[`${n.value}-menu`,`${n.value}-head-menu`,`${n.value}-menu--${e.theme}`]}),_=I(e.expandType),v=Dt([]),y=new gS({isMutex:!0,expandValues:f.value});Cn(`TdMenu`,{mode:_,theme:h,vMenu:y,isHead:!0,expandValues:f,activeValue:l,activeValues:m,select:function(e){u(e)},open:function(e,t){var n=W(f.value),r=n.indexOf(e);_.value===`popup`?t===`add`?r===-1&&n.push(e):t===`remove`&&n.splice(r,1):_.value===`normal`&&e!==void 0&&(n.splice(0,1),r===-1&&n.push(e)),p(n)}});var b=function(e){u(e),T(e)},x=function(e){var t=y.getChild(e);v.length=0,v.push.apply(v,W(t))};R(f,function(e){_.value===`normal`&&x(e[0])});var S=[],C=function(e){m.value=y.select(e).filter(function(e){return e!==PS}),w()},w=function(){var e=m.value.filter(function(e){return e!==PS}),t=j.value>=0,n=!1;if(t&&e.length>0&&S.length>0){var r=new Set(S.slice(j.value)),i=e.find(function(e){return e!=null});n=i!=null&&r.has(i)}n?m.value=[].concat(W(e),[PS]):m.value=e};R(l,C),R(function(){return e.expandType},function(e){_.value=e}),mr(function(){m.value=y.select(l.value),f.value?.length>0&&x(f.value[0])});var T=function(e){var t,n=v.find(function(t){return t.value===e});(t=n.onClick)==null||t.call(n,{value:e});var i=n.to,a=n.href,o=n.replace;a&&(window.location.href=n.href);var s=n.router||r.$router;i&&s&&(o?s.replace(i):s.push(i))},E=function(){var e;return v.length===0?null:V(`ul`,{class:[`${n.value}-head-menu__submenu`,`${n.value}-submenu`]},[V(TS,{value:l.value,onChange:b},NS(e=v.map(function(e){return V(ES,{value:e.value,label:e.vnode()[0]?.children},null)}))?e:{default:function(){return[e]}})])},D=I(),O=I(),k=I(),A=I(),j=I(-1),M=[],ee=function(){if(!D.value)return[];var e=`${n.value}-head-menu__submenu--more`,t=`${n.value}-menu__item`,r=`${n.value}-submenu`,i=[],a=function(n,o){o>3||Array.from(n.children).forEach(function(n){n instanceof HTMLElement&&(n.classList.contains(e)||(n.classList.contains(t)||n.classList.contains(r)?i.push(n):a(n,o+1)))})};return a(D.value,0),i},N=function(){if(!D.value)return 0;var e=D.value.querySelector(`.${n.value}-head-menu__submenu--more`);if(!e)return 0;var t=e.style.display===`none`;t&&(e.style.visibility=`hidden`,e.style.display=``);var r=window.getComputedStyle(e),i=e.getBoundingClientRect().width+Number.parseFloat(r.marginLeft)+Number.parseFloat(r.marginRight);return t&&(e.style.display=`none`,e.style.visibility=``),i},P=function(e){var t=window.getComputedStyle(e);return e.getBoundingClientRect().width+Number.parseFloat(t.marginLeft)+Number.parseFloat(t.marginRight)},F=function(){if(!D.value)return[];var e=`${n.value}-head-menu__submenu--more`,t=`${n.value}-menu__item`,r=`${n.value}-submenu`,i=[];return Array.from(D.value.children).forEach(function(n){n instanceof HTMLElement&&(n.classList.contains(e)||n.classList.contains(t)||n.classList.contains(r)||i.push(n))}),i},te=function(){if(e.expandType===`popup`&&D.value){var t=F(),r=[];t.forEach(function(e){r.push(e.style.display),e.style.display=`contents`});var i=ee();if(i.length===0){t.forEach(function(e,t){e.style.display=r[t]}),j.value=-1,ne();return}var a=D.value.querySelector(`.${n.value}-head-menu__submenu--more`);a&&(a.style.display=`none`);var o=[],s=[];i.forEach(function(e){s.push(e.style.display),e.style.display=``,o.push(e.style.flexShrink),e.style.flexShrink=`0`}),M.length=0,i.forEach(function(e){M.push(P(e))}),i.forEach(function(e,t){e.style.flexShrink=o[t],e.style.display=s[t]}),a&&(a.style.display=s.length>0?``:`none`),t.forEach(function(e){e.style.display=`contents`});var c=ae(),l=M.reduce(function(e,t){return e+t},0),u=-1;if(l>c){for(var d=N(),f=0,p=0;p<i.length;p++){if(f+M[p]+d>c){u=p;break}f+=M[p]}u===-1&&f+d>c&&(u=i.length-1)}j.value=u,ne()}},ne=function(){if(D.value){F().forEach(function(e){e.style.display=`contents`});var e=ee(),t=D.value.querySelector(`.${n.value}-head-menu__submenu--more`),r=j.value>=0;e.forEach(function(e,t){e.style.display=r&&t>=j.value?`none`:``}),t&&(t.style.display=r?``:`none`),w()}};Nm(O,te),R(k,function(e){e&&e.querySelectorAll(`img`).forEach(function(e){e.complete||(e.onload=function(){return te()})})});var re=function(e,t){return getComputedStyle(e)[t]??``},ie=function(e,t){return Number.parseInt(String(re(e,t)),10)},ae=function(){if(!O.value||!D.value)return 0;var e=ie(D.value,`paddingLeft`),t=ie(D.value,`paddingRight`),n=ie(D.value,`marginLeft`),r=ie(D.value,`marginRight`),i=O.value.clientWidth;if(k.value){var a=ie(k.value,`marginLeft`),o=ie(k.value,`marginRight`);i=i-k.value.offsetWidth-a-o}if(A.value){var s=ie(A.value,`marginLeft`),c=ie(A.value,`marginRight`);i=i-A.value.offsetWidth-s-c}return i-e-t-n-r},oe=function(e){var t=[],n=Wde(e),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;i.type===bi?K(i.children)&&t.push.apply(t,W(oe(i.children))):i.type?.name===`TSubmenu`||i.type?.name===`TMenuItem`?t.push(i):K(i.children)?t.push.apply(t,W(oe(i.children))):q(i.children?.default)?t.push.apply(t,W(oe(i.children.default()))):t.push(i)}}catch(e){n.e(e)}finally{n.f()}return t},se=function(e,t){e.forEach(function(e){if(e.type===bi){K(e.children)&&se(e.children,t);return}var n=e.props?.value;if((e.type?.name===`TSubmenu`||e.type?.name===`TMenuItem`)&&y.add(Ude({value:n,parent:t,vnode:e.children.default},e.props)),q(e.children?.default)){se(e.children.default(),n);return}K(e.children)&&se(e.children,n)})},ce=null,le=``;gr(function(){ne()});var ue=function(){ce??=requestAnimationFrame(function(){ce=null,te()})};return mr(function(){dn(function(){return te()})}),_r(function(){ce!=null&&(cancelAnimationFrame(ce),ce=null)}),function(){var r,i,a,o,s,c=e.logo?.call(e,sa)||(r=t.slots).logo?.call(r),l=e.operations?.call(e,sa)||(i=t.slots).operations?.call(i)||(a=t.slots).options?.call(a),u=(o=t.slots).default?.call(o)||(s=t.slots).content?.call(s)||[],d=oe(u),f=j.value>=0,p=f&&j.value<d.length,m=u,h=d.map(function(e){return e.props?.value}).join(`,`);return h!==le&&(le=h,S=d.map(function(e){return e.props?.value}),y.data.children=[],y.cache.clear(),se(d),ue()),V(`div`,{class:g.value},[V(`div`,{class:`${n.value}-head-menu__inner`,ref:O},[c&&V(`div`,{class:`${n.value}-menu__logo`,ref:k},[c]),V(`ul`,{class:`${n.value}-menu`,ref:D},[m,e.expandType===`popup`&&V(AS,{class:`${n.value}-head-menu__submenu--more`,value:PS,expandType:`popup`,title:function(){return V(Jg,null,null)},style:{display:f?``:`none`}},{default:function(){var e,n;if(!f)return[];var r=(e=t.slots).default?.call(e)||(n=t.slots).content?.call(n)||[],i=oe(r);return p&&j.value<i.length?i.slice(j.value):V(Hde,{foldIndex:j.value},NS(r)?r:{default:function(){return[r]}})}})]),l&&V(`div`,{class:`${n.value}-menu__operations`,ref:A},[l])]),_.value===`normal`&&E()])}}}),qde={content:{type:[String,Function]},default:{type:[String,Function]},disabled:Boolean,href:{type:String,default:``},icon:{type:Function},replace:Boolean,router:{type:Object},routerLink:Boolean,target:{type:String,default:`_self`,validator:function(e){return!e||[`_blank`,`_self`,`_parent`,`_top`].includes(e)}},to:{type:[String,Object]},value:{type:[String,Number]},onClick:Function};function FS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jde(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?FS(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yde(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var Xde=z({name:`TMenuItem`,props:qde,emits:[`click`],setup:function(e,t){var n=Wt(e),r=n.href,i=n.target,a=n.to,o=n.disabled,s=n.value,c=n.onClick,l=n.routerLink,u=n.replace,d=Q(),f=pm(),p=hm(),m=wn(`TdMenu`),h=I(),g=Yi();Im(h);var _=wn(`TdSubmenu`,null),v=U(function(){return m.activeValue.value===e.value}),y=U(function(){return m.collapsed?.value}),b=U(function(){return[`${d.value}-menu__item`,G(G(G(G({},`${d.value}-is-active`,v.value),`${d.value}-is-disabled`,e.disabled),`${d.value}-menu__item--plain`,!t.slots.icon&&!e.icon),`${d.value}-submenu__item`,!!_&&!m.isHead)]}),x=U(function(){return e.router||g?.proxy.$router}),S=function(e){var t,n;if(e.stopPropagation(),!o.value){if(m.select(s.value),(t=c.value)==null||t.call(c,{e,value:s.value}),a.value||l.value&&r.value){var i=u.value?`replace`:`push`;x.value[i](a.value||r.value).catch(function(e){if(e.name!==`NavigationDuplicated`&&!e.message.includes(`Avoided redundant navigation to current location`))throw e})}_==null||(n=_.closeParentPopup)==null||n.call(_,e)}};return mr(function(){var n;m==null||(n=m.vMenu)==null||n.add(Jde({value:e.value,parent:_?.value,vnode:t.slots.default},e));var r=m.activeValues.value;r.includes(e.value)&&!r.includes(_?.value)&&r.push(_?.value)}),_r(function(){var t;m==null||(t=m.vMenu)==null||t.remove(e.value)}),function(){var e=V(`li`,{ref:h,class:b.value,onClick:S},[f(`icon`),l.value?V(`a`,{href:r.value?r.value:a.value?x.value?.resolve(a.value).href:``,target:i.value,class:`${d.value}-menu__item-link`,onClick:function(e){return e.preventDefault()}},[V(`span`,{class:`${d.value}-menu__content`},[p(`default`,`content`)])]):r.value?V(`a`,{href:r.value,target:i.value,class:`${d.value}-menu__item-link`,onClick:function(e){return o.value&&e.preventDefault()}},[V(`span`,{class:`${d.value}-menu__content`},[p(`default`,`content`)])]):V(`span`,{class:`${d.value}-menu__content`},[p(`default`,`content`)])]);return y.value&&!_?V(Gx,{content:function(){return p(`default`,`content`)},placement:`right`},Yde(e)?e:{default:function(){return[e]}}):e}}}),Zde=z({name:`TMenuGroup`,props:{title:{type:[String,Function]}},setup:function(){var e=Q(),t=pm();return function(){return V(`div`,{class:`${e.value}-menu-group`},[V(`div`,{class:`${e.value}-menu-group__title`},[t(`title`,{silent:!1})]),t(`default`)])}}}),Qde=X(jde),$de=X(Kde),efe=X(AS),tfe=X(Xde),nfe=X(Zde),rfe={align:{type:String,default:`left`,validator:function(e){return!e||[`left`,`center`,`right`].includes(e)}},allowInputOverMax:Boolean,autoWidth:Boolean,autocomplete:{type:String,default:void 0},autofocus:Boolean,borderless:Boolean,clearable:Boolean,disabled:{type:Boolean,default:void 0},format:{type:Function},inputClass:{type:[String,Object,Array]},label:{type:[String,Function]},maxcharacter:{type:Number},maxlength:{type:[String,Number]},name:{type:String,default:``},placeholder:{type:String,default:void 0},prefixIcon:{type:Function},readonly:{type:Boolean,default:void 0},showClearIconOnEmpty:Boolean,showLimitNumber:Boolean,size:{type:String,default:`medium`,validator:function(e){return!e||[`small`,`medium`,`large`].includes(e)}},spellCheck:Boolean,status:{type:String,default:`default`,validator:function(e){return!e||[`default`,`success`,`warning`,`error`].includes(e)}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tips:{type:[String,Function]},type:{type:String,default:`text`,validator:function(e){return!e||[`text`,`number`,`url`,`tel`,`password`,`search`,`submit`,`hidden`].includes(e)}},value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},defaultValue:{type:[String,Number]},onBlur:Function,onChange:Function,onClear:Function,onClick:Function,onCompositionend:Function,onCompositionstart:Function,onEnter:Function,onFocus:Function,onKeydown:Function,onKeypress:Function,onKeyup:Function,onMouseenter:Function,onMouseleave:Function,onPaste:Function,onValidate:Function,onWheel:Function},IS=function(){var e=Q();return U(function(){var t=`${e.value}-form`,n=`${e.value}-input`,r=`${e.value}-is`;return{form:t,label:`${t}__label`,labelTop:`${t}__label--top`,inline:`${t}-inline`,formItem:`${t}__item`,formItemWithHelp:`${t}__item-with-help`,formItemWithExtra:`${t}__item-with-extra`,controls:`${t}__controls`,controlsContent:`${t}__controls-content`,status:`${t}__status`,extra:`${n}__extra`,help:`${n}__help`,success:`${r}-success`,successBorder:`${t}--success-border`,error:`${r}-error`,warning:`${r}-warning`}})},LS=function(e){return e.TO_BE_VALIDATED=`not`,e.SUCCESS=`success`,e.FAIL=`fail`,e}(LS||{}),RS=Symbol(`FormProvide`),zS=Symbol(`FormItemProvide`);function BS(e){var t=function(t){var n=e.value,r=n.allowInputOverMax,i=n.maxlength,a=n.maxcharacter;if(!(i||a)||r||!t)return t;if(i)return hse(t,i);if(a){var o=Qm(t,a);if(Do(o))return o.characters}},n=U(function(){var t=e.value,n=t.maxlength,r=t.maxcharacter,i=t.value;return nf(i)?String(i):(n&&r&&Vp.warn(`Input`,`Pick one of maxlength and maxcharacter please.`),n?`${i!=null&&i.length?mse(i):0}/${n}`:r?`${Qm(i||``)}/${r}`:``)}),r=U(function(){if(n.value){var e=Y(n.value.split(`/`),2),t=e[0],r=e[1];return Number(t)>Number(r)?`error`:``}return``}),i=U(function(){return e.value.status||r.value}),a=function(){var t,n;(t=(n=e.value).onValidate)==null||t.call(n,{error:r.value?`exceed-maximum`:void 0})};return R(r,a),mr(function(){r.value&&a()}),{tStatus:i,limitNumber:n,getValueByLimitNumber:t}}function VS(e,t){return t===`number`?e||e===0?Number(e):void 0:e}function ife(e,t){var n=Wt(e),r=n.value,i=n.modelValue,a=I(),o=I(!1),s=I(),c=I(null),l=I(),u=Sm(),d=Mm(),f=Y(Rm(r,i,e.defaultValue,e.onChange),2),p=f[0],m=f[1],h=I(!1),g=I(!1),_=I(e.type),v=I(),y=BS(U(function(){return{value:[void 0,null].includes(p.value)?void 0:String(p.value),status:e.status,maxlength:Number(e.maxlength),maxcharacter:e.maxcharacter,allowInputOverMax:e.allowInputOverMax,onValidate:e.onValidate}})),b=y.limitNumber,x=y.getValueByLimitNumber,S=y.tStatus,C=U(function(){return(p.value&&!u.value&&e.clearable&&!d.value||e.showClearIconOnEmpty)&&h.value}),w=function(){var e;g.value=!0,(e=v.value)==null||e.focus()},T=function(){var e;g.value=!1,(e=v.value)==null||e.blur()},E=function(t){var n;h.value&&g.value||(a.value=p.value,!e.disabled&&(g.value=!0,(n=e.onFocus)==null||n.call(e,p.value,{e:t})))},D=function(t){var n,r=t.e;m(e.type===`number`?void 0:``,{e:r,trigger:`clear`}),(n=e.onClear)==null||n.call(e,{e:r})},O=function(e){l.value=e.target},k=function(){u.value||(_.value=_.value===`password`?`text`:`password`)},A=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=v.value;if(t){var n=String(e);t.value&&t.value!==n&&(t.value=n)}},j=function(t){var n=t.target.value;e.type!==`number`&&typeof p.value==`string`&&n.length>p.value?.length&&(n=x(n)),m(VS(n,e.type),{e:t,trigger:`input`}),dn(function(){e.type===`number`&&/\.(\d+)?0$/.test(n)?A(n):A(p.value)})},M=function(e){var t=e.inputType&&e.inputType===`insertCompositionText`,n=e.currentTarget.value;if(t||o.value){s.value=n;return}j(e)},ee=function(){var e,t=l.value;if(!t||!t.tagName||!((e=c.value)!=null&&e.$el)||![`path`,`svg`].includes(t.tagName))return!1;for(;t;){if(c.value?.$el===t)return!0;t=t.parentNode}return!1},N=wn(zS,void 0);return R(function(){return e.autofocus},function(e){e===!0&&dn(function(){var e;(e=v.value)==null||e.focus()})},{immediate:!0}),R(p,function(t,n){var r=e.type===`number`;n===void 0&&e.format&&typeof t!=`number`&&!r?a.value=e.format(t):a.value=t;var i=typeof t==`number`?t:x(t);i!==t&&!r&&m(i,{trigger:`initial`})},{immediate:!0}),R(function(){return e.type},function(e){_.value=e},{immediate:!0}),t({inputRef:v,focus:w,blur:T}),{isHover:h,focused:g,renderType:_,showClear:C,inputRef:v,clearIconRef:c,inputValue:a,isComposition:o,compositionValue:s,limitNumber:b,tStatus:S,emitFocus:E,formatAndEmitBlur:function(t){if(ee())w();else{var n;e.format&&(a.value=typeof p.value==`number`||e.type===`number`?p.value:e.format(p.value)),g.value=!1,o.value&&(o.value=!1,s.value=``),(n=e.onBlur)==null||n.call(e,p.value,{e:t}),N?.handleBlur()}},onHandleCompositionend:function(t){var n;o.value=!1,s.value=``,j(t),(n=e.onCompositionend)==null||n.call(e,String(p.value),{e:t})},onHandleCompositionstart:function(t){var n;o.value=!0,s.value=t.currentTarget.value,(n=e.onCompositionstart)==null||n.call(e,String(p.value),{e:t})},onRootClick:function(t){var n,r;(n=v.value)==null||n.focus(),(r=e.onClick)==null||r.call(e,{e:t})},emitPassword:k,handleInput:M,emitClear:D,onClearIconMousedown:O,innerValue:p}}function afe(e,t,n){var r=function(t){if(!e.disabled){var r=t.code,i=VS(t.currentTarget.value,e.type);if(/enter/i.test(r)||/enter/i.test(t.key)){if(!(n!=null&&n.value)){var a;(a=e.onEnter)==null||a.call(e,i,{e:t})}}else{var o;(o=e.onKeydown)==null||o.call(e,i,{e:t})}}},i=function(t){var n;if(!e.disabled){var r=VS(t.currentTarget.value,e.type);(n=e.onKeyup)==null||n.call(e,r,{e:t})}},a=function(t){var n;if(!e.disabled){var r=VS(t.currentTarget.value,e.type);(n=e.onKeypress)==null||n.call(e,r,{e:t})}},o=function(t){var n;if(!e.disabled){var r=t.clipboardData||window.clipboardData;(n=e.onPaste)==null||n.call(e,{e:t,pasteValue:r?.getData(`text/plain`)})}},s=function(e){return t.value=e};return{isHover:t,handleKeydown:r,handleKeyUp:i,handleKeypress:a,onHandlePaste:o,onHandleMousewheel:function(t){return e.onWheel?.call(e,{e:t})},onInputMouseenter:function(t){var n;s(!0),(n=e.onMouseenter)==null||n.call(e,{e:t})},onInputMouseleave:function(t){var n;s(!1),(n=e.onMouseleave)==null||n.call(e,{e:t})}}}var ofe=100;function sfe(e,t,n){var r=Wt(e),i=r.autoWidth,a=r.placeholder,o=I(),s=I(null),c=function(){!o.value||!t.value||(t.value.style.width=getComputedStyle(o.value).width)};Nm(o,function(){i.value&&(s.value=setTimeout(function(){c(),clearTimeout(s.value)},ofe))}),_r(function(){clearTimeout(s.value)});var l=function(){R([n,a],function(){i.value&&dn(function(){c()})},{immediate:!0})};return mr(function(){i.value&&l()}),{inputPreRef:o}}var cfe=[`isHover`,`tStatus`,`inputRef`,`renderType`,`showClear`,`focused`,`inputValue`,`isComposition`,`compositionValue`,`innerValue`,`limitNumber`];function HS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function US(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?HS(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var lfe=z({name:`TInput`,props:US(US({},rfe),{},{showInput:{type:Boolean,default:!0},keepWrapperWidth:{type:Boolean,default:!1}}),setup:function(e,t){var n=t.expose,r=Rp(`input`).globalConfig,i=Tm({BrowseIcon:zh,BrowseOffIcon:zse,CloseCircleFilledIcon:Tg}),a=i.BrowseIcon,o=i.BrowseOffIcon,s=i.CloseCircleFilledIcon,c=Mm(),l=Sm(),u=Q(`input`),d=Q(`input__wrap`),f=Q(`input__tips`),p=ym(),m=p.STATUS,h=p.SIZE,g=Q(),_=pm(),v=ife(e,n),y=v.isHover,b=v.tStatus,x=v.inputRef,S=v.renderType,C=v.showClear,w=v.focused,T=v.inputValue,E=v.isComposition,D=v.compositionValue,O=v.innerValue,k=v.limitNumber,A=Ym(v,cfe),j=sfe(e,x,O).inputPreRef,M=afe(e,y,E),ee=U(function(){return e.placeholder??r.value.placeholder}),N=U(function(){return Xm({autofocus:e.autofocus,disabled:l.value,readonly:c.value,placeholder:ee.value,name:e.name||void 0,type:S.value,autocomplete:e.autocomplete??(r.value.autocomplete||void 0),unselectable:c.value?`on`:`off`,spellcheck:e.spellCheck})}),P=U(function(){return[d.value,G({},`${u.value}--auto-width`,e.autoWidth&&!e.keepWrapperWidth)]}),F=Xm({onFocus:A.emitFocus,onBlur:A.formatAndEmitBlur,onKeydown:M.handleKeydown,onKeyup:M.handleKeyUp,onKeypress:M.handleKeypress,onPaste:M.onHandlePaste,onCompositionend:A.onHandleCompositionend,onCompositionstart:A.onHandleCompositionstart});return function(){var t=_(`prefixIcon`),n=_(`suffixIcon`),r=_(`passwordIcon`),i=_(`label`,{silent:!0}),d=_(`suffix`),p=k.value&&e.showLimitNumber?V(`div`,{class:[`${g.value}-input__limit-number`,G({},`${g.value}-is-disabled`,l.value)]},[k.value]):null,v=i?V(`div`,{class:`${u.value}__prefix`},[i]):null,y=d||p?V(`div`,{class:`${u.value}__suffix`},[d,p]):null;if(e.type===`password`){var te=[G({},`${u.value}__suffix-clear`,!l.value)];S.value===`password`?n=V(o,{class:te,onClick:A.emitPassword},null):S.value===`text`&&(n=V(a,{class:te,onClick:A.emitPassword},null))}C.value&&(e.type===`password`?r=V(s,{ref:A.clearIconRef,class:`${u.value}__suffix-clear`,onClick:A.emitClear,onMousedown:A.onClearIconMousedown},null):n=V(s,{ref:A.clearIconRef,class:`${u.value}__suffix-clear`,onClick:A.emitClear,onMousedown:A.onClearIconMousedown},null));var ne=[u.value,e.inputClass,G(G(G(G(G(G(G(G(G(G({},h.value[e.size],e.size!==`medium`),m.value.disabled,l.value),m.value.focused,!l.value&&w.value),`${g.value}-is-${b.value}`,b.value&&b.value!=="default"),`${g.value}-align-${e.align}`,e.align!==`left`),`${g.value}-is-readonly`,c.value),`${u.value}--prefix`,t||v),`${u.value}--suffix`,n||y),`${u.value}--borderless`,e.borderless),`${u.value}--focused`,w.value)],re=_(`tips`),ie=[f.value,`${g.value}-tips`,`${g.value}-is-${b.value||`default`}`];return xn(V(`div`,{class:P.value},[V(`div`,{class:ne,onClick:A.onRootClick,onMouseenter:M.onInputMouseenter,onMouseleave:M.onInputMouseleave,onWheel:M.onHandleMousewheel},[t?V(`span`,{class:[`${u.value}__prefix`,`${u.value}__prefix-icon`]},[t]):null,v,V(`input`,H({class:[`${u.value}__inner`,G({},`${u.value}--soft-hidden`,!e.showInput)]},N.value,F,{ref:x,value:E.value?D.value??``:T.value??``,onInput:function(e){return A.handleInput(e)}}),null),e.autoWidth&&V(`span`,{ref:j,class:`${g.value}-input__input-pre`},[E.value?D.value??``:O.value||ee.value]),y,r?V(`span`,{class:[`${u.value}__suffix`,`${u.value}__suffix-icon`,`${u.value}__clear`]},[r]):null,n?V(`span`,{class:[`${u.value}__suffix`,`${u.value}__suffix-icon`,G({},`${u.value}__clear`,C.value)]},[n]):null]),re&&V(`div`,{class:ie},[re])]),[[Na,e.type!==`hidden`]])}}}),ufe=z({name:`TInputGroup`,props:{separate:Boolean},setup:function(e){var t=Q(`input-group`),n=pm(),r=U(function(){return[t.value,G({},`${t.value}--separate`,e.separate)]});return function(){return V(`div`,{class:r.value},[n(`default`)])}}}),WS=X(lfe),dfe=X(ufe),ffe={align:{type:String,validator:function(e){return!e||[`left`,`center`,`right`].includes(e)}},allowInputOverLimit:{type:Boolean,default:!0},autoWidth:Boolean,autofocus:Boolean,decimalPlaces:{type:[Number,Object],default:void 0},disabled:{type:Boolean,default:void 0},format:{type:Function},inputProps:{type:Object},label:{type:[String,Function]},largeNumber:Boolean,max:{type:[String,Number],default:1/0},min:{type:[String,Number],default:-1/0},placeholder:{type:String,default:void 0},readonly:{type:Boolean,default:void 0},size:{type:String,default:`medium`,validator:function(e){return!e||[`small`,`medium`,`large`].includes(e)}},status:{type:String,default:`default`,validator:function(e){return!e||[`default`,`success`,`warning`,`error`].includes(e)}},step:{type:[String,Number],default:1},suffix:{type:[String,Function]},theme:{type:String,default:`row`,validator:function(e){return!e||[`column`,`row`,`normal`].includes(e)}},tips:{type:[String,Function]},value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},defaultValue:{type:[String,Number]},onBlur:Function,onChange:Function,onEnter:Function,onFocus:Function,onKeydown:Function,onKeypress:Function,onKeyup:Function,onValidate:Function};function GS(e){return Array(e).fill(0).join(``)}function KS(e){if(!e)return!0;if(nf(e))return!Number.isNaN(e);if(!/^[0-9|e|E|-]+\.*[0-9|e|E|-]*$/.test(e))return!1;for(var t=0,n=0,r=0,i=0,a=e.length;i<a;i++)if(e[i]===`.`&&(r+=1,r>1)||/(e|E)+/.test(e[i])&&(t+=1,t>1)||e[i]===`-`&&(n+=1,n>2))return!1;return!0}function qS(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return e.indexOf(`.`)===-1?!e||e===`0`&&t?``:e===`0`?e:(t?e.replace(/0+$/,``):e.replace(/^0+/,``))||`0`:(Vp.error(`InputNumber`,`num is not a integer number.`),e)}function JS(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=qS(e,n),i=qS(t,n),a=r.length>i.length,o=a?r:i,s=a?i:r,c=[],l=[],u=n?0:o.length-s.length,d=n?s.length:o.length,f=d-1;f>=0;f--){var p=f-u,m=Number(o[f])+(Number(s[p])||0)+(l[f]||0);m>=10&&(l[f-1]=1),c.unshift(String(m%10))}return l[-1]&&c.unshift(`1`),n?c.concat(o.slice(d,o.length)).join(``):c.join(``)}function YS(e,t){var n=Y(e.split(`.`),2),r=n[0],i=r===void 0?`0`:r,a=n[1],o=a===void 0?`0`:a,s=Y(t.split(`.`),2),c=s[0],l=c===void 0?`0`:c,u=s[1],d=u===void 0?`0`:u,f=JS(i,l);if(o===`0`&&d===`0`)return f;var p=qS(o,!0),m=qS(d,!0),h=JS(p,m,!0),g=h.length;return g>p.length&&g>m.length?[qS(JS(f,`1`)),qS(h.slice(1),!0)].filter(function(e){return e}).join(`.`):[qS(f),qS(h,!0)].filter(function(e){return e}).join(`.`)}function XS(e,t){var n=qS(e),r=qS(t);if(n.length===r.length){for(var i=0,a=n.length;i<a;i++){if(n[i]>r[i])return 1;if(n[i]<r[i])return-1}return 0}return n.length>r.length?1:-1}function ZS(e,t){for(var n=e&&e!==`0`?e.replace(/0+$/,``):`0`,r=t&&t!==`0`?t.replace(/0+$/,``):`0`,i=Math.max(n.length,r.length),a=0,o=i;a<o;a++){if((n[a]||0)>(r[a]||0))return 1;if((n[a]||0)<(r[a]||0))return-1}return 0}function QS(e){var t=Y(e.split(`e`),2),n=t[0],r=t[1];if(!r)return e;var i=Y(e.split(`.`),2),a=i[0],o=i[1],s=o===void 0?``:o,c=Number(r),l=Y(s.split(`e`),1)[0];if(c>l.length){var u=GS(c-l.length);return n.replace(/(^0+|\.)/g,``)+u}var d=a.replace(/^0+/,``)+l.slice(0,c),f=l.slice(c);return f?[d,f].join(`.`):d}function pfe(e,t){var n=Y(QS(e).split(`.`),2),r=n[0],i=n[1],a=Y(QS(t).split(`.`),2),o=a[0],s=a[1],c=XS(r.replace(`-`,``),o.replace(`-`,``)),l=r.includes(`-`),u=o.includes(`-`);return l&&!u?-1:!l&&u?1:l&&u?c===0?0:c>0?-1:1:c===0?ZS(i,s):c}function $S(e){return[-1/0,1/0].includes(Number(e))}function eC(e){return Number(e)<2**53-1&&Number(e)>-(2**53-1)}function tC(e,t,n){var r=eC(e)&&eC(t)&&!n,i=$S(e)||$S(t);return r||i?Number(e)===Number(t)?0:Number(e)>Number(t)?1:-1:pfe(String(e),String(t))}function nC(e,t,n){if(e===t)return`0`;for(var r=n||{},i=r.decimal,a=r.stayZero,o=r.filledZero,s=o?e:qS(e,i),c=o?t:qS(t,i),l=XS(s,c)>0,u=l?s:c,d=l?c:s,f=[],p=[],m=i?0:u.length-d.length,h=i?d.length:u.length,g=h-1;g>=0;g--){var _=g-m,v=Number(u[g])-(Number(d[_])||0)-(p[g]||0);v<0&&(p[g-1]=1,v+=10),f.unshift(String(v))}if(i)return f.concat(u.slice(h,u.length)).join(``);var y=f.join(``);return a||(y=y.replace(/^0+/,``)),qS(l?y:`-${y}`,i)}function rC(e,t){if(e===t)return`0`;var n=tC(e,t,!0)>0,r=n?e:t,i=n?t:e,a=Y(r.split(`.`),2),o=a[0],s=a[1],c=s===void 0?`0`:s,l=Y(i.split(`.`),2),u=l[0],d=l[1],f=d===void 0?`0`:d,p=nC(o,u);if(c===`0`&&f===`0`)return n?p:`-${p}`;var m=``,h=c,g=c.length<f.length;g&&(h=`${c}${GS(f.length-c.length)}`),ZS(h,f)>=0?m=nC(h,f,{decimal:!0,stayZero:!0,filledZero:!0}):(g||c===`0`?(m=nC(`1${h}`,f,{stayZero:!0}),m=GS(f.length-m.length)+m):m=nC(c,f,{decimal:!0}),p=nC(p,`1`));var _=m?[p,m].join(`.`):p;return n?_:`-${_}`}function mfe(e,t){var n=e[0]===`-`,r=t[0]===`-`;return n&&!r?`-${YS(e.slice(1),t)}`:n&&r?rC(t.slice(1),e.slice(1)):!n&&r?YS(e,t.slice(1)):rC(e,t)}function hfe(e,t){var n=e[0]===`-`,r=t[0]===`-`;return n&&!r?rC(t,e.slice(1)):n&&r?`-${YS(t.slice(1),e.slice(1))}`:!n&&r?rC(e,t.slice(1)):YS(e,t)}function iC(e,t){if(!(arguments.length>2&&arguments[2]!==void 0)||arguments[2])return e.toFixed(t);var n=Y(e.toString().split(`.`),2),r=n[0],i=n[1];if(t===0)return r;if(i){var a=i.slice(0,t);return i.length<t&&(a+=GS(t-i.length)),[r,a].join(`.`)}return[r,GS(t)].join(`.`)}function gfe(e,t){return Do(t)?iC(e,t.places,t.enableRound??!0):iC(e,t,!0)}function aC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(Number.isNaN(Number(e)))return``;if(!n)return gfe(Number(e),t);var r=Do(t)?t.places:t,i=Do(t)?t.enableRound??!0:!0;if(!Rd(e))return String(e);var a=Y(e.split(`.`),2),o=a[0],s=a[1];if(!s)return r>0&&i?[e,GS(r)].join(`.`):e;if(r===0)return i&&Number(s[0])>=5?YS(o,`1`):o;var c=s.slice(0,r);if(s.length<r)c+=GS(r-s.length);else if(i){var l=c.match(/^0+/)?.[0].length,u=c.match(/^9+/),d=Number(s[r])>=5;c=d?YS(c,`1`):c,l&&d&&l+c.length>=r&&(c=`${GS(r-c.length)}${c}`),u&&c.length>r&&(o=(Number(o)+1).toString(),c=GS(r))}return[o,c].join(`.`)}function _fe(e,t){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return!e&&e!==0?!0:n&&Rd(e)?tC(e,t,n)<0:e<t}function vfe(e,t){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return!e&&e!==0?!0:n&&Rd(e)?tC(e,t,n)>0:e>t}function yfe(e,t){if(e!==``){var n=t.max,r=t.min,i=t.lastValue,a=t.largeNumber;return KS(e)?a&&(Rd(n)||n===1/0)&&(Rd(r)||r===-1/0)?tC(n,e,a)<0?n:tC(r,e,a)>0?r:e:Math.max(Number(r),Math.min(Number(n),Number(e))):i}}function oC(e,t){if(!e||!t)return(e||0)+(t||0);var n=e.toString().split(`.`)[1]?.length||0,r=t.toString().split(`.`)[1]?.length||0;if(!n&&!r)return e+t;var i=e,a=t,o=Math.abs(n-r),s=10**Math.max(n,r);if(o>0){var c=10**o;n>r?(i=Number(e.toString().replace(`.`,``)),a=Number(t.toString().replace(`.`,``))*c):(i=Number(e.toString().replace(`.`,``))*c,a=Number(t.toString().replace(`.`,``)))}else i=Number(e.toString().replace(`.`,``)),a=Number(t.toString().replace(`.`,``));return(i+a)/s}function sC(e,t){if(!e||!t)return(e||0)-(t||0);var n=e.toString().split(`.`)[1]?.length||0,r=t.toString().split(`.`)[1]?.length||0,i=10**Math.max(n,r),a=n>=r?n:r;return Number(((e*i-t*i)/i).toFixed(a))}function bfe(e,t){return e<0&&t>0?sC(t,Math.abs(e)):e<0&&t<0?oC(Math.abs(e),Math.abs(t))*-1:e>0&&t<0?sC(e,Math.abs(t)):oC(e,t)}function xfe(e,t){return e<0&&t>0?oC(Math.abs(e),t)*-1:e<0&&t<0?sC(Math.abs(t),Math.abs(e)):e>0&&t<0?oC(e,Math.abs(t)):sC(e,t)}function Sfe(e){var t=e.op,n=e.step,r=e.lastValue,i=e.max,a=e.min,o=e.largeNumber;if(Number(n)<=0)return Vp.error(`InputNumber`,`step must be larger than 0.`),r;var s=nf(n)?String(n):n,c;return t===`add`?c=o&&Rd(r)?hfe(String(r),String(s)):bfe(Number(r||0),Number(n)):t===`reduce`&&(c=o&&Rd(r)?mfe(String(r),String(s)):xfe(Number(r||0),Number(n))),sf(r)&&(c=yfe(c,{max:i,min:a,lastValue:r,largeNumber:o})),o?c:Number(c)}function cC(e){var t=e.largeNumber,n=e.value,r=e.max,i=e.min;if(!(sf(n)||sf(t)))return t&&nf(n)&&Vp.warn(`InputNumber`,`largeNumber value must be a string.`),tC(n,r,t)>0?`exceed-maximum`:tC(n,i,t)<0?`below-minimum`:void 0}var Cfe=[`-`,`.`,`e`,`E`,`+`];function wfe(e,t){if([``,null,void 0].includes(e))return!0;if(e.slice(0,2)===`00`||e.match(/\s/g)||e.match(/\./g)?.length>1||e.match(/e/g)?.length>1)return!1;var n=e.slice(1),r=n.match(/(\+|-)/g);return!(r&&(!/e(\+|-)/i.test(n)||r.length>1)||!(t&&KS(e)||!Number.isNaN(Number(e)))&&!Cfe.includes(e.slice(-1))||/e/i.test(e)&&(!/\de/i.test(e)||/e\./.test(e)))}function Tfe(e,t){return Number.isNaN(Number(e))?!1:t===``||t===null||sf(t)?e!==``:e===``||parseFloat(e)!==Number(t)}function lC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!([``,null,void 0].includes(e)||!/\d+/.test(e))){var n=t.decimalPlaces,r=t.largeNumber,i=t.isToFixed,a=e.replace(/[.|+|\-|e]$/,``);return r&&(a=QS(a)),n!==void 0&&(a=aC(a,n,r)),r||i?a:parseFloat(a)}}function Efe(e){return/^[-+]?\d{1,3}(,\d{3})*(\.(\d*))?$/.test(e)?e.replace(/,/g,``):e}function Dfe(e){var t=ym(),n=t.classPrefix,r=t.SIZE,i=t.STATUS,a=Wt(e),o=a.value,s=a.modelValue,c=a.max,l=a.min,u=Y(Rm(o,s,e.defaultValue,e.onChange),2),d=u[0],f=u[1],p=I(),m=I(``),h=Sm(),g=Mm(),_=I(),v=U(function(){return h.value||!vfe(d.value,e.min,e.largeNumber)}),y=U(function(){return h.value||!_fe(d.value,e.max,e.largeNumber)}),b=U(function(){return[`${n.value}-input-number`,r.value[e.size],G(G(G(G({},i.value.disabled,h.value),`${n.value}-is-controls-right`,e.theme===`column`),`${n.value}-input-number--${e.theme}`,e.theme),`${n.value}-input-number--auto-width`,e.autoWidth)]}),x=U(function(){return[`${n.value}-input-number__decrease`,G({},i.value.disabled,v.value)]}),S=U(function(){return[`${n.value}-input-number__increase`,G({},i.value.disabled,y.value)]}),C=function(t){var n;if(!t&&t!==0)return``;var r=t||t===0?String(t):``;if(!((n=p.value)!=null&&(n=n.inputRef)!=null&&n.contains(document.activeElement))){var i=lC(r,{decimalPlaces:e.decimalPlaces,largeNumber:e.largeNumber,isToFixed:!0});r=i||i===0?String(i):``,e.format&&(r=String(e.format(t,{fixedNumber:r})))}return r};R(d,function(t){var n=e.largeNumber,r=e.decimalPlaces,i=[void 0,null].includes(t)?``:String(t);if(!n&&!Number.isNaN(m.value)){parseFloat(m.value)!==t&&(m.value=C(i));var a=Number(aC(i,r,n));r!==void 0&&![void 0,null].includes(t)&&Number(a)!==Number(d.value)&&f(a,{type:`props`,e:void 0})}if(n&&(m.value=C(i),r!==void 0&&aC(i,r,n)!==t)){var o,s=i;(o=p.value)!=null&&(o=o.inputRef)!=null&&o.contains(document.activeElement)||(s=lC(s,{decimalPlaces:e.decimalPlaces,largeNumber:e.largeNumber,isToFixed:!0})),f(s,{type:`props`,e:void 0})}},{immediate:!0}),R([d,c,l],function(){var t;if(![void 0,``,null].includes(d.value)){var n=e.max,r=e.min,i=e.largeNumber,a=cC({value:d.value,largeNumber:i,max:n,min:r});_.value=a,(t=e.onValidate)==null||t.call(e,{error:a})}},{immediate:!0});var w=function(t){var n=Sfe({op:t,step:e.step,max:e.max,min:e.min,lastValue:d.value,largeNumber:e.largeNumber}),r=e.largeNumber,i=e.max,a=e.min;return{overLimit:cC({value:n,largeNumber:r,max:i,min:a}),newValue:n}},T=function(t){if(!(v.value||g.value)){var n=w(`reduce`);n.overLimit&&!e.allowInputOverLimit||f(n.newValue,{type:`reduce`,e:t})}},E=function(t){if(!(y.value||g.value)){var n=w(`add`);n.overLimit&&!e.allowInputOverLimit||f(n.newValue,{type:`add`,e:t})}},D=function(t,n){var r=n.e,i=Efe(t);if(wfe(i,e.largeNumber)){var a=i;if(e.decimalPlaces!==void 0&&i!==``&&i.includes(`.`)){var o=i.split(`.`),s=typeof e.decimalPlaces==`number`?e.decimalPlaces:e.decimalPlaces.places;o[1]&&o[1].length>s&&(a=`${o[0]}.${o[1].substring(0,s)}`)}if(m.value=a,e.largeNumber){f(a,{type:`input`,e:r});return}var c=a===``?void 0:Number(a);Tfe(a,d.value)&&f(c,{type:`input`,e:r})}},O=function(e){return typeof e==`number`&&!Number.isNaN(e)},k=function(t,n){var r,i=e.largeNumber,a=e.max,o=e.min,s=e.decimalPlaces;if(!e.allowInputOverLimit){if([void 0,null].includes(d.value)&&o!==-1/0){if(O(d.value)&&d.value<o){var c;f(o,{type:`blur`,e:n.e}),(c=e.onBlur)==null||c.call(e,o,n)}else{var l;(l=e.onBlur)==null||l.call(e,d.value,n)}return}if(d.value!==void 0){var u=cC({value:d.value,largeNumber:i,max:a,min:o});if(u===`below-minimum`){if(O(d.value)&&d.value<o){var p;f(o,{type:`blur`,e:n.e}),(p=e.onBlur)==null||p.call(e,o,n)}else{var h;(h=e.onBlur)==null||h.call(e,d.value,n)}return}if(u===`exceed-maximum`){var g;f(a,{type:`blur`,e:n.e}),(g=e.onBlur)==null||g.call(e,a,n);return}}}var _=lC(t,{decimalPlaces:s,largeNumber:i});m.value=C(_),_!==d.value&&f(_,{type:`blur`,e:n.e}),(r=e.onBlur)==null||r.call(e,_,n)},A=function(t,n){var r;m.value=d.value||d.value===0?String(d.value):``,(r=e.onFocus)==null||r.call(e,t,n)},j=function(t,n){var r;if(!h.value){var i=n.e,a={ArrowUp:E,ArrowDown:T},o=i.code||i.key;a[o]!==void 0&&a[o](i),(r=e.onKeydown)==null||r.call(e,t,n)}},M=function(t,n){var r;(r=e.onKeyup)==null||r.call(e,t,n)},ee=function(t,n){var r;(r=e.onKeypress)==null||r.call(e,t,n)},N=function(t,n){var r;m.value=C(t);var i=lC(t,{decimalPlaces:e.decimalPlaces,largeNumber:e.largeNumber});i!==t&&String(i)!==t&&f(i,{type:`enter`,e:n.e}),(r=e.onEnter)==null||r.call(e,i,n)},P=function(){h.value||g.value||p.value.focus()};return{classPrefix:n,wrapClasses:b,reduceClasses:x,addClasses:S,tDisabled:h,isError:_,listeners:{onBlur:k,onFocus:A,onKeydown:j,onKeyup:M,onKeypress:ee,onEnter:N,onClick:P},userInput:m,tValue:d,inputRef:p,focus:P,blur:function(){p.value.blur()},handleReduce:T,handleAdd:E,onInnerInputChange:D,isReadonly:g}}function uC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?uC(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var fC=X(z({name:`TInputNumber`,props:ffe,setup:function(e,t){var n=Tm({AddIcon:Th,RemoveIcon:dle,ChevronDownIcon:sg,ChevronUpIcon:Sg}),r=n.AddIcon,i=n.RemoveIcon,a=n.ChevronDownIcon,o=n.ChevronUpIcon,s=Dfe(e),c=s.inputRef;t.expose(dC({},s));var l=Jm(e.inputProps,dC({onChange:s.onInnerInputChange},s.listeners));return function(){var n=e.theme===`column`?V(a,{size:e.size},null):V(i,{size:e.size},null),u=e.theme===`column`?V(o,{size:e.size},null):V(r,{size:e.size},null),d=s.isError.value?`error`:e.status;return V(`div`,{class:s.wrapClasses.value},[e.theme!==`normal`&&V(mh,{class:s.reduceClasses.value,disabled:s.tDisabled.value,onClick:s.handleReduce,variant:`outline`,shape:`square`,icon:function(){return n}},null),V(WS,H({ref:c,disabled:s.tDisabled.value,readonly:s.isReadonly.value,autocomplete:`off`,autofocus:e.autofocus,placeholder:e.placeholder,unselectable:s.isReadonly.value?`on`:`off`,autoWidth:e.autoWidth,align:e.align||(e.theme===`row`?`center`:void 0),status:d,label:e.label,suffix:e.suffix,tips:e.tips,value:s.userInput.value},l.value),t.slots),e.theme!==`normal`&&V(mh,{class:s.addClasses.value,disabled:s.tDisabled.value,onClick:s.handleAdd,variant:`outline`,shape:`square`,icon:function(){return u}},null)])}}})),Ofe={allowInput:Boolean,autoWidth:Boolean,autofocus:Boolean,borderless:Boolean,clearable:Boolean,collapsedItems:{type:Function},disabled:{type:Boolean,default:void 0},inputProps:{type:Object},inputValue:{type:[String,Number],default:void 0},defaultInputValue:{type:[String,Number]},keys:{type:Object},label:{type:[String,Function]},loading:Boolean,minCollapsedNum:{type:Number,default:0},multiple:Boolean,panel:{type:[String,Function]},placeholder:{type:String,default:``},popupProps:{type:Object},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:Boolean,prefixIcon:{type:Function},readonly:{type:Boolean,default:void 0},reserveKeyword:Boolean,size:{type:String,default:`medium`,validator:function(e){return!e||[`small`,`medium`,`large`].includes(e)}},status:{type:String,default:`default`,validator:function(e){return!e||[`default`,`success`,`warning`,`error`].includes(e)}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tag:{type:[String,Function]},tagInputProps:{type:Object},tagProps:{type:Object},tips:{type:[String,Function]},value:{type:[String,Number,Boolean,Object,Array,Date],default:void 0},valueDisplay:{type:[String,Function]},onBlur:Function,onClear:Function,onEnter:Function,onFocus:Function,onInputChange:Function,onMouseenter:Function,onMouseleave:Function,onPaste:Function,onPopupVisibleChange:Function,onTagChange:Function},kfe={autoWidth:Boolean,borderless:Boolean,clearable:Boolean,collapsedItems:{type:Function},disabled:{type:Boolean,default:void 0},dragSort:Boolean,excessTagsDisplayType:{type:String,default:`break-line`,validator:function(e){return!e||[`scroll`,`break-line`].includes(e)}},inputProps:{type:Object},inputValue:{type:[String,Number],default:void 0},defaultInputValue:{type:[String,Number],default:``},label:{type:[String,Function]},max:{type:Number},minCollapsedNum:{type:Number,default:0},placeholder:{type:String,default:void 0},prefixIcon:{type:Function},readonly:{type:Boolean,default:void 0},size:{type:String,default:`medium`,validator:function(e){return!e||[`small`,`medium`,`large`].includes(e)}},status:{type:String,validator:function(e){return!e||[`default`,`success`,`warning`,`error`].includes(e)}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tag:{type:[String,Function]},tagProps:{type:Object},tips:{type:[String,Function]},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:function(){return[]}},valueDisplay:{type:[String,Function]},onBlur:Function,onChange:Function,onClear:Function,onClick:Function,onDragSort:Function,onEnter:Function,onFocus:Function,onInputChange:Function,onMouseenter:Function,onMouseleave:Function,onPaste:Function,onRemove:Function};function Afe(e){var t=e.sortOnDraggable,n=e.onDragSort,r=e.onDragOverCheck,i=I(-1),a=I(null),o=I(null),s=Dt({nodeX:0,nodeWidth:0,mouseX:0}),c=function(e,t,o){if(e.preventDefault(),!(i.value===t||i.value===-1)){var c=e.target;if(!(r!=null&&r.targetClassNameRegExp&&!(r!=null&&r.targetClassNameRegExp.test(c.className)))){if(r!=null&&r.x&&c){if(!s.nodeWidth)return;var l=c.getBoundingClientRect(),u=l.x,d=l.width,f=u+d/2,p=e.clientX-(s.mouseX-s.nodeX),m=p+s.nodeWidth,h=!1;if(h=p>u&&p<u+d?p<f:m>f,!h)return}n?.({currentIndex:i.value,current:a,target:o,targetIndex:t}),i.value=t}}};if(!t)return{};function l(e,t,n){i.value=t,a.value=n;var o=e.target;if(r&&o){var c=o.getBoundingClientRect(),l=c.x,u=c.width;s.nodeX=l,s.nodeWidth=u,s.mouseX=e.clientX}}function u(){o.value=!0}function d(){o.value,o.value=!1,i.value=-1,a.value=null}function f(e,n){return t?{draggable:!0,onDragstart:function(t){l(t,e,n)},onDragover:function(t){c(t,e,n)},onDrop:function(){u()},onDragend:function(){d()}}:{}}return{onDragStart:l,onDragOver:c,onDrop:u,onDragEnd:d,getDragProps:f,dragging:i.value!==-1}}function jfe(e){var t=e.disabled,n=e.readonly,r=e.onMouseenter,i=e.onMouseleave,a=I(!1);return{isHover:a,addHover:function(e){n||t||(a.value=!0,r?.(e))},cancelHover:function(e){n||t||(a.value=!1,i?.(e))}}}function Mfe(e){var t=I(),n=Q(),r=Wt(e),i=r.excessTagsDisplayType,a=r.readonly,o=r.disabled,s=I(0),c=I(),l=I(),u=I(!1),d=function(e){c.value=e.querySelector(`.${n.value}-input__prefix`)},f=function(){s.value=c.value.scrollWidth-c.value.clientWidth},p=function(e){q(c.value?.scroll)&&c.value.scroll({left:e,behavior:`smooth`})},m=function(){var e=t.value?.$el;e&&d(e),c.value&&setTimeout(function(){f(),p(s.value),setTimeout(function(){u.value=!0},200)},0)};return mr(function(){var e=t.value?.$el;e&&d(e)}),vr(function(){clearTimeout(l.value)}),{tagInputRef:t,scrollElement:c,scrollDistance:s,scrollTo:p,scrollToRight:m,scrollToLeft:function(){p(0)},updateScrollElement:d,updateScrollDistance:f,onWheel:function(e){var t=e.e;if(!(a.value||o.value)&&c.value){var n=Math.abs(t.deltaX)>=Math.abs(t.deltaY)?t.deltaX:t.deltaY;n>0?(f(),p(Math.min(c.value.scrollLeft+120,s.value))):n<0&&p(Math.max(c.value.scrollLeft-120,0))}},scrollToRightOnEnter:function(){i.value===`scroll`&&(l.value=setTimeout(function(){m(),clearTimeout(l.value)},100))},scrollToLeftOnLeave:function(){i.value===`scroll`&&(u.value=!1,p(0),clearTimeout(l.value))},isScrollable:u}}function pC(e){"@babel/helpers - typeof";return pC=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},pC(e)}var Nfe=/^\s+/,Pfe=/\s+$/;function mC(e,t){if(e||=``,t||={},e instanceof mC)return e;if(!(this instanceof mC))return new mC(e,t);var n=Ffe(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}mC.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255,i=t<=.03928?t/12.92:((t+.055)/1.055)**2.4,a=n<=.03928?n/12.92:((n+.055)/1.055)**2.4,o=r<=.03928?r/12.92:((r+.055)/1.055)**2.4;return .2126*i+.7152*a+.0722*o},setAlpha:function(e){return this._a=xC(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=gC(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=gC(this._r,this._g,this._b),t=Math.round(e.h*360),n=Math.round(e.s*100),r=Math.round(e.v*100);return this._a==1?`hsv(`+t+`, `+n+`%, `+r+`%)`:`hsva(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHsl:function(){var e=hC(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=hC(this._r,this._g,this._b),t=Math.round(e.h*360),n=Math.round(e.s*100),r=Math.round(e.l*100);return this._a==1?`hsl(`+t+`, `+n+`%, `+r+`%)`:`hsla(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHex:function(e){return _C(this._r,this._g,this._b,e)},toHexString:function(e){return`#`+this.toHex(e)},toHex8:function(e){return zfe(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return`#`+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?`rgb(`+Math.round(this._r)+`, `+Math.round(this._g)+`, `+Math.round(this._b)+`)`:`rgba(`+Math.round(this._r)+`, `+Math.round(this._g)+`, `+Math.round(this._b)+`, `+this._roundA+`)`},toPercentageRgb:function(){return{r:Math.round(SC(this._r,255)*100)+`%`,g:Math.round(SC(this._g,255)*100)+`%`,b:Math.round(SC(this._b,255)*100)+`%`,a:this._a}},toPercentageRgbString:function(){return this._a==1?`rgb(`+Math.round(SC(this._r,255)*100)+`%, `+Math.round(SC(this._g,255)*100)+`%, `+Math.round(SC(this._b,255)*100)+`%)`:`rgba(`+Math.round(SC(this._r,255)*100)+`%, `+Math.round(SC(this._g,255)*100)+`%, `+Math.round(SC(this._b,255)*100)+`%, `+this._roundA+`)`},toName:function(){return this._a===0?`transparent`:this._a<1?!1:Zfe[_C(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t=`#`+vC(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?`GradientType = 1, `:``;if(e){var i=mC(e);n=`#`+vC(i._r,i._g,i._b,i._a)}return`progid:DXImageTransform.Microsoft.gradient(`+r+`startColorstr=`+t+`,endColorstr=`+n+`)`},toString:function(e){var t=!!e;e||=this._format;var n=!1,r=this._a<1&&this._a>=0;return!t&&r&&(e===`hex`||e===`hex6`||e===`hex3`||e===`hex4`||e===`hex8`||e===`name`)?e===`name`&&this._a===0?this.toName():this.toRgbString():(e===`rgb`&&(n=this.toRgbString()),e===`prgb`&&(n=this.toPercentageRgbString()),(e===`hex`||e===`hex6`)&&(n=this.toHexString()),e===`hex3`&&(n=this.toHexString(!0)),e===`hex4`&&(n=this.toHex8String(!0)),e===`hex8`&&(n=this.toHex8String()),e===`name`&&(n=this.toName()),e===`hsl`&&(n=this.toHslString()),e===`hsv`&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return mC(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Ufe,arguments)},brighten:function(){return this._applyModification(Wfe,arguments)},darken:function(){return this._applyModification(Gfe,arguments)},desaturate:function(){return this._applyModification(Bfe,arguments)},saturate:function(){return this._applyModification(Vfe,arguments)},greyscale:function(){return this._applyModification(Hfe,arguments)},spin:function(){return this._applyModification(Kfe,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Yfe,arguments)},complement:function(){return this._applyCombination(qfe,arguments)},monochromatic:function(){return this._applyCombination(Xfe,arguments)},splitcomplement:function(){return this._applyCombination(Jfe,arguments)},triad:function(){return this._applyCombination(yC,[3])},tetrad:function(){return this._applyCombination(yC,[4])}},mC.fromRatio=function(e,t){if(pC(e)==`object`){var n={};for(var r in e)e.hasOwnProperty(r)&&(r===`a`?n[r]=e[r]:n[r]=EC(e[r]));e=n}return mC(e,t)};function Ffe(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e==`string`&&(e=tpe(e)),pC(e)==`object`&&(AC(e.r)&&AC(e.g)&&AC(e.b)?(t=Ife(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)===`%`?`prgb`:`rgb`):AC(e.h)&&AC(e.s)&&AC(e.v)?(r=EC(e.s),i=EC(e.v),t=Rfe(e.h,r,i),o=!0,s=`hsv`):AC(e.h)&&AC(e.s)&&AC(e.l)&&(r=EC(e.s),a=EC(e.l),t=Lfe(e.h,r,a),o=!0,s=`hsl`),e.hasOwnProperty(`a`)&&(n=e.a)),n=xC(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function Ife(e,t,n){return{r:SC(e,255)*255,g:SC(t,255)*255,b:SC(n,255)*255}}function hC(e,t,n){e=SC(e,255),t=SC(t,255),n=SC(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=(r+i)/2;if(r==i)a=o=0;else{var c=r-i;switch(o=s>.5?c/(2-r-i):c/(r+i),r){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4;break}a/=6}return{h:a,s:o,l:s}}function Lfe(e,t,n){var r,i,a;e=SC(e,360),t=SC(t,100),n=SC(n,100);function o(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(t===0)r=i=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=o(c,s,e+1/3),i=o(c,s,e),a=o(c,s,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function gC(e,t,n){e=SC(e,255),t=SC(t,255),n=SC(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=r,c=r-i;if(o=r===0?0:c/r,r==i)a=0;else{switch(r){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4;break}a/=6}return{h:a,s:o,v:s}}function Rfe(e,t,n){e=SC(e,360)*6,t=SC(t,100),n=SC(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),o=n*(1-i*t),s=n*(1-(1-i)*t),c=r%6,l=[n,o,a,a,s,n][c],u=[s,n,n,o,a,a][c],d=[a,a,s,n,n,o][c];return{r:l*255,g:u*255,b:d*255}}function _C(e,t,n,r){var i=[TC(Math.round(e).toString(16)),TC(Math.round(t).toString(16)),TC(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(``)}function zfe(e,t,n,r,i){var a=[TC(Math.round(e).toString(16)),TC(Math.round(t).toString(16)),TC(Math.round(n).toString(16)),TC(DC(r))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join(``)}function vC(e,t,n,r){return[TC(DC(r)),TC(Math.round(e).toString(16)),TC(Math.round(t).toString(16)),TC(Math.round(n).toString(16))].join(``)}mC.equals=function(e,t){return!e||!t?!1:mC(e).toRgbString()==mC(t).toRgbString()},mC.random=function(){return mC.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Bfe(e,t){t=t===0?0:t||10;var n=mC(e).toHsl();return n.s-=t/100,n.s=CC(n.s),mC(n)}function Vfe(e,t){t=t===0?0:t||10;var n=mC(e).toHsl();return n.s+=t/100,n.s=CC(n.s),mC(n)}function Hfe(e){return mC(e).desaturate(100)}function Ufe(e,t){t=t===0?0:t||10;var n=mC(e).toHsl();return n.l+=t/100,n.l=CC(n.l),mC(n)}function Wfe(e,t){t=t===0?0:t||10;var n=mC(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),mC(n)}function Gfe(e,t){t=t===0?0:t||10;var n=mC(e).toHsl();return n.l-=t/100,n.l=CC(n.l),mC(n)}function Kfe(e,t){var n=mC(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,mC(n)}function qfe(e){var t=mC(e).toHsl();return t.h=(t.h+180)%360,mC(t)}function yC(e,t){if(isNaN(t)||t<=0)throw Error(`Argument to polyad must be a positive number`);for(var n=mC(e).toHsl(),r=[mC(e)],i=360/t,a=1;a<t;a++)r.push(mC({h:(n.h+a*i)%360,s:n.s,l:n.l}));return r}function Jfe(e){var t=mC(e).toHsl(),n=t.h;return[mC(e),mC({h:(n+72)%360,s:t.s,l:t.l}),mC({h:(n+216)%360,s:t.s,l:t.l})]}function Yfe(e,t,n){t||=6,n||=30;var r=mC(e).toHsl(),i=360/n,a=[mC(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(mC(r));return a}function Xfe(e,t){t||=6;for(var n=mC(e).toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(mC({h:r,s:i,v:a})),a=(a+s)%1;return o}mC.mix=function(e,t,n){n=n===0?0:n||50;var r=mC(e).toRgb(),i=mC(t).toRgb(),a=n/100;return mC({r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a})},mC.readability=function(e,t){var n=mC(e),r=mC(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},mC.isReadable=function(e,t,n){var r=mC.readability(e,t),i,a=!1;switch(i=npe(n),i.level+i.size){case`AAsmall`:case`AAAlarge`:a=r>=4.5;break;case`AAlarge`:a=r>=3;break;case`AAAsmall`:a=r>=7;break}return a},mC.mostReadable=function(e,t,n){var r=null,i=0,a,o,s,c;n||={},o=n.includeFallbackColors,s=n.level,c=n.size;for(var l=0;l<t.length;l++)a=mC.readability(e,t[l]),a>i&&(i=a,r=mC(t[l]));return mC.isReadable(e,r,{level:s,size:c})||!o?r:(n.includeFallbackColors=!1,mC.mostReadable(e,[`#fff`,`#000`],n))};var bC=mC.names={aliceblue:`f0f8ff`,antiquewhite:`faebd7`,aqua:`0ff`,aquamarine:`7fffd4`,azure:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`000`,blanchedalmond:`ffebcd`,blue:`00f`,blueviolet:`8a2be2`,brown:`a52a2a`,burlywood:`deb887`,burntsienna:`ea7e5d`,cadetblue:`5f9ea0`,chartreuse:`7fff00`,chocolate:`d2691e`,coral:`ff7f50`,cornflowerblue:`6495ed`,cornsilk:`fff8dc`,crimson:`dc143c`,cyan:`0ff`,darkblue:`00008b`,darkcyan:`008b8b`,darkgoldenrod:`b8860b`,darkgray:`a9a9a9`,darkgreen:`006400`,darkgrey:`a9a9a9`,darkkhaki:`bdb76b`,darkmagenta:`8b008b`,darkolivegreen:`556b2f`,darkorange:`ff8c00`,darkorchid:`9932cc`,darkred:`8b0000`,darksalmon:`e9967a`,darkseagreen:`8fbc8f`,darkslateblue:`483d8b`,darkslategray:`2f4f4f`,darkslategrey:`2f4f4f`,darkturquoise:`00ced1`,darkviolet:`9400d3`,deeppink:`ff1493`,deepskyblue:`00bfff`,dimgray:`696969`,dimgrey:`696969`,dodgerblue:`1e90ff`,firebrick:`b22222`,floralwhite:`fffaf0`,forestgreen:`228b22`,fuchsia:`f0f`,gainsboro:`dcdcdc`,ghostwhite:`f8f8ff`,gold:`ffd700`,goldenrod:`daa520`,gray:`808080`,green:`008000`,greenyellow:`adff2f`,grey:`808080`,honeydew:`f0fff0`,hotpink:`ff69b4`,indianred:`cd5c5c`,indigo:`4b0082`,ivory:`fffff0`,khaki:`f0e68c`,lavender:`e6e6fa`,lavenderblush:`fff0f5`,lawngreen:`7cfc00`,lemonchiffon:`fffacd`,lightblue:`add8e6`,lightcoral:`f08080`,lightcyan:`e0ffff`,lightgoldenrodyellow:`fafad2`,lightgray:`d3d3d3`,lightgreen:`90ee90`,lightgrey:`d3d3d3`,lightpink:`ffb6c1`,lightsalmon:`ffa07a`,lightseagreen:`20b2aa`,lightskyblue:`87cefa`,lightslategray:`789`,lightslategrey:`789`,lightsteelblue:`b0c4de`,lightyellow:`ffffe0`,lime:`0f0`,limegreen:`32cd32`,linen:`faf0e6`,magenta:`f0f`,maroon:`800000`,mediumaquamarine:`66cdaa`,mediumblue:`0000cd`,mediumorchid:`ba55d3`,mediumpurple:`9370db`,mediumseagreen:`3cb371`,mediumslateblue:`7b68ee`,mediumspringgreen:`00fa9a`,mediumturquoise:`48d1cc`,mediumvioletred:`c71585`,midnightblue:`191970`,mintcream:`f5fffa`,mistyrose:`ffe4e1`,moccasin:`ffe4b5`,navajowhite:`ffdead`,navy:`000080`,oldlace:`fdf5e6`,olive:`808000`,olivedrab:`6b8e23`,orange:`ffa500`,orangered:`ff4500`,orchid:`da70d6`,palegoldenrod:`eee8aa`,palegreen:`98fb98`,paleturquoise:`afeeee`,palevioletred:`db7093`,papayawhip:`ffefd5`,peachpuff:`ffdab9`,peru:`cd853f`,pink:`ffc0cb`,plum:`dda0dd`,powderblue:`b0e0e6`,purple:`800080`,rebeccapurple:`663399`,red:`f00`,rosybrown:`bc8f8f`,royalblue:`4169e1`,saddlebrown:`8b4513`,salmon:`fa8072`,sandybrown:`f4a460`,seagreen:`2e8b57`,seashell:`fff5ee`,sienna:`a0522d`,silver:`c0c0c0`,skyblue:`87ceeb`,slateblue:`6a5acd`,slategray:`708090`,slategrey:`708090`,snow:`fffafa`,springgreen:`00ff7f`,steelblue:`4682b4`,tan:`d2b48c`,teal:`008080`,thistle:`d8bfd8`,tomato:`ff6347`,turquoise:`40e0d0`,violet:`ee82ee`,wheat:`f5deb3`,white:`fff`,whitesmoke:`f5f5f5`,yellow:`ff0`,yellowgreen:`9acd32`},Zfe=mC.hexNames=Qfe(bC);function Qfe(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function xC(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function SC(e,t){$fe(e)&&(e=`100%`);var n=epe(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function CC(e){return Math.min(1,Math.max(0,e))}function wC(e){return parseInt(e,16)}function $fe(e){return typeof e==`string`&&e.indexOf(`.`)!=-1&&parseFloat(e)===1}function epe(e){return typeof e==`string`&&e.indexOf(`%`)!=-1}function TC(e){return e.length==1?`0`+e:``+e}function EC(e){return e<=1&&(e=e*100+`%`),e}function DC(e){return Math.round(parseFloat(e)*255).toString(16)}function OC(e){return wC(e)/255}var kC=function(){var e=`(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)`,t=`[\\s|\\(]+(`+e+`)[,|\\s]+(`+e+`)[,|\\s]+(`+e+`)\\s*\\)?`,n=`[\\s|\\(]+(`+e+`)[,|\\s]+(`+e+`)[,|\\s]+(`+e+`)[,|\\s]+(`+e+`)\\s*\\)?`;return{CSS_UNIT:new RegExp(e),rgb:RegExp(`rgb`+t),rgba:RegExp(`rgba`+n),hsl:RegExp(`hsl`+t),hsla:RegExp(`hsla`+n),hsv:RegExp(`hsv`+t),hsva:RegExp(`hsva`+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function AC(e){return!!kC.CSS_UNIT.exec(e)}function tpe(e){e=e.replace(Nfe,``).replace(Pfe,``).toLowerCase();var t=!1;if(bC[e])e=bC[e],t=!0;else if(e==`transparent`)return{r:0,g:0,b:0,a:0,format:`name`};var n;return(n=kC.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=kC.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=kC.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=kC.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=kC.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=kC.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=kC.hex8.exec(e))?{r:wC(n[1]),g:wC(n[2]),b:wC(n[3]),a:OC(n[4]),format:t?`name`:`hex8`}:(n=kC.hex6.exec(e))?{r:wC(n[1]),g:wC(n[2]),b:wC(n[3]),format:t?`name`:`hex`}:(n=kC.hex4.exec(e))?{r:wC(n[1]+``+n[1]),g:wC(n[2]+``+n[2]),b:wC(n[3]+``+n[3]),a:OC(n[4]+``+n[4]),format:t?`name`:`hex8`}:(n=kC.hex3.exec(e))?{r:wC(n[1]+``+n[1]),g:wC(n[2]+``+n[2]),b:wC(n[3]+``+n[3]),format:t?`name`:`hex`}:!1}function npe(e){var t,n;return e||={level:`AA`,size:`small`},t=(e.level||`AA`).toUpperCase(),n=(e.size||`small`).toLowerCase(),t!==`AA`&&t!==`AAA`&&(t=`AA`),n!==`small`&&n!==`large`&&(n=`small`),{level:t,size:n}}var jC=z({name:`TTag`,props:{closable:Boolean,color:{type:String,default:``},content:{type:[String,Function]},default:{type:[String,Function]},disabled:Boolean,icon:{type:Function,default:void 0},maxWidth:{type:[String,Number]},shape:{type:String,default:`square`,validator:function(e){return!e||[`square`,`round`,`mark`].includes(e)}},size:{type:String,default:`medium`,validator:function(e){return!e||[`small`,`medium`,`large`].includes(e)}},theme:{type:String,default:`default`,validator:function(e){return!e||[`default`,`primary`,`warning`,`danger`,`success`].includes(e)}},title:{type:String,default:``},variant:{type:String,default:`dark`,validator:function(e){return!e||[`dark`,`light`,`outline`,`light-outline`].includes(e)}},onClick:Function,onClose:Function},setup:function(e){var t=Rp(`tag`).globalConfig,n=Q(`tag`),r=Tm({CloseIcon:Og}).CloseIcon,i=pm(),a=hm(),o=ym().SIZE,s=Yi().vnode,c=U(function(){return[`${n.value}`,`${n.value}--${e.theme}`,`${n.value}--${e.variant}`,G(G(G(G({},`${n.value}--ellipsis`,e.maxWidth),`${n.value}--close`,e.closable),`${n.value}--disabled`,e.disabled),o.value[e.size],e.size!==`medium`),e.shape!==`square`&&`${n.value}--${e.shape}`]}),l=U(function(){return d()}),u=U(function(){return e.maxWidth?{maxWidth:isNaN(Number(e.maxWidth))?String(e.maxWidth):`${e.maxWidth}px`}:{}}),d=function(){var t=e.color,n=e.variant;if(!t)return{};var r={color:mC(t).getLuminance()>.5?`black`:`white`};return(n===`outline`||n===`light-outline`)&&(r.borderColor=t),n!==`outline`&&(r.backgroundColor=n===`dark`?t:function(){var e=mC(t).toRgb();return`rgba(${e.r}, ${e.g}, ${e.b}, 0.1)`}()),n!==`dark`&&(r.color=t),r},f=function(t){var n;e.disabled||(n=e.onClick)==null||n.call(e,{e:t})},p=function(){if(!e.closable)return null;var i=`${n.value}__icon-close`;return t.value.closeIcon?sa(t.value.closeIcon(sa),{class:i}):V(r,{onClick:function(t){var n,r=t.e;r&&r.stopPropagation(),(n=e.onClose)==null||n.call(e,{e:r})},class:i},null)},m=function(e){var t=s.props||{};if(Reflect.has(t,`title`))return t.title||void 0;if(e)return e};return function(){var t=p(),r=a(`default`,`content`),o=i(`icon`),s=m(_m(r));return V(`div`,{class:c.value,style:l.value,onClick:f},[o,V(`span`,{class:e.maxWidth?`${n.value}--text`:void 0,style:u.value,title:s},[r]),!e.disabled&&t])}}}),rpe={checked:{type:Boolean,default:void 0},modelValue:{type:Boolean,default:void 0},defaultChecked:Boolean,checkedProps:{type:Object},content:{type:[String,Number,Array,Function]},default:{type:[String,Function]},disabled:Boolean,size:{type:String,default:`medium`,validator:function(e){return!e||[`small`,`medium`,`large`].includes(e)}},uncheckedProps:{type:Object},value:{type:[String,Number]},onChange:Function,onClick:Function};function MC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function NC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?MC(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ipe(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var PC=z({name:`TCheckTag`,props:rpe,setup:function(e){var t=Q(`tag`),n=ym().SIZE,r=hm(),i=Wt(e),a=i.checked,o=i.modelValue,s=Y(Rm(a,o,e.defaultChecked,e.onChange,`checked`),2),c=s[0],l=s[1],u=U(function(){return[`${t.value}`,`${t.value}--check`,n.value[e.size],G(G({},`${t.value}--checked`,c.value),`${t.value}--disabled`,e.disabled)]}),d=U(function(){var t=NC({theme:`primary`},e.checkedProps),n=NC({},e.uncheckedProps);return c.value?t:n}),f=function(t){var n=t.e;if(!e.disabled){var r;(r=e.onClick)==null||r.call(e,{e:n}),l(!c.value,{e:n,value:e.value})}},p=function(t){var n=t.code||t.key?.trim();(em.test(n)||tm.test(n))&&(t.preventDefault(),l(!c.value,{e:t,value:e.value}))},m=function(e){e.currentTarget.addEventListener(`keydown`,p)},h=function(e){e.currentTarget.removeEventListener(`keydown`,p)};return function(){var t=r(`default`,`content`);return V(jC,H({class:u.value,disabled:e.disabled,tabindex:e.disabled?void 0:`0`,onFocus:m,onBlur:h},d.value,{onClick:f}),ipe(t)?t:{default:function(){return[t]}})}}}),ape={checkedProps:{type:Object},multiple:Boolean,options:{type:Array},uncheckedProps:{type:Object},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:function(){return[]}},onChange:Function};function ope(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var spe=z({name:`TCheckTagGroup`,props:ape,setup:function(e,t){var n=Wt(e),r=n.value,i=n.modelValue,a=n.options,o=Q(`check-tag-group`),s=U(function(){return[o.value]}),c=Y(Rm(r,i,e.defaultValue,e.onChange),2),l=c[0],u=c[1],d=function(t,n){var r=n.value;if(t)e.multiple?u(l.value.concat(r),{e:n.e,type:`check`,value:r}):u([r],{e:n.e,type:`check`,value:r});else{var i=[];e.multiple&&(i=l.value.filter(function(e){return e!==r})),u(i,{e:n.e,type:`uncheck`,value:r})}},f=function(e){return t.slots.option?t.slots.option(e):t.slots.label?t.slots.label(e):e.label?q(e.label)?e.label(sa):e.label:e.content&&q(e.content)?e.content(sa):e.default&&q(e.default)?e.default(sa):e.value};return function(){return V(`div`,{class:s.value},[(a.value||[]).map(function(t){var n;return V(PC,{key:t.value,value:t.value,checkedProps:e.checkedProps,uncheckedProps:e.uncheckedProps,checked:l.value.includes(t.value),onChange:d,disabled:t.disabled,size:t.size,"data-value":t.value},ope(n=f(t))?n:{default:function(){return[n]}})})])}}}),FC=X(jC),IC=X(PC),cpe=X(spe);function LC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function RC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?LC(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lpe(e){var t=pm(),n=Q(),r=Wt(e),i=r.value,a=r.modelValue,o=r.onRemove,s=r.max,c=r.minCollapsedNum,l=r.size,u=r.tagProps,d=r.getDragProps,f=Y(Rm(i,a,e.defaultValue||[],e.onChange),2),p=f[0],m=f[1],h=U(function(){return p.value||[]}),g=I(),_=Sm(),v=Mm(),y=function(e){var t,n=W(h.value),r=Y(n.splice(e.index,1),1)[0];m(n,RC(RC({trigger:`tag-remove`},e),{},{item:r})),(t=o.value)==null||t.call(o,RC(RC({},e),{},{item:r,trigger:`tag-remove`,value:n}))};return{tagValue:h,clearAll:function(e){m([],{trigger:`clear`,e:e.e})},onClose:y,onInnerEnter:function(t,n){var r,i=t?String(t).trim():``,a=s&&h.value.length>=s.value,o=h.value;!a&&i&&(o=h.value.concat(String(i)),m(o,{trigger:`enter`,index:o.length-1,item:i,e:n.e})),e==null||(r=e.onEnter)==null||r.call(e,o,RC(RC({},n),{},{inputValue:t}))},onInputBackspaceKeyUp:function(e){h.value.length&&(g.value=e)},onInputBackspaceKeyDown:function(e,t){var n=t.e;if(!(!h.value.length||n.key===`Process`||v.value)){var r=/(Backspace|NumpadDelete)/i.test(n.code)||/(Backspace|NumpadDelete)/i.test(n.key);if(!e&&r){var i,a=h.value.length-1,s=h.value[a],c=`backspace`,l=h.value.slice(0,-1);m(l,{e:n,index:a,item:s,trigger:c}),(i=o.value)==null||i.call(o,{e:n,index:a,item:s,trigger:c,value:l})}g.value=e}},renderLabel:function(e){var r=e.displayNode,i=e.label,a=c.value?h.value.slice(0,c.value):h.value,o=r?[r]:a.map(function(e,n){var r=t(`tag`,{params:{value:e}}),i=Jm(u.value,{onClose:function(e){return y({e:e.e,index:n})}});return V(FC,H({key:n,size:l.value,disabled:_.value,closable:!v.value&&!_.value},d.value?.call(d,n,e),i.value),{default:function(){return[r??e]}})})||[];if([null,void 0,``].includes(i)||o.unshift(V(`div`,{class:`${n.value}-tag-input__prefix`,key:`label`},[i])),a.length!==h.value.length){var s=h.value.length-a.length,f=t(`collapsedItems`,{params:{value:h.value,count:h.value.length-c.value,collapsedTags:h.value.slice(c.value,h.value.length),collapsedSelectedItems:h.value.slice(c.value,h.value.length),onClose:y}});o.push(f??V(FC,H({key:`more`,size:l.value},u.value),{default:function(){return[`+`,s]}}))}return o}}}function zC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function BC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zC(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var upe=function(){return{NAME_CLASS:Q(`tag-input`),CLEAR_CLASS:Q(`tag-input__suffix-clear`),BREAK_LINE_CLASS:Q(`tag-input--break-line`),WITH_SUFFIX_ICON_CLASS:Q(`tag-input__with-suffix-icon`)}},VC=X(z({name:`TTagInput`,props:kfe,setup:function(e,t){var n=t.slots,r=pm(),i=upe(),a=i.NAME_CLASS,o=i.CLEAR_CLASS,s=i.BREAK_LINE_CLASS,c=i.WITH_SUFFIX_ICON_CLASS,l=Tm({CloseCircleFilledIcon:Tg}).CloseCircleFilledIcon,u=Sm(),d=Mm(),f=Wt(e),p=f.inputValue,m=f.inputProps,h=f.borderless,g=f.size,_=f.tips,v=f.status,y=f.suffix,b=f.autoWidth,x=f.onPaste,S=Y(bm(p,e.defaultInputValue,e.onInputChange,`inputValue`),2),C=S[0],w=S[1],T=Wt(e),E=T.excessTagsDisplayType,D=T.clearable,O=T.placeholder,k=jfe({readonly:d.value,disabled:u.value,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave}),A=k.isHover,j=k.addHover,M=k.cancelHover,ee=I(!1),N=Rp().classPrefix,P=I(!1),F=I(0),te=I(0),ne=Afe(BC(BC({},e),{},{sortOnDraggable:e.dragSort,onDragOverCheck:{x:!0,targetClassNameRegExp:RegExp(`^${N.value}-tag`)}})).getDragProps,re=Mfe(e),ie=re.scrollToRight,ae=re.onWheel,oe=re.scrollToRightOnEnter,se=re.scrollToLeftOnLeave,ce=re.tagInputRef,le=re.isScrollable,ue=lpe(Dt(BC(BC({},Wt(e)),{},{getDragProps:ne}))),de=ue.tagValue,fe=ue.onInnerEnter,pe=ue.onInputBackspaceKeyUp,me=ue.onInputBackspaceKeyDown,he=ue.clearAll,ge=ue.renderLabel,_e=ue.onClose,ve=U(function(){return E.value===`break-line`}),ye=U(function(){var t=!(K(de.value)&&de.value.length);return[a.value,G(G(G(G({},s.value,ve.value),`${N.value}-is-empty`,t),`${N.value}-tag-input--with-tag`,!t),`${N.value}-tag-input--drag-sort`,e.dragSort&&!d.value&&!u.value)]}),be=U(function(){var e;return(e=de.value)!=null&&e.length?``:O.value}),xe=U(function(){return!!(!d.value&&!u.value&&D.value&&A.value&&(de.value?.length||C.value))}),Se=function(e,t){var n,r;(n=t.e)==null||(r=n.preventDefault)==null||r.call(n),w(``,{e:t.e,trigger:`enter`}),!ee.value&&fe(e,t),dn(function(){ie(),ee.value=!1})},Ce=function(e,t){var n,r;ee.value=!0,(n=m.value)==null||(r=n.onCompositionstart)==null||r.call(n,e,t)},we=function(e,t){var n,r;ee.value=!1,(n=m.value)==null||(r=n.onCompositionend)==null||r.call(n,e,t)},Te=function(t){var n,r;u.value||(P.value=!0,(n=ce.value)==null||n.focus(),(r=e.onClick)==null||r.call(e,t))},Ee=function(t){var n;he(t),w(``,{e:t.e,trigger:`clear`}),(n=e.onClear)==null||n.call(e,t)},De=function(e){j(e),oe()},Oe=function(e){M(e),se()},ke=function(t,n){var r;P.value||(P.value=!0,(r=e.onFocus)==null||r.call(e,de.value,{e:n.e,inputValue:t}))},Ae=function(t,n){var r;P.value=!1,w(``,{e:n.e,trigger:`blur`}),(r=e.onBlur)==null||r.call(e,de.value,{e:n.e,inputValue:t})},je=function(e,t){w(e,BC(BC({},t),{},{trigger:`input`}))};R(function(){return le.value},function(t){if(e.excessTagsDisplayType===`scroll`){var n=`${N.value}-input__prefix`,r=ce.value.$el.querySelector(`.${n}`);t?r.classList.add(`${n}--scrollable`):r.classList.remove(`${n}--scrollable`)}});var Me=function(e,t,n){var r=ce.value?.$el;if(r){var i=r.querySelector(`.${N.value}-input`);if(i){var a=r.querySelector(e),o=a?a.getBoundingClientRect().width:0;o!==n.value&&(n.value=o,o?i.style.setProperty(t,`${Math.ceil(o+8)}px`):i.style.removeProperty(t))}}},Ne=function(){dn(function(){ve.value&&(y.value&&Me(`.${N.value}-input__suffix:not(.${N.value}-input__suffix-icon)`,`--${N.value}-tag-input-suffix-width`,F),Me(`.${N.value}-input__suffix-icon`,`--${N.value}-tag-input-suffix-icon-width`,te))})};return R(function(){return[E.value,y.value,xe.value,N.value,ve.value]},function(){Ne()}),function(){var e,t=xe.value?V(l,{class:o.value,onClick:Ee},null):r(`suffixIcon`),i=r(`prefixIcon`),a=c.value;t&&!ye.value.includes(a)&&ye.value.push(a);var s=r(`valueDisplay`,{params:{value:de.value,onClose:function(e){return _e({index:e})}}}),f=r(`label`,{silent:!0}),p=d.value||m.value?.readonly,S=Jm(m.value,{onWheel:ae,onChange:je,onPaste:x.value,onEnter:Se,onKeyup:pe,onKeydown:me,onMouseenter:De,onMouseleave:Oe,onFocus:ke,onBlur:Ae,onClick:Te,onCompositionstart:Ce,onCompositionend:we});return V(WS,H({ref:ce,borderless:h.value,readonly:p,showInput:!p||!de.value||!((e=de.value)!=null&&e.length),value:C.value,autoWidth:!0,size:g.value,disabled:u.value,label:function(){return ge({displayNode:s,label:f})},class:ye.value,tips:_.value,status:v.value,placeholder:be.value,suffix:y.value,suffixIcon:function(){return t},prefixIcon:function(){return i},keepWrapperWidth:!b.value},S.value),{suffix:n.suffix})}}})),dpe=[`tips`];function HC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function UC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?HC(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var fpe={label:`label`,key:`key`,children:`children`};function ppe(e,t,n){var r=Wt(e).inputValue,i=Q(),a=I(),o=I(e.autofocus),s=Y(bm(r,e.defaultInputValue,e.onInputChange,`inputValue`),2),c=s[0],l=s[1],u=Sm(),d=Mm(),f=U(function(){return UC(UC({},fpe),e.keys)}),p=U(function(){return e.value instanceof Array?e.value.map(function(e){return Do(e)?e[f.value.label]:e}):Do(e.value)?[e.value[f.value.label]]:[e.value]}),m=U(function(){return!p.value||!p.value.length?e.placeholder:``}),h=function(t,n){var r;if(n.trigger===`tag-remove`){var i;(i=n.e)==null||i.stopPropagation()}(r=e.onTagChange)==null||r.call(e,t,n)},g=function(e,t){t.trigger===`enter`||t.trigger===`blur`||l(e,{trigger:t.trigger,e:t.e})},_=function(t,r){var i,a=n.value?.getOverlayState();a!=null&&a.hover||(o.value=!1,(i=e.onBlur)==null||i.call(e,e.value,UC(UC({},r),{},{tagInputValue:t})))},v=function(t,r){var i,a=n.value?.getOverlayState();if(!(o.value||a!=null&&a.hover)){o.value=!0;var s=UC(UC({},r),{},{tagInputValue:t});(i=e.onFocus)==null||i.call(e,e.value,s)}},y=function(t,n){var r,i=UC(UC({},n),{},{tagInputValue:t});(r=e.onEnter)==null||r.call(e,e.value,i)};return{tags:p,tPlaceholder:m,tagInputRef:a,isMultipleFocus:o,multipleInputValue:c,renderSelectMultiple:function(n){var r=Jm(UC(UC({},n.commonInputProps),{},{tagProps:e.tagProps,label:e.label,autoWidth:e.autoWidth,readonly:d.value,placeholder:m.value,minCollapsedNum:e.minCollapsedNum,collapsedItems:e.collapsedItems,tag:e.tag,value:p.value,valueDisplay:e.valueDisplay,inputValue:n.popupVisible&&n.allowInput?c.value:``,inputProps:UC({readonly:!e.allowInput||d.value,inputClass:G({},`${i.value}-input--focused`,n.popupVisible),autocomplete:`off`},e.inputProps),suffixIcon:!u.value&&e.loading?function(){return V(uh,{loading:!0,size:`small`},null)}:e.suffixIcon},e.tagInputProps),{onInputChange:g,onChange:h,onClear:n.onInnerClear,onBlur:_,onEnter:y,onFocus:v}),o=t.slots;o.tips;var s=Ym(o,dpe);return V(VC,H({ref:a},r.value),s)}}}function WC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function GC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?WC(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var mpe=1e3,hpe=0;function KC(e){var t=Wt(e),n=t.popupProps,r=t.autoWidth,i=I(!1),a=Sm(),o=Mm(),s=function(e,t){var r=t.scrollHeight>t.offsetHeight?hpe:0,i=t.offsetWidth+r>=e.offsetWidth?t.offsetWidth:e.offsetWidth,a={};return n.value&&so(n.value.overlayInnerStyle)===`object`&&!n.value.overlayInnerStyle.width&&(a=n.value.overlayInnerStyle),GC({width:`${Math.min(i,mpe)}px`},a)},c=function(t,n){if(!(K(a.value)&&a.value.every(Boolean)||Gd(a.value)&&a.value)&&!o.value){var r=n.trigger===`trigger-element-click`&&e.allowInput?!0:t;if(e.popupVisible!==r){var s;i.value=r,(s=e.onPopupVisibleChange)==null||s.call(e,r,n)}}},l=function(e,t){return GC({width:`${Math.max(e.offsetWidth,t.offsetWidth)}px`},n.value?.overlayInnerStyle)};return{tOverlayInnerStyle:U(function(){var e={},t=n.value?.overlayInnerStyle||{};return e=q(t)||Do(t)&&t.width?t:r.value?l:s,e}),innerPopupVisible:i,onInnerPopupVisibleChange:c}}var gpe=[`tips`];function qC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function JC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qC(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var _pe=[`status`,`clearable`,`disabled`,`label`,`placeholder`,`readonly`,`prefixIcon`,`suffix`,`suffixIcon`,`onPaste`,`onMouseenter`,`onMouseleave`,`size`,`autofocus`],vpe={label:`label`,value:`value`,children:`children`};function ype(e,t){var n=JC(JC({},vpe),t);return Do(e)?e[n.label]:e}function bpe(e,t,n){var r=Wt(e),i=r.value,a=r.keys,o=r.inputValue,s=Q(),c=I(e.autofocus),l=I(),u=Y(bm(o,e.defaultInputValue??``,e.onInputChange,`inputValue`),2),d=u[0],f=u[1],p=pm(),m=Sm(),h=Mm(),g=U(function(){return JC(JC({},Rf(e,_pe)),{},{disabled:m.value,readonly:h.value})}),_=function(t){var n,r;t==null||(n=t.e)==null||n.stopPropagation(),(r=e.onClear)==null||r.call(e,t),f(``,{trigger:`clear`})},v=function(t,n){e.allowInput&&f(t,JC(JC({},n),{},{trigger:n.trigger||`input`}))},y=function(r){var o=p(`valueDisplay`),u=r&&e.allowInput?d.value:ype(i.value,a.value),f=b(o,r),y=JC(JC({},g.value),{},{value:x(o,u,r),label:f.length?function(){return f}:void 0,autoWidth:e.autoWidth,readonly:!e.allowInput||h.value,placeholder:S(o),suffixIcon:!m.value&&e.loading?function(){return V(uh,{loading:!0,size:`small`},null)}:e.suffixIcon,showClearIconOnEmpty:!!(e.clearable&&(d.value||u)&&!m.value&&!h.value),autocomplete:`off`},e.inputProps),C=t.slots;C.tips;var w=Ym(C,gpe),T=r?[`${s.value}-input--focused`,`${s.value}-is-focused`,y?.inputClass]:y?.inputClass,E=Jm(y,{onChange:v,onClear:_,onEnter:function(t,n){var r;(r=e.onEnter)==null||r.call(e,i.value,JC(JC({},n),{},{inputValue:t}))},onFocus:function(t,r){var a,o=n.value?.getOverlayState();c.value||o!=null&&o.hover||(c.value=!0,(a=e.onFocus)==null||a.call(e,i.value,JC(JC({},r),{},{inputValue:t})))},onBlur:function(t,r){var a,o=n.value?.getOverlayState();c.value=!1,!(o!=null&&o.hover)&&((a=e.onBlur)==null||a.call(e,i.value,JC(JC({},r),{},{inputValue:t})))}});return V(WS,H({ref:l,style:t.attrs?.style},E.value,{inputClass:T}),w)},b=function(t,n){var r=p(`label`);if(!r&&!t)return[];if(t){var a;if(!i.value||(a=e.valueDisplayOptions)!=null&&a.useInputDisplay&&n||n&&e.allowInput)return[r]}return[r,t]},x=function(t,n,r){if(t){var i,a;if(r&&e.allowInput)return n;if(!((i=e.valueDisplayOptions)!=null&&i.useInputDisplay)||(a=e.valueDisplayOptions)!=null&&a.useInputDisplay&&!r)return}return n},S=function(t){if(t){var n,r;if(!i.value||e.allowInput&&e.popupVisible)return e.placeholder;if(!((n=e.valueDisplayOptions)!=null&&n.usePlaceholder)||(r=e.valueDisplayOptions)!=null&&r.usePlaceholder&&i.value)return``}return e.placeholder};return{inputRef:l,isSingleFocus:c,commonInputProps:g,singleInputValue:d,onInnerClear:_,renderSelectSingle:y}}function YC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function XC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?YC(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var xpe=function(){return{NAME_CLASS:Q(`select-input`),BASE_CLASS_BORDERLESS:Q(`select-input--borderless`),BASE_CLASS_MULTIPLE:Q(`select-input--multiple`),BASE_CLASS_POPUP_VISIBLE:Q(`select-input--popup-visible`),BASE_CLASS_EMPTY:Q(`select-input--empty`)}},ZC=X(z({name:`TSelectInput`,props:XC(XC({},Ofe),{},{valueDisplayOptions:{type:Object}}),setup:function(e,t){var n=xpe(),r=n.NAME_CLASS,i=n.BASE_CLASS_BORDERLESS,a=n.BASE_CLASS_MULTIPLE,o=n.BASE_CLASS_POPUP_VISIBLE,s=n.BASE_CLASS_EMPTY,c=Q(),l=pm(),u=I(),d=I(),f=Wt(e),p=f.multiple,m=f.value,h=f.popupVisible,g=f.borderless,_=f.popupProps,v=f.panel,y=f.allowInput,b=f.status,x=KC(e),S=x.tOverlayInnerStyle,C=x.innerPopupVisible,w=x.onInnerPopupVisibleChange,T=bpe(e,t,d),E=T.isSingleFocus,D=T.commonInputProps,O=T.onInnerClear,k=T.renderSelectSingle,A=ppe(e,t,d),j=A.isMultipleFocus,M=A.tagInputRef,ee=A.renderSelectMultiple,N=U(function(){return e.multiple?j.value:E.value}),P=U(function(){return[`${r.value}`,G(G(G(G({},a.value,p.value),i.value,g.value),o.value,h.value??C.value),s.value,m.value instanceof Array?!m.value.length:!m.value)]}),F=function(n){var r=n.code||n.key?.trim();if(/(ArrowDown|ArrowUp)/.test(r)&&!h.value){var i,a=XC(XC({},t),{},{trigger:`trigger-element-focus`});(i=e.onPopupVisibleChange)==null||i.call(e,!0,a)}};R([N],function(e){var t=Y(e,1)[0];h.value||(t?u.value.addEventListener(`keydown`,F):u.value.removeEventListener(`keydown`,F))}),mr(function(){!h.value&&N&&u.value.addEventListener(`keydown`,F)}),_r(function(){var e;(e=u.value)==null||e.removeEventListener(`keydown`,F)});var te=function(t){var n,r,i;(n=t.e)==null||n.stopPropagation(),!(t.e.target.tabIndex>=0)&&e.multiple&&((r=M.value)==null||(i=r.focus)==null||i.call(r))};return t.expose({popupRef:d,allowInput:y}),function(){var e={visible:h.value??C.value},n=V(zx,H({ref:d,trigger:_.value?.trigger||`click`,placement:`bottom-left`},e,{content:v.value,hideEmptyPopup:!0},XC(XC({onVisibleChange:w,onOverlayClick:te},_.value),{},{overlayInnerStyle:S.value})),XC({default:function(){return[p.value?ee({commonInputProps:D.value,onInnerClear:O,popupVisible:e.visible,allowInput:y.value}):k(e.visible)]}},XC(XC({},t.slots),{},{content:t.slots.panel}))),r=l(`tips`),i=[`${c.value}-input__tips`,`${c.value}-tips`,`${c.value}-is-${b.value}`];return V(`div`,{ref:u,class:P.value},[n,r&&V(`div`,{class:i},[r])])}}})),Spe={checkAll:Boolean,content:{type:[String,Function]},default:{type:[String,Function]},disabled:Boolean,label:{type:String,default:``},title:{type:String,default:``},value:{type:[String,Number,Boolean,BigInt]}},Cpe={checkAll:Boolean,checked:{type:Boolean,default:void 0},modelValue:{type:Boolean,default:void 0},defaultChecked:Boolean,default:{type:[String,Function]},disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:{type:[String,Function]},lazyLoad:Boolean,name:{type:String,default:``},readonly:{type:Boolean,default:void 0},title:{type:String,default:``},value:{type:[String,Number,Boolean]},onChange:Function},QC=Symbol(`CheckboxGroupProvide`);function wpe(e,t){var n=I(),r=I(!0),i=function(){t.value&&(r.value=!1,n.value=zp(e.value,null,function(){r.value=!0},0))};return mr(i),R([t,e],i),_r(function(){t.value&&n.value.unobserve(e.value)}),{showCheckbox:r}}function Tpe(e){var t=function(t){(am.test(t.key)||am.test(t.code))&&(t.preventDefault(),!t.currentTarget.querySelector(`input`).disabled&&e(t))};return{onCheckboxFocus:function(e){e.currentTarget.addEventListener(`keydown`,t)},onCheckboxBlur:function(e){e.currentTarget.removeEventListener(`keydown`,t)}}}function $C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ew(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?$C(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$C(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var tw=z({name:`TCheckbox`,props:ew(ew({},Cpe),{},{needRipple:Boolean,stopLabelTrigger:Boolean,index:Number,data:Object}),setup:function(e){var t=I();e.needRipple&&Im(t);var n=ym().STATUS,r=Wt(e),i=r.checked,a=r.modelValue,o=r.lazyLoad,s=Y(Rm(i,a,e.defaultChecked,e.onChange,`checked`),2),c=s[0],l=s[1],u=wn(QC,void 0),d=I();R(function(){return[e.name,u?.value.name].join(`_`)},function(){var t=e.name||u?.value.name;t&&(d.value=t)},{immediate:!0});var f=I(!1),p=function(){var t=e.value;return e.checkAll?u?.value.isCheckAll:u!=null&&u.value?u.value.checkedValues.includes(t):c.value};R(function(){var e;return[c.value,u?.value.isCheckAll,u==null||(e=u.value.checkedValues)==null?void 0:e.join(`,`)]},function(){f.value=p()},{immediate:!0});var m=Sm({beforeDisabled:U(function(){return!e.checkAll&&!f.value&&u!=null&&u.value.maxExceeded?!0:null}),afterDisabled:U(function(){return u?.value.disabled})}),h=Mm({afterReadonly:U(function(){return u?.value.readonly})}),g=I(!1);R(function(){return[e.checkAll,e.indeterminate,u?.value.indeterminate]},function(){g.value=e.checkAll?u?.value.indeterminate:e.indeterminate},{immediate:!0});var _=Q(`checkbox`),v=I({});R([f,m,g],function(){v.value=[`${_.value}`,G(G(G({},n.value.checked,f.value),n.value.disabled,m.value),n.value.indeterminate,g.value)]},{immediate:!0});var y=function(t){if(!h.value){var n=!f.value;l(n,{e:t}),u!=null&&u.value.handleCheckboxChange&&u.value.onCheckedChange({checked:n,checkAll:e.checkAll,e:t,option:e})}},b=hm(),x=function(t){e.stopLabelTrigger&&t.preventDefault()},S=wpe(t,o).showCheckbox,C=Tpe(y),w=C.onCheckboxFocus,T=C.onCheckboxBlur;return function(){var n=Rd(e.title)&&e.title?e.title:null;return V(`label`,{ref:t,class:v.value,tabindex:m.value?void 0:`0`,onFocus:w,onBlur:T,onClick:x,title:n},[S.value?[V(`input`,{type:`checkbox`,tabindex:`-1`,class:`${_.value}__former`,disabled:m.value,readonly:h.value,indeterminate:g.value,name:d.value,value:e.value?e.value:void 0,checked:f.value,onChange:y,onClick:function(e){return e.stopPropagation()},key:`input`},null),V(`span`,{class:`${_.value}__input`,key:`input-span`,onClick:e.stopLabelTrigger&&y},null),V(`span`,{class:`${_.value}__label`,key:`label`},[b(`default`,`label`)])]:null])}}}),Epe=z({name:`TCheckboxGroup`,props:{disabled:{type:Boolean,default:void 0},lazyLoad:Boolean,max:{type:Number,default:void 0},name:{type:String,default:``},options:{type:Array},readonly:{type:Boolean,default:void 0},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:function(){return[]}},onChange:Function},setup:function(e){var t=Q(`checkbox-group`),n=pm(),r=Array.isArray,i=Wt(e),a=i.value,o=i.modelValue,s=Y(Rm(a,o,e.defaultValue,e.onChange),2),c=s[0],l=s[1],u=U(function(){return r(c.value)?c.value:[]}),d=I([]),f=U(function(){var e=d.value.map(function(e){return e.value});return Hd(u.value,e).length}),p=U(function(){var e=d.value.filter(function(e){return!e.disabled&&!e.readonly&&!e.checkAll}).map(function(e){return e.value});return Hd(e,u.value).length===e.length}),m=U(function(){return!p.value&&f.value<d.value.length&&f.value!==0}),h=U(function(){return!sf(e.max)&&u.value.length===e.max});Tn(function(){if(!e.options)return[];d.value=e.options.map(function(e){return Do(e)?e:{label:String(e),value:e}})});var g=function(){for(var e=new Set,t=new Set,n=0,r=d.value.length;n<r;n++){var i=d.value[n];if(!i.checkAll){if(i.disabled)if(u.value.includes(i.value))t.add(i.value);else continue;if(i.readonly)if(u.value.includes(i.value))t.add(i.value);else continue;if(e.add(i.value),h.value)break}}return{checkAllVal:W(e),uncheckAllVal:W(t)}},_=function(e,t){var n=g(),r=n.checkAllVal,i=n.uncheckAllVal;l(e?r:i,{e:t.e,type:e?`check`:`uncheck`,current:void 0,option:void 0})},v=function(e){var t=e.option.value,n=W(u.value);if(e.checked)n.push(t);else{var r=n.indexOf(t);n.splice(r,1)}l(n,{e:e.e,current:e.option.value,option:e.option,type:e.checked?`check`:`uncheck`})},y=function(e){var t=e.checked,n=e.checkAll,r=e.e;n?_(t,{e:r}):v(e)},b=om(),x=function(){var e=b(`Checkbox`),t=[];return e?.forEach(function(e){var n=e.props;n&&((n[`check-all`]===``||n[`check-all`]===!0)&&(n.checkAll=!0),t.push(n))}),t};return Cn(QC,U(function(){return{name:e.name,isCheckAll:p.value,checkedValues:u.value,maxExceeded:h.value,disabled:e.disabled,readonly:e.readonly,indeterminate:m.value,handleCheckboxChange:v,onCheckedChange:y}})),function(){var r,i=null;if((r=e.options)!=null&&r.length)i=d.value?.map(function(t,n){return V(tw,H({key:`${t.value||``}${n}`,lazyLoad:e.lazyLoad},t,{index:n,checked:u.value.includes(t.value),data:t}),null)});else{var a=n(`default`);d.value=x(),i=a}return V(`div`,{class:t.value,role:`group`,"aria-label":`checkbox-group`},[i])}}}),nw=X(tw),rw=X(Epe);function Dpe(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=Ope(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function Ope(e,t){if(e){if(typeof e==`string`)return iw(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iw(e,t):void 0}}function iw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var aw=function(e,t,n,r){return t?n.value.filter(function(t){return t.value===e})[0]?.label||e?.toString():r.value.get(e)?.label||e?.toString()},kpe=function(e,t,n,r){var i=[],a=Dpe(e),o;try{for(a.s();!(o=a.n()).done;){var s=o.value,c=aw(s,t,n,r);c&&i.push(c)}}catch(e){a.e(e)}finally{a.f()}return i},ow=function(e,t){var n=iu(e),r=n.indexOf(t);return r<0?n.push(t):n.splice(r,1),{value:n,isCheck:r<0}},sw=Symbol(`selectProvide`);function cw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?cw(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ape(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var uw=z({name:`TOption`,props:lw(lw({},Spe),{},{createAble:Boolean,multiple:Boolean,index:Number,rowIndex:Number,trs:Map,scrollType:String,isVirtual:Boolean,bufferSize:Number,checkAll:Boolean,onRowMounted:Function}),emits:[`row-mounted`],setup:function(e,t){var n=wn(sw),r=Sm(),i=Yi().vnode,a=U(function(){return n.value.max!==0&&n.value.max<=n.value.selectValue.length}),o=U(function(){return r.value||e.multiple&&a.value&&!m.value&&!n.value.isCheckAll}),s=hm(),c=Q(`select`),l=ym(),u=l.STATUS,d=l.SIZE,f=I(),p=I(!1),m=U(function(){return n.value.isCheckAll&&!e.disabled?!0:e.multiple?n.value.selectValue.includes(e.value):n.value.selectValue===e.value}),h=U(function(){return e.checkAll?n.value.indeterminate:!1}),g=U(function(){return[`${c.value}-option`,[d.value[n.value.size]],G(G(G({},u.value.disabled,o.value),u.value.selected,m.value),`${c.value}-option__hover`,(p.value||n.value.hoverIndex===e.index)&&!o.value)]}),_=U(function(){return e.label||e.value}),v=function(t){if(!(e.disabled||o.value)){if(e.multiple){y(!m.value,{e:t}),t.preventDefault();return}if(e.createAble){var r,i;if((r=(i=n.value).handleCreate)==null||r.call(i,e.value),n.value.multiple){n.value.handleValueChange([].concat(W(n.value.selectValue),[e.value]),{selectedOptions:n.value.getSelectedOptions(),trigger:`check`,e:t});return}}var a=n.value.getSelectedOptions(e.value);n.value.handleValueChange(e.value,{option:a?.[0],selectedOptions:a,trigger:`check`,e:t}),n.value.handlePopupVisibleChange(!1,{e:t}),n.value.emitBlur(t)}},y=function(t,r){if(e.checkAll){n.value.onCheckAllChange(t);return}var i=ow(n.value.selectValue,e.value),a=n.value.getSelectedOptions(i.value),o=n.value.getSelectedOptions(e.value)?.[0];n.value.handleValueChange(i.value,{option:o,selectedOptions:a,trigger:t?`check`:`uncheck`,e:r.e})},b=function(){var t=i.props||{};return Reflect.has(t,`title`)?e.title:typeof _.value==`string`?_.value:null};return mr(function(){var n=e.trs,r=e.rowIndex;e.isVirtual&&(n.set(r,f.value),t.emit(`row-mounted`))}),_r(function(){if(e.isVirtual){var t=e.trs,n=e.rowIndex;t.delete(n)}}),Im(f),function(){var t=s(`default`,`content`)||_.value;return V(`li`,{ref:f,class:g.value,title:b(),onMouseenter:function(){return p.value=!0},onMouseleave:function(){return p.value=!1},onClick:v},[n&&e.multiple?V(nw,{checked:m.value,disabled:o.value,onChange:y,indeterminate:h.value},Ape(t)?t:{default:function(){return[t]}}):V(`span`,null,[t])])}}}),dw=z({name:`TOptionGroup`,props:{divider:{type:Boolean,default:!0},label:{type:String}},setup:function(e){var t=wn(sw),n=Q(`select-option-group`),r=ym().SIZE,i=pm(),a=U(function(){return[n.value,r.value[t.value.size],G({},`${n.value}__divider`,e.divider)]});return function(){return V(`li`,{class:a.value},[(e.label??!1)&&V(`div`,{class:`${n.value}__header`},[e.label]),i(`default`)])}}}),fw={autoWidth:Boolean,autofocus:Boolean,borderless:Boolean,clearable:Boolean,collapsedItems:{type:Function},creatable:Boolean,disabled:{type:Boolean,default:void 0},empty:{type:[String,Function]},filter:{type:Function},filterable:Boolean,inputProps:{type:Object},inputValue:{type:[String,Number],default:void 0},defaultInputValue:{type:[String,Number]},keys:{type:Object},label:{type:[String,Function]},loading:Boolean,loadingText:{type:[String,Function]},max:{type:Number,default:0},minCollapsedNum:{type:Number,default:0},multiple:Boolean,options:{type:Array},panelBottomContent:{type:[String,Function]},panelTopContent:{type:[String,Function]},placeholder:{type:String,default:void 0},popupProps:{type:Object},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:Boolean,prefixIcon:{type:Function},readonly:{type:Boolean,default:void 0},reserveKeyword:Boolean,scroll:{type:Object},selectInputProps:{type:Object},showArrow:{type:Boolean,default:!0},size:{type:String,default:`medium`,validator:function(e){return!e||[`small`,`medium`,`large`].includes(e)}},status:{type:String,default:`default`,validator:function(e){return!e||[`default`,`success`,`warning`,`error`].includes(e)}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tagInputProps:{type:Object},tagProps:{type:Object},tips:{type:[String,Function]},value:{type:[String,Number,Boolean,BigInt,Object,Array],default:void 0},modelValue:{type:[String,Number,Boolean,BigInt,Object,Array],default:void 0},defaultValue:{type:[String,Number,Boolean,BigInt,Object,Array],default:void 0},valueDisplay:{type:[String,Function]},valueType:{type:String,default:`value`,validator:function(e){return!e||[`value`,`object`].includes(e)}},onBlur:Function,onChange:Function,onClear:Function,onCreate:Function,onEnter:Function,onFocus:Function,onInputChange:Function,onPopupVisibleChange:Function,onRemove:Function,onSearch:Function};function jpe(e){var t=e.displayOptions,n=e.optionsList,r=e.innerPopupVisible,i=e.setInnerPopupVisible,a=e.selectPanelRef,o=e.isFilterable,s=e.isRemoteSearch,c=e.getSelectedOptions,l=e.setInnerValue,u=e.onCheckAllChange,d=e.innerValue,f=e.popupContentRef,p=e.multiple,m=e.max,h=e.isCheckAll,g=I(-1),_=I([]),v=I([]),y=Q();return R(r,function(e){e&&(g.value=-1,v.value=[],_.value=[])}),R(g,function(e){var t,n=((t=a.value)==null||(t=t.innerRef)==null||(t=t.querySelector(`.${y.value}-select-option`))==null?void 0:t.clientHeight)*e;f.value.scrollTo({top:n,behavior:`smooth`})}),{hoverIndex:g,handleKeyDown:function(e){var f,y,b=t.value.length,x=g.value;switch(e.code){case`ArrowUp`:e.preventDefault(),g.value===-1?x=0:g.value===0||g.value>t.value.length-1?x=b-1:x--,(f=n.value[x])!=null&&f.disabled&&x--,g.value=x;break;case`ArrowDown`:e.preventDefault(),g.value===-1||g.value>=b-1?x=0:x++,(y=n.value[x])!=null&&y.disabled&&x++,g.value=x;break;case`Enter`:if(g.value===-1)break;var S=a.value.isVirtual&&o.value&&v.value.length?v.value:s.value?n.value:_.value;if(S.length||(S=n.value),!r.value){i(!0,{e});break}if(p){if(g.value===-1)return;if(S[g.value].checkAll){u(!h.value);return}var C=S[g.value]?.value;if(!C)return;var w=ow(d.value,C);if(m>0&&w.value.length>m)return;var T=c(w.value);l(w.value,{option:T.find(function(e){return e.value==C}),selectedOptions:T,trigger:w.isCheck?`check`:`uncheck`,e}),_.value=[]}else{var E=c(S[g.value].value);l(S[g.value].value,{option:E?.[0],selectedOptions:c(S[g.value].value),trigger:`check`,e}),i(!1,{e})}break;case`Escape`:if(r.value){var D;e==null||(D=e.stopImmediatePropagation)==null||D.call(e)}i(!1,{e});break}},virtualFilteredOptions:v,filteredOptions:_}}var Mpe=function(e){var t=U(function(){return e.scroll?.type===`virtual`&&e.options.value?.length>(e.scroll?.threshold||100)}),n=e.scroll?.type===`virtual`?sse({container:e.popupContentRef,data:e.options,fixedHeight:e.scroll?.isFixedRowHeight||!1,lineHeight:e.scroll?.rowHeight||28,bufferSize:e.scroll?.bufferSize||20,threshold:e.scroll?.threshold||100}):{},r=n.trs,i=r===void 0?null:r,a=n.visibleData,o=a===void 0?null:a,s=n.handleScroll,c=s===void 0?null:s,l=n.scrollHeight,u=l===void 0?null:l,d=n.translateY,f=d===void 0?null:d,p=n.handleRowMounted,m=p===void 0?null:p,h=-1,g=function(e){if(t.value){var n=e.target.scrollTop;Math.abs(h-n)>5?(c(),h=n):h=-1}};return mr(function(){var t;(t=e.popupContentRef.value)==null||t.addEventListener(`scroll`,g)}),_r(function(){var t;(t=e.popupContentRef.value)==null||t.removeEventListener(`scroll`,g)}),{trs:i,scrollHeight:u,translateY:f,visibleData:o,handleRowMounted:m,isVirtual:t,cursorStyle:U(function(){return{position:`absolute`,width:`1px`,height:`1px`,transition:`transform 0.2s`,transform:`translate(0, ${u.value}px)`,"-ms-transform":`translate(0, ${u.value}px)`,"-moz-transform":`translate(0, ${u.value}px)`,"-webkit-transform":`translate(0, ${u.value}px)`}}),panelStyle:U(function(){return{transform:`translate(0, ${f.value}px)`,"-ms-transform":`translate(0, ${f.value}px)`,"-moz-transform":`translate(0, ${f.value}px)`,"-webkit-transform":`translate(0, ${f.value}px)`}})}};function pw(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=Npe(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function Npe(e,t){if(e){if(typeof e==`string`)return mw(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mw(e,t):void 0}}function mw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?hw(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ppe=function(e,t,n,r){var i=om(),a=I([]),o=U(function(){var n=0,r=e.options?.map(function(e){var r=function(e){var r=t.value,i=r.value,a=r.label,o=r.disabled,s=gw(gw({},e),{},{index:n,label:J(e,a),value:J(e,i),disabled:J(e,o)||!1});return n++,s};return e.children?gw(gw({},e),{},{children:e.children.map(function(e){return r(e)})}):r(e)})||[],a=i(`Option`),o=i(`OptionGroup`);if(K(o)){var s=pw(o),c;try{for(s.s();!(c=s.n()).done;){var l=c.value,u=gw(gw({group:l.props?.label},l.props),{},{children:[]}),d=i(`Option`,l.children);if(K(d)){var f=pw(d),p;try{for(f.s();!(p=f.n()).done;){var m=p.value;u.children.push(gw(gw({},m.props),{},{slots:m.children,index:n})),n++}}catch(e){f.e(e)}finally{f.f()}r.push(u)}}}catch(e){s.e(e)}finally{s.f()}}if(K(a)){var h=pw(a),g;try{for(h.s();!(g=h.n()).done;){var _=g.value;r.push(gw(gw({},_.props),{},{slots:_.children,index:n})),n++}}catch(e){h.e(e)}finally{h.f()}}return r}),s=U(function(){var e=[],t=function(n){var r=pw(n),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;a.children?t(a.children):e.push(a)}}catch(e){r.e(e)}finally{r.f()}};return t(o.value),e}),c=U(function(){var e=new Map;return a.value.concat(s.value).forEach(function(t){e.set(t.value,t)}),e}),l=function(t){var r,i;return q(e.filter)?e.filter(`${n.value}`,t):((r=t.label)==null||(i=r.toLowerCase)==null?void 0:i.call(r).indexOf(`${n.value}`.toLowerCase()))>-1},u=I([]),d=function(e,t){return e.filter(function(e){if(!e.checkAll)return K(t)?t.includes(e.value):t===e.value})},f=U(function(){var e=d(s.value,r.value);u.value=Wf([].concat(W(e),W(u.value)),`value`);var t=d(u.value,r.value);return Wf([].concat(W(t),W(s.value)),`value`)});return{options:o,optionsMap:c,optionsList:s,optionsCache:a,displayOptions:U(function(){if(e.onSearch&&e.filterable||!n.value||!(e.filterable||q(e.filter)))return o.value;var t,r=[];if(o.value.forEach(function(e){e.children&&r.push(gw(gw({},e),{},{children:e.children.filter(l)})),e?.checkAll===!0&&(t=e),l(e)&&r.push(e)}),!q(e.filter)){var i=r.filter(function(e){return e.label===n.value}),a=r.filter(function(e){return e.label!==n.value});r=i.concat(a)}return r.length&&t?[t].concat(W(r)):r}),filterMethods:l,searchDisplayOptions:f}};function Fpe(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var Ipe=z({name:`TSelectPanel`,props:{inputValue:fw.inputValue,panelTopContent:fw.panelTopContent,panelBottomContent:fw.panelBottomContent,empty:fw.empty,creatable:fw.creatable,loading:fw.loading,loadingText:fw.loadingText,multiple:fw.multiple,filterable:fw.filterable,filter:fw.filter,scroll:fw.scroll,keys:fw.keys},setup:function(e,t){var n=t.expose,r=Q(`select`),i=pm(),a=mm(),o=Rp(`select`),s=o.t,c=o.globalConfig,l=wn(sw),u=I(null),d=U(function(){return e.keys}),f=U(function(){return l.value.popupContentRef.value}),p=U(function(){return e.creatable&&e.filterable&&e.inputValue}),m=U(function(){return l.value.displayOptions}),h=Mpe({scroll:e.scroll,popupContentRef:f,options:m}),g=h.trs,_=h.visibleData,v=h.handleRowMounted,y=h.isVirtual,b=h.panelStyle,x=h.cursorStyle,S=U(function(){return!m.value.length}),C=function(){return V(`ul`,{class:[`${r.value}__create-option`,`${r.value}__list`]},[V(uw,{value:e.inputValue,label:`${e.inputValue}`,createAble:!0,class:`${r.value}__create-option--special`},null)])},w=function(t){return V(`ul`,{class:`${r.value}__list`},[t.map(function(t,n){if(t.children){var r;return V(dw,{label:t.group,divider:t.divider},Fpe(r=w(t.children))?r:{default:function(){return[r]}})}var i=[`index`,`$index`,`className`,`tagName`],a=d.value||{},o=[a.value,a.label,a.disabled].includes(`content`);return V(uw,H(Sf(t,i.concat(o?`content`:[])),y.value?{rowIndex:t.$index,trs:g,scrollType:e.scroll?.type,isVirtual:y.value,bufferSize:e.scroll?.bufferSize,key:`${t.$index||``}_${n}_${t.value}`}:{key:`${n}_${t.value}`},{index:n,multiple:e.multiple,onRowMounted:v}),t.slots)})])},T=U(function(){return{small:`s`,medium:`m`,large:`l`}[l.value.size]});n({innerRef:u,visibleData:_,isVirtual:y,displayOptions:m});var E=function(t,n){return V(`div`,{ref:u,class:[`${r.value}__dropdown-inner`,`${r.value}__dropdown-inner--size-${T.value}`],style:n},[p.value&&C(),e.loading&&a(`loadingText`,{defaultNode:V(`div`,{class:`${r.value}__loading-tips`},[s(c.value.loadingText)])}),!e.loading&&S.value&&!p.value&&V(`div`,{class:`${r.value}__empty`},[i(`empty`)||s(c.value.empty)]),!S.value&&w(t)])};return function(){return y.value?V(bi,null,[i(`panelTopContent`),V(`div`,null,[V(`div`,{style:x.value},null),E(_.value,b.value)]),i(`panelBottomContent`)]):V(bi,null,[i(`panelTopContent`),E(m.value),i(`panelBottomContent`)])}}}),Lpe=[`overlayClassName`];function Rpe(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=zpe(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function zpe(e,t){if(e){if(typeof e==`string`)return _w(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_w(e,t):void 0}}function _w(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?vw(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var bw=X(z({name:`TSelect`,props:yw(yw({},fw),{},{valueDisplayOptions:{type:Object}}),setup:function(e,t){var n=t.slots,r=Q(),i=Sm(),a=Mm(),o=pm(),s=Q(`select`),c=Rp(`select`),l=c.globalConfig,u=c.t,d=Wt(e),f=d.popupVisible,p=d.inputValue,m=d.modelValue,h=d.value,g=Y(bm(p,e.defaultInputValue,e.onInputChange,`inputValue`),2),_=g[0],v=g[1],y=Y(Rm(h,m,e.defaultValue,e.onChange),2),b=y[0],x=y[1],S=I(null),C=I(null),w=U(function(){return{label:e.keys?.label||`label`,value:e.keys?.value||`value`,disabled:e.keys?.disabled||`disabled`}}),T=U(function(){return e.valueType===`object`}),E=U(function(){return b.value===void 0?e.multiple?[]:void 0:T.value?e.multiple?b.value.map(function(e){return e[w.value.value]}):b.value[w.value.value]:b.value}),D=Ppe(e,w,_,E),O=D.optionsMap,k=D.optionsList,A=D.optionsCache,j=D.displayOptions,M=D.filterMethods,ee=D.searchDisplayOptions,N=function(t,n){if(T.value){var r=w.value,i=r.value,a=r.label,o=function(e){if(e!==void 0){var t=O.value.get(e);return G(G({},i,J(t,`value`)),a,J(t,`label`))}};t=e.multiple?t.map(function(e){return o(e)}):o(t)}if(t!==b.value&&(e.multiple&&!e.reserveKeyword&&n.trigger==`check`&&v(``),x(t,yw({selectedOptions:de(t)},n)),e.multiple&&n.trigger===`uncheck`&&n.option)){var s;(s=e.onRemove)==null||s.call(e,{value:J(n.option,w.value.value),data:n.option,e:n.e})}},P=Y(bm(f,!1,function(t,n){var r;(r=e.onPopupVisibleChange)==null||r.call(e,t,n)},`popupVisible`),2),F=P[0],te=P[1],ne=U(function(){return(!e.multiple&&F.value&&aw(E.value,oe.value,Ae,O)||e.placeholder)??u(l.value.placeholder)}),re=U(function(){return e.multiple?kpe(E.value,oe.value,Ae,O):aw(E.value,oe.value,Ae,O)}),ie=U(function(){if(!e.multiple)return yw(yw({},O.value.get(E.value)),{},{value:E.value,label:re.value});var t=K(E.value)?E.value.map(function(e){return O.value.get(e)}):[],n={value:t,onClose:e.multiple?function(e){return se(e)}:function(){}};return e.minCollapsedNum&&K(E.value)?yw(yw({},n),{},{displayValue:Array.isArray(t)?t.slice(0,e.minCollapsedNum):[]}):n}),ae=U(function(){return!!(e.filterable||l.value.filterable||q(e.filter))}),oe=U(function(){return!!((e.filterable||l.value.filterable)&&q(e.onSearch))}),se=function(t,n){var r,i=n||{},a=i.e,o=i.trigger,s=o===void 0?`tag-remove`:o;a&&a.stopPropagation();var c=iu(E.value),l=c[t];if(c.splice(t,1),s===`backspace`){for(var u,d=-1,f=t,p=fe();f>=0;){var m;if(!((m=p[f])!=null&&m.disabled)){d=f;break}--f}if(d<0)return;var h=p[d],g=p.filter(function(e){return e.value!==h.value});N(g.map(function(e){return e.value}),{selectedOptions:g,trigger:s,e:a}),(u=e.onRemove)==null||u.call(e,{value:h.value,data:h,e:a});return}s!==`clear`&&N(c,{selectedOptions:de(c),trigger:s,e:a}),(r=e.onRemove)==null||r.call(e,{value:l,data:O.value.get(l),e:a})},ce=function(){var t;_.value&&((t=e.onCreate)==null||t.call(e,_.value),F.value||v(``))},le=U(function(){return C.value?.popupRef.getOverlay()}),ue=U(function(){return k.value.filter(function(e){return!e.disabled&&!(e[`check-all`]||e[`check-all`]===``)&&!e.checkAll&&M(e)})}),de=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:E.value;return k.value.filter(function(t){if(!t.checkAll)return K(e)?e.includes(t.value):e===t.value})},fe=function(){var e=[],t=T.value?b.value:E.value;return(K(t)?t:[t]).forEach(function(t){var n=O.value.get(T.value?t.value:t);n?e.push(n):e.push(T.value?t:{value:t})}),e},pe=function(t){if(e.multiple){var n=w.value.value,r=E.value.filter(function(e){return k.value.find(function(t){return t.value===e&&t.disabled})}),i=ue.value.map(function(e){return e.value}),a=T.value?b.value.map(function(e){return J(e,n)}):b.value,o=W(t?new Set([].concat(W(a),W(i),W(r))):r);N(o,{selectedOptions:de(o),trigger:t?`check`:`clear`})}},me=U(function(){return be.value!==0&&be.value===(oe.value?ee.value.length:ue.value.length)}),he=jpe({displayOptions:j,optionsList:k,innerPopupVisible:F,setInnerPopupVisible:te,selectPanelRef:S,isFilterable:ae,isRemoteSearch:oe,getSelectedOptions:de,setInnerValue:N,onCheckAllChange:pe,isCheckAll:me,innerValue:E,popupContentRef:le,multiple:e.multiple,max:e.max}),ge=he.hoverIndex,_e=he.virtualFilteredOptions,ve=he.handleKeyDown,ye=he.filteredOptions,be=U(function(){var e=ue.value.map(function(e){return e.value});return Hd(E.value,e).length}),xe=U(function(){return!me.value&&be.value!==0});Cn(sw,U(function(){return{max:e.max,multiple:e.multiple,hoverIndex:ge.value,selectValue:E.value,reserveKeyword:e.reserveKeyword,handleValueChange:N,handlerInputChange:v,handlePopupVisibleChange:te,handleCreate:ce,size:e.size,popupContentRef:le,indeterminate:xe.value,isCheckAll:me.value,onCheckAllChange:pe,getSelectedOptions:de,displayOptions:j.value,emitBlur:Te}}));var Se=function(){!e.multiple&&K(b.value)&&x(void 0,{selectedOptions:[],trigger:`default`}),e.multiple&&!K(b.value)&&x([],{selectedOptions:[],trigger:`default`})},Ce=md(function(t,n){var r,i=n.e;(r=e.onSearch)==null||r.call(e,`${t}`,{e:i})},300),we=function(e,t){e&&!F.value&&te(!0,{e:t.e}),v(e),Ce(`${e}`,{e:t.e}),dn(function(){_e.value=S.value?.visibleData,ye.value=S.value?.displayOptions})},Te=function(t){var n;(n=e.onBlur)==null||n.call(e,{e:t,value:E.value})},Ee=function(e,t){te(e,t),e&&t.trigger===`trigger-element-click`&&v(``)},De=function(){var t=ly(Ey.mark(function t(n){var r,i,a;return Ey.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.popupProps,!e.loading){t.next=1;break}return t.abrupt(`return`);case 1:a==null||(r=a[`on-scroll-to-bottom`])==null||r.call(a,n),a==null||(i=a.onScrollToBottom)==null||i.call(a,n);case 2:case`end`:return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),Oe=function(t){if(e.multiple){var n=[],r=Rpe(t||[]),i;try{for(r.s();!(i=r.n()).done;){var a=i.value,o=O.value.get(a);o&&n.push(o)}}catch(e){r.e(e)}finally{r.f()}A.value=Array.from(new Set([].concat(n,W(A.value))))}else{var s=O.value.get(t);s&&(A.value=Array.from(new Set([s].concat(W(A.value)))))}};R(b,function(e){Se(),dn(function(){Oe(e)})},{immediate:!0}),R(function(){return e.multiple},function(){Se()});var ke=function(e){var t;if(S.value){var n=(t=S.value)==null||(t=t.innerRef)==null?void 0:t.querySelector(`.${r.value}-is-selected`);dn(function(){if(n&&e){var t=getComputedStyle(n).paddingBottom,r=getComputedStyle(e).marginBottom,i=parseInt(t,10)+parseInt(r,10);e.scrollTop=n.offsetTop-e.offsetTop-(e.clientHeight-n.clientHeight)+i}})}},Ae=U(function(){return oe.value?ee.value:fe()}),je=function(){return o(`valueDisplay`,{params:ie.value})||function(){var t;if(!(!e.multiple||e.selectInputProps?.multiple===!1))return(t=E.value.slice(0,e.minCollapsedNum?e.minCollapsedNum:E.value.length)).map?.call(t,function(t,n){var r=Ae.value.find(function(e){if(e.value===t)return!0});return V(FC,H({key:n,closable:!(r!=null&&r.disabled)&&!i.value&&!a.value,size:e.size},e.tagProps,{onClose:function(t){var r,i,a=t.e;a.stopPropagation(),(r=e.tagProps)==null||(i=r.onClose)==null||i.call(r,{e:a}),se(n)}}),{default:function(){return[r?r.label??r?.value:t]}})})}()};return Cn(`updateScrollTop`,ke),function(){var t=e.popupProps||{},r=t.overlayClassName,c=Jm(Ym(t,Lpe),{onScrollToBottom:De}),l=Jm(e.selectInputProps,{onTagChange:function(e,t){se(t.index,t)},onPopupVisibleChange:Ee,onInputChange:we,onClear:function(t){var n,r=t.e;N(e.multiple?[]:void 0,{option:null,selectedOptions:de(e.multiple?[]:void 0),trigger:`clear`,e:r}),(n=e.onClear)==null||n.call(e,{e:r})},onEnter:function(t,n){var r=n.e;setTimeout(function(){var t;(t=e.onEnter)==null||t.call(e,{inputValue:`${_.value}`,e:r,value:E.value}),ce()},0)},onBlur:function(t,n){var r,i=n.e;(r=e.onBlur)==null||r.call(e,{e:i,value:E.value})},onFocus:function(t,n){var r,i=n.e;(r=e.onFocus)==null||r.call(e,{e:i,value:E.value})}});return V(`div`,{class:`${s.value}__wrap`},[V(ZC,H({autoWidth:e.autoWidth,readonly:a.value,borderless:e.borderless,multiple:e.multiple,clearable:e.clearable,loading:e.loading,status:e.status,tips:function(){return o(`tips`)},minCollapsedNum:e.minCollapsedNum,autofocus:e.autofocus,suffix:e.suffix,valueDisplayOptions:e.valueDisplayOptions},{ref:C,class:s.value,value:re.value,disabled:i.value,popupVisible:F.value,inputValue:F.value?_.value:``,placeholder:`${ne.value}`,allowInput:ae.value,"collapsed-items":e.collapsedItems,inputProps:yw(yw({size:e.size,autofocus:e.autofocus},e.inputProps),{},{onkeydown:ve}),tagInputProps:yw({size:e.size},e.tagInputProps),tagProps:yw({},e.tagProps),popupProps:yw({overlayClassName:[`${s.value}__dropdown`,r]},c.value),label:e.label,prefixIcon:e.prefixIcon,suffix:e.suffix,suffixIcon:function(){return e.suffixIcon||n.suffixIcon?o(`suffixIcon`):e.showArrow&&V(DS,{overlayClassName:`${s.value}__right-icon`,isActive:F.value},null)},valueDisplay:je},l.value),{label:n.label,prefixIcon:n.prefixIcon,suffix:n.suffix,panel:function(){return V(Ipe,H({ref:S},Rf(e,[`multiple`,`empty`,`loading`,`loadingText`,`filterable`,`creatable`,`panelTopContent`,`panelBottomContent`,`filter`,`scroll`,`keys`]),{inputValue:_.value}),n)},collapsedItems:n.collapsedItems})])}}})),xw=X(uw),Sw=X(dw),Cw=X(z({name:`TInputAdornment`,props:{append:{type:[String,Function]},prepend:{type:[String,Function]}},setup:function(e,t){var n=t.slots,r=Q(`input-adornment`),i=pm(),a=function(e,t,i){var a,o=Rd(i)||nf(i);return!n[t]&&Rd(i)&&!i?null:(a=n[t]?n[t](null).length===1&&typeof n[t](null)[0].children==`string`?V(`span`,{class:`${r.value}__text`},[n[t](null)]):n[t](null):q(i)?i(e):o?V(`span`,{class:`${r.value}__text`},[i]):i,a&&V(`span`,{class:`${r.value}__${t}`},[a]))};return function(){var t=a(sa,`prepend`,e.prepend),n=a(sa,`append`,e.append),o=i(`default`)||[null],s=[r.value,G(G({},`${r.value}--prepend`,t),`${r.value}--append`,n)];return!t&&!n?o[0]:V(`div`,{class:s},[t,o[0],n])}}})),ww={current:{type:Number,default:void 0},modelValue:{type:Number,default:void 0},defaultCurrent:{type:Number,default:1},disabled:Boolean,foldedMaxPageBtn:{type:Number,default:5},maxPageBtn:{type:Number,default:10},pageEllipsisMode:{type:String,default:`mid`,validator:function(e){return!e||[`mid`,`both-ends`].includes(e)}},pageSize:{type:Number,default:void 0},defaultPageSize:{type:Number,default:10},pageSizeOptions:{type:Array,default:function(){return[5,10,20,50]}},selectProps:{type:Object},showFirstAndLastPageBtn:Boolean,showJumper:Boolean,showPageNumber:{type:Boolean,default:!0},showPageSize:{type:Boolean,default:!0},showPreviousAndNextBtn:{type:Boolean,default:!0},size:{type:String,default:`medium`,validator:function(e){return!e||[`small`,`medium`].includes(e)}},theme:{type:String,default:`default`,validator:function(e){return!e||[`default`,`simple`].includes(e)}},total:{type:Number,default:0},totalContent:{type:[Boolean,Function],default:!0},onChange:Function,onCurrentChange:Function,onPageSizeChange:Function};function Tw(e,t,n){var r=I(!1),i=I(!1),a=U(function(){return Math.ceil((e.foldedMaxPageBtn-1)/2)}),o=U(function(){return Math.floor((e.foldedMaxPageBtn-1)/2)});return{prevMore:r,nextMore:i,curPageLeftCount:a,curPageRightCount:o,isPrevMoreShow:U(function(){return 2+a.value<n.value}),isNextMoreShow:U(function(){return t.value-1-o.value>n.value})}}function Ew(e,t,n,r){var i=ym(),a=i.SIZE,o=i.STATUS,s=U(function(){var t=Math.ceil(e.total/n.value);return t>0?t:1});return{pageCount:s,paginationClass:U(function(){return[`${r.value}`,a.value[e.size],G(G({},o.value.disabled,e.disabled),`${r.value}-ie`,Zm()<11),e.theme===`simple`?`${r.value}--simple`:``]}),totalClass:U(function(){return[`${r.value}__total`]}),sizerClass:U(function(){return[`${r.value}__select`]}),preBtnClass:U(function(){return[`${r.value}__btn`,`${r.value}__btn-prev`,G({},o.value.disabled,e.disabled||t.value===1)]}),nextBtnClass:U(function(){return[`${r.value}__btn`,`${r.value}__btn-next`,G({},o.value.disabled,e.disabled||t.value===s.value)]}),btnWrapClass:U(function(){return[`${r.value}__pager`]}),btnMoreClass:U(function(){return[`${r.value}__number`,`${r.value}__number--more`,G({},o.value.disabled,e.disabled)]}),jumperClass:U(function(){return[`${r.value}__jump`]}),jumperInputClass:U(function(){return[`${r.value}__input`]}),simpleClass:U(function(){return[`${r.value}__select`]}),getButtonClass:function(n){return[`${r.value}__number`,G(G({},o.value.disabled,e.disabled),o.value.current,t.value===n)]}}}var Dw=[`pageCount`],Ow=1,kw=z({name:`TPagination`,props:ww,setup:function(e){var t=Wt(e),n=t.modelValue,r=t.pageSize,i=t.current,a=pm(),o=Y(Rm(i,n,e.defaultCurrent,e.onCurrentChange,`current`),2),s=o[0],c=o[1],l=Y(bm(r,e.defaultPageSize,e.onPageSizeChange,`pageSize`),2),u=l[0],d=l[1],f=Rp(`pagination`),p=f.t,m=f.globalConfig,h=Q(`pagination`),g=Tm({PageFirstIcon:nle,PageLastIcon:ile,ChevronLeftIcon:fg,ChevronRightIcon:yg,ChevronLeftDoubleIcon:Qse,ChevronRightDoubleIcon:rce,EllipsisIcon:Jg}),_=g.PageFirstIcon,v=g.PageLastIcon,y=g.ChevronLeftIcon,b=g.ChevronRightIcon,x=g.ChevronLeftDoubleIcon,S=g.ChevronRightDoubleIcon,C=g.EllipsisIcon,w=Ew(e,s,u,h),T=w.pageCount,E=Ym(w,Dw),D=Tw(e,T,s),O=D.prevMore,k=D.isPrevMoreShow,A=D.curPageLeftCount,j=D.nextMore,M=D.isNextMoreShow,ee=D.curPageRightCount,N=I(s.value),P=I(),F=U(function(){return T.value>e.maxPageBtn}),te=U(function(){return e.pageSizeOptions.map(function(e){return Do(e)?e:{label:p(m.value.itemsPerPage,{size:e}),value:Number(e)}}).sort(function(e,t){return e.value-t.value})}),ne=U(function(){return e.pageEllipsisMode===`mid`}),re=U(function(){var t=[],n,r;if(F.value)if(k.value&&M.value)n=s.value-A.value,r=s.value+ee.value;else{var i=ne.value?2:1,a=ne.value?T.value-1:T.value;n=k.value?Math.min(s.value-1,T.value-e.foldedMaxPageBtn+1):i,r=M.value?Math.max(s.value+1,e.foldedMaxPageBtn):a}else n=1,r=T.value;for(var o=n;o<=r;o++)t.push(o);return t});R(function(){return s.value},function(e){return N.value=e});var ie=function(t,n){var r;if(!e.disabled){var i=t;t<Ow?i=Ow:t>T.value&&(i=T.value),n||={current:i,previous:s.value,pageSize:u.value},c(i,n),(r=e.onChange)==null||r.call(e,n)}},ae=function(t){({prevPage:function(){return ie(s.value-1)},nextPage:function(){return ie(s.value+1)},prevMorePage:function(){return ie(Math.max(2,s.value-e.foldedMaxPageBtn))},nextMorePage:function(){return ie(Math.min(s.value+e.foldedMaxPageBtn,T.value-1))}})[t]()},oe=function(t){if(!e.disabled){var n=Number(t),r=n>0?Math.max(Math.ceil(e.total/n),1):1,i=s.value,a=i>r;d(n,{current:a?r:i,previous:i,pageSize:n}),dn(function(){var t=s.value!==i,o=t?s.value:a?r:s.value,c={current:o,previous:i,pageSize:n};if(t||!a){var l;(l=e.onChange)==null||l.call(e,c)}else ie(o,c)})}},se=function(e){var t=Math.trunc(+e);if(!rf(t))return Math.min(Math.max(t,Ow),T.value)},ce=function(e){var t=se(e);t!==void 0&&(N.value=t,ie(t))},le=function(e){P.value=se(e),ce(e)},ue=function(e){if(se(e)===P.value){P.value=void 0;return}P.value=void 0,ce(e)};return function(){var t=e.total,n=e.pageSizeOptions,r=e.size,i=e.disabled,o=e.showPageSize;if(T.value<1)return null;var s=V(`div`,{class:E.jumperClass.value},[p(m.value.jumpTo),V(Cw,{append:`/ ${T.value} ${p(m.value.page)}`},{default:function(){return[V(fC,{class:E.jumperInputClass.value,modelValue:N.value,"onUpdate:modelValue":function(e){return N.value=e},onBlur:ue,onEnter:le,max:T.value,min:Ow,size:r,disabled:i,theme:`normal`,placeholder:``},null)]}})]);return V(`div`,{class:E.paginationClass.value},[a(`totalContent`,V(`div`,{class:E.totalClass.value},[p(m.value.total,t)])),o&&n.length>0&&V(bw,H({size:r,value:u,disabled:i,class:E.sizerClass.value,autoWidth:!0,onChange:oe,options:te.value},e.selectProps),null),e.showFirstAndLastPageBtn?V(`div`,{class:E.preBtnClass.value,onClick:function(){return ie(1)}},[V(_,null,null)]):null,e.showPreviousAndNextBtn?V(`div`,{class:E.preBtnClass.value,onClick:function(){return ae(`prevPage`)}},[V(y,null,null)]):null,e.showPageNumber&&e.theme==="default"?V(`ul`,{class:E.btnWrapClass.value},[F.value&&ne.value&&V(`li`,{class:E.getButtonClass(1),onClick:function(){return ie(Ow)}},[Ow]),F.value&&k.value&&ne.value?V(`li`,{class:E.btnMoreClass.value,onClick:function(){return ae(`prevMorePage`)},onMouseover:function(){return O.value=!0},onMouseout:function(){return O.value=!1}},[O.value?V(x,null,null):V(C,null,null)]):null,re.value.map(function(e){return V(`li`,{class:E.getButtonClass(e),key:e,onClick:function(){return ie(e)}},[e])}),F.value&&M.value&&ne.value?V(`li`,{class:E.btnMoreClass.value,onClick:function(){return ae(`nextMorePage`)},onMouseover:function(){return j.value=!0},onMouseout:function(){return j.value=!1}},[j.value?V(S,null,null):V(C,null,null)]):null,F.value&&ne.value?V(`li`,{class:E.getButtonClass(T.value),onClick:function(){return ie(T.value)}},[T.value]):null]):null,e.theme===`simple`&&s,e.showPreviousAndNextBtn?V(`div`,{class:E.nextBtnClass.value,onClick:function(){return ae(`nextPage`)}},[V(b,null,null)]):null,e.showFirstAndLastPageBtn?V(`div`,{class:E.nextBtnClass.value,onClick:function(){return ie(T.value)}},[V(v,null,null)]):null,e.theme==="default"&&e.showJumper&&s])}}}),Aw={disabled:{type:[Boolean,Object]},layout:{type:String,default:`horizontal`,validator:function(e){return!e||[`horizontal`,`vertical`].includes(e)}},showCurrent:{type:Boolean,default:!0},size:{type:String,default:`medium`,validator:function(e){return!e||[`small`,`medium`,`large`].includes(e)}},tips:{type:Object},variant:{type:String,default:`text`,validator:function(e){return!e||[`text`,`outline`].includes(e)}},onChange:Function};function jw(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var Mw=z({name:`TPaginationMini`,props:Aw,setup:function(e){var t=Q(`pagination-mini`),n=Tm({ChevronLeftIcon:fg,RoundIcon:gle,ChevronRightIcon:yg,ChevronUpIcon:Sg,ChevronDownIcon:sg}),r=n.ChevronLeftIcon,i=n.RoundIcon,a=n.ChevronRightIcon,o=n.ChevronUpIcon,s=n.ChevronDownIcon,c=U(function(){return Do(e.tips)?e.tips:e.tips===!0?{prev:`上一页`,current:`当前`,next:`下一页`}:{}}),l=U(function(){return Do(e.disabled)?e.disabled:e.disabled===!0?{prev:!0,current:!0,next:!0}:{prev:!1,current:!1,next:!1}}),u=function(e,t){return e?V(Gx,{content:e,showArrow:!1},jw(t)?t:{default:function(){return[t]}}):t};return function(){return V(`div`,{class:[t.value,G({},`${t.value}--outline`,e.variant===`outline`)]},[u(c.value.prev,V(mh,{variant:e.variant,size:e.size,shape:`square`,onClick:function(t){return e.onChange?.call(e,{e:t,trigger:`prev`})},icon:e.layout===`horizontal`?function(){return V(r,null,null)}:function(){return V(o,null,null)},class:`${t.value}__prev`,disabled:l.value.prev},null)),e.showCurrent&&u(c.value.current,V(mh,{variant:e.variant,size:e.size,shape:`square`,onClick:function(t){return e.onChange?.call(e,{e:t,trigger:`current`})},icon:function(){return V(i,null,null)},class:`${t.value}__current`,disabled:l.value.current},null)),u(c.value.next,V(mh,{variant:e.variant,size:e.size,shape:`square`,onClick:function(t){return e.onChange?.call(e,{e:t,trigger:`next`})},icon:e.layout===`horizontal`?function(){return V(a,null,null)}:function(){return V(s,null,null)},class:`${t.value}__next`,disabled:l.value.next},null))])}}}),Nw=X(kw),Pw=X(Mw),Fw={current:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},defaultCurrent:{type:[String,Number]},layout:{type:String,default:`horizontal`,validator:function(e){return!e||[`horizontal`,`vertical`].includes(e)}},options:{type:Array},readonly:{type:Boolean,default:void 0},separator:{type:String,default:`line`,validator:function(e){return!e||[`line`,`dashed`,`arrow`].includes(e)}},sequence:{type:String,default:`positive`,validator:function(e){return!e||[`positive`,`reverse`].includes(e)}},theme:{type:String,default:`default`,validator:function(e){return!e||[`default`,`dot`].includes(e)}},onChange:Function},Iw={content:{type:[String,Function],default:``},default:{type:[String,Function]},extra:{type:[String,Function]},icon:{type:[Boolean,Function],default:!0},status:{type:String,default:`default`,validator:function(e){return!e||[`default`,`process`,`finish`,`error`].includes(e)}},title:{type:[String,Function],default:``},value:{type:[String,Number]}};function Lw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Rw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Lw(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var zw=z({name:`TStepItem`,props:Rw(Rw({},Iw),{},{index:Number}),setup:function(e){var t=wn(`StepsState`,void 0),n=wn(`StepsProps`,void 0),r=Rp(`steps`).globalConfig,i=Tm({CheckIcon:ig,CloseIcon:Og}),a=i.CheckIcon,o=i.CloseIcon,s=U(function(){return e.status!==`process`&&!(n!=null&&n.readonly)}),c=function(n){if(s.value){var r=e.value===void 0?e.index:e.value;t.setCurrent(r,t.current,{e:n})}},l=Q(`steps-item`),u=U(function(){return G({},`${l.value}--${e.status}`,e.status)}),d=U(function(){return[l.value,u.value]}),f=U(function(){return[`${l.value}__icon`,u.value]}),p=pm(),m=hm(),h=function(){var t;if(n.theme==="default"){var i=``;switch(e.status){case`finish`:i=q(r.value.checkIcon)?r.value.checkIcon(sa):V(a,null,null);break;case`error`:i=q(r.value.errorIcon)?r.value.errorIcon(sa):V(o,null,null);break;default:i=String(e.index+1);break}t=V(`span`,{class:`${l.value}__icon--number`},[i])}return p(`icon`,t)};return function(){return V(`div`,{class:d.value},[V(`div`,{class:`${l.value}__inner ${s.value?`${l.value}--clickable`:``}`,onClick:c},[V(`div`,{class:f.value},[h()]),V(`div`,{class:`${l.value}__content`},[V(`div`,{class:`${l.value}__title`},[p(`title`)]),V(`div`,{class:`${l.value}__description`},[m(`default`,`content`)]),V(`div`,{class:`${l.value}__extra`},[p(`extra`)])])])])}}}),Bw=X(z({name:`TSteps`,props:Fw,setup:function(e){var t=Q(`steps`),n=Wt(e),r=n.current,i=n.modelValue,a=Y(Rm(r,i,e.defaultCurrent,e.onChange,`current`),2),o=a[0],s=a[1];Cn(`StepsState`,Dt({current:o,setCurrent:s})),Cn(`StepsProps`,e);var c=I({}),l=function(t,n){if(t.status&&t.status!=="default")return t.status;if(o.value===`FINISH`||t.value===void 0&&n<Number(o.value))return`finish`;if(t.value!==void 0){var r=Number(c.value[o.value]);if(r===void 0)return console.warn("TDesign Steps Warn: The current `value` is not exist."),`default`;if(e.sequence===`positive`&&n<r||e.sequence===`reverse`&&n>r)return`finish`}return(t.value===void 0?n:t.value)===o.value?`process`:`default`},u=om(),d=function(t){var n=[];return t?.forEach(function(t){var r=t?.props||{},i=t?.children;if(!(!r&&!i)){if(i&&Do(i))for(var a in i)a in Iw&&!r[a]&&(r[a]=i[a]);e.sequence===`reverse`?n.unshift(r):n.push(r)}}),n},f=function(){var t,n=(t=e.options)!=null&&t.length?e.sequence===`reverse`?e.options.slice().reverse():e.options:d(u(`StepItem`));return(n||[]).forEach(function(e,t){e.value!==void 0&&(c.value[e.value]=t)}),n},p=function(){var t=f();return t.map(function(n,r){var i=e.sequence===`reverse`?t.length-r-1:r;return r=n.value===void 0?i:r,V(zw,H(n,{index:i,status:l(n,r),key:n.value||r}),null)})},m=function(){var t=e.theme;return f().forEach(function(e){e?.icon!==void 0&&(t=`default`)}),t},h=U(function(){return[t.value,`${t.value}--${e.layout}`,`${t.value}--${m()}-anchor`,`${t.value}--${e.sequence}`,`${t.value}--${e.separator}-separator`]});return function(){return V(`div`,{class:h.value},[p()])}}})),Vw=X(zw),Hw={list:{type:Array,default:function(){return[]}},offset:{type:Array},placement:{type:String,default:`right-bottom`,validator:function(e){return!e||[`right-top`,`right-center`,`right-bottom`,`left-top`,`left-center`,`left-bottom`].includes(e)}},popupProps:{type:Object},shape:{type:String,default:`square`,validator:function(e){return!e||[`square`,`round`].includes(e)}},type:{type:String,default:`normal`,validator:function(e){return!e||[`normal`,`compact`].includes(e)}},width:{type:[String,Number]},onClick:Function,onHover:Function},Uw={icon:{type:Function},label:{type:[String,Function]},popup:{type:[String,Function]},popupProps:{type:Object},trigger:{type:String,default:`hover`,validator:function(e){return!e||[`hover`,`click`].includes(e)}}};function Ww(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ww(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ww(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Kw=z({name:`TStickyItem`,props:Gw(Gw({},Uw),{},{type:Hw.type,shape:Hw.shape,placement:Hw.placement,basePopupProps:Object,baseWidth:Hw.width,onClick:Hw.onClick,onHover:Hw.onHover}),setup:function(e){var t=Q(`sticky-item`),n=U(function(){return[`${t.value}`,`${t.value}--${e.type}`,`${t.value}--${e.shape}`]}),r=U(function(){return[`${t.value}__label`]}),i=U(function(){return e.placement.indexOf(`right`)===-1?`right`:`left`}),a=U(function(){var t={};if(e.baseWidth){var n=e.type===`normal`?`56px`:`40px`;t.margin=`calc((${e.baseWidth} - ${n})/2)`}return t}),o=function(t){var n={};Object.keys(Uw).forEach(function(t){return n[t]=e[t]}),e.onClick({e:t,item:n})},s=function(t){var n={};Object.keys(Uw).forEach(function(t){return n[t]=e[t]}),e.onHover({e:t,item:n})},c=pm(),l=Object.assign({hideEmptyPopup:!0},e.basePopupProps,e.popupProps);return function(){return V(zx,H({overlayInnerClassName:`${Q(`sticky-tool`).value}-popup-content`,trigger:e.trigger,placement:i.value,content:function(){return c(`popup`)}},l),{default:function(){return[V(`div`,{class:n.value,style:a.value,onClick:o,onMouseenter:s},[c(`icon`),e.type===`normal`?V(`div`,{class:r.value},[c(`label`)]):null])]}})}}});function qw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qw(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Yw=z({name:`TStickyTool`,props:Hw,setup:function(e){var t=Q(`sticky-tool`),n=U(function(){return[t.value,`${t.value}--${e.shape}`]}),r=U(function(){var t=s();return e.width&&(t.width=typeof e.width==`number`?`${e.width}px`:e.width),t}),i=om(),a=function(){var t;return(t=e.list)!=null&&t.length?e.list:o(i(`StickyItem`))},o=function(e){var t=[];return e?.forEach(function(e){var n=e?.props||{},r=e?.children;if(!(!n&&!r)){if(r&&Do(r))for(var i in r)i in Uw&&!n[i]&&(n[i]=r[i]);t.push(n)}}),t},s=function(){var t,n=e.offset?[80,24]:[`80px`,`24px`];(t=e.offset)==null||t.forEach(function(e,t){n[t]=isNaN(Number(e))?`calc( ${n[t]}px + ${e})`:`${n[t]+e}px`});var r={};return e.placement.split(`-`).forEach(function(e,t){e===`center`?(r.top=`50%`,r.transform=`translate(0, -50%)`):r[e]=n[t]}),r},c=function(t){var n;(n=e.onClick)==null||n.call(e,t)},l=function(t){var n;(n=e.onHover)==null||n.call(e,t)},u=function(){return a().map(function(t,n){var i=e.type,a=e.shape,o=e.placement,s=e.popupProps;return V(Kw,H(Jw(Jw({},t),{},{type:i,shape:a,placement:o,basePopupProps:s,baseWidth:r.value.width,onClick:c,onHover:l}),{key:n}),null)})};return function(){return V(`div`,{class:n.value,style:r.value},[u()])}}}),Xw=X(Kw),Zw=X(Yw),Qw=X(z({name:`TBackTop`,props:{container:{type:[String,Function],default:`body`},content:{type:[String,Function]},default:{type:[String,Function]},duration:{type:Number,default:200},offset:{type:Array,default:function(){return[`24px`,`80px`]}},shape:{type:String,default:`square`,validator:function(e){return!e||[`circle`,`square`].includes(e)}},size:{type:String,default:`medium`,validator:function(e){return!e||[`medium`,`small`].includes(e)}},target:{type:[String,Function],default:`body`},theme:{type:String,default:`light`,validator:function(e){return!e||[`light`,`primary`,`dark`].includes(e)}},visibleHeight:{type:[String,Number],default:`200px`},onClick:Function},setup:function(e){var t=I(!1),n=I(null),r=Q(`back-top`),i=Rp(`alert`).classPrefix,a=Tm({BacktopIcon:Lse}).BacktopIcon,o=hm(),s=function(e){return typeof e==`string`&&typeof document<`u`?e===`body`?document:document.querySelector(e):typeof e==`function`?e():null};return mr(function(){n.value=s(e.container);var r=typeof e.visibleHeight==`string`?Number(e.visibleHeight.replace(`px`,``)):e.visibleHeight;if(r===0){t.value=!0;return}var i=n.value.scrollTop===void 0?document.documentElement:n.value;n.value.onscroll=function(){var e=i?.scrollTop;e>=r&&(t.value=!0),e<r&&t.value&&(t.value=!1)}}),_r(function(){n.value.onscroll=null}),function(){var c=e.theme,l=e.shape,u=e.size,d=e.target,f=e.duration,p=e.offset,m=e.container,h=sm()();h.length<1&&(h=null);var g=U(function(){return G(G(G(G(G(G({},r.value,!0),`${r.value}--theme-${c}`,!0),`${r.value}--${l}`,!0),`${r.value}--show`,t.value),`${i.value}-size-s`,u===`small`),`${i.value}-size-m`,u===`medium`)}),_=V(bi,null,[V(a,{class:`${r.value}__icon`,size:`24`},null),V(`span`,{class:`${r.value}__text`},[zi(`TOP`)])]),v=function(){if(d===m||d===`body`||!d)return 0;var e=s(d);return e?e.getBoundingClientRect().y:0},y=function(t){var r;_p(v(),{container:n.value,duration:f}),(r=e.onClick)==null||r.call(e,{e:t})},b=U(function(){return{insetInlineEnd:p[0],insetBlockEnd:p[1]}});return V(`button`,{type:`button`,class:g.value,style:b.value,onClick:y},[o(`content`,`default`,_)])}}})),$w={autofocus:Boolean,borderless:Boolean,clearable:Boolean,default:{type:[String,Function]},disabled:{type:Boolean,default:void 0},empty:{type:[String,Function]},filter:{type:Function},filterable:{type:Boolean,default:!0},highlightKeyword:{type:Boolean,default:!0},inputProps:{type:Object},options:{type:Array},panelBottomContent:{type:[String,Function]},panelTopContent:{type:[String,Function]},placeholder:{type:String,default:void 0},popupProps:{type:Object},readonly:{type:Boolean,default:void 0},size:{type:String,default:`medium`,validator:function(e){return!e||[`small`,`medium`,`large`].includes(e)}},status:{type:String,default:`default`,validator:function(e){return!e||[`default`,`success`,`warning`,`error`].includes(e)}},textareaProps:{type:Object},tips:{type:[String,Function]},triggerElement:{type:[String,Function]},value:{type:String,default:void 0},modelValue:{type:String,default:void 0},defaultValue:{type:String,default:``},onBlur:Function,onChange:Function,onClear:Function,onCompositionend:Function,onCompositionstart:Function,onEnter:Function,onFocus:Function,onSelect:Function},eT=z({name:`HighlightOption`,props:{content:String,keyword:String},setup:function(e){var t=Q(),n=U(function(){var t=e.content,n=e.keyword;if(!t)return{list:[]};if(!Rd(t)||!n)return{list:[t]};var r=new RegExp(kd(n),`i`),i=t.match(r)?.[0];return{list:t.split(i),keyword:i}});return function(){var e=n.value,r=e.list,i=e.keyword;return V(`div`,{class:`${t.value}-select-option__highlight-item`},[r.map(function(e,n){return n?[V(`b`,{class:`${t.value}-is-highlight`,key:e+i},[i]),e]:e})])}}});function tT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tT(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var rT=z({name:`AutoCompleteOptionList`,props:{sizeClassNames:Object,value:String,size:String,options:Array,popupVisible:Boolean,highlightKeyword:Boolean,filterable:Boolean,filter:Function,empty:[String,Function]},emits:[`select`],setup:function(e,t){var n=t.emit,r=t.slots,i=t.expose,a=I(``),o=Q(),s=Rp(`autoComplete`).globalConfig,c=U(function(){return`${o.value}-select__list`}),l=U(function(){return[`${o.value}-select-option`,G({},e.sizeClassNames.value[e.size],e.size)]}),u=U(function(){var t=(e.options||[]).map(function(e){var t={};return Rd(e)?t={text:e,label:e}:(e.text&&!Rd(e.text)&&Vp.warn(`AutoComplete`,"`text` must be a string."),e.text?t=e:Rd(e.label)?t=nT(nT({},e),{},{text:e.label}):Vp.warn(`AutoComplete`,"one of `label` and `text` must be a existed string.")),t});if(e.filter)t=t.filter(function(t){return e.filter(e.value,t)});else if(e.filterable){var n=new RegExp(kd(e.value),`i`);t=t.filter(function(e){return n.test(e.text)})}return t}),d=function(e){for(var t=e.target;t&&t.tagName!==`LI`;)t=t.parentNode;var r=t.getAttribute(`title`);a.value=r,n(`select`,r,{e})},f=function(e){if(Qp.test(e.code)||Qp.test(e.key)){var t=u.value.findIndex(function(e){return e.text===a.value}),r=t-1<0?u.value.length-1:t-1;a.value=u.value[r]?.text}else if(Zp.test(e.code)||Zp.test(e.key)){var i=u.value.findIndex(function(e){return e.text===a.value}),o=i+1>=u.value.length?0:i+1;a.value=u.value[o]?.text}else(tm.test(e.code)||tm.test(e.key))&&a.value&&n(`select`,a.value,{e})},p=function(){cp(document,`keydown`,f)},m=function(){lp(document,`keydown`,f)};return i({addKeyboardListener:p,removeKeyboardListener:m}),R(function(){return e.popupVisible},function(){e.popupVisible?p():m()},{immediate:!0}),R(function(){return e.value},function(){e.value||(a.value=``)},{immediate:!0}),_r(function(){m()}),function(){return u.value.length?V(`ul`,{class:c.value},[u.value.map(function(t){var n=W(l.value);t.text===a.value&&n.push(`${o.value}-select-option--hover`);var i=t.label;q(t.label)?i=t.label(sa):r.option&&(i=r.option?.call(r,{option:t}));var s=i||t.text;return V(`li`,{key:t.text,class:n,title:t.text,onClick:d},[Rd(s)&&e.highlightKeyword?V(eT,{content:s,keyword:e.value},null):s])})]):V(`div`,{class:`${o.value}-auto-complete__panel--empty`},[e.empty||s.value.empty])}}});function iT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function aT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?iT(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oT(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var sT=X(z({name:`TAutoComplete`,props:$w,setup:function(e,t){var n=t.slots,r=Wt(e),i=r.value,a=r.modelValue,o=Y(Rm(i,a,e.defaultValue,e.onChange),2),s=o[0],c=o[1],l=hm(),u=pm(),d=ym(),f=d.classPrefix,p=d.SIZE,m=Rp(`input`).globalConfig,h=Sm(),g=Mm(),_=I(),v=I(),y=function(t,n){var r=t.getBoundingClientRect().width||t.offsetWidth||t.clientWidth;return aT({width:r>=(n.getBoundingClientRect().width||n.offsetWidth||n.clientWidth)?`${r}px`:`auto`},e.popupProps?.overlayInnerStyle)},b=U(function(){return[`${f.value}-auto-complete`]}),x=U(function(){var t,n=[`${f.value}-select__dropdown`];return(t=e.popupProps)!=null&&t.overlayClassName&&(n=n.concat(e.popupProps.overlayClassName)),n}),S=U(function(){var t,n=[`${f.value}-select__dropdown-inner`];return(t=e.popupProps)!=null&&t.overlayInnerClassName&&(n=n.concat(e.popupProps.overlayInnerClassName)),n}),C=function(e,t){_.value=!0,c(e,t)},w=U(function(){return aT({value:s.value,size:e.size},e.inputProps)}),T=function(t,n){var r;g.value||h.value||(_.value=!0,(r=e.onFocus)==null||r.call(e,aT(aT({},n),{},{value:t})),dn(function(){var e;(e=v.value)==null||e.addKeyboardListener()}))},E=function(t,n){var r;(r=e.onBlur)==null||r.call(e,aT(aT({},n),{},{value:t}))},D=function(t,n){var r;(r=e.onCompositionend)==null||r.call(e,aT(aT({},n),{},{value:t}))},O=function(t,n){var r;(r=e.onCompositionstart)==null||r.call(e,aT(aT({},n),{},{value:t}))},k=function(t,n){var r;(r=e.onEnter)==null||r.call(e,aT(aT({},n),{},{value:t}))},A=function(t,n){var r;g.value||h.value||(_.value=!1,c(t,n),(r=e.onSelect)==null||r.call(e,t,n))},j=function(e,t){var n=t.trigger;g.value||h.value||n!==`trigger-element-click`&&(_.value=e)};return function(){var t=Jm(w.value,{onChange:C,onFocus:T,onBlur:E,onClear:e.onClear,onCompositionend:D,onCompositionstart:O,onEnter:k}),r=l(`default`,`triggerElement`)||V(WS,H({borderless:e.borderless,placeholder:e.placeholder??m.value.placeholder,tips:e.tips,status:e.status,readonly:g.value,disabled:h.value,autofocus:e.autofocus,clearable:e.clearable},t.value),n),i=Array.isArray(e.options)&&V(rT,{ref:v,value:s.value,options:e.options,size:e.size,sizeClassNames:p,onSelect:A,popupVisible:_.value,highlightKeyword:e.highlightKeyword,filterable:e.filterable,filter:e.filter,empty:u(`empty`)},{option:n.option}),a=u(`panelTopContent`),o=u(`panelBottomContent`),c=a||i||o?V(`div`,{class:`${f.value}-auto-complete__panel`},[a,i,o]):null,d=Jm(aT(aT({},e.popupProps),{},{overlayInnerStyle:y,overlayInnerClassName:S.value,overlayClassName:x.value}),{onVisibleChange:j});return V(`div`,{class:b.value},[V(zx,H({visible:_.value,onVisibleChange:j,trigger:`focus`,placement:`bottom-left`,hideEmptyPopup:!0,content:c?function(){return c}:null},d.value),oT(r)?r:{default:function(){return[r]}})])}}})),cT=X(eT);function lT(e,t,n){var r=n.disabled;return[`${e}-cascader__icon`,G({},t.disabled,r)]}function uT(e,t,n){var r=n.checkStrictly,i=n.multiple,a=n.value,o=n.max,s=n.isParentFilterable,c=!r&&e.expanded&&(!i||!e.isLeaf())||r&&e.expanded&&!s,l=e.isLeaf(),u=e.disabled||i&&a.length>=o&&o!==0,d=e.checked||i&&!r&&e.expanded&&!l;return!i&&!r&&!l&&(d=e.expanded),[G(G(G({},t.selected,!u&&d),t.expanded,!u&&c),t.disabled,u)]}function dT(e,t,n,r,i){var a=i.size,o=i.isParentFilterable;return[`${e}-cascader__item`].concat(W(uT(t,r,i)),[n[a],G(G({},`${e}-cascader__item--with-icon`,!!t.children),`${e}-cascader__item--leaf`,t.isLeaf()||o)])}function fT(e,t,n,r){return[`${e}-cascader__item-icon`,`${e}-icon`].concat(W(uT(t,n,r)))}function pT(e){var t=e.value,n=e.multiple,r=e.treeStore,i=e.showAllLevels;if(n||t!==0&&!t||K(t))return``;var a=r&&r.getNodes(t);if(!(a&&a.length))return t;var o=a&&a[0].getPath();return o&&o.length?i?o.map(function(e){return e.label}).join(` / `):o.at(-1).label:t}function mT(e){var t=e.value,n=e.multiple,r=e.treeStore,i=e.showAllLevels;return!n||n&&!K(t)||!(r&&r.getNodes(t))?[]:t.map(function(e){var t=r.getNodes(e);return i?gT(t[0]):t[0]?.label}).filter(function(e){return!!e})}function hT(e){var t=[];return e.forEach(function(e){t[e.level]?t[e.level].push(e):t[e.level]=[e]}),t}function gT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`/`;return e?.getPath().map(function(e){return e.label}).join(t)}var _T=function(e){var t=[];return K(e)?e.length>0&&Do(e[0])?t=e.map(function(e){return e.value}):e.length&&(t=e):yT(e)||(t=Do(e)?[e.value]:[e]),t},vT=function(e,t,n){if(t===`single`)return e;var r=e;return n?r.map(function(e){return e.at(-1)}):r.at(-1)};function yT(e){return nf(e)&&!isNaN(e)?!1:$d(e)}function bT(e,t){var n=t.multiple,r=t.showAllLevels,i=t.valueType;return n&&!K(e)||!n&&K(e)&&i===`single`&&!r}function xT(e,t){return!e.label||!t?!1:e.label.toLowerCase().includes(t)}function ST(e){return e!==-1}function CT(e){return e===void 0?!1:typeof e!=`string`||!!e.trim()}function wT(e,t,n){if(typeof t==`string`){var r=t.trim().toLowerCase();return r?e.filter(function(e){return xT(e,r)}):e}return e.filter(function(e){return t(e.data,n)})}function TT(e,t,n,r){var i=r.checkStrictly,a=r.multiple,o=r.treeStore,s=r.setVisible,c=r.setValue,l=r.setTreeNodes,u=r.setExpand,d=r.value,f=r.max,p=r.valueType;if(!(n.disabled||a&&d.length>=f&&f!==0)){if(e===t){var m=n.setExpanded(!0);r.inputVal?o.refreshNodes():(o.replaceExpanded(m),l(o.getNodes().filter(function(e){return e.visible}))),a&&!r.isParentFilterable&&u(m)}if(!a&&(n.isLeaf()||i)&&t===`click`){o.resetChecked();var h=Y(n.setChecked(!n.checked),1)[0];c(p===`single`?h:n.getPath().map(function(e){return e.value}),`check`,n.getModel()),(!i||e===`hover`||r.inputVal)&&s(!1,{})}}}function ET(e,t){var n=t.disabled,r=t.max,i=t.inputVal,a=t.setVisible,o=t.setValue,s=t.treeNodes,c=t.treeStore,l=t.valueType,u=t.setInputVal,d=t.reserveKeyword;if(!(!e||n||e.disabled)){var f=e.setChecked(!e.isChecked());if(nf(r)&&r<0&&console.warn(`TDesign Warn:`,`max should > 0`),!(f.length>r&&nf(r)&&r>0)){if(f.length===0){var p=c.getExpanded();setTimeout(function(){c.replaceExpanded(p),c.refreshNodes()},0)}var m=s.every(function(e){return f.indexOf(e.value)>-1});i&&m&&a(!1,{}),o(l===`single`?f:f.map(function(e){return c.getNode(e).getPath().map(function(e){return e.value})}),e.checked?`uncheck`:`check`,e.getModel()),d||u(``)}}}function DT(e){var t=e.setVisible,n=e.multiple,r=e.setValue;t(!1,{}),r(n?[]:``,`clear`)}function OT(e,t,n){var r=e.disabled,i=e.setValue,a=e.value,o=e.valueType,s=e.treeStore;if(!r)if(t!==void 0){var c=iu(a).splice(t,1),l=s.getNodes(c[0])[0],u=l.setChecked(!l.isChecked());i(o===`single`?u:u.map(function(e){return s.getNode(e).getPath().map(function(e){return e.value})}),`uncheck`,l.getModel()),q(n)&&n({value:u,node:l})}else q(n)&&n({value:a,node:void 0})}var kT=function(e,t,n,r,i){if(t){var a=[];a=e?t.nodes.filter(function(t){return!t.isLeaf()&&!i?!1:q(r)?r(`${e}`,t):gT(t,``).includes(`${e}`)}):t.getNodes().filter(function(e){return e.visible}),n(a)}},AT=function(e,t){var n=new Map,r=Y(t,1)[0];if(!yT(r)){n.set(r,!0);var i=e.getNode(r);if(!i)return e.refreshNodes(),[];i.getParents().forEach(function(e){n.set(e.value,!0)})}return Array.from(n.keys())},jT=function(e,t,n){var r=_T(t);if(e){if(K(r)&&n.length===0){var i=AT(e,r);i.length>0&&e.replaceExpanded(i)}e.getExpanded()&&n.length&&e.replaceExpanded(n),e.refreshNodes()}};function MT(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var NT=z({name:`TCascaderItem`,props:{node:{type:Object,default:function(){return{}}},optionChild:{type:[Object,Array]},cascaderContext:{type:Object},onChange:Function,onClick:Function,onMouseenter:Function},setup:function(e){var t=I();Im(t);var n=Q(`cascader__item`),r=Q(),i=Tm({ChevronRightIcon:yg}).ChevronRightIcon,a=ym(),o=a.STATUS,s=a.SIZE,c=U(function(){return dT(r.value,e.node,s.value,o.value,e.cascaderContext)}),l=U(function(){return fT(r.value,e.node,o.value,e.cascaderContext)});function u(e,t){var r=t.inputVal,i=r?gT(e):e.label;if(r){for(var a=i.split(r),o=[],s=0;s<a.length&&(o.push(V(`span`,{key:s},[a[s]])),s!==a.length-1);s++)o.push(V(`span`,{key:`${s}filter`,class:`${n.value}-label--filter`},[r]));return o}return i}var d=function(e){return typeof e.label==`string`?e.label:null};function f(e,t){var r=u(e,t);return V(`span`,{title:t.inputVal?gT(e):d(e),class:[`${n.value}-label`,`${n.value}-label--ellipsis`],role:`label`},[r])}function p(t,n){var r=n.checkProps,i=n.value,a=n.max,o=n.inputVal,s=u(t,n);return V(nw,H({checked:t.checked,indeterminate:t.indeterminate,disabled:t.isDisabled()||i.length>=a&&a!==0,name:String(t.value),stopLabelTrigger:!!t.children&&!e.cascaderContext.isParentFilterable,title:o?gT(t):d(t),onChange:function(){e.onChange()}},r),MT(s)?s:{default:function(){return[s]}})}return function(){var n=e.cascaderContext,r=e.node,a=e.optionChild;return V(`li`,{ref:t,class:c.value,onClick:e.onClick,onMouseenter:e.onMouseenter},[a||(n.multiple?p(r,n):f(r,n)),r.children&&!e.cascaderContext.isParentFilterable&&(r.loading?V(uh,{class:l.value,size:`small`},null):V(i,{class:l.value},null))])}}}),PT={autofocus:Boolean,borderless:Boolean,checkProps:{type:Object},checkStrictly:Boolean,clearable:Boolean,collapsedItems:{type:Function},columnFooter:{type:[String,Function]},columnHeader:{type:[String,Function]},disabled:{type:Boolean,default:void 0},empty:{type:[String,Function]},filter:{type:Function},filterable:Boolean,inputProps:{type:Object},keys:{type:Object},label:{type:[String,Function]},lazy:{type:Boolean,default:!0},load:{type:Function},loading:Boolean,loadingText:{type:[String,Function]},max:{type:Number,default:0},minCollapsedNum:{type:Number,default:0},multiple:Boolean,option:{type:Function},options:{type:Array,default:function(){return[]}},panelBottomContent:{type:[String,Function]},panelTopContent:{type:[String,Function]},placeholder:{type:String,default:void 0},popupProps:{type:Object},popupVisible:Boolean,prefixIcon:{type:Function},readonly:{type:Boolean,default:void 0},reserveKeyword:{type:Boolean,default:!0},selectInputProps:{type:Object},showAllLevels:{type:Boolean,default:!0},size:{type:String,default:`medium`,validator:function(e){return!e||[`large`,`medium`,`small`].includes(e)}},status:{type:String,default:`default`,validator:function(e){return!e||[`default`,`success`,`warning`,`error`].includes(e)}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tagInputProps:{type:Object},tagProps:{type:Object},tips:{type:[String,Function]},trigger:{type:String,default:`click`,validator:function(e){return!e||[`click`,`hover`].includes(e)}},value:{type:[String,Number,Array],default:void 0},modelValue:{type:[String,Number,Array],default:void 0},defaultValue:{type:[String,Number,Array],default:function(){return[]}},valueDisplay:{type:[String,Function]},valueMode:{type:String,default:`onlyLeaf`,validator:function(e){return!e||[`onlyLeaf`,`parentFirst`,`all`].includes(e)}},valueType:{type:String,default:`single`,validator:function(e){return!e||[`single`,`full`].includes(e)}},onBlur:Function,onChange:Function,onFocus:Function,onPopupVisibleChange:Function,onRemove:Function};function FT(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=IT(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function IT(e,t){if(e){if(typeof e==`string`)return LT(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?LT(e,t):void 0}}function LT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function RT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?RT(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var BT=z({name:`TCascaderSubPanel`,props:{option:PT.option,options:PT.options,empty:PT.empty,trigger:PT.trigger,onChange:PT.onChange,loading:PT.loading,loadingText:PT.loadingText,cascaderContext:{type:Object}},setup:function(e){var t=mm(),n=pm(),r=Q(`cascader`),i=Rp(`cascader`).globalConfig,a=U(function(){return hT(e.cascaderContext.treeNodes)}),o=Bt(null),s=U(function(){var e=o.value;return e&&l(e.filters)}),c=function(e,t){var n=o.value;if(!n)return e;var r=n.filters[t];return r?wT(e,r,t):e},l=function(e){return Object.values(e).some(function(e){return CT(e)})},u=function(e,t){return Object.fromEntries(Object.entries(e).filter(function(e){var n=Y(e,1)[0];return Number(n)<=t}))},d=function(e,t,n){return t.length===0?e:Math.max(e,n)},f=function(e,t){var n=o.value,r=zT({},n?.filters);CT(t)?r[e]=t:delete r[e];var i=n?.maxLevel??-1;CT(t)?i=d(e,wT(a.value[e]||[],t,e),i):l(r)||(i=-1),i<(n?.maxLevel??-1)&&(r=u(r,i)),o.value={filters:r,maxLevel:i}},p=function(e){var t=o.value;return!s.value||!t||!ST(t.maxLevel)||e<=t.maxLevel},m=function(t,n,r){var i=o.value,a=t.children;if(i&&ST(i.maxLevel)&&e.trigger===n&&Array.isArray(a)&&a.length){var s=r+1;s>i.maxLevel&&(o.value={filters:u(i.filters,s),maxLevel:s})}TT(e.trigger,n,t,e.cascaderContext)},h=new Map,g=function(e){var t=h.get(e);return t||(t=function(t){return f(e,t)},h.set(e,t)),t};R(a,function(e){var t=e.length-1,n=FT(h),r;try{for(n.s();!(r=n.n()).done;){var i=Y(r.value,1)[0];i>t&&h.delete(i)}}catch(e){n.e(e)}finally{n.f()}},{flush:`post`}),vr(function(){h.clear()});var _=function(n,r){var i=n.data.content?wp(n.data.content(sa)):t(`option`,{params:{item:n.data,index:r,onExpand:function(){return m(n,`click`,r)},onChange:function(){return ET(n,e.cascaderContext)}}});return V(NT,{key:n.value,node:n,optionChild:i,cascaderContext:e.cascaderContext,onClick:function(){return m(n,`click`,r)},onMouseenter:function(){return m(n,`hover`,r)},onChange:function(){return ET(n,e.cascaderContext)}},null)},v=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=s.value?c(e,i):e,o={panelIndex:i,options:e.map(function(e){return e.data}),filteredOptions:a.map(function(e){return e.data})};return V(`ul`,{class:[`${r.value}__menu`,`narrow-scrollbar`,G({},`${r.value}__menu--segment`,t)],key:`${r}__menu${i}`},[n(`columnHeader`,{params:zT(zT({},o),{},{onFilter:g(i)})}),a.map(function(e){return _(e,i)}),n(`columnFooter`,{params:zT(zT({},o),{},{onFilter:g(i)})})])},y=function(){},b=function(e){var t={panelIndex:0,options:e.map(function(e){return e.data}),filteredOptions:e.map(function(e){return e.data}),onFilter:y};return V(`ul`,{class:[`${r.value}__menu`,`narrow-scrollbar`,`${r.value}__menu--filter`],key:`${r}__menu--filtered`},[n(`columnHeader`,{params:t}),e.map(function(e){return _(e,0)}),n(`columnFooter`,{params:t})])},x=function(){var t=e.cascaderContext,n=t.inputVal,r=t.treeNodes;if(n)return b(r);for(var i=[],o=a.value.length,s=0;s<o;s++)p(s)&&i.push(v(a.value[s],s!==o-1,s));return i};return function(){var n=e.loading?t(`loadingText`,V(`div`,{class:`${r.value}__panel--empty`},[i.value.loadingText])):a.value.length?x():t(`empty`,V(`div`,{class:`${r.value}__panel--empty`},[i.value.empty]));return V(`div`,{class:[`${r.value}__panel`,G({},`${r.value}--normal`,a.value.length&&!e.loading)]},[n])}}});function VT(e){return{all:e||=new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),(r=e.get(`*`))&&r.slice().map(function(e){e(t,n)})}}}var HT=`__tdesign_tree-node__`,UT=function(){function e(t){Xp(this,e),G(this,HT,void 0),this[HT]=t}return Yp(e,[{key:`value`,get:function(){return this[HT].value}},{key:`label`,get:function(){return this[HT].label}},{key:`data`,get:function(){return this[HT].data}},{key:`actived`,get:function(){return this[HT].actived}},{key:`expanded`,get:function(){return this[HT].expanded}},{key:`checked`,get:function(){return this[HT].checked}},{key:`indeterminate`,get:function(){return this[HT].indeterminate}},{key:`loading`,get:function(){return this[HT].loading}},{key:`disabled`,get:function(){return this[HT].isDisabled()}},{key:`getLevel`,value:function(){return this[HT].getLevel()}},{key:`getIndex`,value:function(){return this[HT].getIndex()}},{key:`isFirst`,value:function(){return this[HT].isFirst()}},{key:`isLast`,value:function(){return this[HT].isLast()}},{key:`isLeaf`,value:function(){return this[HT].isLeaf()}},{key:`insertBefore`,value:function(e){return this[HT].insertBefore(e)}},{key:`insertAfter`,value:function(e){return this[HT].insertAfter(e)}},{key:`appendData`,value:function(e){return this[HT].append(e)}},{key:`getPath`,value:function(){return this[HT].getPath().map(function(e){return e.getModel()})}},{key:`getParent`,value:function(){return this[HT].parent?.getModel()}},{key:`getParents`,value:function(){return this[HT].getParents().map(function(e){return e.getModel()})}},{key:`getRoot`,value:function(){return this[HT].getRoot()?.getModel()}},{key:`getSiblings`,value:function(){return this[HT].getSiblings().map(function(e){return e.getModel()})}},{key:`getChildren`,value:function(e){var t=this[HT],n=!1,r=t.children;if(Array.isArray(r))if(r.length>0)if(e){var i=t.walk();i.shift(),n=i.map(function(e){return e.getModel()})}else n=r.map(function(e){return e.getModel()});else n=!1;else Gd(r)&&(n=r);return n}},{key:`remove`,value:function(e){var t=this[HT];if(!e){t.remove();return}var n=t.tree.getNode(e);if(!n){Vp.warnOnce(`Tree`,`\`${e}\` is not exist`);return}if(n.getParents().map(function(e){return e.value}).indexOf(t.value)<0){Vp.warnOnce(`Tree`,`\`${e}\` is not a childNode of current node`);return}n.remove()}},{key:`setData`,value:function(e){var t=this[HT],n=[`value`,`label`,`disabled`],r=Sf(e,[`children`].concat(n)),i=t.tree.config.keys;n.forEach(function(t){var n=J(e,i?.[t]||t);sf(n)||(r[t]=n)}),Object.assign(t.data,r),Object.assign(t,r),t.update()}}])}();function WT(e){return new UT(e)}function GT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function KT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?GT(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var qT=Object.prototype.hasOwnProperty,JT={expandMutex:null,activable:null,checkable:null,draggable:null,loading:!1},YT=Object.keys(JT),XT=[].concat(YT,[`actived`,`expanded`,`checked`]),ZT=`__tdesign_id__`,QT=function(){function e(t,n,r){var i=this;Xp(this,e),G(this,`tree`,void 0),G(this,ZT,void 0),G(this,`value`,void 0),G(this,`label`,void 0),G(this,`data`,void 0),G(this,`parent`,void 0),G(this,`children`,void 0),G(this,`model`,void 0),G(this,`vmIsLeaf`,void 0),G(this,`vmIsFirst`,void 0),G(this,`vmIsLast`,void 0),G(this,`vmIsRest`,void 0),G(this,`vmIsLocked`,void 0),G(this,`expanded`,void 0),G(this,`expandMutex`,void 0),G(this,`actived`,void 0),G(this,`activable`,void 0),G(this,`checkable`,void 0),G(this,`vmCheckable`,void 0),G(this,`checked`,void 0),G(this,`indeterminate`,void 0),G(this,`disabled`,void 0),G(this,`disableManually`,void 0),G(this,`draggable`,void 0),G(this,`visible`,void 0),G(this,`level`,void 0),G(this,`loading`,void 0),this.data=n,this.tree=t;var a=t.config||{},o=a.prefix||`t`,s=a.keys||{},c=s.children||`children`,l=s.label||`label`,u=s.value||`value`;this.model=null,this.children=null,this.level=0,this.vmCheckable=!1,this.vmIsLeaf=!1,this.vmIsFirst=!1,this.vmIsLast=!1,this.vmIsRest=!1,this.vmIsLocked=!1,this.visible=!1,this.actived=!1,this.checked=!1,this.indeterminate=!1,this.loading=!1,this.expanded=a.expandAll,this.activable=null,this.checkable=null,this.expandMutex=null,this.draggable=null,this.disableManually=null,this[ZT]=Qae(o),this.value=af(J(n,u))?this[ZT]:J(n,u);var d=t.nodeMap,f=t.privateMap;d.get(this.value)&&Vp.warn(`Tree`,`Dulplicate value: ${this.value}`),d.set(this.value,this),f.set(this[ZT],this),this.label=J(n,l)||``;var p=n[c];p===!0&&(this.children=p),r&&r instanceof e?this.parent=r:this.parent=null,XT.forEach(function(e){n[e]!==void 0&&(i[e]=n[e])}),this.initActived(),this.initExpanded(),Array.isArray(p)?this.append(p):p===!0&&!a.lazy&&this.loadChildren(),this.isLeaf()&&(this.expanded=!1,this.tree.expandedMap.delete(this.value)),this.initChecked(),this.updateChecked(),this.update(),t.reflow(this)}return Yp(e,[{key:`initChecked`,value:function(){var e=this.tree,t=this.value,n=this.parent,r=e.checkedMap,i=e.config.checkStrictly;this.checked&&r.set(t,!0),!i&&n!=null&&n.checked&&r.set(t,!0)}},{key:`initExpanded`,value:function(){var e=this.tree,t=this.expanded,n=e.config;nf(n.expandLevel)&&this.getLevel()<n.expandLevel&&(e.expandedMap.set(this.value,!0),t=!0),this.children===!0&&n.lazy&&(t=!1),t?e.expandedMap.set(this.value,!0):e.expandedMap.delete(this.value),this.expanded=t}},{key:`initActived`,value:function(){var e=this.tree;this.actived&&this.isActivable()&&e.activedMap.set(this.value,!0)}},{key:`append`,value:function(t){var n=this,r=[];if(Array.isArray(t)?r.push.apply(r,W(t)):r.push(t),!(r.length<=0)){var i=this.isLeaf();Array.isArray(this.children)||(this.children=[]);var a=this.children,o=this.tree;r.forEach(function(t){var r=null;t instanceof e?(r=t,r.appendTo(n.tree,n)):(r=new e(n.tree,t,n),a.push(r))}),i&&o.config.expandAll&&!this.isLeaf()&&(o.expandedMap.set(this.value,!0),this.expanded=!0),o.reflow(this),this.updateRelated()}}},{key:`appendTo`,value:function(t,n,r){var i=this,a=n,o=-1;if(nf(r)&&(o=r),(a?.getParents()||[]).some(function(e){return e===i}))throw Error(`无法将父节点插入到子节点`);if(a===this)throw Error(`无法将节点插入到本节点`);if(Array.isArray(a?.children)){var s=a?.children[o];if(s&&s===this)return}var c=null;if(a instanceof e?(Array.isArray(a?.children)||(a.children=[]),c=n.children):c=t.children,!Array.isArray(c))throw Error(`无法插入到目标位置,可插入的节点列表不存在`);var l=c.length,u=this.getIndex();if(this.remove(),nf(r)){var d=r;a===this.parent&&c.length<l&&u<=d&&--d,c.splice(d,0,this)}else c.push(this);this.parent=a,this.walk().forEach(function(e){var n=e;n.tree=t,t.nodeMap.set(n.value,n),t.privateMap.set(n[ZT],n),n.expanded&&t.expandedMap.set(n.value,!0)}),(a?.walk()||t.children.map(function(e){return e.walk()}).flat()).forEach(function(e){e.update(),e.updateChecked()}),t.reflow()}},{key:`insert`,value:function(t,n){var r=this.tree,i=this.parent,a=this.getSiblings(),o=null;t instanceof e?(o=t,o.appendTo(r,i,n)):t&&(o=new e(r,t,i),nf(n)&&a.splice(n,0,o),a.forEach(function(e){e.update()})),r.reflow()}},{key:`insertBefore`,value:function(e){var t=this.getIndex();this.insert(e,t)}},{key:`insertAfter`,value:function(e){var t=this.getIndex();this.insert(e,t+1)}},{key:`remove`,value:function(){var e=this.tree,t=this.walk(),n=this.getSiblings(),r=this.getIndex();Array.isArray(n)&&n.splice(r,1),t.forEach(function(e){e.clean()}),n.forEach(function(e){e.update()}),this.updateParents(),e.reflow()}},{key:`clean`,value:function(){var e=this.tree,t=this.value;e.activedMap.delete(t),e.checkedMap.delete(t),e.expandedMap.delete(t),e.nodeMap.delete(t),e.filterMap.delete(t),e.privateMap.delete(this[ZT])}},{key:`loadChildren`,value:function(){var e=ly(Ey.mark(function e(){var t,n;return Ey.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=J(this,`tree.config`)||{},!(this.children===!0&&!this.loading)){e.next=2;break}if(!q(t.load)){e.next=2;break}return this.loading=!0,this.update(),n=[],e.next=1,t.load(this);case 1:n=e.sent,this.tree.emit(`load`,{node:this,data:n}),this.loading=!1,Array.isArray(n)&&n.length>0?this.append(n):this.children=!1,this.update();case 2:case`end`:return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:`set`,value:function(e){var t=this,n=this.tree;Object.keys(e).forEach(function(n){(qT.call(JT,n)||n===`label`)&&(t[n]=e[n]),n===`disabled`&&t.setDisabled(e[n])}),n.updated(this)}},{key:`getParent`,value:function(){return this.parent}},{key:`getParents`,value:function(){for(var e=[],t=this.parent;t;)e.push(t),t=t.parent;return e}},{key:`getSiblings`,value:function(){var e=this.parent,t=this.tree,n=[];return e?Array.isArray(e.children)&&(n=e.children):t&&(n=t.children),n}},{key:`getChildren`,value:function(e){var t=!1,n=this.children;if(Array.isArray(n))if(n.length>0)if(e){var r=this.walk();r.shift(),t=r.map(function(e){return e.getModel()})}else t=n.map(function(e){return e.getModel()});else t=!1;else Gd(n)&&(t=n);return t}},{key:`getRoot`,value:function(){var e=this.getParents();return e[e.length-1]||null}},{key:`getIndex`,value:function(){return this.getSiblings().indexOf(this)}},{key:`getPath`,value:function(){var e=this.getParents();return e.unshift(this),e.reverse()}},{key:`getLevel`,value:function(){return this.getParents().length}},{key:`isRest`,value:function(){var e=this.tree,t=e.config,n=e.filterMap,r=e.hasFilter,i=!1;if(r){var a=this.getModel();i=t.filter(a)}return i?n.set(this.value,!0):n.get(this.value)&&n.delete(this.value),i}},{key:`isVisible`,value:function(){var e=this.tree,t=e.nodeMap,n=e.hasFilter,r=e.config.allowFoldNodeOnFilter,i=!0;if(!t.get(this.value))return!1;if(n&&!r)return i=this.vmIsLocked||this.vmIsRest,i;var a=!0,o=this.getParents();return o.length>0&&(a=o.every(function(e){return e.expanded})),i=n?a&&(this.vmIsRest||this.vmIsLocked):a,i}},{key:`isDisabledState`,value:function(){var e=this.tree,t=this.parent,n=e.config,r=n.checkStrictly,i=n.disabled,a=n.disableCheck,o=n.keys,s=o===void 0?{}:o;if(i||!r&&t!=null&&t.isDisabled()&&!this.vmIsRest)return!0;if(typeof this.disableManually==`boolean`)return this.disableManually;var c=s.disabled||`disabled`,l=J(this.data,c);if(typeof l==`boolean`)return l;if(a===!0)return!0;if(typeof a==`function`){var u=a(this.getModel());if(typeof u==`boolean`)return u}return!1}},{key:`isDisabled`,value:function(){var e=this.tree,t=e.hasFilter,n=e.config.allowFoldNodeOnFilter;return t&&!n&&this.vmIsLocked&&!this.vmIsRest?!0:this.isDisabledState()}},{key:`isDraggable`,value:function(){var e=!!J(this,`tree.config.draggable`);return typeof this.draggable==`boolean`&&(e=this.draggable),e}},{key:`isExpandMutex`,value:function(){var e=!!J(this,`tree.config.expandMutex`);return typeof this.expandMutex==`boolean`&&(e=this.expandMutex),e}},{key:`isActivable`,value:function(){var e=!!J(this,`tree.config.activable`);return typeof this.activable==`boolean`&&(e=this.activable),e}},{key:`isCheckable`,value:function(){var e=!!J(this,`tree.config.checkable`);return typeof this.checkable==`boolean`&&(e=this.checkable),e}},{key:`isActived`,value:function(e){var t=this.tree,n=this.value,r=e||t.activedMap;return!!(t.nodeMap.get(n)&&r.get(n))}},{key:`isExpanded`,value:function(e){var t=this.tree,n=this.value,r=this.vmIsLocked,i=t.hasFilter,a=t.config.allowFoldNodeOnFilter;if(i&&!a&&r)return!0;var o=e||t.expandedMap;return!!(t.nodeMap.get(n)&&o.get(n))}},{key:`isChecked`,value:function(e){var t=this.children,n=this.tree,r=this.value,i=n.config,a=i.checkStrictly,o=i.valueMode;if(!n.nodeMap.get(r)||!this.isCheckable())return!1;var s=e||n.checkedMap;if(a)return!!s.get(r);var c=!1;return s.get(r)&&(o!==`onlyLeaf`||this.isLeaf())?!0:(c=Array.isArray(t)&&t.length>0?t.every(function(e){return e.isChecked(s)}):this.getParents().some(function(e){return s.get(e.value)}),c)}},{key:`isIndeterminate`,value:function(){var e=this.children,t=this.tree,n=this.value,r=t.config.checkStrictly;if(!t.nodeMap.get(n)||!this.isCheckable()||r||!Array.isArray(e))return!1;var i=null;return e.some(function(e){return!!(e.isIndeterminate()||(of(i)&&(i=e.isChecked()),i!==e.isChecked()))})}},{key:`isFirst`,value:function(){return this.getSiblings()[0]===this}},{key:`isLast`,value:function(){var e=this.getSiblings();return e[e.length-1]===this}},{key:`isLeaf`,value:function(){var e=!1;return e=Array.isArray(this.children)?this.children.length<=0:!this.children,e}},{key:`lock`,value:function(e){this.vmIsLocked=e,this.expanded=this.isExpanded(),this.visible=this.isVisible()}},{key:`afterExpanded`,value:function(){this.update(),this.expanded&&this.children===!0&&this.loadChildren(),this.updateChildren()}},{key:`toggleExpanded`,value:function(e){return this.setExpanded(!this.isExpanded(),e)}},{key:`setExpanded`,value:function(e,t){var n=this.tree,r=n.config,i=KT({directly:!1},t),a=n.expandedMap;if(i.directly||(a=new Map(n.expandedMap)),e){var o=[];o.push(this),r.expandParent&&this.getParents().forEach(function(e){o.push(e)}),o.forEach(function(e){var t=!1;if(e.parent)t=e.parent.isExpandMutex();else{var r;t=n==null||(r=n.config)==null?void 0:r.expandMutex}t&&e.getSiblings().forEach(function(e){a.delete(e.value),e.update(),e.updateChildren()}),a.set(e.value,!0),e.update(),e.updateChildren()})}else a.delete(this.value);return i.directly&&this.afterExpanded(),n.getExpanded(a)}},{key:`toggleActived`,value:function(e){return this.setActived(!this.isActived(),e)}},{key:`setActived`,value:function(e,t){var n=this.tree,r=KT({isAction:!0,directly:!1},t),i=n.config||{},a=n.activedMap;if(r.directly||(a=new Map(n.activedMap)),r.isAction&&this.isDisabledState())return n.getActived(a);if(this.isActivable())if(e){var o=Array.from(a.keys());i.activeMultiple||a.clear(),o.forEach(function(e){n.getNode(e)?.update()}),a.set(this.value,!0)}else a.delete(this.value);return this.update(),n.getActived(a)}},{key:`hasEnableUnCheckedChild`,value:function(){var e=this.children;if(!Array.isArray(e)||e.length<=0)return!1;var t=!1;return e.some(function(e){return e.isDisabledState()||e.isChecked()?!1:e.isIndeterminate()?e.hasEnableUnCheckedChild()?(t=!0,!0):!1:(t=!0,!0)}),t}},{key:`toggleChecked`,value:function(e){if(this.isIndeterminate()){var t=this.hasEnableUnCheckedChild();return this.setChecked(t,e)}return this.setChecked(!this.isChecked(),e)}},{key:`setChecked`,value:function(e,t){var n=this.tree,r=n.config||{},i=KT({isAction:!0,directly:!1},t),a=n.checkedMap;return i.directly||(a=new Map(n.checkedMap)),!this.isCheckable()||i.isAction&&this.isDisabledState()||e===this.isChecked()&&!(this.isIndeterminate()&&!this.hasEnableUnCheckedChild())?n.getChecked(a):(e?a.set(this.value,!0):a.delete(this.value),r.checkStrictly?i.directly&&this.updateChecked():(this.spreadChildrenChecked(e,a,i),this.spreadParentChecked(e,a,i),i.directly&&n.getRelatedNodes([this.value],{reverse:!0}).forEach(function(e){e.updateChecked()})),n.getChecked(a))}},{key:`spreadParentChecked`,value:function(e,t,n){var r=KT({isAction:!0,directly:!1},n);if(this.isCheckable()){var i=this.children;Array.isArray(i)&&i.length>0&&t.delete(this.value);var a=this.parent;a&&a.spreadParentChecked(e,t,r)}}},{key:`spreadChildrenChecked`,value:function(e,t,n){var r=KT({isAction:!0,directly:!1},n);if(this.isCheckable()&&!(r.isAction&&this.isDisabledState())){var i=this.children;Array.isArray(i)&&(i.length<=0||(t.delete(this.value),i.forEach(function(n){r.isAction&&n.isDisabledState()||(e?t.set(n.value,!0):t.delete(n.value),n.spreadChildrenChecked(e,t,r))})))}}},{key:`setDisabled`,value:function(e){var t;!this.tree.config.checkStrictly&&(t=this.parent)!=null&&t.isDisabled()||(this.disableManually=e,this.update(),this.updateChildren())}},{key:`update`,value:function(){this.level=this.getLevel(),this.vmIsFirst=this.isFirst(),this.vmIsLast=this.isLast(),this.vmIsLeaf=this.isLeaf(),this.vmCheckable=this.isCheckable(),this.vmIsRest=this.isRest(),this.actived=this.isActived(),this.expanded=this.isExpanded(),this.visible=this.isVisible(),this.disabled=this.isDisabled(),this.tree.updated(this)}},{key:`updateChecked`,value:function(){var e=this.tree,t=this.value,n=e.checkedMap;this.checked=this.isChecked(),this.indeterminate=this.isIndeterminate(),this.checked&&n.set(t,!0),e.updated(this)}},{key:`updateChildren`,value:function(){var e=this;this.spreadChildren(function(t){t!==e&&(t.update(),t.updateChecked())})}},{key:`updateParents`,value:function(){var e=this;this.spreadParents(function(t){t!==e&&(t.update(),t.updateChecked())})}},{key:`updateRelated`,value:function(){this.tree.getRelatedNodes([this.value]).forEach(function(e){e.update(),e.updateChecked()})}},{key:`walk`,value:function(){var e=[];return this.spreadChildren(function(t){e.push(t)}),e}},{key:`spreadChildren`,value:function(e){e(this);var t=this.children;Array.isArray(t)&&t.length>0&&t.forEach(function(t){t?.spreadChildren(e)})}},{key:`spreadParents`,value:function(e){e(this);var t=this.parent;t&&t?.spreadParents(e)}},{key:`getModel`,value:function(){var e=this.model;return e||(e=WT(this),this.model=e),e}}])}();function $T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?$T(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$T(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tE(e){var t=Promise.resolve();return t.then(e),t}var nE=function(){function e(t){Xp(this,e),G(this,`children`,void 0),G(this,`nodes`,void 0),G(this,`nodeMap`,void 0),G(this,`privateMap`,void 0),G(this,`config`,void 0),G(this,`activedMap`,void 0),G(this,`updatedMap`,void 0),G(this,`checkedMap`,void 0),G(this,`expandedMap`,void 0),G(this,`filterMap`,void 0),G(this,`hasFilter`,void 0),G(this,`emitter`,void 0),G(this,`updateTick`,void 0),G(this,`shouldReflow`,void 0),G(this,`prevFilter`,void 0);var n=eE({prefix:`t`,keys:{},expandAll:!1,expandLevel:0,expandMutex:!1,expandParent:!1,activable:!1,activeMultiple:!1,checkable:!1,checkStrictly:!1,disabled:!1,disableCheck:!1,draggable:!1,load:null,lazy:!1,valueMode:`onlyLeaf`,filter:null,allowFoldNodeOnFilter:!1,onLoad:null,onReflow:null,onUpdate:null},t);this.config=n,this.nodes=[],this.children=[],this.nodeMap=new Map,this.privateMap=new Map,this.activedMap=new Map,this.expandedMap=new Map,this.checkedMap=new Map,this.updatedMap=new Map,this.filterMap=new Map,this.prevFilter=null,this.updateTick=null,this.shouldReflow=!1,this.hasFilter=q(n.filter),this.emitter=VT()}return Yp(e,[{key:`setConfig`,value:function(e){var t=this.config,n=!1;Object.keys(e).forEach(function(r){var i=e[r];i!==t[r]&&(n=!0,t[r]=i)}),this.hasFilter=q(t.filter),n&&this.refreshState()}},{key:`getChildren`,value:function(){return this.children}},{key:`getNode`,value:function(e){var t=null;return Rd(e)||nf(e)?t=this.nodeMap.get(e):e instanceof QT&&(t=this.nodeMap.get(e.value)),t||=null,t}},{key:`getIndex`,value:function(e){return this.nodes.indexOf(e)}},{key:`getParent`,value:function(e){var t=null,n=this.getNode(e);return n&&(t=n.getParent()),t}},{key:`getParents`,value:function(e){var t=this.getNode(e),n=[];return t&&(n=t.getParents()),n}},{key:`getNodeIndex`,value:function(e){var t=this.getNode(e),n=-1;return t&&(n=t.getIndex()),n}},{key:`getNodes`,value:function(e,t){var n=[],r=``;if(Rd(e)||nf(e)?r=e:e instanceof QT&&(r=e.value),!r&&r!==0)n=this.nodes.slice(0);else{var i=this.getNode(r);i&&(n=i.walk())}if(t){var a=eE({filter:null,level:1/0},t);nf(a.level)&&a.level!==1/0&&(n=n.filter(function(e){return e.level<=a.level})),q(a.filter)&&(n=n.filter(function(e){var t=e.getModel();return a.filter(t)})),gc(a.props)&&(n=n.filter(function(e){return Object.keys(a.props).every(function(t){return e[t]===a.props[t]})}))}return n}},{key:`append`,value:function(e){var t=this;e.forEach(function(e){var n=new QT(t,e);t.children.push(n)}),this.reflow()}},{key:`reload`,value:function(e){this.removeAll(),this.append(e)}},{key:`parseNodeData`,value:function(e,t){var n=``,r=null,i=null;return Rd(e)||nf(e)?(n=e,r=this.getNode(n),i=t):e instanceof QT&&t?(r=e,i=t):i=e,{node:r,data:i}}},{key:`appendNodes`,value:function(e,t){var n=this.parseNodeData(e,t);n.data&&(n.node?(n.data instanceof QT?n.data.appendTo(this,n.node):K(n.data)?n.node.append(n.data):n.node.append([n.data]),n.node.updateRelated()):n.data instanceof QT?n.data.appendTo(this):Array.isArray(n.data)?this.append(n.data):this.append([n.data]))}},{key:`insertBefore`,value:function(e,t){var n=this.getNode(e);n&&n.insertBefore(t)}},{key:`insertAfter`,value:function(e,t){var n=this.getNode(e);n&&n.insertAfter(t)}},{key:`refreshNodes`,value:function(){var e=this.children,t=this.nodes;t.length=0,e.forEach(function(e){var n=e.walk();Array.prototype.push.apply(t,n)})}},{key:`reflow`,value:function(e){this.shouldReflow=!0,this.updated(e)}},{key:`updated`,value:function(e){var t=this,n=this.updatedMap;e?n.set(e[ZT],`changed`):this.getNodes().forEach(function(e){n.set(e[ZT],`changed`)}),!this.updateTick&&(this.updateTick=tE(function(){t.updateTick=null,t.shouldReflow&&(t.refreshNodes(),t.emit(`reflow`)),t.lockFilterPathNodes();var e=`t${new Date().getTime()}`,r=Array.from(n.keys()).map(function(r){return n.set(r,e),t.privateMap.get(r)});t.emit(`update`,{nodes:r,map:n}),t.shouldReflow=!1,n.clear()}))}},{key:`getActived`,value:function(e){var t=e||this.activedMap;return Array.from(t.keys())}},{key:`getActivedNodes`,value:function(e){var t=this.getNodes(e);return t=t.filter(function(e){return e.isActived()}),t}},{key:`replaceActived`,value:function(e){this.resetActived(),this.setActived(e)}},{key:`setActived`,value:function(e){var t=this,n=this.config.activeMultiple,r=e.slice(0);n||(r.length=1),r.forEach(function(e){t.activedMap.set(e,!0);var n=t.getNode(e);n&&n.update()})}},{key:`resetActived`,value:function(){var e=this.getActived();this.activedMap.clear(),this.getRelatedNodes(e).forEach(function(e){e.update()})}},{key:`getExpanded`,value:function(e){var t=e||this.expandedMap;return Array.from(t.keys())}},{key:`replaceExpanded`,value:function(e){var t=this.getExpanded(),n=Td(e,t),r=Td(t,e);this.setExpandedDirectly(r,!1),this.updateExpanded(r),this.setExpanded(n)}},{key:`setExpanded`,value:function(e){this.setExpandedDirectly(e),this.updateExpanded(e)}},{key:`setExpandedDirectly`,value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;e.forEach(function(e){var r=t.getNode(e);!(r!=null&&r.isLeaf())&&n?t.expandedMap.set(e,!0):t.expandedMap.delete(e),r?.afterExpanded()})}},{key:`resetExpanded`,value:function(){var e=this.getExpanded();this.expandedMap.clear(),this.updateExpanded(e)}},{key:`updateExpanded`,value:function(e){this.getRelatedNodes(e,{withParents:!1}).forEach(function(e){e.update()})}},{key:`getChecked`,value:function(e){var t=this.nodeMap,n=this.config,r=n.valueMode,i=n.checkStrictly,a=[],o=e||this.checkedMap;return t.forEach(function(e){e.isChecked(o)&&(r===`parentFirst`&&!i?(!e.parent||!e.parent.isChecked(o))&&a.push(e.value):r===`onlyLeaf`&&!i?e.isLeaf()&&a.push(e.value):a.push(e.value))}),a}},{key:`getCheckedNodes`,value:function(e){var t=this.getNodes(e);return t=t.filter(function(e){return e.isChecked()}),t}},{key:`replaceChecked`,value:function(e){this.resetChecked(),this.setChecked(e)}},{key:`setChecked`,value:function(e){var t=this,n=this.config,r=n.checkStrictly;if(n.checkable&&(e.forEach(function(e){var n=t.getNode(e);n&&(r?(t.checkedMap.set(e,!0),n.updateChecked()):n.walk().forEach(function(e){t.checkedMap.set(e.value,!0)}))}),!r)){var i=this.getChecked();this.getRelatedNodes(i).forEach(function(e){e.updateChecked()})}}},{key:`resetChecked`,value:function(){var e=this.getChecked(),t=this.getRelatedNodes(e);this.checkedMap.clear(),t.forEach(function(e){e.updateChecked()})}},{key:`refreshState`,value:function(){this.nodeMap.forEach(function(e){e.update()})}},{key:`updateAll`,value:function(){this.nodeMap.forEach(function(e){e.update(),e.updateChecked()})}},{key:`remove`,value:function(e){var t=this.getNode(e);t&&t.remove()}},{key:`removeAll`,value:function(){this.expandedMap.clear(),this.checkedMap.clear(),this.activedMap.clear(),this.filterMap.clear(),this.nodeMap.clear(),this.privateMap.clear(),this.updatedMap.clear(),this.nodes=[],this.children=[],this.reflow()}},{key:`getRelatedNodes`,value:function(e,t){var n=this,r=eE({reverse:!1,withParents:!0},t),i=new Map;e.forEach(function(e){if(!i.get(e)){var t=n.getNode(e);if(t){var a=t.getParents().reverse(),o=t.walk(),s=[];s=r.withParents?a.concat(o):o,s.forEach(function(e){i.set(e.value,e)})}}});var a=Array.from(i.values());return r.reverse&&(a=a.reverse()),a}},{key:`emit`,value:function(e,t){var n=this.config,r=this.emitter,i=n[Yc(`on-${e}`)];q(i)&&i(t),r.emit(e,t)}},{key:`lockFilterPathNodes`,value:function(){var e=this.config,t=this.getNodes();this.prevFilter&&t.forEach(function(e){e.vmIsLocked&&e.lock(!1)});var n=e.filter;!n||!q(n)||(this.prevFilter=e.filter,t.reverse().forEach(function(e){var t=e.getParent();t&&(e.vmIsRest||e.vmIsLocked)&&(t.vmIsLocked||t.lock(!0))}))}}])}();function rE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function iE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?rE(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var aE=function(e,t,n,r){var i=Dt({treeStore:null,inputVal:null,scopeVal:void 0,treeNodes:[],expend:[]}),a=U(function(){return(e.valueMode===`parentFirst`||e.checkStrictly)&&i.inputVal});return{statusContext:i,cascaderContext:U(function(){var o=e.size,s=e.checkStrictly,c=e.lazy,l=e.multiple,u=e.filterable,d=e.clearable,f=e.checkProps,p=e.max,m=e.disabled,h=e.showAllLevels,g=e.minCollapsedNum,_=e.valueType,v=e.modelValue,y=e.valueMode,b=e.reserveKeyword;return iE(iE({value:i.scopeVal,size:o,checkStrictly:s,lazy:c,multiple:l,filterable:u,clearable:d,checkProps:f,max:p,disabled:m,showAllLevels:h,minCollapsedNum:g,valueType:_,valueMode:y,reserveKeyword:b,visible:n.value,isParentFilterable:a.value},i),{},{setTreeNodes:function(e){i.treeNodes=e},setValue:function(e,n,r){ef(e,v)||t(e,{source:n,node:r})},setVisible:r,setInputVal:function(e){i.inputVal=e},setExpand:function(e){i.expend=e}})})}},oE=function(e){var t=Sm(),n=Wt(e),r=n.value,i=n.modelValue,a=n.popupVisible,o=Y(Rm(r,i,e.defaultValue,e.onChange),2),s=o[0],c=o[1],l=Y(bm(a,!1,e.onPopupVisibleChange,`popupVisible`),2),u=l[0],d=l[1],f=aE(e,c,u,d),p=f.cascaderContext,m=f.statusContext,h=U(function(){return!!(e.filterable||q(e.filter))}),g=function(){var t=p.value,n=t.inputVal,r=t.treeStore,i=t.setTreeNodes,a=t.isParentFilterable;kT(n,r,i,e.filter,a)},_=function(){var e=p.value,t=e.value,n=e.treeStore,r=m.expend;jT(n,t,r),n.replaceChecked(_T(t))};return R(function(){return e.options},function(){var t=e.options,n=e.keys,r=n===void 0?{}:n,i=e.checkStrictly,a=e.lazy,o=e.load,s=e.valueMode,c=m.treeStore;if(!(!t.length&&!c)){if(c)c.reload(t),c.refreshNodes();else{var l=new nE({keys:iE(iE({},r),{},{children:Rd(r.children)?r.children:`children`}),checkable:!0,expandMutex:!0,expandParent:!0,lazy:a,load:o,valueMode:s,checkStrictly:i,onLoad:function(){dn(function(){l.refreshNodes(),g()})}});l.append(t),m.treeStore=l}_(),g()}},{immediate:!0,deep:!0}),R(function(){var t=e.checkStrictly,n=e.lazy,r=e.load,i=e.valueMode;return JSON.stringify({valueMode:i,checkStrictly:t,lazy:n,load:r})},function(){var n=m.treeStore;if(n){var r=e.checkStrictly,i=e.lazy,a=e.load,o=e.valueMode,s={checkStrictly:r,disable:t.value,load:a,lazy:i,valueMode:o};n.setConfig(s)}},{immediate:!0}),R(s,function(){var e=p.value,t=e.setValue,n=e.multiple,r=e.valueType;bT(s.value,p.value)&&t(n?[]:``,`invalid-value`),yT(s.value)?m.scopeVal=n?[]:``:m.scopeVal=vT(s.value,r,n),m.treeStore&&(_(),g())},{immediate:!0}),R(function(){return u.value&&h.value},function(e){var t=p.value.setInputVal;e&&t(``)}),R(function(){return m.inputVal},function(){g()}),{cascaderContext:p,isFilterable:h,innerValue:s,getCascaderItems:function(e){var t=[];return e.forEach(function(e){var n=m.treeStore?.getNodes(e);n&&n[0]&&t.push(n[0].data)}),t}}};function sE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?sE(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var lE=z({name:`TCascader`,props:PT,setup:function(e,t){var n=t.slots,r=Q(`cascader`),i=Q(),a=ym().STATUS,o=Q(`cascader__popup`),s=Rp(`cascader`).globalConfig,c=Sm(),l=Mm(),u=pm(),d=oE(e),f=d.cascaderContext,p=d.innerValue,m=d.isFilterable,h=d.getCascaderItems,g=U(function(){return e.multiple?mT(f.value):pT(f.value)}),_=U(function(){return hT(f.value.treeNodes)}),v=U(function(){return f.value.visible&&!e.multiple&&pT(f.value)||(e.placeholder??s.value.placeholder)}),y=function(){if(e.suffixIcon||n.suffixIcon)return u(`suffixIcon`);var t=f.value.visible;return V(DS,{overlayClassName:lT(i.value,a.value,f.value),isActive:t},null)},b=U(function(){var t=p.value instanceof Array?p.value:[p.value],n=e.multiple&&e.minCollapsedNum?t.slice(0,e.minCollapsedNum):p.value,r=h(t);return{value:p.value,selectedOptions:r,onClose:function(t){OT(f.value,t,e.onRemove)},displayValue:n}}),x=function(){return u(`valueDisplay`,{params:b.value})},S=function(){var t=u(`label`);return e.multiple?t:t?V(`div`,{class:`${i.value}-tag-input__prefix`},[t]):null},C=U(function(){return[r.value,e.multiple?`${r.value}--multiple`:`${r.value}--single`]});return function(){var t=f.value,r=t.setVisible,i=t.visible,a=t.inputVal,s=t.setInputVal,d=Jm(e.selectInputProps,{onTagChange:function(t,n){n.trigger!==`enter`&&OT(f.value,n.index,e.onRemove)},onInputChange:function(e){m.value&&s(`${e}`)},onPopupVisibleChange:function(e,t){c.value||r(e,t)},onBlur:function(t,n){var r;(r=e.onBlur)==null||r.call(e,{value:f.value.value,inputValue:n.inputValue||``,e:n.e})},onFocus:function(t,n){var r;(r=e.onFocus)==null||r.call(e,{value:f.value.value,e:n.e})},onClear:function(){DT(f.value)}});return V(ZC,H({class:C.value,value:g.value,inputValue:i?a:``,popupVisible:i,keys:e.keys,allowInput:m.value,"min-collapsed-num":e.minCollapsedNum,"collapsed-items":e.collapsedItems,readonly:l.value,disabled:c.value,clearable:e.clearable,placeholder:v.value,multiple:e.multiple,loading:e.loading,status:e.status,tips:e.tips,borderless:e.borderless,label:S,valueDisplay:x,prefixIcon:e.prefixIcon,suffix:e.suffix,suffixIcon:function(){return y()},popupProps:cE(cE({},e.popupProps),{},{overlayInnerStyle:_.value.length&&!e.loading?{width:`auto`}:``,overlayClassName:[o.value,e.popupProps?.overlayClassName]}),inputProps:cE({size:e.size},e.inputProps),tagInputProps:cE({size:e.size},e.tagInputProps),tagProps:cE({},e.tagProps)},d.value),{label:n.label,suffix:n.suffix,prefixIcon:n.prefixIcon,panel:function(){return V(bi,null,[u(`panelTopContent`),V(BT,{option:e.option,options:e.options,empty:e.empty,trigger:e.trigger,loading:e.loading,loadingText:e.loadingText,cascaderContext:f.value},{option:n.option,empty:n.empty,loadingText:n.loadingText,columnHeader:n.columnHeader,columnFooter:n.columnFooter}),u(`panelBottomContent`)])},collapsedItems:n.collapsedItems})}}}),uE=z({name:`TCascaderPanel`,props:PT,setup:function(e,t){var n=t.slots,r=oE(e).cascaderContext;return function(){return V(BT,{trigger:e.trigger,cascaderContext:r.value,empty:e.empty},{empty:n.empty,option:n.option,loadingText:n.loadingText})}}}),dE=X(lE),fE=X(uE),pE={exports:{}};pE.exports,(function(e,t){(function(t,n){e.exports=n()})(qf,function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},o=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],l=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=a.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},d={A:[i,function(e){this.afternoon=u(e,!1)}],a:[i,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*e}],SS:[n,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s(`seconds`)],ss:[r,s(`seconds`)],m:[r,s(`minutes`)],mm:[r,s(`minutes`)],H:[r,s(`hours`)],h:[r,s(`hours`)],HH:[r,s(`hours`)],hh:[r,s(`hours`)],D:[r,s(`day`)],DD:[n,s(`day`)],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],M:[r,s(`month`)],MM:[n,s(`month`)],MMM:[i,function(e){var t=l(`months`),n=(l(`monthsShort`)||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[i,function(e){var t=l(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,s(`year`)],YY:[n,function(e){this.year=o(e)}],YYYY:[/\d{4}/,s(`year`)],Z:c,ZZ:c};function f(n){for(var r=n,i=a&&a.formats,o=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),s=o.length,c=0;c<s;c+=1){var l=o[c],u=d[l],f=u&&u[0],p=u&&u[1];o[c]=p?{regex:f,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=o[n];if(typeof i==`string`)r+=i.length;else{var a=i.regex,c=i.parser,l=e.slice(r),u=a.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(o=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,o=e.args;this.$u=r;var s=o[1];if(typeof s==`string`){var c=!0===o[2],l=!0===o[3],u=c||l,d=o[2];l&&(d=o[2]),a=this.$locale(),!c&&d&&(a=n.Ls[d]),this.$d=function(e,t,n){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var r=f(t)(e),i=r.year,a=r.month,o=r.day,s=r.hours,c=r.minutes,l=r.seconds,u=r.milliseconds,d=r.zone,p=new Date,m=o||(i||a?1:p.getDate()),h=i||p.getFullYear(),g=0;i&&!a||(g=a>0?a-1:p.getMonth());var _=s||0,v=c||0,y=l||0,b=u||0;return d?new Date(Date.UTC(h,g,m,_,v,y,b+60*d.offset*1e3)):n?new Date(Date.UTC(h,g,m,_,v,y,b)):new Date(h,g,m,_,v,y,b)}catch{return new Date(``)}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),a={}}else if(s instanceof Array)for(var p=s.length,m=1;m<=p;m+=1){o[1]=s[m-1];var h=n.apply(this,o);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===p&&(this.$d=new Date(``))}else i.call(this,e)}}})})(pE,pE.exports);var mE=pE.exports,hE=Jf(mE),gE={exports:{}};gE.exports,(function(e,t){(function(t,n){e.exports=n()})(qf,function(){return function(e,t){t.prototype.isoWeeksInYear=function(){var e=this.isLeapYear(),t=this.endOf(`y`).day();return t===4||e&&t===5?53:52}}})})(gE,gE.exports);var _E=gE.exports,vE=Jf(_E),yE={exports:{}};yE.exports,(function(e,t){(function(t,n){e.exports=n()})(qf,function(){return function(e,t){t.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}})})(yE,yE.exports);var bE=yE.exports,xE=Jf(bE);Z.extend(vE),Z.extend(xE),Z.extend(hE);var SE=`HH:mm:ss`;function CE(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:``).replace(/\W?Y{2,4}|\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,``).trim()}function wE(e,t,n,r,i){if(e===``||e===null)return Z();var a=e;if(/[w|W]/g.test(t)){Rd(a)||(a=Z(a).locale(r||`zh-cn`).format(t));var o=a.split(/[-/.\s]/)[0],s=a.split(/[-/.\s]/)[1],c=t.split(/[-/.\s]/)[1],l=Z(o,`YYYY`).locale(r||`zh-cn`).startOf(`year`);(l.day()>4||l.day()===0)&&(l=l.add(1,`week`));for(var u=Z(o,`YYYY`).locale(r||`zh-cn`).isoWeeksInYear(),d=0;d<=u;d+=1){var f=l.add(d,`week`);if(n===`start`&&(f=f.subtract(5,`day`)),f.format(c)===s){if(i){var p=(i||``).split(`:`).map(function(e){return Number(e)});f=f.hour(p[0]||0).minute(p[1]||0).second(p[2]||0)}return f}}}if(/Q/g.test(t)){Rd(a)||(a=Z(a).locale(r||`zh-cn`).format(t));for(var m=a.split(/[-/.\s]/)[0],h=a.split(/[-/.\s]/)[1],g=t.split(/[-/.\s]/)[1],_=Z(m,`YYYY`).startOf(`year`),v=0;v<4;v+=1){var y=_.add(v,`quarter`);if(y.format(g)===h){if(i){var b=(i||``).split(`:`).map(function(e){return Number(e)});return y.hour(b[0]||0).minute(b[1]||0).second(b[2]||0)}return y}}}var x=Z(a,t).isValid()?Z(a,t):Z(a);if(!x.isValid())return Vp.error(`DatePicker`,`Check whether the format、value format is valid.
value: '${e}', format: '${t}'`),Z();try{var S=CE(t||``);if(i&&(!S||S.trim()===``)&&i){var C=i.split(`:`).map(function(e){return Number(e)});return x.hour(C[0]||0).minute(C[1]||0).second(C[2]||0)}}catch(e){Vp.error(`DatePicker`,`set defaultTime error: ${e}`)}return x}function TE(e){var t=e.newDate,n=e.format,r=e.dayjsLocale,i=e.targetFormat,a=e.autoSwap,o=e.defaultTime;if(!t||!Array.isArray(t))return[];var s=t.map(function(e,t){return e&&wE(e,n,void 0,void 0,o?.[t]).locale(r)});return a&&s[0]&&s[1]&&s[0].toDate().getTime()>s[1].toDate().getTime()&&(s=[s[1],s[0]]),s.some(function(e){return e&&!e.isValid()})?(Vp.error(`DatePicker`,`Check whether the value、format、valueType format is valid.
format: '${n}' value: '${t}' valueType: '${i}'`),[]):i===`time-stamp`?s.map(function(e){return e&&e.toDate().getTime()}):i===`Date`?s.map(function(e){return e&&e.toDate()}):s.map(function(e){return e&&e.format(i||n)})}function EE(e){var t=e.newDate,n=e.format,r=e.targetFormat,i=e.dayjsLocale,a=e.defaultTime;if(!t)return``;var o=wE(t,n,void 0,void 0,a).locale(i);return o.isValid()?r===`time-stamp`?o.toDate().getTime():r===`Date`?o.toDate():o.format(r||n):(Vp.error(`DatePicker`,`Check whether the format、value format is valid.
format: '${n}' value: '${t}'`),``)}function DE(e,t){return Array.isArray(e)?e.every(function(e){return e===``||Z(e,t).isValid()||Z(e).isValid()}):e===``||Z(e,t).isValid()||Z(e).isValid()}function OE(e,t){var n=t.format,r=t.targetFormat,i=t.dayjsLocale,a=i===void 0?`zh-cn`:i,o=t.autoSwap,s=t.defaultTime;return Array.isArray(e)?TE({newDate:e,format:n,dayjsLocale:a,targetFormat:r,autoSwap:o,defaultTime:s}):EE({newDate:e,format:n,dayjsLocale:a,targetFormat:r,defaultTime:Array.isArray(s)?``:s})}function kE(e,t){if(e&&t){var n=e.split(`:`),r=t.split(`:`);return n.slice(0,r.length).join(`:`)}return e}function AE(e,t,n,r){var i=Array.isArray(e)?e:[e];return r=Array.isArray(r)?r:[r,r],i=i.map(function(e,i){if(e){var a=Z(e,typeof e==`string`?t:void 0).format(n);return!Z(a,n).isValid()&&r[i]?r[i]:a}return kE(r[i],n)}),i=i.length?i:r.map(function(e){return kE(e,n)}),Array.isArray(e)?i:i?.[0]}function jE(e){var t=e.mode,n=t===void 0?`date`:t,r=e.format,i=e.valueType,a=e.enableTimePicker;return n===`year`?{format:r||`YYYY`,valueType:i||r||`YYYY`,timeFormat:SE}:n===`month`?{format:r||`YYYY-MM`,valueType:i||r||`YYYY-MM`,timeFormat:SE}:n===`quarter`?{format:r||`YYYY-[Q]Q`,valueType:i||r||`YYYY-[Q]Q`,timeFormat:SE}:n===`week`?{format:r||`gggg-wo`,valueType:i||r||`gggg-wo`,timeFormat:SE}:n===`date`?{format:r||`YYYY-MM-DD${a?` HH:mm:ss`:``}`,valueType:i||r||`YYYY-MM-DD${a?` HH:mm:ss`:``}`,timeFormat:CE(r||`YYYY-MM-DD${a?` HH:mm:ss`:``}`)||SE}:(Vp.error(`DatePicker`,`Invalid mode: ${n}`),{})}function ME(e){var t=e.value,n=e.mode,r=n===void 0?`date`:n,i=e.format,a=e.timeFormat,o=a===void 0?`HH:mm:ss`:a,s=e.enableTimePicker,c={year:[Z().year(),Z().year()],month:[Z().month(),Z().month()],time:[Z().format(o),Z().format(o)]};return r===`year`?c.year[1]+=10:r===`month`||r===`quarter`?c.year[1]+=1:(r===`date`||r===`week`)&&(!s||Do(s)&&s?.mode===`switch`)&&(c.month[0]===11?(c.year[1]+=1,c.month[1]=0):c.month[1]+=1),!t||!Array.isArray(t)||!t.length?c:{year:t.map(function(e){return wE(e,i).year()}),month:t.map(function(e){return wE(e,i).month()}),time:t.map(function(e){return wE(e,i).format(o)})}}function NE(e){var t=Wt(e),n=t.value,r=t.modelValue,i=Y(Rm(n,r,e.defaultValue,e.onChange),2),a=i[0],o=i[1],s=U(function(){return jE({mode:e.mode,format:e.format,enableTimePicker:!e.multiple&&e.enableTimePicker})});e.enableTimePicker&&(CE(s.value.format)||console.error(`format: ${s.value.format} 不规范,包含时间选择必须要有时间格式化 HH:mm:ss`));var c=I(AE(e.multiple?a.value?.[0]:a.value,s.value.format,s.value.timeFormat,e.defaultTime)),l=I(wE(e.multiple?a.value?.[0]:a.value,s.value.format).month()),u=I(wE(e.multiple?a.value?.[0]:a.value,s.value.format).year()),d=I(OE(e.multiple?a.value?.[0]:a.value,{format:s.value.format}));return Tn(function(){if(!a.value){d.value=``;return}DE(a.value,s.value.format)&&(d.value=OE(a.value,{format:s.value.format}),c.value=AE(a.value,s.value.format,s.value.timeFormat,e.defaultTime))}),{year:u,month:l,value:a,time:c,cacheValue:d,onChange:o}}function PE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function FE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?PE(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function IE(e){var t=Q(`date-picker`),n=Sm(),r=I(),i=Mm(),a=NE(e),o=a.value,s=a.onChange,c=a.time,l=a.month,u=a.year,d=a.cacheValue,f=U(function(){return jE({mode:e.mode,format:e.format,valueType:e.valueType,enableTimePicker:!e.multiple&&e.enableTimePicker})}),p=I(!1),m=I(!1),h=I(e.multiple?OE(o.value,{format:f.value.format})||[]:OE(o.value,{format:f.value.format})),g=U(function(){var n=FE(FE({},e.inputProps),{},{size:e.size,ref:r,readonly:i.value||!e.allowInput,class:[G({},`${t.value}__input--placeholder`,m.value)]});return e.multiple?n:FE(FE({},n),{},{onBlur:function(t,n){var r;(r=e.onBlur)==null||r.call(e,{value:t,e:n.e})},onFocus:function(t,n){var r,i=n.e;(r=e.onFocus)==null||r.call(e,{value:o.value,e:i})},onChange:function(t){if(h.value=t,t===``){d.value=``,s(``,{dayjsValue:Z(),trigger:`clear`});return}if(DE(t,f.value.format)){d.value=t;var n=wE(t,f.value.format).month(),r=wE(t,f.value.format).year(),i=AE(t,f.value.format,f.value.timeFormat,e.defaultTime);!Number.isNaN(r)&&(u.value=r),!Number.isNaN(n)&&(l.value=n),!Number.isNaN(i)&&(c.value=i)}},onEnter:function(e){if(!e){s(``,{dayjsValue:Z(),trigger:`enter`}),p.value=!1;return}!DE(e,f.value.format)&&!DE(o.value,f.value.format)||(p.value=!1,DE(e,f.value.format)?s?.(OE(e,{format:f.value.format,targetFormat:f.value.valueType}),{dayjsValue:wE(e,f.value.format),trigger:`enter`}):DE(o.value,f.value.format)?h.value=OE(o.value,{format:f.value.format}):h.value=``)}})}),_=U(function(){return FE(FE({expandAnimation:!0},Sf(e.popupProps,`on-visible-change`)),{},{disabled:n.value,overlayInnerStyle:e.popupProps?.overlayInnerStyle??{width:`auto`},overlayClassName:[e.popupProps?.overlayClassName,`${t.value}__panel-container`],onVisibleChange:function(t,r){var i,a,o,s;if(!n.value){if((i=e.popupProps)==null||(a=i.onVisibleChange)==null||a.call(i,t,r),(o=e.popupProps)==null||(s=o[`on-visible-change`])==null||s.call(o,t,r),r.trigger===`trigger-element-click`){p.value=!0;return}p.value=t}}})});return R(o,function(e){if(!e){h.value=``;return}DE(e,f.value.format)&&(h.value=OE(e,{format:f.value.format}))}),{year:u,month:l,value:o,time:c,inputValue:h,popupVisible:p,inputProps:g,popupProps:_,inputRef:r,cacheValue:d,isHoverCell:m,onChange:s}}var LE={exports:{}};LE.exports,(function(e,t){(function(t,n){e.exports=n()})(qf,function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}});return r.bind(this)(a)}}})})(LE,LE.exports);var RE=LE.exports,zE=Jf(RE);function BE(e){if(e==null)throw TypeError(`Cannot destructure `+e)}function VE(){return VE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VE.apply(null,arguments)}var HE={exports:{}};HE.exports,(function(e,t){(function(t,n){e.exports=n()})(qf,function(){return function(e,t,n){t.prototype.isBetween=function(e,t,r,i){var a=n(e),o=n(t),s=(i||=`()`)[0]===`(`,c=i[1]===`)`;return(s?this.isAfter(a,r):!this.isBefore(a,r))&&(c?this.isBefore(o,r):!this.isAfter(o,r))||(s?this.isBefore(a,r):!this.isAfter(a,r))&&(c?this.isAfter(o,r):!this.isBefore(o,r))}}})})(HE,HE.exports);var UE=HE.exports,WE=Jf(UE),GE={exports:{}};GE.exports,(function(e,t){(function(t,n){e.exports=n()})(qf,function(){var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}})})(GE,GE.exports);var KE=GE.exports,qE=Jf(KE),JE={exports:{}};JE.exports,(function(e,t){(function(t,n){e.exports=n()})(qf,function(){return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return t===1&&e===11?n+1:e===0&&t>=52?n-1:n}}})})(JE,JE.exports);var YE=JE.exports,XE=Jf(YE),ZE={exports:{}};ZE.exports,(function(e,t){(function(t,n){e.exports=n()})(qf,function(){return function(e,t,n){var r=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var o=e.name?e:e.$locale(),s=i(o[t]),c=i(o[n]),l=s||c.map(function(e){return e.slice(0,r)});if(!a)return l;var u=o.weekStart;return l.map(function(e,t){return l[(t+(u||0))%7]})},o=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format(`MMMM`):a(e,`months`)},monthsShort:function(t){return t?t.format(`MMM`):a(e,`monthsShort`,`months`,3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format(`dddd`):a(e,`weekdays`)},weekdaysMin:function(t){return t?t.format(`dd`):a(e,`weekdaysMin`,`weekdays`,2)},weekdaysShort:function(t){return t?t.format(`ddd`):a(e,`weekdaysShort`,`weekdays`,3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(o(),`months`)},n.monthsShort=function(){return a(o(),`monthsShort`,`months`,3)},n.weekdays=function(e){return a(o(),`weekdays`,null,null,e)},n.weekdaysShort=function(e){return a(o(),`weekdaysShort`,`weekdays`,3,e)},n.weekdaysMin=function(e){return a(o(),`weekdaysMin`,`weekdays`,2,e)}}})})(ZE,ZE.exports);var QE=ZE.exports,$E=Jf(QE),eD={exports:{}};eD.exports,(function(e,t){(function(t,n){e.exports=n()})(qf,function(){var e=`month`,t=`quarter`;return function(n,r){var i=r.prototype;i.quarter=function(e){return this.$utils().u(e)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(e-1))};var a=i.add;i.add=function(n,r){return n=Number(n),this.$utils().p(r)===t?this.add(3*n,e):a.bind(this)(n,r)};var o=i.startOf;i.startOf=function(n,r){var i=this.$utils(),a=!!i.u(r)||r;if(i.p(n)===t){var s=this.quarter()-1;return a?this.month(3*s).startOf(e).startOf(`day`):this.month(3*s+2).endOf(e).endOf(`day`)}return o.bind(this)(n,r)}}})})(eD,eD.exports);var tD=eD.exports,nD=Jf(tD);function rD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function iD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?rD(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}Z.extend(qE),Z.extend(XE),Z.extend($E),Z.extend(nD),Z.extend(zE),Z.extend(hE),Z.extend(WE);function aD(e){return e&&e[0].toUpperCase().concat(e.substring(1,e.length))}function oD(e){var t=e.year,n=e.month;return new Date(t,n,1)}function sD(e){var t=e.year,n=e.month;return new Date(t,n+1,0).getDate()}function Bpe(e){var t=e.year,n=e.month;return new Date(t,n,sD({year:t,month:n}))}function cD(e,t){return e.getFullYear()===t.getFullYear()}function Vpe(e,t){return cD(e,t)&&Z(e).quarter()===Z(t).quarter()}function lD(e,t){return cD(e,t)&&e.getMonth()===t.getMonth()}function Hpe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`zh-cn`;return lD(e,t)&&Z(e).locale(n).week()===Z(t).locale(n).week()}function Upe(e,t){return lD(e,t)&&e.getDate()===t.getDate()}function uD(e,t){var n=e.getTime(),r=t.getTime();return n<r?-1:+(n>r)}function dD(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`date`,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`zh-cn`;return{isSameYear:cD,isSameQuarter:Vpe,isSameMonth:lD,isSameWeek:Hpe,isSameDate:Upe}[`isSame${aD(n)}`](e,t,r)}function fD(e,t,n){return t&&uD(e,t)===-1||n&&uD(e,n)===1}function pD(){var e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0)}function mD(e,t){return Z(e).subtract(t,`month`).toDate()}function hD(e,t){return Z(e).add(t,`month`).toDate()}function Wpe(e,t){for(var n=e.year,r=e.month,i=t.firstDayOfWeek,a=t.showWeekOfYear,o=a!==void 0&&a,s=t.disableDate,c=s===void 0?function(){return!1}:s,l=t.minDate,u=t.maxDate,d=t.dayjsLocale,f=d===void 0?`zh-cn`:d,p=t.cancelRangeSelectLimit,m=p!==void 0&&p,h=oD({year:n,month:r}),g=Bpe({year:n,month:r}),_=sD({year:n,month:r}),v=[],y=1,b=pD();y<=_;y++){var x=new Date(n,r,y);v.push({text:y,active:!1,value:x,disabled:q(c)&&c(x)||!m&&fD(x,l,u),now:dD(b,x),firstDayOfMonth:y===1,lastDayOfMonth:y===_,type:`current-month`,dayjsObj:Z(x).locale(f)})}if(h.getDay()!==i)for(h.setDate(0);v.unshift({text:h.getDate().toString(),active:!1,value:new Date(h),disabled:q(c)&&c(h)||!m&&fD(h,l,u),additional:!0,type:`prev-month`,dayjsObj:Z(h).locale(f)}),h.setDate(h.getDate()-1),h.getDay()!==Math.abs(i+6)%7;);for(var S=42;v.length<S;)g.setDate(g.getDate()+1),v.push({text:g.getDate(),active:!1,value:new Date(g),disabled:q(c)&&c(g)||!m&&fD(g,l,u),additional:!0,type:`next-month`,dayjsObj:Z(g).locale(f)});var C=Xc(v,7);return o&&C.forEach(function(e){e.unshift(iD(iD({},e[0]),{},{active:!1,value:e[0].value,text:Z(e[0].value).locale(f).week(),dayjsObj:Z(e[0].value).locale(f)}))}),C}function Gpe(e,t){for(var n=t.disableDate,r=n===void 0?function(){return!1}:n,i=t.minDate,a=t.maxDate,o=t.quarterLocal,s=t.dayjsLocale,c=s===void 0?`zh-cn`:s,l=t.cancelRangeSelectLimit,u=l!==void 0&&l,d=[],f=pD(),p=1;p<=4;p++){var m=Z(new Date(e,0)).quarter(p).toDate();d.push({value:m,now:dD(m,f,`quarter`),disabled:q(r)&&r(m)||!u&&fD(m,i,a),active:!1,text:o[p-1],dayjsObj:Z(m).locale(c)})}return Xc(d,4)}function Kpe(e,t){for(var n=t.disableDate,r=n===void 0?function(){return!1}:n,i=t.minDate,a=t.maxDate,o=t.dayjsLocale,s=o===void 0?`zh-cn`:o,c=t.cancelRangeSelectLimit,l=c!==void 0&&c,u=parseInt((e/10).toString(),10)*10,d=u+9,f=[],p=pD(),m=u;m<=d;m++){var h=new Date(m,0);f.push({value:h,now:dD(h,p,`year`),disabled:q(r)&&r(h)||!l&&fD(h,i,a),active:!1,text:`${h.getFullYear()}`,dayjsObj:Z(h).locale(s)})}return Xc(f,3)}function qpe(e,t){for(var n=t.disableDate,r=n===void 0?function(){return!1}:n,i=t.minDate,a=t.maxDate,o=t.monthLocal,s=t.dayjsLocale,c=s===void 0?`zh-cn`:s,l=t.cancelRangeSelectLimit,u=l!==void 0&&l,d=[],f=pD(),p=0;p<=11;p++){var m=new Date(e,p);d.push({value:m,now:dD(m,f,`month`),disabled:q(r)&&r(m)||!u&&fD(m,i,a),active:!1,text:o[m.getMonth()],dayjsObj:Z(m).locale(c)})}return Xc(d,3)}function Jpe(e,t){var n=VE({},(BE(t),t)),r=n.start,i=n.end,a=n.hoverStart,o=n.hoverEnd,s=n.type,c=s===void 0?`date`:s,l=n.isRange,u=l!==void 0&&l,d=n.value,f=n.multiple,p=f!==void 0&&f;return c===`week`?e:u?e.map(function(e){return e.map(function(e){var t=e,n=e.value,s=r&&dD(r,n,c),l=a&&dD(a,n,c),u=i&&dD(i,n,c),d=o&&dD(o,n,c);return t.active=(s||u)&&!t.additional,r&&i&&(t.highlight=Z(n).isBetween(r,i,c,`[]`)&&!t.additional,t.startOfRange=s,t.endOfRange=u),a&&o&&(t.hoverHighlight=Z(n).isBetween(a,o,c,`[]`)&&!t.additional,t.hoverStartOfRange=l,t.hoverEndOfRange=d),t})}):e.map(function(e){return e.map(function(e){var t=e;if(p){var n;t.active=d==null||(n=d.some)==null?void 0:n.call(d,function(e){return dD(Z(e).toDate(),t.value,c)&&!t.additional})}else t.active=r&&dD(e.value,r,c)&&!t.additional;return t})})}function gD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=e.match(/[ap]m/i)||[``],n=Y((e.match(/\d{1,2}(:\d{1,2})?(:\d{1,2})?([.:]\d{1,3})?/)||[`0:0:0:0`])[0].split(/[:.]/),4),r=n[0],i=r===void 0?0:r,a=n[1],o=a===void 0?0:a,s=n[2],c=s===void 0?0:s,l=n[3],u=l===void 0?0:l;return{hours:+i,minutes:+o,seconds:+c,milliseconds:+u,meridiem:t[0]}}function Ype(e){var t=e.value,n=e.disableDate,r=e.mode,i=e.format;if(!n)return!0;var a=r===`quarter`?`date`:r,o=!0;if(q(n))return!n(t);if(Array.isArray(n))return!n.map(function(e){return wE(e,i)}).some(function(e){return e.isSame(Z(t))});var s=n.from,c=n.to,l=n.before,u=n.after;if(s&&c){var d=Z(s).startOf(`day`),f=Z(c).endOf(`day`);return!Z(t).isBetween(d,f,a,`[]`)}var p=l?new Date(Z(l).startOf(`day`).format()):null,m=u?new Date(Z(u).endOf(`day`).format()):null;if(m&&p){var h=Z(new Date(p)),g=Z(new Date(m));o=Z(t).isBetween(h,g,a,`[]`)}else if(p){var _=Z(new Date(p));o=!Z(t).isBefore(_,a)}else if(m){var v=Z(new Date(m));o=!Z(t).isAfter(v,a)}return o}function Xpe(e,t){return t===`time-stamp`?new Date(e):Z(e,t).toDate()}function _D(e){if(!K(e))return{min:null,max:null};var t=Y(e,2),n=t[0],r=t[1],i=n==null?null:new Date(n),a=r==null?null:new Date(r);return i==null||a==null?{min:i,max:a}:i>a?{min:a,max:i}:{min:i,max:a}}function vD(e,t,n){if(K(e)){var r=_D(e),i=r.min,a=r.max;return!(i&&t===i.getFullYear()&&n<i.getMonth()||a&&t===a.getFullYear()&&n>a.getMonth()||i&&t<i.getFullYear()||a&&t>a.getFullYear())}if(q(e)){for(var o=e,s=new Date(t,n+1,0).getDate(),c=1;c<=s;c++)if(o(new Date(t,n,c)))return!0;return!1}return!0}function yD(e,t){if(K(e)){var n=_D(e),r=n.min,i=n.max;return!(r&&t<r.getFullYear()||i&&t>i.getFullYear())}if(q(e)){for(var a=0;a<12;a++)if(vD(e,t,a))return!0;return!1}return!0}function bD(e,t){for(var n=t-9;n<=t;n++)if(yD(e,n))return!0;return!1}function Zpe(e,t,n,r){var i={date:1,week:1,month:12,quarter:12,year:120}[t]||0,a=new Date(n,r||0),o=new Date(a.getFullYear(),a.getMonth()-i),s=new Date(a.getFullYear(),a.getMonth()+i),c=_D(e),l=c.min,u=c.max,d=function(e,t){return e.getFullYear()===t.getFullYear()?e.getMonth()-t.getMonth():e.getFullYear()-t.getFullYear()},f=!1,p=!1;if(K(e))l&&(f=t===`date`||t===`week`?d(o,l)<0:o.getFullYear()<l.getFullYear()),u&&(p=t===`date`||t===`week`?d(s,u)>0:s.getFullYear()>u.getFullYear()),t===`year`&&(l&&(f=o.getFullYear()<l.getFullYear()),u&&(p=s.getFullYear()>u.getFullYear()));else if(q(e)){if(t===`date`||t===`week`)f=!vD(e,o.getFullYear(),o.getMonth()),p=!vD(e,s.getFullYear(),s.getMonth());else if(t===`month`||t===`quarter`)f=!yD(e,o.getFullYear()),p=!yD(e,s.getFullYear());else if(t===`year`){var m=o.getFullYear()-o.getFullYear()%10+9,h=s.getFullYear()-s.getFullYear()%10+9;f=!bD(e,m),p=!bD(e,h)}}return{prev:f,next:p}}var xD={allowInput:Boolean,borderless:Boolean,cell:{type:Function},clearable:Boolean,defaultTime:{type:String,default:`00:00:00`},disableDate:{type:[Object,Array,Function]},disableTime:{type:Function},disabled:{type:Boolean,default:void 0},enableTimePicker:Boolean,firstDayOfWeek:{type:Number,validator:function(e){return!e||[1,2,3,4,5,6,7].includes(e)}},format:{type:String,default:void 0},inputProps:{type:Object},label:{type:[String,Function]},mode:{type:String,default:`date`,validator:function(e){return!e||[`year`,`quarter`,`month`,`week`,`date`].includes(e)}},multiple:Boolean,needConfirm:{type:Boolean,default:!0},panelActiveDate:{type:Object,default:void 0},placeholder:{type:[String,Array],default:void 0},popupProps:{type:Object},prefixIcon:{type:Function},presets:{type:[Object,Function]},presetsPlacement:{type:String,default:`bottom`,validator:function(e){return!e||[`left`,`top`,`right`,`bottom`].includes(e)}},range:{type:[Array,Function]},readonly:{type:Boolean,default:void 0},selectInputProps:{type:Object},size:{type:String,default:`medium`,validator:function(e){return!e||[`small`,`medium`,`large`].includes(e)}},status:{type:String,default:`default`,validator:function(e){return!e||[`default`,`success`,`warning`,`error`].includes(e)}},suffixIcon:{type:Function},timePickerProps:{type:Object},tips:{type:[String,Function]},value:{type:[String,Number,Array,Date],default:void 0},modelValue:{type:[String,Number,Array,Date],default:void 0},defaultValue:{type:[String,Number,Array,Date],default:``},valueDisplay:{type:[String,Function]},valueType:{type:String,default:``},onBlur:Function,onChange:Function,onClear:Function,onConfirm:Function,onFocus:Function,onMonthChange:Function,onPick:Function,onPresetClick:Function,onYearChange:Function};function SD(e){var t=e.disableDate,n=e.format,r=e.mode,i=e.start,a=e.end;return{disableDate:function(e){return!Ype({disableDate:t,format:n,mode:r,value:e})},minDate:Do(t)&&`before`in t?new Date(Z(t.before).startOf(`day`).format()):i,maxDate:Do(t)&&`after`in t?new Date(Z(t.after).endOf(`day`).format()):a}}function CD(e){var t=Wt(e),n=t.value,r=t.modelValue,i=Y(Rm(n,r,e.defaultValue,e.onChange),2),a=i[0],o=i[1],s=U(function(){return Array.isArray(a.value)?a.value:[]}),c=U(function(){return jE({mode:e.mode,format:e.format,valueType:e.valueType,enableTimePicker:e.enableTimePicker})});e.enableTimePicker&&(CE(c.value.format)||console.error(`format: ${c.value.format} 不规范,包含时间选择必须要有时间格式化 HH:mm:ss`)),Array.isArray(a.value)?DE(a.value,c.value.format)||console.error(`value: ${a.value} is invalid dateTime! Check whether the value is consistent with format: ${c.value.format}`):console.error(`typeof value: ${a.value} must be Array!`);var l=I(!1),u=I(ME({value:s.value,mode:e.mode,format:c.value.format,timeFormat:c.value.timeFormat}).time),d=I(ME({value:s.value,mode:e.mode,format:c.value.format,enableTimePicker:e.enableTimePicker}).month),f=I(ME({value:s.value,mode:e.mode,format:c.value.format}).year),p=I(OE(s.value,{format:c.value.format}));return R(function(){return l.value},function(){f.value[1]<f.value[0]&&(f.value[1]=f.value[0]),f.value[0]===f.value[1]&&d.value[1]<d.value[0]&&(d.value[1]=d.value[0])}),R(s,function(t){if(!a.value){p.value=[];return}DE(t,c.value.format)&&(p.value=OE(t,{format:c.value.valueType,targetFormat:c.value.format}),u.value=AE(t,c.value.format,c.value.timeFormat,e.defaultTime))},{immediate:!0}),{year:f,month:d,value:s,time:u,isFirstValueSelected:l,cacheValue:p,onRawChange:o}}function wD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function TD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?wD(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ED={first:`start`,second:`end`};function Qpe(e){var t=Q(`date-range-picker`),n=Rp(`datePicker`).globalConfig,r=Tm({CalendarIcon:Hh}).CalendarIcon,i=pm(),a=I(!1),o=I(),s=CD(e),c=s.value,l=s.onRawChange,u=s.time,d=s.month,f=s.year,p=s.cacheValue,m=s.isFirstValueSelected,h=U(function(){return jE({mode:e.mode,format:e.format,valueType:e.valueType,enableTimePicker:e.enableTimePicker})}),g=I(!1),_=I(!1),v=I(0),y=I(OE(e.value,{format:h.value.format})),b=Mm(),x=U(function(){return TD(TD({},e.rangeInputProps),{},{size:e.size,ref:o,borderless:e.borderless,clearable:e.clearable&&!b.value,prefixIcon:function(){return i(`prefixIcon`)},readonly:b.value||!e.allowInput,separator:e.separator||n.value.rangeSeparator,placeholder:e.placeholder||n.value.placeholder[e.mode],suffixIcon:function(){return i(`suffixIcon`)||V(r,null,null)},class:G({},`${t.value}__input--placeholder`,_.value),onClick:function(e){v.value=e.position===`first`?0:1},onClear:function(e){e instanceof MouseEvent?e.stopPropagation():e.e.stopPropagation(),g.value=!1,l?.([],{dayjsValue:[],trigger:`clear`})},onBlur:function(t,n){var r,i=n.e,a=n.position;(r=e.onBlur)==null||r.call(e,{value:t,partial:ED[a],e:i})},onFocus:function(t,n){var r,i=n.e,a=n.position;(r=e.onFocus)==null||r.call(e,{value:t,partial:ED[a],e:i}),v.value=a===`first`?0:1},onChange:function(e,t){if(t.e,t.position,y.value=e,e.every(function(e){return e===``})){p.value=[],l?.([],{dayjsValue:[],trigger:`clear`});return}if(DE(e,h.value.format)){p.value=e;var n=[],r=[],i=[];e.forEach(function(e){n.push(wE(e,h.value.format).year()),r.push(wE(e,h.value.format).month()),i.push(wE(e,h.value.format).format(h.value.timeFormat))}),f.value=n,d.value=r,u.value=i}},onEnter:function(e){!DE(e,h.value.format)&&!DE(c.value,h.value.format)||(g.value=!1,DE(e,h.value.format)?l?.(OE(e,{format:h.value.format,targetFormat:h.value.valueType,autoSwap:!0}),{dayjsValue:e.map(function(e){return wE(e,h.value.format)}),trigger:`enter`}):DE(c.value,h.value.format)?y.value=OE(c.value,{format:h.value.format}):y.value=[])}})}),S=U(function(){return TD(TD({expandAnimation:!0},Sf(e.popupProps,`on-visible-change`)),{},{overlayInnerStyle:e.popupProps?.overlayInnerStyle??{width:`auto`},overlayClassName:[e.popupProps?.overlayClassName,`${t.value}__panel-container`],onVisibleChange:function(t,n){var r,i,a,s;if(!b.value){if((r=e.popupProps)==null||(i=r.onVisibleChange)==null||i.call(r,t,n),(a=e.popupProps)==null||(s=a[`on-visible-change`])==null||s.call(a,t,n),n.trigger===`trigger-element-click`){o.value.focus({position:{0:`first`,1:`second`}[v.value]}),g.value=!0;return}g.value=t}}})});return R(c,function(e){if(!e){y.value=[];return}DE(e,h.value.format)&&(y.value=OE(e,{format:h.value.valueType,targetFormat:h.value.format}))},{immediate:!0}),R(v,function(e){var t,n;if(!a.value){a.value=!0;return}g.value&&((t=o.value)==null||(n=t.focus)==null||n.call(t,{position:{0:`first`,1:`second`}[e]}))},{immediate:!0}),{year:f,month:d,value:c,time:u,inputValue:y,popupVisible:g,rangeInputProps:x,popupProps:S,isHoverCell:_,activeIndex:v,isFirstValueSelected:m,cacheValue:p,onRawChange:l}}function DD(e){var t=Rp(`datePicker`).globalConfig,n={minDate:e.minDate,maxDate:e.maxDate,disableDate:e.disableDate,firstDayOfWeek:e.firstDayOfWeek??t.value.firstDayOfWeek,monthLocal:t.value.months,quarterLocal:t.value.quarters,showWeekOfYear:e.mode===`week`,dayjsLocale:t.value.dayjsLocale,cancelRangeSelectLimit:e.cancelRangeSelectLimit},r=n.disableDate,i=function(e){return r?!!r(e):!1};if(K(e.range)){var a=_D(e.range),o=a.min,s=a.max,c=o?new Date(Z(o).startOf(`day`).format()):null,l=s?new Date(Z(s).endOf(`day`).format()):null,u=c,d=l;[`date`,`week`].includes(e.mode)&&(u&&(n.minDate=n.minDate?new Date(Math.max(n.minDate.getTime(),u.getTime())):u),d&&(n.maxDate=n.maxDate?new Date(Math.min(n.maxDate.getTime(),d.getTime())):d));var f=function(e,t,n,r){var i=e.getTime(),a=t.getTime(),o=n?n.getTime():-1/0,s=r?r.getTime():1/0;return!(a<o||i>s)};i=function(t){var n=r?!!r(t):!1;if(e.mode===`date`||e.mode===`week`){var i=t.getTime(),a=!u||i>=u.getTime(),o=!d||i<=d.getTime();return n||!(a&&o)}if(e.mode===`month`){var s=new Date(t.getFullYear(),t.getMonth(),1),c=new Date(t.getFullYear(),t.getMonth()+1,0);c.setHours(23,59,59,999);var l=f(s,c,u,d);return n||!l}if(e.mode===`quarter`){var p=Math.floor(t.getMonth()/3)*3,m=new Date(t.getFullYear(),p,1),h=new Date(t.getFullYear(),p+3,0);h.setHours(23,59,59,999);var g=f(m,h,u,d);return n||!g}if(e.mode===`year`){var _=new Date(t.getFullYear(),0,1),v=new Date(t.getFullYear(),11,31);v.setHours(23,59,59,999);var y=f(_,v,u,d);return n||!y}return n}}else if(q(e.range)){var p=e.range;i=function(t){var n=r?!!r(t):!1;if(e.mode===`date`||e.mode===`week`){var i=!p(t);return n||i}if(e.mode===`month`){var a=vD(e.range,t.getFullYear(),t.getMonth());return n||!a}if(e.mode===`quarter`){for(var o=Math.floor(t.getMonth()/3)*3,s=!1,c=o;c<o+3;c++)if(vD(e.range,t.getFullYear(),c)){s=!0;break}return n||!s}if(e.mode===`year`){var l=yD(e.range,t.getFullYear());return n||!l}return n}}n.disableDate=i;var m=[];return e.mode===`date`||e.mode===`week`?m=Wpe({year:e.year,month:e.month},n):e.mode===`quarter`?m=Gpe(e.year,n):e.mode===`month`?m=qpe(e.year,n):e.mode===`year`&&(m=Kpe(e.year,n)),Jpe(m,{start:e.start,end:e.end,hoverStart:e.hoverStart,hoverEnd:e.hoverEnd,type:e.mode,isRange:e.isRange,value:e.value,multiple:e.multiple})}function $pe(e){var t=U(function(){return _D(e.range)}),n=function(t,n){return vD(e.range,t,n)},r=function(t){return yD(e.range,t)},i=function(t){return bD(e.range,t)};return{rangeBounds:t,monthHasAnyAllowed:n,yearHasAnyAllowed:r,decadeHasAnyAllowed:i,paginationDisabled:U(function(){return Zpe(e.range,e.mode,e.year.value,e.month?.value)}),canLoadMoreTop:function(n){var a=t.value.min;if(K(e.range)){if(!a)return!0;var o=a.getFullYear();return e.mode===`year`?n>Math.floor(o/10)*10+9:n>o}if(q(e.range)){if(e.mode===`year`){for(var s=n-10;s>=n-50;s-=10)if(i(s))return!0;return!1}for(var c=n-1;c>n-10;c--)if(r(c))return!0;return!1}return!0},canLoadMoreBottom:function(n){var a=t.value.max;if(K(e.range)){if(!a)return!0;var o=a.getFullYear();return e.mode===`year`?n<Math.floor(o/10)*10+9:n<o}if(q(e.range)){if(e.mode===`year`){for(var s=n+10;s<=n+50;s+=10)if(i(s))return!0;return!1}for(var c=n+1;c<=n+10;c++)if(r(c))return!0;return!1}return!0}}}var eme=z({name:`TDatePickerHeader`,props:{mode:{type:String,default:`date`},range:[Array,Function],year:Number,month:Number,internalYear:Array,partial:String,onMonthChange:Function,onYearChange:Function,onJumperClick:Function},setup:function(e){var t=Wt(e),n=t.year,r=t.month,i=Rp(`classPrefix`).classPrefix,a=Q(`date-picker__header`),o=Rp(`datePicker`).globalConfig,s=$pe({range:e.range,mode:e.mode,year:n,month:r}),c=s.monthHasAnyAllowed,l=s.yearHasAnyAllowed,u=s.decadeHasAnyAllowed,d=s.paginationDisabled,f=s.canLoadMoreTop,p=s.canLoadMoreBottom,m=I(b(e.year)),h=U(function(){return e.mode===`date`||e.mode===`week`}),g=U(function(){var t=e.partial===`end`&&e.mode===`year`&&Number(e.internalYear[1])-Number(e.internalYear[0])<=9?9:0;return m.value.find(function(n){return n.value-(e.year+t)<=9&&n.value-(e.year+t)>=0})?.value||e.year}),_=U(function(){return o.value.months.map(function(t,n){return{label:t,value:n,disabled:!c(e.year,n)}})}),v=U(function(){var e=m.value;if(!e.length)return!1;var t=e[0].value;return f(t)}),y=U(function(){var e=m.value;if(!e.length)return!1;var t=e[e.length-1].value;return p(t)});function b(t){var n=[];if(e.mode===`year`)for(var r=t%10,i=t-r-100,a=t-r+100,o=i;o<=a;o+=10){var s=o+9;u(s)&&n.push({label:`${o} - ${s}`,value:s,disabled:!1})}else{l(t)&&n.push({label:`${t}`,value:t,disabled:!1});for(var c=1;c<=10;c++)l(t+c)&&n.push({label:`${t+c}`,value:t+c,disabled:!1}),l(t-c)&&n.unshift({label:`${t-c}`,value:t-c,disabled:!1})}return n}function x(t,n){var r=[];if(e.mode===`year`){var i=t%10;if(n===`add`)for(var a=t-i+10;a<=t-i+50;a+=10){var o=a+9;u(o)&&r.push({label:`${a} - ${o}`,value:o,disabled:!1})}else for(var s=t-i-1;s>t-i-50;s-=10)u(s)&&r.unshift({label:`${s-9} - ${s}`,value:s,disabled:!1})}else if(n===`add`)for(var c=t+1;c<=t+10;c++)l(c)&&r.push({label:`${c}`,value:c,disabled:!1});else for(var d=t-1;d>t-10;d--)l(d)&&r.unshift({label:`${d}`,value:d,disabled:!1});return r}var S=U(function(){return{year:{prev:o.value.preDecade,current:o.value.now,next:o.value.nextDecade},month:{prev:o.value.preYear,current:o.value.now,next:o.value.nextYear},date:{prev:o.value.preMonth,current:o.value.now,next:o.value.nextMonth},quarter:{prev:o.value.preYear,current:o.value.now,next:o.value.nextYear},week:{prev:o.value.preMonth,current:o.value.now,next:o.value.nextMonth}}});function C(e){var t=e.e;t.target.scrollTop===0?v.value&&w(t):t.target.scrollTop===t.target.scrollHeight-t.target.clientHeight&&y.value&&T(t)}function w(e){var t;e==null||(t=e.stopPropagation)==null||t.call(e);var n=m.value[0].value,r=x(n,`reduce`);m.value=[].concat(W(r),W(m.value))}function T(e){var t;e==null||(t=e.stopPropagation)==null||t.call(e);var n=m.value.slice(-1)[0].value,r=x(n,`add`);m.value=[].concat(W(m.value),W(r))}return R(function(){return e.mode},function(){m.value=b(e.year)}),function(){return V(`div`,{class:a.value},[V(`div`,{class:`${a.value}-controller`},[h.value&&V(bw,{class:`${a.value}-controller-month`,value:e.month,options:_.value,onChange:function(t){var n;(n=e.onMonthChange)==null||n.call(e,t)},popupProps:{attach:function(e){return e.parentNode},overlayClassName:`${a.value}-controller-month-popup`}},null),V(bw,{class:`${a.value}-controller-year`,value:e.mode===`year`?g.value:e.year,options:m.value,onChange:function(t){var n;(n=e.onYearChange)==null||n.call(e,t)},popupProps:{onScroll:C,attach:function(e){return e.parentNode},overlayClassName:`${a.value}-controller-year-popup`},panelTopContent:function(){return v.value&&V(`div`,{class:`${i.value}-select-option`,onClick:w},[zi(`...`)])},panelBottomContent:function(){return y.value&&V(`div`,{class:`${i.value}-select-option`,onClick:T},[zi(`...`)])}},null)]),V(Pw,{tips:S.value[e.mode],size:`small`,onChange:e.onJumperClick,disabled:d.value},null)])}}}),tme=z({name:`TDatePickerCell`,props:{time:String,text:[String,Number],value:Date,active:Boolean,highlight:Boolean,disabled:Boolean,startOfRange:Boolean,endOfRange:Boolean,hoverHighlight:Boolean,hoverStartOfRange:Boolean,hoverEndOfRange:Boolean,additional:Boolean,now:Boolean,firstDayOfMonth:Boolean,lastDayOfMonth:Boolean,onClick:Function,onMouseEnter:Function,cell:Function,dayjsObj:Mp.Dayjs},setup:function(e){var t=Q(`date-picker__cell`),n=pm(),r=U(function(){var n;return[t.value,(n={},G(G(G(G(G(G(G(G(G(G(n,`${t.value}--now`,e.now),`${t.value}--active`,e.active),`${t.value}--disabled`,e.disabled),`${t.value}--highlight`,e.highlight),`${t.value}--hover-highlight`,e.hoverHighlight),`${t.value}--active-start`,e.startOfRange),`${t.value}--active-end`,e.endOfRange),`${t.value}--hover-start`,e.hoverStartOfRange),`${t.value}--hover-end`,e.hoverEndOfRange),`${t.value}--additional`,e.additional),G(G(n,`${t.value}--first-day-of-month`,e.firstDayOfMonth),`${t.value}--last-day-of-month`,e.lastDayOfMonth))]});function i(t){var n;if(!e.disabled){if(e.time){var r=gD(e.time),i=r.hours,a=r.minutes,o=r.seconds,s=r.milliseconds,c=r.meridiem,l=i;/am/i.test(c)&&l===12&&(l-=12),/pm/i.test(c)&&l<12&&(l+=12),e.value.setHours(l),e.value.setMinutes(a),e.value.setSeconds(o),e.value.setMilliseconds(s)}(n=e.onClick)==null||n.call(e,e.value,{e:t})}}function a(){var t;if(!e.disabled){if(e.time){var n=gD(e.time),r=n.hours,i=n.minutes,a=n.seconds,o=n.milliseconds,s=n.meridiem,c=r;/am/i.test(s)&&c===12&&(c-=12),/pm/i.test(s)&&c<12&&(c+=12),e.value.setHours(c),e.value.setMinutes(i),e.value.setSeconds(a),e.value.setMilliseconds(o)}(t=e.onMouseEnter)==null||t.call(e,e.value)}}return function(){return V(`td`,{class:r.value,onClick:i,onMouseenter:a},[V(`div`,{class:`${t.value}-inner`},[n(`cell`,{params:{value:e.value}})??e.text])])}}});function OD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nme(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?OD(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var rme=z({name:`TDatePickerTable`,props:{mode:{type:String,default:`date`},value:[String,Number,Array,Date],format:String,firstDayOfWeek:Number,multiple:Boolean,data:Array,time:String,onCellClick:Function,onCellMouseEnter:Function,onCellMouseLeave:Function,cell:{type:Function}},setup:function(e,t){var n=t.slots,r=Q(`date-picker__table`),i=Rp(`datePicker`).globalConfig,a=i.value.dayjsLocale,o=U(function(){for(var t=[],n=e.firstDayOfWeek-1,r=i.value.weekdays.length;t.length<r;)t.push(i.value.weekdays[n]),n=(n+r+1)%r;return e.mode===`week`&&t.unshift(i.value.weekAbbreviation),t}),s=U(function(){return e.mode===`date`||e.mode===`week`}),c=e.multiple?function(t,n){var i=wE(n,e.format);if(e.mode!==`week`||Array.isArray(t)&&!t.length)return{};var a=t.map?.call(t,function(t){return wE(t,e.format)}).some(function(e){return e.week()===i.week()&&e.year()===i.year()});return G({},`${r.value}-${e.mode}-row--active`,a)}:function(t,n){if(e.mode!==`week`||!t)return{};if(K(t)){var i,o,s,c;if(!t.length)return{};var l=Y(t.map(function(t){return t&&wE(t,e.format)}),2),u=l[0],d=l[1],f=u&&u.year(),p=u==null||(i=u.locale)==null||(i=i.call(u,a))==null||(o=i.week)==null?void 0:o.call(i),m=d&&d.year(),h=d==null||(s=d.locale)==null||(s=s.call(d,a))==null||(c=s.week)==null?void 0:c.call(s),g=wE(n,e.format),_=g.year(),v=g.week(),y=_===f&&v===p||_===m&&v===h,b=_>=f&&_<=m&&v>p&&v<h;return G(G({},`${r.value}-${e.mode}-row--active`,y),`${r.value}-${e.mode}-row--range`,b)}var x=wE(t,e.format).locale(a),S=wE(n,e.format).locale(a);return G({},`${r.value}-${e.mode}-row--active`,x.year()===S.year()&&x.week()===S.week())};return function(){return V(`div`,{class:r.value,onMouseleave:function(t){return e.onCellMouseLeave?.call(e,{e:t})}},[V(`table`,null,[s.value&&V(`thead`,null,[V(`tr`,{class:`${r.value}-header-row`},[o.value.map(function(e,t){return V(`th`,{class:`${r.value}-header-cell`,key:t},[e])})])]),V(`tbody`,null,[e.data.map(function(t,i){return V(`tr`,{key:i,class:nme(G({},`${r.value}-${e.mode}-row`,!0),c(e.value,t[0].value))},[t.map(function(t,r){return V(tme,H(t,{key:r,time:e.time,onClick:e.onCellClick,onMouseEnter:e.onCellMouseEnter,cell:e.cell}),n)})])})])])])}}}),kD={allowInput:Boolean,borderless:Boolean,clearable:Boolean,disableTime:{type:Function},disabled:{type:Boolean,default:void 0},format:{type:String,default:`HH:mm:ss`},hideDisabledTime:{type:Boolean,default:!0},inputProps:{type:Object},label:{type:[String,Function]},placeholder:{type:String,default:void 0},popupProps:{type:Object},prefixIcon:{type:Function},presets:{type:Object},readonly:{type:Boolean,default:void 0},selectInputProps:{type:Object},size:{type:String,default:`medium`,validator:function(e){return!e||[`small`,`medium`,`large`].includes(e)}},status:{type:String,default:`default`,validator:function(e){return!e||[`default`,`success`,`warning`,`error`].includes(e)}},steps:{type:Array,default:function(){return[1,1,1]}},suffixIcon:{type:Function},tips:{type:[String,Function]},value:{type:String,default:void 0},modelValue:{type:String,default:void 0},defaultValue:{type:String,default:``},valueDisplay:{type:[String,Function]},onBlur:Function,onChange:Function,onClear:Function,onClose:Function,onConfirm:Function,onFocus:Function,onInput:Function,onOpen:Function,onPick:Function},AD=[`am`,`pm`],jD=[void 0,void 0],ime=[1,1,1],MD=function(e){return e.hour=`hour`,e.minute=`minute`,e.second=`second`,e.milliSecond=`millisecond`,e.meridiem=`meridiem`,e}(MD||{}),ame=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ND=/[h]{1}/;function PD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function FD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?PD(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ID={type:Boolean,default:!0,validator:function(e){return Gd(e)}},ome=function(){return{disabled:FD(FD({},ID),{default:!1}),isFocus:FD(FD({},ID),{default:!1}),value:{type:String,default:``},format:{type:String,default:`HH:mm:ss`},steps:FD({type:Array},{default:[1,1,1]}),isShowPanel:FD(FD({},ID),{default:!0}),activeIndex:{type:Number},presets:{type:Object},hideDisabledTime:FD({},kD.hideDisabledTime),disableTime:{type:Function},isFooterDisplay:FD({},ID)}},sme=function(){return{format:{type:String,default:`HH:mm:ss`},cols:{type:Array,default:function(){return[MD.hour,MD.minute,MD.second]}},value:{type:String,default:``},range:{type:Array,default:function(){return[]}},steps:FD({type:Array},{default:[1,1,1]}),hideDisabledTime:FD({},kD.hideDisabledTime),disableTime:{type:Function},localeMeridiems:{type:Array}}};Z.extend(zE),Z.extend(hE);function LD(e,t){return Z(e,t).format(t)===e}function RD(e,t){return Z(e,t).format(t)}function cme(e,t,n){return n<=1?t:e.sort(function(e,n){return Math.abs(t+1-e)-Math.abs(t+1-n)})[0]}function lme(e){var t=[],n=MD.meridiem,r=MD.hour,i=MD.minute,a=MD.second,o=MD.milliSecond;return e.match(ame).forEach(function(e){switch(e){case`H`:case`HH`:case`h`:case`hh`:t.push(r);break;case`a`:case`A`:t.push(n);break;case`m`:case`mm`:t.push(i);break;case`s`:case`ss`:t.push(a);break;case`SSS`:t.push(o);break;default:break}}),t}function zD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function BD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zD(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}Z.extend(hE);var VD=[MD.hour,MD.minute,MD.second,MD.milliSecond],ume={top:15,bottom:21},dme=z({name:`TTimePickerPanelCol`,props:BD(BD({},sme()),{},{position:String,triggerScroll:Boolean,onChange:Function,resetTriggerScroll:Function,isShowPanel:Boolean}),setup:function(e){var t=Rp(`timePicker`).globalConfig,n=Q(`time-picker__panel`),r=ym().STATUS,i=Wt(e),a=i.steps,o=i.value,s=i.format,c=i.position,l=i.triggerScroll,u=I([]),d=I(),f=I(null),p=Dt({0:null,1:null,2:null,3:null,4:null,5:null}),m=U(function(){var e=!!a.value.filter(function(e){return Number(e)>1}).length;return o.value?Z(o.value,s.value):e?Z().hour(0).minute(0).second(0):Z()});R(function(){return m.value},function(){m.value&&o.value&&S(!0)}),R(function(){return l.value},function(){l.value&&S(!0)}),mr(function(){u.value=lme(s.value)});var h=function(){var e=f.value?.querySelector(`div`);return e?{offsetHeight:parseFloat(getComputedStyle(e).height),margin:parseFloat(getComputedStyle(e).marginTop)}:{offsetHeight:0,margin:0}},g=function(t,n){var r=VD.indexOf(t);if(r!==-1){var i,a=[m.value.hour(),m.value.minute(),m.value.second(),m.value.millisecond()];return a[r]=Number(n),!((i=e.disableTime)!=null&&(i=i.call.apply(i,[e].concat(a,[{partial:c.value||`start`}])))!=null&&(i=i[t])!=null&&i.includes(Number(n)))}return!0},_=function(t){var n=0;if(VD.includes(t)){var r=VD.indexOf(t),i=a.value[r]||1;n=t===MD.hour?ND.test(s.value)?11:23:t===MD.milliSecond?999:59;var o=zf(0,n+1,Number(i)).map(function(e){return Lf(String(e),2,`0`)})||[];return e.hideDisabledTime&&e.disableTime?o.filter(function(n){var i,a=[m.value.hour(),m.value.minute(),m.value.second(),m.value.millisecond()];return a[r]=Number(n),!((i=e.disableTime)!=null&&(i=i.call.apply(i,[e].concat(a,[{partial:c.value||`start`}])))!=null&&(i=i[t])!=null&&i.includes(Number(n)))}):o}return AD},v=function(e,t){e===MD.hour&&/[h]{1}/.test(s.value)&&(t%=12);var n=_(e).indexOf(Lf(String(t),2,`0`)),r=h(),i=r.offsetHeight+r.margin;return Math.abs(Math.max(0,n)*i)},y=function(t,n,r){var i,c,l;if(e.isShowPanel){var d=(p[n]?.scrollTop||0)+ume.top,f=h(),y=f.offsetHeight+f.margin,b=Math.abs(Math.round(d/y+.5)),x=AD[Math.min(b-1,1)].toLowerCase();if(Number.isNaN(b)&&(b=1),VD.includes(t)){var S=59;t===MD.hour?S=/[h]{1}/.test(s.value)?11:23:t===MD.milliSecond&&(S=999);var C=VD.indexOf(t),w=zf(0,S+1,Number(a.value[C])||1);c=cme(w,Number(_(t)[Math.min(b-1,S+1,w.length-1)]),Number(a.value[C])||1),Number.isNaN(c)&&(c=w[w.length-1]),t===MD.hour&&u.value.includes(MD.meridiem)&&m.value.hour()>=12&&(c=Number(c)+12)}else c=x;var T=v(t,c);if(!(!Z(m.value).isValid()||o.value&&!Z(o.value,s.value,!0).isValid())){if(VD.includes(t)){var E;l=g(t,c)?(E=m.value)[t]?.call(E,c).format(s.value):m.value.format(s.value)}else{var D=m.value.hour();l=x===`am`&&D>=12?m.value.hour(D-12).format(s.value):x===`pm`&&D<12?m.value.hour(D+12).format(s.value):m.value.format(s.value)}if(l!==o.value&&((i=e.onChange)==null||i.call(e,l,r)),T!==d){var O,k=p[u.value.indexOf(t)];if(!k||k.scrollTop===T)return;(O=k.scrollTo)==null||O.call(k,{top:T,behavior:`smooth`})}}}},b=function(e,t,n){var r,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`auto`,a=v(e,t),o=p[n];!o||o.scrollTop===a||!g(e,t)||(r=o.scrollTo)==null||r.call(o,{top:a,behavior:i})},x=function(t,n,r,i){if(g(t,n))if(VD.includes(t))t===MD.hour&&m.value.format(`a`)===`pm`&&u.value.includes(MD.meridiem)&&(n=Number(n)+12),b(t,n,r,`smooth`);else{var a=m.value.hour();if(n===`am`&&a>=12){var o;(o=e.onChange)==null||o.call(e,m.value.hour(a-12).format(s.value),i)}else if(n===`pm`&&a<12){var c;(c=e.onChange)==null||c.call(e,m.value.hour(a+12).format(s.value),i)}}},S=function(){var t=arguments.length>0&&arguments[0]!==void 0&&arguments[0],n=o.value&&!t?`smooth`:`auto`,r=!!a.value.filter(function(e){return Number(e)>1}).length;dn(function(){u.value.forEach(function(e,t){if(!r||r&&o.value){var i;b(e,VD.includes(e)?(i=m.value)[e]?.call(i):m.value.format(`a`),t,n)}else b(e,_(e)?.[0],t,n)})}),e.resetTriggerScroll()},C=function(e,t){var n,r;return e===MD.meridiem?m.value.format(`a`)===t:(r=(n=m.value)[e]?.call(n),e===MD.hour&&/[h]{1}/.test(s.value)&&(r%=12),r===Number(t))};return function(){var e,i;return V(`div`,{class:`${n.value}-body`,ref:d},[V(`div`,{class:`${n.value}-body-active-mask`,ref:f},[(e=u.value).map?.call(e,function(e,t){return V(`div`,{key:`${e}_${t}`},null)})]),(i=u.value).map?.call(i,function(e,i){return V(`ul`,{key:`${e}_${i}`,ref:function(e){return p[i]=e},class:`${n.value}-body-scroll`,onScroll:md(function(t){return y(e,i,t)},50)},[_(e).map(function(a){return V(`li`,{key:a,class:[`${n.value}-body-scroll-item`,G(G({},r.value.disabled,!g(e,a)),r.value.current,C(e,a))],onClick:function(t){return x(e,a,i,t)}},[VD.includes(e)?ND.test(s.value)&&e===MD.hour&&a===`00`?`12`:a:t.value[a===`am`?`anteMeridiem`:`postMeridiem`]])})])})])}}});function HD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function UD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?HD(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fme(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}Z.extend(hE);var WD=z({name:`TTimePickerPanel`,props:UD(UD({},ome()),{},{isFooterDisplay:Boolean,handleConfirmClick:Function,onChange:Function,position:String}),setup:function(e){var t=Rp(`timePicker`).globalConfig,n=Q(`time-picker__panel`),r=Wt(e),i=r.steps,a=r.isFooterDisplay,o=r.isShowPanel,s=I(!1),c=I(),l=U(function(){return!!i.value.filter(function(e){return Number(e)>1}).length}),u=U(function(){l.value;var t=Z(e.value,e.format);return e.value&&t.isValid()?t.format(e.format):Z().hour(0).minute(0).second(0).format(e.format)}),d=function(){dn(function(){s.value=!0})},f=function(){s.value=!1},p=function(t){var n=typeof t==`function`?t():t;if(typeof e.activeIndex==`number`)if(Array.isArray(n)){var r;(r=e.onChange)==null||r.call(e,n[e.activeIndex])}else Vp.error(`TimePicker`,`preset: ${e.presets} 预设值必须是数组!`);else{var i;(i=e.onChange)==null||i.call(e,n)}},m=function(){return sf(e.presets)?l.value?null:V(ph,{theme:`primary`,variant:`text`,size:`small`,onClick:function(){return e.onChange?.call(e,Z().format(e.format))}},{default:function(){return[t.value.now]}}):Object.keys(e.presets||[]).map(function(t){return V(ph,{key:t,theme:`primary`,size:`small`,variant:`text`,onClick:function(){return p(e.presets[t])}},fme(t)?t:{default:function(){return[t]}})})};return mr(function(){d()}),R(function(){return o.value},function(){d()}),function(){return V(`div`,{class:n.value},[V(`div`,{class:`${n.value}-section-body`},[V(dme,H(e,{ref:c,format:e.format||`HH:mm:ss`,steps:e.steps||ime,value:Z(e.value,e.format).isValid()?e.value:u.value,triggerScroll:s.value,onChange:e.onChange,resetTriggerScroll:f,isShowPanel:e.isShowPanel}),null)]),a.value?V(`div`,{class:`${n.value}-section-footer`},[V(ph,{theme:`primary`,variant:`base`,disabled:!e.value,onClick:function(t){return e.handleConfirmClick?.call(e,t,u.value)},size:`small`},{default:function(){return[t.value.confirm]}}),m()]):null])}}});function GD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function KD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?GD(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}Z.extend(hE);var pme=z({name:`TTimePicker`,props:kD,setup:function(e){var t=pm(),n=Rp(`timePicker`).globalConfig,r=Q(`time-picker`),i=ym().STATUS,a=Tm({TimeIcon:Dv}).TimeIcon,o=I(``),s=I(!1),c=Mm(),l=Wt(e),u=l.value,d=l.modelValue,f=Y(Rm(u,d,e.defaultValue,e.onChange),2),p=f[0],m=f[1],h=Sm(),g=Wt(e),_=g.allowInput,v=g.format,y=U(function(){return[`${r.value}__group`,G({},i.value.focused,s.value)]}),b=function(t,n){var r,i;s.value=t,t?(r=e.onOpen)==null||r.call(e,n):(i=e.onClose)==null||i.call(e,n)},x=function(t){var n;t.e.stopPropagation(),o.value=null,m(null),e==null||(n=e.onClear)==null||n.call(e,t)},S=function(e){o.value=e},C=function(t,n){var r;_.value&&LD(o.value,v.value)&&m(RD(o.value,v.value)),(r=e.onBlur)==null||r.call(e,{value:t,inputValue:n.inputValue,e:n.e})},w=function(t){var n;e==null||(n=e.onConfirm)==null||n.call(e,{e:t}),LD(o.value,v.value)&&m(o.value),s.value=!1},T=function(t,n){var r;o.value=t,(r=e.onPick)==null||r.call(e,t,{e:n})},E=U(function(){return{value:s.value?o.value:p.value??void 0}});R(function(){return s.value},function(){o.value=s.value?p.value??``:``});var D=Jm(e.selectInputProps,{onInputChange:S,onBlur:C,onPopupVisibleChange:b});return function(){return V(`div`,{class:r.value},[V(ZC,H({onFocus:e.onFocus,onClear:x,borderless:e.borderless,disabled:h.value,clearable:e.clearable,allowInput:_.value,class:y.value,label:e.label,prefixIcon:function(){return t(`prefixIcon`)},suffixIcon:function(){return t(`suffixIcon`)||V(a,null,null)},popupVisible:!c.value&&s.value,placeholder:p.value?void 0:e.placeholder||n.value.placeholder,value:s.value?o.value:p.value??void 0,inputValue:s.value?o.value:p.value??void 0,inputProps:KD(KD({},e.inputProps),{},{size:e.size}),popupProps:KD({overlayInnerStyle:{width:`auto`,padding:0}},e.popupProps),status:e.status,tips:e.tips,valueDisplay:function(){return t(`valueDisplay`,{params:E.value})}},D.value,{panel:function(){return V(WD,{steps:e.steps,format:v.value,value:o.value,isFooterDisplay:!0,isShowPanel:s.value,disableTime:e.disableTime,onChange:T,hideDisabledTime:e.hideDisabledTime,handleConfirmClick:w,presets:e.presets},null)}}),null)])}}}),mme={activeIndex:{type:Number},borderless:Boolean,clearable:Boolean,disabled:{type:[Boolean,Array],default:void 0},format:{type:[Array,Function]},inputProps:{type:[Object,Array]},label:{type:[String,Function]},placeholder:{type:[String,Array]},prefixIcon:{type:Function},readonly:{type:Boolean,default:void 0},separator:{type:[String,Function],default:`-`},showClearIconOnEmpty:Boolean,size:{type:String,default:`medium`,validator:function(e){return!e||[`small`,`medium`,`large`].includes(e)}},status:{type:String,default:`default`,validator:function(e){return!e||[`default`,`success`,`warning`,`error`].includes(e)}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tips:{type:[String,Function]},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:function(){return[]}},onBlur:Function,onChange:Function,onClear:Function,onClick:Function,onEnter:Function,onFocus:Function,onMouseenter:Function,onMouseleave:Function};function qD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function JD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qD(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function YD(e){return K(e)?e:[e,e]}var XD=z({name:`TRangeInput`,inheritAttrs:!1,props:mme,setup:function(e,t){var n=t.expose,r=t.attrs,i=Wt(e),a=i.value,o=i.modelValue,s=ym(),c=s.STATUS,l=s.SIZE,u=Q(),d=Q(`range-input`),f=Tm({CloseCircleFilledIcon:Tg}).CloseCircleFilledIcon,p=pm(),m=Sm(),h=Mm(),g=I(!1),_=I(!1),v=U(function(){return YD(e.format)}),y=U(function(){return YD(e.inputProps)}),b=U(function(){return YD(e.placeholder)}),x=Y(Rm(a,o,e.defaultValue,e.onChange),2),S=x[0],C=x[1],w=U(function(){return String((S.value?.[0]||S.value?.[1])??``)}),T=U(function(){return(e.clearable&&w.value?.length&&!m.value||e.showClearIconOnEmpty)&&_.value}),E={firstInputRef:I(),secondInputRef:I()};function D(t){var n;(n=e.onClear)==null||n.call(e,t),C([``,``],JD(JD({},t),{},{trigger:`clear`,position:`all`}))}function O(t,n){var r;(r=e.onEnter)==null||r.call(e,t,n)}function k(t,n){var r;g.value=!0,(r=e.onFocus)==null||r.call(e,t,n)}function A(t,n){var r;g.value=!1,(r=e.onBlur)==null||r.call(e,t,n)}function j(t){var n;_.value=!0,e==null||(n=e.onMouseenter)==null||n.call(e,{e:t})}function M(t){var n;_.value=!1,e==null||(n=e.onMouseleave)==null||n.call(e,{e:t})}return n({firstInputElement:E.firstInputRef.value,secondInputElement:E.secondInputRef.value,focus:function(e){var t,n=(e||{}).position;(t=E[`${n===void 0?`first`:n}InputRef`].value)==null||t.focus()},blur:function(e){var t,n=(e||{}).position;(t=E[`${n===void 0?`first`:n}InputRef`].value)==null||t.blur()},select:function(e){var t,n=(e||{}).position;(t=E[`${n===void 0?`first`:n}InputRef`].value)==null||t.select()}}),function(){var t=p(`label`),n=p(`prefixIcon`),i=p(`suffix`),a=p(`suffixIcon`),o=p(`tips`),s=p(`separator`),_=Jm(y.value[0],{onClick:function(t){var n,r=t.e;(n=e.onClick)==null||n.call(e,{e:r,position:`first`})},onClear:function(){return C([],{position:`first`,trigger:`input`})},onEnter:function(e,t){var n=t.e;O([e,S.value?.[1]],{e:n,position:`first`})},onFocus:function(e,t){var n=t.e;k([e,S.value?.[1]],{e:n,position:`first`})},onBlur:function(e,t){var n=t.e;A([e,S.value?.[1]],{e:n,position:`first`})},onChange:function(e,t){var n=t.e;C([e,S.value?.[1]],{e:n,position:`first`,trigger:`input`})}}),x=Jm(y.value[1],{onClick:function(t){var n,r=t.e;(n=e.onClick)==null||n.call(e,{e:r,position:`second`})},onClear:function(){C([],{position:`second`,trigger:`input`})},onEnter:function(e,t){var n=t.e;O([S.value?.[0],e],{e:n,position:`second`})},onFocus:function(e,t){var n=t.e;k([S.value?.[0],e],{e:n,position:`second`})},onBlur:function(e,t){var n=t.e;A([S.value?.[0],e],{e:n,position:`second`})},onChange:function(e,t){var n=t.e;C([S.value?.[0],e],{e:n,position:`second`,trigger:`input`})}}),w=V(`div`,H(r,{class:[d.value,G(G(G(G(G(G(G(G(G({},l.value[e.size],e.size!==`medium`),c.value.disabled,K(m.value)?m.value.every(Boolean):m.value),c.value.focused,g.value),c.value.success,e.status===`success`),c.value.warning,e.status===`warning`),c.value.error,e.status===`error`),`${d.value}--prefix`,n||t),`${d.value}--suffix`,i||a),`${d.value}--borderless`,e.borderless)],onMouseenter:j,onMouseleave:M}),[V(`div`,{class:`${d.value}__inner`},[n&&V(`div`,{class:`${d.value}__prefix`},[n]),t?V(`div`,{class:`${d.value}__prefix`},[t]):null,V(WS,H({ref:E.firstInputRef,class:`${d.value}__inner-left`,inputClass:G(G({},`${u.value}-is-focused`,e.activeIndex===0),`${u.value}-is-disabled`,K(m.value)&&m.value[0]),placeholder:b.value[0],disabled:K(m.value)?m.value[0]:m.value,readonly:h.value,format:v.value[0],value:S.value?.[0]},_.value),null),V(`div`,{class:`${d.value}__inner-separator`},[s]),V(WS,H({ref:E.secondInputRef,class:`${d.value}__inner-right`,inputClass:G(G({},`${u.value}-is-focused`,e.activeIndex===1),`${u.value}-is-disabled`,K(m.value)&&m.value[1]),placeholder:b.value[1],disabled:K(m.value)?m.value[1]:m.value,readonly:h.value,format:v.value[1],value:S.value?.[1]},x.value),null),i?V(`div`,{class:`${d.value}__suffix`},[i]):null,(a||T.value)&&V(`span`,{class:`${d.value}__suffix ${d.value}__suffix-icon`},[T.value?V(f,{class:`${d.value}__suffix-clear`,onClick:D},null):a])])]),ee=[`${d.value}__tips`,`${u.value}-tips`,`${u.value}-is-${e.status}`];return V(bi,null,[w,o&&V(`div`,{class:ee},[o])])}}}),hme={autoWidth:Boolean,disabled:{type:[Boolean,Array],default:void 0},inputValue:{type:Array,default:void 0},defaultInputValue:{type:Array},label:{type:[String,Function]},panel:{type:[String,Function]},popupProps:{type:Object},popupVisible:Boolean,rangeInputProps:{type:Object},readonly:{type:Boolean,default:void 0},status:{type:String,default:`default`,validator:function(e){return!e||[`default`,`success`,`warning`,`error`].includes(e)}},tips:{type:[String,Function]},onInputChange:Function,onPopupVisibleChange:Function};function ZD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function QD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ZD(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var gme=z({name:`TRangeInputPopup`,props:hme,setup:function(e){var t=Q(`range-input-popup`),n=KC(e),r=n.tOverlayInnerStyle,i=n.innerPopupVisible,a=n.onInnerPopupVisibleChange,o=U(function(){return[t.value,G({},`${t.value}--visible`,e.popupVisible||i.value)]});return function(){return V(`div`,{class:o.value},[V(zx,H({hideEmptyPopup:!0,content:e.panel,trigger:`click`,placement:`bottom-left`,disabled:K(e.disabled)?e.disabled.every(Boolean):e.disabled,visible:e.popupVisible||i.value},QD({overlayInnerStyle:r.value,onVisibleChange:a},e.popupProps)),{default:function(){return[V(XD,QD({value:e.inputValue,onChange:e.onInputChange,disabled:e.disabled,label:e.label,status:e.status,tips:e.tips},e.rangeInputProps),null)]}})])}}}),_me=X(XD),$D=X(gme),vme={allowInput:Boolean,autoSwap:{type:Boolean,default:!0},borderless:Boolean,clearable:Boolean,disableTime:{type:Function},disabled:{type:[Boolean,Array],default:void 0},format:{type:String,default:`HH:mm:ss`},hideDisabledTime:{type:Boolean,default:!0},label:{type:[String,Function]},placeholder:{type:[String,Array],default:void 0},popupProps:{type:Object},prefixIcon:{type:Function},presets:{type:Object},rangeInputProps:{type:Object},readonly:{type:Boolean,default:void 0},size:{type:String,default:`medium`,validator:function(e){return!e||[`small`,`medium`,`large`].includes(e)}},status:{type:String,default:`default`,validator:function(e){return!e||[`default`,`success`,`warning`,`error`].includes(e)}},steps:{type:Array,default:function(){return[1,1,1]}},suffixIcon:{type:Function},tips:{type:[String,Function]},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array},onBlur:Function,onChange:Function,onFocus:Function,onInput:Function,onPick:Function};function eO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?eO(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}Z.extend(hE);var yme=z({name:`TTimeRangePicker`,props:tO(tO({},vme),{},{rangeInputProps:Object,popupProps:Object}),setup:function(e){var t=Q(`time-range-picker`),n=pm(),r=Rp(`timePicker`).globalConfig,i=ym().STATUS,a=Tm({TimeIcon:Dv}).TimeIcon,o=Sm(),s=I(void 0),c=I(jD),l=I(!1),u=Mm(),d=U(function(){return[`${t.value}__group`,G({},i.value.focused,l.value)]}),f=Wt(e),p=f.value,m=f.modelValue,h=f.allowInput,g=f.format,_=Y(Rm(p,m,e.defaultValue,e.onChange),2),v=_[0],y=_[1],b=function(e,t){if(!u.value){if(t.trigger===`trigger-element-click`){l.value=!0;return}l.value=e}},x=function(e){e.e.stopPropagation(),c.value=jD,y(null)},S=function(e){s.value=e.position===`first`?0:1},C=function(e,t){K(e)?c.value=e:s.value===0?c.value=[e,c.value[1]??e]:c.value=[c.value[0]??e,e],k(e,t)},w=function(t,n){var r,i=n.e;if(h.value)if(LD(c.value[s.value],g.value)){var a=RD(c.value[s.value],g.value);s.value===0?c.value=[a,c.value[1]??a]:c.value=[c.value[0]??a,a]}else{var o=v.value??jD;s.value===0?c.value=[o[0]??jD[0],c.value[1]]:c.value=[c.value[0],o[1]??jD[1]]}(r=e.onBlur)==null||r.call(e,{value:t,e:i})},T=function(t,n){var r,i=n.e,a=n.position;c.value=t,(r=e.onInput)==null||r.call(e,{value:v.value,e:i,position:a===`first`?`start`:`end`})},E=function(){c.value.find(function(e){return!LD(e,g.value)})||y(c.value),e.autoSwap&&O(),l.value=!1},D=function(t,n){var r,i=n.e,a=n.position;(r=e.onFocus)==null||r.call(e,{value:t,e:i,position:a===`first`?`start`:`end`})},O=function(){var t=Y(c.value,2),n=t[0],r=t[1],i=Z(n,e.format),a=Z(r,e.format);i.isAfter(a,`second`)?y([c.value[1],c.value[0]]):y([c.value[0],c.value[1]])},k=function(t,n){var r,i=[],a;K(t)?(i=t,a={e:n}):s.value===0?(i=[t,c.value[1]??t],a={e:n,position:`start`}):(i=[c.value[0]??t,t],a={e:n,position:`end`}),(r=e.onPick)==null||r.call(e,i,a)};R(function(){return l.value},function(){c.value=l.value?v.value??jD:jD,l.value||(s.value=void 0)});var A=Jm(e.rangeInputProps,{onClear:x,onClick:S,onFocus:D,onBlur:w}),j=Jm(e.popupProps,{onVisibleChange:b});return function(){return V(`div`,{class:t.value},[V($D,{disabled:o.value,popupVisible:l.value,popupProps:tO({overlayInnerStyle:{width:`auto`,padding:0}},j.value),onInputChange:T,inputValue:l.value?c.value:v.value??jD,rangeInputProps:tO({size:e.size,clearable:e.clearable,class:d.value,value:l.value?c.value:v.value??void 0,placeholder:e.placeholder||[r.value.placeholder,r.value.placeholder],borderless:e.borderless,prefixIcon:function(){return n(`prefixIcon`)},suffixIcon:function(){return n(`suffixIcon`)||V(a,null,null)},readonly:u.value||!h.value,activeIndex:s.value},A.value),label:e.label,status:e.status,tips:e.tips,panel:function(){return V(WD,{steps:e.steps,format:g.value,isShowPanel:l.value,disableTime:e.disableTime,hideDisabledTime:e.hideDisabledTime,isFooterDisplay:!0,value:c.value[s.value||0],onChange:C,handleConfirmClick:E,position:s.value===0?`start`:`end`,activeIndex:s.value,presets:e.presets},null)}},null)])}}}),bme=X(pme),xme=X(yme),nO=X(WD);function rO(e,t,n,r){var i=t,a=n;return e===0&&i[1]<=i[0]&&(r?i[1]=i[0]+1:(i[1]=i[0],a[1]<=a[0]&&(a[1]=a[0]+1,a[1]===12&&(a[1]=0,i=[i[0],i[1]+1])))),e===1&&i[0]>=i[1]&&(r?i[0]=i[1]-1:(i[0]=i[1],a[0]>=a[1]&&(a[0]=a[1]-1,a[0]===-1&&(a[0]=11,i=[i[0]-1,i[1]])))),{nextYear:i,nextMonth:a}}function iO(e,t,n){if(af(e))return null;var r=wE(e,t);if(n){var i=Y(n,4),a=i[0],o=a===void 0?0:a,s=i[1],c=s===void 0?0:s,l=i[2],u=l===void 0?0:l,d=i[3],f=d===void 0?0:d;r=r.hour(o).minute(c).second(u).millisecond(f)}return r.toDate()}var aO={prev:`arrow-previous`,next:`arrow-next`};function oO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sme(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?oO(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var sO=z({name:`TPanelContent`,props:{mode:String,format:String,enableTimePicker:Boolean,timePickerProps:{type:Object,default:function(){return{}}},year:Number,month:Number,range:[Array,Function],tableData:Array,time:String,multiple:Boolean,firstDayOfWeek:Number,partial:String,popupVisible:Boolean,onYearChange:Function,onMonthChange:Function,onJumperClick:Function,onCellMouseEnter:Function,onCellClick:Function,onCellMouseLeave:Function,onTimePickerChange:Function,value:[String,Number,Array,Date],internalYear:Array,disableTime:Function,defaultTime:[String,Array],cell:{type:Function}},setup:function(e,t){var n=t.slots,r=Q(`date-picker__panel`),i=jE({mode:e.mode,format:e.format,enableTimePicker:e.enableTimePicker}).timeFormat,a=function(){if(!q(e.disableTime))return{};var t=K(e.value)?e.value[0]:e.value,n=K(e.value)?e.value[1]:e.value;return e.partial?e.disableTime([iO(t,e.format),iO(n,e.format)],{partial:e.partial}):e.disableTime(iO(t,e.format))},o=`00:00:00`;return function(){return V(`div`,{class:`${r.value}-content`},[V(`div`,{class:`${r.value}-${e.mode}`},[V(eme,{mode:e.mode,year:e.year,month:e.month,range:e.range,internalYear:e.internalYear,partial:e.partial,onMonthChange:function(t){return e.onMonthChange?.call(e,t,{partial:e.partial})},onYearChange:function(t){return e.onYearChange?.call(e,t,{partial:e.partial})},onJumperClick:function(t){var n=t.trigger;return e.onJumperClick?.call(e,{trigger:n,partial:e.partial})}},null),V(rme,{mode:e.mode,data:e.tableData,time:e.time,value:e.value,format:e.format,multiple:e.multiple,firstDayOfWeek:e.firstDayOfWeek,onCellClick:function(t,n){var r=n.e;return e.onCellClick?.call(e,t,{e:r,partial:e.partial})},onCellMouseEnter:function(t){return e.onCellMouseEnter?.call(e,t,{partial:e.partial})},onCellMouseLeave:e.onCellMouseLeave,cell:e.cell},n)]),e.enableTimePicker&&V(`div`,{class:`${r.value}-time`},[V(`div`,{class:`${r.value}-time-viewer`},[e.time||o]),V(nO,Sme({key:e.partial,isShowPanel:e.popupVisible,format:i,value:e.time||o,onChange:e.onTimePickerChange,disableTime:a},e.timePickerProps),null)])])}}});function cO(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var Cme=z({name:`TDatePickerFooter`,props:{enableTimePicker:Boolean,presetsPlacement:String,presets:Object,needConfirm:Boolean,selectedValue:[String,Number,Array,Date],onPresetClick:Function,onConfirmClick:Function},setup:function(e){var t=pm(),n=Q(`date-picker__footer`),r=Q(`date-picker__presets`),i=Rp(`datePicker`),a=i.t,o=i.globalConfig,s=U(function(){return[n.value,`${n.value}--${e.presetsPlacement}`]}),c=function(){return gc(e.presets)?Object.keys(e.presets).map(function(t){return V(mh,{key:t,size:`small`,variant:`text`,onClick:function(n){return e.onPresetClick?.call(e,e.presets[t],{e:n,preset:G({},t,e.presets[t])})}},cO(t)?t:{default:function(){return[t]}})}):t(`presets`)??null};return function(){var t,n=c(),i=Array.isArray(n)?n.length>0:!!n;return V(`div`,{class:s.value},[i?V(`div`,{class:r.value},[n]):null,e.enableTimePicker&&e.needConfirm&&V(mh,{disabled:!e.selectedValue,size:`small`,theme:`primary`,onClick:function(t){return e.onConfirmClick?.call(e,{e:t})}},cO(t=a(o.value.confirm))?t:{default:function(){return[t]}})])}}}),lO=z({name:`TExtraContent`,props:{presets:Object,enableTimePicker:Boolean,presetsPlacement:String,needConfirm:Boolean,onPresetClick:Function,onConfirmClick:Function,selectedValue:[String,Number,Array,Date]},setup:function(e,t){var n=t.slots,r=U(function(){return e.enableTimePicker&&e.needConfirm||e.presets||!!n.presets});return function(){return r.value?V(Cme,{presets:e.presets,onPresetClick:e.onPresetClick,enableTimePicker:e.enableTimePicker,onConfirmClick:e.onConfirmClick,presetsPlacement:e.presetsPlacement,selectedValue:e.selectedValue,needConfirm:e.needConfirm},{presets:n.presets}):null}}});function uO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wme(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?uO(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var dO=z({name:`TSinglePanel`,props:{disableDate:[Object,Array,Function],mode:{type:String,default:`date`},format:String,presetsPlacement:{type:String,default:`bottom`},value:[String,Number,Array,Date],timePickerProps:Object,presets:Object,enableTimePicker:Boolean,firstDayOfWeek:Number,year:Number,month:Number,time:String,popupVisible:Boolean,multiple:Boolean,needConfirm:Boolean,defaultTime:[String,Array],range:[Array,Function],onPanelClick:Function,onCellClick:Function,onCellMouseEnter:Function,onCellMouseLeave:Function,onJumperClick:Function,onConfirmClick:Function,onPresetClick:Function,onYearChange:Function,onMonthChange:Function,onTimePickerChange:Function,disableTime:Function,cell:Function},setup:function(e,t){var n=t.slots,r=Q(`date-picker__panel`),i=Rp(`datePicker`).globalConfig,a=U(function(){return jE({mode:e.mode,format:e.format,enableTimePicker:e.enableTimePicker})?.format}),o=U(function(){return SD({format:a.value,mode:e.mode,disableDate:e.disableDate})}),s=U(function(){return DD(wme({year:e.year,month:e.month,mode:e.mode,range:e.range,start:e.value?wE(e.multiple?e.value[0]:e.value,a.value).toDate():void 0,firstDayOfWeek:e.firstDayOfWeek||i.value.firstDayOfWeek,multiple:e.multiple,value:e.value},o.value))}),c=U(function(){return{format:a.value,value:e.value,mode:e.mode,year:e.year,month:e.month,range:e.range,firstDayOfWeek:e.firstDayOfWeek||i.value.firstDayOfWeek,tableData:s.value,popupVisible:e.popupVisible,multiple:e.multiple,enableTimePicker:e.enableTimePicker,timePickerProps:e.timePickerProps,time:e.time,onMonthChange:e.onMonthChange,onYearChange:e.onYearChange,onJumperClick:e.onJumperClick,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter,onCellMouseLeave:e.onCellMouseLeave,onTimePickerChange:e.onTimePickerChange,defaultTime:e.defaultTime,disableTime:e.disableTime,cell:e.cell}}),l=U(function(){return{presets:e.presets,enableTimePicker:e.enableTimePicker,presetsPlacement:e.presetsPlacement,onPresetClick:e.onPresetClick,onConfirmClick:e.onConfirmClick,selectedValue:e.value,needConfirm:e.needConfirm}});return function(){return V(`div`,{class:[r.value,G({},`${r.value}--direction-row`,[`left`,`right`].includes(e.presetsPlacement))],onClick:function(t){return e.onPanelClick?.call(e,{e:t})}},[[`top`,`left`].includes(e.presetsPlacement)?V(lO,l.value,n.presets?{presets:n.presets}:{}):null,V(sO,c.value,n),[`bottom`,`right`].includes(e.presetsPlacement)?V(lO,l.value,n.presets?{presets:n.presets}:{}):null])}}}),Tme=z({name:`TDatePicker`,props:xD,setup:function(e,t){var n=t.slots,r=Q(`date-picker`),i=IE(e),a=i.inputValue,o=i.popupVisible,s=i.inputProps,c=i.popupProps,l=i.isHoverCell,u=i.cacheValue,d=i.value,f=i.year,p=i.month,m=i.time,h=i.inputRef,g=i.onChange,_=Sm(),v=pm(),y=Rp(`datePicker`).globalConfig,b=Mm(),x=Tm({CalendarIcon:Hh}).CalendarIcon,S=U(function(){return jE({mode:e.mode,format:e.format,valueType:e.valueType,enableTimePicker:!e.multiple&&e.enableTimePicker})}),C=U(function(){return{value:d.value,displayValue:a.value}});R(o,function(t){if(!e.multiple){!e.needConfirm&&e.enableTimePicker&&!t&&(OE(a.value,{format:S.value.format})?g?.(OE(a.value,{format:S.value.format,targetFormat:S.value.valueType,defaultTime:e.defaultTime}),{dayjsValue:wE(a.value,S.value.format,void 0,void 0,e.defaultTime),trigger:`confirm`}):a.value=OE(d.value,{format:S.value.format}));var n=d.value&&!Yd(d.value)&&![`week`,`quarter`].includes(e.mode)?Xpe(d.value,S.value?.valueType):d.value;if(u.value=OE(n,{format:S.value.valueType,targetFormat:S.value.format}),a.value=OE(n,{format:S.value.valueType,targetFormat:S.value.format}),t){if((e.range&&K(e.range)||e.panelActiveDate)&&!d.value){var r,i=_D(e.range),o=i.min?.getFullYear()??i.max?.getFullYear(),s=i.min?.getMonth()??i.max?.getMonth();f.value=e.panelActiveDate?.year??o,p.value=(r=e.panelActiveDate)!=null&&r.month?Number(e.panelActiveDate?.month)-1:s}else f.value=wE(d.value,S.value.valueType).year(),p.value=wE(d.value,S.value.format).month();m.value=AE(d.value,S.value.format,S.value.timeFormat,e.defaultTime)}else l.value=!1}});function w(t){e.multiple||(l.value=!0,a.value=OE(t,{format:S.value.format}))}function T(){e.multiple||(l.value=!1,a.value=OE(u.value,{format:S.value.format}))}function E(t){var n;if(l.value=!1,e.mode===`date`&&(f.value=t.getFullYear(),p.value=t.getMonth()),e.enableTimePicker)u.value=OE(t,{format:S.value.format});else{if(e.multiple){g(D(t,e.defaultTime),{dayjsValue:wE(t,S.value.format,void 0,void 0,e.defaultTime),trigger:`pick`});return}g?.(OE(t,{format:S.value.format,targetFormat:S.value.valueType,defaultTime:e.defaultTime}),{dayjsValue:wE(t,S.value.format,void 0,void 0,e.defaultTime),trigger:`pick`}),o.value=!1}(n=e.onPick)==null||n.call(e,t)}function D(t,n){var r,i=d.value||[],a=y.value.dayjsLocale,o;return r=e.mode===`week`?i.some(function(e){return e===Z(t).locale(a).format(S.value.format)}):i.some(function(n){return dD(wE(n,S.value.format).toDate(),t,e.mode,a)}),o=r?i.filter(function(e){return OE(e,{format:S.value.format,targetFormat:S.value.valueType,defaultTime:n})!==OE(t,{format:S.value.format,targetFormat:S.value.valueType,defaultTime:n})}):i.concat(OE(t,{format:S.value.format,targetFormat:S.value.valueType,defaultTime:n})),o}function O(t){if([`week`,`quarter`].includes(e.mode)){g?.(t.value,{trigger:`tag-remove`});return}var n=Z(t.item).toDate(),r=D(n,e.defaultTime);g?.(r,{dayjsValue:wE(n,S.value.format,void 0,void 0,e.defaultTime),trigger:`tag-remove`})}function k(t){var n,r=t.e;r.stopPropagation(),o.value=!1,g?.(e.multiple?[]:``,{dayjsValue:Z(),trigger:`clear`}),(n=e.onClear)==null||n.call(e,{e:r})}function A(t){var n=t.trigger,r={date:1,week:1,month:12,quarter:12,year:120}[e.mode]||0,i=new Date(f.value,p.value),a=null;n===`prev`?a=mD(i,r):n===`current`?a=new Date:n===`next`&&(a=hD(i,r));var o=a.getFullYear(),s=a.getMonth(),c=f.value!==o,l=p.value!==s;if(f.value=o,p.value=s,c){var u;(u=e.onYearChange)==null||u.call(e,{year:o,date:new Date(o,s),trigger:n===`current`?`today`:`year-${aO[n]}`})}if(l){var d;(d=e.onMonthChange)==null||d.call(e,{month:s,date:new Date(o,s),trigger:n===`current`?`today`:`month-${aO[n]}`})}}function j(t){var n;m.value=t;var r=gD(t),i=r.hours,o=r.minutes,s=r.seconds,c=r.milliseconds,l=r.meridiem,d=i;/am/i.test(l)&&d===12&&(d-=12),/pm/i.test(l)&&d<12&&(d+=12);var f=(Z(a.value,S.value.format).isValid()?Z(a.value,S.value.format):Z()).hour(d).minute(o).second(s).millisecond(c).toDate();a.value=OE(f,{format:S.value.format}),u.value=OE(f,{format:S.value.format}),(n=e.onPick)==null||n.call(e,f)}function M(t){var n=t.e,r=OE(a.value,{format:S.value.format});if(r){var i;e==null||(i=e.onConfirm)==null||i.call(e,{date:Z(r).toDate(),e:n}),g?.(OE(a.value,{format:S.value.format,targetFormat:S.value.valueType,defaultTime:e.defaultTime}),{dayjsValue:wE(a.value,S.value.format,void 0,void 0,e.defaultTime),trigger:`confirm`})}else a.value=OE(d.value,{format:S.value.format});o.value=!1}function ee(t,n){var r,i=q(t)?t():t;g?.(OE(i,{format:S.value.format,targetFormat:S.value.valueType}),{dayjsValue:wE(i,S.value.format,void 0,void 0,e.defaultTime),trigger:`preset`}),a.value=OE(i,{format:S.value.format}),o.value=!1,(r=e.onPresetClick)==null||r.call(e,n)}function N(t){var n;f.value=t,(n=e.onYearChange)==null||n.call(e,{year:t,date:Z(d.value).toDate(),trigger:`year-select`})}function P(t){var n;p.value=t,(n=e.onMonthChange)==null||n.call(e,{month:t,date:Z(d.value).toDate(),trigger:`month-select`})}var F=U(function(){return{value:u.value,year:f.value,month:p.value,format:S.value.format,mode:e.mode,presets:e.presets,multiple:e.multiple,time:e.multiple?``:m.value,disableDate:e.disableDate,firstDayOfWeek:e.firstDayOfWeek,timePickerProps:e.timePickerProps,enableTimePicker:!e.multiple&&e.enableTimePicker,presetsPlacement:e.presetsPlacement,popupVisible:o.value,needConfirm:e.needConfirm,disableTime:e.disableTime,range:e.range,cell:e.cell,onCellClick:E,onCellMouseEnter:w,onCellMouseLeave:T,onJumperClick:A,onConfirmClick:M,onPresetClick:ee,onYearChange:N,onMonthChange:P,onTimePickerChange:j,onPanelClick:function(){var e,t;return(e=h.value)==null||(t=e.focus)==null?void 0:t.call(e)}}}),te=Jm(e.selectInputProps,{onClear:k});return function(){return V(`div`,{class:r.value},[V(ZC,H({borderless:e.borderless,disabled:_.value,value:a.value,label:function(){return v(`label`)},status:e.status,tips:e.tips,clearable:e.clearable,readonly:b.value,multiple:e.multiple,popupProps:c.value,inputProps:s.value,placeholder:e.placeholder||y.value.placeholder[e.mode],popupVisible:!b.value&&o.value,valueDisplay:function(){return v(`valueDisplay`,{params:C.value})}},e.selectInputProps,{panel:function(){return V(dO,F.value,n)},tagInputProps:{onRemove:O},prefixIcon:function(){return v(`prefixIcon`)},suffixIcon:function(){return v(`suffixIcon`)||V(x,null,null)}},te.value),null)])}}}),Eme={defaultTime:{type:String,default:`00:00:00`},onCellClick:Function,onChange:Function,onConfirm:Function,onMonthChange:Function,onPanelClick:Function,onPresetClick:Function,onTimeChange:Function,onYearChange:Function};function fO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Dme(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?fO(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ome=z({name:`TDatePickerPanel`,props:Dme({value:xD.value,defaultValue:xD.defaultValue,modelValue:xD.modelValue,disabled:xD.disabled,disableDate:xD.disableDate,enableTimePicker:xD.enableTimePicker,firstDayOfWeek:xD.firstDayOfWeek,format:xD.format,mode:xD.mode,presets:xD.presets,presetsPlacement:xD.presetsPlacement,timePickerProps:xD.timePickerProps},Eme),setup:function(e){var t=NE(e),n=t.cacheValue,r=t.value,i=t.year,a=t.month,o=t.time,s=t.onChange,c=U(function(){return jE({mode:e.mode,format:e.format,enableTimePicker:e.enableTimePicker})});function l(t,r){var o,l=r.e;(o=e.onCellClick)==null||o.call(e,{date:t,e:l}),e.mode===`date`&&(i.value=t.getFullYear(),a.value=t.getMonth()),e.enableTimePicker?n.value=OE(t,{format:c.value.format}):s?.(OE(t,{format:c.value.format,defaultTime:e.defaultTime}),{dayjsValue:wE(t,c.value.format,void 0,void 0,e.defaultTime),trigger:`pick`})}function u(t){var n=t.trigger,o={date:1,week:1,month:12,quarter:12,year:120}[e.mode]||0,s=new Date(i.value,a.value),c=null;n===`prev`?c=mD(s,o):n===`current`?c=new Date:n===`next`&&(c=hD(s,o));var l=c.getFullYear(),u=c.getMonth();if(i.value!==l){var d;(d=e.onYearChange)==null||d.call(e,{year:l,date:Z(r.value).toDate(),trigger:n===`current`?`today`:`year-${aO[n]}`})}if(a.value!==u){var f;(f=e.onMonthChange)==null||f.call(e,{month:u,date:Z(r.value).toDate(),trigger:n===`current`?`today`:`month-${aO[n]}`})}i.value=l,a.value=u}function d(t){var i;o.value=t;var a=gD(t),s=a.hours,l=a.minutes,u=a.seconds,d=a.milliseconds,f=a.meridiem,p=s;/am/i.test(f)&&p===12&&(p-=12),/pm/i.test(f)&&p<12&&(p+=12),n.value=OE((Z(n.value,c.value.format).isValid()?Z(n.value,c.value.format):Z()).hour(p).minute(l).second(u).millisecond(d).toDate(),{format:c.value.format}),(i=e.onTimeChange)==null||i.call(e,{time:t,date:Z(r.value).toDate(),trigger:`time-hour`})}function f(t){var r,i=t.e;s?.(OE(n.value,{format:c.value.format,defaultTime:e.defaultTime}),{dayjsValue:wE(n.value,c.value.format,void 0,void 0,e.defaultTime),trigger:`confirm`}),(r=e.onConfirm)==null||r.call(e,{date:Z(n.value).toDate(),e:i})}function p(t,n){var r,i=q(t)?t():t;s?.(OE(i,{format:c.value.format,defaultTime:e.defaultTime}),{dayjsValue:wE(i,c.value.format,void 0,void 0,e.defaultTime),trigger:`preset`}),(r=e.onPresetClick)==null||r.call(e,n)}function m(t){var n;i.value=t,(n=e.onYearChange)==null||n.call(e,{year:i.value,date:Z(r.value).toDate(),trigger:`year-select`})}function h(t){var n;a.value=t,(n=e.onMonthChange)==null||n.call(e,{month:a.value,date:Z(r.value).toDate(),trigger:`month-select`})}var g=U(function(){return{value:n.value,year:i.value,month:a.value,mode:e.mode,format:c.value.format,presets:e.presets,time:o.value,disableDate:e.disableDate,firstDayOfWeek:e.firstDayOfWeek,timePickerProps:e.timePickerProps,enableTimePicker:e.enableTimePicker,presetsPlacement:e.presetsPlacement,popupVisible:!0,panelClick:e.onPanelClick,onCellClick:l,onJumperClick:u,onConfirmClick:f,onPresetClick:p,onYearChange:m,onMonthChange:h,onTimePickerChange:d}});return function(){return V(dO,g.value,null)}}}),pO={allowInput:Boolean,borderless:Boolean,cancelRangeSelectLimit:Boolean,cell:{type:Function},clearable:Boolean,defaultTime:{type:Array,default:function(){return[`00:00:00`,`23:59:59`]}},disableDate:{type:[Object,Array,Function]},disableTime:{type:Function},disabled:{type:[Boolean,Array],default:void 0},enableTimePicker:Boolean,firstDayOfWeek:{type:Number,validator:function(e){return!e||[1,2,3,4,5,6,7].includes(e)}},format:{type:String,default:``},label:{type:[String,Function]},mode:{type:String,default:`date`,validator:function(e){return!e||[`year`,`quarter`,`month`,`week`,`date`].includes(e)}},needConfirm:{type:Boolean,default:!0},panelActiveDate:{type:Object,default:void 0},panelPreselection:{type:Boolean,default:!0},placeholder:{type:[String,Array]},popupProps:{type:Object},prefixIcon:{type:Function},presets:{type:[Object,Function]},presetsPlacement:{type:String,default:`bottom`,validator:function(e){return!e||[`left`,`top`,`right`,`bottom`].includes(e)}},range:{type:[Array,Function]},rangeInputProps:{type:Object},readonly:{type:Boolean,default:void 0},separator:{type:String,default:``},size:{type:String,default:`medium`,validator:function(e){return!e||[`small`,`medium`,`large`].includes(e)}},status:{type:String,default:`default`,validator:function(e){return!e||[`default`,`success`,`warning`,`error`].includes(e)}},suffixIcon:{type:Function},timePickerProps:{type:Object},tips:{type:[String,Function]},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:function(){return[]}},valueType:{type:String,validator:function(e){return!e||[`time-stamp`,`Date`,`YYYY`,`YYYY-MM`,`YYYY-MM-DD`,`YYYY-MM-DD HH`,`YYYY-MM-DD HH:mm`,`YYYY-MM-DD HH:mm:ss`,`YYYY-MM-DD HH:mm:ss:SSS`].includes(e)}},onBlur:Function,onChange:Function,onConfirm:Function,onFocus:Function,onInput:Function,onMonthChange:Function,onPick:Function,onPresetClick:Function,onYearChange:Function};function mO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?mO(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var gO=z({name:`TRangePanel`,props:{hoverValue:Array,range:[Array,Function],activeIndex:Number,isFirstValueSelected:Boolean,disabled:{type:[Boolean,Array]},disableDate:[Object,Array,Function],disableTime:Function,mode:{type:String,default:`date`},format:String,presetsPlacement:{type:String,default:`bottom`},value:Array,timePickerProps:Object,presets:Object,popupVisible:Boolean,enableTimePicker:Boolean,panelPreselection:Boolean,firstDayOfWeek:Number,year:Array,month:Array,time:Array,cancelRangeSelectLimit:Boolean,defaultTime:Array,onClick:Function,onCellClick:Function,onCellMouseEnter:Function,onCellMouseLeave:Function,onJumperClick:Function,onConfirmClick:Function,onPresetClick:Function,onYearChange:Function,onMonthChange:Function,onTimePickerChange:Function,needConfirm:Boolean,cell:{type:Function}},setup:function(e,t){var n=t.slots,r=Q(`date-range-picker__panel`),i=Rp(`datePicker`).globalConfig,a=U(function(){return jE({mode:e.mode,format:e.format,enableTimePicker:e.enableTimePicker})?.format}),o=!e.panelPreselection&&e.value.length===2,s=U(function(){var t=new Date(wE(e.value[0],a.value,`start`).toDate().setHours(0,0,0)),n=new Date(wE(e.value[1],a.value,`end`).toDate().setHours(23,59,59)),r=e.isFirstValueSelected&&e.activeIndex===1?t:void 0,i=e.isFirstValueSelected&&e.activeIndex===0?n:void 0;return e.disabled&&K(e.disabled)&&(e.disabled[0]?r=t:e.disabled[1]&&(i=n)),SD({format:a.value,mode:e.mode,disableDate:e.disableDate,start:r,end:i})}),c=U(function(){var t=e.range,n=e.range;if(K(e.range)){e.range.length!==2&&Vp.warn(`DateRangePicker`,"`range` length must be 2 when `range` is an array.");var r=e.range[0],i=e.range[1];(K(r)||q(r))&&(K(i)||q(i))&&(t=r,n=i)}return{start:t,end:n}}),l=U(function(){var t=q(e.disableDate)?e.disableDate({partial:`start`,value:e.value[0]}):s.value.disableDate;return DD(hO(hO({isRange:!0,start:e.value[0]?wE(e.value[0],a.value).toDate():void 0,end:e.value[1]?wE(e.value[1],a.value).toDate():void 0,hoverStart:!o&&e.hoverValue[0]?wE(e.hoverValue[0],a.value).toDate():void 0,hoverEnd:!o&&e.hoverValue[1]?wE(e.hoverValue[1],a.value).toDate():void 0,year:e.year[0],month:e.month[0],mode:e.mode,firstDayOfWeek:e.firstDayOfWeek||i.value.firstDayOfWeek,range:c.value.start},s.value),{},{disableDate:t,cancelRangeSelectLimit:e.cancelRangeSelectLimit}))}),u=U(function(){var t=q(e.disableDate)?e.disableDate({partial:`end`,value:e.value}):s.value.disableDate;return DD(hO(hO({isRange:!0,start:e.value[0]?wE(e.value[0],a.value).toDate():void 0,end:e.value[1]?wE(e.value[1],a.value).toDate():void 0,hoverStart:!o&&e.hoverValue[0]?wE(e.hoverValue[0],a.value).toDate():void 0,hoverEnd:!o&&e.hoverValue[1]?wE(e.hoverValue[1],a.value).toDate():void 0,year:e.mode===`year`&&e.year[1]-e.year[0]<=9?e.year[1]+9:e.year[1],month:e.month[1],mode:e.mode,firstDayOfWeek:e.firstDayOfWeek||i.value.firstDayOfWeek,range:c.value.end},s.value),{},{disableDate:t,cancelRangeSelectLimit:e.cancelRangeSelectLimit}))}),d=U(function(){return{format:a.value,mode:e.mode,firstDayOfWeek:e.firstDayOfWeek||i.value.firstDayOfWeek,internalYear:e.year,popupVisible:e.popupVisible,enableTimePicker:e.enableTimePicker,timePickerProps:e.timePickerProps,onMonthChange:e.onMonthChange,onYearChange:e.onYearChange,onJumperClick:e.onJumperClick,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter,onCellMouseLeave:e.onCellMouseLeave,onTimePickerChange:e.onTimePickerChange,disableTime:e.disableTime,defaultTime:e.defaultTime,cell:e.cell}});return function(){return V(`div`,{class:[r.value,G({},`${r.value}--direction-row`,[`left`,`right`].includes(e.presetsPlacement))],onClick:function(t){return e.onClick?.call(e,{e:t})}},[[`top`,`left`].includes(e.presetsPlacement)?V(lO,{presets:e.presets,selectedValue:e.value[e.activeIndex],enableTimePicker:e.enableTimePicker,onPresetClick:e.onPresetClick,onConfirmClick:e.onConfirmClick,presetsPlacement:e.presetsPlacement,needConfirm:e.needConfirm},{presets:n.presets}):null,V(`div`,{class:`${r.value}-content-wrapper`},[e.enableTimePicker?V(sO,H({key:`start`,partial:e.activeIndex?`end`:`start`,year:e.activeIndex?e.year[1]:e.year[0],month:e.activeIndex?e.month[1]:e.month[0],time:e.activeIndex?e.time[1]:e.time[0],value:e.value,tableData:e.activeIndex?u.value:l.value,range:e.activeIndex?c.value.end:c.value.start},d.value),null):[V(sO,H({key:`startPanel`,partial:`start`,year:e.year[0],month:e.month[0],time:e.time[e.activeIndex],value:e.value,tableData:l.value,range:c.value.start},d.value),n),V(sO,H({key:`endPanel`,partial:`end`,year:e.year[1],month:e.month[1],time:e.time[e.activeIndex],value:e.value,tableData:u.value,range:c.value.end},d.value),n)]]),[`bottom`,`right`].includes(e.presetsPlacement)?V(lO,{presets:e.presets,selectedValue:e.value[e.activeIndex],enableTimePicker:e.enableTimePicker,onPresetClick:e.onPresetClick,onConfirmClick:e.onConfirmClick,presetsPlacement:e.presetsPlacement,needConfirm:e.needConfirm},{presets:n.presets}):null])}}}),kme=z({name:`TDateRangePicker`,props:pO,setup:function(e,t){var n=t.slots,r=Q(`date-range-picker`),i=Qpe(e),a=i.inputValue,o=i.popupVisible,s=i.rangeInputProps,c=i.popupProps,l=i.value,u=i.year,d=i.month,f=i.time,p=i.cacheValue,m=i.activeIndex,h=i.isHoverCell,g=i.isFirstValueSelected,_=i.onRawChange,v=Sm(),y=Mm(),b=U(function(){return jE({mode:e.mode,enableTimePicker:e.enableTimePicker,format:e.format,valueType:e.valueType})}),x=I(!1);R(o,function(t){if(t)if(K(e.disabled)&&(m.value=+!!e.disabled[0]),x.value=!1,p.value=OE(l.value||[],{format:b.value.valueType,targetFormat:b.value.format}),f.value=AE(l.value||[Z().format(b.value.timeFormat),Z().format(b.value.timeFormat)],b.value.format,b.value.timeFormat,e.defaultTime),!l.value.length)if(e.range&&K(e.range)||e.panelActiveDate){var n,r,i=e.range,o=e.range;if(K(e.range)){var s=Y(e.range,2),c=s[0],_=s[1];(K(c)||q(c)||K(_)||q(_))&&(i=c,o=_)}var v=_D(i),y=_D(o),S=v.min?.getFullYear()??v.max?.getFullYear(),C=v.min?.getMonth()??v.max?.getMonth(),w=y.min?.getFullYear()??y.max?.getFullYear(),T=y.min?.getMonth()??y.max?.getMonth(),E=e.panelActiveDate,O=e.panelActiveDate;if(K(e.panelActiveDate)){var k=Y(e.panelActiveDate,2);E=k[0],O=k[1]}var A=E?.year??S,j=(n=E)!=null&&n.month?Number(E?.month)-1:C,M=O?.year??w,ee=(r=O)!=null&&r.month?Number(O?.month)-1:T,N=ME({value:l.value,mode:e.mode,format:b.value.format,enableTimePicker:e.enableTimePicker}),P=N.year,F=N.month;u.value=[A??P[0],M??P[1]],d.value=[j??F[0],ee??F[1]],u.value[0]===u.value[1]&&d.value[0]===d.value[1]&&!e.enableTimePicker&&i===o&&(e.mode===`year`?u.value[1]+=10:e.mode===`month`||e.mode===`quarter`?u.value[1]+=1:d.value[1]+=1)}else{var te=ME({value:l.value,mode:e.mode,format:b.value.format,enableTimePicker:e.enableTimePicker}),ne=te.year,re=te.month;u.value=ne,d.value=re}else if(l.value.length===2&&!e.enableTimePicker){var ie=l.value.map(function(e){return wE(e,b.value.format).month()});u.value=l.value.map(function(e){return wE(e,b.value.valueType).year()}),u.value[0]===u.value[1]&&ie[0]===ie[1]&&(ie[0]===11?--ie[0]:ie[1]+=1),d.value=ie,(e.mode===`month`||e.mode===`quarter`)&&u.value[0]===u.value[1]&&(u.value=[u.value[0],u.value[0]+1])}else u.value=l.value.map(function(e){return wE(e,b.value.format).year()}),u.value.length===1&&(u.value=[u.value[0],u.value[0]]),d.value=l.value.map(function(e){return wE(e,b.value.format).month()}),d.value.length===1&&(d.value=[d.value[0],Math.min(d.value[0]+1,11)]);else m.value=0,h.value=!1,g.value=!1,e.needConfirm?a.value=OE(l.value,{format:b.value.valueType,targetFormat:b.value.format}):D()});function S(e){h.value=!0;var t=W(a.value);t[m.value]=OE(e,{format:b.value.format}),a.value=t}function C(){h.value=!1,a.value=p.value}function w(t,n){var r,i=n.e;(r=e.onPick)==null||r.call(e,t,{e:i,partial:m.value?`end`:`start`}),h.value=!1,x.value=!0;var s=W(a.value);if(s[m.value]=OE(t,{format:b.value.format}),p.value=s,a.value=s,!e.enableTimePicker){var c=s.findIndex(function(e){return!e||!DE(e,b.value.format)});if(c===-1&&s.length===2&&(!g.value&&wE(s[0],b.value.format).isAfter(wE(s[1],b.value.format))?(s[+!m.value]=``,p.value=s,a.value=s):_?.(OE(s,{format:b.value.format,targetFormat:b.value.valueType,autoSwap:!0,defaultTime:e.defaultTime}),{dayjsValue:s.map(function(t,n){return wE(t,b.value.format,void 0,void 0,e.defaultTime?.[n])}),trigger:`pick`})),!Array.isArray(e.disabled))if(g.value)o.value=!1;else{var l=c;l===-1&&(l=+!m.value),m.value=l,g.value=s.some(function(e){return!!e})}}}function T(t){var n=t.trigger,r=t.partial,i=r===`start`?0:1,a={date:1,week:1,month:12,quarter:12,year:120}[e.mode]||0,o=new Date(u.value[i],d.value[i]),s=null;n===`prev`?s=mD(o,a):n===`current`?s=new Date:n===`next`&&(s=hD(o,a));var c=W(u.value);c[i]=s.getFullYear();var f=W(d.value);f[i]=s.getMonth();var p=[`year`,`quarter`,`month`].includes(e.mode),m=rO(i,c,f,p);c=m.nextYear,f=m.nextMonth;var h=u.value[i]!==c[i],g=d.value[i]!==f[i];if(u.value=c,d.value=f,h){var _;(_=e.onYearChange)==null||_.call(e,{partial:r,year:c[i],date:l.value.map(function(e){return Z(e).toDate()}),trigger:n===`current`?`today`:`year-${aO[n]}`})}if(g){var v;(v=e.onMonthChange)==null||v.call(e,{partial:r,month:f[i],date:l.value.map(function(e){return Z(e).toDate()}),trigger:n===`current`?`today`:`month-${aO[n]}`})}}function E(e){var t=gD(e),n=t.hours,r=t.minutes,i=t.seconds,o=t.milliseconds,s=t.meridiem,c=W(a.value),l=c[m.value],h=Z(l,b.value.format).isValid()?Z(l,b.value.format):Z().year(u.value[m.value]).month(d.value[m.value]),g=n;/am/i.test(s)&&g===12&&(g-=12),/pm/i.test(s)&&g<12&&(g+=12);var _=h.hour(g).minute(r).second(i).millisecond(o).toDate();c[m.value]=_;var v=W(f.value);v[m.value]=e,f.value=v,x.value=!0,a.value=OE(c,{format:b.value.format}),p.value=OE(c,{format:b.value.format})}var D=function(t){var n=W(a.value);if(n.findIndex(function(e){return!e||!DE(e,b.value.format)})===-1&&n.length===2)if(!g.value&&wE(n[0],b.value.format).isAfter(wE(n[1],b.value.format)))n[+!m.value]=``,p.value=n,a.value=n;else{var r,i=OE(n,{format:b.value.format,targetFormat:b.value.valueType,autoSwap:!0,defaultTime:e.defaultTime}),o=Array.isArray(i)&&i.length===2&&i[0]!=null&&i[1]!=null&&l.value[0]!=null&&l.value[1]!=null&&Z(i[0]).valueOf()===Z(l.value[0]).valueOf()&&Z(i[1]).valueOf()===Z(l.value[1]).valueOf();e==null||(r=e.onConfirm)==null||r.call(e,{date:n.map(function(e){return Z(e).toDate()}),e:t||null,partial:m.value?`end`:`start`}),o||_?.(i,{dayjsValue:n.map(function(t,n){return wE(t,b.value.format,void 0,void 0,e.defaultTime?.[n])}),trigger:`confirm`})}};function O(t){var n=t.e;D(n);var r=W(a.value),i=r.findIndex(function(e){return!e||!DE(e,b.value.format)});if(Array.isArray(e.disabled))o.value=!1;else if(g.value)r.length===2&&(o.value=!1);else{var s=i;s===-1&&(s=+!m.value),m.value=s,g.value=r.some(function(e){return!!e})}}function k(t,n){var r=t;if(q(t)&&(r=t()),!K(r))console.error(`preset: ${t} 预设值必须是数组!`);else{var i;_?.(OE(r,{format:b.value.format,targetFormat:b.value.valueType,autoSwap:!0,defaultTime:e.defaultTime}),{dayjsValue:r.map(function(t,n){return wE(t,b.value.format,void 0,void 0,e.defaultTime?.[n])}),trigger:`preset`}),a.value=OE(r,{format:b.value.format}),o.value=!1,(i=e.onPresetClick)==null||i.call(e,n)}}function A(t,n){var r,i=n.partial,a=i===`start`?0:1;e.enableTimePicker&&(a=m.value);var o=W(u.value),s=W(d.value);o[a]=t;var c=[`year`,`quarter`,`month`].includes(e.mode),f=rO(a,o,s,c);o=f.nextYear,s=f.nextMonth,u.value=o,c||(d.value=s),(r=e.onYearChange)==null||r.call(e,{partial:i,year:o[a],date:l.value.map(function(e){return Z(e).toDate()}),trigger:`year-select`})}function j(t,n){var r,i=n.partial,a=i===`start`?0:1;e.enableTimePicker&&(a=m.value);var o=W(d.value);o[a]=t,u.value[0]===u.value[1]&&(a===0&&o[1]<=o[0]&&(o[1]=o[0]+1,o[1]===12)&&(o[1]=0,u.value=[u.value?.[0],u.value?.[1]+1]),a===1&&(o[0]=Math.min(o[0],o[1]),o[0]>=o[1]&&(--o[0],o[0]===-1))&&(o[0]=11,u.value=[u.value?.[0]-1,u.value?.[1]])),d.value=o,(r=e.onMonthChange)==null||r.call(e,{partial:i,month:o[a],date:l.value.map(function(e){return Z(e).toDate()}),trigger:`month-select`})}var M=U(function(){return{hoverValue:h.value?a.value:[],value:x.value?p.value:l.value,isFirstValueSelected:g.value,activeIndex:m.value,year:u.value,month:d.value,format:b.value.format,mode:e.mode,presets:e.presets,time:f.value,disableDate:e.disableDate,disabled:v.value,disableTime:e.disableTime,firstDayOfWeek:e.firstDayOfWeek,timePickerProps:e.timePickerProps,enableTimePicker:e.enableTimePicker,presetsPlacement:e.presetsPlacement,popupVisible:o.value,range:e.range,panelPreselection:e.panelPreselection,cancelRangeSelectLimit:e.cancelRangeSelectLimit,needConfirm:e.needConfirm,onCellClick:w,onCellMouseEnter:S,onCellMouseLeave:C,onJumperClick:T,onConfirmClick:O,onPresetClick:k,onYearChange:A,onMonthChange:j,onTimePickerChange:E,cell:e.cell}});return function(){return V(`div`,{class:r.value},[V($D,{readonly:y.value,disabled:v.value,label:e.label,status:e.status,tips:e.tips||n.tips,inputValue:a.value,popupProps:c.value,rangeInputProps:s.value,popupVisible:o.value,panel:function(){return V(gO,M.value,n)}},null)])}}}),Ame={defaultTime:{type:Array,default:function(){return[`00:00:00`,`23:59:59`]}},onCellClick:Function,onChange:Function,onConfirm:Function,onMonthChange:Function,onPanelClick:Function,onPresetClick:Function,onTimeChange:Function,onYearChange:Function};function _O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jme(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_O(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_O(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Mme=z({name:`TDateRangePickerPanel`,props:jme({value:pO.value,defaultValue:pO.defaultValue,modelValue:pO.modelValue,disabled:pO.disabled,disableDate:pO.disableDate,enableTimePicker:pO.enableTimePicker,firstDayOfWeek:pO.firstDayOfWeek,format:pO.format,mode:pO.mode,presets:pO.presets,presetsPlacement:pO.presetsPlacement,timePickerProps:pO.timePickerProps,panelPreselection:pO.panelPreselection},Ame),setup:function(e){var t=CD(e),n=t.value,r=t.year,i=t.month,a=t.time,o=t.cacheValue,s=t.isFirstValueSelected,c=t.onRawChange,l=U(function(){return jE({mode:e.mode,enableTimePicker:e.enableTimePicker,format:e.format})}),u=I(!1),d=I(!1),f=I([]),p=U(function(){return+!!s.value});mr(function(){if(n.value.length===2&&!e.enableTimePicker){var t=n.value.map(function(e){return wE(e,l.value.format).month()});r.value=n.value.map(function(e){return wE(e,l.value.valueType).year()}),r.value[0]===r.value[1]&&t[0]===t[1]&&(t[0]===11?--t[0]:t[1]+=1),i.value=t,[`month`,`quarter`].includes(e.mode)&&r.value[0]===r.value[1]&&(r.value=[r.value[0],r.value[0]+1])}});function m(e){d.value=!0;var t=W(f.value);t[p.value]=OE(e,{format:l.value.format}),f.value=t}function h(){d.value=!1,f.value=o.value}function g(t,n){var r,i=n.e;d.value=!1,u.value=!0;var a=W(o.value);a[p.value]=OE(t,{format:l.value.format}),o.value=a,(r=e.onCellClick)==null||r.call(e,{e:i,partial:p.value?`end`:`start`,date:a.map(function(e){return Z(e).toDate()})}),!e.enableTimePicker&&(a.length===2&&s.value?(c?.(OE(a,{format:l.value.format,autoSwap:!0,defaultTime:e.defaultTime}),{dayjsValue:a.map(function(t,n){return wE(t,l.value.format,void 0,void 0,e.defaultTime?.[n])}),trigger:`pick`}),s.value=!1):s.value=!0)}function _(t){var a=t.trigger,o=t.partial,s=o===`start`?0:1,c={date:1,week:1,month:12,quarter:12,year:120}[e.mode]||0,l=new Date(r.value[s],i.value[s]),u=null;a===`prev`?u=mD(l,c):a===`current`?u=new Date:a===`next`&&(u=hD(l,c));var d=W(r.value);d[s]=u.getFullYear();var f=W(i.value);f[s]=u.getMonth();var p=[`year`,`quarter`,`month`].includes(e.mode),m=rO(s,d,f,p);if(d=m.nextYear,f=m.nextMonth,r.value.some(function(e){return!d.includes(e)})){var h;(h=e.onYearChange)==null||h.call(e,{partial:o,year:d[s],date:n.value.map(function(e){return Z(e).toDate()}),trigger:a===`current`?`today`:`year-${aO[a]}`})}if(i.value.some(function(e){return!f.includes(e)})){var g;(g=e.onMonthChange)==null||g.call(e,{partial:o,month:f[s],date:n.value.map(function(e){return Z(e).toDate()}),trigger:a===`current`?`today`:`month-${aO[a]}`})}r.value=d,i.value=f}function v(t){var s,c=gD(t),d=c.hours,f=c.minutes,m=c.seconds,h=c.milliseconds,g=c.meridiem,_=W(o.value),v=o.value[p.value],y=Z(v,l.value.format).isValid()?Z(v,l.value.format):Z().year(r.value[p.value]).month(i.value[p.value]),b=d;/am/i.test(g)&&b===12&&(b-=12),/pm/i.test(g)&&b<12&&(b+=12);var x=y.hour(b).minute(f).second(m).millisecond(h).toDate();_[p.value]=x;var S=W(a.value);S[p.value]=t,a.value=S,u.value=!0,o.value=OE(_,{format:l.value.format}),(s=e.onTimeChange)==null||s.call(e,{time:t,date:n.value.map(function(e){return wE(e,l.value.format).toDate()}),partial:p.value?`end`:`start`,trigger:`time-hour`})}function y(t){var a,u=t.e,d=W(o.value);d.length===2&&s.value?(c?.(OE(d,{format:l.value.format,autoSwap:!0,defaultTime:e.defaultTime}),{dayjsValue:d.map(function(t,n){return wE(t,l.value.format,void 0,void 0,e.defaultTime?.[n])}),trigger:`confirm`}),r.value=d.map(function(e){return Z(e,l.value.format).year()}),i.value=d.map(function(e){return Z(e,l.value.format).month()}),s.value=!1):s.value=!0,(a=e.onConfirm)==null||a.call(e,{date:n.value.map(function(e){return Z(e).toDate()}),e:u})}function b(t,n){var r=t;if(q(t)&&(r=t()),!K(r))console.error(`preset: ${t} 预设值必须是数组!`);else{var i;c?.(OE(r,{format:l.value.format,autoSwap:!0,defaultTime:e.defaultTime}),{dayjsValue:r.map(function(t,n){return wE(t,l.value.format,void 0,void 0,e.defaultTime?.[n])}),trigger:`preset`}),(i=e.onPresetClick)==null||i.call(e,n)}}function x(t,a){var o,s=a.partial,c=s===`start`?0:1;e.enableTimePicker&&(c=p.value);var l=W(r.value);l[c]=t;var u=W(i.value),d=[`year`,`quarter`,`month`].includes(e.mode),f=rO(c,l,u,d);l=f.nextYear,u=f.nextMonth,r.value=l,d||(i.value=u),(o=e.onYearChange)==null||o.call(e,{partial:s,year:l[c],date:n.value.map(function(e){return Z(e).toDate()}),trigger:`year-select`})}function S(t,a){var o,s=a.partial,c=s===`start`?0:1;e.enableTimePicker&&(c=p.value);var l=W(i.value);l[c]=t,r.value[0]===r.value[1]&&(c===0&&l[1]<=l[0]&&(l[1]=l[0]+1,l[1]===12)&&(l[1]=0,r.value=[r.value?.[0],r.value?.[1]+1]),c===1&&(l[0]=Math.min(l[0],l[1]),l[0]>=l[1]&&(--l[0],l[0]===-1))&&(l[0]=11,r.value=[r.value?.[0]-1,r.value?.[1]])),i.value=l,(o=e.onMonthChange)==null||o.call(e,{partial:s,month:l[c],date:n.value.map(function(e){return Z(e).toDate()}),trigger:`month-select`})}var C=U(function(){return{hoverValue:d.value?f.value:[],value:u.value?o.value:n.value,activeIndex:p.value,year:r.value,month:i.value,mode:e.mode,format:l.value.format,presets:e.presets,time:a.value,disableDate:e.disableDate,range:e.range,firstDayOfWeek:e.firstDayOfWeek,timePickerProps:e.timePickerProps,enableTimePicker:e.enableTimePicker,presetsPlacement:e.presetsPlacement,panelPreselection:e.panelPreselection,popupVisible:!0,panelClick:e.onPanelClick,onCellClick:g,onCellMouseEnter:m,onCellMouseLeave:h,onJumperClick:_,onConfirmClick:y,onPresetClick:b,onYearChange:x,onMonthChange:S,onTimePickerChange:v}});return function(){return V(gO,C.value,null)}}}),Nme=X(Tme),Pme=X(Ome),Fme=X(kme),Ime=X(Mme),Lme={colon:Boolean,data:{type:Object,default:function(){return{}}},disabled:{type:Boolean,default:void 0},errorMessage:{type:Object},id:{type:String,default:void 0},labelAlign:{type:String,default:`right`,validator:function(e){return!e||[`left`,`right`,`top`].includes(e)}},labelWidth:{type:[String,Number],default:`100px`},layout:{type:String,default:`vertical`,validator:function(e){return!e||[`vertical`,`inline`].includes(e)}},preventSubmitDefault:{type:Boolean,default:!0},readonly:{type:Boolean,default:void 0},requiredMark:{type:Boolean,default:void 0},requiredMarkPosition:{type:String,validator:function(e){return!e||[`left`,`right`].includes(e)}},resetType:{type:String,default:`empty`,validator:function(e){return!e||[`empty`,`initial`].includes(e)}},rules:{type:Object},scrollToFirstError:{type:String,validator:function(e){return!e||[``,`smooth`,`auto`].includes(e)}},showErrorMessage:{type:Boolean,default:!0},statusIcon:{type:[Boolean,Function],default:void 0},submitWithWarningMessage:Boolean,onReset:Function,onSubmit:Function,onValidate:Function},vO={exports:{}},yO={exports:{}};yO.exports,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}e.exports=t.default,e.exports.default=t.default})(yO,yO.exports);var bO=yO.exports;vO.exports,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var n=r(bO);function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return s(e)||o(e,t)||l(e,t)||a()}function a(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function s(e){if(Array.isArray(e))return e}function c(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=l(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function l(e,t){if(e){if(typeof e==`string`)return u(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var d={format:`YYYY/MM/DD`,delimiters:[`/`,`-`],strictMode:!1};function f(e){return/(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(e)}function p(e,t){for(var n=[],r=Math.max(e.length,t.length),i=0;i<r;i++)n.push([e[i],t[i]]);return n}function m(e,t){if(t=typeof t==`string`?(0,n.default)({format:t},d):(0,n.default)(t,d),typeof e==`string`&&f(t.format)){if(t.strictMode&&e.length!==t.format.length)return!1;var r=t.delimiters.find(function(e){return t.format.indexOf(e)!==-1}),a=t.strictMode?r:t.delimiters.find(function(t){return e.indexOf(t)!==-1}),o=p(e.split(a),t.format.toLowerCase().split(r)),s={},l=c(o),u;try{for(l.s();!(u=l.n()).done;){var m=i(u.value,2),h=m[0],g=m[1];if(!h||!g||h.length!==g.length)return!1;s[g.charAt(0)]=h}}catch(e){l.e(e)}finally{l.f()}var _=s.y;if(_.startsWith(`-`))return!1;if(s.y.length===2){var v=parseInt(s.y,10);if(isNaN(v))return!1;_=v<new Date().getFullYear()%100?`20${s.y}`:`19${s.y}`}var y=s.m;s.m.length===1&&(y=`0${s.m}`);var b=s.d;return s.d.length===1&&(b=`0${s.d}`),new Date(`${_}-${y}-${b}T00:00:00.000Z`).getUTCDate()===+s.d}return!t.strictMode&&Object.prototype.toString.call(e)===`[object Date]`&&isFinite(e)}e.exports=t.default,e.exports.default=t.default})(vO,vO.exports);var Rme=vO.exports,zme=Jf(Rme),xO={exports:{}},SO={exports:{}};SO.exports,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(e){if(e==null)throw TypeError(`Expected a string but received a ${e}`);if(e.constructor.name!==`String`)throw TypeError(`Expected a string but received a ${e.constructor.name}`)}e.exports=t.default,e.exports.default=t.default})(SO,SO.exports);var CO=SO.exports,wO={exports:{}};wO.exports,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function n(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function r(e,t){for(var r=0;r<t.length;r++){var i=t[r];if(e===i||n(i)&&i.test(e))return!0}return!1}e.exports=t.default,e.exports.default=t.default})(wO,wO.exports);var TO=wO.exports,EO={exports:{}};EO.exports,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(CO);function r(e){return e&&e.__esModule?e:{default:e}}function i(e){"@babel/helpers - typeof";return i=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i(e)}function a(e,t){(0,n.default)(e);var r,a;i(t)===`object`?(r=t.min||0,a=t.max):(r=arguments[1],a=arguments[2]);var o=encodeURI(e).split(/%..|./).length-1;return o>=r&&(a===void 0||o<=a)}e.exports=t.default,e.exports.default=t.default})(EO,EO.exports);var Bme=EO.exports,DO={exports:{}};DO.exports,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=i(CO),r=i(bO);function i(e){return e&&e.__esModule?e:{default:e}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function o(e,t){(0,n.default)(e),t=(0,r.default)(t,a),t.allow_trailing_dot&&e[e.length-1]===`.`&&(e=e.substring(0,e.length-1)),t.allow_wildcard===!0&&e.indexOf(`*.`)===0&&(e=e.substring(2));var i=e.split(`.`),o=i[i.length-1];return t.require_tld&&(i.length<2||!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(o)||/\s/.test(o))||!t.allow_numeric_tld&&/^\d+$/.test(o)?!1:i.every(function(e){return!(e.length>63&&!t.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)||/[\uff01-\uff5e]/.test(e)||/^-|-$/.test(e)||!t.allow_underscores&&/_/.test(e))})}e.exports=t.default,e.exports.default=t.default})(DO,DO.exports);var OO=DO.exports,kO={exports:{}};kO.exports,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(CO);function r(e){return e&&e.__esModule?e:{default:e}}function i(e){"@babel/helpers - typeof";return i=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i(e)}var a=`(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])`,o=`(${a}[.]){3}${a}`,s=RegExp(`^${o}\$`),c=`(?:[0-9a-fA-F]{1,4})`,l=RegExp(`^((?:${c}:){7}(?:${c}|:)|(?:${c}:){6}(?:${o}|:${c}|:)|(?:${c}:){5}(?::${o}|(:${c}){1,2}|:)|(?:${c}:){4}(?:(:${c}){0,1}:${o}|(:${c}){1,3}|:)|(?:${c}:){3}(?:(:${c}){0,2}:${o}|(:${c}){1,4}|:)|(?:${c}:){2}(?:(:${c}){0,3}:${o}|(:${c}){1,5}|:)|(?:${c}:){1}(?:(:${c}){0,4}:${o}|(:${c}){1,6}|:)|(?::((?::${c}){0,5}:${o}|(?::${c}){1,7}|:)))(%[0-9a-zA-Z.]{1,})?\$`);function u(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,n.default)(e);var r=(i(t)===`object`?t.version:arguments[1])||``;return r?r.toString()===`4`?s.test(e):r.toString()===`6`&&l.test(e):u(e,{version:4})||u(e,{version:6})}e.exports=t.default,e.exports.default=t.default})(kO,kO.exports);var AO=kO.exports;xO.exports,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;var n=c(CO),r=c(TO),i=c(Bme),a=c(OO),o=c(AO),s=c(bO);function c(e){return e&&e.__esModule?e:{default:e}}var l={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:``,ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},u=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,d=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,f=/^[a-z\d]+$/,p=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,m=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,h=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,g=254;function _(e){var t=e.replace(/^"(.+)"$/,`$1`);return!(!t.trim()||/[\.";<>]/.test(t)&&(t===e||t.split(`"`).length!==t.split(`\\"`).length))}function v(e,t){if((0,n.default)(e),t=(0,s.default)(t,l),t.require_display_name||t.allow_display_name){var c=e.match(u);if(c){var v=c[1];if(e=e.replace(v,``).replace(/(^<|>$)/g,``),v.endsWith(` `)&&(v=v.slice(0,-1)),!_(v))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>g)return!1;var y=e.split(`@`),b=y.pop(),x=b.toLowerCase();if(t.host_blacklist.length>0&&(0,r.default)(x,t.host_blacklist)||t.host_whitelist.length>0&&!(0,r.default)(x,t.host_whitelist))return!1;var S=y.join(`@`);if(t.domain_specific_validation&&(x===`gmail.com`||x===`googlemail.com`)){S=S.toLowerCase();var C=S.split(`+`)[0];if(!(0,i.default)(C.replace(/\./g,``),{min:6,max:30}))return!1;for(var w=C.split(`.`),T=0;T<w.length;T++)if(!f.test(w[T]))return!1}if(t.ignore_max_length===!1&&(!(0,i.default)(S,{max:64})||!(0,i.default)(b,{max:254})))return!1;if(!(0,a.default)(b,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length,allow_underscores:t.allow_underscores})){if(!t.allow_ip_domain)return!1;if(!(0,o.default)(b)){if(!b.startsWith(`[`)||!b.endsWith(`]`))return!1;var E=b.slice(1,-1);if(E.length===0||!(0,o.default)(E))return!1}}if(t.blacklisted_chars&&S.search(RegExp(`[${t.blacklisted_chars}]+`,`g`))!==-1)return!1;if(S[0]===`"`&&S[S.length-1]===`"`)return S=S.slice(1,S.length-1),t.allow_utf8_local_part?h.test(S):p.test(S);for(var D=t.allow_utf8_local_part?m:d,O=S.split(`.`),k=0;k<O.length;k++)if(!D.test(O[k]))return!1;return!0}e.exports=t.default,e.exports.default=t.default})(xO,xO.exports);var Vme=xO.exports,Hme=Jf(Vme),jO={exports:{}},MO={exports:{}};MO.exports,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e,t){return e.indexOf(t)!==-1},e.exports=t.default,e.exports.default=t.default})(MO,MO.exports);var Ume=MO.exports;jO.exports,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=_;var n=c(CO),r=c(TO),i=c(Ume),a=c(OO),o=c(AO),s=c(bO);function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){return m(e)||p(e,t)||d(e,t)||u()}function u(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(e,t){if(e){if(typeof e==`string`)return f(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function m(e){if(Array.isArray(e))return e}var h={protocols:[`http`,`https`,`ftp`],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0,max_allowed_length:2084},g=/^\[([^\]]+)\](?::([0-9]+))?$/;function _(e,t){if((0,n.default)(e),!e||/[\s<>]/.test(e)||e.indexOf(`mailto:`)===0||(t=(0,s.default)(t,h),t.validate_length&&e.length>t.max_allowed_length)||!t.allow_fragments&&(0,i.default)(e,`#`)||!t.allow_query_components&&((0,i.default)(e,`?`)||(0,i.default)(e,`&`)))return!1;var c,u,d,f,p,m,_=e.split(`#`),v;e=_.shift(),_=e.split(`?`),e=_.shift();var y=e.match(/^([a-z][a-z0-9+\-.]*):/i),b=!1,x=function(n){return b=!0,c=n.toLowerCase(),t.require_valid_protocol&&t.protocols.indexOf(c)===-1?!1:e.substring(y[0].length)};if(y){var S=y[1],C=e.substring(y[0].length);if(C.slice(0,2)!==`//`){var w=C.indexOf(`/`),T=w===-1?C:C.substring(0,w),E=T.indexOf(`@`);if(E!==-1){var D=T.substring(0,E);if(/^[a-zA-Z0-9\-_.%:]*$/.test(D)){if(t.require_protocol)return!1}else if(e=x(S),e===!1)return!1}else if(/^[0-9]/.test(C)){if(t.require_protocol)return!1}else if(e=x(S),e===!1)return!1}else if(e=x(S),e===!1)return!1}else if(t.require_protocol)return!1;if(e.slice(0,2)===`//`){if(!b&&!t.allow_protocol_relative_urls)return!1;e=e.slice(2)}if(e===``)return!1;if(_=e.split(`/`),e=_.shift(),e===``&&!t.require_host)return!0;if(_=e.split(`@`),_.length>1){if(t.disallow_auth||_[0]===``||(u=_.shift(),u.indexOf(`:`)>=0&&u.split(`:`).length>2))return!1;var O=l(u.split(`:`),2),k=O[0],A=O[1];if(k===``&&A===``)return!1}f=_.join(`@`),m=null,v=null;var j=f.match(g);if(j?(d=``,v=j[1],m=j[2]||null):(_=f.split(`:`),d=_.shift(),_.length&&(m=_.join(`:`))),m!==null&&m.length>0){if(p=parseInt(m,10),!/^[0-9]+$/.test(m)||p<=0||p>65535)return!1}else if(t.require_port)return!1;return t.host_whitelist?(0,r.default)(d,t.host_whitelist):d===``&&!t.require_host||!(!(0,o.default)(d)&&!(0,a.default)(d,t)&&(!v||!(0,o.default)(v,6))||(d||=v,t.host_blacklist&&(0,r.default)(d,t.host_blacklist)))}e.exports=t.default,e.exports.default=t.default})(jO,jO.exports);var Wme=jO.exports,Gme=Jf(Wme);function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function PO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?NO(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function FO(e){return Object.prototype.toString.call(e)==={Date:`[object Date]`}.Date?!1:Do(e)?$d(e):[``,void 0,null].includes(e)}var Kme={date:zme,url:Gme,email:Hme,required:function(e){return!FO(e)},whitespace:function(e){return!(/^\s+$/.test(e)||e===``)},boolean:function(e){return Gd(e)},max:function(e,t){return nf(e)?e<=t:Qm(e)<=t},min:function(e,t){return nf(e)?e>=t:Qm(e)>=t},len:function(e,t){return Qm(String(e))===t},number:function(e){return nf(e)},enum:function(e,t){return t.includes(e)},idcard:function(e){return/^(\d{18,18}|\d{15,15}|\d{17,17}x)$/i.test(e)},telnumber:function(e){return/^1[3-9]\d{9}$/.test(e)},pattern:function(e,t){return(typeof t==`string`?new RegExp(t):t).test(String(e))},validator:function(e,t,n){return t(e,n)}};function qme(e,t,n){return IO.apply(this,arguments)}function IO(){return IO=ly(Ey.mark(function e(t,n,r){var i,a,o,s,c,l,u;return Ey.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i={result:!0},a=Object.keys(n),c=0;case 1:if(!(c<a.length)){e.next=4;break}if(l=a[c],!(!n.required&&FO(t)&&!n.validator)){e.next=2;break}return e.abrupt(`return`,i);case 2:if(u=Kme[l],!(u&&(n[l]||n[l]===0))){e.next=3;break}return o=n[l]===!0?void 0:n[l],s=u,e.abrupt(`continue`,4);case 3:c++,e.next=1;break;case 4:if(!s){e.next=7;break}return e.next=5,s(t,o,r);case 5:if(i=e.sent,!Gd(i)){e.next=6;break}return e.abrupt(`return`,PO(PO({},n),{},{result:i}));case 6:if(!Do(i)){e.next=7;break}return e.abrupt(`return`,i);case 7:return e.abrupt(`return`,i);case 8:case`end`:return e.stop()}},e)})),IO.apply(this,arguments)}function LO(e,t,n){return RO.apply(this,arguments)}function RO(){return RO=ly(Ey.mark(function e(t,n,r){var i,a;return Ey.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.map(function(e){return qme(t,e,r)}),e.next=1,Promise.all(i);case 1:return a=e.sent,e.abrupt(`return`,a);case 2:case`end`:return e.stop()}},e)})),RO.apply(this,arguments)}function zO(e,t){return t?`${e}__${t}`.replace(/(\[|\]|\.)+/g,`_`):``}var Jme=z({name:`TForm`,props:Lme,setup:function(e,t){var n=t.expose,r=pm(),i=Wt(e),a=i.disabled,o=i.readonly;Cn(`formDisabled`,{disabled:a}),Cn(`formReadonly`,{readonly:o});var s=I(null),c=I([]),l=Wt(e),u=l.showErrorMessage,d=l.labelWidth,f=l.labelAlign,p=l.data,m=l.colon,h=l.requiredMark,g=l.requiredMarkPosition,_=l.rules,v=l.errorMessage,y=l.resetType;Cn(RS,Dt({showErrorMessage:u,labelWidth:d,labelAlign:f,data:p,colon:m,requiredMark:h,requiredMarkPosition:g,rules:_,errorMessage:v,resetType:y,children:c,renderContent:r}));var b=Q(`form`),x=IS(),S=U(function(){return[x.value.form,G({},`${b.value}-inline`,e.layout===`inline`)]}),C=Q(`form-item`),w=function(t){if(Gd(t))return``;var n=Y(Object.keys(t),1)[0];e.scrollToFirstError&&T(zO(C.value,n));var r=t[n];return K(r)?r.filter(function(e){return!e.result})[0].message:``},T=function(t){var n=Y(s.value.getElementsByClassName(t),1)[0],r=e.scrollToFirstError;r&&n&&n.scrollIntoView({behavior:r})},E=function(e,t){return!t||!K(t)||t.indexOf(`${e}`)!==-1},D=function(e){var t=e.reduce(function(e,t){return Object.assign(e||{},t)},{});return Object.keys(t).forEach(function(e){t[e]===!0&&delete t[e]}),$d(t)?!0:t},O=function(){var t=ly(Ey.mark(function t(n){var r,i,a,o,s,l,u,d,f,p;return Ey.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=n||{},a=i.fields,o=i.trigger,s=o===void 0?`all`:o,l=i.showErrorMessage,u=c.value.filter(function(e){return q(e.validate)&&E(String(e.name),a)}).map(function(e){return e.validate(s,l)}),t.next=1,Promise.all(u);case 1:return d=t.sent,f=D(d),p=w(f),(r=e.onValidate)==null||r.call(e,{validateResult:f,firstError:p}),t.abrupt(`return`,f);case 2:case`end`:return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),k=function(){var e=ly(Ey.mark(function e(t){var n,r,i,a,o,s;return Ey.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t||{},r=n.fields,i=n.trigger,a=i===void 0?`all`:i,o=c.value.filter(function(e){return q(e.validateOnly)&&E(String(e.name),r)}).map(function(e){return e.validateOnly(a)}),e.next=1,Promise.all(o);case 1:return s=e.sent,e.abrupt(`return`,D(s));case 2:case`end`:return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),A=I(),j=function(t){e.preventSubmitDefault&&t&&(t.preventDefault(),t.stopPropagation()),O(A.value).then(function(n){var r;(r=e.onSubmit)==null||r.call(e,{validateResult:n,firstError:w(n),e:t})}),A.value=void 0},M=function(){var e=ly(Ey.mark(function e(t){return Ey.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:A.value=t,loe(s.value);case 1:case`end`:return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),ee=I(),N=function(t){var n;e.preventSubmitDefault&&t&&(t.preventDefault(),t.stopPropagation()),c.value.filter(function(e){return q(e.resetField)&&E(String(e.name),ee.value?.fields)}).forEach(function(e){return e.resetField(ee.value?.type)}),ee.value=void 0,(n=e.onReset)==null||n.call(e,{e:t})};return n({validate:O,submit:M,reset:function(e){ee.value=e,s.value.reset()},clearValidate:function(e){c.value.forEach(function(t){q(t.resetHandler)&&E(String(t.name),e)&&t.resetHandler()})},setValidateMessage:function(e){var t=Object.keys(e);if(t.length){var n=c.value.filter(function(e){return q(e.setValidateMessage)&&t.includes(`${e.name}`)}).map(function(t){return t.setValidateMessage(e[t.name])});Promise.all(n)}},validateOnly:k}),function(){return V(`form`,{id:e.id,ref:s,class:S.value,onSubmit:function(e){return j(e)},onReset:function(e){return N(e)}},[r(`default`)])}}}),Yme={for:{type:String,default:``},help:{type:[String,Function]},label:{type:[String,Function],default:``},labelAlign:{type:String,validator:function(e){return!e||[`left`,`right`,`top`].includes(e)}},labelWidth:{type:[String,Number]},name:{type:String,default:``},requiredMark:{type:Boolean,default:void 0},rules:{type:Array},showErrorMessage:{type:Boolean,default:void 0},status:{type:String,default:``},statusIcon:{type:[Boolean,Function],default:void 0},successBorder:Boolean,tips:{type:[String,Function]}};function Xme(e,t){return e.replace(/\${(.*?)}/g,function(e,n){return t[n.trim()]??``})}var Zme=z({name:`TFormItem`,props:Yme,setup:function(e,t){var n=t.slots,r=pm(),i=IS(),a=Rp(`form`).globalConfig,o=Tm({CheckCircleFilledIcon:Qh,CloseCircleFilledIcon:Tg,ErrorCircleFilledIcon:Zg}),s=o.CheckCircleFilledIcon,c=o.CloseCircleFilledIcon,l=o.ErrorCircleFilledIcon,u=wn(RS,void 0),d=Q(),f=Q(`form-item`),p=U(function(){var t=e.requiredMark??u?.requiredMark??a.value.requiredMark,n=te.value.filter(function(e){return e.required}).length>0;return t??n}),m=U(function(){return u?.requiredMarkPosition??a.value.requiredMarkPosition}),h=U(function(){return n.label||e.label}),g=U(function(){return!!(u!=null&&u.colon&&h.value)}),_=Q(`form__label`),v=U(function(){return af(e.labelAlign)?u?.labelAlign:e.labelAlign}),y=U(function(){return af(e.labelWidth)?u?.labelWidth:e.labelWidth}),b=U(function(){return[i.value.label,G(G(G(G(G({},`${_.value}--required`,p.value),`${_.value}--required-right`,p.value&&m.value===`right`),`${_.value}--top`,h.value&&(v.value===`top`||!y.value)),`${_.value}--left`,v.value===`left`&&y.value),`${_.value}--right`,v.value===`right`&&y.value)]}),x=U(function(){return`${d.value}-is-${e.status||`default`} ${e.status===`success`?i.value.successBorder:``}`}),S=function(){if(Number(y.value)!==0){var t={};return y.value&&v.value!==`top`&&(t=nf(y.value)?{width:`${y.value}px`}:{width:y.value}),V(`div`,{class:b.value,style:t},[V(`label`,{for:e.for||null},[r(`label`)]),g.value&&a.value.colonText])}},C=function(){var e=function(e){return V(`span`,{class:i.value.status},[V(e,null,null)])},t=O.value;if(A.value===LS.SUCCESS)return e(s);if(t!=null&&t[0]){var n=t[0].type||`error`,r={error:c,warning:l,success:s}[n];return e(r)}return null},w=function(){if(e.statusIcon!==!1){var t=r(`statusIcon`,{defaultNode:C()});if(t)return V(`span`,{class:i.value.status},[t]);if(t!==!1&&(t=u?.renderContent(`statusIcon`,{defaultNode:C(),params:e}),t))return t}},T=U(function(){if(!de.value)return``;if(A.value===LS.SUCCESS)return e.successBorder?[i.value.success,i.value.successBorder].join(` `):i.value.success;if(O.value.length){var t=O.value[0].type||`error`;return e.status?x.value:t===`error`?i.value.error:i.value.warning}}),E=U(function(){return[i.value.controls,T.value]}),D=U(function(){var e={};return y.value&&v.value!==`top`&&(e=nf(y.value)?{marginLeft:`${y.value}px`}:{marginLeft:y.value}),e}),O=I([]),k=I([]),A=I(LS.TO_BE_VALIDATED),j=I(!1),M=I(!1),ee=function(){M.value=!1,O.value=[],k.value=[],A.value=LS.TO_BE_VALIDATED},N=function(){var t=Object.prototype.toString.call(J(u?.data,e.name)),n;return t===`[object String]`&&(n=``),t===`[object Array]`&&(n=[]),t===`[object Object]`&&(n={}),n},P=function(){var t=ly(Ey.mark(function t(){var n,r=arguments;return Ey.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.length>0&&r[0]!==void 0?r[0]:u?.resetType,e.name){t.next=1;break}return t.abrupt(`return`);case 1:return n===`empty`?Bf(u?.data,e.name,N()):n===`initial`&&Bf(u?.data,e.name,se.value),t.next=2,dn();case 2:j.value?M.value=!0:ee();case 3:case`end`:return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),F=U(function(){return u?.errorMessage??a.value.errorMessage}),te=U(function(){var t;return(t=e.rules)!=null&&t.length?e.rules:e.name&&J(u?.rules,e.name)||[]}),ne=function(){var t=ly(Ey.mark(function t(n){var r,i;return Ey.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i={successList:[],errorList:[],rules:[],resultList:[],allowSetValue:!1},i.rules=n===`all`?te.value:te.value.filter(function(e){return(e.trigger||`change`)===n}),!(te.value.length&&!((r=i.rules)!=null&&r.length))){t.next=1;break}return t.abrupt(`return`,i);case 1:return i.allowSetValue=!0,t.next=2,LO(oe.value,i.rules,{formData:u?.data,name:e.name});case 2:return i.resultList=t.sent,i.errorList=i.resultList.filter(function(e){return e.result!==!0}).map(function(t){return Object.keys(t).forEach(function(n){if(!t.message&&F.value[n]){var r=Rd(e.label)?e.label:e.name;t.message=Xme(F.value[n],{name:r,validate:t[n]})}}),t}),i.successList=i.resultList.filter(function(e){return e.result===!0&&e.message&&e.type===`success`}),t.abrupt(`return`,i);case 3:case`end`:return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),re=function(){var t=ly(Ey.mark(function t(n,r){var i,a,o,s,c,l;return Ey.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return j.value=!0,ue.value=r,t.next=1,ne(n);case 1:return i=t.sent,a=i.successList,o=i.errorList,s=i.rules,c=i.resultList,l=i.allowSetValue,l&&(k.value=a,O.value=o),s.length&&(A.value=o.length?LS.FAIL:LS.SUCCESS),M.value&&ee(),j.value=!1,t.abrupt(`return`,G({},e.name,o.length===0||c));case 2:case`end`:return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}(),ie=function(){var t=ly(Ey.mark(function t(n){var r,i,a;return Ey.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,ne(n);case 1:return r=t.sent,i=r.errorList,a=r.resultList,t.abrupt(`return`,G({},e.name,i.length===0||a));case 2:case`end`:return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),ae=function(e){if(!(!e||!K(e))){if(O.value=[],k.value=[],e.length===0){A.value=LS.SUCCESS;return}var t=e.filter(function(e){return e.type===`error`||e.type===`warning`}),n=e.filter(function(e){return e.type===`success`});O.value=t.map(function(e){return{message:e.message,type:e.type,result:!1}}),k.value=n.map(function(e){return{message:e.message,type:e.type,result:!0}}),A.value=t.length>0?LS.FAIL:LS.SUCCESS}},oe=U(function(){return u?.data&&J(u?.data,e.name)}),se=I(void 0),ce=Wt(e).name,le=Dt({name:ce,resetHandler:ee,resetField:P,validate:re,validateOnly:ie,setValidateMessage:ae});mr(function(){se.value=iu(oe.value),u?.children.push(le)}),_r(function(){u&&(u.children=u?.children.filter(function(e){return e!==le}))}),R(oe,ly(Ey.mark(function e(){return Ey.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,re(`change`);case 1:case`end`:return e.stop()}},e)})),{deep:!0}),R(function(){return[e.name,JSON.stringify(e.rules)].join(`,`)},function(){re(`change`)});var ue=I(void 0),de=U(function(){return Gd(ue.value)?ue.value:Gd(e.showErrorMessage)?e.showErrorMessage:u?.showErrorMessage}),fe=U(function(){return[i.value.formItem,zO(f.value,e.name),G(G({},i.value.formItemWithHelp,pe.value),i.value.formItemWithExtra,me.value)]}),pe=U(function(){var e=r(`help`);return e?V(`div`,{class:i.value.help},[e]):null}),me=U(function(){var e,t=function(e){return V(`div`,{class:i.value.extra,title:e},[e])},n=O.value;return de.value&&n!=null&&(e=n[0])!=null&&e.message?t(n[0].message):k.value.length?t(k.value[0].message):null}),he=U(function(){var e=r(`tips`);return e?V(`div`,{class:[`${f.value}-tips`,`${d.value}-tips`,x.value]},[e]):null});return Cn(zS,{handleBlur:function(){var e=ly(Ey.mark(function e(){return Ey.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,re(`blur`);case 1:case`end`:return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()}),function(){return V(`div`,{class:fe.value},[S(),V(`div`,{class:E.value,style:D.value},[V(`div`,{class:i.value.controlsContent},[r(`default`),w()]),pe.value,he.value,me.value])])}}}),Qme=X(Jme),$me=X(Zme),BO={allowUncheck:Boolean,checked:{type:Boolean,default:void 0},modelValue:{type:Boolean,default:void 0},defaultChecked:Boolean,default:{type:[String,Function]},disabled:{type:Boolean,default:void 0},label:{type:[String,Function]},name:{type:String,default:``},readonly:{type:Boolean,default:void 0},value:{type:[String,Number,Boolean],default:void 0},onChange:Function,onClick:Function},VO=Symbol(`RadioGroupProvide`),HO=Symbol(`RadioButtonProvide`),UO=z({name:`TRadio`,inheritAttrs:!1,props:BO,setup:function(e,t){var n=t.attrs,r=I(),i=Wt(e),a=i.checked,o=i.modelValue,s=Y(Rm(a,o,e.defaultChecked,e.onChange,`checked`),2),c=s[0],l=s[1],u=U(function(){return d?e.value===d.value:c.value}),d=wn(VO,void 0),f=U(function(){return!!(e.allowUncheck||d?.allowUncheck)}),p=function(e){e.stopPropagation()},m=function(t){var n;if(!(y.value||b.value)&&((n=e.onClick)==null||n.call(e,{e:t}),!(u.value&&!f.value)))if(d){var r=u.value&&f.value?void 0:e.value;d.setValue(r,{e:t,name:d.name})}else l(!f.value||!u.value,{e:t})},h=U(function(){return Xm({focus:n.onFocus,blur:n.onBlur,keydown:n.onKeydown,keyup:n.onKeyup,keypresss:n.onKeypresss})}),g=U(function(){return Sf(n,[].concat(W(Object.keys(h.value)),[`input`,`change`]).map(function(e){return`on${e[0].toUpperCase()}${e.slice(1)}`}))}),_=U(function(){return d?.disabled}),v=U(function(){return d?.readonly}),y=Sm({afterDisabled:_}),b=Mm({afterReadonly:v}),x=U(function(){return{name:d?d.name:e.name,checked:u.value,disabled:y.value,readonly:b.value,value:e.value}}),S=ym().STATUS,C=wn(HO,void 0),w=Q(`radio-button`),T=Q(`radio`),E=U(function(){return C?w.value:T.value}),D=U(function(){return[`${E.value}`,G(G({},S.value.checked,x.value.checked),S.value.disabled,x.value.disabled)]}),O=hm();return function(){return V(`label`,H({ref:r,class:D.value},g.value,{tabindex:y.value?void 0:`0`,onClick:m}),[V(`input`,H({type:`radio`,class:`${E.value}__former`},h.value,x.value,{onClick:p,tabindex:`-1`,"data-value":Rd(e.value)?`'${e.value}'`:e.value,"data-allow-uncheck":f.value||void 0}),null),V(`span`,{class:`${E.value}__input`},null),V(`span`,{class:`${E.value}__label`},[O(`default`,`label`)])])}}}),ehe={allowUncheck:Boolean,direction:{type:String,default:`horizontal`,validator:function(e){return!e||[`horizontal`,`vertical`].includes(e)}},disabled:{type:Boolean,default:void 0},name:{type:String,default:``},options:{type:Array},readonly:{type:Boolean,default:void 0},size:{type:String,default:`medium`,validator:function(e){return!e||[`small`,`medium`,`large`].includes(e)}},theme:{type:String,default:`radio`,validator:function(e){return!e||[`radio`,`button`].includes(e)}},value:{type:[String,Number,Boolean],default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0},defaultValue:{type:[String,Number,Boolean]},variant:{type:String,default:`outline`,validator:function(e){return!e||[`outline`,`primary-filled`,`default-filled`].includes(e)}},onChange:Function};function WO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function GO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?WO(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function the(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var KO=z({name:`TRadioButton`,inheritAttrs:!1,props:BO,setup:function(e,t){var n=t.attrs;Cn(HO,Dt({}));var r=U(function(){return GO(GO({},e),Sf(n,Object.keys(n).filter(function(e){return e.startsWith(`on`)})))}),i=hm();return function(){var e;return V(UO,r.value,the(e=i(`default`,`label`))?e:{default:function(){return[e]}})}}});function nhe(e,t){var n=function(e){var n=e.target.querySelector(`input`);if(n&&(am.test(e.key)||am.test(e.code))){e.preventDefault();var r=n.dataset;if(n.checked&&r.allowUncheck)t(void 0,{e});else{var i=isNaN(Number(r.value))?r.value:Number(r.value);i=Rd(i)&&{true:!0,false:!1}[i]||i,i=Rd(i)&&i[0]===`'`?i.replace(/'/g,``):i,t(i,{e})}}};mr(function(){cp(e.value,`keydown`,n)}),pr(function(){lp(e.value,`keydown`,n)})}var rhe=[`window`],ihe=typeof window<`u`?window:void 0;function ahe(e){var t=Ht(e);return t?.$el??t}function ohe(e){return we()?(Te(e),!0):!1}function qO(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.window,i=r===void 0?ihe:r,a=Ym(n,rhe),o,s=i&&`MutationObserver`in i,c=function(){o&&=(o.disconnect(),void 0)},l=R(function(){return ahe(e)},function(e){c(),s&&i&&e&&(o=new MutationObserver(t),o.observe(e,a))},{immediate:!0}),u=function(){c(),l()};return ohe(u),{isSupported:s,stop:u}}function JO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function YO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?JO(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var she=z({name:`TRadioGroup`,props:ehe,setup:function(e){var t=Wt(e),n=t.value,r=t.modelValue,i=Y(Rm(n,r,e.defaultValue,e.onChange),2),a=i[0],o=i[1],s=I(),c=Q(`radio-button`),l=ym(),u=l.STATUS,d=l.SIZE,f=function(e,t){ef(e,a.value)||o(e,t)};nhe(s,f);var p=U(function(){return`.${c.value}.${u.value.checked}`}),m=I({width:`0px`,height:`0px`,left:`0px`,top:`0px`,"transition-property":`none`}),h=function(){var e=document.createElement(`div`);e.setAttribute(`style`,`position: absolute; visibility: hidden;`),e.appendChild(s.value.cloneNode(!0)),document.body.appendChild(e);var t=e.querySelector(p.value),n=t.offsetWidth,r=t.offsetHeight,i=t.offsetLeft,a=t.offsetTop;m.value=YO(YO({},m.value),{},{width:`${n}px`,height:`${r}px`,left:`${i}px`,top:`${a}px`}),document.body.removeChild(e)},g=function(){var t=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(e.variant!==`outline`){var n=s.value.querySelector(p.value),r=t?`none`:`all`;if(!n){m.value={"transition-property":r,width:`0px`,height:`9px`,left:`0px`,top:`0px`};return}var i=n.offsetWidth,a=n.offsetHeight,o=n.offsetLeft,c=n.offsetTop;i?m.value={"transition-property":r,width:`${i}px`,height:`${a}px`,left:`${o}px`,top:`${c}px`}:h()}},_;R(a,ly(Ey.mark(function e(){return Ey.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,dn();case 1:g();case 2:case`end`:return e.stop()}},e)}))),mr(function(){g(!0),Nm(s,Hf(ly(Ey.mark(function e(){return Ey.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,dn();case 1:g();case 2:case`end`:return e.stop()}},e)})),300));var e=s.value.querySelector(`${p.value} .${c.value}__label`);e&&(_=qO(e,function(e){e.forEach(function(e){e.type===`characterData`&&g()})},{attributes:!0,childList:!0,characterData:!0,subtree:!0}))}),vr(function(){var e;(e=_)==null||e.stop()});var v=Wt(e),y=v.name,b=v.disabled,x=v.readonly,S=v.allowUncheck;Cn(VO,Dt({name:y,disabled:b,readonly:x,value:a,allowUncheck:S,setValue:f}));var C=Q(`radio-group`),w=mm(),T=function(){if(e.variant.includes(`filled`)&&!af(a.value))return V(`div`,{style:m.value,class:`${C.value}__bg-block`},null)},E=function(){return e.options?.map(function(t){var n=t;return(nf(t)||Rd(t))&&(n={value:t,label:t.toString()}),V(e.theme===`button`?KO:UO,{key:`radio-group-options-${n.value}-${Math.random()}`,name:e.name,checked:a.value===n.value,disabled:`disabled`in n?n.disabled:e.disabled,value:n.value},{default:function(){return[q(n.label)?n.label(sa):n.label]}})})},D=U(function(){return[`${C.value}`,d.value[e.size],G(G(G(G({},`${C.value}__outline`,e.variant===`outline`),`${C.value}--filled`,e.variant.includes(`filled`)),`${C.value}--primary-filled`,e.variant===`primary-filled`),`${C.value}--vertical`,e.direction===`vertical`)]});return function(){return V(`div`,{ref:s,class:D.value},[w(`default`)||E(),T()])}}}),XO=X(UO),ZO=X(she),QO=X(KO);function $O(e,t){return t?{top:`calc(${100-e}% - 1px)`}:{left:`${e}%`}}var ek=function(e,t){return t===`first`?e instanceof Array?e[0]:e:e instanceof Array?e[1]:0},che=function(e,t){if(!e)return String(t);if(Rd(e)){var n=String(t);try{if(/\${value}/g.test(e))n=e.replace(/\${value}/g,String(t));else throw n=e,Error()}catch{console.warn("fail to parse label prop, please pass string such as '${value}'")}return n}return e},tk=function(e,t){return Number(parseFloat(`${e}`).toFixed(t))},nk=Symbol(`sliderProps`);function rk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ik(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?rk(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var lhe=function(e){var t=e.value.prefixName,n=U(function(){var t={format:void 0,placeholder:``,theme:`column`,decimalPlaces:e.value.step.toString().split(`.`)[1]?.length||0},n=e.value;if(!Gd(n.inputNumberProps)){var r=n.inputNumberProps?.theme;t=ik(ik({},t),Sf(n.inputNumberProps,`onChange`)),[`column`,`row`,`normal`].includes(r)&&(t.theme=r)}return t}),r=U(function(){return[`${t}__input`,{"is-vertical":e.value.vertical}]});return function(t,i){return V(fC,H(n.value,{class:r.value,value:t,step:e.value.step,onChange:function(t,n){var r,a;t!==void 0&&!isNaN(t)&&i(t),(r=e.value)==null||(r=r.inputNumberProps)==null||(a=r.onChange)==null||a.call(r,t,n)},disabled:e.value.disabled,min:e.value.min,max:e.value.max}),null)}},uhe=z({name:`TSliderMark`,props:{mark:{type:[Object,Array,String,Number]},point:{type:Number},onClickMarkPoint:{type:Function,default:function(){}}},setup:function(e){var t=Q(`slider__mark`),n=function(t){var n;t.stopPropagation(),e==null||(n=e.onClickMarkPoint)==null||n.call(e,e.point)};return function(){return V(`div`,{class:`${t.value}-text`,onClick:n},[e.mark])}}}),dhe=function(e){var t=e.value.prefixName,n=U(function(){var t=e.value;if(!t.marks)return[];var n=[];if(K(t.marks)){var r=iu(t.marks).sort(function(e,t){return e-t}),i=Math.max.apply(Math,W(r).concat([t.max])),a=Math.min.apply(Math,W(r).concat([t.min]));a<t.min&&Vp.errorOnce(`TSlider`,`marks min value should >= props min`),i>t.max&&Vp.errorOnce(`TSlider`,`marks max value should <= props max`),r.forEach(function(e){n.push({point:e,position:(e-a)/(i-a)*100,mark:e})})}else Object.keys(t.marks).map(parseFloat).sort(function(e,t){return e-t}).filter(function(e){return e<=t.max&&e>=t.min}).forEach(function(e){var r={point:e,position:(e-t.min)*100/(t.max-t.min),mark:t.marks[e]};n.push(r)});return n});return function(r){return n.value.length?V(`div`,null,[V(`div`,{class:`${t}__stops`},[n.value.map(function(n,r){return n.position===0||n.position===100?null:V(`div`,{class:`${t}__stop ${t}__mark-stop`,style:$O(n.position,e.value.vertical),key:r},null)})]),V(`div`,{class:`${t}__mark`},[n.value.map(function(t,n){return V(uhe,{mark:t.mark,point:t.point,key:n,style:$O(t.position,e.value.vertical),onClickMarkPoint:r},null)})])]):null}},fhe={disabled:{type:Boolean,default:void 0},inputNumberProps:{type:[Boolean,Object],default:!1},label:{type:[String,Boolean,Function],default:!0},layout:{type:String,default:`horizontal`,validator:function(e){return!e||[`vertical`,`horizontal`].includes(e)}},marks:{type:[Object,Array]},max:{type:Number,default:100},min:{type:Number,default:0},range:Boolean,showStep:Boolean,step:{type:Number,default:1},tooltipProps:{type:Object},value:{type:[Number,Array],default:void 0},modelValue:{type:[Number,Array],default:void 0},defaultValue:{type:[Number,Array],default:0},onChange:Function,onChangeEnd:Function};function ak(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ok(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ak(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ak(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var phe={visible:!1,trigger:`hover`,showArrow:!0,overlayInnerStyle:void 0,overlayClassName:void 0,attach:`body`,theme:`default`},mhe=function(e){var t=I(),n=U({get:function(){return!!e.value.tooltipProps},set:function(e){return e}}),r=I(ok({},phe)),i=function(e){n.value&&(r.value.visible=e)},a=pm();return{tooltipRef:t,tooltipProps:U(function(){var t=e.value,n=t.vertical,i=t.tooltipProps,o=t.label,s=t.value,c=t.position,l=t.range,u=n?`right`:`top`,d=function(){return o===!0?String(s):typeof o==`string`?che(o,s):typeof o==`function`?o:a(`label`,{params:l?{value:s,position:c}:{value:s}})}();return i instanceof Object?(i!=null&&i.placement||(r.value.placement=u),i.content&&(d=i.content),ok(ok(ok({},r.value),i),{},{content:d})):ok(ok({},r.value),{},{placement:u,content:d})}),toggleTooltip:i,showTooltip:n}},sk=z({name:`TSliderButton`,props:{value:{type:[Number],default:0},vertical:{type:Boolean,default:!1},tooltipProps:{type:[Boolean,Object],default:!0},label:{type:[String,Boolean,Function]},range:{type:Boolean,default:!1},position:{type:String}},emits:[`input`,`mouseup`],setup:function(e,t){var n=Q(`slider__button`),r=mhe(U(function(){return e})),i=r.tooltipRef,a=r.tooltipProps,o=r.toggleTooltip,s=r.showTooltip,c=wn(nk),l=I(),u=I(!1),d=Dt({dragging:!1,isClick:!1,startX:0,startY:0,startPos:0,newPos:null}),f=U(function(){return Number(c.max)-Number(c.min)}),p=U(function(){return`${(e.value-c.min)/f.value*100}%`}),m=U(function(){return c.step}),h=U(function(){return e.vertical?{bottom:p.value}:{left:p.value}});Tn(function(){c.toggleDragging(d.dragging)});var g=function(e){var n=e;if(!(n===null||Number.isNaN(n))){n>100?n=100:n<0&&(n=0);var r=100*m.value/f.value,a=Math.round(n/r)*r*f.value*.01;a+=c.min,a=tk(a,c.precision),t.emit(`input`,a),dn(function(){var e,t;i.value&&((e=(t=i.value).updatePopper)==null||e.call(t))})}},_=function(){l.value.focus(),o(!0)},v=function(){d.dragging||o(!1)},y=function(t){d.dragging=!0,d.isClick=!0;var n=t.type,r=t.clientY,i=t.clientX;if(n===`touchstart`){var a=t.touches,o=[a[0].clientY,a[0].clientX];r=o[0],i=o[1]}e.vertical?d.startY=r:d.startX=i,d.startPos=parseFloat(p.value),d.newPos=d.startPos},b=function(t){var n=t;if(d.dragging){u.value=!0,d.isClick=!1,c!=null&&c.resetSize&&q(c?.resetSize)&&c.resetSize();var r=0,i=c.sliderSize,a=n.type,o=n.clientY,s=n.clientX;if(a===`touchmove`){var l=n.touches,f=[l[0].clientY,l[0].clientX];o=f[0],s=f[1]}r=e.vertical?d.startY-o:s-d.startX,r=r/i*100,d.newPos=d.startPos+r,g(d.newPos)}},x=function(){d.dragging&&(setTimeout(function(){d.dragging=!1,o(!1),d.isClick||g(d.newPos),u.value&&t.emit(`mouseup`),u.value=!1},0),window.removeEventListener(`mousemove`,b),window.removeEventListener(`touchmove`,b),window.removeEventListener(`mouseup`,x),window.removeEventListener(`touchend`,x),window.removeEventListener(`contextmenu`,x))};function S(e){c.disabled||(e.preventDefault(),y(e),window.addEventListener(`mousemove`,b),window.addEventListener(`mouseup`,x),window.addEventListener(`touchmove`,b),window.addEventListener(`touchend`,x),window.addEventListener(`contextmenu`,x))}var C=function(e){if(!c.disabled){var t=m.value/f.value*100;e===`sub`&&(t=-t),d.newPos=parseFloat(p.value)+t,g(d.newPos)}},w=function(e){var t=e.code;e.preventDefault(),(t===`ArrowDown`||t===`ArrowLeft`)&&C(`sub`),(t===`ArrowUp`||t===`ArrowRight`)&&C(`add`)};return t.expose({setPosition:g}),function(){return V(`div`,{ref:l,class:`${n.value}-wrapper`,style:h.value,tabindex:`0`,"show-tooltip":s.value,onMouseenter:_,onMouseleave:v,onMousedown:S,onTouchstart:S,onFocus:_,onBlur:v,onKeydown:w},[V(Gx,H({ref:i,hideEmptyPopup:!0,disabled:!s.value},a.value),{default:function(){return[V(`div`,{class:[n.value,G({},`${n.value}--dragging`,d.dragging)]},null)]}})])}}}),hhe=X(z({name:`TSlider`,model:{prop:`value`,event:`change`},props:fhe,setup:function(e){var t=Sm(),n=Q(`slider`),r=ym().STATUS,i=Wt(e),a=i.value,o=i.modelValue,s=Y(Rm(a,o,e.defaultValue,e.onChange),2),c=s[0],l=s[1],u=I(),d=I(),f=I(),p=I(),m=I(ek(c.value,`first`)),h=I(ek(c.value,`second`)),g=I(!1),_=I(1),v=U(function(){return e.layout===`vertical`}),y=U(function(){return[`${n.value}__container`,{"is-vertical":v.value}]}),b=U(function(){return[`${n.value}`,G(G(G({"is-vertical":v.value},`${n.value}--with-input`,e.inputNumberProps),`${n.value}--vertical`,v.value),r.value.disabled,t.value)]}),x=U(function(){return[`${n.value}__rail`,{"show-input":e.inputNumberProps,disabled:t.value}]}),S=U(function(){return v.value?{height:`100%`}:{}}),C=U(function(){var t=e.range?`${100*(T.value-e.min)/w.value}%`:`0%`,n=`${100*(e.range?E.value-T.value:m.value-e.min)/w.value}%`;return v.value?{height:n,bottom:t}:{width:n,left:t}}),w=U(function(){return e.max-e.min}),T=U(function(){return Math.min(m.value,h.value)}),E=U(function(){return Math.max(m.value,h.value)}),D=U(function(){if(!e.showStep||e.min>e.max)return[];if(e.step===0)return console.warn(`[Element Warn][Slider]step should not be 0.`),[];for(var t=w.value/e.step,n=100*e.step/w.value,r=[],i=1;i<t;i++)r.push(i*n);return e.range?r.filter(function(t){return t<100*(T.value-e.min)/w.value||e.step>100*(E.value-e.max)/w.value}):r.filter(function(t){return t>100*(m.value-e.min)/w.value})}),O=U(function(){var t=[e.min,e.max,e.step].map(function(e){var t=`${e}`.split(`.`);return t[1]?t[1].length:0});return Math.max.apply(null,t)}),k=function(t){var n=[e.min,e.max],r=n[0],i=n[1];if(r>i){console.warn(`[Slider] max should be greater than min.`);return}if(e.range&&K(t)){var a=[Math.min.apply(Math,W(t)),Math.max.apply(Math,W(t))],o=a[0],s=a[1];o>i&&(o=m.value),o<r&&(o=r),s<r&&(s=h.value),s>i&&(s=i);var c=[o,s];return m.value=c[0],h.value=c[1],[o,s]}var l=t;return l<r&&(l=r),l>i&&(l=i),l},A=function(t){var n=t;n===void 0&&(n=e.range?[m.value,h.value]:m.value),l(k(n))},j=function(){d.value&&(_.value=d.value[`client${v.value?`Height`:`Width`}`])},M=I(!1),ee=function(){var t;e.range?(K(c.value)?(m.value=tk(Math.max(e.min||0,c.value[0]),O.value),h.value=tk(Math.min(e.max||100,c.value[1]),O.value)):(m.value=tk(e.min||0,O.value),h.value=tk(e.max||100,O.value)),t=`${m.value}-${h.value}`):(nf(c.value)?m.value=tk(Math.min(e.max,Math.max(e.min,c.value)),O.value):m.value=e.min,t=String(m.value)),u.value&&u.value.setAttribute(`aria-valuetext`,t),j(),window.addEventListener(`resize`,j)},N=function(t){var n=t*w.value/100;if(n=e.min+n,!e.range&&f.value){f.value.setPosition(t);return}var r=Math.abs(T.value-n)<Math.abs(E.value-n)?m.value<h.value?`button1`:`button2`:m.value>h.value?`button1`:`button2`;r===`button1`&&f.value&&f.value.setPosition(t),r===`button2`&&p.value&&p.value.setPosition(t)},P=function(){return k(e.range?[m.value,h.value]:m.value)},F=function(n){var r;if(!(t.value||g.value)&&d.value){j();var i=0;if(v.value)i=(d.value.getBoundingClientRect().bottom-n.clientY)/_.value*100,N(i);else{var a=d.value.getBoundingClientRect().left;i=(n.clientX-a)/_.value*100,N(i)}var o=P();(r=e.onChangeEnd)==null||r.call(e,o)}},te=function(n){var r;if(!(t.value||g.value)){j(),N(Number(n/w.value*100)),A(n);var i=P();(r=e.onChangeEnd)==null||r.call(e,i)}};R(function(){return c.value},function(t){if(g.value!==!0)if(K(t)&&e.range){var n=Y(t,2);m.value=n[0],h.value=n[1]}else m.value=t},{deep:!0}),R([m,h,g],function(t,n){t[0]!==n[0]&&(e.range?A([T.value,E.value]):A(m.value)),t[1]!==n[1]&&e.range&&A([T.value,E.value]),t[2]!==n[2]&&t[2]===!1&&ee()}),mr(function(){ee(),M.value=!0}),_r(function(){window.removeEventListener(`resize`,j)});var ne=dhe(U(function(){return{max:e.max,min:e.min,marks:e.marks,vertical:v.value,prefixName:n.value}})),re=lhe(U(function(){return{max:e.max,min:e.min,inputNumberProps:e.inputNumberProps,step:e.step,prefixName:n.value,vertical:v.value,disabled:t.value}})),ie=function(){var t=k(m.value),r=function(e){m.value=k(e)},i=k(h.value);return V(`div`,{class:[`${n.value}__input-container`,{"is-vertical":v.value}]},[re(t,r),e.range&&V(`div`,{class:`${n.value}__center-line`},null),e.range&&re(i,function(e){h.value=k(e)})])},ae=function(e){g.value=e},oe=Wt(e),se=oe.min,ce=oe.max,le=oe.step;return Cn(nk,Dt({min:se,max:ce,step:le,dragging:g,toggleDragging:ae,precision:O,disabled:t,resetSize:j,sliderSize:_})),function(){return V(`div`,{class:y.value,ref:u},[V(`div`,{class:b.value,role:`slider`,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-orientation":e.layout,"aria-disabled":t.value,"tooltip-props":e.tooltipProps},[V(`div`,{class:x.value,style:S.value,onClick:F,ref:d},[V(`div`,{class:`${n.value}__track`,style:C.value},null),V(sk,{vertical:v.value,value:m.value,ref:f,range:e.range,position:`start`,"tooltip-props":e.tooltipProps,label:e.label,onInput:function(e){m.value=e},onMouseup:function(){var t,n=P();(t=e.onChangeEnd)==null||t.call(e,n)}},null),e.range&&V(sk,{vertical:v.value,value:h.value,ref:p,label:e.label,range:e.range,position:`end`,"tooltip-props":e.tooltipProps,onInput:function(e){h.value=e},onMouseup:function(){var t,n=P();(t=e.onChangeEnd)==null||t.call(e,n)}},null),e.showStep&&V(`div`,{class:`${n.value}__stops`},[D.value.map(function(e,t){return e.position===0||e.position===100?null:V(`div`,{class:`${n.value}__stop`,key:t,style:$O(e,v.value)},null)})]),ne(te)])]),M.value&&e.inputNumberProps&&ie()])}}})),ghe=X(sk),_he=X(z({name:`TSwitch`,props:{beforeChange:{type:Function},customValue:{type:Array},disabled:{type:Boolean,default:void 0},label:{type:[Array,Function],default:function(){return[]}},loading:Boolean,size:{type:String,default:`medium`,validator:function(e){return!e||[`small`,`medium`,`large`].includes(e)}},value:{type:[String,Number,Boolean],default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0},defaultValue:{type:[String,Number,Boolean]},onChange:Function},setup:function(e,t){var n=t.slots,r=Sm(),i=Q(`switch`),a=ym(),o=a.STATUS,s=a.SIZE,c=Wt(e),l=c.value,u=c.modelValue,d=Y(Rm(l,u,e.defaultValue,e.onChange),2),f=d[0],p=d[1],m=U(function(){return e.customValue&&e.customValue.length>0?e.customValue[0]:!0}),h=U(function(){return e.customValue&&e.customValue.length>1?e.customValue[1]:!1});function g(e){p(f.value===m.value?h.value:m.value,{e})}function _(t){if(!(r.value||e.loading)){if(!e.beforeChange){g(t);return}Promise.resolve(e.beforeChange()).then(function(e){e&&g(t)}).catch(function(e){throw Error(`Switch: some error occurred: ${e}`)})}}var v=U(function(){return[`${i.value}`,s.value[e.size],G(G(G({},o.value.disabled,r.value),o.value.loading,e.loading),o.value.checked,f.value===m.value||e.modelValue===m.value)]}),y=U(function(){return[`${i.value}__handle`,G(G({},o.value.disabled,r.value),o.value.loading,e.loading)]}),b=U(function(){return[`${i.value}__content`,s.value[e.size],G({},o.value.disabled,r.value)]});R(f,function(t){if(e.customValue&&e.customValue.length&&!e.customValue.includes(t))throw Error(`value is ${t} not in ${JSON.stringify(e.customValue)}`)},{immediate:!0});var x=U(function(){if(q(e.label))return e.label(sa,{value:f.value});if(Rd(e.label))return e.label;if(K(e.label)&&e.label.length){var t=f.value===m.value?e.label[0]:e.label[1];if(!t)return;if(Rd(t))return t;if(q(t))return t(sa)}return n.label?n.label({value:f.value}):null});return function(){var t,n;return e.loading?n=V(uh,{size:`small`},null):x.value&&(t=x.value),V(`div`,{class:v.value,onClick:_},[V(`span`,{class:y.value},[n]),V(`div`,{class:b.value},[t])])}}})),vhe={allowInputOverMax:Boolean,autofocus:Boolean,autosize:{type:[Boolean,Object],default:!1},disabled:{type:Boolean,default:void 0},maxcharacter:{type:Number},maxlength:{type:[String,Number]},name:{type:String,default:``},placeholder:{type:String,default:void 0},readonly:{type:Boolean,default:void 0},status:{type:String,default:`default`,validator:function(e){return!e||[`default`,`success`,`warning`,`error`].includes(e)}},tips:{type:[String,Function]},value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},defaultValue:{type:[String,Number]},onBlur:Function,onChange:Function,onFocus:Function,onKeydown:Function,onKeypress:Function,onKeyup:Function,onValidate:Function},yhe=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important
`,ck;function lk(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;ck||(ck=document.createElement(`textarea`),document.body.appendChild(ck));var i=_se(e),a=i.paddingSize,o=i.borderSize,s=i.boxSizing,c=i.sizingStyle;ck.setAttribute(`style`,`${c};${yhe}`),ck.value=e.value||e.placeholder||``;var l=ck.scrollHeight,u={},d=s===`border-box`;d?l+=o:s===`content-box`&&(l-=a),ck.value=``;var f=ck.scrollHeight-a;(t=ck)==null||(t=t.parentNode)==null||t.removeChild(ck),ck=null;var p=function(e){var t=f*e;return d&&(t=t+a+o),t};if(!of(n)){var m=p(n);l=Math.max(m,l),u.minHeight=`${m}px`}return of(r)||(l=Math.min(p(r),l)),u.height=`${l}px`,u}var bhe=X(z({name:`TTextarea`,inheritAttrs:!1,props:vhe,setup:function(e,t){var n=t.attrs,r=t.expose,i=Q(),a=Q(`textarea`),o=U(function(){return`${a.value}__tips`}),s=U(function(){return`${a.value}__limit`}),c=Wt(e),l=c.value,u=c.modelValue,d=Y(Rm(l,u,e.defaultValue,e.onChange),2),f=d[0],p=d[1],m=Sm(),h=Mm(),g=I({}),_=I(),v=I(!1),y=I(!1),b=function(){return _.value?.focus()},x=function(){return _.value?.blur()},S=function(){var t;if(e.autosize===!0)dn(function(){g.value=lk(_.value)});else if(e.autosize&&so(e.autosize)===`object`){var r=e.autosize,i=r.minRows,a=r.maxRows;dn(function(){g.value=lk(_.value,i,a)})}else n.rows?g.value={height:`auto`,minHeight:`auto`}:n.style&&(t=n.style)!=null&&t.height&&(g.value={height:n.style?.height})},C=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=_.value,n=String(e);t&&t.value!==n&&(t.value=n,f.value=n)},w=function(t){var n=t.target.value;if(e.maxcharacter&&e.maxcharacter>=0){var r=Qm(n,e.maxcharacter);e.allowInputOverMax||(n=so(r)===`object`&&r.characters)}!y.value&&p(n,{e:t}),dn(function(){return C(n)}),S()},T=function(e){w(e)},E=function(){y.value=!0},D=function(e){y.value=!1,w(e)},O=function(t,n){var r;m.value||(r=e[`on${t[0].toUpperCase()}${t.slice(1)}`])==null||r.call(e,f.value,{e:n})},k=function(e){O(`keydown`,e)},A=function(e){O(`keyup`,e)},j=function(e){O(`keypress`,e)},M=function(t){var n;m.value||(v.value=!0,(n=e.onFocus)==null||n.call(e,f.value,{e:t}))},ee=wn(zS,void 0),N=function(t){var n;t.target&&(v.value=!1,(n=e.onBlur)==null||n.call(e,f.value,{e:t}),ee?.handleBlur())},P=U(function(){return[a.value,G(G({},`${i.value}-is-disabled`,m.value),`${i.value}-is-readonly`,h.value)]}),F=U(function(){return Xm({autofocus:e.autofocus,disabled:m.value,readonly:h.value,placeholder:e.placeholder,maxlength:!e.allowInputOverMax&&e.maxlength||void 0,name:e.name||void 0})}),te=U(function(){var e=Qm(String(f.value||``));return so(e)===`object`?e.length:e}),ne=BS(U(function(){return{value:[void 0,null].includes(f.value)?void 0:String(f.value),status:e.status,maxlength:Number(e.maxlength),maxcharacter:e.maxcharacter,allowInputOverMax:e.allowInputOverMax,onValidate:e.onValidate}})).tStatus;R(function(){return f.value},function(){return S()}),R(_,function(t){t&&(S(),e.autofocus&&t.focus())}),R(g,function(e){var t=n.style;Do(t)?Pm(_.value,mf(t,e)):Pm(_.value,e)}),R(function(){return e.autosize},S,{deep:!0}),r({focus:b,blur:x}),mr(function(){S()});var re=pm();return function(){var t=Xm({onFocus:M,onBlur:N,onKeydown:k,onKeyup:A,onKeypress:j}),r=ym().STATUS,c=U(function(){return[`${a.value}__inner`,G(G(G(G(G({},`${i.value}-is-${ne.value}`,ne.value),r.value.disabled,m.value),r.value.focused,v.value),`${i.value}-resize-none`,so(e.autosize)===`object`),`${i.value}-hide-scrollbar`,e.autosize===!0)]}),l=re(`tips`),u=l&&V(`div`,{class:`${o.value} ${a.value}__tips--${e.status||`normal`}`},[l]),d=e.maxcharacter&&V(`span`,{class:s.value},[`${te.value}/${e.maxcharacter}`])||!e.maxcharacter&&e.maxlength&&V(`span`,{class:s.value},[`${f.value?String(f.value)?.length:0}/${e.maxlength}`]);return V(`div`,H({class:P.value},Sf(n,[`style`])),[V(`textarea`,H({onInput:T,onCompositionstart:E,onCompositionend:D,ref:_,value:f.value,class:c.value},t,F.value),null),u||d?V(`div`,{class:[`${a.value}__info_wrapper`,G({},`${a.value}__info_wrapper_align`,!u)]},[u,d]):null])}}}));function uk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xhe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?uk(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var She=`TTransfer`,dk=`source`,fk=`target`;function pk(e,t){return t.some(function(t){return ef(t,e)})}function mk(e){return K(e)?{source:e[0],target:e[1]}:{source:e,target:e}}function hk(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.isTreeMode,i=r!==void 0&&r,a=n.include,o=a===void 0||a,s=n.remainValue,c=s===void 0?[]:s;if(i){var l=[];if(e)for(var u=0;u<e.length;u++){var d=e[u],f=pk(d.value,t)&&!d.disabled;if(!(!o&&f))if(d.children&&d.children.length>0){var p=hk(d.children,t,{isTreeMode:i,include:o});l=l.concat(p)}else(o&&f||!o&&!f)&&l.push(d.value)}return l}return e.filter(function(e){if(!e)return!1;var n=pk(e.value,t);return(o&&n||!o&&!n)&&(!e.disabled||pk(e.value,c))}).map(function(e){return e.value})}function gk(e,t){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return e.map(function(e,r){var i=t?.label||`label`,a=t?.value||`value`,o=t?.disabled||`disabled`;if(sf(e[i]))throw Error(`${i} is not in DataOption ${JSON.stringify(e)}`);if(sf(e[a]))throw Error(`${a} is not in DataOption ${JSON.stringify(e)}`);var s={label:e[i],value:e[a],key:`key__value_${e[a]}_index_${r}`,disabled:e[o]??!1,data:e};return n&&e.children&&(s.children=gk(e.children,t,!0)),s})}function Che(e,t,n){return pk(e.value,t)?n:!1}function _k(e,t,n){var r;return e?pk(e.value,t)?n:(r=e.children)!=null&&r.length?e.children.some(function(e){return _k(e,t,n)}):!n:!n}function vk(e,t,n,r){e.forEach(function(e){var i;Che(e,n,r)?(i=iu(e),t.push(i)):_k(e,n,r)&&(i=xhe({},e),delete i.children,t.push(i),e.children&&(i.children=[],vk(e.children,i.children,n,r),i.children.length===0&&delete i.children))})}function yk(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!(arguments.length>3&&arguments[3]!==void 0&&arguments[3]))return n?t?.map(function(t){return e.find(function(e){return ef(e.value,t)})}).filter(function(e){return!!e}):e.filter(function(e){return!pk(e.value,t)});var r=[];return vk(e,r,t,n),r}function bk(e){var t=0;return e.forEach(function(e){e.children&&e.children.length>0?t+=bk(e.children):t+=1}),t}var whe=z({name:`TTransferSearch`,props:{value:{type:String,default:``},search:{type:[Boolean,Object],default:!1},placeholder:{type:String,default:``},onChange:Function},setup:function(e){var t=Q(),n=Tm({SearchIcon:mv}).SearchIcon,r=Jm(so(e.search)===`object`?e.search:{clearable:!0},{onChange:function(t,n){var r,i=n.e,a=n.trigger;(r=e.onChange)==null||r.call(e,{value:t,e:i,trigger:a})}});return function(){return V(`div`,{class:`${t.value}-transfer__search-wrapper`},[V(WS,H({defaultValue:e.value,placeholder:e.placeholder},r.value),{default:function(){return[V(n,{slot:`suffix-icon`},null)]}})])}}});function The(e,t,n){var r=I(null),i=I(null),a=I(null);return{onDragStart:function(e){r.value=Number(e.target.dataset.index)},onDragEnd:function(){r.value=null,i.value=null,a.value=``},onDrop:function(o){o.preventDefault();var s=r.value,c=i.value;if(r.value=null,i.value=null,a.value=``,s!==c){var l=W(e.value),u=t.value[s].value,d=t.value[c].value,f=l.indexOf(u),p=l.indexOf(d);l.splice(f,1),a.value===`bottom`&&(p+=1),l.splice(p,0,u),n?.(l,[u,d])}},onDragOver:function(e){if(e.preventDefault(),e.currentTarget){var t=e.currentTarget,n=Number(t.dataset.index),o=t.offsetHeight,s=e.clientY-t.getBoundingClientRect().top,c=o*.3;if(i.value=n,i.value===r.value){a.value=``;return}s<c?a.value=`top`:s>o-c?a.value=`bottom`:a.value=`center`}},onDragLeave:function(){a.value=``,i.value=null}}}function xk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?xk(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ck(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var Ehe=z({name:`TTransferList`,props:{checkboxProps:{type:Object,default:function(){return{}}},dataSource:{type:Array,default:function(){return[]}},listType:{type:String,default:`target`},title:{type:[String,Function]},checkedValue:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},search:{type:[Boolean,Object],default:!1},transferItem:Function,empty:{type:[Function,String]},pagination:[Boolean,Object],footer:[Function,String],checkAll:Boolean,isTreeMode:{type:Boolean,default:!1},onCheckedChange:Function,onPageChange:Function,onScroll:Function,onSearch:Function,onDataChange:Function,draggable:Boolean,currentValue:{type:Array}},setup:function(e){var t=Q(),n=Wt(e).currentValue,r=Rp(`transfer`),i=r.t,a=r.globalConfig,o=I(``),s=I(1),c=I(0),l=U(function(){var t=e.pagination;return t?.current||s.value||t?.defaultCurrent}),u=U(function(){var t=e.pagination;return t?.pageSize||c.value||t?.defaultPageSize}),d=U(function(){return e.dataSource.some(function(e){return e.children&&e.children.length})?w(e.dataSource,o.value):e.dataSource.filter(function(e){return(e&&e.label.toString()).toLowerCase().indexOf(o.value.toLowerCase())>-1})}),f=U(function(){return d.value&&d.value.length||0}),p=U(function(){var t=d.value;if(!e.pagination||u.value===0)return t;var n=(l.value-1)*u.value,r=l.value*u.value;return t=t.slice(n,r),t}),m=U(function(){return so(e.pagination)===`object`?Sk(Sk(Sk({},{totalContent:!1,pageSizeOptions:[]}),e.pagination),{},{size:`small`,theme:`simple`,current:l.value,total:f.value,pageSize:u.value}):{}}),h=The(n,p,e.onDataChange),g=h.onDragStart,_=h.onDragEnd,v=h.onDrop,y=h.onDragOver,b=h.onDragLeave,x=U(function(){var t=hk(e.dataSource,[],{isTreeMode:e.isTreeMode,include:!1});return e.checkedValue.length>0&&(e.isTreeMode?t.every(function(t){return e.checkedValue.includes(t)}):(e.search?d.value:e.dataSource).every(function(t){return t.disabled||e.checkedValue.includes(t.value)}))}),S=U(function(){return!x.value&&e.checkedValue.length>0}),C=U(function(){return bk(e.dataSource)});R(C,function(e){e<=(l.value-1)*u.value&&(s.value=Math.ceil(e/u.value))});var w=function(e,t){return jd(iu(e),function(e){return!!(e.label.toLowerCase().includes(t.toLowerCase())||e.children&&e.children.length>0&&(e.children=w(e.children,t),e.children.length>0))})},T=function(t){var n;(n=e.onPageChange)==null||n.call(e,t),s.value=t.current,c.value=t.pageSize},E=function(t){var n;(n=e.onCheckedChange)==null||n.call(e,t)},D=function(t){E(t?hk(e.search?d.value:e.dataSource,[],{isTreeMode:e.isTreeMode,include:!1}):[])},O=function(t){var n;(n=e.onScroll)==null||n.call(e,t)},k=function(t){var n,r={query:t.value,type:e.listType,e:t.e,trigger:t.trigger};o.value=t.value,(n=e.onSearch)==null||n.call(e,r)},A=mm(),j=function(){return V(`span`,null,[A(`title`,{defaultNode:e.title&&Rd(e.title)?V(`template`,null,[e.title]):null,params:{type:e.listType}})])},M=function(){var n=e.draggable&&e.listType===`target`,r=null;if(n){var i;r=V(rw,{value:e.checkedValue,onChange:E},Ck(i=p.value.map(function(r,i){var a;return V(`div`,{draggable:n,onDragend:_,onDragstart:g,onDragover:y,onDragleave:b,onDrop:v,"data-index":i},[V(nw,H({disabled:e.disabled||r.disabled,value:r.value,needRipple:!0,class:[`${t.value}-transfer__list-item`,e.checkedValue.includes(r.value)?`${t.value}-is-checked`:``],key:r.key},e.checkboxProps),Ck(a=A(`transferItem`,{defaultNode:V(`span`,null,[r.label]),params:{data:r.data,index:i,type:e.listType}}))?a:{default:function(){return[a]}})])}))?i:{default:function(){return[i]}})}else{var a;r=V(rw,{value:e.checkedValue,onChange:E},Ck(a=p.value.map(function(n,r){var i;return V(nw,H({disabled:e.disabled||n.disabled,value:n.value,needRipple:!0,class:[`${t.value}-transfer__list-item`,e.checkedValue.includes(n.value)?`${t.value}-is-checked`:``],key:n.key},e.checkboxProps),Ck(i=A(`transferItem`,{defaultNode:V(`span`,null,[n.label]),params:{data:n.data,index:r,type:e.listType}}))?i:{default:function(){return[i]}})}))?a:{default:function(){return[a]}})}return V(`div`,{class:[`${t.value}-transfer__list-content`,`narrow-scrollbar`],onScroll:O},[A(`tree`,{defaultNode:r,params:{data:p.value,value:e.checkedValue,onChange:E}})])},ee=function(){var n=e.empty||i(a.value.empty),r=Rd(n)?V(`span`,null,[n]):null;return V(`div`,{class:`${t.value}-transfer__empty`},[A(`empty`,{defaultNode:r,params:{type:e.listType}})])},N=function(){return A(`footer`,{defaultNode:Rd(e.footer)?V(`div`,{class:`${t.value}-transfer__footer`},[e.footer]):null,params:{type:e.listType}})};return function(){return V(`div`,{class:[`${t.value}-transfer__list`,`${t.value}-transfer__list-${e.listType}`]},[V(`div`,{class:`${t.value}-transfer__list-header`},[V(`div`,null,[e.checkAll&&V(nw,{disabled:e.disabled||!e.dataSource.length,checked:x.value,indeterminate:S.value,onChange:D},null),V(`span`,null,[i(a.value.title,{checked:e.checkedValue.length,total:C.value})])]),j()]),V(`div`,{class:[`${t.value}-transfer__list-body`,e.search?`${t.value}-transfer__list--with-search`:``]},[e.search&&V(whe,{value:o.value,placeholder:i(a.value.placeholder),onChange:k,search:e.search},null),p.value.length>0?M():ee()]),e.pagination&&u.value>0&&f.value>0&&V(`div`,{class:`${t.value}-transfer__list-pagination`},[V(Nw,H(m.value,{onChange:T}),null)]),N()])}}}),wk={checkboxProps:{type:Object},checked:{type:Array,default:void 0},defaultChecked:{type:Array,default:function(){return[]}},data:{type:Array,default:function(){return[]}},direction:{type:String,default:`both`,validator:function(e){return!e||[`left`,`right`,`both`].includes(e)}},disabled:{type:[Boolean,Array],default:void 0},empty:{type:[String,Array,Function],default:``},footer:{type:[Array,Function]},keys:{type:Object},operation:{type:[Array,Function]},pagination:{type:[Object,Array]},search:{type:[Boolean,Object,Array],default:!1},showCheckAll:{type:[Boolean,Array],default:!0},targetDraggable:Boolean,targetSort:{type:String,default:`original`,validator:function(e){return!e||[`original`,`push`,`unshift`].includes(e)}},title:{type:[Array,Function],default:function(){return[]}},transferItem:{type:Function},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:function(){return[]}},onChange:Function,onCheckedChange:Function,onPageChange:Function,onScroll:Function,onSearch:Function};function Tk(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var Dhe=z({name:`TTransferOperations`,props:{leftDisabled:{type:Boolean,required:!0},rightDisabled:{type:Boolean,required:!0},operation:wk.operation},emits:[`moveToRight`,`moveToLeft`],setup:function(e,t){var n=t.slots,r=t.emit,i=Q(),a=Tm({ChevronRightIcon:yg,ChevronLeftIcon:fg}),o=a.ChevronRightIcon,s=a.ChevronLeftIcon,c=function(){r(`moveToRight`)},l=function(){r(`moveToLeft`)},u=function(){return V(o,null,null)},d=function(){return V(s,null,null)},f=function(t){return q(e.operation)||t===`right`&&e.operation&&q(e.operation[0])||t===`left`&&e.operation&&q(e.operation[1])||n.operation?null:t===`left`?d:u},p=function(t,r){if(q(n.operation))return n.operation({direction:r});if(q(e.operation)){var i=e.operation;return i(t,{direction:r})}var a;if(K(e.operation)){var o=Y(e.operation,2),s=o[0],c=o[1],l=r===`right`?c:s,u=q(l)?l(t):l;a=u===!1||u===!0?``:u}else a=``;return a};return function(){var t,n;return V(`div`,{class:`${i.value}-transfer__operations`},[V(mh,{variant:`outline`,size:`small`,shape:K(e.operation)&&Rd(e.operation[1])?`rectangle`:`square`,key:e.rightDisabled?`right-outline`:`right-base`,disabled:e.rightDisabled,onClick:c,icon:f(`right`)},Tk(t=p(sa,`right`))?t:{default:function(){return[t]}}),V(mh,{variant:`outline`,size:`small`,shape:K(e.operation)&&Rd(e.operation[0])?`rectangle`:`square`,key:e.rightDisabled?`left-outline`:`left-base`,disabled:e.leftDisabled,onClick:l,icon:f(`left`)},Tk(n=p(sa,`left`))?n:{default:function(){return[n]}})])}}});function Ohe(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var khe=X(z({name:She,props:wk,setup:function(e,t){var n=t.slots,r=Sm(),i=Q(),a=Wt(e),o=a.value,s=a.modelValue,c=a.checked,l=Y(Rm(o,s,e.defaultValue,e.onChange),2),u=l[0],d=l[1],f=Y(bm(c,e.defaultChecked,e.onCheckedChange,`checked`),1)[0],p=U(function(){return u.value}),m=U(function(){var e=n.tree;return q(e)}),h=U(function(){return e.direction===`right`}),g=U(function(){return e.direction===`left`}),_=U(function(){return gk(e.data,e.keys,m.value)}),v=U(function(){return yk(_.value,p.value,!1,m.value)}),y=U(function(){return yk(_.value,p.value,!0,m.value)}),b=U(function(){return G(G({},dk,hk(v.value,f.value,{isTreeMode:m.value})),fk,hk(y.value,f.value,{isTreeMode:m.value}))}),x=U(function(){return!!n.footer||!!e.footer}),S=U(function(){return!!e.pagination&&!n.content}),C=U(function(){return!!e.search}),w=U(function(){return mk(e.footer||``)}),T=U(function(){return mk(e.empty)}),E=U(function(){return mk(e.search)}),D=U(function(){return mk(e.showCheckAll)}),O=U(function(){return mk(r.value)}),k=U(function(){return mk(e.title)}),A=U(function(){return mk(e.pagination)}),j=function(t,n){var r,i=n===`source`?t:b.value[dk],a=n===`target`?t:b.value[fk],o=[].concat(W(i),W(a)),s={checked:o,sourceChecked:i,targetChecked:a,type:n};f.value=o,(r=e.onCheckedChange)==null||r.call(e,s)},M=function(t){var n=JSON.parse(JSON.stringify(p.value)),r,i=t===`target`?b.value[dk]:b.value[fk];if(t===`source`)r=n.filter(function(e){return!i.some(function(t){return ef(t,e)})});else if(e.targetSort===`original`){var a=_.value.reduce(function(e,t){return n.some(function(e){return ef(e,t.value)})&&t.disabled?e.concat(t.value):e},[]);r=hk(_.value,n.concat(i),{isTreeMode:m.value,remainValue:a})}else r=e.targetSort===`unshift`?i.concat(n):n.concat(i);j([],t===`source`?fk:dk),d(r,{type:t,movedValue:i})},ee=function(){M(fk)},N=function(){M(dk)},P=function(t,n){var r,i=t.target,a={e:t,bottomDistance:i.scrollHeight-i.scrollTop-i.clientHeight,type:n};(r=e.onScroll)==null||r.call(e,a)},F=function(t){var n;(n=e.onSearch)==null||n.call(e,t)},te=function(t,n){var r;(r=e.onPageChange)==null||r.call(e,t,{type:n})},ne=function(e,t){d(e,{type:fk,movedValue:t})},re=function(t){var r=Rf(n,[`title`,`empty`,`footer`,`operation`,`transferItem`,`default`,`tree`]);return V(Ehe,{checkboxProps:e.checkboxProps,transferItem:e.transferItem,"list-type":t,title:k.value[t],"data-source":t===`source`?v.value:y.value,"checked-value":b.value[t],disabled:O.value[t],search:E.value[t],pagination:A.value[t],"check-all":D.value[t],footer:w.value[t],empty:T.value[t],onCheckedChange:function(e){return j(e,t)},onScroll:function(e){return P(e,t)},onSearch:F,onPageChange:function(e){return te(e,t)},isTreeMode:m.value,onDataChange:ne,currentValue:p.value,draggable:e.targetDraggable&&t===`target`},Ohe(r)?r:{default:function(){return[r]}})};return function(){return V(`div`,{class:[`${i.value}-transfer`,C.value?`${i.value}-transfer__search`:``,x.value?`${i.value}-transfer__footer`:``,S.value?`${i.value}-transfer__pagination`:``,m.value?`${i.value}-transfer--with-tree`:``]},[re(dk),V(Dhe,{leftDisabled:O.value.target||h.value||b.value.target.length===0,rightDisabled:O.value.source||g.value||b.value.source.length===0,operation:e.operation,onMoveToRight:ee,onMoveToLeft:N},{operation:n.operation}),re(fk)])}}})),Ahe={name:`TTreeNode`,inject:{onDrag:{default:void 0}}};function jhe(e){return X(e)}function Ek(e){return sa}function Mhe(e){return e.$slots}function Dk(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`value`,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`defaultValue`,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:`onChange`;!(arguments.length>5&&arguments[5]!==void 0)||arguments[5];var a=t.modelValue;return n===`value`?Rm(t[n],a,e[r],e[i],n):bm(t[n],e[r],e[i],n)}var Ok=function(e){return e[e.Before=-1]=`Before`,e[e.Inside=0]=`Inside`,e[e.After=1]=`After`,e}(Ok||{});function Nhe(e){var t=e.treeItemRef,n=Dt({isDragOver:!1,isDragging:!1,dropPosition:0}),r=function(e){var r,i=t.value;if(i){var a=i==null||(r=i.getBoundingClientRect)==null?void 0:r.call(i),o=window.scrollY+a.top,s=e.pageY,c=a.height/4,l=s-o;l<c?n.dropPosition=-1:l<a.height-c?n.dropPosition=0:n.dropPosition=1}},i=function(t,r){var i,a,o,s,c,l=e.node,d=e.treeScope.drag;if(d)switch(t){case`dragStart`:n.isDragging=!0,n.dropPosition=0,(i=d.handleDragStart)==null||i.call(d,{node:l,dragEvent:r});break;case`dragEnd`:n.isDragging=!1,n.isDragOver=!1,n.dropPosition=0,u.cancel(),(a=d.handleDragEnd)==null||a.call(d,{node:l,dragEvent:r});break;case`dragOver`:n.isDragOver=!0,u(r),(o=d.handleDragOver)==null||o.call(d,{node:l,dragEvent:r});break;case`dragLeave`:n.isDragOver=!1,n.dropPosition=0,u.cancel(),(s=d.handleDragLeave)==null||s.call(d,{node:l,dragEvent:r});break;case`drop`:(c=d.handleDrop)==null||c.call(d,{node:l,dropPosition:n.dropPosition,dragEvent:r}),n.isDragOver=!1,u.cancel();break;default:break}},a=function(t){if(e.node.isDraggable()){t.stopPropagation(),i(`dragStart`,t);try{var n;(n=t.dataTransfer)==null||n.setData(`text/plain`,``)}catch{}}},o=function(t){e.node.isDraggable()&&(t.stopPropagation(),i(`dragEnd`,t))},s=function(t){e.node.isDraggable()&&(t.stopPropagation(),t.preventDefault(),i(`dragOver`,t))},c=function(t){e.node.isDraggable()&&(t.stopPropagation(),i(`dragLeave`,t))},l=function(t){e.node.isDraggable()&&(t.stopPropagation(),t.preventDefault(),i(`drop`,t))},u=Hf(function(e){r(e)});return{dragStates:n,handleDragStart:a,handleDragEnd:o,handleDragOver:s,handleDragLeave:c,handleDrop:l}}function kk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Phe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?kk(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ak(e,t,n){var r=Yc(`on-${n}`);n.replace(/^on/,``).toLowerCase();var i=[...arguments].slice(3);typeof e[r]==`function`&&e[r].apply(e,i)}function jk(e,t){for(var n=[],r=e;r&&r.parentNode&&(n.push(r),r!==t);)r=r.parentNode;return n}function Fhe(e,t,n){return jk(t,n).map(function(t){return{name:e,value:t?.getAttribute(e)||``,el:t}}).filter(function(e){return e.value})}function Ihe(e,t,n){return Fhe(e,t,n).pop()||null}function Lhe(e,t,n){return jk(t,n).some(function(t){return t.classList.contains(e)})}function Mk(e,t){var n=null,r=null,i=Phe({},t);return typeof e==`function`?r=e(i.createElement,i.node?.getModel()):typeof e==`string`&&(r=e),(typeof r==`string`||r)&&(n=r),n}function Rhe(e){return typeof e==`string`||typeof e==`number`}function Nk(e,t){var n=null,r=null;return typeof t==`string`||typeof t==`number`?r=t:t&&Rhe(t.value)&&(r=t.value),n=e.getNode(r),n}function zhe(e){var t=e.props,n=e.context,r=e.scope,i=e.store,a=null,o={handleDragStart:function(e){var r=e.dragEvent,i=e.node;a=i,Ak(t,n,`drag-start`,{node:i.getModel(),e:r})},handleDragEnd:function(e){var r=e.dragEvent,i=e.node;a=i,Ak(t,n,`drag-end`,{node:i.getModel(),e:r})},handleDragOver:function(e){var r=e.dragEvent;Ak(t,n,`drag-over`,{node:e.node.getModel(),e:r})},handleDragLeave:function(e){var r=e.dragEvent;Ak(t,n,`drag-leave`,{node:e.node.getModel(),e:r})},handleDrop:function(e){var r=e.dragEvent,o=e.node,s=e.dropPosition;if(!(o.value===a.value||o.getParents().some(function(e){return e.value===a.value}))){var c={dropNode:o.getModel(),dragNode:a.getModel(),dropPosition:s,e:r};t.allowDrop?.call(t,c)!==!1&&(i.getNodes().some(function(e){return e.value===o.value?(s===Ok.Inside?a.appendTo(i,e):s===Ok.Before?o.insertBefore(a):o.insertAfter(a),!0):!1}),Ak(t,n,`drop`,c))}}};return r.drag=o,{drag:o}}function Pk(e){var t=e,n=t.store,r=Q(`tree`).value,i=Y(e.vmValue,2),a=i[0],o=i[1],s=Y(e.vmActived,2),c=s[0],l=s[1],u=Y(e.vmExpanded,2),d=u[0],f=u[1],p=function(e,i){var a=Nk(n,e),o=t.mouseEvent,s={node:a.getModel(),e:o,trigger:`setItem`};if(o){s.trigger=`node-click`;var c=o.target,l=o.currentTarget;Lhe(`${r}__icon`,c,l)&&(s.trigger=`icon-click`)}var u=a.setExpanded(i,{directly:!0});return f(u,s),s.trigger!==`setItem`&&n.replaceExpanded(d.value||[]),u},m=function(e){var t=Nk(n,e);if(t.children)return p(t,!t.isExpanded())},h=function(e,r){var i=Nk(n,e),a=t.mouseEvent,o={node:i.getModel(),e:a,trigger:`setItem`};a&&(o.trigger=`node-click`);var s=i.setActived(r,{isAction:o.trigger===`node-click`,directly:!0});return l(s,o),o.trigger!==`setItem`&&n.replaceActived(c.value||[]),s},g=function(e){var t=Nk(n,e);return h(t,!t.isActived())},_=function(e,t,r){var i=Nk(n,e),s=r?.e,c={node:i.getModel(),e:s,trigger:`setItem`};s&&(c.trigger=`node-click`);var l=i.setChecked(t,{isAction:c.trigger===`node-click`,directly:!0});return o(l,c),c.trigger!==`setItem`&&n.replaceChecked(a.value||[]),l};return{setExpanded:p,toggleExpanded:m,setActived:h,toggleActived:g,setChecked:_,toggleChecked:function(e,t){var r=Nk(n,e);return r.isIndeterminate()?_(r,r.hasEnableUnCheckedChild(),t):_(r,!r.isChecked(),t)}}}function Bhe(e,t){var n=Wt(e),r=I(null),i=e.treeScope,a=i.store.privateMap.get(e.itemKey);return{state:{stateId:e.stateId,props:e,context:t,treeScope:i,refProps:n,node:a,treeItemRef:r}}}function Fk(e){var t=e.context,n=Q().value,r=function(n,r){var i=e.node,a={event:new Event(`change`),node:i};t.emit(`change`,a,r)},i=!1;return{handleChange:r,handleClick:function(r){var a,o,s=e.node,c=e.treeScope.treeProps,l=(c===void 0?{}:c).expandOnClickNode,u=r.target,d=s.children&&l&&(u.className===`${n}-checkbox__input`||u.tagName.toLowerCase()===`input`);if(!(i||d)){i=!0,setTimeout(function(){i=!1}),l&&s.children&&((a=u.className)==null||(o=a.indexOf)==null?void 0:o.call(a,`${n}-tree__label`))!==-1&&r.preventDefault();var f={mouseEvent:r,event:r,node:s,path:s.getPath()};t.emit(`click`,f)}}}}function Vhe(e){var t=Q().value,n=Q(`tree`).value,r=function(e){var t=Tm({CaretRightSmallIcon:Use}).CaretRightSmallIcon;return V(t,null,null)},i=function(e){e.preventDefault()};return{renderIcon:function(a){var o=e.node,s=e.treeScope,c=s.scopedSlots,l=(s?.treeProps||{}).icon,u=!1,d=null;return l===!0?c!=null&&c.icon?d=c.icon({node:o?.getModel()}):o.vmIsLeaf?d=``:(u=!0,d=r(a),o.loading&&o.expanded&&(d=V(uh,null,null))):l&&(d=Mk(l,{createElement:a,node:o})),V(`span`,{class:[`${n}__icon`,`${t}-folder-icon`,u?`${n}__icon--default`:``],trigger:`expand`,ignore:`active`,onmousedown:i},[d])}}}function Hhe(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}function Uhe(e){var t=Q().value,n=Q(`tree`).value,r=Fk(e).handleChange;return{renderLabel:function(i){var a=e.node,o=e.treeScope,s=o.scopedSlots,c=o.treeProps,l=c===void 0?{}:c,u=l.label,d=l.expandOnClickNode,f=l?.checkProps||{},p=null;p=u===!0?s!=null&&s.label?s.label({node:a?.getModel()}):a.label||``:Mk(u,{createElement:i,node:a});var m=[`${n}__label`,G({},`${t}-is-active`,a.isActivable()?a.actived:!1)],h=U(function(){var e=Array.isArray(a.children)&&a.children?.length>0,t=Gd(a.children)&&a.children;return d&&(e||t)});if(a.vmCheckable){var g=!1;a.vmIsLocked&&!a.vmIsRest&&(g=!0),a.isDisabled()&&(g=!0);var _=function(){return p}();p=V(nw,H({class:m,checked:a.checked,indeterminate:a.indeterminate,name:String(a.value),onChange:r,stopLabelTrigger:h.value},f,{disabled:g,title:a.label}),Hhe(p)?p:{default:function(){return[_]}})}else{var v=V(`span`,{style:`position: relative`},[p]);p=a.isActivable()?V(`span`,{key:`1`,ref:`label`,class:m,title:a.label},[v]):V(`span`,{key:`2`,class:m,title:a.label},[v])}return p}}}function Whe(e){var t=Q(`tree`).value;return{renderLine:function(n){var r=e.node,i=e.treeScope,a=i.scopedSlots,o=i?.treeProps||{},s=o.line,c=!!o.icon,l=null;if(s===!0){if(a!=null&&a.line)l=a.line({node:r?.getModel()});else if(r.parent&&r.tree){var u=r.vmIsLeaf,d=r.vmIsFirst,f=r.level,p=[];p.push(`${t}__line`),(u||!c)&&p.push(`${t}__line--leaf`),d&&c&&p.push(`${t}__line--first`);var m=[],h=r.getParents();h.pop(),h.forEach(function(e,t){e.vmIsLast||m.push(`calc(-${t+1} * var(--space)) 0 var(--color)`)}),l=V(`span`,{class:p,style:{"--level":f?String(f):void 0,"box-shadow":m.join(`,`)}},null)}}else l=Mk(s,{createElement:n,node:r});return l}}}function Ghe(e){var t=Q(`tree`).value;return{renderOperations:function(n){var r=e.node,i=e.treeScope,a=i.scopedSlots,o=(i?.treeProps||{}).operations,s=null;return s=a!=null&&a.operations?a.operations({node:r?.getModel()}):Mk(o,{createElement:n,node:r}),s&&=V(`span`,{class:`${t}__operations`,ignore:`active,expand`},[s]),s}}}function Ik(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Khe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ik(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ik(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qhe(e){var t=e.treeScope,n=e.treeItemRef,r=t.virtualConfig,i=t.treeContentRef,a=t.scrollProps,o=Q().value,s=Q(`tree`).value,c=Fk(e).handleClick,l=Vhe(e).renderIcon,u=Uhe(e).renderLabel,d=Whe(e).renderLine,f=Ghe(e).renderOperations,p=Nhe(e),m=p.dragStates,h=p.handleDragStart,g=p.handleDragEnd,_=p.handleDragOver,v=p.handleDragLeave,y=p.handleDrop,b=$oe(i,n,Dt(Khe({},a?.value))),x=b.hasLazyLoadHolder,S=b.tRowHeight;function C(){var t=e.node;if(r?.isVirtualScroll.value)var i=setTimeout(function(){r.handleRowMounted({ref:n,data:t}),clearTimeout(i)},100)}mr(function(){C()}),gr(function(){C()});var w=function(){return`${`--level: ${e.node.level};`}`},T=function(){var t=e.node,n=m.isDragOver,r=m.isDragging,i=m.dropPosition,a=[];return a.push(`${s}__item`),a.push(G(G(G({},`${s}__item--open`,t.expanded),`${o}-is-active`,t.isActivable()?t.actived:!1),`${o}-is-disabled`,t.isDisabled())),a.push(G({},`${s}__item--draggable`,!t.isDisabled()&&t.isDraggable())),t.visible?a.push(`${s}__item--visible`):a.push(`${s}__item--hidden`),t.vmIsLocked&&a.push(`${s}__item--locked`),t.vmIsRest&&a.push(`${s}__item--matched`),a.push(G(G(G(G({},`${s}__item--dragging`,r),`${s}__item--tip-top`,n&&i<0),`${s}__item--tip-bottom`,n&&i>0),`${s}__item--tip-highlight`,!r&&n&&i===0)),a},E=function(e){var t=[],n=l(e),r=d(e);r&&t.push(r),n&&t.push(n);var i=u(e);i&&t.push(i);var a=f(e);return a&&t.push(a),t};return{hasLazyLoadHolder:x,tRowHeight:S,renderItemNode:function(t){var n=e.node,r=e.props;if(!n)return null;var i=n.level,a=n.value,o=w(),s=T(),l=e;return l.stateId=r.stateId,V(`div`,{ref:`treeItemRef`,class:s,"data-value":a,"data-level":i,style:o,onClick:function(e){return c(e)},draggable:!n.isDisabled()&&n.isDraggable(),onDragstart:function(e){return h(e)},onDragend:function(e){return g(e)},onDragover:function(e){return _(e)},onDragleave:function(e){return v(e)},onDrop:function(e){return y(e)}},[x.value?[V(`div`,null,null)]:E(t)])}}}function Lk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Rk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Lk(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Jhe=z(Rk(Rk({props:{stateId:{type:String},itemKey:{type:String},rowIndex:{type:Number},treeScope:{type:Object}}},Ahe),{},{setup:function(e,t){var n=Bhe(e,t).state;return{treeItemRef:n.treeItemRef,renderItemNode:qhe(n).renderItemNode}},render:function(e){var t=Ek(e);return typeof this.renderItemNode==`function`?this.renderItemNode(t):null}}));function Yhe(e){var t=e,n=t.props,r=t.context,i=Pk(e),a=i.toggleExpanded,o=i.toggleActived,s=i.toggleChecked;return{handleChange:function(e,t){var r=n.disabled,i=e.node;!i||r||i.disabled||!i.isCheckable()||s(i,t)},handleClick:function(e){var i=e.mouseEvent,s=e.event,c=e.node;if(!(!c||!i)){t.mouseEvent=i;var l=n.expandOnClickNode,u=!n.disabled&&!c.disabled&&c.isActivable(),d=!1;[`trigger`,`ignore`].forEach(function(e){var t=Ihe(e,s.target,s.currentTarget)?.value||``;t.indexOf(`expand`)>=0&&(e===`trigger`?(l=!0,d=!0):e===`ignore`&&(l=!1)),t.indexOf(`active`)>=0&&e===`ignore`&&(u=!1)}),!(l&&(a(c),d))&&(u&&o(c),Ak(n,r,`click`,{node:c.getModel(),e:i}),t.mouseEvent=null)}}}}function Xhe(e){var t=e.store,n=e.scope,r=e.allNodes,i=e.nodes,a=e.virtualConfig,o=Yhe(e),s=o.handleClick,c=o.handleChange,l=I(!1),u=new Map,d=function(){r.value=t.getNodes()},f=function(){if(!a?.isVirtualScroll.value){var e=[],n=!1;r.value.forEach(function(t){t.visible&&(n=!0,u.set(t.value,t.value)),u.has(t.value)&&e.push(t)}),u.forEach(function(e){t.getNode(e)||u.delete(e)}),i.value=e,l.value=!n}},p=function(){if(a?.isVirtualScroll.value){var e=a.visibleData.value;i.value=e,l.value=e.length<=0}},m=function(e,t,r,i){var a=t.VIRTUAL_SCROLL_INDEX||r,o=t[ZT];return V(Jhe,{key:o,rowIndex:a,stateId:i,itemKey:o,treeScope:n,onClick:s,onChange:c},null)};return R(r,f),R(a.visibleData,p),d(),f(),p(),t.emitter.on(`update`,d),{nodesEmpty:l,renderTreeNodes:function(e){var t=`render-${new Date().getTime()}`;return i.value.map(function(n,r){return m(e,n,r,t)})}}}function zk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zk(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zhe(e){var t=e,n=t.props,r=t.context,i=t.allNodes,a=t.nodes,o=t.scope,s=t.treeContentRef,c=t.isScrolling,l=U(function(){return Bk({rowHeight:34},n.scroll)});o.scrollProps=l;var u=Vm(s,U(function(){return{data:i.value.filter(function(e){return e.visible}),scroll:l.value,preventResizeRefresh:!0}}));o.virtualConfig=u,t.virtualConfig=u,mr(function(){u?.isVirtualScroll.value&&u.handleScroll()});var d=function(e){var t;(t=n.onScroll)==null||t.call(n,{e}),r.emit(`scroll`,{e})},f=null,p=function(){c.value=!0,f&&=(clearTimeout(f),null),f=setTimeout(function(){f=null,c.value=!1},100)},m=0;return{treeContentRef:s,onInnerVirtualScroll:function(e){p();var t=u?.isVirtualScroll.value,n=(e.target||e.srcElement).scrollTop;m===n?m=0:t&&(u.handleScroll(),a.value=u.visibleData.value),m=n,d(e)},virtualConfig:u,scrollToElement:function(e){var t=e.index;if(!t&&t!==0){if(!e.key){Vp.error(`Tree`,"scrollToElement: one of `index` or `key` must exist.");return}if(t=i.value?.findIndex(function(t){return[J(t.data,`key`),J(t.data,n.keys?.value||`value`)].includes(e.key)}),t<0){Vp.error(`Tree`,`${e.key} does not exist in data, check \`key\` or \`data\` please.`);return}}u.scrollToElement(Bk(Bk({},e),{},{index:t-1}))}}}function Qhe(e,t){var n=I(),r=I([]),i=I([]),a=I(!1),o=Wt(e),s=Dk(e,o,`value`,`defaultValue`,`onChange`,`change`),c=Dk(e,o,`actived`,`defaultActived`,`onActive`,`active`),l=Dk(e,o,`expanded`,`defaultExpanded`,`onExpand`,`expand`);function u(e){d.store=e,d.scope.store=e,i.value=e.getNodes()}var d={props:e,context:t,store:null,treeContentRef:n,nodes:r,allNodes:i,isScrolling:a,mouseEvent:null,virtualConfig:null,scope:{store:null,treeContentRef:n,treeProps:e,scopedSlots:{},virtualConfig:null},setStore:u,refProps:o,vmValue:s,vmActived:c,vmExpanded:l};return{state:d}}function $he(e){var t=e.props,n=e.context,r=e.refProps,i=t.valueMode,a=t.filter,o=t.keys,s=new nE({valueMode:i,filter:a}),c=e.vmValue[0],l=e.vmActived[0],u=e.vmExpanded[0],d=function(){var e=Rf(t,[`expandAll`,`expandLevel`,`expandMutex`,`expandParent`,`activable`,`activeMultiple`,`disabled`,`disableCheck`,`checkable`,`draggable`,`checkStrictly`,`load`,`lazy`,`valueMode`,`filter`,`allowFoldNodeOnFilter`]);s.setConfig(e)},f=function(){var e=t.expandParent;if(Array.isArray(u.value)){var n=new Map;u.value.forEach(function(t){if(n.set(t,!0),e){var r=s.getNode(t);r&&r.getModel().getParents().forEach(function(e){n.set(e.value,!0)})}});var r=Array.from(n.keys());s.setExpanded(r)}},p=!1,m=null,h=function(){if(t.allowFoldNodeOnFilter&&p)if(p=!1,t.filter){m||=s.getExpanded();var e=[];s.getNodes().forEach(function(t){t.vmIsLocked&&e.push(t.value)}),s.setExpanded(e)}else m&&=(s.replaceExpanded(m),null)},g=function(e,n){t.allowFoldNodeOnFilter&&(p=e!==n)},_=function(e){var r={node:e.node.getModel()};Array.isArray(c.value)&&c.value.length>0&&s.replaceChecked(c.value),Array.isArray(u.value)&&u.value.length>0&&s.replaceExpanded(u.value),Array.isArray(l.value)&&l.value.length>0&&s.replaceActived(l.value),t!=null&&t.onLoad&&t?.onLoad(r),n.emit(`load`,r)},v=function(e){s.reload(e||[]),s.refreshNodes(),Array.isArray(c.value)&&s.setChecked(c.value),f(),Array.isArray(l.value)&&s.setActived(l.value),s.refreshState()};function y(){s.setConfig({keys:o}),d(),s.append(t.data||[]),s.refreshNodes(),Array.isArray(c.value)&&s.setChecked(c.value),f(),Array.isArray(l.value)&&s.setActived(l.value),s.emitter.on(`load`,_),s.emitter.on(`update`,h)}return y(),e.setStore(s),R(function(){return W(c.value||[])},function(e){s.replaceChecked(e)}),R(function(){return W(u.value||[])},function(e){s.replaceExpanded(e)}),R(function(){return W(l.value||[])},function(e){s.replaceActived(e)}),R(r.filter,function(e,t){g(e,t)}),R(r.keys,function(e){s.setConfig({keys:e})}),R(r.expandAll,function(e){if(e){var t=s.getNodes().filter(function(e){return Array.isArray(e.children)&&e.children.length}).map(function(e){return e.value});s.setExpanded(t)}else s.replaceExpanded(m),m=null}),{store:s,rebuild:v,checkFilterExpand:g,updateStoreConfig:d,updateExpanded:f,expandFilterPath:h}}function Vk(e){return e&&(isNaN(Number(e))?e:`${e}px`)}function ege(e){var t=e.props,n=Q(`tree`).value,r=Q().value,i=e.virtualConfig,a=e.isScrolling,o=e.refProps,s=o.height,c=o.maxHeight;return{treeClasses:U(function(){var e=[n],o=t.disabled,s=t.hover,c=t.transition,l=t.checkable,u=t.draggable,d=t.expandOnClickNode,f=t.scroll;return o&&e.push(`${r}-is-disabled`),s&&e.push(`${n}--hoverable`),l&&e.push(`${n}--checkable`),u&&e.push(`${n}--draggable`),c&&e.push(`${n}--transition`),d&&e.push(`${n}--block-node`),i?.isVirtualScroll.value?(e.push(`${n}__vscroll`),a.value&&e.push(`${n}--scrolling`)):f&&f.type===`lazy`&&e.push(`${n}__lazyload`),e}),treeContentStyles:U(function(){return{height:Vk(s.value),maxHeight:Vk(c.value),overflowY:Vk(s.value)||Vk(c.value)?`auto`:void 0}}),scrollStyles:U(function(){var e=`translateY(${i?.isVirtualScroll.value?i?.translateY.value:0}px)`;return{transform:e,"-ms-transform":e,"-moz-transform":e,"-webkit-transform":e}}),cursorStyles:U(function(){var e=`translate(0, ${i?.isVirtualScroll.value?i?.translateY.value:0}px)`;return{transform:e,"-ms-transform":e,"-moz-transform":e,"-webkit-transform":e}})}}var tge={activable:Boolean,activeMultiple:Boolean,actived:{type:Array,default:void 0},defaultActived:{type:Array},allowDrop:{type:Function},allowFoldNodeOnFilter:Boolean,checkProps:{type:Object},checkStrictly:Boolean,checkable:Boolean,data:{type:Array,default:function(){return[]}},disableCheck:{type:[Boolean,Function],default:!1},disabled:Boolean,draggable:Boolean,empty:{type:[String,Function],default:``},expandAll:Boolean,expandLevel:{type:Number,default:0},expandMutex:Boolean,expandOnClickNode:Boolean,expandParent:Boolean,expanded:{type:Array,default:void 0},defaultExpanded:{type:Array,default:function(){return[]}},filter:{type:Function},height:{type:[String,Number]},hover:Boolean,icon:{type:[Boolean,Function],default:!0},keys:{type:Object},label:{type:[String,Boolean,Function],default:!0},lazy:{type:Boolean,default:!0},line:{type:[Boolean,Function],default:!1},load:{type:Function},maxHeight:{type:[String,Number]},operations:{type:Function},scroll:{type:Object},transition:{type:Boolean,default:!0},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:function(){return[]}},valueMode:{type:String,default:`onlyLeaf`,validator:function(e){return!e||[`onlyLeaf`,`parentFirst`,`all`].includes(e)}},onActive:Function,onChange:Function,onClick:Function,onDragEnd:Function,onDragLeave:Function,onDragOver:Function,onDragStart:Function,onDrop:Function,onExpand:Function,onLoad:Function,onScroll:Function};function Hk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Uk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Hk(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nge(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var Wk=jhe(z({name:`TTree`,model:{prop:`value`,event:`change`},props:tge,setup:function(e,t){var n=Rp(`tree`),r=n.t,i=n.global,a=Q(),o=Q(`tree`),s=pm(),c=Qhe(e,t).state,l=c.treeContentRef,u=c.isScrolling,d=$he(c),f=d.store,p=d.updateStoreConfig,m=d.rebuild;zhe(c);var h=Pk(c),g=h.setActived,_=h.setExpanded,v=h.setChecked,y=Zhe(c),b=y.onInnerVirtualScroll,x=y.virtualConfig,S=y.scrollToElement,C=Xhe(c),w=C.renderTreeNodes,T=C.nodesEmpty,E=ege(c);return{t:r,global:i,classPrefix:a,componentName:o,state:c,store:f,treeClasses:E.treeClasses,treeContentRef:l,renderTNodeJSX:s,rebuild:m,updateStoreConfig:p,setActived:g,setExpanded:_,setChecked:v,renderTreeNodes:w,nodesEmpty:T,isScrolling:u,onInnerVirtualScroll:b,treeContentStyles:E.treeContentStyles,scrollStyles:E.scrollStyles,cursorStyles:E.cursorStyles,virtualConfig:x,scrollToElement:S,scrollTo:S}},watch:{data:function(e){this.rebuild(e)}},methods:{refresh:function(){this.store.refreshState()},setItem:function(e,t){var n=this,r=this.store.getNode(e),i=t,a=Object.keys(i);r&&i&&([`expanded`,`actived`,`checked`].forEach(function(e){if(a.includes(e)){var t=i[e];delete i[e];var o=n[`set${kc(e)}`];q(o)&&o.call(n,r,t)}}),r.set(i))},getItem:function(e){return this.store.getNode(e)?.getModel()},getItems:function(e){return this.store.getNodes(e).map(function(e){return e.getModel()})},appendTo:function(e,t){var n=this.store,r=[];r=Array.isArray(t)?t:[t],r.forEach(function(t){var r=Nk(n,t?.value||``);r?n.appendNodes(e,r):n.appendNodes(e,t)})},insertBefore:function(e,t){var n=this.store,r=Nk(n,t?.value||``);r?n.insertBefore(e,r):n.insertBefore(e,t)},insertAfter:function(e,t){var n=this.store,r=Nk(n,t?.value||``);r?n.insertAfter(e,r):n.insertAfter(e,t)},remove:function(e){return this.store.remove(e)},getIndex:function(e){return this.store.getNodeIndex(e)},getParent:function(e){return this.store.getParent(e)?.getModel()},getParents:function(e){return this.store.getParents(e).map(function(e){return e.getModel()})},getPath:function(e){var t=this.store.getNode(e),n=[];return t&&(n=t.getPath().map(function(e){return e.getModel()})),n},getTreeData:function(e){var t=[];if(e){if(!this.store.getNode(e))return[];t=this.store.getNodes(e)}else t=this.store.getNodes();var n={},r=[];return t.forEach(function(e){var t=e.value,i=Uk(Uk({},e.data),{},{value:t});i.children!==!0&&delete i.children,n[t]=i;var a=e.getParent();if(!a)r.push(i);else{var o=n[a.value];o?(Array.isArray(o.children)||(o.children=[]),o.children.push(i)):r.push(i)}}),r}},render:function(e){var t=this.state,n=this.treeClasses,r=this.updateStoreConfig,i=this.renderTreeNodes,a=this.nodesEmpty,o=this.isScrolling,s=this.virtualConfig,c=this.treeContentStyles,l=this.scrollStyles,u=this.cursorStyles,d=Ek(e),f=t.scope,p=t.allNodes,m=t.refProps;f.scopedSlots=Mhe(this),r();var h=i(d),g=this.componentName,_=s.isVirtualScroll.value,v=null;if(a){var y=!this.empty&&!this.$slots.empty?this.t(this.global.empty):this.renderTNodeJSX(`empty`);v=V(`div`,{class:`${g}__empty`},[y])}else h.length<=0&&(v=V(`div`,null,null));var b=this.$props.transition,x=null;x=!b||_&&o?V(`div`,{class:`${g}__list`,style:l},[h]):V(Tte,{tag:`div`,class:`${g}__list`,"enter-active-class":`${g}__item--enter-active`,"leave-active-class":`${g}__item--leave-active`,style:l},nge(h)?h:{default:function(){return[h]}});var S=V(`div`,{style:{width:`1px`,height:`1px`,opacity:0,pointerEvents:`none`,position:`absolute`,left:0,top:`${(p.value?.filter(function(e){return e.visible}).length??0)*(m.scroll.value?.rowHeight??34)}px`}},null);return V(`div`,{class:n,ref:`treeContentRef`,onScroll:this.onInnerVirtualScroll,style:c},[_&&V(`div`,{class:`${g}__vscroll-cursor`,style:u},null),v||x,_&&S])}})),rge={autoWidth:Boolean,borderless:Boolean,clearable:Boolean,collapsedItems:{type:Function},data:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:void 0},empty:{type:[String,Function],default:``},filter:{type:Function},filterable:Boolean,inputProps:{type:Object},inputValue:{type:[String,Number],default:void 0},defaultInputValue:{type:[String,Number]},keys:{type:Object},loading:Boolean,loadingText:{type:[String,Function],default:``},max:{type:Number,default:0},minCollapsedNum:{type:Number,default:0},multiple:Boolean,panelBottomContent:{type:[String,Function]},panelTopContent:{type:[String,Function]},placeholder:{type:String,default:void 0},popupProps:{type:Object},popupVisible:{type:Boolean,default:void 0},prefixIcon:{type:Function},readonly:{type:Boolean,default:void 0},selectInputProps:{type:Object},size:{type:String,default:`medium`,validator:function(e){return!e||[`small`,`medium`,`large`].includes(e)}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tagProps:{type:Object},treeProps:{type:Object},value:{type:[String,Number,Object,Array],default:void 0},modelValue:{type:[String,Number,Object,Array],default:void 0},defaultValue:{type:[String,Number,Object,Array]},valueDisplay:{type:Function},valueType:{type:String,default:`value`,validator:function(e){return!e||[`value`,`object`].includes(e)}},onBlur:Function,onChange:Function,onClear:Function,onFocus:Function,onInputChange:Function,onPopupVisibleChange:Function,onRemove:Function,onSearch:Function};function ige(e,t,n,r){var i=t;if(i!=null&&so(i)===`object`&&(i=i?.[n]),i==null)return[];function a(e,t){var o=null;return e.some(function(e){var s=[].concat(W(t),[e[n]]);return e[n]===i?(o=t,!0):!!(Array.isArray(e[r])&&e[r].length&&(o=a(e[r],s),o!==null))}),o}return a(e,[])||[]}function Gk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Kk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Gk(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var age=X(z({name:`TTreeSelect`,props:rge,setup:function(e,t){var n=t.slots,r=t.expose,i=pm(),a=mm(),o=Q(),s=Rp(`treeSelect`).globalConfig,c=Sm(),l=Mm(),u=I(null),d=I([]),f=I([]),p=I(null),m=I(0),h=Wt(e),g=h.value,_=h.modelValue,v=h.popupVisible,y=h.inputValue,b=Y(Rm(g,_,e.defaultValue,e.onChange),2),x=b[0],S=b[1],C=Y(bm(v,!1,e.onPopupVisibleChange,`popupVisible`),2),w=C[0],T=C[1],E=Y(bm(y,e.defaultInputValue,e.onInputChange,`inputValue`),2),D=E[0],O=E[1],k=function(){var t=function(t){return ige(e.data,t,re.value,ie.value)},n=[];x.value&&(Array.isArray(x.value)&&e.multiple?n=x.value.flatMap(t):!Array.isArray(x.value)&&!e.multiple&&(n=t(x.value))),f.value=Array.from(new Set([].concat(W(f.value),W(n))))};R(x,ly(Ey.mark(function t(){return Ey.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,me();case 1:e.multiple||(d.value=p.value?[p.value.value]:[]);case 2:case`end`:return t.stop()}},t)}))),R(function(){return e.data},ly(Ey.mark(function e(){return Ey.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,me();case 1:ye();case 2:case`end`:return e.stop()}},e)})),{deep:!0});var A=U(function(){var t=D.value||``;return t===``?null:function(n){if(q(e.filter)){var r=e.filter(String(t),n);if(Gd(r))return r}return n.data[ne.value].indexOf(t)>=0}}),j=U(function(){return c.value||e.disabled}),M=U(function(){return w.value&&p.value?.label||e.placeholder||s.value.placeholder}),ee=U(function(){return[`${o.value}-select__dropdown`,`narrow-scrollbar`]}),N=U(function(){return{small:`s`,medium:`m`,large:`l`}[e.size]}),P=U(function(){return e.valueType===`object`}),F=U(function(){return e.multiple?P.value?K(x.value)?x.value.map(function(e){return e.value}):[]:K(x.value)?x.value.map(function(e){return e}):[]:[]}),te=U(function(){return e.multiple&&!!e.max&&K(x.value)&&e.max<=x.value.length}),ne=U(function(){return!$d(e.treeProps)&&!$d(e.treeProps.keys)?e.treeProps.keys.label||`label`:e.keys?.label||`label`}),re=U(function(){return!$d(e.treeProps)&&!$d(e.treeProps.keys)?e.treeProps.keys.value||`value`:e.keys?.value||`value`}),ie=U(function(){return!$d(e.treeProps)&&!$d(e.treeProps.keys)?e.treeProps.keys.children||`children`:e.keys?.children||`children`});mr(ly(Ey.mark(function t(){return Ey.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:k(),!x.value&&e.defaultValue&&ae(e.defaultValue,null,`uncheck`),P.value?d.value=K(x.value)?x.value.map(function(e){return e?.value}):[x.value?.value]:d.value=K(x.value)?x.value:[x.value],me();case 1:case`end`:return t.stop()}},t)})));var ae=function(e,t,n){S(e,{node:t,trigger:n}),me()},oe=function(t){var n,r=e.multiple?[]:``;d.value=[],ae(r,null,`clear`),(n=e.onClear)==null||n.call(e,{e:t.e})},se=function(e,t){var n=e;P.value&&(n=e.map(_e)),ae(n,t.node,`check`)},ce=function(t,n){if(e.multiple||T(!1,n),!(e.multiple||!n.node.actived)&&x.value!==n.node.data[re.value]){var r=t;r=P.value?_e($d(t)?``:t[0]):$d(t)?``:t[0],ae(r,n.node,`check`),d.value=t}},le=function(e){f.value=e},ue=function(){me()},de=function(t){var n;if(!w.value){var r;(r=e.onSearch)==null||r.call(e,String(t));return}O(t),(n=e.onSearch)==null||n.call(e,String(t))},fe=function(t,n){var r,i=n.trigger,a=n.index;[`tag-remove`,`backspace`].includes(i)&&K(x.value)&&x.value.splice(a,1),(r=e.onRemove)==null||r.call(e,{value:t,data:null,e:n&&n.e}),ae(x.value,null,i)},pe=function(e,t){T(e,t),e&&t.trigger===`trigger-element-click`&&O(``)},me=function(){var t=ly(Ey.mark(function t(){return Ey.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e.multiple?e.multiple?K(x.value)?p.value=ge():p.value=[]:p.value=null:x.value||x.value===0?p.value=he():p.value=``;case 1:case`end`:return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),he=function(){return _e(P.value?x.value.value:x.value)},ge=function(){return x.value.map(function(e){return _e(P.value?e.value:e)})},_e=function(t){if(u.value){var n=u.value.getItem(t);if(n)return Kk(Kk({},n.data),{},{label:n.data[ne.value],value:n.data[re.value]})}return ve(e.data,t)||{label:t,value:t}},ve=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i[re.value]===t)return Kk(Kk({},i),{},{label:i[ne.value],value:i[re.value]});if(i!=null&&i[ie.value]){var a=ve(i?.[ie.value],t);if(!af(a))return a}}return null},ye=function(){m.value+=1},be=function(){var t=Jm(e.treeProps,{onChange:se,onActive:ce,onExpand:le,onLoad:ue});return xn(V(Wk,H({ref:u,key:m.value,value:W(F.value),hover:!0,keys:e.keys,data:e.data,activable:!e.multiple,checkable:e.multiple,disabled:j.value||te.value,filter:A.value,actived:d.value,expanded:f.value,activeMultiple:e.multiple,expandOnClickNode:!1},t.value),{empty:function(){return a(`empty`,{defaultNode:V(`div`,{class:`${o.value}-select__empty`},[s.value.empty])})}}),[[Na,!e.loading]])},xe=function(){return V(DS,{isActive:w.value,overlayClassName:G(G({},`${o.value}-fake-arrow--highlight`,w.value),`${o.value}-fake-arrow--disable`,e.disabled)},null)};r({treeRef:u});var Se=Jm(e.selectInputProps,{onInputChange:de,onTagChange:fe,onPopupVisibleChange:pe,onClear:oe,onBlur:function(t,n){var r;(r=e.onBlur)==null||r.call(e,{value:x.value,e:n.e})},onFocus:function(t,n){var r;(r=e.onFocus)==null||r.call(e,{value:x.value,e:n.e})}});return function(){return V(ZC,H({class:`${o.value}-tree-select`,value:p.value,inputValue:w.value?D.value:``,popupVisible:w.value,disabled:j.value,multiple:e.multiple,loading:e.loading,clearable:e.clearable,autoWidth:e.autoWidth,borderless:e.borderless,readonly:l.value,placeholder:M.value,allowInput:e.filterable||q(e.filter),minCollapsedNum:e.minCollapsedNum,"collapsed-items":e.collapsedItems,popupProps:Kk({overlayClassName:ee.value},e.popupProps),inputProps:Kk({size:e.size},e.inputProps),tagInputProps:{size:e.size},tagProps:Kk({maxWidth:300},e.tagProps),label:function(){return i(`label`)||i(`prefixIcon`)},suffix:e.suffix,suffixIcon:function(){return e.suffixIcon||n.suffixIcon?i(`suffixIcon`):xe()},valueDisplay:function(){return i(`valueDisplay`,{params:e.multiple?{value:p.value,onClose:function(e){var t=p.value.map(function(e){return e.value});fe(t,{trigger:`tag-remove`,index:e,item:t[e]})}}:{value:p.value||G(G({},ne.value,``),re.value,void 0)}})}},Se.value),{suffix:n.suffix,panel:function(){return V(`div`,{class:[`${o.value}-select__dropdown-inner`,`${o.value}-select__dropdown-inner--size-${N.value}`]},[i(`panelTopContent`),xn(V(`p`,{class:[`${o.value}-select-loading-tips`,`${o.value}-select__right-icon-polyfill`]},[a(`loadingText`,{defaultNode:V(`div`,{class:`${o.value}-select__empty`},[s.value.loadingText])})]),[[Na,e.loading&&!j.value]]),be(),i(`panelBottomContent`)])},collapsedItems:n.collapsedItems})}}})),qk={colorModes:{type:Array,default:function(){return[`monochrome`,`linear-gradient`]}},disabled:Boolean,enableAlpha:Boolean,enableMultipleGradient:{type:Boolean,default:!0},format:{type:String,default:`RGB`,validator:function(e){return!e||[`HEX`,`HEX8`,`RGB`,`RGBA`,`HSL`,`HSLA`,`HSV`,`HSVA`,`CMYK`,`CSS`].includes(e)}},recentColors:{type:Array,default:void 0},defaultRecentColors:{type:Array,default:function(){return[]}},selectInputProps:{type:Object},showPrimaryColorPreview:{type:Boolean,default:!0},swatchColors:{type:Array},value:{type:String,default:void 0},modelValue:{type:String,default:void 0},defaultValue:{type:String,default:``},onChange:Function,onPaletteBarChange:Function,onRecentColorsChange:Function},Jk={monochrome:`singleColor`,"linear-gradient":`gradientColor`},oge=`#001F97`,Yk=`linear-gradient(90deg, rgba(241,29,0,1) 0%, rgba(73,106,220,1) 100%);`,sge=`#ECF2FE.#D4E3FC.#BBD3FB.#96BBF8.#699EF5.#4787F0.#266FE8.#0052D9.#0034B5.#001F97.#FDECEE.#F9D7D9.#F8B9BE.#F78D94.#F36D78.#E34D59.#C9353F.#B11F26.#951114.#680506.#FEF3E6.#F9E0C7.#F7C797.#F2995F.#ED7B2F.#D35A21.#BA431B.#9E3610.#842B0B.#5A1907.#E8F8F2.#BCEBDC.#85DBBE.#48C79C.#00A870.#078D5C.#067945.#056334.#044F2A.#033017`.split(`.`),Xk=[`HEX`,`RGB`,`HSL`,`HSV`,`CMYK`,`CSS`],Zk={HEX:`HEX8`,RGB:`RGBA`,HSL:`HSLA`,HSV:`HSVA`},Qk={RGB:[{key:`r`,min:0,max:255,type:`inputNumber`},{key:`g`,min:0,max:255,type:`inputNumber`},{key:`b`,min:0,max:255,type:`inputNumber`}],HSV:[{key:`h`,min:0,max:360,type:`inputNumber`},{key:`s`,min:0,max:100,type:`inputNumber`},{key:`v`,min:0,max:100,type:`inputNumber`}],HSL:[{key:`h`,min:0,max:360,type:`inputNumber`},{key:`s`,min:0,max:100,type:`inputNumber`},{key:`l`,min:0,max:100,type:`inputNumber`}],CMYK:[{key:`c`,min:0,max:255,type:`inputNumber`},{key:`m`,min:0,max:255,type:`inputNumber`},{key:`y`,min:0,max:255,type:`inputNumber`},{key:`k`,min:0,max:255,type:`inputNumber`}],CSS:[{key:`css`,type:`input`,flex:3}],HEX:[{key:`hex`,type:`input`,flex:3}]},cge=function(e,t,n){var r=0,i=0,a=0,o=0,s=parseInt(`${e}`.replace(/\s/g,``),10),c=parseInt(`${t}`.replace(/\s/g,``),10),l=parseInt(`${n}`.replace(/\s/g,``),10);if(s===0&&c===0&&l===0)return o=1,[0,0,0,1];r=1-s/255,i=1-c/255,a=1-l/255;var u=Math.min(r,Math.min(i,a));return r=(r-u)/(1-u),i=(i-u)/(1-u),a=(a-u)/(1-u),o=u,[r,i,a,o]},lge=function(e,t,n,r){var i=e/100,a=t/100,o=n/100,s=r/100;i=i*(1-s)+s,a=a*(1-s)+s,o=o*(1-s)+s;var c=1-i,l=1-a,u=1-o;return c=Math.round(255*c),l=Math.round(255*l),u=Math.round(255*u),{r:c,g:l,b:u}},uge=/cmyk\((\d+%?),(\d+%?),(\d+%?),(\d+%?)\)/,$k=function(e){return Math.max(0,Math.min(255,parseInt(e,10)))},dge=function(e){if(/cmyk/i.test(e)){var t=e.replace(/\s/g,``).match(uge),n=lge($k(t[1]),$k(t[2]),$k(t[3]),$k(t[4]));return`rgb(${n.r}, ${n.g}, ${n.b})`}return e},eA=function(e,t){for(var n=``,r=0;r<e.length;r++)Rd(e[r])?n+=e[r]:n+=e[r].source;return new RegExp(n,t)},fge=function(){var e=`gi`,t=/(?:[+-]?\d*\.?\d+)(?:deg|grad|rad|turn)/,n=/to\s+((?:(?:left|right|top|bottom)(?:\s+(?:top|bottom|left|right))?))/,r=/\s*,\s*/,i=/#(?:[a-f0-9]{6}|[a-f0-9]{3})/,a=/\(\s*(?:\d{1,3}\s*,\s*){2}\d{1,3}\s*\)/,o=/\(\s*(?:\d{1,3}\s*,\s*){2}\d{1,3}\s*,\s*\d*\.?\d+\)/,s=/(?:[+-]?\d*\.?\d+)(?:%|[a-z]+)?/,c=eA([`(?:`,i,`|`,`(?:rgb|hsl)`,a,`|`,`(?:rgba|hsla)`,o,`|`,/[_a-z-][_a-z0-9-]*/,`)`],``),l=eA([c,`(?:\\s+`,s,`(?:\\s+`,s,`)?)?`],``),u=eA([`(?:`,l,r,`)*`,l],``);return{gradientSearch:eA([`(?:(`,eA([`(?:(`,t,`)|`,n,`)`],``),`)`,r,`)?(`,u,`)`],e),colorStopSearch:eA([`\\s*(`,c,`)`,`(?:\\s+`,`(`,s,`))?`,`(?:`,r,`\\s*)?`],e)}},pge=function(e,t){var n,r,i;e.gradientSearch.lastIndex=0;var a=e.gradientSearch.exec(t);if(!of(a))for(n={original:a[0],colorStopList:[]},a[1]&&(n.line=a[1]),a[2]&&(n.angle=a[2]),a[3]&&(n.sideCorner=a[3]),e.colorStopSearch.lastIndex=0,r=e.colorStopSearch.exec(a[4]);!of(r);)i={color:r[1]},r[2]&&(i.position=r[2]),n.colorStopList.push(i),r=e.colorStopSearch.exec(a[4]);return n},mge=fge(),tA=/.*gradient\s*\(((?:\([^)]*\)|[^)(]*)*)\)/gim,nA=function(e){return tA.lastIndex=0,tA.exec(e)},hge={top:0,right:90,bottom:180,left:270,"top left":315,"left top":315,"top right":45,"right top":45,"bottom left":225,"left bottom":225,"bottom right":135,"right bottom":135},rA=function(e){var t=nA(e);if(!t)return!1;var n={points:[],degree:0},r=pge(mge,t[1]);if(r.original.trim()!==t[1].trim())return!1;n.points=r.colorStopList.map(function(e,t,n){var r=e.color,i=e.position,a=Object.create(null);a.color=mC(r).toRgbString();var o=parseFloat(i);return Number.isNaN(o)&&(o=t/(n.length-1)*100),a.left=o,a});var i=parseInt(r.angle,10);return Number.isNaN(i)&&(i=hge[r.sideCorner]||180),n.degree=i,n},iA;function aA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?aA(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var sA=Math.round,cA=function(e){return mC(e).toRgb()},gge=function(e){return mC(e).toHsv()},_ge=function(e){return mC(e).toHsl()},lA=function(e){var t=e.points;return`linear-gradient(${e.degree}deg,${t.sort(function(e,t){return e.left-t.left}).map(function(e){return`${e.color} ${Math.round(e.left*100)/100}%`}).join(`,`)})`},vge=function(){return(1+Math.random()*4294967295).toString(16)},uA=function(e,t,n){return{id:n||vge(),left:e,color:t}},dA=function(){function e(t){Xp(this,e),G(this,`states`,{s:100,v:100,h:100,a:1}),G(this,`originColor`,void 0),G(this,`isGradient`,void 0),G(this,`gradientStates`,{colors:[],degree:0,selectedId:null,css:``}),this.update(t)}return Yp(e,[{key:`update`,value:function(e){var t=this;if(e!==this.originColor){var n=rA(e);if(this.isGradient&&!n){var r=mC(e).toHsv();this.states=r,this.updateCurrentGradientColor();return}this.originColor=e,this.isGradient=!1;var i=e;if(n){this.isGradient=!0;var a=n,o=a.points.map(function(e,n){return uA(e.left,e.color,t.gradientStates.colors[n]?.id)});this.gradientStates={colors:o,degree:a.degree,selectedId:this.gradientStates.selectedId||o[0]?.id||null},this.gradientStates.css=this.linearGradient,i=this.gradientSelectedPoint?.color}this.updateStates(i)}}},{key:`saturation`,get:function(){return this.states.s},set:function(e){this.states.s=Math.max(0,Math.min(100,e)),this.updateCurrentGradientColor()}},{key:`value`,get:function(){return this.states.v},set:function(e){this.states.v=Math.max(0,Math.min(100,e)),this.updateCurrentGradientColor()}},{key:`hue`,get:function(){return this.states.h},set:function(e){this.states.h=Math.max(0,Math.min(360,e)),this.updateCurrentGradientColor()}},{key:`alpha`,get:function(){return this.states.a},set:function(e){this.states.a=Math.max(0,Math.min(1,Math.round(e*100)/100)),this.updateCurrentGradientColor()}},{key:`rgb`,get:function(){var e=cA(this.states),t=e.r,n=e.g,r=e.b;return`rgb(${sA(t)}, ${sA(n)}, ${sA(r)})`}},{key:`rgba`,get:function(){var e=cA(this.states),t=e.r,n=e.g,r=e.b,i=e.a;return`rgba(${sA(t)}, ${sA(n)}, ${sA(r)}, ${i})`}},{key:`hsv`,get:function(){var e=this.getHsva();return`hsv(${e.h}, ${e.s}%, ${e.v}%)`}},{key:`hsva`,get:function(){var e=this.getHsva();return`hsva(${e.h}, ${e.s}%, ${e.v}%, ${e.a})`}},{key:`hsl`,get:function(){var e=this.getHsla();return`hsl(${e.h}, ${e.s}%, ${e.l}%)`}},{key:`hsla`,get:function(){var e=this.getHsla();return`hsla(${e.h}, ${e.s}%, ${e.l}%, ${e.a})`}},{key:`hex`,get:function(){return mC(this.states).toHexString()}},{key:`hex8`,get:function(){return mC(this.states).toHex8String()}},{key:`cmyk`,get:function(){var e=this.getCmyk();return`cmyk(${e.c}, ${e.m}, ${e.y}, ${e.k})`}},{key:`css`,get:function(){return this.isGradient?this.linearGradient:this.rgba}},{key:`linearGradient`,get:function(){var e=this.gradientColors,t=this.gradientDegree;return lA({points:e,degree:t})}},{key:`gradientColors`,get:function(){return this.gradientStates.colors},set:function(e){this.gradientStates.colors=e,this.gradientStates.css=this.linearGradient}},{key:`gradientSelectedId`,get:function(){return this.gradientStates.selectedId},set:function(e){e!==this.gradientSelectedId&&(this.gradientStates.selectedId=e,this.updateStates(this.gradientSelectedPoint?.color))}},{key:`gradientDegree`,get:function(){return this.gradientStates.degree},set:function(e){this.gradientStates.degree=Math.max(0,Math.min(360,e)),this.gradientStates.css=this.linearGradient}},{key:`gradientSelectedPoint`,get:function(){var e=this.gradientColors,t=this.gradientSelectedId;return e.find(function(e){return e.id===t})}},{key:`getFormatsColorMap`,value:function(){return{HEX:this.hex,CMYK:this.cmyk,RGB:this.rgb,RGBA:this.rgba,HSL:this.hsl,HSLA:this.hsla,HSV:this.hsv,HSVA:this.hsva,CSS:this.css,HEX8:this.hex8}}},{key:`getFormattedColor`,value:function(e,t){if(this.isGradient)return this.linearGradient;var n=t&&e in Zk?Zk[e]:e;return this.getFormatsColorMap()[n]}},{key:`updateCurrentGradientColor`,value:function(){var e=this.isGradient,t=this.gradientColors,n=this.gradientSelectedId,r=t.length,i=this.gradientSelectedPoint;if(!e||r===0||!i)return!1;var a=t.findIndex(function(e){return e.id===n}),o=oA(oA({},i),{},{color:this.rgba});return t.splice(a,1,o),this.gradientColors=t.slice(),this}},{key:`updateStates`,value:function(e){var t=mC(dge(e)).toHsv();this.states=t}},{key:`getRgba`,value:function(){var e=cA(this.states),t=e.r,n=e.g,r=e.b,i=e.a;return{r:sA(t),g:sA(n),b:sA(r),a:i}}},{key:`getCmyk`,value:function(){var e=this.getRgba(),t=e.r,n=e.g,r=e.b,i=Y(cge(t,n,r),4),a=i[0],o=i[1],s=i[2],c=i[3];return{c:sA(a*100),m:sA(o*100),y:sA(s*100),k:sA(c*100)}}},{key:`getHsva`,value:function(){var e=gge(this.states),t=e.h,n=e.s,r=e.v,i=e.a;return t=sA(t),n=sA(n*100),r=sA(r*100),i*=1,{h:t,s:n,v:r,a:i}}},{key:`getHsla`,value:function(){var e=_ge(this.states),t=e.h,n=e.s,r=e.l,i=e.a;return t=sA(t),n=sA(n*100),r=sA(r*100),i*=1,{h:t,s:n,l:r,a:i}}},{key:`equals`,value:function(e){return mC.equals(this.rgba,e)}}],[{key:`isValid`,value:function(e){return rA(e)?!0:mC(e).isValid()}},{key:`object2color`,value:function(e,t){return t===`CMYK`?`cmyk(${e.c}, ${e.m}, ${e.y}, ${e.k})`:t===`RGB`||t===`RGBA`?mC(e).toRgbString():t===`HSL`||t===`HSLA`?mC(e).toHslString():t===`HSV`||t===`HSVA`?mC(e).toHsvString():mC(e).toHexString()}}])}();iA=dA,G(dA,`isGradientColor`,function(e){return!!nA(e)}),G(dA,`compare`,function(e,t){var n=iA.isGradientColor(e),r=iA.isGradientColor(t);if(n&&r){var i=rA(e),a=rA(t);return!i||!a?!1:lA(i)===lA(a)}return!n&&!r&&mC.equals(e,t)});var yge=[`alpha`,`css`,`hex`,`hex8`,`hsl`,`hsla`,`hsv`,`hsva`,`rgb`,`rgba`,`saturation`,`value`,`isGradient`],fA=function(e){if(!e)return null;var t=Object.create(null);return yge.forEach(function(n){t[n]=e[n]}),e.isGradient&&(t.linearGradient=e.linearGradient),t};function pA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?pA(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bge(e,t){xge(e,t),t.add(e)}function xge(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function hA(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}var Sge={start:function(e,t){},drag:function(e,t){},end:function(e,t){}},gA=new WeakSet,_A=function(){function e(t,n){Xp(this,e),bge(this,gA),G(this,`dragging`,!1),G(this,`$el`,void 0),G(this,`props`,void 0),G(this,`handles`,void 0),this.$el=t,this.props=mA(mA({},Sge),n),this.handles={start:hA(gA,this,Cge).bind(this),drag:hA(gA,this,wge).bind(this),end:hA(gA,this,Tge).bind(this)},this.$el.addEventListener(`mousedown`,this.handles.start,!1)}return Yp(e,[{key:`destroy`,value:function(){this.$el.removeEventListener(`mousedown`,this.handles.start,!1),window.removeEventListener(`mousemove`,this.handles.drag,!1),window.removeEventListener(`mouseup`,this.handles.end,!1),window.removeEventListener(`contextmenu`,this.handles.end,!1)}}])}();function Cge(e){this.dragging||(window.addEventListener(`mousemove`,this.handles.drag,!1),window.addEventListener(`mouseup`,this.handles.end,!1),window.addEventListener(`contextmenu`,this.handles.end,!1),this.dragging=!0,this.props.start(hA(gA,this,vA).call(this,e),e))}function wge(e){this.dragging&&this.props.drag(hA(gA,this,vA).call(this,e),e)}function Tge(e){var t=this;setTimeout(function(){t.dragging=!1,t.props.end(hA(gA,t,vA).call(t,e),e)},0),window.removeEventListener(`mousemove`,this.handles.drag,!1),window.removeEventListener(`mouseup`,this.handles.end,!1),window.removeEventListener(`contextmenu`,this.handles.end,!1)}function vA(e){var t=this.$el.getBoundingClientRect(),n=e,r=n.clientX-t.left,i=n.clientY-t.top;return{y:Math.min(Math.max(0,i),t.height),x:Math.min(Math.max(0,r),t.width)}}var Ege=function(e,t){return t&&e in Zk&&e in Zk?Zk[e]:e},yA=function(e,t){return t===`encode`?{HSV:e.getHsva(),HSVA:e.getHsva(),HSL:e.getHsla(),HSLA:e.getHsla(),RGB:e.getRgba(),RGBA:e.getRgba(),CMYK:e.getCmyk(),CSS:{css:e.css},HEX:{hex:e.hex},HEX8:{hex:e.hex8}}:e.getFormatsColorMap()},Dge=function(e){return e?Xk.map(function(e){return e in Zk?Zk[e]:e}):Xk},Oge=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:`RGB`,t=arguments.length>1?arguments[1]:void 0,n=t&&Object.keys(Zk).find(function(t){return t in Zk&&Zk[t]===e})||e;if(!Qk[n])return[];var r=W(Qk[n]);return t&&e!==`CMYK`&&r.push({type:`inputNumber`,key:`a`,min:0,max:100,format:function(e){return`${e}%`},flex:1.15}),r},kge=`color-picker`,bA=function(e){var t=Q(kge);return U(function(){return e?`${t.value}-${e}`:t.value})},xA={borderless:Boolean,clearable:Boolean,colorModes:{type:Array,default:function(){return[`monochrome`,`linear-gradient`]}},disabled:{type:Boolean,default:void 0},enableAlpha:Boolean,enableMultipleGradient:{type:Boolean,default:!0},format:{type:String,default:`RGB`,validator:function(e){return!e||[`HEX`,`HEX8`,`RGB`,`RGBA`,`HSL`,`HSLA`,`HSV`,`HSVA`,`CMYK`,`CSS`].includes(e)}},inputProps:{type:Object},popupProps:{type:Object},recentColors:{type:Array,default:void 0},defaultRecentColors:{type:Array,default:function(){return[]}},selectInputProps:{type:Object},showPrimaryColorPreview:{type:Boolean,default:!0},size:{type:String,default:`medium`,validator:function(e){return!e||[`small`,`medium`,`large`].includes(e)}},swatchColors:{type:Array,default:void 0},value:{type:String,default:void 0},modelValue:{type:String,default:void 0},defaultValue:{type:String,default:``},onChange:Function,onClear:Function,onPaletteBarChange:Function,onRecentColorsChange:Function};function SA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function CA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?SA(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Age=z({name:`FormatInputs`,inheritAttrs:!1,props:CA(CA({},xA),{},{color:{type:Object},onInputChange:{type:Function,default:function(){return function(){}}}}),setup:function(e){var t=Dt({}),n=Dt({}),r=function(){var r=e.format,i=e.color;if(i){var a=yA(i,`encode`)[r];a.a=Math.round(i.alpha*100),Object.keys(a).forEach(function(e){t[e]=a[e],n[e]=a[e]})}};r(),R(function(){var t=e.color;return[t.saturation,t.hue,t.value,t.alpha,e.format]},Hf(r,100));var i=function(r,i){if(i!==n[r]){r===`a`?e.color.alpha=i/100:r===`hex`||r===`css`?e.color.update(i):e.color.update(dA.object2color(t,e.format));var a=yA(e.color,`decode`)[e.format];e.onInputChange(a,e.color.alpha,r,i)}};return function(){var n=CA({},e.inputProps||{});return V(`div`,{class:`input-group`},[Oge(e.format,e.enableAlpha).map(function(r){return V(`div`,{class:`input-group__item`,key:r.key,style:{flex:r.flex||1}},[r.type===`input`?V(WS,H(n,{align:`center`,size:`small`,disabled:e.disabled,modelValue:t[r.key],"onUpdate:modelValue":function(e){return t[r.key]=e},maxlength:e.format===`HEX`?9:void 0,title:t[r.key],onBlur:function(e){return i(r.key,e)},onEnter:function(e){return i(r.key,e)}}),null):V(fC,H(n,{align:`center`,size:`small`,disabled:e.disabled,modelValue:t[r.key],"onUpdate:modelValue":function(e){return t[r.key]=e},title:t[r.key],min:r.min,max:r.max,step:1,format:r.format,theme:`normal`,onBlur:function(e){return i(r.key,e)},onEnter:function(e){return i(r.key,e)}}),null)])})])}}});function wA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function TA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?wA(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jge(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var Mge=z({name:`FormatPanel`,inheritAttrs:!1,props:TA(TA({},xA),{},{color:{type:Object},onInputChange:{type:Function,default:function(){return function(){}}}}),setup:function(e){var t=bA(),n=I(e.format);R(function(){return[e.format]},function(){return n.value=e.format});var r=function(e){n.value=e};return function(){var i,a=TA(TA({},e),{},{format:n.value}),o=TA({},e.selectInputProps||{});return V(`div`,{class:`${t.value}__format`},[V(`div`,{class:`${t.value}__format--item`},[V(bw,{size:`small`,class:`${t.value}__format-mode-select`,selectInputProps:TA({},o),popupProps:TA({overlayClassName:`${t.value}__select-options`},o.popupProps),modelValue:n.value,"onUpdate:modelValue":function(e){return n.value=e},onChange:r},jge(i=Dge(e.enableAlpha).map(function(e){return V(xw,{key:e,value:e,label:e,style:{fontSize:`12px`}},null)}))?i:{default:function(){return[i]}})]),V(`div`,{class:`${t.value}__format--item`},[V(Age,a,null)])])}}}),EA={disabled:Boolean,color:{type:Object},onChange:{type:Function,default:function(){return function(){}}}};function DA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function OA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?DA(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var kA=z({name:`ColorSlider`,props:OA(OA({},EA),{},{className:{type:String,default:``},value:{type:Number,default:0},maxValue:{type:Number,default:360},railStyle:{type:Object},type:{type:String,default:`hue`}}),setup:function(e){var t=bA(),n=I(),r=I(null),i=I(null),a=Dt({width:186}),o=U(function(){if(a.width){var t=Math.round(e.value/e.maxValue*100),n=e.type===`hue`?`hsl(${e.color.hue}, 100%, 50%)`:e.color.rgba;return{left:`${t}%`,color:n}}}),s=function(t,n){if(!e.disabled){var r=a.width,i=t.x,o=Math.round(i/r*e.maxValue*100)/100;e.onChange(o,n)}},c=function(t){e.disabled||s(t,!0)};return mr(function(){a.width=n.value.offsetWidth||186,i.value=new _A(n.value,{start:function(){a.width=n.value.offsetWidth},drag:function(e){s(e)},end:c})}),_r(function(){i.value.destroy()}),function(){var i={background:`linear-gradient(90deg, rgba(0,0,0,.0) 0%, rgba(0,0,0,.0) 93%, ${e.color.rgb} 93%, ${e.color.rgb} 100%)`};return V(`div`,{class:[`${t.value}__slider-wrapper`,`${t.value}__slider-wrapper--${e.type}-type`]},[e.type===`alpha`&&V(`div`,{class:`${t.value}__slider-padding`,style:i},null),V(`div`,{class:[`${t.value}__slider`,e.className],ref:n},[V(`div`,{class:`${t.value}__rail`,style:e.railStyle},null),V(`span`,{class:[`${t.value}__thumb`],role:`slider`,tabindex:0,ref:r,style:o.value},null)])])}}}),Nge=z({name:`AlphaSlider`,inheritAttrs:!1,props:{color:{type:Object},disabled:{type:Boolean,default:!1},onChange:{type:Function,default:function(){return function(){}}}},setup:function(e){var t=bA(),n=function(t,n){e.onChange(t/100,n)},r=U(function(){return{background:`linear-gradient(to right, rgba(0, 0, 0, 0), ${e.color.rgb})`}});return function(){return V(kA,{class:[`${t.value}__alpha`,`${t.value}--bg-alpha`],color:e.color,value:e.color.alpha*100,onChange:n,"rail-style":r.value,"max-value":100,disabled:e.disabled,type:`alpha`},null)}}});function AA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?AA(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function MA(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var Pge=z({name:`PanelHeader`,props:jA(jA({},qk),{},{mode:{type:String,default:`color`},onModeChange:{type:Function,default:function(){return function(){}}}}),setup:function(e){var t=Rp(`colorPicker`).globalConfig,n=bA(),r=I(e.mode),i=function(t){return e.onModeChange(t)};return R(function(){return e.mode},function(e){return r.value=e}),function(){var a;return e.colorModes?.length===1?null:V(`div`,{class:`${n.value}__head`},[V(`div`,{class:`${n.value}__mode`},[V(ZO,{variant:`default-filled`,size:`small`,modelValue:r.value,"onUpdate:modelValue":function(e){return r.value=e},onChange:i},MA(a=Object.keys(Jk).map(function(e){var n;return V(QO,{key:e,value:e},MA(n=Reflect.get(t.value,Jk[e]))?n:{default:function(){return[n]}})}))?a:{default:function(){return[a]}})])])}}}),Fge=z({name:`HueSlider`,inheritAttrs:!1,props:EA,setup:function(e){var t=bA();return function(){return V(kA,{class:`${t.value}__hue`,color:e.color,value:e.color.hue,onChange:e.onChange,disabled:e.disabled,type:`hue`},null)}}});function NA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function PA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?NA(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ige=[`delete`,`backspace`],Lge=z({name:`LinearGradient`,inheritAttrs:!1,props:PA(PA({},EA),{},{enableMultipleGradient:{type:Boolean,default:!0}}),setup:function(e){var t=bA(),n=ym().STATUS.value,r=I(null),i=Dt({left:0,width:176}),a=I(!1),o=I(!1),s=I(e.color.gradientDegree),c=I(e.color.gradientSelectedId),l=I(iu(e.color.gradientColors));R(function(){return e.color.gradientDegree},function(e){return s.value=e}),R(function(){return e.color.gradientSelectedId},function(e){return c.value=e}),R(function(){return e.color.gradientColors},function(e){l.value=iu(e)},{deep:!0});var u=function(t,n,r){e.disabled||e.onChange({key:t,payload:n,addUsedColor:r})},d=function(t){e.disabled||t===e.color.gradientDegree||(s.value=t,u(`degree`,t,!0))},f=function(t){e.disabled||(c.value=t,u(`selectedId`,t))},p=function(t,n){e.disabled||(l.value=t,u(`colors`,t,n))},m=function(e){var t=l.value.findIndex(function(e){return e.id===c.value});if(t!==-1){var n=l.value[t];e=Math.max(0,Math.min(i.width,e));var r=e/i.width*100;l.value.splice(t,1,{color:n.color,left:r,id:n.id}),p(l.value)}},h=function(t){var n=r.value.getBoundingClientRect();i.left=n.left,i.width=n.width||176,!(a.value||e.disabled)&&(o.value=!1,a.value=!0,f(t),r.value.focus(),window.addEventListener(`mousemove`,g,!1),window.addEventListener(`mouseup`,_,!1),window.addEventListener(`contextmenu`,_,!1))},g=function(t){if(!(!a.value||e.disabled)){var n=t.clientX-i.left;o.value=!0,m(n)}},_=function(){a.value&&(setTimeout(function(){a.value=!1},0),o.value&&=(p(l.value,!0),!1),window.removeEventListener(`mousemove`,g,!1),window.removeEventListener(`mouseup`,_,!1),window.removeEventListener(`contextmenu`,_,!1))},v=function(t){if(!e.disabled){var n=l.value,r=n.findIndex(function(e){return e.id===c.value}),i=n.length;if(Ige.includes(t.key.toLocaleLowerCase())&&i>2&&r>=0&&r<=i-1){n.splice(r,1),n[r]||(r=n[r+1]?r+1:n[r-1]?r-1:0);var a=n[r];p(n,!0),f(a?.id)}}},y=function(t){if(!(e.disabled||!e.enableMultipleGradient)){var n=uA(t.offsetX/i.width*100,e.color.rgba);l.value.push(n),p(l.value,!0),f(n.id)}};return mr(function(){var e=r.value.getBoundingClientRect();i.left=e.left,i.width=e.width||176}),_r(function(){window.removeEventListener(`mousemove`,g,!1),window.removeEventListener(`mouseup`,_,!1),window.removeEventListener(`contextmenu`,_,!1)}),function(){var i=e.color,a=i.linearGradient,o=i.gradientColors,u=lA({points:o,degree:90});return V(`div`,{class:`${t.value}__gradient`},[V(`div`,{class:`${t.value}__gradient-slider`},[V(`div`,{class:[`${t.value}__slider`,`${t.value}--bg-alpha`],onKeyup:v,tabindex:0,ref:r},[V(`ul`,{class:`gradient-thumbs`,onClick:y,style:{background:u}},[l.value.map(function(e){var r=`${Math.round(e.left*100)/100}%`;return V(`li`,{class:[`${t.value}__thumb`,`gradient-thumbs__item`,c.value===e.id?n.active:``],key:e.id,title:`${e.color} ${r}`,style:{color:e.color,left:r},onClick:function(e){return e.stopPropagation()},onMousedown:function(){return h(e.id)}},[V(`span`,{class:[`gradient-thumbs__item-inner`,`${t.value}--bg-alpha`]},null)])})])])]),V(`div`,{class:`${t.value}__gradient-degree`,title:`${s.value}deg`},[V(fC,{size:`small`,theme:`normal`,min:0,max:360,step:1,format:function(e){return`${e}°`},modelValue:s.value,"onUpdate:modelValue":function(e){return s.value=e},onBlur:d,onEnter:d,disabled:e.disabled},null)]),V(`div`,{class:[`${t.value}__gradient-preview`,`${t.value}--bg-alpha`]},[V(`span`,{class:`preview-inner`,style:{background:a}},null)])])}}}),Rge=z({name:`SaturationPanel`,props:EA,setup:function(e){var t=bA(),n=I(),r=I(null),i=I(null),a=Dt({width:230,height:168}),o=U(function(){var t=e.color,n=t.saturation,r=t.value,i=a.width,o=a.height,s=Math.round((1-r)*o),c=Math.round(n*i);return{color:e.color.rgb,left:`${c}px`,top:`${s}px`}}),s=function(e){var t=a.width,n=a.height,r=e.x,i=e.y;return{saturation:Math.round(r/t*100),value:Math.round((1-i/n)*100)}},c=function(t,n){if(!e.disabled){var r=s(t),i=r.saturation,a=r.value;e.onChange({saturation:i/100,value:a/100,addUsedColor:n})}},l=function(t){e.disabled||dn(function(){c(t,!0)})},u=U(function(){return`hsl(${e.color.hue}, 100%, 50%)`});return mr(function(){a.width=n.value.offsetWidth||230,a.height=n.value.offsetHeight||168,i.value=new _A(n.value,{start:function(){a.width=n.value.offsetWidth,a.height=n.value.offsetHeight},drag:function(e){c(e)},end:l})}),_r(function(){i.value.destroy()}),function(){return V(`div`,{class:[`${t.value}__saturation`],ref:n,style:{background:u.value}},[V(`span`,{class:[`${t.value}__thumb`],role:`slider`,tabindex:0,ref:r,style:o.value},null)])}}});function FA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function IA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?FA(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var LA=z({name:`SwatchesPanel`,props:IA(IA({},EA),{},{colors:{type:Array,default:function(){return[]}},title:{type:String,default:`系统色彩`},editable:{type:Boolean,default:!1},onSetColor:{type:Function,default:function(){return function(){}}},handleAddColor:{type:Function,default:function(){return function(){}}}}),setup:function(e){var t=bA(),n=Tm({DeleteIcon:Vg,AddIcon:Th}),r=n.DeleteIcon,i=n.AddIcon,a=ym().STATUS.value,o=I(!1),s=function(e){o.value=e},c=function(t){return e.onSetColor(t)},l=function(t){return dA.compare(t,e.color.css)},u=U(function(){return e.colors.findIndex(function(e){return l(e)})}),d=function(){var t=e.colors,n=u.value;n!==-1&&(t.splice(n,1),e.onChange(t),s(!1))};return function(){var n=`${t.value}__swatches`;return V(`div`,{class:n},[V(`h3`,{class:`${n}--title`},[V(`span`,null,[e.title]),function(){return e.editable?V(`div`,{class:`${n}--actions`},[V(`span`,{role:`button`,class:`${t.value}__icon`,onClick:function(){return e.handleAddColor()}},[V(i,null,null)]),e.colors.length>0?V(`span`,{role:`button`,class:`${t.value}__icon`,onClick:function(){return d()}},[V(r,null,null)]):null]):null}()]),V(`ul`,{class:[`${n}--items`,`narrow-scrollbar`]},[e.colors.map(function(r){return V(`li`,{class:[`${n}--item`,l(r)&&e.editable?a.active:``],title:r,key:r,onClick:function(){e.disabled||c(r)}},[V(`div`,{class:[`${n}--color`,`${t.value}--bg-alpha`]},[V(`span`,{class:`${n}--inner`,style:{background:r}},null)])])})])])}}});function RA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zge(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?RA(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var zA=z({name:`ColorPanel`,props:zge({},qk),setup:function(e){var t=bA(),n=ym().STATUS,r=Rp(`colorPicker`),i=r.t,a=r.globalConfig,o=n.value,s=Wt(e),c=s.value,l=s.modelValue,u=s.recentColors,d=Y(Rm(c,l,e.defaultValue,e.onChange),2),f=d[0],p=d[1],m=Y(bm(u,e.defaultRecentColors,e.onRecentColorsChange,`recentColors`),2),h=m[0],g=m[1],_=function(t){return e.colorModes.length===1?e.colorModes[0]:e.colorModes.includes(`linear-gradient`)&&dA.isGradientColor(t)?`linear-gradient`:`monochrome`},v=I(_(f.value)),y=U(function(){return v.value===`linear-gradient`}),b=U(function(){return y.value?Yk:oge}),x=I(new dA(f.value||b.value)),S=I(Ege(e.format,e.enableAlpha)),C=function(){if(!(h.value===null||h.value===!1)){var e=iu(h.value)||[],t=x.value.isGradient?x.value.linearGradient:x.value.rgba,n=e.indexOf(t);n>-1&&e.splice(n,1),e.unshift(t),e.length>100&&(e.length=100),w(e)}},w=function(e){g(e)},T=function(t){p(x.value.getFormattedColor(e.format,e.enableAlpha),{color:fA(x.value),trigger:t||`palette-saturation-brightness`})};R(function(){return f.value},function(t){var n=_(t);v.value=n,x.value.isGradient=n===`linear-gradient`,x.value.getFormattedColor(e.format,e.enableAlpha)!==t&&x.value.update(t)});var E=function(e){v.value=e;var t=e===`linear-gradient`;x.value.isGradient=t,t?x.value.update(x.value.gradientColors.length>0?x.value.linearGradient:Yk):x.value.update(x.value.rgba),T()},D=function(e){var t=e.saturation,n=e.value,r=x.value,i=r.saturation,a=r.value,o=`palette-saturation-brightness`;if(n!==a&&t!==i)x.value.saturation=t,x.value.value=n,o=`palette-saturation-brightness`;else if(t!==i)x.value.saturation=t,o=`palette-saturation`;else if(n!==a)x.value.value=n,o=`palette-brightness`;else return;T(o)},O=function(t){var n;x.value.hue=t,T(`palette-hue-bar`),(n=e.onPaletteBarChange)==null||n.call(e,{color:fA(x.value)})},k=function(e){x.value.alpha=e,T(`palette-alpha-bar`)},A=function(e,t){x.value.update(e),x.value.alpha=t,T(`input`)},j=function(e){var t=e.key,n=e.payload,r=`palette-saturation-brightness`;switch(t){case`degree`:x.value.gradientDegree=n,r=`input`;break;case`selectedId`:x.value.gradientSelectedId=n;break;case`colors`:x.value.gradientColors=n;break}T(r)},M=function(e,t){var n=_(e);v.value=n,x.value.isGradient=n===`linear-gradient`,x.value.update(e),T(t)};return function(){var n={color:x.value,disabled:e.disabled},r=e.colorModes.length===1&&e.colorModes.includes(`linear-gradient`),s=h.value;r&&Array.isArray(s)&&(s=s.filter(function(e){return dA.isGradientColor(e)}));var c=!!Array.isArray(s),l=e.swatchColors;sf(l)&&(l=W(sge)),of(l)&&(l=[]),r&&(l=l.filter(function(e){return dA.isGradientColor(e)}));var u=Array.isArray(l)&&l.length;return V(`div`,{class:[`${t.value}__panel`,e.disabled?o.disabled:!1]},[V(Pge,H(e,{mode:v.value,onModeChange:E}),null),V(`div`,{class:[`${t.value}__body`]},[y.value?V(Lge,H(n,{onChange:j,enableMultipleGradient:e.enableMultipleGradient}),null):null,V(Rge,H(n,{onChange:D}),null),V(`div`,{class:[`${t.value}__sliders-wrapper`]},[V(`div`,{class:[`${t.value}__sliders`]},[V(Fge,H(n,{onChange:O}),null),e.enableAlpha?V(Nge,H(n,{onChange:k}),null):null]),e.showPrimaryColorPreview?V(`div`,{class:[`${t.value}__sliders-preview`,`${t.value}--bg-alpha`]},[V(`span`,{class:`${t.value}__sliders-preview-inner`,style:{background:y.value?x.value.linearGradient:x.value.rgba}},null)]):null]),V(Mge,H(e,{color:x.value,format:S.value,onInputChange:A}),null),function(){return!u&&!c?null:V(bi,null,[V(`div`,{class:`${t.value}__swatches-wrap`},[c?V(LA,H(n,{title:i(a.value.recentColorTitle),editable:!0,colors:s,handleAddColor:C,onSetColor:function(e){return M(e,`recent`)},onChange:w}),null):null,u?V(LA,H(n,{title:i(a.value.swatchColorTitle),colors:l,onSetColor:function(e){return M(e,`preset`)}}),null):null])])}()])])}}});function BA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function VA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?BA(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Bge=z({name:`TColorPickerPanel`,inheritAttrs:!1,props:qk,setup:function(e,t){var n=t.attrs,r=U(function(){return Tf(VA(VA({},e),n),function(e){return e!==void 0})}),i=Q();return function(){return V(zA,H(r.value,{class:`${i.value}-is-inline`}),null)}}}),Vge=z({name:`DefaultTrigger`,inheritAttrs:!1,props:{color:{type:String,default:``},disabled:{type:Boolean,default:!1},borderless:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},inputProps:{type:Object,default:function(){return{autoWidth:!0}}},onTriggerChange:{type:Function,default:function(){return function(){}}},onTriggerClear:{type:Function,default:function(){return function(){}}},size:{type:String,default:`medium`}},setup:function(e){var t=bA(),n=I(e.color),r=ym().SIZE;R(function(){return[e.color]},function(){return n.value=e.color});var i=function(t){t!==e.color&&e.onTriggerChange(n.value,{color:fA(new dA(t)),trigger:`input`})},a=Jm(e.inputProps,{onBlur:i,onChange:i,onClear:function(t){return e.onTriggerClear?.call(e,t)}});return function(){return V(WS,H({borderless:e.borderless,clearable:e.clearable,size:e.size,modelValue:n.value,"onUpdate:modelValue":function(e){return n.value=e},disabled:e.disabled},a.value),{label:function(){return V(`div`,{class:[`${t.value}__trigger--default__color`,`${t.value}--bg-alpha`]},[V(`span`,{class:[`color-inner`,G({},r.value[e.size],e.size!==`medium`)],style:{background:n.value}},null)])}})}}});function HA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function UA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?HA(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Hge=z({name:`TColorPicker`,props:xA,setup:function(e){var t=bA(),n=mm(),r=Wt(e),i=r.value,a=r.modelValue,o=r.recentColors,s=Y(Rm(i,a,e.defaultValue,e.onChange),2),c=s[0],l=s[1],u=Y(bm(o,e.defaultRecentColors,e.onRecentColorsChange,`recentColors`),2),d=u[0],f=u[1],p=I(),m=function(t){return e.onClear?.call(e,t)},h=function(){return e.disabled?null:V(zA,H(UA(UA({},e),{},{onChange:l,onRecentColorsChange:f}),{value:c.value,recentColors:d.value}),null)};return function(){return V(zx,H(UA({placement:`bottom-left`,trigger:`click`,overlayClassName:[t.value]},e.popupProps||{}),{content:h}),{default:function(){return[V(`div`,{class:`${t.value}__trigger`,ref:p},[n(`default`,V(Vge,{borderless:e.borderless,color:c.value,disabled:e.disabled,clearable:e.clearable,"input-props":e.inputProps,onTriggerChange:l,onTriggerClear:m,size:e.size},null))])]}})}}}),Uge=X(Bge),Wge=X(Hge),Gge={alt:{type:String,default:``},content:{type:[String,Function]},default:{type:[String,Function]},hideOnLoadFailed:Boolean,icon:{type:Function},image:{type:String,default:``},imageProps:{type:Object},shape:{type:String,default:`circle`,validator:function(e){return!e||[`circle`,`round`].includes(e)}},size:{type:String,default:``},onError:Function},Kge={alt:{type:String,default:``},error:{type:[String,Function]},fallback:{type:String,default:``},fit:{type:String,default:`fill`,validator:function(e){return!e||[`contain`,`cover`,`fill`,`none`,`scale-down`].includes(e)}},gallery:Boolean,lazy:Boolean,loading:{type:[String,Function]},overlayContent:{type:[String,Function]},overlayTrigger:{type:String,default:`always`,validator:function(e){return!e||[`always`,`hover`].includes(e)}},placeholder:{type:[String,Function]},position:{type:String,default:`center`},referrerpolicy:{type:String,default:`strict-origin-when-cross-origin`,validator:function(e){return!e||[`no-referrer`,`no-referrer-when-downgrade`,`origin`,`origin-when-cross-origin`,`same-origin`,`strict-origin`,`strict-origin-when-cross-origin`,`unsafe-url`].includes(e)}},shape:{type:String,default:`square`,validator:function(e){return!e||[`circle`,`round`,`square`].includes(e)}},src:{type:[String,Object]},srcset:{type:Object},onError:Function,onLoad:Function};function WA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function GA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?WA(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var KA=X(z({name:`TImage`,props:GA(GA({},Kge),{},{onClick:Function}),setup:function(e){var t=I(),n=I(),r=null,i=Wt(e).src,a=pm();mr(function(){var i;(i=n.value)!=null&&i.complete&&!e.lazy&&h(),!(!e.lazy||!t.value)&&(r=zp(t.value,null,f,0))}),vr(function(){t.value&&r&&r.unobserve(t.value)});var o=Rp(`image`),s=o.classPrefix,c=o.globalConfig,l=I(i.value);R([i,c],function(t){var n=Y(t,2),r=n[0],i=(n[1]||{}).replaceImageSrc,a=q(i)?i(e):r;a===l.value&&l.value||(l.value=a)},{immediate:!0});var u=Em(l).previewUrl;R([u],function(){g.value=!1,p.value=!1});var d=I(!e.lazy),f=function(){d.value=!0},p=I(!1),m=function(t){var n;p.value=!0,(n=e.onLoad)==null||n.call(e,{e:t})},h=function(){var e=new Event(`load`);Object.defineProperty(e,"target",{value:n.value,enumerable:!0}),m(e)},g=I(!1),_=function(t){var n;g.value=!0,(n=e.onError)==null||n.call(e,{e:t}),e.fallback&&(l.value=e.fallback,g.value=!1)},v=U(function(){return e.overlayTrigger===`hover`}),y=U(function(){return[`${s.value}-image`,`${s.value}-image--fit-${e.fit}`,`${s.value}-image--position-${e.position}`]}),b=I(!v.value),x=function(){v.value&&(b.value=!b.value)},S=function(){var e=a(`placeholder`);return e?V(`div`,{class:`${s.value}-image__placeholder`},[e]):null},C=function(){return e.gallery?V(`div`,{class:`${s.value}-image__gallery-shadow`},null):null},w=function(){var e=D(`overlayContent`);return e?V(`div`,{class:[`${s.value}-image__overlay-content`,!b.value&&`${s.value}-image__overlay-content--hidden`]},[e]):null};function T(){return V(`picture`,null,[Object.entries(e.srcset).map(function(e){var t=Y(e,2),n=t[0],r=t[1];return V(`source`,{type:n,srcset:r},null)}),E()])}function E(){return V(`img`,{ref:n,src:Rd(l.value)?l.value:u.value,onError:_,onLoad:m,class:y.value,alt:e.alt,referrerpolicy:e.referrerpolicy},null)}var D=mm();return function(){return V(`div`,H({ref:t,class:[`${s.value}-image__wrapper`,`${s.value}-image__wrapper--shape-${e.shape}`,e.gallery&&`${s.value}-image__wrapper--gallery`,v.value&&`${s.value}-image__wrapper--need-hover`],onMouseenter:x,onMouseleave:x,onClick:function(t){return e.onClick?.call(e,{e:t})}},Sf(e,[`src`,`alt`,`fit`,`position`,`shape`,`placeholder`,`loading`,`error`,`overlayTrigger`,`overlayContent`,`lazy`,`gallery`,`onLoad`,`onError`,`onClick`])),[S(),C(),(g.value||!d.value)&&V(`div`,{class:`${s.value}-image`},null),!(g.value||!d.value)&&(e.srcset&&Object.keys(e.srcset).length?T():E()),!(g.value||!d.value)&&!p.value&&V(`div`,{class:`${s.value}-image__loading`},[a(`loading`)||V(ty,{direction:`vertical`,size:8,align:`center`},{default:function(){return[V(D_,null,null),Rd(e.loading)?e.loading:c.value.loadingText]}})]),g.value&&V(`div`,{class:`${s.value}-image__error`},[D(`error`,{defaultNode:V(ty,{direction:`vertical`,size:8,align:`center`},{default:function(){return[V(w_,null,null),Rd(e.error)?e.error:c.value.errorText]}})})]),w()])}}}));function qA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function JA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qA(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var YA=z({name:`TAvatar`,props:Gge,setup:function(e){var t=Q(`avatar`),n=hm(),r=pm(),i=ym().SIZE,a=wn(`avatarGroup`,void 0),o=I(null),s=I(null),c=I(!0),l=I(4),u=I(``),d=U(function(){return e.size||a?.size}),f=U(function(){return d.value&&!i.value[d.value]}),p=U(function(){return f.value?{width:d.value,height:d.value,"font-size":`${Number.parseInt(d.value,10)/2}px`}:{}}),m=U(function(){return f.value?{height:d.value,width:d.value}:{}}),h=U(function(){return{transform:u.value}}),g=function(t){var n,r=t.e;c.value=!e.hideOnLoadFailed,(n=e.onError)==null||n.call(e,{e:r})},_=function(){var e=o.value,t=s.value,n=e?.offsetWidth,r=t?.offsetWidth;l.value*2<n&&(u.value=r>n-l.value*2?`scale(${(n-l.value*2)/r})`:`scale(1)`)};return mr(function(){dn(function(){_()})}),gr(function(){dn(function(){_()})}),R(function(){return e.image},function(e){e&&(c.value=!0)}),function(){var a=n(`default`,`content`),l=r(`icon`),u=l&&!a,f=e.shape,_=e.image,v=e.alt,y=[`${t.value}`,i.value[d.value],G(G(G({},`${t.value}--circle`,f===`circle`),`${t.value}--round`,f===`round`),`${t.value}__icon`,!!u)];return a=V(`span`,{ref:s,style:JA({},h.value)},[a]),l&&(a=[l,u?``:a]),_&&c.value&&(a=V(KA,H({style:JA({},m.value),src:_,alt:v,error:``,loading:``,onError:g},e.imageProps),null)),V(`div`,{ref:o,class:y,style:JA({},p.value)},[a])}}}),qge={cascading:{type:String,default:`right-up`,validator:function(e){return!e||[`left-up`,`right-up`].includes(e)}},collapseAvatar:{type:[String,Function]},max:{type:Number},popupProps:{type:Object},size:{type:String,default:``}};function Jge(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var Yge=z({name:`TAvatarGroup`,props:qge,setup:function(e){Cn(`avatarGroup`,e);var t=pm(),n=Q(`avatar`),r=Q(`avatar-group`),i=function(t){if(t?.length>e.max){var r=a(t),i=t.slice(0,e.max);return i.push(V(YA,{class:`${n.value}__collapse`,size:e.size},Jge(r)?r:{default:function(){return[r]}})),i}return t},a=function(n){return t(`collapseAvatar`)||`+${n.length-e.max}`};return function(){var a=t(`default`),o=e.cascading,s=e.max,c=[`${r.value}`,G(G({},`${n.value}--offset-right`,o===`right-up`),`${n.value}--offset-left`,o===`left-up`)],l=s&&s>=0?[i(Tp(a))]:[a];return V(`div`,{class:c},[l])}}}),Xge=X(YA),Zge=X(Yge),Qge=X(z({name:`TBadge`,inheritAttrs:!1,props:{color:{type:String,default:``},content:{type:[String,Function]},count:{type:[String,Number,Function],default:0},default:{type:[String,Function]},dot:Boolean,maxCount:{type:Number,default:99},offset:{type:Array},shape:{type:String,default:`circle`,validator:function(e){return[`circle`,`round`].includes(e)}},showZero:Boolean,size:{type:String,default:`medium`,validator:function(e){return[`small`,`medium`].includes(e)}}},setup:function(e,t){var n=t.attrs,r=hm(),i=pm(),a=U(function(){var t=i(`count`);return Number.isNaN(Number(t))?t:(t=Number(e.count),t>e.maxCount?`${e.maxCount}+`:t)}),o=function(){if(!e.offset)return{};var t=Y(e.offset,2),n=t[0],r=t[1];return n=Number.isNaN(Number(n))?n:`${n}px`,r=Number.isNaN(Number(r))?r:`${r}px`,{xOffset:n,yOffset:r}},s=Q(),c=Q(`badge`),l=U(function(){return!e.showZero&&(a.value===0||a.value===`0`)}),u=U(function(){return[G(G(G(G({},`${c.value}--dot`,!!e.dot),`${c.value}--circle`,!e.dot&&e.shape===`circle`),`${c.value}--round`,!e.dot&&e.shape===`round`),`${s.value}-size-s`,e.size===`small`)]}),d=U(function(){var t=o(),n=t.xOffset,r=t.yOffset;return{background:e.color,right:n,top:r}});return function(){return V(`div`,H({class:c.value},n),[r(`default`,`content`),l.value?null:V(`sup`,{class:u.value,style:d.value},[e.dot?null:a.value])])}}})),$ge={cell:{type:[String,Function]},cellAppend:{type:[String,Function]},controllerConfig:{type:[Boolean,Object],default:void 0},fillWithZero:{type:Boolean,default:void 0},firstDayOfWeek:{type:Number,validator:function(e){return!e||[1,2,3,4,5,6,7].includes(e)}},format:{type:String,default:`YYYY-MM-DD`},head:{type:[String,Function]},isShowWeekendDefault:{type:Boolean,default:!0},mode:{type:String,default:`month`,validator:function(e){return!e||[`month`,`year`].includes(e)}},month:{type:[String,Number]},multiple:Boolean,preventCellContextmenu:Boolean,range:{type:Array},theme:{type:String,default:`full`,validator:function(e){return!e||[`full`,`card`].includes(e)}},value:{type:[String,Array,Date]},week:{type:[Array,Function]},year:{type:[String,Number]},onCellClick:Function,onCellDoubleClick:Function,onCellRightClick:Function,onControllerChange:Function,onMonthChange:Function},XA=`calendar`,ZA=1970,QA={1:`一`,2:`二`,3:`三`,4:`四`,5:`五`,6:`六`,7:`日`},$A=function(e){var t=Z(e).day();return t===0&&(t=7),t},e_e=function(e){var t=``,n=e.toString();return n in QA&&(t=QA[n]),t},t_e=function(e,t){var n=0,r=$A(t);return n=r>=e?r-e:7-e+r,n},ej=function(e,t){var n=new Date(e);return n.setDate(n.getDate()+t),n},n_e=function(e,t){for(var n=t.curSelectedYear,r=t.curDate,i=t.curDateList,a=e.format,o=e.multiple,s=[],c=function(e){var t=new Date(n,e-1),c=o?!!i.find(function(t){return t.year()===n&&parseInt(t.format(`M`),10)===e}):r.year()===n&&parseInt(r.format(`M`),10)===e;s.push({mode:`year`,isCurrent:c,date:t,formattedDate:Z(t).format(a),filterDate:null,formattedFilterDate:null,isShowWeekend:!0})},l=1;l<=12;l++)c(l);return s},r_e=function(e,t){for(var n=t.curSelectedYear,r=t.curSelectedMonth,i=t.realFirstDayOfWeek,a=t.curDate,o=t.curDateList,s=e.format,c=e.multiple,l=[],u=Z(`${n}-${r}`).startOf(`month`).toDate(),d=Z(Z(`${n}-${r}`).endOf(`month`).format(`YYYY-MM-DD`)).toDate(),f=d.getDate(),p=t_e(i,u),m=[],h=1,g=function(e,t,n,r){return{mode:`month`,belongTo:e,isCurrent:t,day:$A(n),weekOrder:r,date:n,formattedDate:Z(n).format(s),filterDate:null,formattedFilterDate:null,isShowWeekend:!0}},_=function(e){return c?!!o.find(function(t){return t.isSame(Z(e))}):a.isSame(Z(e))},v=0;v<p;v++){var y=ej(u,v-p);m.push(g(-1,!1,y,h)),m.length===7&&(l.push(m),m=[],h+=1)}for(var b=0;b<f;b++){var x=ej(u,b),S=_(x);m.push(g(0,S,x,h)),m.length===7&&(l.push(m),m=[],h+=1)}if(m.length){for(var C=7-m.length,w=0;w<C;w++){var T=ej(d,w+1);m.push(g(1,!1,T,h))}l.push(m)}return l},tj=function(){return Z(Z().format(`YYYY-MM-DD`))};function i_e(e){var t=Rp(XA).globalConfig,n=Dt({realFirstDayOfWeek:1,curDate:null,curDateList:[],curSelectedYear:null,curSelectedMonth:null,curSelectedMode:null,isShowWeekend:!0,controlSize:`medium`});function r(){var e=tj();n.curDate=e,n.curSelectedYear=e.year(),n.curSelectedMonth=parseInt(e.format(`M`),10)}function i(e){var t=e?parseInt(`${e}`,10):tj().year();!isNaN(t)&&t>0&&(n.curSelectedYear=t)}function a(e){var t=parseInt(e?`${e}`:tj().format(`M`),10);!isNaN(t)&&t>0&&t<=12&&(n.curSelectedMonth=t)}function o(e){K(e)?n.curDate=e&&e.length?Z(e[0]):tj():n.curDate=e?Z(e):tj()}function s(e){K(e)?n.curDateList=e&&e.length?e.map(function(e){return Z(e)}):[tj()]:n.curDateList=e?[Z(e)]:[tj()]}function c(e){var t=!0;return n.isShowWeekend||(t=e!==6&&e!==7),t}return R(function(){return e.firstDayOfWeek},function(){n.realFirstDayOfWeek=e.firstDayOfWeek??t.value.firstDayOfWeek??1},{immediate:!0}),R(function(){return e.value},function(t){e.multiple?s(t):o(t)},{immediate:!0}),R(function(){return e.year},function(e){i(e)},{immediate:!0}),R(function(){return e.month},function(e){a(e)},{immediate:!0}),R(function(){return e.isShowWeekendDefault},function(e){n.isShowWeekend=e},{immediate:!0}),R(function(){return e.mode},function(e){n.curSelectedMode=e},{immediate:!0}),R(function(){return e.theme},function(e){e===`card`&&(n.controlSize=`small`),e===`full`&&(n.controlSize=`medium`)},{immediate:!0}),{state:n,toToday:r,checkDayVisible:c}}function a_e(e,t){var n=Q(XA);return{body:U(function(){return[`${n.value}`,`${n.value}--${e.theme}`]}),panel:U(function(){return[`${n.value}__panel`,`${n.value}__panel--${t.curSelectedMode}`]}),control:U(function(){return[`${n.value}__control`]}),title:U(function(){return[`${n.value}__title`]}),controlSection:U(function(){return[`${n.value}__control-section`]}),controlSectionCell:U(function(){return[`${n.value}__control-section-cell`]}),controlTag:U(function(){return[`${n.value}__control-tag`]}),table:U(function(){return[`${n.value}__table`]}),tableHead:U(function(){return[`${n.value}__table-head`]}),tableHeadRow:U(function(){return[`${n.value}__table-head-row`]}),tableHeadCell:U(function(){return[`${n.value}__table-head-cell`]}),tableBody:U(function(){return[`${n.value}__table-body`]}),tableBodyRow:U(function(){return[`${n.value}__table-body-row`]})}}function o_e(){var e=Q(XA);return{tableBodyCell:U(function(){return[`${e.value}__table-body-cell`]}),tableBodyCell4Now:U(function(){return`${e.value}__table-body-cell--now`}),tableBodyCellDisplay:U(function(){return[`${e.value}__table-body-cell-display`]}),tableBodyCellCsontent:U(function(){return[`${e.value}__table-body-cell-content`]})}}function nj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?nj(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ij=function(){return{visible:arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,disabled:!1,mode:{visible:!0,radioGroupProps:{}},year:{visible:!0,selectProps:{}},month:{visible:!0,selectProps:{}},weekend:{visible:!0,showWeekendButtonProps:{},hideWeekendButtonProps:{}},current:{visible:!0,currentDayButtonProps:{},currentMonthButtonProps:{}}}};function s_e(e,t){var n=Rp(XA).globalConfig,r=U(function(){var n=Z(`${t.curSelectedYear}-${t.curSelectedMonth}`);return{isShowWeekend:t.isShowWeekend,filterDate:n.toDate(),formattedFilterDate:n.format(e.format),mode:t.curSelectedMode}}),i=U(function(){var t=e.controllerConfig??n.value.controllerConfig??!0;return Gd(t)?ij(t):rj(rj({},ij()),t)}),a=U(function(){return!!i.value&&i.value.visible});function o(e){var t=!0,n=i.value;return(!n||!n.visible||n[e]===!1||n[e]&&!n[e].visible)&&(t=!1),t}function s(e,t){var n=!1,r=i.value;return r&&(r.disabled||r[e]&&r[e][t]&&r[e][t].disabled)&&(n=!0),n}function c(){dn(function(){q(e.onControllerChange)&&e.onControllerChange(rj({},r.value))})}return{options:r,configData:i,visible:a,checkControllerVisible:o,checkControllerDisabled:s,emitControllerChange:c}}function c_e(e,t){var n=Rp(XA),r=n.t,i=n.globalConfig,a=U(function(){return e.week||r(i.value.week).split(`,`)});function o(e){var t=a.value;return Do(t)&&t[e-1]?t[e-1]:e_e(e)}return{cellColHeaders:U(function(){for(var e=[],n=1,r=7,i=t.realFirstDayOfWeek;i<=r;i++)e.push({num:i,display:o(i)});if(t.realFirstDayOfWeek>n)for(var a=n;a<t.realFirstDayOfWeek;a++)e.push({num:a,display:o(a)});return e})}}function aj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?aj(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var sj={click:`click`,dblclick:`dblclick`,contextmenu:`rightclick`},cj=z({name:`TCalendarCell`,inheritAttrs:!1,props:{item:{type:Object,default:function(){return null}},fillWithZero:{type:Boolean,default:void 0},theme:{type:String,default:function(){return null}},t:Function,global:Object,cell:[String,Function],cellAppend:[String,Function]},emits:Object.values(sj),setup:function(e,t){var n=t.emit,r=hm(),i=o_e(),a=ym().STATUS,o=U(function(){if(e.item.mode===`month`){var t=e.item.date.getDate();return t<10&&(e.fillWithZero??e.global.fillWithZero??!0)?`0${t}`:t}return e.t(e.global.cellMonth).split(`,`)[e.item.date.getMonth().toString()]}),s=U(function(){return e.theme===`full`}),c=U(function(){return e.item.mode===`month`&&e.item.belongTo!==0}),l=U(function(){var t=e.item,n=t.mode,r=t.date,o=t.formattedDate,s=t.isCurrent,l=new Date,u=n===`year`?l.getMonth()===r.getMonth()&&l.getFullYear()===r.getFullYear():o===Z().format(`YYYY-MM-DD`);return[i.tableBodyCell.value,G(G(G({},a.value.disabled,c.value),a.value.checked,s),i.tableBodyCell4Now.value,u)]}),u=function(e){if(!c.value){var t=sj[e.type];n(t,e)}},d=function(){return V(bi,null,[V(`div`,{class:i.tableBodyCellDisplay.value},[o.value]),V(`div`,{class:i.tableBodyCellCsontent.value},[s.value&&r(`cellAppend`,void 0,{params:oj({},e.item)})])])};return function(){return e.item&&V(`td`,{class:l.value,onClick:u,onDblclick:u,onContextmenu:u},[r(`cell`,void 0,{defaultNode:d(),params:oj({},e.item)})])}}}),l_e=1970,u_e=function(){return Z(Z().format(`YYYY-MM-DD`))},d_e=function(e){var t=function(e){if(e==null)return null;var t=Z(e);return t.isValid()?{parsed:t,original:e}:null};if(!e||e.length<2)return null;var n=Y(e,2),r=n[0],i=n[1],a=t(r),o=t(i);if(!a&&!o)return null;var s=function(e){var t=Z(l_e);return e===`to`&&(t=u_e()),{parsed:t,original:t.format(`YYYY-MM-DD`)}},c=a??s(`from`),l=o??s(`to`);if(c.parsed.isAfter(l.parsed)){var u=[l,c];c=u[0],l=u[1]}return{from:c.original,to:l.original}};function lj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?lj(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f_e(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var p_e=X(z({name:`TCalendar`,props:$ge,setup:function(e,t){var n=t.slots,r=hm(),i=Rp(XA),a=i.t,o=i.globalConfig,s=i_e(e),c=s.state,l=s.toToday,u=s.checkDayVisible,d=a_e(e,c),f=c_e(e,c).cellColHeaders,p=s_e(e,c),m=U(function(){return d_e(e.range)});function h(e,t){var n=!1;if(m.value&&m.value.from&&m.value.to){var r=Z(m.value.from).year(),i=Z(m.value.to).year(),a=parseInt(Z(m.value.from).format(`M`),10),o=parseInt(Z(m.value.to).format(`M`),10);r===i?n=t<a||t>o:e===r?n=t<a:e===i&&(n=t>o)}return n}function g(){var e,t;if((e=m.value)!=null&&e.from&&(t=m.value)!=null&&t.to){var n=Z(m.value.from).year(),r=Z(m.value.to).year(),i=parseInt(Z(m.value.from).format(`M`),10);h(c.curSelectedYear,c.curSelectedMonth)&&(c.curSelectedMonth=c.curSelectedYear===n?i:c.curSelectedYear===r?1:c.curSelectedMonth)}}R(function(){return{year:`${c.curSelectedYear}`,month:`${c.curSelectedMonth}`}},function(t){q(e.onMonthChange)&&e.onMonthChange(uj({},t)),p.emitControllerChange()});var _={yearSelectOptionList:U(function(){var e=[],t=c.curSelectedYear-10,n=c.curSelectedYear+10;m.value&&m.value.from&&m.value.to&&(t=Z(m.value.from).year(),n=Z(m.value.to).year()),t<1970&&(t=ZA),n<1970&&(n=ZA);for(var r=t;r<=n;r++)e.push({value:r,label:a(o.value.yearSelection,{year:r}),disabled:!1});return e}),isYearSelectVisible:U(function(){return p.checkControllerVisible(`year`)}),isYearSelectDisabled:U(function(){return p.checkControllerDisabled(`year`,`selectProps`)}),monthSelectOptionList:U(function(){g();for(var e=[],t=1;t<=12;t++){var n=h(c.curSelectedYear,t);e.push({value:t,label:a(o.value.monthSelection,{month:t}),disabled:n})}return e}),isMonthSelectVisible:U(function(){return c.curSelectedMode===`month`&&p.checkControllerVisible(`month`)}),isMonthSelectDisabled:U(function(){return p.checkControllerDisabled(`month`,`selectProps`)})},v={optionList:U(function(){return[{value:`month`,label:a(o.value.monthRadio)},{value:`year`,label:a(o.value.yearRadio)}]}),isVisible:U(function(){return p.checkControllerVisible(`mode`)}),isDisabled:U(function(){return p.checkControllerDisabled(`mode`,`radioGroupProps`)})},y={text:U(function(){return c.isShowWeekend?a(o.value.hideWeekend):a(o.value.showWeekend)}),vBind:U(function(){var e=p.configData.value.weekend;return c.isShowWeekend?e.hideWeekendButtonProps:e.showWeekendButtonProps}),isVisible:U(function(){return e.theme===`full`&&p.checkControllerVisible(`current`)&&p.checkControllerVisible(`weekend`)}),isDisabled:U(function(){var e=c.isShowWeekend?`hideWeekendButtonProps`:`showWeekendButtonProps`;return p.checkControllerDisabled(`weekend`,e)})},b={text:U(function(){return c.curSelectedMode===`month`?a(o.value.today):a(o.value.thisMonth)}),vBind:U(function(){var e=p.configData.value.current;return c.curSelectedMode===`month`?e.currentDayButtonProps:e.currentMonthButtonProps}),isVisible:U(function(){return e.theme===`full`&&p.checkControllerVisible(`current`)}),isDisabled:U(function(){var e=c.curSelectedMode===`month`?`currentDayButtonProps`:`currentMonthButtonProps`;return p.checkControllerDisabled(`current`,e)})},x=function(){var e;return V(`div`,{class:d.control.value},[V(`div`,{class:d.title.value},[r(`head`,void 0,{params:uj({},p.options.value)})]),V(`div`,{class:d.controlSection.value},[_.isYearSelectVisible.value&&V(`div`,{class:d.controlSectionCell.value},[V(bw,H({modelValue:c.curSelectedYear,"onUpdate:modelValue":function(e){return c.curSelectedYear=e},size:c.controlSize,autoWidth:!0},p.configData.value.year.selectProps,{disabled:_.isYearSelectDisabled.value,options:_.yearSelectOptionList.value}),null)]),_.isMonthSelectVisible.value&&V(`div`,{class:d.controlSectionCell.value},[V(bw,H({autoWidth:!0,modelValue:c.curSelectedMonth,"onUpdate:modelValue":function(e){return c.curSelectedMonth=e},size:c.controlSize},p.configData.value.month.selectProps,{disabled:_.isMonthSelectDisabled.value,options:_.monthSelectOptionList.value}),null)]),v.isVisible.value&&V(`div`,{class:d.controlSectionCell.value,style:`height: auto`},[V(ZO,H({modelValue:c.curSelectedMode,"onUpdate:modelValue":function(e){return c.curSelectedMode=e},variant:`default-filled`,size:c.controlSize},p.configData.value.mode.radioGroupProps,{disabled:v.isDisabled.value,onChange:p.emitControllerChange}),f_e(e=v.optionList.value.map(function(e){return V(QO,{key:e.value,value:e.value},{default:function(){return[e.label]}})}))?e:{default:function(){return[e]}})]),y.isVisible.value&&V(`div`,{class:d.controlSectionCell.value},[V(IC,H({class:d.controlTag.value,size:`large`},y.vBind.value,{disabled:y.isDisabled.value,onClick:function(){c.isShowWeekend=!c.isShowWeekend,p.emitControllerChange()}}),{default:function(){return[y.text.value]}})]),b.isVisible.value&&V(`div`,{class:d.controlSectionCell.value},[V(mh,H({size:c.controlSize},b.vBind.value,{disabled:b.isDisabled.value,onClick:function(){l()}}),{default:function(){return[b.text.value]}})])])])},S=function(t,n,r){if(q(e[t])){var i={cell:uj(uj({},r),p.options.value),e:n};e[t](i)}},C=function(t,n){var r=Z(n.date);e.multiple?c.curDateList.find(function(e){return e.isSame(r)})?c.curDateList=qae(c.curDateList,function(e){return!e.isSame(r)}):c.curDateList.push(r):c.curDate=r,S(`onCellClick`,t,n)},w=function(e,t){S(`onCellDoubleClick`,e,t)},T=function(t,n){e.preventCellContextmenu&&t.preventDefault(),S(`onCellRightClick`,t,n)},E=U(function(){return r_e(e,c)}),D=function(){return V(`table`,{class:d.table.value},[V(`thead`,{class:d.tableHead.value},[V(`tr`,{class:d.tableHeadRow.value},[f.value.map(function(t,n){return u(t.num)&&V(`th`,{class:d.tableHeadCell.value},[K(e.week)?e.week[n]:r(`week`,void 0,{defaultNode:V(`span`,null,[t.display]),params:{day:t.num}})])})])]),V(`tbody`,{class:d.tableBody.value},[E.value.map(function(t,r){return V(`tr`,{class:d.tableBodyRow.value},[t.map(function(t,i){return(c.isShowWeekend||t.day<6)&&V(cj,{key:`d-${r}-${i}`,item:t,theme:e.theme,t:a,global:o.value,cell:e.cell,cellAppend:e.cellAppend,fillWithZero:e.fillWithZero,onClick:function(e){return C(e,t)},onDblclick:function(e){return w(e,t)},onRightclick:function(e){return T(e,t)}},uj({},n))})])})])])},O=U(function(){for(var t=[],n=n_e(e,c),r=Math.ceil(n.length/4),i=0,a=1;a<=r;a++){for(var o=[],s=1;s<=4;s++)o.push(n[i]),i+=1;t.push(o)}return t}),k=function(){return V(`table`,{class:d.table.value},[V(`tbody`,{class:d.tableBody.value},[O.value.map(function(t,r){return V(`tr`,{class:d.tableBodyRow.value},[t.map(function(t,i){return V(cj,{key:`m-${r}-${i}`,item:t,theme:e.theme,t:a,global:o.value,cell:e.cell,cellAppend:e.cellAppend,fillWithZero:e.fillWithZero,onClick:function(e){return C(e,t)},onDblclick:function(e){return w(e,t)},onRightclick:function(e){return T(e,t)}},uj({},n))})])})])])};return function(){return V(`div`,{class:d.body.value},[p.visible.value&&x(),V(`div`,{class:d.panel.value},[c.curSelectedMode===`month`?D():k()])])}}})),m_e=X(z({name:`TCard`,props:{actions:{type:[String,Function]},avatar:{type:[String,Function]},bordered:{type:Boolean,default:!0},bodyClassName:{type:String},bodyStyle:{type:Object},content:{type:[String,Function]},cover:{type:[String,Function]},default:{type:[String,Function]},description:{type:[String,Function]},footer:{type:[String,Function]},footerClassName:{type:String},footerStyle:{type:Object},header:{type:[String,Function]},headerClassName:{type:String},headerStyle:{type:Object},headerBordered:Boolean,hoverShadow:Boolean,loading:{type:[Boolean,Function],default:!1},loadingProps:{type:Object},shadow:Boolean,size:{type:String,default:`medium`,validator:function(e){return!e||[`medium`,`small`].includes(e)}},status:{type:String,default:``},subtitle:{type:[String,Function]},theme:{type:String,default:`normal`,validator:function(e){return!e||[`normal`,`poster1`,`poster2`].includes(e)}},title:{type:[String,Function]}},setup:function(e,t){var n=t.slots,r=pm(),i=Q(`card`),a=ym().SIZE,o=U(function(){var t=[i.value];return e.size===`small`&&t.push(`${a.value[e.size]}`),e.bordered&&t.push(`${i.value}--bordered`),e.shadow&&t.push(`${i.value}--shadow`),e.hoverShadow&&t.push(`${i.value}--shadow-hover`),t}),s=U(function(){return[`${i.value}__header`,e.headerBordered&&`${i.value}__title--bordered`]}),c=Q(`card__header-wrapper`),l=Q(`card__avatar`),u=Q(`card__title`),d=Q(`card__subtitle`),f=Q(`card__description`),p=Q(`card__actions`),m=Q(`card__body`),h=Q(`card__cover`),g=Q(`card__footer`),_=Q(`card__footer-wrapper`),v=U(function(){return e.theme===`poster2`}),y=U(function(){return e.title||n.title}),b=U(function(){return e.header||n.header}),x=U(function(){return e.subtitle||n.subtitle}),S=U(function(){return e.avatar||n.avatar}),C=U(function(){return e.description||n.description}),w=U(function(){return e.status||n.status}),T=U(function(){return e.actions||n.actions}),E=U(function(){return e.footer||n.footer}),D=U(function(){return e.cover||n.cover}),O=U(function(){return e.loading||n.loading}),k=U(function(){return e.content||n.content||e.default||n.default}),A=U(function(){return b.value||y.value||x.value||C.value||S.value||w.value&&v.value||T.value&&!v.value}),j=U(function(){return E.value||T.value&&v.value}),M=function(){var t=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return V(`div`,{class:o.value},[A.value?ee():null,D.value?N():null,(k.value||t)&&V(uh,H({loading:t},e.loadingProps),{default:function(){return[V(`div`,{class:[m.value,e.bodyClassName],style:e.bodyStyle},[r(`default`)||r(`content`)])]}}),j.value&&V(`div`,{class:[g.value,e.footerClassName],style:e.footerStyle},[V(`div`,{class:_.value},[r(`footer`)]),T.value&&v.value&&V(`div`,{class:p.value},[r(`actions`)])])])},ee=function(){return b.value?V(`div`,{class:[s.value,e.headerClassName],style:e.headerStyle},[r(`header`)]):V(`div`,{class:[s.value,e.headerClassName],style:e.headerStyle},[V(`div`,{class:c.value},[S.value&&V(`div`,{class:l.value},[r(`avatar`)]),V(`div`,null,[y.value&&V(`div`,{class:u.value},[r(`title`)]),x.value&&V(`div`,{class:d.value},[r(`subtitle`)]),C.value&&V(`p`,{class:f.value},[r(`description`)])])]),T.value&&!v.value&&V(`div`,{class:p.value},[r(`actions`)]),w.value&&V(`div`,{class:p.value},[r(`status`)])])},N=function(){var t=Rd(e.cover);return V(`div`,{class:h.value},[t?V(`img`,{src:e.cover},null):r(`cover`)])};return function(){var e=r(`loading`);return e?O.value?e:M():M(!!O.value)}}})),h_e={actions:{type:Array},author:{type:[String,Function]},avatar:{type:[String,Object,Function]},content:{type:[String,Function]},datetime:{type:[String,Function]},quote:{type:[String,Function]},reply:{type:[String,Function]}};function g_e(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var __e=X(z({name:`TComment`,props:h_e,setup:function(){var e=Q(`comment`),t=pm(),n=cm();return function(){var r=t(`reply`),i=t(`author`),a=t(`datetime`),o=t(`quote`),s=t(`actions`),c=t(`content`),l=t(`avatar`),u=U(function(){return i||a}),d=r?V(`div`,{class:`${e.value}__reply`},[r]):null,f=o?V(`div`,{class:`${e.value}__quote`},[o]):null,p=l?V(`div`,{class:`${e.value}__avatar`},[Rd(l)?V(`img`,{src:l,alt:``,class:`${e.value}__avatar-image`},null):l]):null,m=u.value&&V(`div`,{class:`${e.value}__author`},[i&&V(`span`,{class:`${e.value}__name`},[i]),a&&V(`span`,{class:`${e.value}__time`},[a])]),h=V(`div`,{class:`${e.value}__content`},[m,V(`div`,{class:`${e.value}__detail`},[c]),f,function(){if(!s||!s.length)return null;var t=n(s);return V(`div`,{class:`${e.value}__actions`},[t.map(function(e,t){return V(mh,{key:`action-${t}`,size:`small`,variant:`text`},g_e(e)?e:{default:function(){return[e]}})})])}()]);return V(`div`,{class:e.value},[V(`div`,{class:`${e.value}__inner`},[p,h]),d])}}})),v_e={action:{type:Function},description:{type:[String,Function]},image:{type:[String,Function]},imageStyle:{type:Object},size:{type:String,default:`medium`,validator:function(e){return!e||[`small`,`medium`,`large`].includes(e)}},title:{type:[String,Function]},type:{type:String,default:`empty`,validator:function(e){return!e||[`empty`,`success`,`fail`,`network-error`,`maintenance`].includes(e)}}},y_e=z({name:`MaintenanceSvg`,setup:function(){return function(){return V(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 48 48`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[V(`g`,{id:`路况事件-traffic-events`},[V(`g`,{id:`Subtract`},[V(`path`,{d:`M29.5237 17L24 3.82812L18.4763 17H29.5237Z`,fill:`var(--td-text-color-placeholder)`},null),V(`path`,{d:`M31.2011 21H16.7989L13.6699 28.4615H34.3301L31.2011 21Z`,fill:`var(--td-text-color-placeholder)`},null),V(`path`,{d:`M36.0076 32.4615H11.9924L9.66997 37.9997H6V41.9997H42V37.9997H38.33L36.0076 32.4615Z`,fill:`var(--td-text-color-placeholder)`},null)])])])}}}),b_e=z({name:`NetworkErrorSvg`,setup:function(){return function(){return V(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 48 48`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[V(`g`,{id:`æ—\xA0网络-no-network`},[V(`g`,{id:`Union`},[V(`path`,{d:`M26 17V2H22V17H26Z`,fill:`var(--td-text-color-placeholder)`},null),V(`path`,{d:`M26.0078 20H22V24.0078H26.0078V20Z`,fill:`var(--td-text-color-placeholder)`},null),V(`path`,{d:`M2.75751 13.45C7.29713 9.80916 12.553 7.50276 18 6.53088V28H30V6.53052C35.4475 7.50216 40.7038 9.80854 45.2438 13.4497L46.8021 14.6995L24.0006 43.2016L1.19922 14.6998L2.75751 13.45Z`,fill:`var(--td-text-color-placeholder)`},null)])])])}}}),x_e=z({name:`EmptySvg`,setup:function(){return function(){return V(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 48 48`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[V(`g`,{id:`æ—\xA0结果-no-result`},[V(`g`,{id:`Union`},[V(`path`,{d:`M22 0H26V8H22V0Z`,fill:`var(--td-text-color-placeholder)`},null),V(`path`,{d:`M10.002 1.17157L7.17353 4L13.002 9.82843L15.8304 7L10.002 1.17157Z`,fill:`var(--td-text-color-placeholder)`},null),V(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M2 27.4689L10.8394 12H37.1606L46 27.4689V44H2V27.4689ZM13.1606 16L7.44636 26H17.8025L18.1889 27.5015C18.8551 30.0898 21.207 32 24 32C26.793 32 29.1449 30.0898 29.8111 27.5015L30.1975 26H40.5536L34.8394 16H13.1606Z`,fill:`var(--td-text-color-placeholder)`},null),V(`path`,{d:`M37.998 1.17157L32.1696 7L34.998 9.82843L40.8265 4L37.998 1.17157Z`,fill:`var(--td-text-color-placeholder)`},null)])])])}}}),S_e=z({name:`FailSvg`,setup:function(){return function(){return V(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 48 48`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[V(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M24 6C14.0589 6 6 14.0589 6 24C6 33.9411 14.0589 42 24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6ZM2 24C2 11.8497 11.8497 2 24 2C36.1503 2 46 11.8497 46 24C46 36.1503 36.1503 46 24 46C11.8497 46 2 36.1503 2 24ZM26 13V28H22V13H26ZM22 31H26.0078V35.0078H22V31Z`,fill:`#D54941`},null)])}}}),C_e=z({name:`SuccessSvg`,setup:function(){return function(){return V(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 48 48`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[V(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C14.0589 6 6 14.0589 6 24C6 33.9411 14.0589 42 24 42ZM46 24C46 36.1503 36.1503 46 24 46C11.8497 46 2 36.1503 2 24C2 11.8497 11.8497 2 24 2C36.1503 2 46 11.8497 46 24ZM21 32.8284L12.1716 24L15 21.1716L21 27.1716L33 15.1716L35.8284 18L21 32.8284Z`,fill:`#2BA471`},null)])}}}),w_e=X(z({name:`TEmpty`,components:{TImage:KA},props:v_e,setup:function(e,t){var n=t.slots,r=Wt(e),i=r.size,a=r.image,o=r.description,s=r.title,c=r.type,l=Rp(`empty`).globalConfig,u=Q(`empty`),d=U(function(){return e.action||n.action}),f=ym().SIZE,p=pm(),m=U(function(){return{maintenance:{image:l.value.image.maintenance||y_e,title:l.value.titleText.maintenance},success:{image:l.value.image.success||C_e,title:l.value.titleText.success},fail:{image:l.value.image.fail||S_e,title:l.value.titleText.fail},"network-error":{image:l.value.image.networkError||b_e,title:l.value.titleText.networkError},empty:{image:l.value.image.empty||x_e,title:l.value.titleText.empty}}}),h=U(function(){return[u.value,f.value[i.value]]}),g=[`${u.value}__title`],_=[`${u.value}__image`],v=[`${u.value}__description`],y=[`${u.value}__action`],b=U(function(){return m.value[c.value]??null}),x=U(function(){var e;return a.value||(n==null||(e=n.image)==null?void 0:e.call(n))||b.value?.image}),S=U(function(){var e;return s.value||(n==null||(e=n.title)==null?void 0:e.call(n))||b.value?.title}),C=U(function(){var e;return o.value||(n==null||(e=n.description)==null?void 0:e.call(n))}),w=function(){return S.value?V(`div`,{class:g},[S.value]):null},T=function(){return C.value?V(`div`,{class:v},[C.value]):null},E=function(){var e=x.value,t=null;return Rd(e)?t=V(KA,{src:e},null):e&&Reflect.has(e,`setup`)?t=sa(e):gc(e)&&(t=V(KA,e,null)),t};return function(){return V(`div`,{class:h.value},[x.value?V(`div`,{class:_,style:e.imageStyle},[n!=null&&n.image?p(`image`):E()]):null,w(),T(),d.value?V(`div`,{class:y},[p(`action`)]):null])}}})),T_e={max:2,min:.5,step:.2,defaultScale:1},E_e=function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return r.left<n.left||r.right>n.right||r.top<n.top||r.bottom>n.bottom},dj=1,D_e=function(e){return e>0?-1:1},O_e=-90;function k_e(e){var t=e%360;return t===0?0:Math.abs(t)>180?(t+360)%360:t}function fj(e,t,n){return Math.max(t,Math.min(n,e))}function A_e(e,t,n,r){return fj(oC(e,t),n,r)}function j_e(e,t,n,r){return fj(sC(e,t),n,r)}function pj(e,t,n){if(!(n?.mouseOffsetX==null||n?.mouseOffsetY==null)){var r=t/e,i=n?.currentTranslate??{},a=i.translateX,o=a===void 0?0:a,s=i.translateY,c=s===void 0?0:s,l=n.mouseOffsetX,u=n.mouseOffsetY;return{translateX:r*o+(1-r)*l,translateY:r*c+(1-r)*u}}}function M_e(e,t,n,r,i){var a=A_e(e,t,n,r);return{newScale:a,zoomResult:{newTranslate:pj(e,a,i)}}}function N_e(e,t,n,r,i){var a=j_e(e,t,n,r);return{newScale:a,zoomResult:{newTranslate:pj(e,a,i)}}}function mj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?mj(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gj(e){if(`touches`in e){var t=e.touches[0]||e.changedTouches[0];return t?{pageX:t.pageX,pageY:t.pageY}:void 0}return{pageX:e.pageX,pageY:e.pageY}}function P_e(e){var t=I(e),n=function(e){if(!(`button`in e&&e.button!==0)){var n=gj(e);if(n){var r=n.pageX,i=n.pageY,a=t.value,o=a.translateX,s=a.translateY,c=function(e){var n=gj(e);n&&(t.value={translateX:o+n.pageX-r,translateY:s+n.pageY-i})},l=function(){document.removeEventListener(`mousemove`,c),document.removeEventListener(`mouseup`,u),document.removeEventListener(`mouseleave`,d),document.removeEventListener(`touchmove`,c),document.removeEventListener(`touchend`,u),document.removeEventListener(`touchcancel`,u)},u=function(){return l()},d=function(){return l()};document.addEventListener(`mousemove`,c),document.addEventListener(`mouseup`,u),document.addEventListener(`mouseleave`,d),document.addEventListener(`touchmove`,c,{passive:!1}),document.addEventListener(`touchend`,u),document.addEventListener(`touchcancel`,u)}}};return{transform:t,mouseDownHandler:n,pointerDownHandler:n,resetTransform:function(){t.value=hj({},e)}}}function F_e(){var e=I(dj);return{mirror:e,onMirror:function(){e.value=D_e(e.value)},resetMirror:function(){e.value=dj}}}function I_e(e){var t=hj(hj({},T_e),e),n=t.max,r=t.min,i=t.step,a=t.defaultScale,o=fj(a,r,n),s=I(o),c=I({}),l=0,u=Hf(function(e){var t=M_e(s.value,i,r,n,e),a=t.newScale,o=t.zoomResult;s.value=a,c.value=o},50,{leading:!0,trailing:!1}),d=Hf(function(e){var t=N_e(s.value,i,r,n,e),a=t.newScale,o=t.zoomResult;s.value=a,c.value=o},50,{leading:!0,trailing:!1}),f=function(e){var t=s.value;return u(e),s.value===t?{}:c.value},p=function(e){var t=s.value;return d(e),s.value===t?{}:c.value};return{scale:s,onZoomIn:f,onZoomOut:p,resetScale:function(){s.value=o},onTouchStart:function(e){if(e.touches.length===2){e.preventDefault();var t=Y(Array.from(e.touches),2),n=t[0],r=t[1];l=Math.hypot(r.pageX-n.pageX,r.pageY-n.pageY)}},onTouchMove:function(e){if(e.touches.length===2){e.preventDefault();var t=Y(Array.from(e.touches),2),n=t[0],r=t[1],i=Math.hypot(r.pageX-n.pageX,r.pageY-n.pageY);i>l?f():p(),l=i}},onTouchEnd:function(){l=0}}}function L_e(){var e=I(0);return{rotate:e,onRotate:function(){e.value+=O_e},resetRotate:function(){var t=k_e(e.value);t!==0&&(e.value-=t)}}}var _j=z({name:`TImageItem`,props:{rotate:Number,scale:Number,mirror:Number,src:[String,Object],placementSrc:[String,Object],isSvg:Boolean,imageReferrerpolicy:String},setup:function(e,t){var n=t.expose,r=Wt(e),i=r.src,a=r.placementSrc,o=r.isSvg,s=Q(),c=I(!1),l=I(!1),u=P_e({translateX:0,translateY:0}),d=u.transform,f=u.mouseDownHandler,p=u.resetTransform,m=Rp(`imageViewer`).globalConfig.value.errorText,h=I(),g=I(),_=`${s.value}-image-viewer__modal-box--transitioning`,v=null,y=null,b=function(){var e=g.value;e&&(y&&=(clearTimeout(y),null),e.classList.remove(_),v&&=(e.removeEventListener(`transitionend`,v),null))};n({modalBoxRef:g,transform:d,resetTransform:p,enableTransition:function(){var e=g.value;if(e){b(),e.getBoundingClientRect(),e.classList.add(_),y=setTimeout(b,350);var t=function(e){e.propertyName===`transform`&&b()};v=t,e.addEventListener(`transitionend`,t)}}});var x=U(function(){return{transform:`rotateZ(${e.rotate}deg) scale(${e.scale})`,display:!e.placementSrc||l.value?`block`:`none`}}),S=U(function(){return{transform:`rotateZ(${e.rotate}deg) scale(${e.scale})`,display:l.value?`none`:`block`}}),C=U(function(){var t=d.value;return{transform:`translate(${t.translateX}px, ${t.translateY}px) scale(${e.mirror}, 1)`}}),w=function(){c.value=!1,l.value=!1,o.value&&T(E.value)},T=function(){var e=ly(Ey.mark(function e(t){var n,r,i,a,o,u,d,f,p,m,g,_,v;return Ey.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,fetch(t);case 1:if(r=e.sent,r.ok){e.next=2;break}throw c.value=!0,Error(`Failed to fetch SVG: ${r.statusText}`);case 2:return e.next=3,r.text();case 3:if(i=e.sent,a=Coe(i),a){e.next=4;break}return c.value=!0,e.abrupt(`return`);case 4:o=h.value,o.innerHTML=``,(n=o.classList)==null||n.add(`${s.value}-image-viewer__modal-image-svg`),u=o.attachShadow({mode:`closed`}),d=document.createElement(`div`),d.style.background=`var(--td-bg-color-container)`,d.style.padding=`4px`,d.style.borderRadius=`4px`,d.style.maxHeight=`100%`,d.style.maxWidth=`100%`,d.style.boxSizing=`border-box`,d.style.height=`auto`,d.innerHTML=a,u.appendChild(d),f=d.querySelector(`svg`),f&&(p=f.getAttribute(`viewBox`),p?(m=p.split(/[\s,]/).filter(function(e){return e}).map(parseFloat),g=m[2],d.style.width=`${g}px`):(_=f.getBBox(),v=`${_.x} ${_.y} ${_.width} ${_.height}`,f.setAttribute(`viewBox`,v),d.style.width=`${_.width}px`),f.style.maxHeight=`100%`,f.style.maxWidth=`100%`,f.style.height=`auto`,f.style.display=`block`,f.style.lineHeight=`normal`),l.value=!0;case 5:case`end`:return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),E=Em(i).previewUrl,D=Em(a).previewUrl;return R([E,D],function(){w()}),mr(ly(Ey.mark(function e(){return Ey.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.value){e.next=1;break}return e.next=1,T(E.value);case 1:case`end`:return e.stop()}},e)}))),function(){return V(`div`,{class:`${s.value}-image-viewer__modal-pic`},[V(`div`,{ref:g,class:`${s.value}-image-viewer__modal-box`,style:C.value},[c.value&&V(`div`,{class:`${s.value}-image-viewer__img-error`},[V(`div`,{class:`${s.value}-image-viewer__img-error-content`},[V(w_,{size:`4em`},null),V(`div`,{class:`${s.value}-image-viewer__img-error-text`},[m])])]),!c.value&&!!e.placementSrc&&D.value&&V(`img`,{class:`${s.value}-image-viewer__modal-image`,onMousedown:function(e){e.stopPropagation(),f(e)},onTouchstart:function(e){e.stopPropagation(),f(e)},src:D.value,style:S.value,referrerpolicy:e.imageReferrerpolicy,alt:`image`,draggable:`false`},null),!c.value&&E.value&&!o.value&&V(`img`,{class:`${s.value}-image-viewer__modal-image`,onMousedown:function(e){e.stopPropagation(),f(e)},onTouchstart:function(e){e.stopPropagation(),f(e)},src:E.value,onLoad:function(){return l.value=!0},onError:function(){return c.value=!0},style:x.value,referrerpolicy:e.imageReferrerpolicy,alt:`image`,draggable:`false`},null),!c.value&&E.value&&o.value&&V(`div`,{ref:h,class:`${s.value}-image-viewer__modal-image`,onMousedown:function(e){e.stopPropagation(),f(e)},onTouchstart:function(e){e.stopPropagation(),f(e)},"data-alt":`svg`,style:x.value,draggable:`false`},null)])])}}}),vj=z({name:`TImageModalIcon`,props:{disabled:Boolean,onClick:Function,label:String,icon:Function},setup:function(e){var t=Q(),n=pm(),r=U(function(){return[`${t.value}-image-viewer__modal-icon`,G({},`${t.value}-is-disabled`,e.disabled)]});return function(){return V(`div`,{class:r.value,onClick:e.onClick},[n(`icon`),e.label&&V(`span`,{class:`${t.value}-image-viewer__modal-icon-label`},[e.label])])}}}),yj={attach:{type:[String,Function]},body:{type:[String,Function]},cancelBtn:{type:[String,Object,Function,null]},closeBtn:{type:[String,Boolean,Function],default:!0},closeOnEscKeydown:{type:Boolean,default:void 0},closeOnOverlayClick:{type:Boolean,default:void 0},confirmBtn:{type:[String,Object,Function,null]},confirmLoading:{type:Boolean,default:void 0},confirmOnEnter:Boolean,default:{type:[String,Function]},destroyOnClose:Boolean,dialogClassName:{type:String,default:``},dialogStyle:{type:Object},draggable:Boolean,footer:{type:[Boolean,Function],default:!0},header:{type:[String,Boolean,Function],default:!0},lazy:Boolean,mode:{type:String,default:`modal`,validator:function(e){return!e||[`modal`,`modeless`,`normal`,`full-screen`].includes(e)}},placement:{type:String,default:`top`,validator:function(e){return!e||[`top`,`center`].includes(e)}},preventScrollThrough:{type:Boolean,default:!0},showInAttachedElement:Boolean,showOverlay:{type:Boolean,default:!0},theme:{type:String,default:`default`,validator:function(e){return!e||[`default`,`info`,`warning`,`danger`,`success`].includes(e)}},top:{type:[String,Number]},visible:Boolean,width:{type:[String,Number]},zIndex:{type:Number},onBeforeClose:Function,onBeforeOpen:Function,onCancel:Function,onClose:Function,onCloseBtnClick:Function,onClosed:Function,onConfirm:Function,onEscKeydown:Function,onOpened:Function,onOverlayClick:Function};function bj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?bj(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sj(e){var t=Yi(),n=pm(),r=function(t){var n=t.globalConfirm,r=t.theme,i=t.globalConfirmBtnTheme,a={theme:um(Sf(i,[`info`]),r)||`primary`,size:t.size,onClick:function(t){e.confirmBtnAction(t)}};return Rd(n)?a.content=n:Do(n)&&(a=xj(xj({},a),n)),a},i=function(t){var n=t.globalCancel,r={theme:`default`,size:t.size,onClick:function(t){e.cancelBtnAction(t)}};return Rd(n)?r.content=n:Do(n)&&(r=xj(xj({},r),n)),r},a=function(e,t){var n=t.defaultButtonProps,r=t.className,i=t.confirmLoading,a=n;return Rd(e)?a.content=e:Do(e)&&(a=xj(xj({},a),e)),i!==void 0&&(a.loading=i),V(mh,H({class:r},a),null)};return{getConfirmBtn:function(e){var i=e.confirmBtn,o=e.className,s=e.confirmLoading;if(i===null)return null;i&&t.slots.confirmBtn&&console.warn(`Both $props.confirmBtn and $scopedSlots.confirmBtn exist, $props.confirmBtn is preferred.`);var c=r(e);return!i&&!t.slots.confirmBtn?V(mh,H({class:o,loading:s},c),null):i&&[`string`,`object`].includes(so(i))?a(i,{defaultButtonProps:c,className:o,confirmLoading:s}):n(`confirmBtn`)},getCancelBtn:function(e){var r=e.cancelBtn,o=e.className;if(r===null)return null;r&&t.slots.cancelBtn&&console.warn(`Both $props.cancelBtn and $scopedSlots.cancelBtn exist, $props.cancelBtn is preferred.`);var s=i(e);return!r&&!t.slots.cancelBtn?V(mh,H({class:o},s),null):r&&[`string`,`object`].includes(so(r))?a(r,{defaultButtonProps:s,className:o}):n(`cancelBtn`)}}}function R_e(e){var t=!1,n=!1;return{onClick:function(r){t&&n&&e?.(r),t=!1,n=!1},onMousedown:function(e){t=e.target===e.currentTarget},onMouseup:function(e){n=e.target===e.currentTarget}}}function z_e(){var e=6;if(typeof navigator>`u`||!navigator||/(Chrome|Safari)/i.test(navigator.userAgent))return e;var t=document.createElement(`div`);t.style.cssText=`width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;`,document.body.appendChild(t);var n=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),/Firefox/.test(navigator.userAgent)&&(n-=4),Zm()<=11&&(n=12),n}function Cj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document.body;return e===document.body?window.innerWidth-document.documentElement.clientWidth:e.offsetWidth-e.clientWidth}function wj(e){return Number.isNaN(Number(e))?e:`${Number(e)}px`}function B_e(e){var t=e,n=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;t.addEventListener(`mousedown`,function(e){var i=e.clientX-t.offsetLeft,a=e.clientY-t.offsetTop,o=t.offsetWidth,s=t.offsetHeight;if(o>n||s>r)return;function c(e){var o=e.clientX-i,s=e.clientY-a;o<0&&(o=0),s<0&&(s=0),n-t.offsetWidth-o<0&&(o=n-t.offsetWidth),r-t.offsetHeight-s<0&&(s=r-t.offsetHeight),t.style.position=`absolute`,t.style.left=`${o}px`,t.style.top=`${s}px`}function l(){document.removeEventListener(`mousemove`,c),document.removeEventListener(`mouseup`,l)}document.addEventListener(`mousemove`,c),document.addEventListener(`mouseup`,l),document.addEventListener(`dragend`,l)})}var V_e={body:{type:[String,Function]},cancelBtn:{type:[String,Object,Function]},closeBtn:{type:[String,Boolean,Function],default:!0},confirmBtn:{type:[String,Object,Function]},confirmLoading:{type:Boolean,default:void 0},footer:{type:[Boolean,Function]},header:{type:[String,Boolean,Function],default:!0},theme:{type:String,default:`default`,validator:function(e){return!e||[`default`,`info`,`warning`,`danger`,`success`].includes(e)}},onCancel:Function,onCloseBtnClick:Function,onConfirm:Function};function Tj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ej(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Tj(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Dj=z({name:`TDialogCard`,directives:{draggable:function(e,t){e&&t&&t.value&&B_e(e)}},props:Ej(Ej({},yj),V_e),setup:function(e,t){var n=t.expose,r=I(null),i=Q(`dialog`),a=Q(),o=pm(),s=hm(),c=Rp(`dialog`).globalConfig,l=Tm({CloseIcon:Og,InfoCircleFilledIcon:A_,CheckCircleFilledIcon:Qh,ErrorCircleFilledIcon:Zg}),u=l.CloseIcon,d=l.InfoCircleFilledIcon,f=l.CheckCircleFilledIcon,p=l.ErrorCircleFilledIcon,m=Wt(e),h=m.cancelBtn,g=m.confirmBtn,_=m.confirmLoading,v=Sj({confirmBtnAction:function(t){return e.onConfirm?.call(e,{e:t})},cancelBtnAction:function(t){return e.onCancel?.call(e,{e:t})}}),y=v.getConfirmBtn,b=v.getCancelBtn,x=U(function(){return e.mode===`modeless`}),S=U(function(){return[`modal`,`modeless`].includes(e.mode)}),C=U(function(){return e.mode===`full-screen`}),w=function(t){var n;return e==null||(n=e.onCloseBtnClick)==null?void 0:n.call(e,{e:t})},T=function(t){S.value&&e!=null&&e.draggable&&t.stopPropagation()};n({$el:r,resetPosition:function(){!r.value&&x.value&&e.draggable||(r.value.style.position=`relative`,r.value.style.left=`unset`,r.value.style.top=`unset`)}});var E=U(function(){var t=[`${i.value}`,`${i.value}__modal-${e.theme}`,S.value&&e.draggable&&`${i.value}--draggable`,e.dialogClassName];return C.value?t.push(`${i.value}__fullscreen`):t.push(`${i.value}--default`,`${i.value}--${e.placement}`),t}),D=U(function(){return C.value?Ej({},e.dialogStyle):Ej({width:wj(e.width)},e.dialogStyle)}),O=function(){var t=U(function(){return g.value?.loading||_.value}),n=o(`footer`,V(`div`,null,[b({cancelBtn:h.value,globalCancel:c.value.cancel,className:`${i.value}__cancel`}),y({theme:e?.theme,confirmBtn:g.value,globalConfirm:c.value.confirm,globalConfirmBtnTheme:c.value.confirmBtnTheme,className:`${i.value}__confirm`,confirmLoading:t.value})]));return V(bi,null,[function(){var t=o(`header`,V(`h5`,{class:`title`},null))??!1,n=C.value?[`${i.value}__header`,`${i.value}__header--fullscreen`]:`${i.value}__header`,r=C.value?[`${i.value}__close`,`${i.value}__close--fullscreen`]:`${i.value}__close`;return(t||e?.closeBtn)&&V(`div`,{class:n},[V(`div`,{class:`${i.value}__header-content`},[function(){return{info:V(d,{class:`${a.value}-is-info`},null),warning:V(p,{class:`${a.value}-is-warning`},null),danger:V(p,{class:`${a.value}-is-error`},null),success:V(f,{class:`${a.value}-is-success`},null)}[e?.theme]}(),t]),e!=null&&e.closeBtn?V(`span`,{class:r,onClick:w,onMousedown:T},[o(`closeBtn`,V(u,null,null))]):null])}(),function(){var t=s(`default`,`body`),r=e?.theme==="default"?[`${i.value}__body`]:[`${i.value}__body__icon`];return C.value&&n?r.push(`${i.value}__body--fullscreen`):C.value&&r.push(`${i.value}__body--fullscreen--without-footer`),V(`div`,{class:r,onMousedown:T},[t])}(),!!e.footer&&function(){var e=C.value?[`${i.value}__footer`,`${i.value}__footer--fullscreen`]:`${i.value}__footer`;return n&&V(`div`,{class:e,onMousedown:T},[n])}()])};return function(){return xn(V(`div`,{key:`dialog`,ref:r,class:E.value,style:D.value},[O()]),[[Eee(`draggable`),S.value&&e.draggable]])}}}),H_e=[`theme`,`onConfirm`,`onCancel`,`onCloseBtnClick`],Oj;typeof window<`u`&&window.document&&window.document.documentElement&&document.documentElement.addEventListener(`click`,function(e){Oj={x:e.clientX,y:e.clientY},setTimeout(function(){Oj=null},100)},!0);var U_e=1,kj=z({name:`TDialog`,inheritAttrs:!1,props:yj,emits:[`update:visible`],setup:function(e,t){var n=Q(`dialog`),r=Q(),i=I(null),a=Rp(`dialog`).globalConfig,o=function(t){var n;(n=e.onConfirm)==null||n.call(e,t)},s=function(t){var n;(n=e.onCancel)==null||n.call(e,t),F({e:t.e,trigger:`cancel`})},c=Lm(function(){return e.attach});xm();var l=I(),u=I(),d=U(function(){return e.mode===`modal`}),f=U(function(){return e.mode===`modeless`}),p=U(function(){return e.mode===`full-screen`}),m=U(function(){return e.visible}),h=U(function(){return[`${n.value}__mask`,!e.showOverlay&&`${r.value}-is-hidden`]}),g=U(function(){return p.value?[`${n.value}__position_fullscreen`]:d.value||f.value?[`${n.value}__position`,!!e.top&&`${n.value}--top`,`${e.placement&&!e.top?`${n.value}--${e.placement}`:``}`]:[]}),_=U(function(){return p.value||d.value||f.value?[`${n.value}__wrap`]:null}),v=U(function(){if(p.value)return{};var t=e.top,n={};return t!==void 0&&(n={paddingTop:wj(t)}),n}),y=jm(`dialog`,{visible:m}).isTopInteractivePopup,b=I(!1),x=I(e.visible);R(function(){return e.visible},function(t){if(t){var n;b.value=!0,x.value=!0,(d.value&&!e.showInAttachedElement||p.value)&&(e.preventScrollThrough&&document.body.appendChild(u.value),dn(function(){var e;if(Oj&&(e=i.value)!=null&&e.$el){var t=i.value.$el;t.style.transformOrigin=`${Oj.x-t.offsetLeft}px ${Oj.y-t.offsetTop}px`}})),(n=document.activeElement)==null||n.blur()}else C();w(t)});function S(){var e,t;(e=u.value.parentNode)==null||(t=e.removeChild)==null||t.call(e,u.value)}function C(){clearTimeout(l.value),l.value=setTimeout(function(){S()},150)}var w=function(t){t?(document.addEventListener(`keydown`,E),e.confirmOnEnter&&document.addEventListener(`keydown`,T)):(document.removeEventListener(`keydown`,E),e.confirmOnEnter&&document.removeEventListener(`keydown`,T))},T=function(t){var n,r=t.target;if((r==null||(n=r.tagName)==null?void 0:n.toLowerCase())!==`input`){var i=t.code;if((i===`Enter`||i===`NumpadEnter`)&&y()){var a;(a=e.onConfirm)==null||a.call(e,{e:t})}}},E=function(t){if(t.code===`Escape`&&y()){var n;(n=e.onEscKeydown)==null||n.call(e,{e:t}),(e.closeOnEscKeydown??a.value.closeOnEscKeydown)&&(F({e:t,trigger:`esc`}),t.stopImmediatePropagation())}},D=R_e(function(t){if(e.showOverlay&&(e.closeOnOverlayClick??a.value.closeOnOverlayClick)){var n;(n=e.onOverlayClick)==null||n.call(e,{e:t}),F({e:t,trigger:`overlay`})}}),O=D.onClick,k=D.onMousedown,A=D.onMouseup,j=function(t){var n;(n=e.onCloseBtnClick)==null||n.call(e,t),F({trigger:`close-btn`,e:t.e})},M=function(){var t;(t=e.onBeforeOpen)==null||t.call(e)},ee=function(){var t;(t=e.onOpened)==null||t.call(e)},N=function(){var t;(t=e.onBeforeClose)==null||t.call(e)},P=function(){var t,n,r;x.value=!1,(t=i.value)==null||(n=t.resetPosition)==null||n.call(t),(r=e.onClosed)==null||r.call(e)},F=function(n){var r;(r=e.onClose)==null||r.call(e,n),t.emit(`update:visible`,!1)},te=function(){var n=e.theme;e.onConfirm,e.onCancel,e.onCloseBtnClick;var r=Ym(e,H_e);return V(`div`,{class:_.value},[V(`div`,{class:g.value,style:v.value,onClick:O,onMousedown:k,onMouseup:A},[x.value&&V(Dj,H({ref:i,theme:n},r,{onConfirm:o,onCancel:s,onCloseBtnClick:j}),t.slots)])])};mr(function(){var t=document.documentElement.scrollHeight>document.documentElement.clientHeight?Cj():0;u.value=document.createElement(`style`),u.value.dataset.id=`td_dialog_${+new Date}_${U_e+=1}`,u.value.innerHTML=`
html body {
overflow-y: hidden;
width: calc(100% - ${t}px);
}
`,e.visible&&w(e.visible)}),_r(function(){w(!1),S()});var ne=U(function(){var t=e.destroyOnClose,n=e.visible,r=e.lazy;return b.value?n||!t:!r});return function(){var r=[(d.value||p.value)&&V(`div`,{key:`mask`,class:h.value},null),te()],i={zIndex:e.zIndex},a=[`${n.value}__ctx`,G(G(G({},`${n.value}__ctx--fixed`,d.value||p.value||f.value),`${n.value}__ctx--absolute`,d.value&&e.showInAttachedElement),`${n.value}__ctx--modeless`,f.value)];return V(Ln,{disabled:!e.attach||!c.value,to:c.value},{default:function(){return[V(va,{duration:300,name:`${n.value}-zoom__vue`,onBeforeEnter:M,onAfterEnter:ee,onBeforeLeave:N,onAfterLeave:P},{default:function(){return[ne.value&&xn(V(`div`,H({class:a,style:i},t.attrs),[r]),[[Na,e.visible]])]}})]}})}}});function Aj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Aj(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Aj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Mj=function(e,t){var n=jj({},e),r=document.createElement(`div`),i=I(!1),a=n.className,o=n.style,s=a,c=function(e,t){if(e&&r.firstElementChild){if(s&&s!==e){var n;(n=r.firstElementChild.classList).remove.apply(n,W(s.split(` `).map(function(e){return e.trim()})))}e.split(` `).forEach(function(e){r.firstElementChild.classList.add(e.trim())})}t&&r.firstElementChild&&(r.firstElementChild.style.cssText+=t),s=e};function l(){Za(null,r),r.remove()}var u=V(z({setup:function(e,t){var r=t.expose,s=I(n);return mr(function(){i.value=!0,document.activeElement.blur(),dn(function(){c(a,o)})}),r({update:function(e){s.value=jj(jj({},n),e)}}),function(){var e=n.onClose||function(){i.value=!1,n.destroyOnClose&&setTimeout(function(){l()},300)};return delete n.className,delete n.style,sa(kj,jj(jj({},s.value),{},{onClose:e,visible:i.value}))}}}));(t??Pj._context)&&(u.appContext=t??Pj._context);var d=pp(n.attach);return d?d.appendChild(r):console.error(`attach is not exist`),Za(u,r),{show:function(){i.value=!0},hide:function(){i.value=!1},update:function(e){u.component.exposed.update(Sf(e,[`className`,`style`])),c(e.className,e.style)},destroy:function(){i.value=!1,setTimeout(function(){l()},300)},setConfirmLoading:function(e){u.component.exposed.update({confirmLoading:e})}}},Nj={confirm:function(e,t){return Mj(e,t)},alert:function(e,t){var n=jj({},e);return n.cancelBtn=null,Mj(n,t)}},Pj=Mj;Pj.install=function(e){e.config.globalProperties.$dialog=Mj,Pj._context=e._context,Object.keys(Nj).forEach(function(t){e.config.globalProperties.$dialog[t]=Nj[t]})},Object.keys(Nj).forEach(function(e){Pj[e]=Nj[e]});var Fj=X(kj),W_e=X(Dj),Ij={attach:{type:[String,Function],default:`body`},closeBtn:{type:[Boolean,Function],default:!0},closeOnEscKeydown:{type:Boolean,default:!0},closeOnOverlay:Boolean,draggable:{type:Boolean,default:void 0},imageReferrerpolicy:{type:String,validator:function(e){return!e||[`no-referrer`,`no-referrer-when-downgrade`,`origin`,`origin-when-cross-origin`,`same-origin`,`strict-origin`,`strict-origin-when-cross-origin`,`unsafe-url`].includes(e)}},imageScale:{type:Object},images:{type:Array,default:function(){return[]}},index:{type:Number,default:void 0},defaultIndex:{type:Number,default:0},mode:{type:String,default:`modal`,validator:function(e){return!e||[`modal`,`modeless`].includes(e)}},navigationArrow:{type:[Boolean,Function],default:!0},showOverlay:{type:Boolean,default:void 0},title:{type:[String,Function]},trigger:{type:[String,Function]},viewerScale:{type:Object},visible:{type:Boolean,default:void 0},modelValue:{type:Boolean,default:void 0},defaultVisible:Boolean,zIndex:{type:Number},onClose:Function,onDownload:Function,onIndexChange:Function},Lj=z({name:`TImageViewerUtils`,props:{zIndex:Number,scale:Number,onRotate:Function,onZoomIn:Function,onZoomOut:Function,onMirror:Function,onReset:Function,onDownload:Function,currentImage:{type:Object,default:function(){return{}}}},setup:function(e){var t=Q(),n=Em(U(function(){return e.currentImage.mainImage})).previewUrl,r=Rp(`imageViewer`).globalConfig;return function(){return V(`div`,{class:`${t.value}-image-viewer__utils`},[V(`div`,{class:`${t.value}-image-viewer__utils-content`},[V(Gx,{overlayClassName:`${t.value}-image-viewer__utils--tip`,content:r.value.mirrorTipText,destroyOnClose:!0,placement:`top`,showArrow:!0,theme:`default`,zIndex:e.zIndex},{default:function(){return[V(vj,{onClick:e.onMirror,icon:function(){return V(Qce,{size:`medium`},null)}},null)]}}),V(Gx,{overlayClassName:`${t.value}-image-viewer__utils--tip`,content:r.value.rotateTipText,destroyOnClose:!0,placement:`top`,showArrow:!0,theme:`default`,zIndex:e.zIndex},{default:function(){return[V(vj,{onClick:e.onRotate,icon:function(){return V(mle,{size:`medium`},null)}},null)]}}),V(vj,{icon:function(){return V(Ile,{size:`medium`},null)},onClick:e.onZoomOut},null),V(vj,{class:`${t.value}-image-viewer__utils-scale`,label:`${aC(String(e.scale*100))}%`},null),V(vj,{icon:function(){return V(Ple,{size:`medium`},null)},onClick:e.onZoomIn},null),V(Gx,{overlayClassName:`${t.value}-image-viewer__utils--tip`,content:r.value.originalSizeTipText,destroyOnClose:!0,placement:`top`,showArrow:!0,theme:`default`,zIndex:e.zIndex},{default:function(){return[V(`div`,{class:`${t.value}-image-viewer__modal-icon`},[V(vj,{icon:function(){return V(D_,{size:`medium`},null)},onClick:e.onReset},null)])]}}),e.currentImage.download&&V(vj,{icon:function(){return V(gce,{size:`medium`},null)},onClick:function(){e.onDownload(n.value)}},null)])])}}}),G_e=z({name:`TImageViewerModal`,props:{zIndex:Number,visible:Boolean,index:Number,images:Ij.images,scale:Number,rotate:Number,mirror:Number,title:Ij.title,currentImage:{type:Object,default:function(){return{}}},onRotate:Function,onZoomIn:Function,onZoomOut:Function,onMirror:Function,onReset:Function,onClose:Ij.onClose,onDownload:Ij.onDownload,draggable:{type:Boolean,default:!0},viewerScale:{type:Object,default:function(){return{}}},showOverlay:Boolean,closeBtn:Ij.closeBtn,imageReferrerpolicy:Ij.imageReferrerpolicy},setup:function(e){var t=Q(),n=U(function(){return{minWidth:e.viewerScale.minWidth,minHeight:e.viewerScale.minHeight}});return function(){return V(Fj,{destroyOnClose:!0,attach:`body`,onClose:e.onClose,visible:e.visible,placement:`center`,mode:`modeless`,width:1e3,cancelBtn:null,confirmBtn:null,draggable:e.draggable,zIndex:e.zIndex,showOverlay:e.showOverlay,class:`${t.value}-image-viewer__dialog`,header:e.title,footer:function(){return V(`div`,{class:`${t.value}-image-viewer-mini__footer`},[V(Lj,{zIndex:e.zIndex,onZoomIn:e.onZoomIn,onZoomOut:e.onZoomOut,scale:e.scale,currentImage:e.currentImage,onRotate:e.onRotate,onMirror:e.onMirror,onReset:e.onReset,onDownload:e.onDownload},null)])}},{default:function(){return[V(`div`,{class:`${t.value}-image-viewer-mini__content`,style:n.value},[V(_j,{rotate:e.rotate,scale:e.scale,mirror:e.mirror,src:e.currentImage.mainImage,placementSrc:e.currentImage.thumbnail,isSvg:e.currentImage.isSvg,imageReferrerpolicy:e.imageReferrerpolicy},null)])]}})}}}),Rj=function(e){return e.left=`ArrowLeft`,e.up=`ArrowUp`,e.right=`ArrowRight`,e.down=`ArrowDown`,e.esc=`Escape`,e}(Rj||{}),K_e=function(e){return e.showOverlay===void 0?e.mode===`modal`:e.showOverlay};function zj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function q_e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zj(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var J_e=function(e){try{return new URL(e,window.location.href).origin===window.location.origin}catch{return!1}},Y_e=function(e,t){var n=document.createElement(`a`);n.download=t,n.href=e,n.click(),n.remove()},Bj=function(e,t){var n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,r.click(),r.remove(),URL.revokeObjectURL(n)},X_e=function(e,t){var n=new Image;n.setAttribute(`crossOrigin`,`anonymous`),n.onload=function(){var e=document.createElement(`canvas`);e.width=n.width,e.height=n.height,e.getContext(`2d`).drawImage(n,0,0,n.width,n.height);var r=t.split(`.`).pop()?.toLowerCase()||`png`,i=`image/${r===`jpg`?`jpeg`:r}`;e.toBlob(function(e){Bj(e,t)},i)},n.src=e},Z_e=function(e){var t,n,r,i=Math.random().toString(32).slice(2);if(e instanceof File){Bj(e,e.name);return}var a=(e==null||(t=e.split)==null||(t=t.call(e,`?`))==null||(t=t[0])==null||(n=t.split)==null||(n=n.call(t,`#`))==null||(n=n[0])==null||(r=n.split)==null?void 0:r.call(n,`/`).pop())||i;J_e(e)?Y_e(e,a):X_e(e,a)},Q_e=function(e){return!!e&&!Rd(e)&&!(e instanceof File)},$_e=function(e){return K(e)?e.map(function(e){return Q_e(e)?q_e({download:!0,thumbnail:e.mainImage},e):{mainImage:e,thumbnail:e,download:!0}}):[]},Vj=X(z({name:`TImageViewer`,props:Ij,setup:function(e){var t=Q(),n=Q(`image-viewer`),r=pm(),i=Rp(`imageViewer`).globalConfig,a=I(!0),o=U(function(){return K_e(e)}),s=Wt(e),c=s.index,l=s.visible,u=s.modelValue,d=s.imageReferrerpolicy,f=Y(bm(c,e.defaultIndex??0,e.onIndexChange,`index`),2),p=f[0],m=f[1],h=Y(Rm(l,u,e.defaultVisible,function(){},`visible`),2),g=h[0],_=h[1],v=I(!0),y=I(),b=Lm(function(){return e.attach}),x=U(function(){return[n.value,`${n.value}-preview-image`,G({},`${t.value}-is-hide`,!g.value)]}),S=U(function(){return[`${t.value}-image-viewer__modal-header`,G({},`${t.value}-is-show`,a.value)]}),C=U(function(){return e.zIndex??3e3}),w=function(){a.value=!a.value},T=F_e(),E=T.mirror,D=T.onMirror,O=T.resetMirror,k=I_e(e.imageScale),A=k.scale,j=k.onZoomIn,M=k.onZoomOut,ee=k.resetScale,N=k.onTouchStart,P=k.onTouchMove,F=k.onTouchEnd,te=L_e(),ne=te.rotate,re=te.onRotate,ie=te.resetRotate;R(function(){return e.imageScale},function(){return ee()});var ae=function(){var e,t;O(),ee(),ie(),(e=ye.value)==null||(t=e.resetTransform)==null||t.call(e)},oe=U(function(){return $_e(e.images)}),se=U(function(){return oe.value[p.value]??{mainImage:``}}),ce=jm(`dialog`,{visible:g}).isTopInteractivePopup,le=function(){var e=p.value-1;ae(),m(e<0?0:e,{trigger:`prev`})},ue=function(){var e=p.value+1;ae(),m(e>=oe.value.length?p.value:e,{trigger:`next`})},de=function(e){m(e,{trigger:`current`})},fe=function(t){e.onDownload?e.onDownload(t):Z_e(t)},pe=function(e){nf(e)&&de(e),_(!0)},me=function(t){var n;_(!1),(n=e.onClose)==null||n.call(e,t)},he=function(e){me({e,trigger:`close-btn`})},ge=function(t){e.closeOnOverlay&&me({e:t,trigger:`overlay`})},_e=function(t){switch(t.stopPropagation(),t.code){case Rj.left:le();break;case Rj.right:ue();break;case Rj.up:j();break;case Rj.down:M();break;case Rj.esc:e.closeOnEscKeydown&&ce()&&me({e:t,trigger:`esc`});break;default:break}},ve=I(),ye=I();R(function(){return g.value},function(e){clearTimeout(y.value),e?(v.value=!1,dn().then(function(){var e,t;(e=ve.value)==null||(t=e.focus)==null||t.call(e)}),ae()):y.value=setTimeout(function(){v.value=!0},200)}),_r(function(){clearTimeout(y.value)});var be=function(e){e.preventDefault();var t=e.deltaY>0,n=ve.value,r=ye.value?.modalBoxRef;if(!n||!r){t?M():j();return}if(t&&E_e(n,r)){var i=M({mouseOffsetX:0,mouseOffsetY:0,currentTranslate:ye.value?.transform??{translateX:0,translateY:0}});if(i!=null&&i.newTranslate){var a,o;(a=ye.value)==null||(o=a.enableTransition)==null||o.call(a),ye.value.transform=i.newTranslate}}else t?M():j()},xe=function(){var e=ve.value;e&&(e.addEventListener(`wheel`,be,{passive:!1}),document.addEventListener(`touchstart`,N,{passive:!1}),document.addEventListener(`touchmove`,P,{passive:!1}),document.addEventListener(`touchend`,F))},Se=function(){var e=ve.value;e&&e.removeEventListener(`wheel`,be),document.removeEventListener(`touchstart`,N),document.removeEventListener(`touchmove`,P),document.removeEventListener(`touchend`,F)};R(function(){return g.value},function(e){e?dn().then(function(){return xe()}):Se()}),_r(function(){Se()});var Ce=U(function(){return{transform:`translateX(calc(-${p.value} * (40px / 9 * 16 + 4px)))`}}),we=function(){return V(`div`,{class:S.value},[V(vj,{icon:function(){return V(sg,null,null)},class:`${n.value}__header-pre-bt`,onClick:w},null),V(`div`,{class:`${n.value}__header-prev`},[V(`div`,{class:`${n.value}__header-trans`,style:Ce.value},[oe.value.map(function(e,r){return V(`div`,{key:r,class:[`${n.value}__header-box`,G({},`${t.value}-is-active`,r===p.value)]},[V(KA,{src:e.thumbnail||e.mainImage,error:``,class:`${n.value}__header-img`,onClick:function(){return de(r)}},null)])})])])])},Te=function(){var e=r(`title`);return V(`div`,{class:`${n.value}__modal-index`},[e||`${p.value+1}/${oe.value.length}`])},Ee=function(e){var t=r(`navigationArrow`,V(fg,{style:{transform:`rotate(${e===`prev`?0:180}deg)`},size:`24px`},null));return V(vj,{class:`${n.value}__modal-${e}-bt`,onClick:e===`prev`?le:ue,icon:function(){return t}},null)},De=function(){if(e.closeBtn!==!1)return V(`div`,{class:[`${n.value}__modal-icon`,`${n.value}__modal-close-bt`],onClick:he},[r(`closeBtn`,V(Og,{size:`24px`},null))])},Oe=function(){var e=oe.value[0]||``,t=typeof e==`string`?e:e.thumbnail||e.mainImage;return V(`div`,{class:`${n.value}__trigger`},[V(KA,{src:t,alt:`preview`,fit:`contain`,class:`${n.value}__trigger-img`},null),V(`div`,{class:`${n.value}__trigger--hover`,onClick:function(){return pe()}},[V(`span`,null,[V(zh,{size:`1.4em`,class:`${n.value}__trigger-icon`},null),i.value.previewText])])])};return function(){return e.mode===`modeless`?V(bi,null,[Dp(`trigger`)?r(`trigger`,{params:{open:pe}}):Oe(),V(G_e,{zIndex:C.value,visible:g.value,index:p.value,images:oe.value,scale:A.value,rotate:ne.value,mirror:E.value,currentImage:se.value,onRotate:re,onZoomIn:j,onZoomOut:M,onMirror:D,onReset:ae,onClose:me,onDownload:fe,draggable:e.draggable,showOverlay:o.value,title:Te,imageReferrerpolicy:d.value},null)]):V(bi,null,[Dp(`trigger`)?r(`trigger`,{params:{open:pe}}):Oe(),V(Ln,{disabled:!e.attach||!b.value,to:b.value},{default:function(){return[V(va,null,{default:function(){return[(g.value||!v.value)&&xn(V(`div`,{ref:ve,class:x.value,style:{zIndex:C.value},tabindex:-1,onKeydown:_e},[!!o.value&&V(`div`,{class:`${n.value}__modal-mask`,onClick:ge},null),oe.value.length>1&&V(bi,null,[we(),Te(),Ee(`prev`),Ee(`next`)]),De(),V(Lj,{zIndex:C.value+1,onZoomIn:j,onZoomOut:M,onMirror:D,onReset:ae,onRotate:re,onDownload:fe,scale:A.value,currentImage:se.value},null),V(_j,{ref:ye,scale:A.value,rotate:ne.value,mirror:E.value,src:se.value.mainImage,placementSrc:se.value.thumbnail,isSvg:se.value.isSvg,imageReferrerpolicy:d.value},null)]),[[Na,g.value]])]}})]}})])}}})),Hj=z({name:`TListItem`,props:{action:{type:[String,Function]},content:{type:[String,Function]},default:{type:[String,Function]}},setup:function(){var e=Q(`list-item`),t=pm();return function(){var n=t(`content`),r=t(`default`),i=t(`action`);return V(`li`,{class:e.value},[V(`div`,{class:`${e.value}-main`},[r||n,i&&V(`li`,{class:`${e.value}__action`},[i])])])}}}),eve={asyncLoading:{type:[String,Function]},footer:{type:[String,Function]},header:{type:[String,Function]},layout:{type:String,default:`horizontal`,validator:function(e){return!e||[`horizontal`,`vertical`].includes(e)}},scroll:{type:Object},size:{type:String,default:`medium`,validator:function(e){return!e||[`small`,`medium`,`large`].includes(e)}},split:Boolean,stripe:Boolean,onLoadMore:Function,onScroll:Function};function Uj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Uj(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tve(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=nve(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function nve(e,t){if(e){if(typeof e==`string`)return Gj(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gj(e,t):void 0}}function Gj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var rve=function(){var e=om();return{listItems:U(function(){var t=[],n=e(`ListItem`);if(K(n)){var r=tve(n),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;t.push(Wj(Wj({},a.props),{},{slots:a.children}))}}catch(e){r.e(e)}finally{r.f()}}return t})}};function Kj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Kj(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ive=function(e,t,n){var r=Vm(t,U(function(){return{data:n.value,scroll:e}})),i=U(function(){return r.isVirtualScroll.value}),a=-1;return{virtualConfig:r,cursorStyle:U(function(){return{position:`absolute`,width:`1px`,height:`1px`,transition:`transform 0.2s`,transform:`translate(0, ${r.scrollHeight.value}px)`,"-ms-transform":`translate(0, ${r.scrollHeight.value}px)`,"-moz-transform":`translate(0, ${r.scrollHeight.value}px)`,"-webkit-transform":`translate(0, ${r.scrollHeight.value}px)`}}),listStyle:U(function(){return{transform:`translate(0, ${r.translateY.value}px)`,"-ms-transform":`translate(0, ${r.translateY.value}px)`,"-moz-transform":`translate(0, ${r.translateY.value}px)`,"-webkit-transform":`translate(0, ${r.translateY.value}px)`}}),isVirtualScroll:i,onInnerVirtualScroll:function(e){var t=(e.target||e.srcElement).scrollTop;a===t?a=-1:r.isVirtualScroll.value&&r.handleScroll(),a=t},scrollToElement:function(e){var t=e.index,i=e.key,a=t===0?t:t??Number(i);if(!a&&a!==0){Vp.error(`List`,"scrollTo: `index` or `key` must exist.");return}if(a<0||a>=n.value.length){Vp.error(`List`,`${a} does not exist in data, check \`index\` or \`key\` please.`);return}r.scrollToElement(qj(qj({},e),{},{index:a-1}))}}},ave=z({name:`TList`,props:eve,setup:function(e,t){var n=t.expose,r=I(),i=Rp(`list`).globalConfig,a=Q(`list`),o=ym().SIZE,s=pm(),c=rve().listItems,l=ive(e.scroll,r,c),u=l.virtualConfig,d=l.cursorStyle,f=l.listStyle,p=l.isVirtualScroll,m=l.onInnerVirtualScroll,h=l.scrollToElement,g=U(function(){return[`${a.value}`,o.value[e.size],G(G(G({},`${a.value}--split`,e.split),`${a.value}--stripe`,e.stripe),`${a.value}--vertical-action`,e.layout===`vertical`)]}),_=function(){var e=s(`header`),t=s(`footer`),n=u.isVirtualScroll.value;return V(bi,null,[e?V(`div`,{class:`${a.value}__header`},[e]):null,n?V(bi,null,[V(`div`,{style:d.value},null),V(`ul`,{class:`${a.value}__inner`,style:f.value},[u.visibleData.value.map(function(e){return V(bi,null,[V(Hj,Sf(e,`slots`),e.slots)])})])]):V(`ul`,{class:`${a.value}__inner`},[s(`default`)]),t?V(`div`,{class:`${a.value}__footer`},[t]):null])},v=function(t){var n,r=t.target,i=r.scrollTop,a=r.scrollHeight,o=r.clientHeight;p.value&&m(t),(n=e.onScroll)==null||n.call(e,{e:t,scrollTop:i,scrollBottom:a-o-i})},y=U(function(){return Rd(e.asyncLoading)&&[`loading`,`load-more`].includes(e.asyncLoading)?`${a.value}__load ${a.value}__load--${e.asyncLoading}`:`${a.value}__load`}),b=function(){if(e.asyncLoading&&Rd(e.asyncLoading)){if(e.asyncLoading===`loading`)return V(`div`,null,[V(uh,null,null),V(`span`,null,[i.value.loadingText])]);if(e.asyncLoading===`load-more`)return V(`span`,null,[i.value.loadingMoreText])}return s(`asyncLoading`)},x=function(t){var n;Rd(e.asyncLoading)&&e.asyncLoading!==`load-more`||(n=e.onLoadMore)==null||n.call(e,{e:t})};return n({scrollTo:h}),function(){var e=[_(),V(`div`,{class:y.value,onClick:x},[b()])];return V(`div`,{class:g.value,onScroll:v,ref:r,style:p.value?`position:relative`:void 0},[e])}}}),ove=z({name:`TListItemMeta`,props:{avatar:{type:[String,Function]},description:{type:[String,Function]},image:{type:[String,Function]},title:{type:[String,Function]}},setup:function(e,t){var n=Q(`list-item__meta`),r=hm(),i=pm(),a=function(){(e.avatar||t.slots.avatar)&&console.warn("`avatar` is going to be deprecated, please use `image` instead");var i=r(`avatar`,`image`);if(i)return Rd(i)?V(`div`,{class:`${n.value}-avatar`},[V(`img`,{src:i},null)]):V(`div`,{class:`${n.value}-avatar`},[i])};return function(){var e=i(`title`),t=i(`description`),r=[a(),V(`div`,{class:`${n.value}-content`},[e&&V(`h3`,{class:`${n.value}-title`},[e]),t&&V(`p`,{class:`${n.value}-description`},[t])])];return V(`div`,{class:n.value},[r])}}}),sve=X(ave),cve=X(Hj),lve=X(ove),uve={color:{type:[String,Object,Array],default:``},label:{type:[String,Boolean,Function],default:!0},percentage:{type:Number,default:0},size:{type:[String,Number],default:`medium`},status:{type:String,validator:function(e){return!e||[`success`,`error`,`warning`,`active`].includes(e)}},strokeWidth:{type:[String,Number]},theme:{type:String,default:`line`,validator:function(e){return!e||[`line`,`plump`,`circle`].includes(e)}},trackColor:{type:String,default:``}},Jj={LINE:`line`,PLUMP:`plump`,CIRCLE:`circle`},Yj={SMALL:`small`,MEDIUM:`medium`,LARGE:`large`},Xj={SMALL:72,MEDIUM:112,LARGE:160},Zj={SMALL:14/Xj.SMALL,MEDIUM:20/Xj.MEDIUM,LARGE:36/Xj.LARGE},dve=[`success`,`error`,`warning`],fve=X(z({name:`TProgress`,props:uve,setup:function(e){var t=pm(),n=Q(),r=Q(`progress`),i=Tm({CloseCircleFilledIcon:Tg,CheckCircleFilledIcon:Qh,ErrorCircleFilledIcon:Zg,CloseIcon:Og,CheckIcon:ig,ErrorIcon:wce}),a=i.CloseCircleFilledIcon,o=i.CheckCircleFilledIcon,s=i.ErrorCircleFilledIcon,c=i.CloseIcon,l={success:i.CheckIcon,warning:i.ErrorIcon,error:c},u={success:o,warning:s,error:a},d=U(function(){return!e.status&&e.percentage>=100?`success`:e.status||`default`}),f=U(function(){var t={};if(e.strokeWidth){var n=Rd(e.strokeWidth)?e.strokeWidth:`${e.strokeWidth}px`;t.height=n,t.borderRadius=n}return e.trackColor&&(t.backgroundColor=e.trackColor),t}),p=U(function(){return{width:`${e.percentage}%`,background:e.color&&fse(e.color)}}),m=U(function(){return{stroke:Do(e.color)?``:e.color}}),h=U(function(){return{stroke:Do(e.trackColor)?``:e.trackColor}}),g=U(function(){var t=Xj.MEDIUM;if(!e.size)return t;var n=Yj.SMALL,r=Yj.LARGE,i=Yj.MEDIUM;switch(e.size){case n:t=Xj.SMALL;break;case i:t=Xj.MEDIUM;break;case r:t=Xj.LARGE;break;default:var a=Number(e.size);t=!isNaN(a)&&a>0?a:Xj.MEDIUM;break}return t}),_=U(function(){return g.value/2}),v=U(function(){return _.value-b.value/2}),y=U(function(){if(e.theme!==Jj.CIRCLE)return{};var t=g.value*Zj.MEDIUM;return g.value<=Xj.SMALL?t=g.value*Zj.SMALL:g.value>=Xj.LARGE&&(t=g.value*Zj.LARGE),{width:`${g.value}px`,height:`${g.value}px`,fontSize:`${t}px`}}),b=U(function(){var t=e.size===Yj.SMALL?4:6;return e.strokeWidth?Number(e.strokeWidth):t}),x=U(function(){var t=(g.value-b.value)/2,n=Math.PI*2*t,r=e.percentage/100;return`${n*r} ${n*(1-r)}`}),S=U(function(){return e.theme===Jj.CIRCLE?l:u}),C=function(){var t=`${e.percentage}%`,n=e.status||``;if(dve.includes(n)&&e.theme!==Jj.PLUMP){var i=S.value[n];i&&(t=V(i,{class:[`${r.value}__icon`]},null))}return t},w=I(!0),T=I(),E=U(function(){return w.value?`${r.value}--over-ten`:`${r.value}--under-ten`});function D(){return O.apply(this,arguments)}function O(){return O=ly(Ey.mark(function t(){var n;return Ey.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.theme!==Jj.PLUMP){t.next=3;break}if(!(!T.value||e.label===!1)){t.next=1;break}return t.abrupt(`return`);case 1:return t.next=2,dn();case 2:n=T.value.querySelector(`.${r.value}__info`)||T.value.nextElementSibling,w.value=T.value.clientWidth>n?.clientWidth+10;case 3:case`end`:return t.stop()}},t)})),O.apply(this,arguments)}return Nm(T,D),function(){var i=V(`div`,{class:`${r.value}__info`},[t(`label`,C())]);return V(`div`,{class:r.value},[e.theme===Jj.LINE&&V(`div`,{class:[`${r.value}--thin`,`${r.value}--status--${d.value}`,G({},`${n.value}-size-s`,e.size===`small`)]},[V(`div`,{class:`${r.value}__bar`,style:f.value},[V(`div`,{class:`${r.value}__inner`,style:p.value},null)]),i]),e.theme===Jj.PLUMP&&V(`div`,{class:[`${r.value}__bar ${r.value}--plump ${E.value}`,G({},`${r.value}--status--${d.value}`,d.value),G({},`${n.value}-size-s`,e.size===`small`)],style:f.value},[V(`div`,{class:`${r.value}__inner`,ref:T,style:p.value},[w.value&&i]),!w.value&&i]),e.theme===Jj.CIRCLE&&V(`div`,{class:`${r.value}--circle ${r.value}--status--${d.value}`,style:y.value},[i,V(`svg`,{width:g.value,height:g.value,viewBox:`0 0 ${g.value} ${g.value}`},[V(`circle`,{cx:_.value,cy:_.value,r:v.value,"stroke-width":b.value,fill:`none`,class:[`${r.value}__circle-outer`],style:h.value},null),e.percentage>0&&V(`circle`,{cx:_.value,cy:_.value,r:v.value,"stroke-width":b.value,fill:`none`,"stroke-linecap":`round`,class:[`${r.value}__circle-inner`],transform:`matrix(0,-1,1,0,0,${g.value})`,"stroke-dasharray":x.value,style:m.value},null)])])])}}})),pve={animation:{type:String,default:`none`,validator:function(e){return!e||[`gradient`,`flashed`,`none`].includes(e)}},content:{type:[String,Function]},default:{type:[String,Function]},delay:{type:Number,default:0},loading:{type:Boolean,default:!0},rowCol:{type:Array},theme:{type:String,default:`text`,validator:function(e){return!e||[`text`,`avatar`,`paragraph`,`avatar-text`,`tab`,`article`].includes(e)}}},mve={text:[1],avatar:[{type:`circle`,size:`56px`}],paragraph:[1,1,{width:`70%`}],"avatar-text":[[{type:`circle`},{type:`text`,height:`32px`}]],tab:[{height:`30px`},{height:`200px`}],article:[{type:`rect`,height:`30px`,width:`100%`},{type:`rect`,height:`200px`,width:`100%`},[{type:`text`,height:`30px`},{type:`text`,height:`30px`},{type:`text`,height:`30px`}],[{type:`text`,height:`30px`},{type:`text`,height:`30px`}],[{type:`text`,height:`30px`},{type:`text`,height:`30px`}],[{type:`text`,height:`30px`},{type:`text`,height:`30px`}]]},hve=function(e){var t=[`width`,`height`,`marginRight`,`marginLeft`,`margin`,`size`,`background`,`backgroundColor`],n=Object.create(null);return t.forEach(function(t){if(t in e){var r=e[t],i=nf(r)?`${r}px`:r;if(t===`size`){var a=[i,i];n.width=a[0],n.height=a[1]}else n[t]=i}}),n},Qj=X(z({name:`TSkeleton`,props:pve,setup:function(e,t){var n=t.slots,r=I(!1),i=Q(`skeleton`),a=hm(),o=function(t){return[`${i.value}__col`,`${i.value}--type-${t.type||`text`}`,G({},`${i.value}--animation-${e.animation}`,e.animation)]},s=function(e){var t=[];return t=K(e)?e:nf(e)?Array(e).fill({type:`text`}):[e],t.map(function(e){return V(`div`,{class:o(e),style:hve(e)},[q(e.content)?e.content(sa):e.content])})},c=function(t){var n=t||e.rowCol,r=function(){return[`${i.value}__row`]};return n.map(function(e){return V(`div`,{class:r()},[s(e)])})},l=null;return R(function(){return e.loading},function(t){if(!t){clearTimeout(l),r.value=!1;return}e.delay>0?l=setTimeout(function(){clearTimeout(l),r.value=!0},e.delay):r.value=!0},{immediate:!0}),function(){var t=a(`default`,`content`);if(n.default&&!r.value)return V(`div`,null,[t]);if(r.value){var o=[];return e.theme&&!e.rowCol&&o.push(c(mve[e.theme])),e.rowCol&&o.push(c(e.rowCol)),!e.theme&&!e.rowCol&&o.push(c([1,1,1,{width:`70%`}])),V(`div`,{class:i.value},[o])}}}})),gve={animation:{type:Object},animationStart:Boolean,color:{type:String,default:``},decimalPlaces:{type:Number},extra:{type:[String,Function]},format:{type:Function},loading:Boolean,prefix:{type:[String,Function]},separator:{type:String,default:`,`},suffix:{type:[String,Function]},title:{type:[String,Function]},trend:{type:String,validator:function(e){return!e||[`increase`,`decrease`].includes(e)}},trendPlacement:{type:String,default:`left`,validator:function(e){return!e||[`left`,`right`].includes(e)}},unit:{type:[String,Function]},value:{type:Number}},$j=function(e){return 1-Math.abs((e-1)**4)},_ve=function(){function e(t){var n=this,r=t.from,i=t.to,a=t.duration,o=a===void 0?200:a,s=t.onStart,c=t.onUpdate,l=c===void 0?function(){}:c,u=t.onFinish;Xp(this,e),G(this,`from`,void 0),G(this,`to`,void 0),G(this,`duration`,void 0),G(this,`onStart`,void 0),G(this,`onUpdate`,void 0),G(this,`onFinish`,void 0),G(this,`startTime`,void 0),G(this,`started`,void 0),G(this,`finished`,void 0),G(this,`timer`,void 0),G(this,`keys`,void 0),G(this,`time`,0),G(this,`elapsed`,0),this.from=r,this.to=i,this.duration=o,this.onStart=s,this.onUpdate=l,this.onFinish=u,this.startTime=Date.now(),this.started=!1,this.finished=!1,this.timer=null,this.keys={},Object.entries(r).forEach(function(e){var t=Y(e,2),r=t[0],i=t[1];n.to[r]===void 0&&(n.to[r]=i)}),Object.entries(i).forEach(function(e){var t=Y(e,2),r=t[0],i=t[1];n.from[r]===void 0&&(n.from[r]=i)})}return Yp(e,[{key:`update`,value:function(){var e=this;if(this.time=Date.now(),!(this.time<this.startTime||this.finished)){if(this.elapsed>=this.duration){var t;this.finished=!0,(t=this.onFinish)==null||t.call(this,this.keys);return}var n=Math.min(this.time-this.startTime,this.duration);this.elapsed=n;var r=$j(n/this.duration);if(Object.keys(this.to).forEach(function(t){var n=e.to[t]-e.from[t];e.keys[t]=e.from[t]+n*r}),!this.started){var i;(i=this.onStart)==null||i.call(this,this.keys),this.started=!0}this.onUpdate(this.keys)}}},{key:`polyfillStart`,value:function(){var e=this,t=$j((Date.now()-this.startTime)/this.duration);this.timer=setInterval(function(){e.update(),e.finished&&clearInterval(e.timer)},t)}},{key:`normalStart`,value:function(){var e=this,t=function(){e.update(),e.timer=requestAnimationFrame(t),e.finished&&(cancelAnimationFrame(e.timer),e.timer=null)};t()}},{key:`start`,value:function(){this.startTime=Date.now(),Zm()<10?this.polyfillStart():this.normalStart()}},{key:`stop`,value:function(){Zm()<10?clearInterval(this.timer):cancelAnimationFrame(this.timer),this.timer=null}}])}(),vve={black:`var(--td-text-color-primary)`,blue:`var(--td-brand-color)`,red:`var(--td-error-color)`,orange:`var(--td-warning-color)`,green:`var(--td-success-color)`};function yve(e,t,n){var r={minimumFractionDigits:t??0,maximumFractionDigits:t??20,useGrouping:!!n};return e.toLocaleString(void 0,r).replace(/,|,/g,n)}var bve=X(z({name:`TStatistic`,props:gve,setup:function(e,t){var n=t.expose,r=Q(`statistic`),i=pm(),a=Tm({ArrowTriangleUpFilledIcon:Fse,ArrowTriangleDownFilledIcon:Nse}),o=a.ArrowTriangleUpFilledIcon,s=a.ArrowTriangleDownFilledIcon,c={increase:V(o,null,null),decrease:V(s,null,null)},l=U(function(){return nf(e.value)?e.value:0}),u=I(e.animation?.valueFrom??e.value),d=U(function(){return e.decimalPlaces??l.value.toString().split(`.`)[1]?.length??0}),f=I(),p=Wt(e).value,m=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.animation?.valueFrom??0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l.value;if(t!==n){var r;f.value=new _ve({from:{value:t},to:{value:n},duration:e.animation.duration,onUpdate:function(e){u.value=Number(e.value.toFixed(d.value))},onFinish:function(){u.value=n}}),(r=f.value)==null||r.start()}},h=U(function(){return q(e.format)?e.format(u.value):yve(u.value,e.decimalPlaces,e.separator)}),g=U(function(){return{color:vve[e.color]||e.color}});return R(function(){return e.animationStart},function(t){e.animation&&t&&!f.value&&m()}),R(p,function(t){if(f.value){var n;(n=f.value)==null||n.stop(),f.value=null}u.value=t,e.animationStart&&e.animation&&m()}),mr(function(){return e.animation&&e.animationStart&&m()}),n({start:m,contentStyle:g}),function(){var t=e.trend?c[e.trend]:null,n=i(`prefix`)||(t&&e.trendPlacement!==`right`?t:null),a=i(`suffix`)||(t&&e.trendPlacement===`right`?t:null),o=i(`title`),s=i(`unit`),l=i(`extra`);return V(`div`,{class:r.value},[o&&V(`div`,{class:`${r.value}-title`},[o]),V(Qj,{animation:`gradient`,theme:`text`,loading:!!e.loading},{default:function(){return[V(`div`,{class:`${r.value}-content`,style:g.value},[n&&V(`span`,{class:`${r.value}-content-prefix`},[n]),V(`span`,{class:`${r.value}-content-value`},[h.value]),s&&V(`span`,{class:`${r.value}-content-unit`},[s]),a&&V(`span`,{class:`${r.value}-content-suffix`},[a])])]}}),l&&V(`div`,{class:`${r.value}-extra`},[l])])}}})),eM={animation:{type:String,default:`slide`,validator:function(e){return!e||[`slide`,`fade`].includes(e)}},autoplay:{type:Boolean,default:!0},cardScale:{type:Number,default:210/332},current:{type:Number,default:0},defaultCurrent:{type:Number,default:0},direction:{type:String,default:`horizontal`,validator:function(e){return!e||[`horizontal`,`vertical`].includes(e)}},duration:{type:Number,default:300},height:{type:Number},interval:{type:Number,default:5e3},loop:{type:Boolean,default:!0},navigation:{type:[Object,Function]},stopOnHover:{type:Boolean,default:!0},trigger:{type:String,default:`hover`,validator:function(e){return!e||[`hover`,`click`].includes(e)}},type:{type:String,default:`default`,validator:function(e){return!e||[`default`,`card`].includes(e)}},onChange:Function};function tM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tM(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var xve={index:{type:Number},currentIndex:{type:Number},isSwitching:{type:Boolean,default:!1},swiperWidth:{type:Number,default:0},swiperItemLength:{type:Number,default:0}},rM=.415,iM=z({name:`TSwiperItem`,props:nM(nM({},eM),xve),setup:function(e,t){var n=t.slots,r=Q(),i=U(function(){return e.index===e.currentIndex}),a=U(function(){return e.type===`card`?e.currentIndex===0&&e.index===e.swiperItemLength-1?-1:e.currentIndex===e.swiperItemLength-1&&e.index===0?e.swiperItemLength:e.index<e.currentIndex-1&&e.currentIndex-e.index>=e.swiperItemLength/2?e.swiperItemLength+1:e.index>e.currentIndex+1&&e.index-e.currentIndex>=e.swiperItemLength/2?-2:e.index:0}),o=U(function(){if(e.type!==`card`)return 0;var t=e.swiperWidth,n=!i.value&&e.swiperItemLength>2?a.value:e.index;return Math.abs(n-e.currentIndex)<=1?t*((n-e.currentIndex)*(1-rM*e.cardScale)-rM+1)/2:n<e.currentIndex?-rM*(1+e.cardScale)*t/2:(2+rM*(e.cardScale-1))*t/2}),s=U(function(){if(e.type!==`card`)return 0;var t=!i.value&&e.swiperItemLength>2?a.value:e.index,n=t===e.currentIndex,r=Math.round(Math.abs(t-e.currentIndex))<=1;return n?2:+!!r}),c=U(function(){if(e.animation===`fade`)return{opacity:+!!i.value,transition:e.isSwitching?`opacity ${e.duration/1e3}s`:``,zIndex:+!!i.value};if(e.type===`card`){var t=(!i.value&&e.swiperItemLength>2?a.value:e.index)===e.currentIndex;return{transform:`translateX(${o.value}px) scale(${t?1:e.cardScale})`,transition:`transform ${e.duration/1e3}s ease`,zIndex:s.value}}return{}});return function(){return V(`div`,{class:[`${r.value}-swiper__container__item`,G(G(G({},`${r.value}-swiper__card`,e.type===`card`),`${r.value}-is-active`,e.type===`card`&&i.value),`${r.value}-swiper__fade`,e.animation===`fade`)],style:c.value},[n.default?.call(n,{})||[]])}}});function aM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?aM(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sve(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var Cve={placement:`inside`,showSlideBtn:`always`,size:`medium`,type:`bars`},wve=X(z({name:`TSwiper`,props:eM,emits:[`update:current`],setup:function(e,t){var n=t.emit,r=Q(),i=pm(),a=Tm({ChevronLeftIcon:fg,ChevronRightIcon:yg}),o=a.ChevronLeftIcon,s=a.ChevronRightIcon,c=null,l=0,u=!1,d=!1,f=I(e.current||e.defaultCurrent),p=I(e.current||e.defaultCurrent),m=I(!1),h=I(!1),g=I(!1),_=I(),v=I({width:0,height:0}),y=I(0),b=om(),x=U(function(){return oM(oM({},Cve),Mi(e.navigation)?{}:e.navigation)}),S=U(function(){return e.type===`card`?!e.loop&&f.value+1>=y.value:!e.loop&&f.value+2>=y.value}),C=U(function(){return[e.autoplay,f.value,e.duration,e.interval]}),w=U(function(){return G(G(G(G(G(G({},`${r.value}-swiper__wrap`,!0),`${r.value}-swiper--inside`,x.value.placement===`inside`),`${r.value}-swiper--outside`,x.value.placement===`outside`),`${r.value}-swiper--vertical`,e.direction===`vertical`),`${r.value}-swiper--large`,x.value.size===`large`),`${r.value}-swiper--small`,x.value.size===`small`)}),T=U(function(){var t=e.height?`${e.height}px`:`${v.value.height}px`;if(e.type===`card`||e.animation===`fade`)return{height:t};if(e.animation===`slide`){var n={transition:h.value?`transform ${e.duration/1e3}s ease`:``},r=f.value;return y.value>1&&(r+=1,(u||d)&&(n.transition=``)),e.direction===`vertical`?(n.height=t,n.transform=`translate3d(0, -${r*100}%, 0px)`):n.transform=`translate3d(-${r*100}%, 0px, 0px)`,[`msTransform`,`WebkitTransform`].forEach(function(e){n[e]=n.transform}),n}return{}}),E=function(){var t=b(`SwiperItem`);y.value=t.length;var n=t.map(function(t,n){var r,i=oM(oM({},e),t.props);return V(iM,H({index:n,currentIndex:f.value,isSwitching:h.value,swiperWidth:v.value.width,swiperItemLength:y.value},i),Sve(r=t.children.default())?r:{default:function(){return[r]}})});if(e.animation===`slide`&&n.length>1){var r=Ri(n[0],{key:`swiper-item-append-0`}),i=Ri(n[n.length-1],{key:`swiper-item-prepend-${n.length-1}`});n.unshift(i),n.push(r)}return n},D=function(t,r){var i,a=t%y.value;p.value=a,n(`update:current`,a),(i=e.onChange)==null||i.call(e,a,r),h.value=!0,e.animation===`slide`&&y.value>1&&e.type!==`card`&&(a=t,u=!1,d=!1,t>=y.value&&(O(),setTimeout(function(){d=!0,f.value=0},e.duration)),f.value===0&&y.value>=2&&t===y.value-1&&(a=-1,p.value=y.value-1,O(),setTimeout(function(){u=!0,f.value=y.value-1},e.duration))),f.value=a},O=function(){c&&=(clearTimeout(c),null)},k=function(){e.autoplay&&e.interval>0&&(O(),c=setTimeout(function(){D(f.value+1,{source:`autoplay`})},f.value===0?e.interval-(e.duration+50):e.interval))},A=function(){m.value=!0,e.stopOnHover&&O(),x.value.showSlideBtn===`hover`&&(g.value=!0)},j=function(){m.value=!1,S.value||k(),x.value.showSlideBtn===`hover`&&(g.value=!1)},M=function(t){e.trigger===`hover`&&D(t,{source:`hover`})},ee=function(t){e.trigger===`click`&&D(t,{source:`click`})},N=function(t){if(!h.value)return e.type===`card`?D(f.value+1>=y.value?0:f.value+1,t):D(f.value+1,t)},P=function(t){if(!h.value)return f.value-1<0?e.animation===`slide`&&y.value===2?D(0,t):D(y.value-1,t):D(f.value-1,t)},F=function(){var e=f.value+1>y.value?1:f.value+1;return V(`div`,{class:`${r.value}-swiper__arrow`},[V(`div`,{class:`${r.value}-swiper__arrow-left`,onClick:function(){return P({source:`click`})}},[V(o,null,null)]),V(`div`,{class:`${r.value}-swiper__navigation-text-fraction`},[e,`/`,y.value]),V(`div`,{class:`${r.value}-swiper__arrow-right`,onClick:function(){return N({source:`click`})}},[V(s,null,null)])])},te=function(){return g.value?V(`div`,{class:[`${r.value}-swiper__arrow`,`${r.value}-swiper__arrow--default`]},[V(`div`,{class:`${r.value}-swiper__arrow-left`,onClick:function(){return P({source:`click`})}},[V(o,null,null)]),V(`div`,{class:`${r.value}-swiper__arrow-right`,onClick:function(){return N({source:`click`})}},[V(s,null,null)])]):null},ne=function(){if(Mi(e.navigation))return e.navigation;var t=i(`navigation`);if(t&&Mi(t?.[0]))return t;if(x.value.type===`fraction`)return V(`div`,{class:[`${r.value}-swiper__navigation`,`${r.value}-swiper__navigation--fraction`]},[F()]);var n=b(`SwiperItem`);return V(`ul`,{class:[`${r.value}-swiper__navigation`,G(G(G({},`${r.value}-swiper__navigation-bars`,x.value.type===`bars`),`${r.value}-swiper__navigation-dots`,x.value.type===`dots`),`${r.value}-swiper__navigation-dots-bar`,x.value.type===`dots-bar`)]},[n.map(function(e,t){return V(`li`,{key:t,class:[`${r.value}-swiper__navigation-item`,G({},`${r.value}-is-active`,t===p.value)],onMouseenter:function(){return M(t)},onClick:function(){return ee(t)}},[V(`span`,null,null)])})])},re=function(){return E()};return R(function(){return C.value},function(){k()}),R(function(){return h.value},function(){h.value&&(l&&clearTimeout(l),l=setTimeout(function(){h.value=!1,l=0,S.value&&O()},e.duration+50))}),R(function(){return e.current},function(){D(e.current,{source:`autoplay`})}),mr(function(){k(),g.value=x.value.showSlideBtn===`always`}),Nm(_,function(){var e=_.value?.parentNode;e&&(v.value={width:e.offsetWidth||0,height:e.offsetHeight||0})}),function(){return V(`div`,{class:[`${r.value}-swiper`],onMouseenter:A,onMouseleave:j,ref:_},[V(`div`,{class:w.value},[V(`div`,{class:[`${r.value}-swiper__content`,G(G({},`${r.value}-swiper-fade`,e.animation===`fade`),`${r.value}-swiper-card`,e.type===`card`)]},[V(`div`,{class:`${r.value}-swiper__container`,style:T.value},[re()])]),ne(),te()])])}}})),Tve=X(iM),sM={activeRowKeys:{type:Array,default:void 0},defaultActiveRowKeys:{type:Array,default:function(){return[]}},activeRowType:{type:String,default:``},allowResizeColumnWidth:{type:Boolean,default:void 0},attach:{type:[String,Function]},bordered:Boolean,bottomContent:{type:[String,Function]},cellEmptyContent:{type:[String,Function]},columns:{type:Array,default:function(){return[]}},data:{type:Array,default:function(){return[]}},disableDataPage:Boolean,disableSpaceInactiveRow:{type:Boolean,default:void 0},empty:{type:[String,Function],default:``},firstFullRow:{type:[String,Function]},fixedRows:{type:Array},footData:{type:Array,default:function(){return[]}},footerAffixProps:{type:Object},footerAffixedBottom:{type:[Boolean,Object],default:!1},footerSummary:{type:[String,Function]},headerAffixProps:{type:Object},headerAffixedTop:{type:[Boolean,Object],default:!1},height:{type:[String,Number]},horizontalScrollAffixedBottom:{type:[Boolean,Object]},hover:Boolean,keyboardRowHover:{type:Boolean,default:!0},lastFullRow:{type:[String,Function]},lazyLoad:Boolean,loading:{type:[Boolean,Function],default:void 0},loadingProps:{type:Object},locale:{type:Object},maxHeight:{type:[String,Number]},pagination:{type:Object},paginationAffixedBottom:{type:[Boolean,Object]},resizable:Boolean,rowAttributes:{type:[Object,Array,Function]},rowClassName:{type:[String,Object,Array,Function]},rowKey:{type:String,default:`id`,required:!0},rowspanAndColspan:{type:Function},rowspanAndColspanInFooter:{type:Function},scroll:{type:Object},showHeader:{type:Boolean,default:!0},size:{type:String,validator:function(e){return!e||[`small`,`medium`,`large`].includes(e)}},stripe:Boolean,tableContentWidth:{type:String,default:``},tableLayout:{type:String,default:`fixed`,validator:function(e){return!e||[`auto`,`fixed`].includes(e)}},topContent:{type:[String,Function]},verticalAlign:{type:String,default:`middle`,validator:function(e){return!e||[`top`,`middle`,`bottom`].includes(e)}},onActiveChange:Function,onActiveRowAction:Function,onCellClick:Function,onColumnResizeChange:Function,onPageChange:Function,onRowClick:Function,onRowDblclick:Function,onRowMousedown:Function,onRowMouseenter:Function,onRowMouseleave:Function,onRowMouseover:Function,onRowMouseup:Function,onScroll:Function,onScrollX:Function,onScrollY:Function};function cM(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=n,i=0,a=e.length;i<a;i++){var o,s=e[i];if(t.set(s,n),s!=null&&(o=s.children)!=null&&o.length){var c=cM(s.children,t,n+1);c>r&&(r=c)}}return r}function lM(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e?.children||[],r=0,i=n.length;r<i;r++){var a=n[r];a.children?t=lM(a,t):t+=1}return t}function Eve(e){var t=new Map,n=cM(e,t),r=new Map,i=function(e,a){for(var o=0,s=e.length;o<s;o++){var c,l=e[o],u=l.children?1:n-t.get(l)+1,d=l.children?lM(l):1,f={};u>1&&(f.rowspan=u),d>1&&(f.colspan=d),r.set(l,f),l!=null&&(c=l.children)!=null&&c.length?i(l.children,a):a.push(l)}},a=[];return i(e,a),{rowspanAndColspanMap:r,leafColumns:a}}function Dve(e){var t=function(e,n){for(var r,i=[],a=[],o=0,s=e.length;o<s;o++){var c,l=e[o],u=[l];i=i.concat(u),l!=null&&(c=l.children)!=null&&c.length&&(a=a.concat(l.children))}return(r=a)!=null&&r.length&&t(a,n),n.push(i),i},n=[];return t(e,n),n=n.reverse(),n}function uM(){var e=Q();return{classPrefix:e.value,tableBaseClass:{table:`${e.value}-table`,columnResizableTable:`${e.value}-table--column-resizable`,overflowVisible:`${e.value}-table--overflow-visible`,body:`${e.value}-table__body`,content:`${e.value}-table__content`,topContent:`${e.value}-table__top-content`,bottomContent:`${e.value}-table__bottom-content`,paginationWrap:`${e.value}-table__pagination-wrap`,tdLastRow:`${e.value}-table__td-last-row`,tdFirstCol:`${e.value}-table__td-first-col`,thCellInner:`${e.value}-table__th-cell-inner`,tableRowEdit:`${e.value}-table--row-edit`,cellEditable:`${e.value}-table__cell--editable`,cellEditWrap:`${e.value}-table__cell-wrap`,bordered:`${e.value}-table--bordered`,striped:`${e.value}-table--striped`,hover:`${e.value}-table--hoverable`,loading:`${e.value}-table--loading`,rowspanAndColspan:`${e.value}-table--rowspan-colspan`,empty:`${e.value}-table__empty`,emptyRow:`${e.value}-table__empty-row`,headerFixed:`${e.value}-table--header-fixed`,columnFixed:`${e.value}-table--column-fixed`,widthOverflow:`${e.value}-table--width-overflow`,multipleHeader:`${e.value}-table--multiple-header`,footerAffixed:`${e.value}-table--footer-affixed`,horizontalBarAffixed:`${e.value}-table--horizontal-bar-affixed`,affixedHeader:`${e.value}-table--affixed-header`,affixedHeaderElm:`${e.value}-table__affixed-header-elm`,affixedFooterElm:`${e.value}-table__affixed-footer-elm`,affixedFooterWrap:`${e.value}-table__affixed-footer-wrap`,scrollbarDivider:`${e.value}-table__scroll-bar-divider`,fullHeight:`${e.value}-table--full-height`,resizeLine:`${e.value}-table__resize-line`,obviousScrollbar:`${e.value}-table__scrollbar--obvious`,affixedHeaderWrap:`${e.value}-table__affixed-header-elm-wrap`},tdAlignClasses:{left:`${e.value}-align-left`,right:`${e.value}-align-right`,center:`${e.value}-align-center`},tableHeaderClasses:{header:`${e.value}-table__header`,thBordered:`${e.value}-table__header-th--bordered`,fixed:`${e.value}-table__header--fixed`,multipleHeader:`${e.value}-table__header--multiple`},tableFooterClasses:{footer:`${e.value}-table__footer`,fixed:`${e.value}-table__footer--fixed`},tableAlignClasses:{top:`${e.value}-vertical-align-top`,middle:`${e.value}-vertical-align-middle`,bottom:`${e.value}-vertical-align-bottom`},tableRowFixedClasses:{top:`${e.value}-table__row--fixed-top`,bottom:`${e.value}-table__row--fixed-bottom`,firstBottom:`${e.value}-table__row--fixed-bottom-first`,withoutBorderBottom:`${e.value}-table__row--without-border-bottom`},tableColFixedClasses:{left:`${e.value}-table__cell--fixed-left`,right:`${e.value}-table__cell--fixed-right`,lastLeft:`${e.value}-table__cell--fixed-left-last`,firstRight:`${e.value}-table__cell--fixed-right-first`,leftShadow:`${e.value}-table__content--scrollable-to-left`,rightShadow:`${e.value}-table__content--scrollable-to-right`},tableLayoutClasses:{auto:`${e.value}-table--layout-auto`,fixed:`${e.value}-table--layout-fixed`},tdEllipsisClass:`${e.value}-table-td--ellipsis`,tableFullRowClasses:{base:`${e.value}-table__row--full`,innerFullRow:`${e.value}-table__row-full-inner`,innerFullElement:`${e.value}-table__row-full-element`,firstFullRow:`${e.value}-table__first-full-row`,lastFullRow:`${e.value}-table__last-full-row`},tableExpandClasses:{iconBox:`${e.value}-table__expand-box`,iconCell:`${e.value}-table__expandable-icon-cell`,rowExpanded:`${e.value}-table__row--expanded`,rowFolded:`${e.value}-table__row--folded`,row:`${e.value}-table__expanded-row`,rowInner:`${e.value}-table__expanded-row-inner`,expanded:`${e.value}-table__row--expanded`,collapsed:`${e.value}-table__row--collapsed`},tableSortClasses:{sortable:`${e.value}-table__cell--sortable`,sortColumn:`${e.value}-table__sort-column`,title:`${e.value}-table__cell--title`,trigger:`${e.value}-table__cell--sort-trigger`,doubleIcon:`${e.value}-table__double-icons`,sortIcon:`${e.value}-table__sort-icon`,iconDirection:{asc:`${e.value}-table-sort-asc`,desc:`${e.value}-table-sort-desc`},iconActive:`${e.value}-table__sort-icon--active`,iconDefault:`${e.value}-icon-sort--default`},tableSelectedClasses:{selected:`${e.value}-table__row--selected`,disabled:`${e.value}-table__row--disabled`,checkCell:`${e.value}-table__cell-check`},tableFilterClasses:{filterable:`${e.value}-table__cell--filterable`,popup:`${e.value}-table__filter-pop`,icon:`${e.value}-table__filter-icon`,popupContent:`${e.value}-table__filter-pop-content`,result:`${e.value}-table__filter-result`,inner:`${e.value}-table__row-filter-inner`,bottomButtons:`${e.value}-table__filter--bottom-buttons`,contentInner:`${e.value}-table__filter-pop-content-inner`,iconWrap:`${e.value}-table__filter-icon-wrap`},asyncLoadingClass:`${e.value}-table__async-loading`,isFocusClass:`${e.value}-is-focus`,isLoadingClass:`${e.value}-is-loading`,isLoadMoreClass:`${e.value}-is-load-more`,tableTreeClasses:{col:`${e.value}-table__tree-col`,inlineCol:`${e.value}-table__tree-col--inline`,icon:`${e.value}-table__tree-op-icon`,leafNode:`${e.value}-table__tree-leaf-node`},tableDraggableClasses:{rowDraggable:`${e.value}-table--row-draggable`,rowHandlerDraggable:`${e.value}-table--row-handler-draggable`,colDraggable:`${e.value}-table--col-draggable`,handle:`${e.value}-table__handle-draggable`,ghost:`${e.value}-table__ele--draggable-ghost`,chosen:`${e.value}-table__ele--draggable-chosen`,dragging:`${e.value}-table__ele--draggable-dragging`,dragSortTh:`${e.value}-table__th--drag-sort`},virtualScrollClasses:{cursor:`${e.value}-table__virtual-scroll-cursor`,header:`${e.value}-table__virtual-scroll-header`},positiveRotate90:`${e.value}-positive-rotate-90`,negativeRotate180:`${e.value}-negative-rotate-180`}}function dM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ove(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?dM(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kve(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var fM=z({name:`TEllipsis`,props:{content:{type:[String,Function]},default:{type:[String,Function]},tooltipContent:{type:[String,Number,Function]},placement:String,attach:[String,Function],tooltipProps:Object,zIndex:Number,overlayClassName:String,classPrefix:{type:String,default:`t`}},setup:function(e){var t=I(),n=I(!1),r=I(!1),i=hm(),a=U(function(){return[`${e.classPrefix}-table__ellipsis`,`${e.classPrefix}-text-ellipsis`]}),o=U(function(){return[`${e.classPrefix}-table__ellipsis-content`,e.overlayClassName]});mr(function(){r.value=vp(t.value)}),gr(function(){r.value=vp(t.value)});var s=function(){t.value&&(r.value=vp(t.value),n.value=!0)},c=function(){t.value},l=function(e){e||(n.value=!1)},u=md(function(e){e.type===`mouseleave`?c():s()},80);return function(){var s=i(`default`,`content`),c=V(`div`,{ref:t,class:a.value,onMouseenter:u,onMouseleave:u,style:{textOverflow:r.value?`ellipsis`:`clip`}},[s]),d=e.tooltipProps;return V(Gx,Ove({content:r.value&&n.value?e.tooltipContent||function(){return s}:``,destroyOnClose:!0,hideEmptyPopup:!0,zIndex:e.zIndex,attach:e.attach,placement:e.placement,overlayClassName:d!=null&&d.overlayClassName?o.value.concat(d.overlayClassName):o.value,onVisibleChange:l},d),kve(c)?c:{default:function(){return[c]}})}}});function pM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?pM(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ave(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}function hM(e,t,n){var r={col:t,colIndex:n};return q(t.title)?t.title(sa,r):Rd(t.title)&&e[t.title]?e[t.title](r):q(t.render)&&t.render(sa,mM(mM({},r),{},{type:`title`,row:{},rowIndex:-1}))||t.title}function gM(e){var t=uM(),n=t.tableSortClasses,r=t.tableFilterClasses,i=U(function(){return Eve(e.columns)}),a=U(function(){return Dve(e.columns)});return{thList:a,isMultipleHeader:U(function(){return a.value.length>1}),spansAndLeafNodes:i,renderTitleWidthIcon:function(t,i,a,o,s,c){var l=Y(t,3),u=l[0],d=l[1],f=l[2],p=G(G({},n.sortable,d),r.filterable,f),m=q(o)?o(sa,{col:i,colIndex:a}):void 0,h=o===void 0?!!i.ellipsis:!!o;return V(`div`,{class:p},[V(`div`,{class:n.title},[h?V(fM,{placement:`bottom`,attach:e.attach||(s?function(){return s}:void 0),tooltipContent:m&&function(){return m},tooltipProps:so(o)===`object`?o:void 0,classPrefix:c?.classPrefix,overlayClassName:c?.ellipsisOverlayClassName},Ave(u)?u:{default:function(){return[u]}}):V(`div`,null,[u]),!!(d||f)&&V(`div`,{class:r.iconWrap},[d,f])])])}}}function _M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jve(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_M(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_M(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Mve=80,Nve=600,vM=8;function Pve(e){var t=e.isWidthOverflow,n=e.tableContentRef,r=e.showColumnShadow,i=e.getThWidthList,a=e.updateThWidthList,o=e.setTableElmWidth,s=e.updateTableAfterColumnResize,c=e.onColumnResizeChange,l=I(),u=I({}),d=I([]),f,p;mr(function(){var e=typeof document<`u`;f=e?document.onselectstart:null,p=e?document.ondragstart:null});var m=function(e,t,n){for(var r=t;e[r]&&e[r].resizable===!1;)n===`next`?r+=1:--r;return e[r]},h=function(e,t){e&&(d.value=e,e.forEach(function(n,r){var i=m(e,r-1,`prev`),a=m(e,r+1,`next`),o=t?u.value[t.colKey].prev:a,s=t?u.value[t.colKey].next:i,c=r===0?o:i,l=r===e.length-1?s:a;u.value[n.colKey]={prev:c,next:l,current:{prevSibling:m(e,r-1,`prev`),nextSibling:m(e,r+1,`next`)}},h(n.children,n)}))},g={isDragging:!1,draggingCol:null,draggingStart:0,effectCol:`next`},_=Dt({display:`none`,height:`10px`,left:`10px`,bottom:`0`}),v=function(e){return e.fixed===`right`&&r.right},y=function(e,t){if(!(!l.value||g.isDragging||!e.target)){var n=e.target.closest(`th`),r=n.getAttribute(`data-colkey`);if(d.value.find(function(e){return e.colKey===r})){var i=n.getBoundingClientRect(),a=i.right-e.pageX<=vM,o=e.pageX-i.left<=vM,s=v(t);if(a||s){if(t.resizable??!0){n.style.cursor=a||s&&o?`col-resize`:``,g.draggingCol=a&&!s||s&&o?n:n.nextElementSibling,g.effectCol=`next`;return}}else if(o){var c=n.previousElementSibling;if(c&&(u.value[t.colKey]?.prev?.resizable??!0)){n.style.cursor=`col-resize`,g.draggingCol=c,g.effectCol=`prev`;return}}n.style.cursor=``,g.draggingCol=null,g.effectCol=null}}},b=function(e){var t=nf(e.minWidth)?e.minWidth:parseInt(e.minWidth||`0`,10);return{minColWidth:Math.max(e.resize?.minWidth||Mve,t),maxColWidth:e.resize?.maxWidth||Nve}},x=function(e,t,n,r){var i=n.right-r.left,a=n.left-r.left,o=b(g.effectCol===`next`?e:t),s=o.minColWidth,c=o.maxColWidth;return{resizeLinePos:i,minResizeLineLeft:a+s,maxResizeLineLeft:a+c}},S=function(e,t,n,r,i){var a=r.left-i.left,o=e.dataset.colkey===t.colKey?t:n,s=r.left-i.left,c=b(o),l=c.minColWidth,u=c.maxColWidth;return{resizeLinePos:a,minResizeLineLeft:s+(r.width-u),maxResizeLineLeft:s+(r.width-l)}},C=function(e,t){var n=e.left-t.left,r=e.left-t.left;return{resizeLinePos:n,minResizeLineLeft:r,maxResizeLineLeft:r}},w=function(e){var t=0;return d.value.forEach(function(n){t+=e[n.colKey]}),t},T=function(e,n,r,i){var a=!0;if(n){var o=b(n),s=o.minColWidth,c=o.maxColWidth,l=e[n.colKey]+r;a=l<s||l>c}return!(a||t.value||i===d.value.length-1)},E=function(e,t,n,r){return t?x(e,t,n,r):C(n,r)};return{resizeLineRef:l,resizeLineStyle:_,onColumnMouseover:y,onColumnMousedown:function(e,t,r){if(g.draggingCol){var d=g.draggingCol,m=d.getBoundingClientRect(),h=n.value?.getBoundingClientRect(),y=u.value[t.colKey]?.next,b=u.value[t.colKey]?.prev,x=v(t)?S(d,t,y,m,h):E(t,y,m,h),C=x.resizeLinePos,D=x.minResizeLineLeft,O=x.maxResizeLineLeft;g.isDragging=!0,g.draggingStart=e.x,l!=null&&l.value&&(_.display=`block`,_.height=`${h.bottom-m.top}px`,_.left=`${C}px`,_.bottom=`${n.value.parentElement.getBoundingClientRect().bottom-h.bottom}px`);var k=function(){if(g.isDragging){var e=C-parseFloat(_.left)||0,n=i(`calculate`),l=u.value[t.colKey]?.current;if(l){var m=g.effectCol===`next`?l.nextSibling:l.prevSibling,h=jve({},n),x=t.resizable===!1?m:t,S=T(h,g.effectCol===`next`?l.nextSibling:t,e,r);g.effectCol===`next`?v(t)?d.dataset.colkey===t.colKey?h[x.colKey]+=e:h[y.colKey]+=e:(h[x.colKey]-=e,S&&(h[y.colKey]+=e)):g.effectCol===`prev`&&(S&&(h[x.colKey]+=e),b&&(h[b.colKey]-=e)),a(h);var E=w(h);o(Math.round(E)),s(),g.isDragging=!1,g.draggingCol=null,g.effectCol=null,d.style.cursor=``,_.display=`none`,_.left=`0`,lp(document,`mouseup`,k),lp(document,`mousemove`,A),document.onselectstart=f,document.ondragstart=p,c?.({columnsWidth:h})}}},A=function(e){if(g.isDragging){var t=C+e.x-g.draggingStart;_.left=`${Math.min(Math.max(t,D),O)}px`}};cp(document,`mouseup`,k),cp(document,`mousemove`,A),document.onselectstart=function(){return!1},document.ondragstart=function(){return!1}}},setEffectColMap:h}}function yM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yM(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xM(e,t,n,r){var i=n?.get(e.colKey||t);if(!i)return{};var a=G(G(G(G({},r.left,e.fixed===`left`),r.right,e.fixed===`right`),r.lastLeft,e.fixed===`left`&&i.lastLeftFixedCol),r.firstRight,e.fixed===`right`&&i.firstRightFixedCol);return{style:{left:e.fixed===`left`?`${i.left}px`:void 0,right:e.fixed===`right`?`${i.right}px`:void 0},classes:a}}function Fve(e,t,n,r,i,a){var o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0;if(!r||!r.length)return{style:void 0,classes:void 0};var s=t<r[0],c=t>n-1-r[1],l=n-r[1],u=i?.get(e)||{},d=G(G(G(G({},a.top,s),a.bottom,c),a.firstBottom,t===l),a.withoutBorderBottom,t===l-1);return{style:{top:s?`${u.top-o}px`:void 0,bottom:c?`${u.bottom+o}px`:void 0},classes:d}}function Ive(e,t,n,r){var i=Wt(e),a=i.columns,o=i.tableLayout,s=i.tableContentWidth,c=i.fixedRows,l=i.firstFullRow,u=i.lastFullRow,d=i.maxHeight,f=i.headerAffixedTop,p=i.footerAffixedBottom,m=i.bordered,h=i.resizable,g=i.allowResizeColumnWidth,_=I([]),v=I(),y=I(),b=I(!1),x=I(!1),S=I(),C=I(6),w=I(new Map),T=Dt({left:!1,right:!1}),E=I({left:0,top:0}),D=I(0),O=I(0),k=I({}),A=I(!1),j=I(!1),M=I(!1),ee=U(function(){return g.value??h.value??!1}),N=U(function(){return!(e.headerAffixedTop||e.footerAffixedBottom||e.horizontalScrollAffixedBottom||e.scroll?.type===`virtual`)});function P(e){S.value=e}function F(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Map,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4?arguments[4]:void 0,a=0,o=e.length;a<o;a++){var s,c=e[a];[`left`,`right`].includes(c.fixed)&&(A.value=!0),c.fixed===`right`&&(j.value=!0),c.fixed===`left`&&(M.value=!0);var l=c.colKey||a,u={col:c,parent:i,index:a};t.set(l,u),(s=c.children)!=null&&s.length&&F(c.children,t,n,r+1,u),n[r]?n[r].push(u):n[r]=[u]}return{newColumnsMap:t,levelNodes:n}}var te=function(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,i=e.length;r<i;r++){var a,o=e[r];if(o.fixed===`right`)return;for(var s=t.get(o.colKey||r),c=r-1;c>=0&&e[c].fixed!==`left`;)--c;var l=e[c],u=r===0&&n?.left||0,d=t.get(l?.colKey||r-1);s&&(s.left=(d?.left||u)+(d?.width||0)),(a=o.children)!=null&&a.length&&te(o.children,t,s)}},ne=function(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=e.length-1;r>=0;r--){var i,a=e[r];if(a.fixed===`left`)return;for(var o=t.get(a.colKey||r),s=r+1;s<e.length&&e[s].fixed!==`right`;)s+=1;var c=e[s],l=r===e.length-1&&n?.right||0,u=t.get(c?.colKey||r+1);o&&(o.right=(u?.right||l)+(u?.width||0)),(i=a.children)!=null&&i.length&&ne(a.children,t,o)}},re=function(e,t){if(e){for(var n=0,r=e.length;n<r;n++)for(var i=e[n].children,o=0,s=i.length;o<s;o++){var c,l=i[o],u=l.dataset.colkey;u||Vp.warn(`TDesign Table`,`${l.innerText} missing colKey. colKey is required for fixed column feature.`);var d=t.get(u||o);d!=null&&(c=d.col)!=null&&c.fixed&&t.set(u,bM(bM({},d),{},{width:l.getBoundingClientRect().width}))}te(a.value,t),ne(a.value,t)}},ie=function(t,n,r,i){for(var a=Y(c.value||[],2),o=a[0],s=a[1],l=e.data,u=e.rowKey,d=u===void 0?`id`:u,f=0;f<o;f++){var p=t[f],m=J(l[f],d),h=n.get(m)||{},g=J(l[f-1],d),_=n.get(g)||{},v=0;f===0&&(v=r?.getBoundingClientRect().height||0),h.top=(_.top||v)+(_.height||0),n.set(m,bM(bM({},h),{},{height:p?.getBoundingClientRect().height||0}))}for(var y=l.length-1;y>=l.length-s;y--){var b=t[t.length-(l.length-y)],x=J(l[y],d),S=n.get(x)||{},C=J(l[y+1],d),w=n.get(C)||{},T=0;y===l.length-1&&(T=i?.getBoundingClientRect().height||0),S.bottom=(w.bottom||T)+(w.height||0),n.set(x,bM(bM({},S),{},{height:b?.getBoundingClientRect().height||0}))}},ae=function(e,t){if(w.value.clear(),e){var n=e.querySelector(`thead`);n&&re(n.children,t);var r=e.querySelector(`tbody`),i=e.querySelector(`tfoot`);r&&ie(r.children,t,n,i),w.value=t}},oe,se=function(e,t){if(!(!A.value||!e)){var n=e.scrollLeft;if(!(oe===n&&(!t||!t.skipScrollLimit))){oe=n;var r=e.clientWidth+n<e.scrollWidth,i=n>0;T.left===i&&T.right===r||(T.left=i&&M.value,T.right=r&&j.value)}}},ce=function(e){for(var t=0;t<e.length;t++)for(var n=e[t],r=0,i=n.length;r<i;r++){var a=n[r],o=n[r+1],s=a.parent;(!s||s?.lastLeftFixedCol)&&a.col.fixed===`left`&&o?.col.fixed!==`left`&&(a.lastLeftFixedCol=!0);var c=n[r-1];(!s||s?.firstRightFixedCol)&&a.col.fixed===`right`&&c?.col.fixed!==`right`&&(a.firstRightFixedCol=!0)}},le=function(){var e=F(a.value),t=e.newColumnsMap,n=e.levelNodes;ce(n);var r=setTimeout(function(){var e;(A.value||(e=c.value)!=null&&e.length)&&ae(y.value,t),clearTimeout(r)},0);return function(){clearTimeout(r)}},ue=function(){var e=setTimeout(function(){if(y.value){b.value=y.value.scrollHeight>y.value.clientHeight,x.value=y.value.scrollWidth>y.value.clientWidth;var t=y.value.getBoundingClientRect();E.value={top:t.top,left:t.left},clearTimeout(e)}},0)},de=function(e){O.value!==e&&(O.value=e)},fe=function(){var t,n=y.value?.getBoundingClientRect();if(n){var r=b.value?C.value:0;D.value=n.width-r-+!!e.bordered;var i=S==null||(t=S.value)==null?void 0:t.getBoundingClientRect();i!=null&&i.width&&de(i.width)}},pe=function(){var e,t,n,i,a,o,s,c;(e=r.paginationAffixRef.value)==null||(t=e.handleScroll)==null||t.call(e),(n=r.horizontalScrollAffixRef.value)==null||(i=n.handleScroll)==null||i.call(n),(a=r.headerTopAffixRef.value)==null||(o=a.handleScroll)==null||o.call(a),(s=r.footerBottomAffixRef.value)==null||(c=s.handleScroll)==null||c.call(s)},me=function(e){for(var t={},n=0,r=e.length;n<r;n++)for(var i=e[n].children,a=0,o=i.length;a<o;a++){var s=i[a],c=s.dataset.colkey;t[c]=s.getBoundingClientRect().width}return t},he=function(e){if(e instanceof HTMLCollection){if(ee.value)return;k.value=me(e)}else k.value=k.value||{},Object.entries(e).forEach(function(e){var t=Y(e,2),n=t[0],r=t[1];k.value[n]=r});return k.value},ge=function(){var e=setTimeout(function(){if(fe(),!N.value){var t=y.value?.querySelector(`thead`);t&&(he(t.children),clearTimeout(e))}},0)},_e=function(){k.value={}},ve=function(t){var n,r,i;(n=e.onScrollX)==null||n.call(e,{e:t}),(r=e.onScrollY)==null||r.call(e,{e:t}),(i=e.onScroll)==null||i.call(e,{e:t})},ye=function(e){if(e===`calculate`){var t,n=(t=y.value)==null||(t=t.querySelector(`thead`))==null?void 0:t.children;return n?me(n):{}}return k.value||{}};R([_,a,m,o,s,b,x,A,c,l,u],le,{immediate:!0}),R([A,a],function(){var e=setTimeout(function(){A.value&&se(y.value),clearTimeout(e)},0)},{immediate:!0}),R([d,_,a,m,y],function(){y.value&&ue()},{immediate:!0}),R(n,function(){_e()}),R([_,m,o,c,b,f,p,s],function(){var e=setTimeout(function(){ge(),pe(),clearTimeout(e)},60)},{immediate:!0}),R([n],function(e,t){var n=Y(e,1)[0],r=Y(t,1)[0],i=n.map(function(e){return e.colKey}),a=r.map(function(e){return e.colKey});if(i.length<a.length){var o=eoe(a,i),s=ye(`calculate`),c=0;o.forEach(function(e){c+=s[e]});var l=Rf(s,a),u=Object.values(l).reduce(function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:0)+(arguments.length>1?arguments[1]:void 0)},0),d=y.value.clientWidth,f=u-c;de(Math.max(d,f))}});var be=function(){ge(),ue(),pe(),(A.value||b.value)&&(le(),se(y.value,{skipScrollLimit:!0})),o.value===`auto`&&he(ye(`calculate`))},xe=md(function(){be()},30),Se=null;function Ce(e){typeof window>`u`||Zm()<11||window.ResizeObserver===void 0||(lp(window,`resize`,xe),Se=new window.ResizeObserver(function(){var e=setTimeout(function(){be(),clearTimeout(e)},200)}),Se.observe(e),v.value=e)}return mr(function(){C.value=z_e(),ge();var e=A.value||b.value||!N.value||!_.value.length,t=typeof window<`u`&&window.ResizeObserver!==void 0;(e&&Zm()<11||!t)&&cp(window,`resize`,xe)}),_r(function(){var e,t;typeof window<`u`&&lp(window,`resize`,xe),(e=Se)==null||e.unobserve(v.value),(t=Se)==null||t.disconnect()}),{tableWidth:D,tableElmWidth:O,thWidthList:k,isFixedHeader:b,isWidthOverflow:x,tableContentRef:y,isFixedColumn:A,showColumnShadow:T,rowAndColFixedPosition:w,virtualScrollHeaderPos:E,scrollbarWidth:C,setData:function(e){_.value=e},refreshTable:be,setTableElmWidth:de,emitScrollEvent:ve,updateThWidthListHandler:ge,updateColumnFixedShadow:se,setUseFixedTableElmRef:P,getThWidthList:ye,updateThWidthList:he,addTableResizeObserver:Ce,updateTableAfterColumnResize:function(){le(),ue()}}}function SM(e,t){if(e){for(var n=e instanceof Array?e:[e],r={},i=0;i<n.length;i++){var a=n[i];if(a){var o=q(a)?a(t):a;r=o instanceof Array?SM(o,t):Object.assign(r,o)}}return r}}function CM(e,t,n){for(var r=e instanceof Array?e:[e],i=t.row,a=t.rowIndex,o=[],s=0,c=r.length;s<c;s++){var l=r[s],u=q(l)?l(t):l;if(Do(u)&&!(u instanceof Array)){u[a]&&(u=u[a]);var d=J(i,n||`id`);u[d]&&(u=u[d])}else u instanceof Array&&(u=CM(u,t,n));o=o.concat(u)}return o}function wM(e,t){for(var n=e instanceof Array?e:[e],r=[],i=0,a=n.length;i<a;i++){var o=n[i];q(o)?r.push(o(t)):r.push(o)}return r}function TM(e,t){if(!(!e||!t)){var n=e?.find(function(e){return e.colKey===t});if(n)return n;for(var r=0,i=e.length;r<i;r++){var a;if((a=e[r])!=null&&(a=a.children)!=null&&a.length)return TM(e[r]?.children,t)}}}function EM(e,t,n){if(!t)return e;var r=t.current??t.defaultCurrent??1,i=t.pageSize??t.defaultPageSize??10;if(!(!n&&e.length>i))return e;var a=(r-1)*i,o=r*i;return e.slice(a,o)}function DM(e,t){return so(e)===`object`?e:so(t)===`object`?t:{}}function OM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Lve(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?OM(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rve(e,t,n){var r=Wt(e),i=r.pagination,a=r.data,o=r.disableDataPage,s=Rp().classPrefix,c=I(e.pagination),l=I([]),u=I(!1),d=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:10,r=e.data;u.value=!o.value&&r.length>n,l.value=EM(r,{current:t,pageSize:n},o.value)};return R([a,function(){return a.value.length},function(){return i.value?.current},function(){return i.value?.pageSize},o],function(){if(!(!i.value||!i.value.current)){var e=i.value;c.value={current:e.current,pageSize:e.pageSize},d(i.value.current,i.value.pageSize||i.value.defaultPageSize)}},{immediate:!0}),R([a],function(){!i.value||!i.value.defaultCurrent||i.value.current||d(c.value.current??i.value.defaultCurrent,c.value.pageSize??i.value.defaultPageSize)},{immediate:!0}),{isPaginateData:u,dataSource:l,innerPagination:c,renderPagination:function(){if(!e.pagination)return null;var r=Lve({},e.pagination);return delete r.onChange,V(`div`,{class:`${s.value}-table__pagination`},[V(Nw,H({size:e.size===`large`?null:e.size},r,{onChange:function(t){var r,i,a;(r=e.pagination)==null||(i=r.onChange)==null||i.call(r,t),c.value=t,d(t.current,t.pageSize),(a=e.onPageChange)==null||a.call(e,t,l.value);var o=n.value;o.scrollTo?o.scrollTo({top:0,left:0}):(o.scrollTop=0,o.scrollLeft=0)}}),{totalContent:t.slots.totalContent})])}}}function zve(e){var t=I(),n=I(),r=I(),i=I(),a=I(),o=I(!0),s=I(!0),c=I(!0),l=!1,u=!1,d=U(function(){return e.scroll&&e.scroll.type===`virtual`&&(e.scroll.threshold||100)<e.data.length}),f=U(function(){return!!(e.headerAffixedTop||e.footerAffixedBottom||e.horizontalScrollAffixedBottom)}),p=0,m=function(e){if(!(!f.value&&!d.value)){var a=e;if(!a&&t.value&&(p=0,a=t.value),a){var o=a.scrollLeft;if(p!==o){p=o;for(var s=[t.value,n.value,r.value,i.value],c=0,l=s.length;c<l;c++)s[c]&&e!==s[c]&&(s[c].scrollLeft=o)}}}},h=function(e,t,n){return t.top+n<e.top&&e.top>e.height},g=function(e){return Gd(e)?0:e.offsetTop||0},_=function(){var l;if(!(!f.value&&!d.value&&!t.value)){var u=t.value?.getBoundingClientRect();if(u){var p=(l=t.value)==null||(l=l.querySelector(`thead`))==null?void 0:l.getBoundingClientRect(),m=p?.height||0,_=r.value?.getBoundingClientRect();if((e.headerAffixedTop||d.value)&&n.value){var v=g(e.headerAffixProps||e.headerAffixedTop),y=_?.height||0,b=Math.abs(u.top)<u.height-m-v-y;d.value&&(b=u.top>-1*p.height),o.value=b}e.footerAffixedBottom&&r!=null&&r.value?s.value=h(_,u,m):e.horizontalScrollAffixedBottom&&i!=null&&i.value&&(s.value=h(i.value.getBoundingClientRect(),u,m)),e.paginationAffixedBottom&&a.value&&(c.value=h(a.value.getBoundingClientRect(),u,m))}}},v=function(){_()},y=function(){m(r.value)},b=function(){m(n.value)},x=function(){m(i.value)},S=function(){m(t.value)},C=function(){cp(r.value,`scroll`,y)},w=function(){lp(r.value,`scroll`,y)},T=function(){cp(n.value,`scroll`,b),ee()},E=function(){l||lp(n.value,`scroll`,b),N()},D=function(){cp(i.value,`scroll`,x)},O=function(){lp(i.value,`scroll`,x)},k=function(){cp(t.value,`scroll`,S),ee()},A=function(){l||lp(t.value,`scroll`,S),N()},j=function(){l=!0},M=function(){l=!1,u||(lp(n.value,`scroll`,b),lp(t.value,`scroll`,S))},ee=function(){u=!0},N=function(){u=!1},P=[],F=function(e){var t=md(function(t){lp(e,`scroll`,t)},200);function n(){m(e),t(n)}function r(r){r.composedPath().includes(e)&&(P.forEach(function(e){return e()}),P.length=0,cp(e,`scroll`,n),t(n),P.push(function(){lp(e,`scroll`,n)}))}cp(e,`touchstart`,r);function i(){lp(e,`touchstart`,r)}return{removeElementTouchScrollListener:i}},te=[],ne=function(){te.forEach(function(e){return e()}),te.length=0},re=function(){lp(window,`mousedown`,j),lp(window,`mouseup`,M),ne(),n.value&&(lp(n.value,`mouseenter`,T),lp(n.value,`mouseleave`,E)),r.value&&(lp(r.value,`mouseenter`,C),lp(r.value,`mouseleave`,w)),t.value&&(lp(t.value,`mouseenter`,k),lp(t.value,`mouseleave`,A)),i.value&&(lp(i.value,`mouseenter`,D),lp(i.value,`mouseleave`,O))},ie=function(){if(cp(window,`mousedown`,j),cp(window,`mouseup`,M),re(),n.value){cp(n.value,`mouseenter`,T),cp(n.value,`mouseleave`,E);var a=F(n.value).removeElementTouchScrollListener;te.push(a)}if(e.footerAffixedBottom&&r.value){cp(r.value,`mouseenter`,C),cp(r.value,`mouseleave`,w);var o=F(r.value).removeElementTouchScrollListener;te.push(o)}if(e.horizontalScrollAffixedBottom&&i.value){cp(i.value,`mouseenter`,D),cp(i.value,`mouseleave`,O);var s=F(i.value).removeElementTouchScrollListener;te.push(s)}if((f.value||d.value)&&t.value){cp(t.value,`mouseenter`,k),cp(t.value,`mouseleave`,A);var c=F(t.value).removeElementTouchScrollListener;te.push(c)}},ae=function(){if(!(!f.value&&!e.paginationAffixedBottom))var t=setTimeout(function(){f.value||e.paginationAffixedBottom?cp(document,`scroll`,v):lp(document,`scroll`,v),clearTimeout(t)})};return R([n,r,i,t],function(){ie(),m(),_()}),R(f,ae),R(function(){return[e.data,e.columns,e.headerAffixedTop,e.footerAffixedBottom,e.horizontalScrollAffixedBottom]},function(){m()}),_r(function(){lp(document,`scroll`,v),re(),n.value=null,r.value=null,i.value=null,t.value=null}),{showAffixHeader:o,showAffixFooter:s,showAffixPagination:c,affixHeaderRef:n,affixFooterRef:r,horizontalScrollbarRef:i,paginationRef:a,onHorizontalScroll:m,setTableContentRef:function(e){t.value=e,ae()},updateAffixHeaderOrFooter:_}}function Bve(e,t,n){var r=U(function(){return Math.max(n.rowHeight||48,48)}),i=I(!1),a=U(function(){return n?.type===`lazy`&&!i.value}),o=!sp&&window.requestAnimationFrame||function(e){return setTimeout(e,16.6)},s=function(){i.value||o(function(){i.value=!0})};return mr(function(){n?.type===`lazy`&&dn(function(){var i=Math.max(10,n.bufferSize||10),a=r.value*i;!(t!=null&&t.value)||!(e!=null&&e.value)||zp(t.value,e.value,s,a)})}),{hasLazyLoadHolder:a,tRowHeight:r}}function kM(e,t,n,r,i){var a=J(e,t);return a===void 0?(i===void 0&&Vp.error(`Table`,`rowKey is wrong, can not get unique identifier of row.`),[`__row_${i}__`,n||r].join(`_`)):[a,n||r].join(`_`)}function Vve(e){return e.split(`_`)?.[0]}function AM(e,t,n,r){var i=I(new Map),a=function(r,a){var o=r.rowIndex,s=r.colIndex;if(!(!a.rowspan&&!a.colspan)){for(var c=o+(a.rowspan||1),l=s+(a.colspan||1),u=o;u<c;u++)for(var d=s;d<l;d++)if(u!==o||d!==s){if(!e.value[u]||!t.value[d])return;var f=kM(e.value[u],n.value,t.value[d].colKey,d,u),p=i.value.get(f)||{};p.skipped=!0,i.value.set(f,p)}}},o=function(e,t,r){var o;if((o=i.value)==null||o.clear(),!(!e||!r))for(var s=0,c=e.length;s<c;s++)for(var l=e[s],u=0,d=t.length;u<d;u++){var f=t[u],p={row:l,col:f,rowIndex:s,colIndex:u},m=kM(l,n.value,f.colKey,u,s),h=i.value.get(m)||{},g=r(p)||{};(g.rowspan||g.colspan||h.rowspan||h.colspan)&&(g.rowspan&&(h.rowspan=g.rowspan),g.colspan&&(h.colspan=g.colspan),i.value.set(m,h)),a?.(p,h)}};return R(function(){return[e.value,t.value,r]},function(){o(e.value,t.value,r?.value)},{immediate:!0}),{skipSpansMap:i}}function jM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function MM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?jM(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hve(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var NM=[`rowKey`,`rowClassName`,`columns`,`fixedRows`,`footData`,`rowAttributes`,`rowspanAndColspan`,`scroll`,`cellEmptyContent`,`pagination`,`attach`,`onCellClick`,`onRowClick`,`onRowDblclick`,`onRowMouseover`,`onRowMousedown`,`onRowMouseenter`,`onRowMouseleave`,`onRowMouseup`],PM=[`click`,`dblclick`,`mouseover`,`mousedown`,`mouseenter`,`mouseleave`,`mouseup`];function FM(e,t,n){var r=e.col,i=e.row,a=e.rowIndex;if(r.colKey===`serial-number`){var o=n?.pagination||{},s=o.current,c=o.pageSize,l=o.defaultCurrent,u=o.defaultPageSize,d=s||l,f=c||u;return f&&d?f*(d-1)+a+1:a+1}if(q(r.cell))return r.cell(sa,e);if(t[r.colKey])return t[r.colKey](e);if(Rd(r.cell)&&t[r.cell])return t[r.cell](e);if(q(r.render))return r.render(sa,MM(MM({},e),{},{type:`cell`}));var p=J(i,r.colKey);return[void 0,``,null].includes(p)?n!=null&&n.cellEmptyContent?q(n.cellEmptyContent)?n.cellEmptyContent(sa,e):n.cellEmptyContent:t.cellEmptyContent?t.cellEmptyContent(e):t[`cell-empty-content`]?t[`cell-empty-content`](e):p:p}var Uve=z({name:`TR`,props:MM(MM({row:Object,rowIndex:Number,dataLength:Number,ellipsisOverlayClassName:String,classPrefix:String,rowAndColFixedPosition:Map,skipSpansMap:Map,virtualConfig:Object,active:Boolean,isHover:Boolean},Rf(sM,NM)),{},{tableElm:{},tableContentElm:{},onRowMounted:Function}),emits:[`row-mounted`],setup:function(e,t){var n=Wt(e),r=n.tableContentElm,i=n.active,a=n.isHover,o=I(null),s=uM(),c=s.tdEllipsisClass,l=s.tableBaseClass,u=s.tableColFixedClasses,d=s.tableRowFixedClasses,f=s.tdAlignClasses,p=s.tableDraggableClasses,m=U(function(){return Fve(J(e.row,e.rowKey||`id`),e.rowIndex,e.dataLength,e.fixedRows,e.rowAndColFixedPosition,d,e.virtualConfig.isVirtualScroll.value?e.virtualConfig.translateY.value:0)}),h=U(function(){return SM(e.rowAttributes,{row:e.row,rowIndex:e.rowIndex,type:`body`})||{}}),g=U(function(){var t=CM(e.rowClassName,{row:e.row,rowKey:e.rowKey,rowIndex:e.rowIndex,type:`body`},e.rowKey||`id`);return[m.value?.classes,t,G(G({},`${e.classPrefix}-table__row--active`,i.value),`${e.classPrefix}-table__row--hover`,a.value)].filter(function(e){return e})}),_=Bve(r,o,Dt(MM(MM({},e.scroll),{},{rowIndex:e.rowIndex}))),v=_.hasLazyLoadHolder,y=_.tRowHeight,b=function(t,n){var r={};return PM.forEach(function(i){r[`on${kc(i)}`]=function(r){var a,o={e:r,row:t,index:n};(a=e[`onRow${kc(i)}`])==null||a.call(e,o)}}),r},x=function(){var n;(n=e.virtualConfig)!=null&&n.isVirtualScroll.value&&t.emit(`row-mounted`,{ref:o,data:e.row})};mr(function(){dn(function(){x()})}),gr(function(){dn(function(){x()})});function S(n,r){var i=r.cellNode,a=n.col,o=n.colIndex,s;q(a.ellipsis)?s=a.ellipsis(sa,n):so(a.ellipsis)===`object`&&q(a.ellipsis.content)?s=a.ellipsis.content(sa,n):t.slots[`ellipsis-${a.colKey}`]?s=t.slots[`ellipsis-${a.colKey}`](n):t.slots.ellipsis&&(s=t.slots.ellipsis(n));var c={};so(a.ellipsis)===`object`&&(c=`props`in a.ellipsis?a.ellipsis.props:a.ellipsis||void 0);var l=e.tableElm,u=o===0?`top-left`:`top`;return u=o===e.columns.length-1?`top-right`:u,V(fM,{placement:u,attach:l?function(){return l}:void 0,tooltipContent:s&&function(){return s},tooltipProps:c,overlayClassName:e.ellipsisOverlayClassName,classPrefix:e.classPrefix},Hve(i)?i:{default:function(){return[i]}})}function C(n,r){var i=n.col,a=n.colIndex,o=n.rowIndex,s=r.cellSpans,d=r.dataLength,m=r.rowAndColFixedPosition,h=FM(n,t.slots,{cellEmptyContent:r.cellEmptyContent,pagination:e.pagination}),g=xM(i,a,m,u),_=wM(i.className,MM(MM({},n),{},{type:`td`})),v=[g.classes,_,G(G(G(G(G({},c,i.ellipsis),l.tdLastRow,o+s.rowspan===d),l.tdFirstCol,a===0&&e.rowspanAndColspan),f[i.align],i.align&&i.align!==`left`),p.handle,i.colKey===`drag`)],y=function(t){var r,a=MM(MM({},n),{},{e:t});i.stopPropagation&&t.stopPropagation(),(r=e.onCellClick)==null||r.call(e,a)},b=MM(MM({},q(i.attrs)?i.attrs(MM(MM({},n),{},{type:`td`})):i.attrs),s);return V(`td`,H({key:i.colKey||a,class:v,style:g.style},b,{onClick:y}),[i.ellipsis?S(n,{cellNode:h}):h])}return function(){var t=e.columns,n=e.skipSpansMap,r=e.row,i=e.dataLength,a=e.rowAndColFixedPosition,s=t?.map(function(o,s){var c={},l={row:r,col:o,rowIndex:e.rowIndex,colIndex:s},u=null;if(e.skipSpansMap.size){var d=kM(r,e.rowKey,o.colKey,s);if(u=n.get(d)||{},u?.rowspan>1&&(c.rowspan=u.rowspan),u?.colspan>1&&(c.colspan=u.colspan),u.skipped)return null}return C(l,{dataLength:i,rowAndColFixedPosition:a,columnLength:t.length,cellSpans:c,cellEmptyContent:e.cellEmptyContent})});return V(`tr`,H({ref:o},h.value,{style:m.value?.style,class:g.value},b(r,e.rowIndex)),[v.value?[V(`td`,{style:{height:`${y.value}px`,border:`none`}},null)]:s])}}});function IM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function LM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?IM(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}[].concat(W(PM),[`cell-click`]);var RM=`bordered.rowKey.rowClassName.rowAttributes.loading.empty.fixedRows.firstFullRow.lastFullRow.rowspanAndColspan.scroll.cellEmptyContent.pagination.attach.onCellClick.onPageChange.onRowClick.onRowDblclick.onRowMouseover.onRowMousedown.onRowMouseenter.onRowMouseleave.onRowMouseup.onScroll.onScrollX.onScrollY`.split(`.`),Wve=z({name:`TBody`,props:LM({classPrefix:String,data:Array,columns:Array,ellipsisOverlayClassName:String,rowAndColFixedPosition:Map,showColumnShadow:Object,tableElm:{},tableWidth:Number,isWidthOverflow:Boolean,virtualConfig:Object,tableContentElm:{},handleRowMounted:Function,renderExpandedRow:Function,firstFullRow:[String,Function],lastFullRow:[String,Function],activeRow:[Array],hoverRow:[String,Number]},Rf(sM,RM)),setup:function(e,t){var n=t.slots,r=pm(),i=Wt(e),a=i.data,o=i.columns,s=i.rowKey,c=i.rowspanAndColspan,l=Rp(`table`,e.locale),u=l.t,d=l.globalConfig,f=uM(),p=f.tableFullRowClasses,m=f.tableBaseClass,h=AM(a,o,s,c).skipSpansMap,g=U(function(){return[m.body]});return function(){var t,i,s=function(t){var n=e.bordered?e.tableWidth-2:e.tableWidth;return V(`tr`,{class:[m.emptyRow,G({},p.base,e.isWidthOverflow)]},[V(`td`,{colspan:t.length},[V(`div`,{class:[m.empty,G({},p.innerFullRow,e.isWidthOverflow)],style:e.isWidthOverflow?{width:`${n}px`}:{}},[r(`empty`)||u(d.value.empty)])])])},c=function(t,n){var i=Yc(n),a=r(i);if([``,null,void 0,!1].includes(a))return null;var s=e.isWidthOverflow&&o.value.find(function(e){return e.fixed===`left`}),c=[p.base,p[i]],l=e.bordered?e.tableWidth-2:e.tableWidth;return V(`tr`,{class:c,key:`key-full-row-${n}`},[V(`td`,{colspan:t},[V(`div`,{class:G({},p.innerFullRow,s),style:s?{width:`${l}px`}:{}},[V(`div`,{class:p.innerFullElement},[a])])])])},l=o.value.length,f=a.value?.length,_=[],v=[`classPrefix`,`ellipsisOverlayClassName`,`rowAndColFixedPosition`,`scroll`,`tableElm`,`tableContentElm`,`pagination`,`attach`];(e.virtualConfig.isVirtualScroll.value?e.virtualConfig.visibleData.value:a.value)?.forEach(function(t,r){var i=e.rowKey||`id`,a=J(t,i),s=LM(LM({},Rf(e,NM)),{},{rowKey:i,row:t,columns:o.value,rowIndex:t.VIRTUAL_SCROLL_INDEX||r,dataLength:f,skipSpansMap:h.value,virtualConfig:e.virtualConfig,active:e.activeRow?.includes(a),isHover:e.hoverRow===a},Rf(e,v));e.onCellClick&&(s.onCellClick=e.onCellClick);var c=V(Uve,H({key:J(t,i||`id`)||r},s,{onRowMounted:e.handleRowMounted}),n);if(_.push(c),e.renderExpandedRow){var l={row:t,index:r,columns:o.value,tableWidth:e.tableWidth,isWidthOverflow:e.isWidthOverflow},u=e.renderExpandedRow(l);u&&_.push(u)}});var y=[c(l,`first-full-row`)].concat(_,[c(l,`last-full-row`)]),b=!((t=a.value)!=null&&t.length)&&!e.loading&&!e.firstFullRow&&!e.lastFullRow,x=`translateY(${e.virtualConfig?.translateY.value}px)`,S=(i=e.virtualConfig)!=null&&i.isVirtualScroll.value?{transform:x,"-ms-transform":x,"-moz-transform":x,"-webkit-transform":x}:void 0;return V(`tbody`,{class:g.value,style:LM({},S)},[b?s(o.value):y])}}});function zM(e){return e&&(isNaN(Number(e))?e:`${e}px`)}function BM(e){var t=Wt(e),n=t.size,r=t.bordered,i=t.stripe,a=t.hover,o=t.verticalAlign,s=t.height,c=t.maxHeight,l=t.tableContentWidth,u=uM(),d=u.tableBaseClass,f=u.tableAlignClasses,p=ym().SIZE,m=Rp(`table`,e.locale).globalConfig,h=U(function(){return n.value??m.value.size}),g=U(function(){return[d.table,G(G(G(G(G(G(G(G({},p.value[h.value],h.value!==`medium`),d.bordered,r.value),d.striped,i.value),d.hover,a.value),d.loading,e.loading),d.affixedHeader,e.headerAffixedTop),d.rowspanAndColspan,e.rowspanAndColspan),f[o.value],o.value!==`middle`)]}),_=U(function(){return{height:zM(s.value),maxHeight:zM(c.value),overflowAnchor:`none`}}),v=U(function(){return{width:zM(l.value)}});return{tableClasses:g,sizeClassNames:p.value,tableElementStyles:v,tableContentStyles:_}}function VM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function HM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?VM(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gve(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var UM=z({name:`THead`,props:{classPrefix:String,ellipsisOverlayClassName:String,isFixedHeader:Boolean,thDraggable:Boolean,maxHeight:[String,Number],height:[String,Number],rowAndColFixedPosition:Map,thWidthList:Object,bordered:Boolean,isMultipleHeader:Boolean,resizable:Boolean,attach:[String,Function],spansAndLeafNodes:Object,thList:Array,columnResizeParams:Object,showColumnShadow:Object},setup:function(e,t){var n=t.slots,r=I(),i=uM(),a=i.tableHeaderClasses,o=i.tableBaseClass,s=U(function(){return[a.header,G(G(G({},a.fixed,e.isFixedHeader),o.bordered,e.bordered&&e.isMultipleHeader),a.multipleHeader,e.isMultipleHeader)]}),c=U(function(){var t={},n=function(e){for(var r=0,i=e.length;r<i;r++){var a=e[r];if(a.colspan>1)for(var o=r+1;o<r+a.colspan;o++)e[o]&&(t[e[o].colKey]=!0);a.children&&n(a.children)}},r=e.thList[0];return n(r),t}),l=function(t){for(var n=t;n;){var r;if(n=n.parentNode,(r=n)!=null&&(r=r.classList)!=null&&r.contains(`${e.classPrefix}-table`))break}return n};return function(){return V(`thead`,{ref:r,class:s.value},[function(t,s){var u=new Map,d=e.spansAndLeafNodes.rowspanAndColspanMap;return e.thList.map(function(t,f){var p=t.map(function(t,p){var m;if(c.value[t.colKey])return null;var h=d.get(t);if(p===0&&h.rowspan>1)for(var g=f+1;g<f+h.rowspan;g++)u.set(e.thList[g][0],!0);var _=xM(t,p,e.rowAndColFixedPosition,i.tableColFixedClasses),v={col:t,colIndex:p,row:{},rowIndex:-1},y=wM(t.className,HM(HM({},v),{},{type:`th`})),b=wM(t.thClassName,HM(HM({},v),{},{type:`th`})),x=e.showColumnShadow.left&&t.fixed===`left`,S=e.showColumnShadow.right&&t.fixed===`right`,C=e.thDraggable&&!(x||S),w=[_.classes,y,b,G(G(G(G({},a.thBordered,u.get(t)),`${e.classPrefix}-table__th-${t.colKey}`,t.colKey),i.tdAlignClasses[t.align],t.align&&t.align!==`left`),i.tableDraggableClasses.dragSortTh,C)],T=!((m=t.children)!=null&&m.length)&&s!=null&&s[t.colKey]?`${s?.[t.colKey]}px`:void 0,E=HM(HM({},_.style),{},{width:T}),D=hM(n,t,p),O=e.resizable||!C?{onMousedown:function(n){if(e.resizable){var i,a;(i=e.columnResizeParams)==null||(a=i.onColumnMousedown)==null||a.call(i,n,t,p)}if(!C)var o=setTimeout(function(){var e;(e=r.value.querySelectorAll(`th`)[p])==null||e.removeAttribute(`draggable`),clearTimeout(o)},10)},onMousemove:function(n){var r,i;e.resizable&&((r=e.columnResizeParams)==null||(i=r.onColumnMouseover)==null||i.call(r,n,t))}}:{},k=q(t.ellipsisTitle)?t.ellipsisTitle(sa,{col:t,colIndex:p}):void 0,A=t.ellipsisTitle===void 0?!!t.ellipsis:!!t.ellipsisTitle,j=(q(t.attrs)?t.attrs(HM(HM({},v),{},{type:`th`})):t.attrs)||{};return t.colspan>1&&(j.colspan=t.colspan),V(`th`,H({key:t.colKey,"data-colkey":t.colKey,class:w,style:E},j,h,O),[V(`div`,{class:o.thCellInner},[A?V(fM,{placement:`bottom`,attach:e.attach||(r.value?function(){return l(r.value)}:void 0),tooltipContent:k&&function(){return k},tooltipProps:so(t.ellipsisTitle)===`object`?t.ellipsisTitle:void 0,overlayClassName:e.ellipsisOverlayClassName,classPrefix:e.classPrefix},Gve(D)?D:{default:function(){return[D]}}):D])])});return V(`tr`,{key:f},[p])})}(e.rowAndColFixedPosition,e.thWidthList)])}}});function WM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function GM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?WM(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var KM=z({name:`TFoot`,props:{rowKey:String,isFixedHeader:Boolean,rowAndColFixedPosition:Map,footData:Array,columns:Array,rowAttributes:[Array,Object,Function],rowClassName:[Array,String,Object,Function],thWidthList:[Object],footerSummary:[String,Function],rowspanAndColspanInFooter:Function,virtualScroll:Boolean},setup:function(e,t){var n=pm(),r=uM(),i=Wt(e),a=i.footData,o=i.columns,s=i.rowKey,c=i.rowspanAndColspanInFooter,l=AM(a,o,s,c).skipSpansMap,u=function(e){var n=e.col,r=e.row;return q(n.foot)?n.foot(sa,e):Rd(n.foot)&&t.slots[n.foot]?t.slots[n.foot](e)||n.foot:n.foot||J(r,n.colKey)};return function(){if(!o.value)return null;var t=[r.tableFooterClasses.footer,G({},r.tableFooterClasses.fixed,e.isFixedHeader)],i=e.footData?.map(function(t,n){return V(`tr`,H(SM(e.rowAttributes,{row:t,rowIndex:n,type:`foot`}),{key:n,class:CM(e.rowClassName,{row:t,rowIndex:n,type:`foot`},s.value||`id`)}),[o.value.map(function(i,a){var o,c={},d=null;if(l.value.size){var f=kM(t,s.value,i.colKey,a,n);if(d=l.value.get(f)||{},d?.rowspan>1&&(c.rowspan=d.rowspan),d?.colspan>1&&(c.colspan=d.colspan),d.skipped)return null}var p=xM(i,a,e.rowAndColFixedPosition,r.tableColFixedClasses),m=GM({},p.style);return(o=e.thWidthList)!=null&&o[i.colKey]&&(m.width=`${e.thWidthList[i.colKey]}px`),V(`td`,H(GM({key:i.colKey},c),{class:p.classes,style:m}),[u({row:t,rowIndex:n,col:i,colIndex:a})])})])}),a=n(`footerSummary`);return!a&&(!e.footData||!e.footData.length)?null:V(`tfoot`,{class:t,style:{visibility:e.virtualScroll?`hidden`:`visible`}},[a&&V(`tr`,{class:r.tableFullRowClasses.base},[V(`td`,{colspan:o.value.length},[V(`div`,{class:r.tableFullRowClasses.innerFullElement},[a])])]),i])}}});function Kve(e,t){var n=Wt(e),r=n.data,i=n.activeRowType,a=n.activeRowKeys,o=n.defaultActiveRowKeys,s=n.disableSpaceInactiveRow,c=I(-1),l=I(!1),u=I(!1),d=I(-1),f=Y(bm(a,o.value,e.onActiveChange,`activeRowKeys`),2),p=f[0],m=f[1],h=function(t){var n=t.row,a=J(n,e.rowKey);if(i.value===`single`){for(var o=p.value.length>1?[a]:[],s=[],c=0,l=r.value.length;c<l;c++){var u=r.value[c];o.includes(J(u,e.rowKey))&&s.push({row:u,rowIndex:c})}m(o,{type:`inactive`,activeRowList:s,currentRowData:n})}else if(i.value===`multiple`){for(var d=p.value.filter(function(e){return e!==a}),f=[],h=0,g=r.value.length;h<g;h++){var _=r.value[h];d.includes(J(_,e.rowKey))&&f.push({row:_,rowIndex:h})}m(d,{type:`inactive`,activeRowList:f,currentRowData:n})}},g=function(t){var n=t.row,a=J(n,e.rowKey);if(i.value===`single`)m([a],{activeRowList:[{row:n,rowIndex:t.index}],currentRowData:n,type:`active`});else{for(var o=p.value.concat(a),s=[],c=0,l=r.value.length;c<l;c++){var u=r.value[c];o.includes(J(u,e.rowKey))&&s.push({row:u,rowIndex:c})}m(o,{activeRowList:s,currentRowData:n,type:`active`})}},_=function(t){document.getSelection().removeAllRanges();for(var n=t.row,i=c.value,a=Math.min(d.value,i),o=Math.max(d.value,i),s=[],l=a;l<=o;l++)s.push({row:r.value[l],rowIndex:l});m(s.map(function(t){return J(t.row,e.rowKey)}),{activeRowList:s,type:`active`,currentRowData:n})},v=function(){for(var t=[],n=0,i=r.value.length;n<i;n++){var a=r.value[n],o=J(a,e.rowKey);p.value.includes(o)&&t.push({row:a,rowIndex:n})}return t},y=function(t,n){if(i.value){var r=t.row,a=t.index,o=J(r,e.rowKey);l.value?(c.value=a,_(t),u.value=!0):p.value.includes(o)&&n?.action!==`active`?s.value||(h(t),c.value=a):(g(t),c.value=a)}},b=function(){var t;m([],{activeRowList:[],currentRowData:void 0,type:`inactive`}),(t=e.onActiveRowAction)==null||t.call(e,{action:`clear`,activeRowList:[]}),c.value=-1},x=function(){var t,n=r.value.map(function(t){return J(t,e.rowKey)}),i=r.value.map(function(e,t){return{row:e,rowIndex:t}});m(n,{activeRowList:i,currentRowData:void 0,type:`active`}),(t=e.onActiveRowAction)==null||t.call(e,{action:`select-all`,activeRowList:i}),c.value=-1},S=function(){u.value=!1},C=function(t){var n=t.code||t.key?.trim();if(Zp.test(n)){t.preventDefault();var a=Math.min(r.value.length-1,c.value+1);i.value===`single`?y({row:r.value[a],index:a,e:t},{action:`active`}):c.value=a}else if(Qp.test(n)){t.preventDefault();var o=Math.max(0,c.value-1);i.value===`single`?y({row:r.value[o],index:o,e:t},{action:`active`}):c.value=o}else if(em.test(n)){t.preventDefault();var f=c.value;if(u.value){var p;(p=e.onActiveRowAction)==null||p.call(e,{action:`shift-area-selection`,activeRowList:v()})}else if(!s.value)y({row:r.value[f],index:f,e:t});else{var m;(m=e.onActiveRowAction)==null||m.call(e,{action:`space-one-selection`,activeRowList:v()})}}else nm.test(n)?(l.value=!0,d.value=c.value):$p.test(n)||rm.test(n)?(b(),S()):im.test(n)&&i.value===`multiple`&&x();em.test(n)||S()},w=function(e){var t=e.code||e.key?.trim();nm.test(t)&&(l.value=!1)};return{tActiveRow:p,onHighlightRow:y,addHighlightKeyboardListener:function(){cp(t.value,`keydown`,C),cp(t.value,`keyup`,w)},removeHighlightKeyboardListener:function(){lp(t.value,`keydown`,C),lp(t.value,`keyup`,w)}}}function qve(e,t){var n=Wt(e),r=n.hover,i=n.data,a=n.activeRowType,o=n.keyboardRowHover,s=n.disableSpaceInactiveRow,c=I(),l=I(-1),u=I(0),d=U(function(){return a.value===`single`?!1:a.value===`multiple`||r.value||o.value}),f=function(t,n){var r=J(t.row,e.rowKey);c.value===r&&n?.action!==`hover`?s.value||(c.value=void 0):c.value=r,l.value=t.index},p=function(){c.value=void 0,l.value=-1},m=function(t){if(d.value){var n=t.code||t.key?.trim();if(Zp.test(n)){t.preventDefault();var r=Math.min(i.value.length-1,l.value+1);f({row:i.value[r],index:r,e:t},{action:`hover`})}else if(Qp.test(n)){t.preventDefault();var a=Math.max(0,l.value-1);f({row:i.value[a],index:a,e:t},{action:`hover`})}else if(em.test(n)&&e.activeRowType!==`multiple`){var o=l.value;if(f({row:i.value[o],index:o,e:t}),!e.activeRowType){var s;(s=e.onActiveRowAction)==null||s.call(e,{action:`space-one-selection`,activeRowList:[{row:i.value[o],rowIndex:o}]})}}else if($p.test(n)&&!e.activeRowType){var p;c.value=void 0,(p=e.onActiveRowAction)==null||p.call(e,{action:`clear`,activeRowList:[]})}else if(im.test(n)&&!e.activeRowType){var m;(m=e.onActiveRowAction)==null||m.call(e,{action:`select-all`,activeRowList:[]})}else if(rm.test(n)&&!e.activeRowType&&!t.ctrlKey&&!t.metaKey){var h;(h=e.onActiveRowAction)==null||h.call(e,{action:`clear`,activeRowList:[]})}Voe.test(n)||Hoe.test(n)?u.value=void 0:u.value=0}};return{hoverRow:c,needKeyboardRowHover:d,clearHoverRow:p,addRowHoverKeyboardListener:function(){cp(t.value,`keydown`,m)},removeRowHoverKeyboardListener:function(){lp(t.value,`keydown`,m)},tableRefTabIndex:u}}function qM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function JM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qM(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function YM(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}PM.map(function(e){return`row-${e}`}).concat([`page-change`,`cell-click`,`scroll`,`scrollX`,`scrollY`]);var XM=z({name:`TBaseTable`,props:JM(JM({},sM),{},{renderExpandedRow:Function,onLeafColumnsChange:Function,thDraggable:Boolean}),emits:[`show-element-change`,`update:activeRowKeys`],setup:function(e,t){var n=Wt(e).lazyLoad,r=pm(),i=I(),a=I(),o=I(),s=I(),c=I(0),l=uM(),u=l.classPrefix,d=l.virtualScrollClasses,f=l.tableLayoutClasses,p=l.tableBaseClass,m=l.tableColFixedClasses,h=BM(e),g=h.tableClasses,_=h.sizeClassNames,v=h.tableContentStyles,y=h.tableElementStyles,b=Rp(`table`,e.locale).globalConfig,x=gM(e),S=x.isMultipleHeader,C=x.spansAndLeafNodes,w=x.thList,T=U(function(){return C.value?.leafColumns||e.columns}),E=U(function(){return e.size??b.value.size}),D=Joe(i,n).showElement,O=I(),k=I(),A=I(),j=I(),M=Ive(e,t,T,{paginationAffixRef:O,horizontalScrollAffixRef:k,headerTopAffixRef:A,footerBottomAffixRef:j}),ee=M.scrollbarWidth,N=M.tableWidth,P=M.tableElmWidth,F=M.tableContentRef,te=M.isFixedHeader,ne=M.isWidthOverflow,re=M.isFixedColumn,ie=M.thWidthList,ae=M.showColumnShadow,oe=M.rowAndColFixedPosition,se=M.setData,ce=M.refreshTable,le=M.setTableElmWidth,ue=M.emitScrollEvent,de=M.setUseFixedTableElmRef,fe=M.updateColumnFixedShadow,pe=M.getThWidthList,me=M.updateThWidthList,he=M.addTableResizeObserver,ge=M.updateTableAfterColumnResize,_e=zve(e),ve=_e.affixHeaderRef,ye=_e.affixFooterRef,be=_e.horizontalScrollbarRef,xe=_e.paginationRef,Se=_e.showAffixHeader,Ce=_e.showAffixFooter,we=_e.showAffixPagination,Te=_e.onHorizontalScroll,Ee=_e.setTableContentRef,De=_e.updateAffixHeaderOrFooter,Oe=Rve(e,t,F),ke=Oe.dataSource,Ae=Oe.innerPagination,je=Oe.isPaginateData,Me=Oe.renderPagination,Ne=Pve({isWidthOverflow:ne,tableContentRef:F,showColumnShadow:ae,getThWidthList:pe,updateThWidthList:me,setTableElmWidth:le,updateTableAfterColumnResize:ge,onColumnResizeChange:e.onColumnResizeChange}),Pe=Ne.resizeLineRef,Fe=Ne.resizeLineStyle,Ie=Ne.setEffectColMap,Le=U(function(){return[g.value,G(G(G(G(G(G(G(G({},p.headerFixed,te.value),p.columnFixed,re.value),p.widthOverflow,ne.value),p.multipleHeader,S.value),m.leftShadow,ae.left),m.rightShadow,ae.right),p.columnResizableTable,e.resizable),`${u}-table__row--active-${e.activeRowType}`,e.activeRowType)]}),Re=U(function(){return[[f[e.tableLayout]]]}),ze=U(function(){return e.bordered&&te.value&&(S.value&&ne.value||!S.value)}),Be=U(function(){if(!e.bordered)return 0;var t=s.value?.getBoundingClientRect(),n=xe.value?.clientHeight;return(t?.height||0)+(n||0)}),Ve=Kve(e,i),He=Ve.tActiveRow,Ue=Ve.onHighlightRow,We=Ve.addHighlightKeyboardListener,Ge=Ve.removeHighlightKeyboardListener,Ke=qve(e,i),qe=Ke.hoverRow,Je=Ke.needKeyboardRowHover,Ye=Ke.clearHoverRow,Xe=Ke.addRowHoverKeyboardListener,Ze=Ke.removeRowHoverKeyboardListener,Qe=Ke.tableRefTabIndex;R(a,function(){de(a.value)}),R(function(){return[e.data,ke]},function(){se(je.value?ke.value:e.data)}),R(C,function(){var t;(t=e.onLeafColumnsChange)==null||t.call(e,C.value.leafColumns),Ie(C.value.leafColumns,null)},{immediate:!0});var $e=function(){dn(function(){Te(),De()})},et=Hf(function(){me(pe(`calculate`))}),tt=Vm(F,U(function(){return{data:e.data,scroll:JM(JM({},e.scroll),{},{fixedRows:e.fixedRows})}})),nt=-1,rt=function(t){var n=t.target||t.srcElement,r=n.scrollTop;nt===r?(nt=-1,fe(n)):tt.isVirtualScroll.value&&tt.handleScroll(),nt=r,ue(t),e.tableLayout===`auto`&&et()},it=function(){a.value&&(c.value=a.value.querySelector(`tfoot`)?.getBoundingClientRect().height)},at=function(e){if(F.value){for(var t=F.value.querySelector(`th[data-colkey="${e}"]`),n=F.value.querySelectorAll(`th.t-table__cell--fixed-left`),r=0,i=0,a=n.length;i<a;i++)r+=n[i].getBoundingClientRect().width;var o=t.getBoundingClientRect(),s=F.value.getBoundingClientRect(),c=o.left-s.left-r;F.value.scrollTo?F.value.scrollTo({left:c,behavior:`smooth`}):F.value.scrollLeft=c}};R(F,function(){Ee(F.value),e.tableLayout===`auto`&&et()}),R(function(){return[a.value,e.footData,e.footerSummary,e.columns]},function(){var e=setTimeout(function(){it(),clearTimeout(e)},0)}),R(i,function(e){he(e)}),mr(function(){it(),Ee(F.value),he(i.value)});var ot=function(){e.activeRowType&&We(),Je.value&&Xe()},st=function(){e.activeRowType&&Ge(),Je.value&&Ze()},ct=function(t){var n;(n=e.onRowClick)==null||n.call(e,t),e.activeRowType&&Ue(t),Je.value&&Ye()};R([D],function(e){var n=Y(e,1)[0];t.emit(`show-element-change`,n)},{immediate:!0});var lt=U(function(){return je.value?ke.value:e.data});return t.expose({refreshTable:ce,scrollColumnIntoView:at,scrollToElement:function(t){var n=t.index;if(!n&&n!==0){if(!t.key){Vp.error(`Table`,"scrollToElement: one of `index` or `key` must exist.");return}n=lt.value?.findIndex(function(n){return J(n,e.rowKey)===t.key}),n<0&&Vp.error(`Table`,`${t.key} does not exist in data, check \`rowKey\` or \`data\` please.`)}if(tt.isVirtualScroll.value)tt.scrollToElement(JM(JM({},t),{},{index:n+1}));else{var r,i=o.value?.$el,a=i==null||(r=i.children)==null?void 0:r[n];if(a){var s=a.offsetTop-F.value.scrollTop-(t.top??0);F.value.scrollBy({top:s,behavior:t.behavior??`auto`})}}}}),function(){if(!D.value)return V(`div`,{ref:i},null);var n=je.value?ke.value:e.data,l=C?.value.leafColumns||e.columns,f=e.allowResizeColumnWidth??e.resizable;f&&e.tableLayout===`auto`&&Vp.warn(`Table`,"table-layout can not be `auto`, cause you are using column resizable, set `table-layout: fixed` please.");var m=e.tableLayout===`fixed`&&ne.value?`100px`:void 0,h=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return V(`colgroup`,null,[l.map(function(n){var r={width:zM((t||f?ie.value[n.colKey]:void 0)||n.width)||m};return n.minWidth&&(r.minWidth=zM(n.minWidth)),!r.width&&!n.minWidth&&e.tableLayout===`fixed`&&(r.minWidth=`80px`),V(`col`,{key:n.colKey,style:r},null)})])},g=function(){if(e.showHeader===!1)return null;var t=Jm(DM(e.headerAffixedTop),{onFixedChange:$e});return!!(tt.isVirtualScroll.value||e.headerAffixedTop)&&(e.headerAffixedTop?V(Dy,H({ref:A,offsetTop:0},t.value),YM(pe)?pe:{default:function(){return[pe]}}):te.value&&pe)},b=function(){return V(Dy,H({offsetBottom:0},DM(e.horizontalScrollAffixedBottom),{style:{marginTop:`-${ee.value*2}px`},ref:k}),{default:function(){return[V(`div`,{ref:be,class:[`scrollbar`,p.obviousScrollbar],style:{width:`${N.value}px`,overflow:`auto`,opacity:Number(Ce.value)}},[V(`div`,{style:{width:`${P.value}px`,height:`5px`}},null)])]}})},x={isFixedHeader:te.value,rowAndColFixedPosition:oe.value,isMultipleHeader:S.value,bordered:e.bordered,maxHeight:e.maxHeight,height:e.height,spansAndLeafNodes:C.value,thList:w.value,thWidthList:ie.value,resizable:e.resizable,columnResizeParams:Ne,classPrefix:u,ellipsisOverlayClassName:E.value===`medium`?``:_[E.value],attach:e.attach,showColumnShadow:ae,thDraggable:e.thDraggable},T=Zm()<=11?4:0,M=ne.value?ee.value:0,re=I((ve.value?.getBoundingClientRect().height||0)-T),se=setTimeout(function(){re.value=(ve.value?.getBoundingClientRect().height||0)-T,clearTimeout(se)},0),ce=U(function(){return re.value-M}),le=e.headerAffixedTop?Number(Se.value):1,ue=U(function(){return{width:`${N.value}px`,height:`${ce.value}px`,opacity:le}}),de=+!!e.bordered,fe=!!((e.headerAffixedTop||tt.isVirtualScroll.value)&&N.value)&&V(`div`,{ref:ve,style:{width:`${N.value-de}px`,opacity:Number(Se.value)},class:[`scrollbar`,G({},p.affixedHeaderElm,e.headerAffixedTop||tt.isVirtualScroll.value)]},[V(`table`,{class:Re.value,style:JM(JM({},y.value),{},{width:`${P.value}px`})},[h(!0),V(UM,x,t.slots)])]),pe=V(`div`,{class:p.affixedHeaderWrap,style:ue.value},[fe]),me=ne.value?ee.value:0;e.bordered&&(me+=1);var he=!!(tt.isVirtualScroll.value||e.footerAffixedBottom),ge=e.footData?.length||e.footerSummary||t.slots.footerSummary,_e=Jm(DM(e.footerAffixedBottom),{onFixedChange:$e}),Te=!!(he&&ge&&N.value)&&V(Dy,H({ref:j,class:p.affixedFooterWrap,offsetBottom:me||0,style:{marginTop:`${-1*((c.value??0)+me)}px`}},_e.value),{default:function(){return[V(`div`,{ref:ye,style:{width:`${N.value-de}px`,opacity:Number(Ce.value)},class:[`scrollbar`,G({},p.affixedFooterElm,e.footerAffixedBottom||tt.isVirtualScroll.value)]},[V(`table`,{class:Re.value,style:JM(JM({},y.value),{},{width:`${P.value}px`})},[h(!0),V(KM,{rowKey:e.rowKey,isFixedHeader:te.value,rowAndColFixedPosition:oe.value,footData:e.footData,columns:C.value.leafColumns,rowAttributes:e.rowAttributes,rowClassName:e.rowClassName,thWidthList:ie.value,footerSummary:e.footerSummary,rowspanAndColspanInFooter:e.rowspanAndColspanInFooter},t.slots)])])]}}),Ee=`translate(0, ${tt.scrollHeight.value+(c.value??0)+(re.value??0)}px)`,De={transform:Ee,"-ms-transform":Ee,"-moz-transform":Ee,"-webkit-transform":Ee},Oe=JM(JM({classPrefix:u,ellipsisOverlayClassName:E.value===`medium`?``:_[E.value],rowAndColFixedPosition:oe.value,showColumnShadow:ae,data:n,virtualConfig:tt,columns:C.value.leafColumns,tableElm:i.value,tableWidth:N.value,isWidthOverflow:ne.value,scroll:e.scroll,cellEmptyContent:e.cellEmptyContent,tableContentElm:F.value,handleRowMounted:tt.handleRowMounted,renderExpandedRow:e.renderExpandedRow},Rf(e,RM)),{},{pagination:Ae.value,attach:e.attach,hoverRow:qe.value,activeRow:He.value,onRowClick:ct}),Ie=V(`div`,{ref:F,class:p.content,style:JM(JM({},v.value),{},{overflowAnchor:`none`}),onScroll:rt},[tt.isVirtualScroll.value&&V(`div`,{class:d.cursor,style:De},null),V(`table`,{ref:a,class:Re.value,style:JM(JM({},y.value),{},{width:e.resizable&&ne.value&&P.value?`${P.value}px`:y.value.width})},[h(!1),e.showHeader&&V(UM,JM(JM({},x),{},{thWidthList:f?ie.value:{}}),t.slots),V(Wve,H({ref:o},Oe),t.slots),V(KM,{rowKey:e.rowKey,isFixedHeader:te.value,rowAndColFixedPosition:oe.value,footData:e.footData,columns:C.value.leafColumns,rowAttributes:e.rowAttributes,rowClassName:e.rowClassName,footerSummary:e.footerSummary,rowspanAndColspanInFooter:e.rowspanAndColspanInFooter,virtualScroll:tt.isVirtualScroll.value},t.slots)])]),Ve=q(e.loading)?e.loading:t.slots.loading,Ue=e.loading!==void 0&&V(uh,H({loading:!!e.loading,text:Ve,attach:i.value?function(){return i.value}:void 0,showOverlay:!0,size:`small`},e.loadingProps),null),We=r(`topContent`),Ge=r(`bottomContent`),Ke=V(`div`,{ref:xe,class:p.paginationWrap,style:{opacity:Number(we.value)}},[Me()]),Je=!!Ge&&V(`div`,{ref:s,class:p.bottomContent},[Ge]);return V(`div`,{ref:i,tabindex:Qe.value,class:Le.value,onFocus:ot,onBlur:st},[!!We&&V(`div`,{class:p.topContent},[We]),g(),Ie,Te,Ue,Je,ze.value&&V(`div`,{class:p.scrollbarDivider,style:{right:`${ee.value}px`,bottom:Be.value?`${Be.value}px`:void 0,height:`${F.value?.getBoundingClientRect().height}px`}},null),e.horizontalScrollAffixedBottom&&b(),e.paginationAffixedBottom?V(Dy,H({offsetBottom:0},DM(e.paginationAffixedBottom),{ref:O}),YM(Ke)?Ke:{default:function(){return[Ke]}}):Ke,V(`div`,{ref:Pe,class:p.resizeLine,style:Fe},null)])}}}),ZM={asyncLoading:{type:[String,Function]},columnController:{type:Object},columnControllerVisible:{type:Boolean,default:void 0},defaultColumnControllerVisible:{type:Boolean,default:void 0},columns:{type:Array,default:function(){return[]}},displayColumns:{type:Array,default:void 0},defaultDisplayColumns:{type:Array},dragSort:{type:String,validator:function(e){return!e||[`row`,`row-handler`,`col`,`row-handler-col`,`drag-col`].includes(e)}},dragSortOptions:{type:Object},editableCellState:{type:Function},editableRowKeys:{type:Array},expandIcon:{type:[Boolean,Function],default:!0},expandOnRowClick:Boolean,expandedRow:{type:[String,Function]},expandedRowKeys:{type:Array,default:void 0},defaultExpandedRowKeys:{type:Array,default:function(){return[]}},filterIcon:{type:Function},filterRow:{type:[String,Function]},filterValue:{type:Object,default:void 0},defaultFilterValue:{type:Object},hideSortTips:Boolean,indeterminateSelectedRowKeys:{type:Array},multipleSort:Boolean,reserveSelectedRowOnPaginate:{type:Boolean,default:!0},rowSelectionAllowUncheck:Boolean,rowSelectionType:{type:String,validator:function(e){return!e||[`single`,`multiple`].includes(e)}},selectOnRowClick:Boolean,selectedRowKeys:{type:Array,default:void 0},defaultSelectedRowKeys:{type:Array,default:function(){return[]}},showSortColumnBgColor:Boolean,sort:{type:[Object,Array],default:void 0},defaultSort:{type:[Object,Array]},sortIcon:{type:Function},sortOnRowDraggable:Boolean,onAsyncLoadingClick:Function,onCellClick:Function,onChange:Function,onColumnChange:Function,onColumnControllerVisibleChange:Function,onDataChange:Function,onDisplayColumnsChange:Function,onDragSort:Function,onExpandChange:Function,onFilterChange:Function,onRowEdit:Function,onRowValidate:Function,onSelectChange:Function,onSortChange:Function,onValidate:Function};function QM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $M(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?QM(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Jve=z({name:`ColumnCheckboxGroup`,props:{checkboxProps:Object,options:{type:Array,default:function(){return[]}},label:String,uniqueKey:String,value:Array,onChange:Function},setup:function(e){var t=Wt(e),n=t.checkboxProps,r=t.value,i=t.options,a=Q(),o=U(function(){var e=[];return i.value.forEach(function(t){if(so(t)===`object`){if(t.disabled)return;t.value?e.push(t.value):typeof t.label==`string`&&e.push(t.label)}else e.push(t)}),e}),s=U(function(){return Hd(o.value,r.value)}),c=U(function(){var e=s.value.length;return!!(e&&o.value.length===e)}),l=U(function(){var e=s.value.length;return!!(e<o.value.length&&e)}),u=function(t,n){var i={e:n.e,type:`check`,current:void 0,option:void 0};if(t){var a,s=W(new Set(r.value.concat(o.value)));(a=e.onChange)==null||a.call(e,s,i)}else{var c,l=r.value.filter(function(e){return!o.value.includes(e)});(c=e.onChange)==null||c.call(e,l,$M($M({},i),{},{type:`uncheck`}))}},d=function(t,n){var r;(r=e.onChange)==null||r.call(e,t,n)},f=U(function(){return[`${a.value}-table__column-controller-item`,G({},`${a.value}-table__${e.uniqueKey}`,e.uniqueKey)]});return function(){return V(`div`,{class:f.value},[V(`div`,{class:`${a.value}-table__column-controller-block`},[V(nw,{indeterminate:l.value,checked:c.value,onChange:u,disabled:!o.value.length},{default:function(){return[e.label]}})]),V(`div`,{class:`${a.value}-table__column-controller-block`},[V(rw,H({options:i.value},n.value,{modelValue:r.value,onChange:d}),null)])])}}});function eN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?eN(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nN(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set,n=0,r=e.length;n<r;n++){var i,a=e[n];(i=a.children)!=null&&i.length?nN(a.children,t):a.colKey&&t.add(a.colKey)}return t}function Yve(e,t){var n=Rp(`table`,e.locale),r=n.classPrefix,i=n.globalConfig,a=Tm({SettingIcon:_v}).SettingIcon,o=Wt(e),s=o.columns,c=o.columnController,l=o.displayColumns,u=o.columnControllerVisible,d=I(null),f=pm(),p=U(function(){var e=(c.value?.fields||W(nN(s.value))).filter(function(e){return e});return new Set(e)}),m=W(nN(s.value)),h=Y(bm(l,e.defaultDisplayColumns||m,e.onDisplayColumnsChange,`displayColumns`),2),g=h[0],_=h[1],v=I(l.value||e.defaultDisplayColumns||m),y=U(function(){var e;return(e=c.value)!=null&&(e=e.groupColumns)!=null&&e.length?x(s.value):[{label:i.value.selectAllText,options:S(s.value)}]});R([l],function(t){v.value=Y(t,1)[0]||e.defaultDisplayColumns||m});function b(e,n){return{label:function(){return hM(t.slots,e,n)},value:e.colKey,disabled:!p.value.has(e.colKey)}}function x(e){var t=c.value?.groupColumns;if(!(t!=null&&t.length))return[];var n=[],r=function(e){for(var i=0,a=e.length;i<a;i++){for(var o,s=e[i],c=b(s,i),l=0,u=t.length;l<u;l++){var d;t[l].columns.includes(s.colKey)&&((d=n[l])!=null&&(d=d.options)!=null&&d.length?n[l].options.push(c):n[l]=tN(tN({},t[l]),{},{options:[c]}))}(o=s.children)!=null&&o.length&&r(s.children)}};return r(e),n}function S(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if((t=c.value)!=null&&(t=t.groupColumns)!=null&&t.length)return[];for(var r=0,i=e.length;r<i;r++){var a,o=e[r];(a=o.children)!=null&&a.length?S(o.children,n):o.colKey&&n.push(b(o,r))}return n}var C=function(t,n){var r;v.value=t;var i={columns:t,type:n.type,currentColumn:TM(s.value,String(n.current)),e:n.e};(r=e.onColumnChange)==null||r.call(e,i)},w=function(){if(u.value!==void 0){var n;(n=e.onColumnControllerVisibleChange)==null||n.call(e,!0,{trigger:`open`}),t.emit(`update:columnControllerVisible`,!0)}if(d.value){d.value.show();return}d.value=Pj.confirm(tN({header:i.value.columnConfigTitleText,body:function(){var e=c.value?.displayType===`fixed-width`?`fixed`:`auto`,t=c.value||{},n=t.columnControllerTopContent,a=t.columnControllerBottomContent;return V(`div`,{class:[`${r.value}-table__column-controller`,`${r.value}-table__column-controller--${e}`]},[V(`div`,{class:`${r.value}-table__column-controller-body`},[q(n)?n(sa):f(`columnControllerTopContent`),i.value.columnConfigDescriptionText&&V(`p`,{class:`${r.value}-table__column-controller-desc`},[i.value.columnConfigDescriptionText]),y.value.map(function(e,t){var n,r=(n=c.value)!=null&&(n=n.groupColumns)!=null&&n.length?String(e.value||t):void 0;return V(Jve,{key:e.value||t,uniqueKey:r,value:v.value,label:e.label,options:e.options,onChange:C,checkboxProps:c.value?.checkboxProps},null)}),q(a)?a(sa):f(`columnControllerBottomContent`)])])},confirmBtn:i.value.confirmText,cancelBtn:i.value.cancelText,width:612,onConfirm:function(){if(_(W(v.value)),u.value===void 0)d.value.hide();else{var n;(n=e.onColumnControllerVisibleChange)==null||n.call(e,!1,{trigger:`confirm`}),t.emit(`update:columnControllerVisible`,!1)}},onClose:function(){if(v.value=g.value,u.value===void 0)d.value.hide();else{var n;(n=e.onColumnControllerVisibleChange)==null||n.call(e,!1,{trigger:`cancel`}),t.emit(`update:columnControllerVisible`,!1)}}},c.value?.dialogProps))};return R([u],function(e,t){var n=Y(e,1)[0],r=Y(t,1)[0];n!==void 0&&n!==r&&(d.value?n?d.value.show():d.value.hide():n&&w())},{immediate:!0}),{tDisplayColumns:g,columnCheckboxKeys:v,renderColumnController:function(){var t=!!(c.value&&Object.keys(c.value).length),n=t?c.value.placement||`top-right`:``;return t&&c.value.hideTriggerButton?null:V(`div`,{class:[`${r.value}-table__column-controller-trigger`,G({},`${r.value}-align-${n}`,!!n)]},[V(mh,H({theme:`default`,variant:`outline`,onClick:w,content:i.value.columnConfigButtonText},e.columnController?.buttonProps),{icon:function(){return V(a,null,null)}})])}}}function Xve(e,t){var n=Wt(e).expandedRowKeys,r=pm(),i=Rp(`table`,e.locale),a=i.t,o=i.globalConfig,s=Tm({ChevronRightCircleIcon:tce}).ChevronRightCircleIcon,c=uM(),l=c.tableExpandClasses,u=c.positiveRotate90,d=c.tableFullRowClasses,f=Y(bm(n,e.defaultExpandedRowKeys||[],e.onExpandChange,`expandedRowKeys`),2),p=f[0],m=f[1],h=U(function(){return!!(e.expandedRow||t.slots.expandedRow||t.slots[`expanded-row`])}),g=U(function(){return e.expandIcon!==!1&&h.value}),_=U(function(){var t;return((t=e.columns)==null||(t=t[0])==null?void 0:t.fixed)===`left`}),v=function(e){var t;if(!h.value)return null;var n=e.row,r=e.rowKey,i=J(n,r||`id`);return l[(t=p.value)!=null&&t.includes(i)?`rowExpanded`:`rowFolded`]},y=function(t,n){e.expandOnRowClick&&t.stopPropagation();var r=J(n,e.rowKey||`id`),i=p.value.indexOf(r),a=W(p.value);i===-1?a.push(r):a.splice(i,1),m(a,{expandedRowData:e.data.filter(function(t){return a.includes(J(t,e.rowKey||`id`))}),currentRowData:n})},b=function(t,n){var i=n.row,c=n.rowIndex,d=J(i,e.rowKey||`id`),f=p.value.includes(d),m=r(`expandIcon`,{defaultNode:a(o.value.expandIcon)||V(s,null,null),params:{row:i,index:c}});return m?V(`span`,{class:[l.iconBox,l[f?`expanded`:`collapsed`],G({},u,f)],onClick:function(e){return y(e,i)}},[m]):null};return{showExpandedRow:h,showExpandIconColumn:g,getExpandColumn:function(){return{colKey:`__EXPAND_ROW_ICON_COLUMN__`,width:46,className:l.iconCell,fixed:_.value?`left`:void 0,cell:b,stopPropagation:!0}},renderExpandedRow:function(t){var n=J(t.row,e.rowKey||`id`);if(!p.value||!p.value.includes(n))return null;var i=t.isWidthOverflow&&e.columns.find(function(e){return e.fixed===`left`});return V(`tr`,{key:`expand_${n}`,class:[l.row,G({},d.base,i)]},[V(`td`,{colspan:t.columns.length},[V(`div`,{class:[l.rowInner,G({},d.innerFullRow,i)],style:i?{width:`${t.tableWidth}px`}:{}},[V(`div`,{class:d.innerFullElement},[r(`expandedRow`,{params:t})])])])])},onInnerExpandRowClick:function(e){y(e.e,e.row)},getExpandedRowClass:v}}function rN(e,t,n){if(!e)return!1;var r=q(e.disabled)?e.disabled({row:t,rowIndex:n}):e.disabled;return e.checkProps&&(q(e.checkProps)?r||=e.checkProps({row:t,rowIndex:n}).disabled:e.checkProps===`object`&&(r||=e.checkProps.disabled)),!!r}function Zve(e,t,n){for(var r={},i=0,a=t.length;i<a;i++){var o=J(t[i],n);e.includes(o)&&(r[o]=!0)}return r}function iN(e,t){for(var n=0,r=e.length;n<r;n++){var i;if(e[n].colKey===t)return e[n];if((i=e[n].children)!=null&&i.length){var a=iN(e[n].children,t);if(a)return a}}return null}function aN(e,t){for(var n=0,r=e.length;n<r;n++){var i;if(e[n].colKey===t||(i=e[n].children)!=null&&i.length&&iN(e[n].children,t))return n}return-1}function oN(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=0,r=e.length;n<r;n++){var i,a=e[n];a.filter&&`resetValue`in a.filter&&(t[a.colKey]=a.filter.resetValue),(i=a.children)!=null&&i.length&&oN(a.children,t)}return t}function sN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?sN(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qve(e,t){var n=Wt(e),r=n.selectedRowKeys,i=n.columns,a=n.rowKey,o=n.data,s=n.reserveSelectedRowOnPaginate,c=n.pagination,l=n.disableDataPage,u=I(EM(o.value,c.value,l.value)),d=I(),f=Y(bm(r,e.defaultSelectedRowKeys||[],e.onSelectChange,`selectedRowKeys`),2),p=f[0],m=f[1],h=I(new Map),g=U(function(){return e.columns.find(function(e){var t=e.type;return[`multiple`,`single`].includes(t)})}),_=U(function(){return e.rowSelectionType||g.value?.type||`single`}),v=U(function(){return(s.value?o.value:u.value).filter(function(e,t){return!S(e,t)})}),y=U(function(){return Hd(p.value,v.value.map(function(t){return J(t,e.rowKey||`id`)}))}),b=U(function(){var t;return e.rowSelectionAllowUncheck?!0:_.value!==`single`||!((t=g.value)!=null&&t.checkProps)||!(`allowUncheck`in g.value?.checkProps)?!1:g.value.checkProps.allowUncheck});R([o,i,p,g,a],function(){var n,r=(n=g.value)!=null&&n.disabled?function(e){return g.value.disabled(e)?t.disabled:``}:void 0,i=new Set(p.value);d.value=[r,i.size?function(n){var r=n.row,a=J(r,e.rowKey||`id`);return i.has(a)?t.selected:``}:void 0]},{immediate:!0});var x=function(){u.value=EM(o.value,c.value,l.value)};R([o,function(){return c.value?.current},function(){return c.value?.pageSize},l],function(){x()});function S(e,t){return rN(g.value,e,t)}function C(){return function(){var e=y.value.length>0&&y.value.length<v.value.length;return V(nw,{checked:v.value.length!==0&&y.value.length===v.value.length,indeterminate:e,disabled:!v.value.length,onChange:D},null)}}function w(e){var t=e.col,n=e.row,r=e.rowIndex,i=q(t.disabled)?t.disabled({row:n,rowIndex:r}):t.disabled,a=q(t.checkProps)?t.checkProps({row:n,rowIndex:r}):t.checkProps;return{disabled:i||a?.disabled,checkProps:a}}function T(t){var n=t.col,r=t.row,i=r===void 0?{}:r,a=p.value.includes(J(i,e.rowKey||`id`)),o=w(t),s=o.disabled,c=o.checkProps,l=cN(cN({checked:a,disabled:s},c),{},{onClick:function(e){if(so(e)===`object`&&`e`in e){var t;(t=e.e)==null||t.stopPropagation()}else e?.stopPropagation()},onChange:function(){return E(i)}});if(n.type===`single`)return V(XO,l,null);if(n.type===`multiple`){var u;return V(nw,H({indeterminate:(u=e.indeterminateSelectedRowKeys)!=null&&u.length?e.indeterminateSelectedRowKeys.includes(J(i,e.rowKey)):!1},l),null)}return null}function E(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=W(p.value),r=J(t,e.rowKey||`id`),i=n.indexOf(r),a=i!==-1;if(_.value===`multiple`)a?n.splice(i,1):n.push(r);else if(_.value===`single`)n=a&&b.value?[]:[r];else{Vp.warn(`Table`,"`column.type` must be one of `multiple` and `single`");return}m(n,{selectedRowData:n.map(function(e){return h.value.get(e)}),currentRowKey:r,currentRowData:t,type:a?`uncheck`:`check`})}function D(t){var n=e.rowKey||`id`,i=v.value.map(function(e){return J(e,n)}),a=r.value?.filter(function(e){return!i.includes(e)})||[],o=t?[].concat(W(a),W(i)):W(a);m(o,{selectedRowData:t?o.map(function(e){return h.value.get(e)}):[],type:t?`check`:`uncheck`,currentRowKey:`CHECK_ALL_BOX`})}function O(e){return[`multiple`,`single`].includes(e.type)?cN(cN({},e),{},{width:e.width||64,className:[t.checkCell,e.className],cell:function(e,t){return T(t)},title:e.type===`multiple`?C():e.title}):e}var k=function(t){var n=t.row,r=t.index,i=e.columns.findIndex(function(e){return e.colKey===`row-select`}),a=!1;i!==-1&&(a=w({row:n,rowIndex:r,col:e.columns[i],colIndex:i})?.disabled),a||E(n)};R([o,a],function(){for(var e=0,t=o.value.length;e<t;e++)h.value.set(J(o.value[e],a.value||`id`),o.value[e])},{immediate:!0});var A=U(function(){return!!(g.value||e.selectOnRowClick||e.selectedRowKeys)}),j=function(){m([],{selectedRowData:[],currentRowKey:void 0,currentRowData:void 0,type:`uncheck`})};return{selectColumn:g,showRowSelect:A,selectedRowClassNames:d,currentPaginateData:u,setTSelectedRowKeys:m,formatToRowSelectColumn:O,onInnerSelectRowClick:k,handleRowSelectWithAreaSelection:function(t){var n=t.activeRowList,r=t.action;if(A.value){if(r===`clear`){j();return}if(r===`select-all`){D(!0);return}if(_.value===`single`){r===`space-one-selection`&&E(n[0].row);return}var i=n.filter(function(e){var t=e.row,n=e.rowIndex;return!w({row:t,rowIndex:n,col:g.value,colIndex:void 0}).disabled});if(i.length){var a=i.map(function(t){var n=t.row;return J(n,e.rowKey)}),o=Hd(p.value,a).length!==a.length,s=p.value.filter(function(e){return!a.includes(e)}),c=o?W(new Set(p.value.concat(a))):s,l=r===`space-one-selection`?n[0].row:void 0;m(c,{selectedRowData:n,currentRowKey:J(l,e.rowKey),currentRowData:l,type:o?`check`:`uncheck`})}}}}}function $ve(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var eye=z({name:`TSorterButton`,props:{sortType:{type:String,default:`all`},sortOrder:{type:String,default:function(){return``}},locale:Object,sortIcon:Function,tooltipProps:Object,hideSortTips:Boolean},emits:[`sort-icon-click`],setup:function(e,t){var n=uM(),r=n.tableSortClasses,i=n.negativeRotate180,a=mm(),o=Rp(`table`,e.locale),s=o.t,c=o.globalConfig,l=Tm({ChevronDownIcon:sg}).ChevronDownIcon,u=U(function(){return e.sortType===`all`?[`asc`,`desc`]:[e.sortType]}),d=function(e,n){t.emit(`sort-icon-click`,e,{descending:n===`desc`})},f=function(e,t){var n=a(`sortIcon`,s(c.value.sortIcon)||V(l,null,null));return V(`span`,{class:[t,r.sortIcon,r.iconDirection[e],G({},i,e===`asc`)],onClick:function(t){return d(t,e)}},[n])};return function(){var t=[r.trigger,G({},r.doubleIcon,u.value.length>1)],n={asc:c.value.sortAscendingOperationText,desc:c.value.sortDescendingOperationText},i=u.value.map(function(t){var i,a=t===e.sortOrder?r.iconActive:r.iconDefault,o=c.value.sortCancelOperationText,s=t===e.sortOrder?o:n[t];return e.hideSortTips??c.value.hideSortTips?f(t,a):V(Gx,H({content:s,placement:`right`,showArrow:!1,class:r.iconDirection[t]},e.tooltipProps),$ve(i=f(t,a))?i:{default:function(){return[i]}})});return V(`div`,{class:t},[i])}}});function lN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tye(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?lN(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nye(e,t){var n=t.slots,r=Wt(e),i=r.sort,a=r.data,o=I(),s=Y(bm(i,e.defaultSort,e.onSortChange,`sort`),2),c=s[0],l=s[1],u=Y(bm(a,[],e.onDataChange,`data`),2),d=u[0],f=u[1],p=U(function(){return v(e.columns)}),m=I(),h=!1,g=U(function(){var e=c.value;return e?K(e)?e:[e]:[]}),_=U(function(){var e={};return g.value.forEach(function(t,n){var r=t.sortBy;e[r]=tye({index:n},t)}),e});function v(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=0,r=e.length;n<r;n++){var i,a=e[n];q(a.sorter)&&(t[a.colKey]=a.sorter),(i=a.children)!=null&&i.length&&v(a.children,t)}return t}function y(e){var t=e;if(Object.keys(p.value).length){o.value||=d.value;var n=!t||t instanceof Array&&!t.length,r=!(t instanceof Array)&&!(t!=null&&t.sortBy);if(n||r)return h=!0,f(o.value,{trigger:`sort`}),o.value;var i=t instanceof Array?t:[t],a=d.value.slice().sort(function(e,t){for(var n=0,r=0,a=i.length;r<a;r++){var o=i[r],s=p.value[o.sortBy];if(n===0&&s)n=o.descending?s(t,e):s(e,t);else break}return n});if(JSON.stringify(a)!==JSON.stringify(d.value))return h=!0,f(a,{trigger:`sort`}),a}}function b(t,n){var r,i=e.multipleSort?C(t,n):S(t,c.value instanceof Array?c.value[0]:c.value,n),a=y(i)||d.value;l(i,{currentDataSource:a,col:t}),(r=e.onChange)==null||r.call(e,{sorter:i},{currentData:a,trigger:`sorter`}),m.value=i}function x(e){if(e!==void 0)return e?`desc`:`asc`}function S(e,t,n){if(!(t&&t.sortBy===e.colKey&&t.descending===n.descending))return{sortBy:e.colKey,descending:n.descending}}function C(e,t){Array.isArray(c.value)||(c.value=c.value?[c.value]:[]);for(var n=c.value,r=e.colKey,i=W(n),a=0,o=n.length;a<o;a++)if(n[a].sortBy===r){var s=S(e,n[a],t);return s?i[a]=s:i.splice(a,1),i}return i.push({sortBy:r,descending:t.descending}),i}function w(t){var r=t.col;return r.sorter?V(eye,H({sortType:r.sortType,sortOrder:x(_.value[r.colKey]?.descending),sortIcon:e.sortIcon,hideSortTips:e.hideSortTips,locale:e.locale},{onSortIconClick:function(e,t){return b(r,t)}}),{sortIcon:n.sortIcon}):null}var T=function(e,t){var n=K(e)?e:[e],r=K(t)?t:[t];if(n.length&&!t)return!1;for(var i=function(){var e=n[o],t=r.find(function(t){return t.sortBy===e.sortBy});return t?{v:e.descending===t.descending}:{v:!1}},a,o=0,s=n.length;o<s;o++)if(a=i(),a)return a.v};return R(function(){return[c,e.data]},function(){!c.value||!Object.keys(c.value).length||!d.value.length||T(c.value,m.value)||y(c.value)},{immediate:!0}),R(function(){return e.data},function(e){if(h){h=!1;return}o.value=e}),{renderSortIcon:w}}function uN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?uN(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var rye=z({name:`TableFilterController`,props:{locale:Object,column:Object,colIndex:Number,tFilterValue:Object,innerFilterValue:Object,tableFilterClasses:Object,isFocusClass:String,primaryTableElement:{},popupProps:Object,attach:[String,Function],onVisibleChange:Function,onInnerFilterChange:Function,filterIcon:[Function]},emits:[`inner-filter-change`,`reset`,`confirm`],setup:function(e,t){var n=I(null),r=mm(),i=Rp(`table`,e.locale),a=i.t,o=i.globalConfig,s=Tm({FilterIcon:Rce}).FilterIcon,c=I(!1),l=function(t){var n;c.value=t,(n=e.onVisibleChange)==null||n.call(e,t)},u=function(e,t,n){if(!n)return null;var r=!!n.setup;if(q(e.filter.component)&&!r)return e.filter.component(function(e,n){var r=so(n)===`object`&&`attrs`in n?n.attrs:{};return sa(e,{props:dN(dN({},t),r)})});var i=e.filter||{};return V(n,H({class:i.classNames,style:i.style},i.attrs,t),null)},d=function(n){var r,i=[`single`,`multiple`,`input`];if((r=n.filter)!=null&&r.type&&!i.includes(n.filter.type)){console.error(`TDesign Table Error: column.filter.type must be the following: ${JSON.stringify(i)}`);return}var a=e.innerFilterValue,o=a===void 0?{}:a,s={single:ZO,multiple:rw,input:WS}[n.filter.type]||n.filter.component;if(!(!s&&!n.filter.component)){var l=dN(dN({options:[`single`,`multiple`].includes(n.filter.type)?n.filter?.list:void 0},n.filter?.props),{},{onChange:function(e,r){var i,a;if(t.emit(`inner-filter-change`,e,n),(i=n.filter.props)!=null&&i.onChange){var o,s;(o=(s=n.filter.props).onChange)==null||o.call(s,e,r)}(a=n.filter)!=null&&(a=a.confirmEvents)!=null&&a.includes(`onChange`)&&(c.value=!1)}});return n.colKey&&o&&n.colKey in o&&(l.value=o?.[n.colKey]),n.filter.confirmEvents&&n.filter.confirmEvents.forEach(function(e){e!==`onChange`&&(l[e]=function(){t.emit(`confirm`,n),c.value=!1})}),V(`div`,{class:e.tableFilterClasses.contentInner},[u(n,l,s)])}},f=function(n){if(n.filter.showConfirmAndReset)return V(`div`,{class:e.tableFilterClasses.bottomButtons},[V(mh,{theme:`default`,size:`small`,onClick:function(){t.emit(`reset`,n),c.value=!1}},{default:function(){return[o.value.resetText]}}),V(mh,{theme:`primary`,size:`small`,onClick:function(){t.emit(`confirm`,n),c.value=!1}},{default:function(){return[o.value.confirmText]}})])},p=function(){return V(`div`,{class:e.tableFilterClasses.popupContent},[d(e.column),f(e.column)])};return function(){if(!e.column.filter||e.column.filter&&!Object.keys(e.column.filter).length)return null;var t=a(o.value.filterIcon)||V(s,null,null),i=e.tFilterValue?.[e.column.colKey],u=so(i)===`object`&&!$d(i),d=![null,void 0,``].includes(i)&&so(i)!==`object`;return V(zx,H({attach:e.attach||(e.primaryTableElement?function(){return e.primaryTableElement}:void 0),visible:c.value,destroyOnClose:!0,trigger:`click`,placement:`bottom-right`,showArrow:!0,overlayClassName:e.tableFilterClasses.popup,onVisibleChange:function(e){return l(e)},class:[e.tableFilterClasses.icon,G({},e.isFocusClass,u||d)],content:p},e.popupProps),{default:function(){return[V(`div`,{ref:n},[r(`filterIcon`,{defaultNode:t,params:{col:e.column,colIndex:e.colIndex}})])]}})}}});function fN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?fN(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mN(e){var t=e instanceof Array&&e.length,n=so(e)===`object`&&!(e instanceof Array),r=e!==null&&n&&Object.keys(e).length;return t||r||![`null`,``,`undefined`].includes(String(e))}function iye(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n];mN(r)&&(t[n]=r)}),t}function aye(e,t){var n=I(null),r=Rp(`table`,e.locale),i=r.t,a=r.globalConfig,o=mm(),s=Wt(e),c=s.filterValue,l=s.columns,u=uM(),d=u.tableFilterClasses,f=u.isFocusClass,p=I(),m=Y(bm(c,e.defaultFilterValue,e.onFilterChange,`filterValue`),2),h=m[0],g=m[1],_=I(h.value),v=U(function(){var e=iye(h.value||{});return!h.value||!Object.keys(e).length});R([h],function(e){_.value=Y(e,1)[0]});function y(){if(v.value)return null;var t=V(`div`,{class:d.result},[V(`span`,null,[i(a.value.searchResultText,{result:b(),count:e.pagination?.total||e.data?.length})]),V(mh,{theme:`primary`,variant:`text`,onClick:T},{default:function(){return[a.value.clearFilterResultButtonText]}})]),n=o(`filterRow`);return e.filterRow&&!n||e.filterRow===null?null:V(`div`,{class:d.inner},[n||t])}function b(){var n=[],r=[];return x(e.columns,r),r.filter(function(e){return e.filter}).forEach(function(e,r){var i=h.value[e.colKey];if(e.filter.list&&![`null`].includes(String(i))){var a=i instanceof Array?i:[i],o=[];e.filter.list.forEach(function(e){a.includes(e.value)&&o.push(e.label)}),i=o.join()}if(mN(i)){var s=q(e.filter?.label)?e.filter.label(sa):e.filter?.label,c=hM(t.slots,e,r);n.push(`${s||c}:${i}`)}}),n.join(`;`)}function x(e,t){e.forEach(function(e){e.children&&x(e.children,t),t.push(e)})}function S(e,t){var n=pN(pN({},_.value),{},G({},t.colKey,e));_.value=n,t.filter.showConfirmAndReset||C(n,`filter-change`,t)}function C(t,n,r){var i;g(t,{col:r,trigger:n}),(i=e.onChange)==null||i.call(e,{filter:t},{trigger:`filter`})}function w(e){C(pN(pN({},h.value),{},G({},e.colKey,e.filter.resetValue??{single:``,multiple:[],input:``}[e.filter.type]??``)),`reset`,e)}function T(){C(oN(l.value),`clear`,void 0)}function E(e){C(_.value,`confirm`,e)}function D(r){var i=r.col,a=r.colIndex;return V(rye,{column:i,colIndex:a,filterIcon:e.filterIcon,tFilterValue:h.value,innerFilterValue:_.value,tableFilterClasses:d,isFocusClass:f,popupProps:i.filter.popupProps,attach:e.attach,locale:e.locale,onInnerFilterChange:S,onReset:w,onConfirm:E,primaryTableElement:n.value?.$el,onVisibleChange:k},{filterIcon:t.slots.filterIcon})}function O(e){n.value=e}function k(e){e&&!p.value&&(p.value=!e)}return{hasEmptyCondition:v,isTableOverflowHidden:p,renderFilterIcon:D,renderFirstFilterRow:y,setFilterPrimaryTableRef:O}}function hN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?hN(Object(n),!0).forEach(function(t){oye(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _N(e){"@babel/helpers - typeof";return _N=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},_N(e)}function oye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vN(){return vN=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vN.apply(this,arguments)}function sye(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function cye(e,t){if(e==null)return{};var n=sye(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var lye=`1.15.6`;function yN(e){if(typeof window<`u`&&window.navigator)return!!navigator.userAgent.match(e)}var bN=yN(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),xN=yN(/Edge/i),SN=yN(/firefox/i),CN=yN(/safari/i)&&!yN(/chrome/i)&&!yN(/android/i),wN=yN(/iP(ad|od|hone)/i),TN=yN(/chrome/i)&&yN(/android/i),EN={capture:!1,passive:!1};function DN(e,t,n){e.addEventListener(t,n,!bN&&EN)}function ON(e,t,n){e.removeEventListener(t,n,!bN&&EN)}function kN(e,t){if(t){if(t[0]===`>`&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function AN(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function jN(e,t,n,r){if(e){n||=document;do{if(t!=null&&(t[0]===`>`?e.parentNode===n&&kN(e,t):kN(e,t))||r&&e===n)return e;if(e===n)break}while(e=AN(e))}return null}var MN=/\s+/g;function NN(e,t,n){e&&t&&(e.classList?e.classList[n?`add`:`remove`](t):e.className=((` `+e.className+` `).replace(MN,` `).replace(` `+t+` `,` `)+(n?` `+t:``)).replace(MN,` `))}function PN(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,``):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf(`webkit`)===-1&&(t=`-webkit-`+t),r[t]=n+(typeof n==`string`?``:`px`)}}function FN(e,t){var n=``;if(typeof e==`string`)n=e;else do{var r=PN(e,`transform`);r&&r!==`none`&&(n=r+` `+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function IN(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,a=r.length;if(n)for(;i<a;i++)n(r[i],i);return r}return[]}function LN(){return document.scrollingElement||document.documentElement}function RN(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var a,o,s,c,l,u,d;if(e!==window&&e.parentNode&&e!==LN()?(a=e.getBoundingClientRect(),o=a.top,s=a.left,c=a.bottom,l=a.right,u=a.height,d=a.width):(o=0,s=0,c=window.innerHeight,l=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i||=e.parentNode,!bN))do if(i&&i.getBoundingClientRect&&(PN(i,`transform`)!==`none`||n&&PN(i,`position`)!==`static`)){var f=i.getBoundingClientRect();o-=f.top+parseInt(PN(i,`border-top-width`)),s-=f.left+parseInt(PN(i,`border-left-width`)),c=o+a.height,l=s+a.width;break}while(i=i.parentNode);if(r&&e!==window){var p=FN(i||e),m=p&&p.a,h=p&&p.d;p&&(o/=h,s/=m,d/=m,u/=h,c=o+u,l=s+d)}return{top:o,left:s,bottom:c,right:l,width:d,height:u}}}function zN(e,t,n){for(var r=WN(e,!0),i=RN(e)[t];r;){var a=RN(r)[n],o=void 0;if(o=n===`top`||n===`left`?i>=a:i<=a,!o)return r;if(r===LN())break;r=WN(r,!1)}return!1}function BN(e,t,n,r){for(var i=0,a=0,o=e.children;a<o.length;){if(o[a].style.display!==`none`&&o[a]!==GP.ghost&&(r||o[a]!==GP.dragged)&&jN(o[a],n.draggable,e,!1)){if(i===t)return o[a];i++}a++}return null}function VN(e,t){for(var n=e.lastElementChild;n&&(n===GP.ghost||PN(n,`display`)===`none`||t&&!kN(n,t));)n=n.previousElementSibling;return n||null}function HN(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!==`TEMPLATE`&&e!==GP.clone&&(!t||kN(e,t))&&n++;return n}function UN(e){var t=0,n=0,r=LN();if(e)do{var i=FN(e),a=i.a,o=i.d;t+=e.scrollLeft*a,n+=e.scrollTop*o}while(e!==r&&(e=e.parentNode));return[t,n]}function uye(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function WN(e,t){if(!e||!e.getBoundingClientRect)return LN();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=PN(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX==`auto`||i.overflowX==`scroll`)||n.clientHeight<n.scrollHeight&&(i.overflowY==`auto`||i.overflowY==`scroll`)){if(!n.getBoundingClientRect||n===document.body)return LN();if(r||t)return n;r=!0}}while(n=n.parentNode);return LN()}function dye(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function GN(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var KN;function qN(e,t){return function(){if(!KN){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),KN=setTimeout(function(){KN=void 0},t)}}}function fye(){clearTimeout(KN),KN=void 0}function JN(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function YN(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function XN(e,t,n){var r={};return Array.from(e.children).forEach(function(i){if(!(!jN(i,t.draggable,e,!1)||i.animated||i===n)){var a=RN(i);r.left=Math.min(r.left??1/0,a.left),r.top=Math.min(r.top??1/0,a.top),r.right=Math.max(r.right??-1/0,a.right),r.bottom=Math.max(r.bottom??-1/0,a.bottom)}}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var ZN=`Sortable`+new Date().getTime();function pye(){var e=[],t;return{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(t){if(!(PN(t,`display`)===`none`||t===GP.ghost)){e.push({target:t,rect:RN(t)});var n=gN({},e[e.length-1].rect);if(t.thisAnimationDuration){var r=FN(t,!0);r&&(n.top-=r.f,n.left-=r.e)}t.fromRect=n}})},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(uye(e,{target:t}),1)},animateAll:function(n){var r=this;if(!this.options.animation){clearTimeout(t),typeof n==`function`&&n();return}var i=!1,a=0;e.forEach(function(e){var t=0,n=e.target,o=n.fromRect,s=RN(n),c=n.prevFromRect,l=n.prevToRect,u=e.rect,d=FN(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&GN(c,s)&&!GN(o,s)&&(u.top-s.top)/(u.left-s.left)===(o.top-s.top)/(o.left-s.left)&&(t=hye(u,c,l,r.options)),GN(s,o)||(n.prevFromRect=o,n.prevToRect=s,t||=r.options.animation,r.animate(n,u,s,t)),t&&(i=!0,a=Math.max(a,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},t),n.thisAnimationDuration=t)}),clearTimeout(t),i?t=setTimeout(function(){typeof n==`function`&&n()},a):typeof n==`function`&&n(),e=[]},animate:function(e,t,n,r){if(r){PN(e,`transition`,``),PN(e,`transform`,``);var i=FN(this.el),a=i&&i.a,o=i&&i.d,s=(t.left-n.left)/(a||1),c=(t.top-n.top)/(o||1);e.animatingX=!!s,e.animatingY=!!c,PN(e,`transform`,`translate3d(`+s+`px,`+c+`px,0)`),this.forRepaintDummy=mye(e),PN(e,`transition`,`transform `+r+`ms`+(this.options.easing?` `+this.options.easing:``)),PN(e,`transform`,`translate3d(0,0,0)`),typeof e.animated==`number`&&clearTimeout(e.animated),e.animated=setTimeout(function(){PN(e,`transition`,``),PN(e,`transform`,``),e.animated=!1,e.animatingX=!1,e.animatingY=!1},r)}}}}function mye(e){return e.offsetWidth}function hye(e,t,n,r){return Math.sqrt((t.top-e.top)**2+(t.left-e.left)**2)/Math.sqrt((t.top-n.top)**2+(t.left-n.left)**2)*r.animation}var QN=[],$N={initializeByDefault:!0},eP={mount:function(e){for(var t in $N)$N.hasOwnProperty(t)&&!(t in e)&&(e[t]=$N[t]);QN.forEach(function(t){if(t.pluginName===e.pluginName)throw`Sortable: Cannot mount plugin ${e.pluginName} more than once`}),QN.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+`Global`;QN.forEach(function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](gN({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](gN({sortable:t},n)))})},initializePlugins:function(e,t,n,r){for(var i in QN.forEach(function(r){var i=r.pluginName;if(!(!e.options[i]&&!r.initializeByDefault)){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[i]=a,vN(n,a.defaults)}}),e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);a!==void 0&&(e.options[i]=a)}},getEventProperties:function(e,t){var n={};return QN.forEach(function(r){typeof r.eventProperties==`function`&&vN(n,r.eventProperties.call(t[r.pluginName],e))}),n},modifyOption:function(e,t,n){var r;return QN.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[t]==`function`&&(r=i.optionListeners[t].call(e[i.pluginName],n))}),r}};function gye(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,a=e.cloneEl,o=e.toEl,s=e.fromEl,c=e.oldIndex,l=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,m=e.extraEventProperties;if(t||=n&&n[ZN],t){var h,g=t.options,_=`on`+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!bN&&!xN?h=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(h=document.createEvent(`Event`),h.initEvent(r,!0,!0)),h.to=o||n,h.from=s||n,h.item=i||n,h.clone=a,h.oldIndex=c,h.newIndex=l,h.oldDraggableIndex=u,h.newDraggableIndex=d,h.originalEvent=f,h.pullMode=p?p.lastPutMode:void 0;var v=gN(gN({},m),eP.getEventProperties(r,t));for(var y in v)h[y]=v[y];n&&n.dispatchEvent(h),g[_]&&g[_].call(t,h)}}var _ye=[`evt`],tP=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,i=cye(n,_ye);eP.pluginEvent.bind(GP)(e,t,gN({dragEl:rP,parentEl:iP,ghostEl:aP,rootEl:oP,nextEl:sP,lastDownEl:cP,cloneEl:lP,cloneHidden:uP,dragStarted:EP,putSortable:gP,activeSortable:GP.active,originalEvent:r,oldIndex:dP,oldDraggableIndex:pP,newIndex:fP,newDraggableIndex:mP,hideGhostForTarget:HP,unhideGhostForTarget:UP,cloneNowHidden:function(){uP=!0},cloneNowShown:function(){uP=!1},dispatchSortableEvent:function(e){nP({sortable:t,name:e,originalEvent:r})}},i))};function nP(e){gye(gN({putSortable:gP,cloneEl:lP,targetEl:rP,rootEl:oP,oldIndex:dP,oldDraggableIndex:pP,newIndex:fP,newDraggableIndex:mP},e))}var rP,iP,aP,oP,sP,cP,lP,uP,dP,fP,pP,mP,hP,gP,_P=!1,vP=!1,yP=[],bP,xP,SP,CP,wP,TP,EP,DP,OP,kP=!1,AP=!1,jP,MP,NP=[],PP=!1,FP=[],IP=typeof document<`u`,LP=wN,RP=xN||bN?`cssFloat`:`float`,vye=IP&&!TN&&!wN&&`draggable`in document.createElement(`div`),zP=function(){if(IP){if(bN)return!1;var e=document.createElement(`x`);return e.style.cssText=`pointer-events:auto`,e.style.pointerEvents===`auto`}}(),BP=function(e,t){var n=PN(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=BN(e,0,t),a=BN(e,1,t),o=i&&PN(i),s=a&&PN(a),c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+RN(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+RN(a).width;if(n.display===`flex`)return n.flexDirection===`column`||n.flexDirection===`column-reverse`?`vertical`:`horizontal`;if(n.display===`grid`)return n.gridTemplateColumns.split(` `).length<=1?`vertical`:`horizontal`;if(i&&o.float&&o.float!==`none`){var u=o.float===`left`?`left`:`right`;return a&&(s.clear===`both`||s.clear===u)?`vertical`:`horizontal`}return i&&(o.display===`block`||o.display===`flex`||o.display===`table`||o.display===`grid`||c>=r&&n[RP]===`none`||a&&n[RP]===`none`&&c+l>r)?`vertical`:`horizontal`},yye=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,a=n?e.width:e.height,o=n?t.left:t.top,s=n?t.right:t.bottom,c=n?t.width:t.height;return r===o||i===s||r+a/2===o+c/2},bye=function(e,t){var n;return yP.some(function(r){var i=r[ZN].options.emptyInsertThreshold;if(!(!i||VN(r))){var a=RN(r),o=e>=a.left-i&&e<=a.right+i,s=t>=a.top-i&&t<=a.bottom+i;if(o&&s)return n=r}}),n},VP=function(e){function t(e,n){return function(r,i,a,o){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(e==null&&(n||s))return!0;if(e==null||e===!1)return!1;if(n&&e===`clone`)return e;if(typeof e==`function`)return t(e(r,i,a,o),n)(r,i,a,o);var c=(n?r:i).options.group.name;return e===!0||typeof e==`string`&&e===c||e.join&&e.indexOf(c)>-1}}var n={},r=e.group;(!r||_N(r)!=`object`)&&(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},HP=function(){!zP&&aP&&PN(aP,`display`,`none`)},UP=function(){!zP&&aP&&PN(aP,`display`,``)};IP&&!TN&&document.addEventListener(`click`,function(e){if(vP)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),vP=!1,!1},!0);var WP=function(e){if(rP){e=e.touches?e.touches[0]:e;var t=bye(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[ZN]._onDragOver(n)}}},xye=function(e){rP&&rP.parentNode[ZN]._isOutsideThisEl(e.target)};function GP(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw`Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;this.el=e,this.options=t=vN({},t),e[ZN]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?`>li`:`>*`,swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return BP(e,this.options)},ghostClass:`sortable-ghost`,chosenClass:`sortable-chosen`,dragClass:`sortable-drag`,ignore:`a, img`,filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData(`Text`,t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:`data-id`,delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:`sortable-fallback`,fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:GP.supportPointer!==!1&&`PointerEvent`in window&&(!CN||wN),emptyInsertThreshold:5};for(var r in eP.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in VP(t),this)i.charAt(0)===`_`&&typeof this[i]==`function`&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&vye,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?DN(e,`pointerdown`,this._onTapStart):(DN(e,`mousedown`,this._onTapStart),DN(e,`touchstart`,this._onTapStart)),this.nativeDraggable&&(DN(e,`dragover`,this),DN(e,`dragenter`,this)),yP.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),vN(this,pye())}GP.prototype={constructor:GP,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(DP=null)},_getDirection:function(e,t){return typeof this.options.direction==`function`?this.options.direction.call(this,e,t,rP):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,a=e.type,o=e.touches&&e.touches[0]||e.pointerType&&e.pointerType===`touch`&&e,s=(o||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=r.filter;if(JP(n),!rP&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||r.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&CN&&s&&s.tagName.toUpperCase()===`SELECT`)&&(s=jN(s,r.draggable,n,!1),!(s&&s.animated)&&cP!==s)){if(dP=HN(s),pP=HN(s,r.draggable),typeof l==`function`){if(l.call(this,e,s,this)){nP({sortable:t,rootEl:c,name:`filter`,targetEl:s,toEl:n,fromEl:n}),tP(`filter`,t,{evt:e}),i&&e.preventDefault();return}}else if(l&&(l=l.split(`,`).some(function(r){if(r=jN(c,r.trim(),n,!1),r)return nP({sortable:t,rootEl:r,name:`filter`,targetEl:s,fromEl:n,toEl:n}),tP(`filter`,t,{evt:e}),!0}),l)){i&&e.preventDefault();return}r.handle&&!jN(c,r.handle,n,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,n){var r=this,i=r.el,a=r.options,o=i.ownerDocument,s;if(n&&!rP&&n.parentNode===i){var c=RN(n);if(oP=i,rP=n,iP=rP.parentNode,sP=rP.nextSibling,cP=n,hP=a.group,GP.dragged=rP,bP={target:rP,clientX:(t||e).clientX,clientY:(t||e).clientY},wP=bP.clientX-c.left,TP=bP.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,rP.style[`will-change`]=`all`,s=function(){if(tP(`delayEnded`,r,{evt:e}),GP.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!SN&&r.nativeDraggable&&(rP.draggable=!0),r._triggerDragStart(e,t),nP({sortable:r,name:`choose`,originalEvent:e}),NN(rP,a.chosenClass,!0)},a.ignore.split(`,`).forEach(function(e){IN(rP,e.trim(),qP)}),DN(o,`dragover`,WP),DN(o,`mousemove`,WP),DN(o,`touchmove`,WP),a.supportPointer?(DN(o,`pointerup`,r._onDrop),!this.nativeDraggable&&DN(o,`pointercancel`,r._onDrop)):(DN(o,`mouseup`,r._onDrop),DN(o,`touchend`,r._onDrop),DN(o,`touchcancel`,r._onDrop)),SN&&this.nativeDraggable&&(this.options.touchStartThreshold=4,rP.draggable=!0),tP(`delayStart`,this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(xN||bN))){if(GP.eventCanceled){this._onDrop();return}a.supportPointer?(DN(o,`pointerup`,r._disableDelayedDrag),DN(o,`pointercancel`,r._disableDelayedDrag)):(DN(o,`mouseup`,r._disableDelayedDrag),DN(o,`touchend`,r._disableDelayedDrag),DN(o,`touchcancel`,r._disableDelayedDrag)),DN(o,`mousemove`,r._delayedDragTouchMoveHandler),DN(o,`touchmove`,r._delayedDragTouchMoveHandler),a.supportPointer&&DN(o,`pointermove`,r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){rP&&qP(rP),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ON(e,`mouseup`,this._disableDelayedDrag),ON(e,`touchend`,this._disableDelayedDrag),ON(e,`touchcancel`,this._disableDelayedDrag),ON(e,`pointerup`,this._disableDelayedDrag),ON(e,`pointercancel`,this._disableDelayedDrag),ON(e,`mousemove`,this._delayedDragTouchMoveHandler),ON(e,`touchmove`,this._delayedDragTouchMoveHandler),ON(e,`pointermove`,this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t||=e.pointerType==`touch`&&e,!this.nativeDraggable||t?this.options.supportPointer?DN(document,`pointermove`,this._onTouchMove):t?DN(document,`touchmove`,this._onTouchMove):DN(document,`mousemove`,this._onTouchMove):(DN(rP,`dragend`,this),DN(oP,`dragstart`,this._onDragStart));try{document.selection?YP(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(_P=!1,oP&&rP){tP(`dragStarted`,this,{evt:t}),this.nativeDraggable&&DN(document,`dragover`,xye);var n=this.options;!e&&NN(rP,n.dragClass,!1),NN(rP,n.ghostClass,!0),GP.active=this,e&&this._appendGhost(),nP({sortable:this,name:`start`,originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(xP){this._lastX=xP.clientX,this._lastY=xP.clientY,HP();for(var e=document.elementFromPoint(xP.clientX,xP.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(xP.clientX,xP.clientY),e!==t);)t=e;if(rP.parentNode[ZN]._isOutsideThisEl(e),t)do{if(t[ZN]){var n=void 0;if(n=t[ZN]._onDragOver({clientX:xP.clientX,clientY:xP.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=AN(t));UP()}},_onTouchMove:function(e){if(bP){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=aP&&FN(aP,!0),o=aP&&a&&a.a,s=aP&&a&&a.d,c=LP&&MP&&UN(MP),l=(i.clientX-bP.clientX+r.x)/(o||1)+(c?c[0]-NP[0]:0)/(o||1),u=(i.clientY-bP.clientY+r.y)/(s||1)+(c?c[1]-NP[1]:0)/(s||1);if(!GP.active&&!_P){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(aP){a?(a.e+=l-(SP||0),a.f+=u-(CP||0)):a={a:1,b:0,c:0,d:1,e:l,f:u};var d=`matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;PN(aP,`webkitTransform`,d),PN(aP,`mozTransform`,d),PN(aP,`msTransform`,d),PN(aP,`transform`,d),SP=l,CP=u,xP=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!aP){var e=this.options.fallbackOnBody?document.body:oP,t=RN(rP,!0,LP,!0,e),n=this.options;if(LP){for(MP=e;PN(MP,`position`)===`static`&&PN(MP,`transform`)===`none`&&MP!==document;)MP=MP.parentNode;MP!==document.body&&MP!==document.documentElement?(MP===document&&(MP=LN()),t.top+=MP.scrollTop,t.left+=MP.scrollLeft):MP=LN(),NP=UN(MP)}aP=rP.cloneNode(!0),NN(aP,n.ghostClass,!1),NN(aP,n.fallbackClass,!0),NN(aP,n.dragClass,!0),PN(aP,`transition`,``),PN(aP,`transform`,``),PN(aP,`box-sizing`,`border-box`),PN(aP,`margin`,0),PN(aP,`top`,t.top),PN(aP,`left`,t.left),PN(aP,`width`,t.width),PN(aP,`height`,t.height),PN(aP,`opacity`,`0.8`),PN(aP,`position`,LP?`absolute`:`fixed`),PN(aP,`zIndex`,`100000`),PN(aP,`pointerEvents`,`none`),GP.ghost=aP,e.appendChild(aP),PN(aP,`transform-origin`,wP/parseInt(aP.style.width)*100+`% `+TP/parseInt(aP.style.height)*100+`%`)}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;if(tP(`dragStart`,this,{evt:e}),GP.eventCanceled){this._onDrop();return}tP(`setupClone`,this),GP.eventCanceled||(lP=YN(rP),lP.removeAttribute(`id`),lP.draggable=!1,lP.style[`will-change`]=``,this._hideClone(),NN(lP,this.options.chosenClass,!1),GP.clone=lP),n.cloneId=YP(function(){tP(`clone`,n),!GP.eventCanceled&&(n.options.removeCloneOnHide||oP.insertBefore(lP,rP),n._hideClone(),nP({sortable:n,name:`clone`}))}),!t&&NN(rP,i.dragClass,!0),t?(vP=!0,n._loopId=setInterval(n._emulateDragOver,50)):(ON(document,`mouseup`,n._onDrop),ON(document,`touchend`,n._onDrop),ON(document,`touchcancel`,n._onDrop),r&&(r.effectAllowed=`move`,i.setData&&i.setData.call(n,r,rP)),DN(document,`drop`,n),PN(rP,`transform`,`translateZ(0)`)),_P=!0,n._dragStartId=YP(n._dragStarted.bind(n,t,e)),DN(document,`selectstart`,n),EP=!0,window.getSelection().removeAllRanges(),CN&&PN(document.body,`user-select`,`none`)},_onDragOver:function(e){var t=this.el,n=e.target,r,i,a,o=this.options,s=o.group,c=GP.active,l=hP===s,u=o.sort,d=gP||c,f,p=this,m=!1;if(PP)return;function h(o,s){tP(o,p,gN({evt:e,isOwner:l,axis:f?`vertical`:`horizontal`,revert:a,dragRect:r,targetRect:i,canSort:u,fromSortable:d,target:n,completed:_,onMove:function(n,i){return KP(oP,t,rP,r,n,RN(n),e,i)},changed:v},s))}function g(){h(`dragOverAnimationCapture`),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function _(r){return h(`dragOverCompleted`,{insertion:r}),r&&(l?c._hideClone():c._showClone(p),p!==d&&(NN(rP,gP?gP.options.ghostClass:c.options.ghostClass,!1),NN(rP,o.ghostClass,!0)),gP!==p&&p!==GP.active?gP=p:p===GP.active&&gP&&(gP=null),d===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){h(`dragOverAnimationComplete`),p._ignoreWhileAnimating=null}),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(n===rP&&!rP.animated||n===t&&!n.animated)&&(DP=null),!o.dragoverBubble&&!e.rootEl&&n!==document&&(rP.parentNode[ZN]._isOutsideThisEl(e.target),!r&&WP(e)),!o.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function v(){fP=HN(rP),mP=HN(rP,o.draggable),nP({sortable:p,name:`change`,toEl:t,newIndex:fP,newDraggableIndex:mP,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=jN(n,o.draggable,t,!0),h(`dragOver`),GP.eventCanceled)return m;if(rP.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return _(!1);if(vP=!1,c&&!o.disabled&&(l?u||(a=iP!==oP):gP===this||(this.lastPutMode=hP.checkPull(this,c,rP,e))&&s.checkPut(this,c,rP,e))){if(f=this._getDirection(e,n)===`vertical`,r=RN(rP),h(`dragOverValid`),GP.eventCanceled)return m;if(a)return iP=oP,g(),this._hideClone(),h(`revert`),GP.eventCanceled||(sP?oP.insertBefore(rP,sP):oP.appendChild(rP)),_(!0);var y=VN(t,o.draggable);if(!y||Tye(e,f,this)&&!y.animated){if(y===rP)return _(!1);if(y&&t===e.target&&(n=y),n&&(i=RN(n)),KP(oP,t,rP,r,n,i,e,!!n)!==!1)return g(),y&&y.nextSibling?t.insertBefore(rP,y.nextSibling):t.appendChild(rP),iP=t,v(),_(!0)}else if(y&&wye(e,f,this)){var b=BN(t,0,o,!0);if(b===rP)return _(!1);if(n=b,i=RN(n),KP(oP,t,rP,r,n,i,e,!1)!==!1)return g(),t.insertBefore(rP,b),iP=t,v(),_(!0)}else if(n.parentNode===t){i=RN(n);var x=0,S,C=rP.parentNode!==t,w=!yye(rP.animated&&rP.toRect||r,n.animated&&n.toRect||i,f),T=f?`top`:`left`,E=zN(n,`top`,`top`)||zN(rP,`top`,`top`),D=E?E.scrollTop:void 0;DP!==n&&(S=i[T],kP=!1,AP=!w&&o.invertSwap||C),x=Eye(e,n,i,f,w?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,AP,DP===n);var O;if(x!==0){var k=HN(rP);do k-=x,O=iP.children[k];while(O&&(PN(O,`display`)===`none`||O===aP))}if(x===0||O===n)return _(!1);DP=n,OP=x;var A=n.nextElementSibling,j=!1;j=x===1;var M=KP(oP,t,rP,r,n,i,e,j);if(M!==!1)return(M===1||M===-1)&&(j=M===1),PP=!0,setTimeout(Cye,30),g(),j&&!A?t.appendChild(rP):n.parentNode.insertBefore(rP,j?A:n),E&&JN(E,0,D-E.scrollTop),iP=rP.parentNode,S!==void 0&&!AP&&(jP=Math.abs(S-RN(n)[T])),v(),_(!0)}if(t.contains(rP))return _(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ON(document,`mousemove`,this._onTouchMove),ON(document,`touchmove`,this._onTouchMove),ON(document,`pointermove`,this._onTouchMove),ON(document,`dragover`,WP),ON(document,`mousemove`,WP),ON(document,`touchmove`,WP)},_offUpEvents:function(){var e=this.el.ownerDocument;ON(e,`mouseup`,this._onDrop),ON(e,`touchend`,this._onDrop),ON(e,`pointerup`,this._onDrop),ON(e,`pointercancel`,this._onDrop),ON(e,`touchcancel`,this._onDrop),ON(document,`selectstart`,this)},_onDrop:function(e){var t=this.el,n=this.options;if(fP=HN(rP),mP=HN(rP,n.draggable),tP(`drop`,this,{evt:e}),iP=rP&&rP.parentNode,fP=HN(rP),mP=HN(rP,n.draggable),GP.eventCanceled){this._nulling();return}_P=!1,AP=!1,kP=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),XP(this.cloneId),XP(this._dragStartId),this.nativeDraggable&&(ON(document,`drop`,this),ON(t,`dragstart`,this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),CN&&PN(document.body,`user-select`,``),PN(rP,`transform`,``),e&&(EP&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),aP&&aP.parentNode&&aP.parentNode.removeChild(aP),(oP===iP||gP&&gP.lastPutMode!==`clone`)&&lP&&lP.parentNode&&lP.parentNode.removeChild(lP),rP&&(this.nativeDraggable&&ON(rP,`dragend`,this),qP(rP),rP.style[`will-change`]=``,EP&&!_P&&NN(rP,gP?gP.options.ghostClass:this.options.ghostClass,!1),NN(rP,this.options.chosenClass,!1),nP({sortable:this,name:`unchoose`,toEl:iP,newIndex:null,newDraggableIndex:null,originalEvent:e}),oP===iP?fP!==dP&&fP>=0&&(nP({sortable:this,name:`update`,toEl:iP,originalEvent:e}),nP({sortable:this,name:`sort`,toEl:iP,originalEvent:e})):(fP>=0&&(nP({rootEl:iP,name:`add`,toEl:iP,fromEl:oP,originalEvent:e}),nP({sortable:this,name:`remove`,toEl:iP,originalEvent:e}),nP({rootEl:iP,name:`sort`,toEl:iP,fromEl:oP,originalEvent:e}),nP({sortable:this,name:`sort`,toEl:iP,originalEvent:e})),gP&&gP.save()),GP.active&&((fP==null||fP===-1)&&(fP=dP,mP=pP),nP({sortable:this,name:`end`,toEl:iP,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){tP(`nulling`,this),oP=rP=iP=aP=sP=lP=cP=uP=bP=xP=EP=fP=mP=dP=pP=DP=OP=gP=hP=GP.dragged=GP.ghost=GP.clone=GP.active=null,FP.forEach(function(e){e.checked=!0}),FP.length=SP=CP=0},handleEvent:function(e){switch(e.type){case`drop`:case`dragend`:this._onDrop(e);break;case`dragenter`:case`dragover`:rP&&(this._onDragOver(e),Sye(e));break;case`selectstart`:e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,r=0,i=n.length,a=this.options;r<i;r++)t=n[r],jN(t,a.draggable,this.el,!1)&&e.push(t.getAttribute(a.dataIdAttr)||Oye(t));return e},sort:function(e,t){var n={},r=this.el;this.toArray().forEach(function(e,t){var i=r.children[t];jN(i,this.options.draggable,r,!1)&&(n[e]=i)},this),t&&this.captureAnimationState(),e.forEach(function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return jN(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var r=eP.modifyOption(this,e,t);r===void 0?n[e]=t:n[e]=r,e===`group`&&VP(n)},destroy:function(){tP(`destroy`,this);var e=this.el;e[ZN]=null,ON(e,`mousedown`,this._onTapStart),ON(e,`touchstart`,this._onTapStart),ON(e,`pointerdown`,this._onTapStart),this.nativeDraggable&&(ON(e,`dragover`,this),ON(e,`dragenter`,this)),Array.prototype.forEach.call(e.querySelectorAll(`[draggable]`),function(e){e.removeAttribute(`draggable`)}),this._onDrop(),this._disableDelayedDragEvents(),yP.splice(yP.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!uP){if(tP(`hideClone`,this),GP.eventCanceled)return;PN(lP,`display`,`none`),this.options.removeCloneOnHide&&lP.parentNode&&lP.parentNode.removeChild(lP),uP=!0}},_showClone:function(e){if(e.lastPutMode!==`clone`){this._hideClone();return}if(uP){if(tP(`showClone`,this),GP.eventCanceled)return;rP.parentNode==oP&&!this.options.group.revertClone?oP.insertBefore(lP,rP):sP?oP.insertBefore(lP,sP):oP.appendChild(lP),this.options.group.revertClone&&this.animate(rP,lP),PN(lP,`display`,``),uP=!1}}};function Sye(e){e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),e.cancelable&&e.preventDefault()}function KP(e,t,n,r,i,a,o,s){var c,l=e[ZN],u=l.options.onMove,d;return window.CustomEvent&&!bN&&!xN?c=new CustomEvent(`move`,{bubbles:!0,cancelable:!0}):(c=document.createEvent(`Event`),c.initEvent(`move`,!0,!0)),c.to=t,c.from=e,c.dragged=n,c.draggedRect=r,c.related=i||t,c.relatedRect=a||RN(t),c.willInsertAfter=s,c.originalEvent=o,e.dispatchEvent(c),u&&(d=u.call(l,c,o)),d}function qP(e){e.draggable=!1}function Cye(){PP=!1}function wye(e,t,n){var r=RN(BN(n.el,0,n.options,!0)),i=XN(n.el,n.options,aP),a=10;return t?e.clientX<i.left-a||e.clientY<r.top&&e.clientX<r.right:e.clientY<i.top-a||e.clientY<r.bottom&&e.clientX<r.left}function Tye(e,t,n){var r=RN(VN(n.el,n.options.draggable)),i=XN(n.el,n.options,aP),a=10;return t?e.clientX>i.right+a||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>i.bottom+a||e.clientX>r.right&&e.clientY>r.top}function Eye(e,t,n,r,i,a,o,s){var c=r?e.clientY:e.clientX,l=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!o){if(s&&jP<l*i){if(!kP&&(OP===1?c>u+l*a/2:c<d-l*a/2)&&(kP=!0),kP)f=!0;else if(OP===1?c<u+jP:c>d-jP)return-OP}else if(c>u+l*(1-i)/2&&c<d-l*(1-i)/2)return Dye(t)}return f||=o,f&&(c<u+l*a/2||c>d-l*a/2)?c>u+l/2?1:-1:0}function Dye(e){return HN(rP)<HN(e)?1:-1}function Oye(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function JP(e){FP.length=0;for(var t=e.getElementsByTagName(`input`),n=t.length;n--;){var r=t[n];r.checked&&FP.push(r)}}function YP(e){return setTimeout(e,0)}function XP(e){return clearTimeout(e)}IP&&DN(document,`touchmove`,function(e){(GP.active||_P)&&e.cancelable&&e.preventDefault()}),GP.utils={on:DN,off:ON,css:PN,find:IN,is:function(e,t){return!!jN(e,t,e,!1)},extend:dye,throttle:qN,closest:jN,toggleClass:NN,clone:YN,index:HN,nextTick:YP,cancelNextTick:XP,detectDirection:BP,getChild:BN,expando:ZN},GP.get=function(e){return e[ZN]},GP.mount=function(){var e=[...arguments];e[0].constructor===Array&&(e=e[0]),e.forEach(function(e){if(!e.prototype||!e.prototype.constructor)throw`Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;e.utils&&(GP.utils=gN(gN({},GP.utils),e.utils)),eP.mount(e)})},GP.create=function(e,t){return new GP(e,t)},GP.version=lye;var ZP=[],QP,$P,eF=!1,tF,nF,rF,iF;function aF(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)e.charAt(0)===`_`&&typeof this[e]==`function`&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?DN(document,`dragover`,this._handleAutoScroll):this.options.supportPointer?DN(document,`pointermove`,this._handleFallbackAutoScroll):t.touches?DN(document,`touchmove`,this._handleFallbackAutoScroll):DN(document,`mousemove`,this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?ON(document,`dragover`,this._handleAutoScroll):(ON(document,`pointermove`,this._handleFallbackAutoScroll),ON(document,`touchmove`,this._handleFallbackAutoScroll),ON(document,`mousemove`,this._handleFallbackAutoScroll)),sF(),oF(),fye()},nulling:function(){rF=$P=QP=eF=iF=tF=nF=null,ZP.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,i);if(rF=e,t||this.options.forceAutoScrollFallback||xN||bN||CN){cF(e,this.options,a,t);var o=WN(a,!0);eF&&(!iF||r!==tF||i!==nF)&&(iF&&sF(),iF=setInterval(function(){var a=WN(document.elementFromPoint(r,i),!0);a!==o&&(o=a,oF()),cF(e,n.options,a,t)},10),tF=r,nF=i)}else{if(!this.options.bubbleScroll||WN(a,!0)===LN()){oF();return}cF(e,this.options,WN(a,!1),!1)}}},vN(e,{pluginName:`scroll`,initializeByDefault:!0})}function oF(){ZP.forEach(function(e){clearInterval(e.pid)}),ZP=[]}function sF(){clearInterval(iF)}var cF=qN(function(e,t,n,r){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,o=t.scrollSensitivity,s=t.scrollSpeed,c=LN(),l=!1,u;$P!==n&&($P=n,oF(),QP=t.scroll,u=t.scrollFn,QP===!0&&(QP=WN(n,!0)));var d=0,f=QP;do{var p=f,m=RN(p),h=m.top,g=m.bottom,_=m.left,v=m.right,y=m.width,b=m.height,x=void 0,S=void 0,C=p.scrollWidth,w=p.scrollHeight,T=PN(p),E=p.scrollLeft,D=p.scrollTop;p===c?(x=y<C&&(T.overflowX===`auto`||T.overflowX===`scroll`||T.overflowX===`visible`),S=b<w&&(T.overflowY===`auto`||T.overflowY===`scroll`||T.overflowY===`visible`)):(x=y<C&&(T.overflowX===`auto`||T.overflowX===`scroll`),S=b<w&&(T.overflowY===`auto`||T.overflowY===`scroll`));var O=x&&(Math.abs(v-i)<=o&&E+y<C)-(Math.abs(_-i)<=o&&!!E),k=S&&(Math.abs(g-a)<=o&&D+b<w)-(Math.abs(h-a)<=o&&!!D);if(!ZP[d])for(var A=0;A<=d;A++)ZP[A]||(ZP[A]={});(ZP[d].vx!=O||ZP[d].vy!=k||ZP[d].el!==p)&&(ZP[d].el=p,ZP[d].vx=O,ZP[d].vy=k,clearInterval(ZP[d].pid),(O!=0||k!=0)&&(l=!0,ZP[d].pid=setInterval(function(){r&&this.layer===0&&GP.active._onTouchMove(rF);var t=ZP[this.layer].vy?ZP[this.layer].vy*s:0,n=ZP[this.layer].vx?ZP[this.layer].vx*s:0;typeof u==`function`&&u.call(GP.dragged.parentNode[ZN],n,t,e,rF,ZP[this.layer].el)!==`continue`||JN(ZP[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==c&&(f=WN(f,!1)));eF=l}},30),lF=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,o=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var c=n||i;o();var l=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(l.clientX,l.clientY);s(),c&&!c.el.contains(u)&&(a(`spill`),this.onSpill({dragEl:r,putSortable:n}))}};function uF(){}uF.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=BN(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:lF},vN(uF,{pluginName:`revertOnSpill`});function dF(){}dF.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:lF},vN(dF,{pluginName:`removeOnSpill`}),GP.mount(new aF),GP.mount(dF,uF);function fF(e,t,n){var r=W(e);return n-t>0?(r.splice(n+1,0,r[t]),r.splice(t,1)):(r.splice(n,0,r[t]),r.splice(t+1,1)),r}function pF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?pF(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hF(e){e.parentElement!==null&&e.parentElement.removeChild(e)}function gF(e,t,n){var r=n===0?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}function _F(e,t,n){var r=Wt(e),i=r.sortOnRowDraggable,a=r.dragSort,o=r.data,s=I(e.pagination),c=uM(),l=c.tableDraggableClasses,u=c.tableBaseClass,d=c.tableFullRowClasses,f=c.tableExpandClasses,p=I(e.columns||[]),m=I(null),h=U(function(){return p.value.find(function(e){return e.colKey===`drag`})}),g=U(function(){return i.value||[`row`,`row-handler-col`].includes(a.value)}),_=U(function(){return[`row-handler`,`row-handler-col`].includes(a.value)&&!!h.value}),v=U(function(){return[`col`,`row-handler-col`].includes(a.value)});e.sortOnRowDraggable&&Vp.error(`Table`,"`sortOnRowDraggable` is going to be deprecated, use dragSort='row' instead.");function y(t,n){var r=n.current??n.defaultCurrent,i=n.pageSize??n.defaultPageSize;return!e.disableDataPage&&n&&o.value.length>i?i*(r-1)+t:t}var b=function(n){var r;if(!((n==null||(r=n.children)==null?void 0:r.length)===0||!_.value&&!g.value)){var i=n?.querySelector(`tbody`);if(!i)return console.error(`tbody does not exist.`),null;var a=mF({animation:150,ghostClass:l.ghost,chosenClass:l.chosen,dragClass:l.dragging,filter:`.${d.base},.${f.row}`,onMove:function(e){return!up(e.related,d.base)},onEnd:function(n){var r;if(n.newIndex!==n.oldIndex){hF(n.item),gF(n.from,n.item,n.oldIndex);var i=n.oldIndex,a=n.newIndex;(q(e.firstFullRow)&&e.firstFullRow(sa)||t.slots.firstFullRow||t.slots[`first-full-row`])&&(--i,--a),s.value&&(i=y(i,s.value),a=y(a,s.value));var c={data:o.value,currentIndex:i,current:o.value[i],targetIndex:a,target:o.value[a],newData:fF(W(e.data),i,a),e:n,sort:`row`};c.currentData=c.newData,(r=e.onDragSort)==null||r.call(e,c)}}},e.dragSortOptions);i&&(g.value?new GP(i,mF({},a)):new GP(i,mF(mF({},a),{},{handle:`.${l.handle}`})))}},x=function(t,n){var r=mF({animation:150,dataIdAttr:`data-colkey`,direction:`vertical`,ghostClass:l.ghost,chosenClass:l.chosen,dragClass:l.dragging,handle:`.${u.thCellInner}`,onEnd:function(t){var r;if(t.newIndex!==t.oldIndex){n&&(hF(t.item),gF(t.from,t.item,t.oldIndex));var i=t.oldIndex,a=t.newIndex,o=t.target,s=n?i:a,c=n?a:i,l=o.children[s],u=o.children[c],d=iN(p.value,l.dataset.colkey),f=iN(p.value,u.dataset.colkey);(!d||!d.colKey)&&Vp.error(`Table`,`colKey is missing in ${JSON.stringify(d)}`),(!f||!f.colKey)&&Vp.error(`Table`,`colKey is missing in ${JSON.stringify(f)}`),s=aN(e.columns,d.colKey),c=aN(e.columns,f.colKey);var m={data:p.value,currentIndex:s,current:d,targetIndex:c,target:f,newData:fF(W(e.columns),s,c),e:t,sort:`col`};m.currentData=m.newData,(r=e.onDragSort)==null||r.call(e,m)}}},e.dragSortOptions);t&&new GP(t,r)},S=function(e){if(!(!v.value||!e)){var t=e.querySelectorAll(`thead > tr`);if(t.length<=1){var n=Y(t,1)[0];x(n,!0)}else t?.forEach(function(e){x(e,!1)})}};function C(e){m.value=e}function w(e){p.value=e}R([m,p,a,n],function(e){var t=Y(e,4),n=t[0];t[1],t[2];var r=t[3];T(n,r)});function T(e,t){var n=e;if(!(!e||!n.$el||!t.showElement))var r=setTimeout(function(){b(n.$el),S(n.$el);var e=setTimeout(function(){n.$refs.affixHeaderRef&&S(n.$refs.affixHeaderRef),clearTimeout(e)});clearTimeout(r)},60)}return{innerPagination:s,isRowDraggable:g,isRowHandlerDraggable:_,isColDraggable:v,setDragSortPrimaryTableRef:C,setDragSortColumns:w}}function vF(e){var t=pm(),n=Rp(`table`,e.locale).globalConfig,r=uM(),i=r.isLoadingClass,a=r.isLoadMoreClass,o=r.asyncLoadingClass,s=U(function(){return[o,G(G({},i,e.asyncLoading===`loading`),a,e.asyncLoading===`load-more`)]});function c(){var t;Rd(e.asyncLoading)&&((t=e.onAsyncLoadingClick)==null||t.call(e,{status:e.asyncLoading}))}function l(){var r=t(`asyncLoading`);if(Rd(r)){var i=e.asyncLoading,a={"load-more":n.value.loadingMoreText,loading:n.value.loadingText}[String(i)];return V(`div`,{class:s.value,onClick:c},[V(uh,{indicator:i===`loading`,loading:!!i,size:`small`,text:a},null)])}return[null,!1,void 0].includes(r)?null:V(`div`,{class:s.value,onClick:c},[r])}return{renderAsyncLoading:l}}function yF(e){return Gf(e)||oo(e)||ao(e)||Kf()}function bF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?bF(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var SF=z({name:`TableEditableCell`,props:{row:Object,rowKey:String,rowIndex:Number,col:Object,colIndex:Number,oldCell:[Function,String],tableBaseClass:Object,cellEmptyContent:[Function,String],editable:{type:Boolean,default:void 0},readonly:{type:Boolean},errors:{type:Array,default:void 0},onChange:Function,onValidate:Function,onRuleChange:Function,onEditableChange:Function,cellKey:String,onCellInstanceChange:Function},emits:[`update-edited-cell`],setup:function(e,t){var n=Wt(e),r=n.row,i=n.col,a=U(function(){return i.value.edit?.keepEditMode}),o=I(!1),s=I(a.value||e.col.edit?.defaultEditable||!1),c=I(),l=I(),u=Q(),d=Tm({Edit1Icon:vce}).Edit1Icon,f=function(n){if(so(n)===`object`&&(`rowValue`in n||n.isUpdateCurrentRow)){var i=n.isUpdateCurrentRow?J(r.value,e.rowKey):n.rowValue;delete n.rowValue,delete n.isUpdateCurrentRow,t.emit(`update-edited-cell`,i,r.value,n)}else c.value=n};R([a],function(e){e&&(s.value=!0)});var p=U(function(){var e,t;return((e=i.value.edit)==null||(t=e.on)==null?void 0:t.call(e,xF(xF({},m.value),{},{editedRow:h.value,updateEditedCellValue:f})))||{}}),m=U(function(){return{rowIndex:e.rowIndex,colIndex:e.colIndex,col:e.col,row:e.row}}),h=U(function(){var e=i.value.colKey,t=yF(e.split(`.`)||[]),n=t[0],a=t.slice(1),o=xF({},r.value);return a.length?(o[n]=iu(r.value[n]),Bf(o[n],a.join(`.`),c.value)):Bf(o,e,c.value),o}),g=U(function(){return FM({row:h.value,col:xF(xF({},i.value),{},{cell:e.oldCell}),rowIndex:e.rowIndex,colIndex:e.colIndex},t.slots,{cellEmptyContent:e.cellEmptyContent})}),_=U(function(){var e=i.value.edit;return q(e.props)?e.props(xF(xF({},m.value),{},{editedRow:h.value,updateEditedCellValue:f})):xF({},e.props)}),v=U(function(){var e,t=i.value.edit;if(!t)return{};var n=xF({},_.value);return delete n.onChange,delete n.value,(e=t.abortEditOnEvent)==null||e.forEach(function(e){delete n[e]}),n}),y=U(function(){var e=i.value.edit;return e?!!e.abortEditOnEvent?.includes(`onChange`):!1}),b=function(t){return new Promise(function(n){var r={result:[xF(xF({},m.value),{},{errorList:[],value:c.value})],trigger:t},a=q(i.value.edit.rules)?i.value.edit.rules(m.value):i.value.edit.rules;if(!i.value.edit||!a||!a.length){var o;(o=e.onValidate)==null||o.call(e,r),n(!0);return}LO(c.value,a).then(function(t){var i,a=t?.filter(function(e){return!e.result});r.result[0].errorList=a,(i=e.onValidate)==null||i.call(e,r),!a||!a.length?(l.value=[],n(!0)):(l.value=a,n(a))})})},x=function(e,t){return Do(e)&&Do(t)?JSON.stringify(e)===JSON.stringify(t):e===t},S=function(t,n){var o=[...arguments].slice(2);b(`self`).then(function(u){var d,f;if(u===!0){var h=J(r.value,i.value.colKey);if(x(c.value,h)||(c.value=h,t?.apply(void 0,o)),!a.value){(d=(f=p.value)[n])==null||d.call(f,o[2]);var g=setTimeout(function(){var t;l.value=[],s.value=!1,(t=e.onEditableChange)==null||t.call(e,xF(xF({},m.value),{},{value:c.value,editedRow:xF(xF({},e.row),{},G({},e.col.colKey,c.value)),validateEdit:b,isEdit:!1})),clearTimeout(g)},0)}}})},C=U(function(){var t,n=i.value.edit,r=e.editable===void 0;if(!(!s.value||!r)){if(!(n!=null&&(t=n.abortEditOnEvent)!=null&&t.length))return{};var a={},o=n?.onEdited;return n.abortEditOnEvent.forEach(function(e){e!==`onChange`&&(a[e]=function(){var t=[...arguments];S.apply(void 0,[o,e,xF(xF({},m.value),{},{trigger:e,newRowData:h.value})].concat(t))})}),a}}),w=function(t){var n,r,a,o,s,l;c.value=t;var u=xF(xF({},m.value),{},{value:t,editedRow:xF(xF({},e.row),{},G({},e.col.colKey,t))}),d=[...arguments].slice(1);if((n=_.value)==null||(r=n.onChange)==null||r.call.apply(r,[n,t].concat(d)),(a=e.onChange)==null||a.call(e,u),(o=e.onRuleChange)==null||o.call(e,u),(s=p.value)==null||(l=s.onChange)==null||l.call(s,u),e.editable===void 0&&y.value){var f=i.value.edit?.onEdited;S.apply(void 0,[f,`change`,xF(xF({},m.value),{},{trigger:`onChange`,newRowData:h.value})].concat(d))}i.value.edit?.validateTrigger===`change`&&b(`self`)},T=function(e){if(o.value){o.value=!1;return}if(!(!i.value.edit||!i.value.edit.component)&&s.value&&!(e.composedPath?.call(e)||e.path||[]).find(function(e){return e.classList?.contains(`${u.value}-popup__content`)})){var t=i.value.edit.onEdited;S(t,``,xF(xF({},m.value),{},{trigger:`document`,newRowData:h.value}))}},E=function(){var t;(t=e.onEditableChange)==null||t.call(e,xF(xF({},m.value),{},{value:c.value,editedRow:e.row,isEdit:!0,validateEdit:b}))},D=function(e){s.value=!0,E(),e.stopPropagation()},O={clearValidateCellData:function(){o.value=!0,l.value=[]}};mr(function(){var t,n;((t=e.col.edit)!=null&&t.defaultEditable||(n=e.col.edit)!=null&&n.keepEditMode)&&E(),e.cellKey&&e.onCellInstanceChange&&e.onCellInstanceChange(e.cellKey,O)}),vr(function(){e.cellKey&&e.onCellInstanceChange&&e.onCellInstanceChange(e.cellKey,null)});var k=U(function(){return J(r.value,i.value.colKey)});return R(k,function(e){c.value=e},{immediate:!0}),R(s,function(t){var n=e.editable===void 0;!i.value.edit||!i.value.edit.component||!n||(t?cp(document,`click`,T):lp(document,`click`,T))},{immediate:!0}),R(function(){return[e.editable,e.row,e.col,e.rowIndex,e.colIndex]},function(t){var n=Y(t,1)[0];if(n===!1)c.value=k.value;else if(n===!0){var i;(i=e.onRuleChange)==null||i.call(e,xF(xF({},m.value),{},{value:k.value,editedRow:r.value}))}},{immediate:!0}),R(function(){return e.errors},function(e){l.value=e}),t.expose(O),function(){var t,n,r;if(e.readonly)return g.value;if(e.editable===void 0&&!s.value||e.editable===!1)return V(`div`,{class:e.tableBaseClass.cellEditable,onClick:D},[g.value,i.value.edit?.showEditIcon!==!1&&V(d,null,null)]);var a=i.value.edit?.component;if(!a)return Vp.error(`Table`,`edit.component is required.`),null;var o=(t=l.value)==null||(t=t[0])==null?void 0:t.message,u=xF({},p.value);return delete u.onChange,(n=i.value.edit)!=null&&(n=n.abortEditOnEvent)!=null&&n.length&&i.value.edit.abortEditOnEvent.forEach(function(e){u[e]&&delete u[e]}),V(`div`,{class:e.tableBaseClass.cellEditWrap,onClick:function(e){e.stopPropagation()}},[V(a,H({status:o?((r=l.value)==null||(r=r[0])==null?void 0:r.type)||`error`:void 0,tips:o},v.value,C.value,u,{value:c.value,onChange:w}),null)])}}});function CF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?CF(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function TF(e){var t=Wt(e).editableRowKeys,n=new Map,r=I({}),i=U(function(){return Zve(e.editableRowKeys,e.data,e.rowKey||`id`)}),a=I({}),o=I({}),s=I({}),c=function(t){var n={};return t.forEach(function(t){var r=t.row,i=t.col,a=t.errorList,o=[J(r,e.rowKey||`id`),i.colKey].join(`__`);a!=null&&a.length?n[o]=a:delete n[o]}),n},l=function(e){var t=n.get(e);if(t){var r=t.map(function(e){return new Promise(function(t){var n=e.editedRow,r=e.col,i=q(r.edit.rules)?r.edit.rules(e):r.edit.rules;if(!r.edit||!i||!i.length){t(wF(wF({},e),{},{errorList:[]}));return}LO(J(n,r.colKey),i).then(function(n){t(wF(wF({},e),{},{errorList:n.filter(function(e){return!e.result})}))})})});return new Promise(function(e,t){Promise.all(r).then(function(t){e({errors:t.filter(function(e){return e.errorList?.length}),errorMap:c(t)})},t)})}},u=function(t){return new Promise(function(n,i){l(t).then(function(t){var i,a=t.errors;r.value=t.errorMap;var o=`parent`;(i=e.onRowValidate)==null||i.call(e,{trigger:o,result:a}),n({trigger:o,result:a})},i)})},d=function(){var t=Object.keys(a.value),n=e.data.map(function(t){return t[e.rowKey]?.toString()}),r=t.filter(function(e){return n.includes(Vve(e))}).map(function(e){return a.value[e].validateEdit(`parent`)});return new Promise(function(n,i){Promise.all(r).then(function(r){var i,a={};r.forEach(function(e,n){e!==!0&&(a[t[n]]=e)}),(i=e.onValidate)==null||i.call(e,{result:a}),n({result:a})},i)})};return R(function(){return t.value?.join(`,`)},function(e){var t=e.split(`,`);Object.keys(o.value).forEach(function(e){t.includes(e)||delete o.value[e]})}),{editedFormData:o,errorListMap:r,editableKeysMap:i,validateTableData:function(){if(Object.keys(a.value).length)return d();for(var t=[],n=e.data||[],i=0,o=n.length;i<o;i++){var s=J(n[i],e.rowKey||`id`);t.push(l(s))}return new Promise(function(n,i){Promise.all(t).then(function(t){var i,a={};t.forEach(function(){var e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{errors:[],errorMap:{}}).errorMap;e&&Object.assign(a,e)}),r.value=a,(i=e.onValidate)==null||i.call(e,{result:a}),n({result:a})},i)})},validateTableCellData:d,validateRowData:u,onRuleChange:function(t){if(e.editableRowKeys){var r=J(t.row,e.rowKey||`id`),i=n.get(r);if(i){var a=i.findIndex(function(e){return e.col.colKey===t.col.colKey});a===-1?i.push(t):i[a]=t,n.set(r,i)}else n.set(r,[t])}},clearValidateRowData:function(){r.value={}},clearAllEditableCellData:function(){Object.keys(s.value).forEach(function(e){var t,n;(t=s.value[e])==null||(n=t.clearValidateCellData)==null||n.call(t)})},onCellInstanceChange:function(e,t){t?s.value[e]=t:delete s.value[e]},onUpdateEditedCell:function(e,t,n){o.value[e]||(o.value[e]=iu(t)),Object.entries(n).forEach(function(t){var n=Y(t,2),r=n[0],i=n[1];Bf(o.value[e],r,i)})},getEditRowData:function(t){var n,r=t.row,i=t.col,a=J(r,e.rowKey||`id`),s=o.value[a];if(s&&(n=e.editableRowKeys)!=null&&n.includes(a)){var c=wF({},s);return Bf(c,i.colKey,J(s,i.colKey)),c}return r},onPrimaryTableCellEditChange:function(t){var n=kM(t.row,e.rowKey,t.col.colKey,t.colIndex);t.isEdit?a.value[n]=t:delete a.value[n]}}}function EF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function DF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?EF(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var OF=`hideSortTips.dragSort.defaultExpandedRowKeys.defaultSelectedRowKeys.columnController.filterRow.sortOnRowDraggable.expandOnRowClick.expand-on-row-click.expanded-row.editable-row-keys.editable-cell-state.filter-value.multipleSort.expandIcon.expand-icon.reserveSelectedRowOnPaginate.expandedRowKeys.expandedRow.reserve-selected-row-on-paginate.reserveSelectedRowOnPaginate.selected-row-keys.selectedRowKeys.selectOnRowClick.column-controller.columnController.dragSort.drag-sort.hideSortTips.showSortColumnBgColor.filter-row.filterRow.multiple-sort.multipleSort.async-loading.onChange.onAsyncLoadingClick.onColumnChange.onColumnControllerVisibleChange.onDataChange.onDisplayColumnsChange.onDragSort.onExpandChange.onFilterChange.onSelectChange.onSortChange`.split(`.`),kF=z({name:`TPrimaryTable`,props:DF(DF({},sM),ZM),setup:function(e,t){var n=pm(),r=Wt(e),i=r.columns,a=r.columnController,o=I(null),s=I(!1),c=uM(),l=c.classPrefix,u=c.tableDraggableClasses,d=c.tableBaseClass,f=c.tableSelectedClasses,p=c.tableSortClasses,m=Rp(`table`,e.locale).globalConfig,h=BM(e).sizeClassNames,g=U(function(){return e.size??m.value.size}),_=Yve(e,t),v=_.tDisplayColumns,y=_.renderColumnController,b=Xve(e,t),x=b.showExpandedRow,S=b.showExpandIconColumn,C=b.getExpandColumn,w=b.renderExpandedRow,T=b.onInnerExpandRowClick,E=b.getExpandedRowClass,D=nye(e,t).renderSortIcon,O=Qve(e,f),k=O.selectColumn,A=O.showRowSelect,j=O.selectedRowClassNames,M=O.currentPaginateData,ee=O.formatToRowSelectColumn,N=O.setTSelectedRowKeys,P=O.onInnerSelectRowClick,F=O.handleRowSelectWithAreaSelection,te=aye(e,t),ne=te.hasEmptyCondition,re=te.isTableOverflowHidden,ie=te.renderFilterIcon,ae=te.renderFirstFilterRow,oe=te.setFilterPrimaryTableRef,se=_F(e,t,U(function(){return{showElement:s.value}})),ce=se.isRowHandlerDraggable,le=se.isRowDraggable,ue=se.isColDraggable,de=se.innerPagination,fe=se.setDragSortPrimaryTableRef,pe=se.setDragSortColumns,me=gM(e).renderTitleWidthIcon,he=vF(e).renderAsyncLoading,ge=TF(e),_e=ge.errorListMap,ve=ge.editableKeysMap,ye=ge.validateRowData,be=ge.validateTableData,xe=ge.validateTableCellData,Se=ge.onRuleChange,Ce=ge.clearValidateRowData,we=ge.clearAllEditableCellData,Te=ge.onCellInstanceChange,Ee=ge.onUpdateEditedCell,De=ge.getEditRowData,Oe=ge.onPrimaryTableCellEditChange,ke=U(function(){return!!(x.value||A.value)}),Ae=U(function(){return!!(x.value||A.value)}),je=U(function(){return G(G(G(G(G(G(G(G({},u.colDraggable,ue.value),u.rowHandlerDraggable,ce.value),u.rowDraggable,le.value),d.overflowVisible,re.value===!1),d.tableRowEdit,e.editableRowKeys),`${l}-table--select-${k.value?.type}`,k.value),`${l}-table--row-select`,A.value),`${l}-table--row-expandable`,x.value)}),Me=U(function(){return[e.rowClassName,j.value,E].filter(function(e){return e})}),Ne=U(function(){var t=[e.rowAttributes];return(ce.value||le.value)&&t.push(function(t){var n=t.row;return{"data-id":J(n,e.rowKey||`id`)}}),t.filter(function(e){return e})});mr(function(){oe(o.value),fe(o.value)}),t.expose({validateRowData:ye,validateTableData:be,validateTableCellData:xe,clearValidateData:function(){Ce(),we()},refreshTable:function(){o.value.refreshTable()},scrollToElement:function(e){o.value.scrollToElement(e)},scrollColumnIntoView:function(e){o.value.scrollColumnIntoView(e)},baseTableRef:o});var Pe=function(t){var n;(n=e.onRowEdit)==null||n.call(e,t),Ee(J(t.editedRow,e.rowKey||`id`),t.row,G({},t.col.colKey,t.value))},Fe=function(n){for(var r=arguments.length>1&&arguments[1]!==void 0&&arguments[1],i=[],a=function(){var a,c,u,f=DF({},n[s]);if(!(f.children?.length||v.value?.includes(f.colKey))&&(e.columnController||e.displayColumns||e.defaultDisplayColumns)&&!r)return 1;f=ee(f);var m=e.sort;if(f.sorter&&e.showSortColumnBgColor&&(m instanceof Array?m:[m]).find(function(e){return e&&e.sortBy===f.colKey&&e.descending!==void 0})&&(f.className=f.className instanceof Array?f.className.concat(p.sortColumn):[f.className,p.sortColumn]),f.sorter||f.filter){var _=hM(t.slots,f,s),y=f.ellipsisTitle;f.title=function(e,t){var n=f.sorter?D(t):null,r=f.filter?ie(t):null,i=o.value?.tableContentRef;return me([_,n,r],t.col,t.colIndex,y,i,{classPrefix:l,ellipsisOverlayClassName:g.value===`medium`?``:h[g.value]})},f.ellipsisTitle=!1}if((a=f.edit)!=null&&a.component){var b=f.cell;f.cell=function(n,r){var i=DF(DF({},r),{},{row:De(r),oldCell:b,rowKey:e.rowKey||`id`,tableBaseClass:d,cellEmptyContent:e.cellEmptyContent,onChange:Pe,onValidate:e.onRowValidate,onRuleChange:Se,onEditableChange:Oe});if(e.editableRowKeys){var a=J(r.row,e.rowKey||`id`);i.editable=ve.value[a]||!1;var o=[a,r.col.colKey].join(`__`),s=_e.value?.[o];s&&(i.errors=s)}return e.editableCellState&&(i.readonly=!e.editableCellState(r)),V(SF,H(i,{cellKey:kM(r.row,e.rowKey||`id`,r.col.colKey,r.colIndex),onCellInstanceChange:Te,onUpdateEditedCell:Ee}),t.slots)}}(c=f.children)!=null&&c.length&&(f.children=Fe(f.children,r||v.value?.includes(f.colKey))),(!f.children||(u=f.children)!=null&&u.length)&&i.push(f)},s=0,c=n.length;s<c;s++)if(a())continue;return i},Ie=U(function(){var e=Fe(i.value);return S.value&&e.unshift(C()),e}),Le=function(t,n){var r,i;de.value=DF(DF({},de.value),t),M.value=n,(r=e.onPageChange)==null||r.call(e,t,n);var a=[{pagination:t},{trigger:`pagination`,currentData:n}];(i=e.onChange)==null||i.call.apply(i,[e].concat(a)),e.reserveSelectedRowOnPaginate||N([],{selectedRowData:[],type:`uncheck`,currentRowKey:`CLEAR_ON_PAGINATE`})},Re=function(t){var n;(n=e.onActiveRowAction)==null||n.call(e,t),F(t)},ze=function(t){e.expandOnRowClick&&T(t),e.selectOnRowClick&&P(t)},Be,Ve=250,He=function(t){if(!e.onRowDblclick){ze(t);return}Be?(clearTimeout(Be),Be=void 0):Be=setTimeout(function(){ze(t),Be=void 0},Ve)},Ue=function(e){s.value=e},We=function(t,r,i,a){if(!i)return e[t];var o=r(sa),s=n(t);return o&&!s?function(){return o}:s&&!o?function(){return s}:o&&s?function(){return a!=null&&a.reverse?V(`div`,null,[o,s]):V(`div`,null,[s,o])}:null};return function(){var n=!!(a.value&&Object.keys(a.value).length),r=n?a.value.placement||`top-right`:``,i=n&&r?.indexOf(`bottom`)!==-1,s=We(`topContent`,y,n&&!i),c=We(`bottomContent`,y,i,{reverse:!0}),l=We(`firstFullRow`,ae,!ne.value),u=We(`lastFullRow`,he,!!e.asyncLoading),d=Yi().vnode,f=DF(DF({},Sf(d.props,OF)),{},{rowKey:e.rowKey,rowClassName:Me.value,rowAttributes:Ne.value,columns:Ie.value,keyboardRowHover:e.keyboardRowHover??ke.value,disableSpaceInactiveRow:e.disableSpaceInactiveRow??Ae.value,topContent:s,bottomContent:c,firstFullRow:l,lastFullRow:u,thDraggable:[`col`,`row-handler-col`].includes(e.dragSort),onShowElementChange:Ue,onPageChange:Le,renderExpandedRow:x.value?w:void 0,onActiveRowAction:Re});return(e.expandOnRowClick||e.selectOnRowClick)&&(f.onRowClick=He),V(XM,H(f,{ref:o,class:je.value,onLeafColumnsChange:pe}),t.slots)}}}),AF={beforeDragSort:{type:Function},expandedTreeNodes:{type:Array,default:void 0},defaultExpandedTreeNodes:{type:Array,default:function(){return[]}},tree:{type:Object},treeExpandAndFoldIcon:{type:Function},onAbnormalDragSort:Function,onExpandedTreeNodesChange:Function,onTreeExpandChange:Function};function jF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function MF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?jF(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var NF={code:1001,reason:`The same level of rows can not be swapped.`};function PF(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=J(e,t);return n||r?`${i}_${n||0}_${r||0}}`:i}var FF=function(){function e(){Xp(this,e),G(this,`treeDataMap`,new Map),G(this,`expandAllRowIndex`,void 0),this.treeDataMap=new Map}return Yp(e,[{key:`initialTreeStore`,value:function(e,t,n){var r;(r=this.treeDataMap)==null||r.clear(),this.initialTreeDataMap(this.treeDataMap,e,t.find(function(e){return e.colKey===`row-select`}),n)}},{key:`getAllUniqueKeys`,value:function(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0,i=e.length;r<i;r++){var a=e[r];n.push(PF(a,t.rowKey));var o=J(a,t.childrenKey);o!=null&&o.length&&this.getAllUniqueKeys(o,t,n)}return n}},{key:`getExpandedChildrenKeys`,value:function(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0,i=e.length;r<i;r++){var a=e[r],o=PF(a,t.rowKey);this.treeDataMap.get(o).expanded&&n.push(o);var s=J(a,t.childrenKey);s!=null&&s.length&&this.getExpandedChildrenKeys(s,t,n)}return n}},{key:`expandTreeNode`,value:function(e,t,n){var r=this;return e.length&&e.forEach(function(e){var i=r.treeDataMap.get(e);i&&r.toggleExpandData({row:i.row,rowIndex:i.rowIndex},t,n,`expand`)}),t}},{key:`foldTreeNode`,value:function(e,t,n){var r=this;return e.length&&e.forEach(function(e){var i=r.treeDataMap.get(e);i&&r.toggleExpandData({row:i.row,rowIndex:i.rowIndex},t,n,`fold`)}),t}},{key:`toggleExpandData`,value:function(e,t,n,r){if(!e)return Vp.error(`EnhancedTable`,"the node toggleExpanded doest not exist in `data`"),t;var i=J(e.row,n.rowKey);if(sf(i))return Vp.error(`EnhancedTable`,"`rowKey` could be wrong, can not get rowValue from `data` by `rowKey`."),[];if(J(e.row,n.childrenKey)===!0)return t;var a=this.treeDataMap.get(i);return r===`expand`&&a.expanded||r===`fold`&&!a.expanded?t:(a.rowIndex=a.rowIndex??e.rowIndex,a.expanded=!a.expanded,this.treeDataMap.set(i,a),this.updateExpandRow(a,t,n))}},{key:`updateExpandRow`,value:function(e,t,n){var r=e.row,i=e.rowIndex,a=e.expanded,o=this.treeDataMap,s=J(r,n.childrenKey);if(!r||!s)return t;if(a)RF(o,e,a,n),IF(o,r,s.length,`expand`,n),t.splice.apply(t,[i+1,0].concat(s));else{RF(o,e,a,n);var c=e.expandChildrenLength||s.length;IF(o,r,-1*c,`fold`,n),t.splice(i+1,c)}return BF(o,t,{rowKey:n.rowKey,minRowIndex:i+1}),t}},{key:`getData`,value:function(e){return this.treeDataMap.get(e)}},{key:`updateData`,value:function(e,t,n,r){var i=PF(t,r.rowKey),a=this.treeDataMap.get(e);if(!a||a.rowIndex===-1)return zF(n,e,t,{rowKey:r.rowKey,childrenKey:r.childrenKey}),-1;if(J(t,r.childrenKey)===!0){var o=J(a.row,r.childrenKey);if(o!=null&&o.length)for(var s=0,c=o.length;s<c;s++){var l=PF(o[s],r.rowKey);this.treeDataMap.get(l)&&this.treeDataMap.delete(l)}}var u=a.rowIndex;if(a.row=t,a.id=i,a.parent){var d=J(a.parent.row,r.childrenKey),f=d.findIndex(function(t){return PF(t,r.rowKey)===e});d[f]=t}return this.treeDataMap.set(i,a),e!==i&&this.treeDataMap.delete(e),u}},{key:`remove`,value:function(e,t,n){var r=this.treeDataMap.get(e);if(r&&r.rowIndex>=0){var i=(r.expandChildrenLength||0)+1;if(t.splice(r.rowIndex,i),r.parent){var a=J(r.parent.row,n.childrenKey),o=a.findIndex(function(t){return J(t,n.rowKey)===e});a.splice(o,1),IF(this.treeDataMap,r.parent.row,-1*i,`delete`,n)}this.treeDataMap.delete(e),BF(this.treeDataMap,t,{minRowIndex:r.rowIndex,rowKey:n.rowKey,type:`remove`})}else Vp.warn(`EnhancedTable`,`Can not remove this node, which is not appeared.`);return t}},{key:`removeChildren`,value:function(e,t,n){var r=this.treeDataMap.get(e);if(r&&r.rowIndex>=0){var i=r.expandChildrenLength||0;i&&t.splice(r.rowIndex+1,i),r.parent&&IF(this.treeDataMap,r.parent.row,-1*i,`delete`,n),r.expandChildrenLength=0,r.expanded=!1,Bf(r.row,n.childrenKey,void 0),this.treeDataMap.set(e,r),i&&BF(this.treeDataMap,t,{minRowIndex:r.rowIndex+1,rowKey:n.rowKey,type:`remove`})}else Vp.warn(`EnhancedTable`,`Can not remove this node's children, which is not appeared.`);return t}},{key:`appendTo`,value:function(e,t,n,r){var i=this.treeDataMap.get(e);if(!this.validateDataExist(i,e))return n;for(var a=J(i.row,r.childrenKey),o=i.expanded||!(a!=null&&a.length),s=t instanceof Array?t:[t],c=[],l=[],u=-1,d=0,f=s.length;d<f;d++){var p=s[d],m=PF(p,r.rowKey),h=this.treeDataMap.get(m);if(!this.validateDataDoubleExist(h,m))Vp.warn(`Table`,`Duplicated Data \`${m}\` has been removed.`);else{var g=o?i.rowIndex+(i.expandChildrenLength||0)+(d+1):-1;d===0&&(u=g);var _={id:m,row:p,rowIndex:g,level:i.level+1,expanded:!1,expandChildrenLength:0,disabled:!1,path:W(i.path),parent:i};_.path=_.path.concat(_),c.push(p),l.push(_),this.treeDataMap.set(m,_)}}if(!c.length)return n;if(a!=null&&a.length?i.row[r.childrenKey]=i.row[r.childrenKey].concat(c):(i.row[r.childrenKey]=c,i.expanded=!0),o){n.splice.apply(n,[u,0].concat(c));var v=c.length||1;IF(this.treeDataMap,i.row,v,`insert`,{rowKey:r.rowKey,childrenKey:r.childrenKey}),BF(this.treeDataMap,n,{minRowIndex:u+c.length-1,rowKey:r.rowKey,type:`add`,count:1})}return n}},{key:`appendToRoot`,value:function(e,t,n){for(var r=t.concat(e),i=e instanceof Array?e:[e],a=t.length,o=0,s=i.length;o<s;o++){var c=J(i[o],n.rowKey);if(!c){Vp.error(`Table`,"`rowKey` could be wrong, can not get rowValue from `data` by `rowKey`.");continue}var l={id:c,row:i[o],rowIndex:a+o,level:0,expanded:!1,expandChildrenLength:0,disabled:!1};l.path=[l],this.treeDataMap.set(c,l)}return r}},{key:`insertAfter`,value:function(e,t,n,r){return this.insert(e,t,n,r,`after`)}},{key:`insertBefore`,value:function(e,t,n,r){return this.insert(e,t,n,r,`before`)}},{key:`insert`,value:function(e,t,n,r,i){var a=this.treeDataMap.get(e);if(!this.validateDataExist(a,e))return n;var o=J(t,r.rowKey),s=this.treeDataMap.get(o);if(!this.validateDataDoubleExist(s,o))return n;var c={id:o,row:t,rowIndex:i===`after`?a.rowIndex+1:a.rowIndex,level:a.level,expanded:!1,expandChildrenLength:0,disabled:!1,path:a.path.slice(0,-1),parent:a.parent};c.path=c.path.concat(c);var l=i===`after`?a.rowIndex+(a.expandChildrenLength+1):a.rowIndex;n.splice(l,0,t);var u=+(i===`after`);if(a.parent){var d=a.parent.row[r.childrenKey].findIndex(function(t){return e===J(t,r.rowKey)});a.parent.row[r.childrenKey].splice(d+u,0,t),IF(this.treeDataMap,a.parent.row,1,`insert`,r)}return this.treeDataMap.set(o,c),BF(this.treeDataMap,n,{rowKey:r.rowKey,minRowIndex:a.rowIndex+1,type:`add`}),n}},{key:`swapData`,value:function(e,t,n){var r=t.currentIndex,i=t.targetIndex;if(r===i)return{dataSource:e,result:!0};var a=J(t.current,n.rowKey),o=J(t.target,n.rowKey),s=this.treeDataMap.get(a),c=this.treeDataMap.get(o);if(s.level!==c.level)return{dataSource:e,result:!1,code:NF.code,reason:NF.reason};var l=r+s.expandChildrenLength+1,u=i+c.expandChildrenLength+1,d=e.slice(r,l),f=e.slice(i,u);if(r>i){var p=e.slice(u,r),m=d.concat(f,p);e.splice(i,m.length),e.splice.apply(e,[i,0].concat(W(m))),BF(this.treeDataMap,e,{rowKey:n.rowKey,minRowIndex:i,maxRowIndex:l})}else{var h=e.slice(l,i).concat(f,d);e.splice(r,h.length),e.splice.apply(e,[r,0].concat(W(h))),BF(this.treeDataMap,e,{rowKey:n.rowKey,minRowIndex:r,maxRowIndex:u})}if(s.parent){for(var g=s.parent.row[n.childrenKey],_=0,v=-1,y=-1,b=0,x=g.length;b<x&&(J(g[b],n.rowKey)===a&&(y=b,_+=1),J(g[b],n.rowKey)===o&&(v=b,_+=1),!(_>=2));b++);y<v?(g.splice(v+1,0,t.current),g.splice(y,1)):(g.splice(y,1),g.splice(v,0,t.current))}return{dataSource:e,result:!0}}},{key:`expandAll`,value:function(e,t){var n=this;this.expandAllRowIndex=0;var r=[],i=function(e,t){for(var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=0,s=e.length;o<s;o++){var c=e[o],l=J(c,t.rowKey),u=n.treeDataMap.get(l),d=J(c,t.childrenKey);if(u.rowIndex=n.expandAllRowIndex,d!==!0&&d!=null&&d.length&&(u.expanded=!0),u.expandChildrenLength=d?.length||0,n.expandAllRowIndex+=1,r.push(c),n.treeDataMap.set(l,u),d!=null&&d.length){for(var f=a;(p=f)!=null&&p.row;){var p;f.expandChildrenLength+=d.length,n.treeDataMap.set(f.id,f),f=f.parent}i(d,t,u)}}};return i(e,t),r}},{key:`foldAll`,value:function(e,t){for(var n=[],r=0,i=0,a=e.length;i<a;i++){var o=e[i],s=J(o,t.rowKey),c=this.treeDataMap.get(s);c.rowIndex=c.level===0?r:-1,c.expanded=!1,c.expandChildrenLength=0,c.level===0&&(n.push(o),r+=1);var l=J(o,t.childrenKey);l!=null&&l.length&&this.foldAll(l,t)}return n}},{key:`getTreeNode`,value:function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var a=e[r],o=J(a,t.rowKey);this.treeDataMap.get(o).level===0&&n.push(a)}return n}},{key:`getTreeExpandedRow`,value:function(e,t){var n=this,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`data`,i=[];return e.forEach(function(e){var a=J(e,t.rowKey),o=n.treeDataMap.get(a);o.expanded&&(r===`unique`?i.push(a):r===`data`?i.push(e):i.push(o))}),i}},{key:`initialTreeDataMap`,value:function(e,t,n,r){for(var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,o=0,s=t.length;o<s;o++){var c=t[o],l=PF(c,r.rowKey);if(sf(l)){Vp.error(`EnhancedTable`,"`rowKey` could be wrong, can not get rowValue from `data` by `rowKey`.");return}var u=J(c,r.childrenKey),d={id:l,row:c,rowIndex:i===0?o:-1,level:i,expanded:!1,expandChildrenLength:0,disabled:rN(n,c,o),parent:a};d.path=a?a.path.concat(d):[d],e.set(l,d),u!=null&&u.length&&this.initialTreeDataMap(e,u,n,r,i+1,d)}}},{key:`updateDisabledState`,value:function(e,t,n){for(var r=0,i=e.length;r<i;r++){var a=e[r],o=J(a,n.rowKey);if(sf(o)){Vp.error(`EnhancedTable`,"`rowKey` could be wrong, can not get rowValue from `data` by `rowKey`.");return}var s=this.treeDataMap.get(o);s.disabled=rN(t,a,r),this.treeDataMap.set(o,s);var c=J(a,n.childrenKey);c!=null&&c.length&&this.updateDisabledState(c,t,n)}}},{key:`validateDataExist`,value:function(e,t){return e?!0:(Vp.warn(`EnhancedTable`,`${t} does not exist.`),!1)}},{key:`validateDataDoubleExist`,value:function(e,t){return e?(Vp.warn(`EnhancedTable`,`Duplicated Key. ${t} already exists.`),!1):!0}}])}();function IF(e,t,n,r,i){for(var a=t;a;){var o,s=e.get(J(a,i.rowKey)),c=(s.expandChildrenLength||0)+n;s.expandChildrenLength=Math.max(0,c),a=s==null||(o=s.parent)==null?void 0:o.row}r===`fold`&&LF(e,t,i)}function LF(e,t,n){var r=J(t,n.childrenKey);r!=null&&r.length&&r.forEach(function(t){var r=e.get(J(t,n.rowKey));r&&(r.expandChildrenLength=0,LF(e,r.row,n))})}function RF(e,t,n,r){var i=t.row,a=t.rowIndex;J(i,r.childrenKey).forEach(function(i,o){var s=J(i,r.rowKey),c=n?a+1+o:-1,l=MF(MF({},e.get(s)),{},{row:i,rowIndex:c,expanded:!1,parent:t});if(e.set(s,l),!n){var u=J(i,r.childrenKey);u!=null&&u.length&&RF(e,MF(MF({},l),{},{rowIndex:-1,expanded:!1}),n,r)}})}function zF(e,t,n,r){for(var i=0,a=e.length;i<a;i++){var o=e[i];if(J(o,r.rowKey)===t){e[i]=n;return}var s=J(o,r.childrenKey)||[];s!=null&&s.length&&zF(s,t,n,r)}}function BF(e,t,n){for(var r=n.minRowIndex||0,i=n.maxRowIndex||t.length,a=r;a<i;a++){var o=t[a],s=e.get(J(o,n.rowKey));s||Vp.warn(`Table`,`tree map went wrong`),s.rowIndex=a+(n?.count||1)-1}}function VF(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=[],i=new Map,a=new Map,o=0,s=e.length;o<s;o++)i.set(e[o],!0);for(var c=0,l=t.length;c<l;c++)a.set(t[c],!0);for(var u=0,d=e.length;u<d;u++)a.get(e[u])||r.push(e[u]);for(var f=0,p=t.length;f<p;f++)i.get(t[f])||n.push(t[f]);return{removedList:n,addedList:r}}function HF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function UF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?HF(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function WF(e,t){var n=t.store,r=t.dataSource,i=t.rowDataKeys,a=Wt(e),o=a.data,s=a.expandedTreeNodes,c=a.tree,l=I(!1),u=I(!1),d=Y(bm(s,e.defaultExpandedTreeNodes,e.onExpandedTreeNodesChange,`expandedTreeNodes`),2),f=d[0],p=d[1],m=I({type:`props-change`});function h(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:`expand-all`,t=(arguments.length>1?arguments[1]:void 0)||o.value;r.value=n.value.expandAll(t,i.value),p(r.value.map(function(e){return PF(e,i.value.rowKey)}),{row:void 0,rowState:void 0,rowIndex:void 0,type:`expand`,trigger:e}),m.value.type=`expand-all`}function g(){r.value=W(n.value.foldAll(r.value,i.value)),p([],{row:void 0,rowState:void 0,rowIndex:void 0,type:`fold`,trigger:`fold-all`})}function _(t,r){var a,o=t.row,s=t.rowIndex;m.value=UF({type:`user-reaction-change`},t);var c=PF(o,i.value.rowKey),l=n.value.treeDataMap.get(c),u=W(f.value);if(l.expanded){for(var d=n.value.getExpandedChildrenKeys([o],i.value),h=0,g=u.length;h<g;h++){var _=u[h];d.includes(_)&&(u[h]=void 0)}u=u.filter(Boolean)}else u.push(c);var v={row:o,rowIndex:s,rowState:l,trigger:r};p(u,UF(UF({},v),{},{type:l.expanded?`fold`:`expand`})),(a=e.onTreeExpandChange)==null||a.call(e,v)}function v(e,t){var r=VF(t,arguments.length>2&&arguments[2]!==void 0?arguments[2]:[]),a=r.addedList,o=r.removedList;return n.value.expandTreeNode(a,e,i.value),n.value.foldTreeNode(o,e,i.value),W(e)}return R([f,o],function(e,t){var a=Y(e,1)[0],s=Y(t,1)[0];if(!(!n.value.treeDataMap.size||!o.value.length)){if(m.value.type===`user-reaction-change`){var c=m.value||{},l=c.row,u=c.rowIndex;r.value=W(n.value.toggleExpandData({row:l,rowIndex:u},W(r.value),i.value))}else m.value.type===`props-change`&&v(r.value,a,s);m.value.type=`props-change`}}),{tExpandedTreeNode:f,isDefaultExpandAllExecute:l,isDefaultExpandedTreeNodesExecute:u,expandAll:h,foldAll:g,onExpandFoldIconClick:_,updateExpandOnDataChange:function(e){var t,n;(t=c.value)!=null&&t.defaultExpandAll&&!l.value?(h(`default-expand-all`,W(e)),l.value=!0):(n=f.value)!=null&&n.length&&dn(function(){r.value=v(W(e),f.value,[])})}}}function GF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function KF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?GF(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qF(e,t){var n=Wt(e),r=n.data,i=n.columns,a=Rp(`table`,e.locale),o=a.t,s=a.globalConfig,c=Tm({AddRectangleIcon:kse,MinusRectangleIcon:Xce}),l=c.AddRectangleIcon,u=c.MinusRectangleIcon,d=I(new FF),f=Bt(),p=I([]),m=uM().tableTreeClasses,h=mm(),g=U(function(){return{rowKey:e.rowKey||`id`,childrenKey:e.tree?.childrenKey||`children`}}),_=WF(e,{store:d,dataSource:p,rowDataKeys:g}),v=_.tExpandedTreeNode,y=_.isDefaultExpandAllExecute,b=_.isDefaultExpandedTreeNodesExecute,x=_.expandAll,S=_.foldAll,C=_.updateExpandOnDataChange,w=_.onExpandFoldIconClick;R(U(function(){return i.value.find(function(e){return e.colKey===`row-select`})}),function(e){d.value&&d.value.updateDisabledState(p.value,e,g.value)});var T=function(e){var t=KF(KF({},e),{},{type:`fold`});return h(`treeExpandAndFoldIcon`,{defaultNode:o(s.value.treeExpandAndFoldIcon,sa,t)||V(u,null,null),params:t})},E=function(e){var t=KF(KF({},e),{},{type:`expand`});return h(`treeExpandAndFoldIcon`,{defaultNode:o(s.value.treeExpandAndFoldIcon,sa,t)||V(l,null,null),params:t})};R([r],function(){e.tree?D(r.value):p.value=r.value},{immediate:!0}),vr(function(){var t;e.tree&&((t=d.value.treeDataMap)==null||t.clear(),d.value=null)}),R(function(){return[i.value,e.tree?.treeNodeColumnIndex]},function(){f.value=A()},{immediate:!0});function D(t){var n,r=e.columns,i=e.expandedTreeNodes,a=e.defaultExpandedTreeNodes,o=e.tree;d.value.initialTreeStore(t,r,g.value);var s=!!(!b.value&&a?.length),c=!!(o?.defaultExpandAll&&!y.value);(n=v.value)!=null&&n.length&&(i||s)||c?(C(t),b.value=!0):p.value=W(t)}function O(t){if(t!==void 0){var n=e.tree?.indent===void 0?24:e.tree?.indent;return n?{paddingLeft:`${t*n||1}px`}:{}}}function k(t,n){var r,i,a=KF({},t);t.row.VIRTUAL_SCROLL_INDEX!==void 0&&(a.rowIndex=t.row.VIRTUAL_SCROLL_INDEX),p.value=W(d.value.toggleExpandData(a,p.value,g.value));var o=J(t.row,g.value.rowKey),s=(r=d.value)==null||(r=r.treeDataMap)==null?void 0:r.get(o);(i=e.onTreeExpandChange)==null||i.call(e,{row:t.row,rowIndex:t.rowIndex,rowState:s,trigger:n})}function A(){for(var t=e.columns,n=e.tree?.treeNodeColumnIndex||0;(r=t[n])!=null&&r.type||(i=t[n])?.colKey===`__EXPAND_ROW_ICON_COLUMN__`;){var r,i;n+=1}return t[n]}function j(n){if(!e.tree||n.colKey!==f.value.colKey)return n;var r=KF({},f.value);return r.cell=function(r,i){var a=FM(KF(KF({},i),{},{col:KF({},f.value)}),t.slots,{cellEmptyContent:e.cellEmptyContent}),o=O(d.value.treeDataMap.get(J(i.row,g.value.rowKey))?.level),s=G({},m.inlineCol,!!n.ellipsis),c=J(i.row,g.value.childrenKey);if(c&&c instanceof Array||c===!0){var l,u=(l=d.value.treeDataMap.get(J(i.row,g.value.rowKey)))!=null&&l.expanded?T(i):E(i);return V(`div`,{class:[m.col,s],style:o},[!!(c.length||c===!0)&&V(`span`,{class:m.icon,onClick:function(e){w(i,`expand-fold-icon`),e.stopPropagation()}},[u]),a])}return V(`div`,{style:o,class:[s,m.leafNode]},[V(`span`,{class:m.icon},null),a])},r.ellipsis===!0&&(r.ellipsis=function(e,n){return FM(KF(KF({},n),{},{col:KF({},f.value)}),t.slots)}),r}function M(e,t){var n=d.value.updateData(e,t,p.value,g.value),r=W(p.value);r[n]=t,p.value=r}function ee(e){return d.value.getData(e)}function N(e){p.value=W(d.value.remove(e,p.value,g.value))}function P(e){p.value=W(d.value.removeChildren(e,p.value,g.value))}function F(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=arguments.length>1?arguments[1]:void 0;if(!e){p.value=d.value.appendToRoot(t,p.value,g.value);return}p.value=W(d.value.appendTo(e,t,p.value,g.value))}function te(e,t){p.value=W(d.value.insertAfter(e,t,p.value,g.value))}function ne(e,t){p.value=W(d.value.insertBefore(e,t,p.value,g.value))}function re(t){var n=d.value.swapData(p.value,t,g.value);if(n.result)p.value=W(n.dataSource);else{var r,i={code:n.code,reason:n.reason};(r=e.onAbnormalDragSort)==null||r.call(e,i)}}function ie(){return d.value.getTreeNode(p.value,g.value)}function ae(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:`data`;return d.value.getTreeExpandedRow(p.value,g.value,e)}return{store:d,rowDataKeys:g,dataSource:p,swapData:re,setData:M,getData:ee,remove:N,removeChildren:P,appendTo:F,insertAfter:te,insertBefore:ne,formatTreeColumn:j,toggleExpandData:k,expandAll:x,foldAll:S,getTreeNode:ie,resetData:D,getTreeExpandedRow:ae,onExpandFoldIconClick:w}}function JF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function YF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?JF(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var XF=new Map;function ZF(e,t,n,r){if(XF.get(t))return XF.get(t);var i=r||{allChildren:[],allChildrenKeys:[],leafNodeKeys:[]},a=J(t,n.childrenKey);if(!a||!a.length)return i;var o=a.filter(function(t){var r;return!((r=e.get(J(t,n.rowKey)))!=null&&r.disabled)});i.allChildren=W(new Set(i.allChildren.concat(o)));for(var s=0,c=a.length;s<c;s++){var l=a[s],u=J(l,n.childrenKey);if(u!=null&&u.length){var d=ZF(e,l,n,i);i.allChildren=W(new Set(i.allChildren.concat(d.allChildren)))}}for(var f=0,p=i.allChildren.length;f<p;f++){var m=i.allChildren[f],h=J(m,n.childrenKey),g=J(m,n.rowKey);i.allChildrenKeys.push(g),(!h||!h.length)&&i.leafNodeKeys.push(g)}return i.allChildrenKeys=W(new Set(i.allChildrenKeys)),i.leafNodeKeys=W(new Set(i.leafNodeKeys)),i}function QF(e,t){for(var n=e.selectedRowKeys,r=e.removeKeys,i=t||{data:[],keys:[]},a=0,o=n.length;a<o;a++){var s=n[a];r.includes(s)||i.keys.push(s)}return i}function $F(e){for(var t=e.treeDataMap,n=e.selectedRowKeys,r=[],i=0,a=n.length;i<a;i++){var o=n[i];r.push(t.get(o))}return r}function eI(e,t){var n=Wt(e),r=n.selectedRowKeys,i=n.tree,a=n.data,o=n.indeterminateSelectedRowKeys,s=I([]),c=Y(bm(r,e.defaultSelectedRowKeys||[],e.onSelectChange,`selectedRowKeys`),2),l=c[0],u=c[1],d=U(function(){return{rowKey:e.rowKey||`id`,childrenKey:e.tree?.childrenKey||`children`}});R([i,t,a,l],function(e){var t=Y(e,2),n=t[0],r=t[1];!n||!r.size||n.checkStrictly||f()});function f(){if(!(!i.value||i.value.checkStrictly)){if(!l.value.length){s.value=[];return}for(var e=[],n={},r=0,a=l.value.length;r<a;r++){var o=l.value[r],c=t.value.get(o);if(c){var u=J(c.row,d.value.childrenKey);if(!u||!u.length)for(var f=c.parent;f;){n[f.id]||(n[f.id]=[]),n[f.id].push(c.row);var p=n[f.id].length,m=ZF(t.value,f.row,d.value).allChildrenKeys,h=e.indexOf(f.id),g=l.value.indexOf(f.id);p>0&&p<m.length&&g===-1?h===-1&&e.push(f.id):h!==-1&&e.splice(h,1),f=f.parent}}}s.value=e}}function p(e,n,r){if(!(!i.value||i.value.checkStrictly)){for(var a=W(e),o=t.value.get(n).parent;o;){var s=ZF(t.value,o.row,d.value).leafNodeKeys,c=Hd(s,e),l=a.indexOf(o.id);r===`uncheck`?l!==-1&&a.splice(l,1):c.length===s.length&&l===-1&&a.push(o.id),o=o.parent}return a}}function m(e,t){if(!i.value||i.value.checkStrictly){u(e,t);return}t.currentRowKey===`CHECK_ALL_BOX`?h(t):g(e,t)}function h(e){var n=[],r=[];if(e.type===`check`)for(var i=W(t.value.values()),a=0,o=i.length;a<o;a++){var s=i[a];s.disabled||(r.push(s.row),n.push(J(s.row,d.value.rowKey)))}u(n,YF(YF({},e),{},{selectedRowData:r||[]}))}function g(n,r){var i=W(n);if(e.tree?.checkStrictly===!1)if(r?.type===`check`){var a=ZF(t.value,r.currentRowData,d.value),o=a.allChildrenKeys;XF.set(r.currentRowData,a),i=W(new Set(i.concat(o)))}else r?.type===`uncheck`&&(i=QF({selectedRowKeys:n,removeKeys:ZF(t.value,r.currentRowData,d.value).allChildrenKeys}).keys);i=p(i,r.currentRowKey,r.type);var s=$F({treeDataMap:t.value,selectedRowKeys:i}),c=YF(YF({},r),{},{selectedRowData:s});u(i,c)}return{tIndeterminateSelectedRowKeys:o.value?o:s,onInnerSelectChange:m}}var tI=[`store`,`dataSource`,`formatTreeColumn`,`swapData`,`onExpandFoldIconClick`];function nI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?nI(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var iI=z({name:`TEnhancedTable`,props:rI(rI(rI({},sM),ZM),AF),setup:function(e,t){var n=I(null),r=qF(e,t),i=r.store,a=r.dataSource,o=r.formatTreeColumn,s=r.swapData,c=r.onExpandFoldIconClick,l=Ym(r,tI),u=Q(),d=I(i.value.treeDataMap),f=eI(e,d),p=f.tIndeterminateSelectedRowKeys,m=f.onInnerSelectChange,h=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i,a,s=rI({},e[n]);s=o(s),(i=s.children)!=null&&i.length&&(s.children=h(s.children)),(!s.children||(a=s.children)!=null&&a.length)&&t.push(s)}return t},g=U(function(){return!e.tree||!Object.keys(e.tree).length?e.columns:h(e.columns)}),_=function(t){var n;e.beforeDragSort&&!e.beforeDragSort(t)||(s({current:t.current,target:t.target,currentIndex:t.currentIndex,targetIndex:t.targetIndex}),(n=e.onDragSort)==null||n.call(e,t))},v=function(t){var n,r;(n=e.tree)!=null&&n.expandTreeNodeOnClick&&c({row:t.row,rowIndex:t.index},`row-click`),(r=e.onRowClick)==null||r.call(e,t)},y=function(e,t){if(!e)return-1;if(e.rowIndex>=0)return e.rowIndex;if(e.rowIndex<0)return y(e.parent,t)};return t.expose(rI(rI({store:i.value,dataSource:a.value},l),{},{primaryTableRef:n,validateRowData:function(e){return n.value.validateRowData(e)},validateTableData:function(){return n.value.validateTableData()},clearValidateData:function(){n.value.clearValidateData()},refreshTable:function(){n.value.refreshTable()},scrollToElement:function(e){var t=e.index;if(!t&&t!==0){if(!e.key){Vp.error(`Table`,"scrollToElement: one of `index` or `key` must exist.");return}t=y(d.value.get(e.key),e.key),(t<0||t===void 0)&&Vp.error(`Table`,`${e.key} does not exist in data, check \`rowKey\` or \`data\` please.`)}n.value.scrollToElement(rI(rI({},e),{},{index:t}))}})),function(){var r,i=Yi().vnode,o=rI(rI({},i.props),{},{rowKey:e.rowKey||`id`,data:a.value,columns:g.value,indeterminateSelectedRowKeys:p.value,disableDataPage:!!(e.tree&&Object.keys(e.tree).length)||e.disableDataPage,onSelectChange:m,onDragSort:_,rowClassName:function(t){var n=t.row,r=J(n,e.rowKey||`id`),i=d.value.get(r);return i?[`${u.value}-table-tr--level-${i.level}`,e.rowClassName]:[e.rowClassName]}});return(r=e.tree)!=null&&r.expandTreeNodeOnClick&&(o.onRowClick=v),V(kF,H(o,{ref:n}),t.slots)}}}),aI=X(XM),oI=X(kF),sI=X(iI),cI=X(iu(kF),`TTable`),lI={labelAlign:{type:String,default:`left`,validator:function(e){return!e||[`left`,`right`,`alternate`,`top`,`bottom`].includes(e)}},layout:{type:String,default:`vertical`,validator:function(e){return!e||[`horizontal`,`vertical`].includes(e)}},mode:{type:String,default:`alternate`,validator:function(e){return!e||[`alternate`,`same`].includes(e)}},reverse:Boolean,theme:{type:String,default:`default`,validator:function(e){return!e||[`default`,`dot`].includes(e)}}},uI={vertical:[`left`,`right`],horizontal:[`top`,`bottom`]},dI=Symbol(`timeLineProvide`),fI=U(function(){return{theme:`default`,reverse:!1,itemsStatus:[],layout:`horizontal`,renderAlign:`left`,mode:`alternate`}}),pI={content:{type:[String,Function]},dot:{type:Function},dotColor:{type:String,default:`primary`},label:{type:[String,Function]},labelAlign:{type:String,validator:function(e){return!e||[`left`,`right`,`top`,`bottom`].includes(e)}},loading:Boolean,onClick:Function};function mI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?mI(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var gI=[`default`,`primary`,`success`,`warning`,`error`],_I=z({name:`TTimelineItem`,props:hI(hI({},pI),{},{index:{type:Number}}),setup:function(e){var t=Q(`timeline-item`),n=wn(dI,fI),r=hm(),i=pm(),a=function(r){var i=n.value,a=i.layout,o=i.renderAlign,s=e.labelAlign??o,c=a===`horizontal`?`top`:`left`,l=a===`horizontal`?`bottom`:`right`;return s===`alternate`?r%2==0?`${t.value}-${c}`:`${t.value}-${l}`:s===`left`||s===`top`?`${t.value}-${c}`:s===`right`||s===`bottom`?`${t.value}-${l}`:``},o=function(t){var n;(n=e.onClick)==null||n.call(e,{e:t,item:Sf(e,[`index`])})};return function(){var s=n.value,c=s.mode,l=s.theme,u=s.itemsStatus,d=s.reverse,f=e.loading,p=e.dotColor,m=e.index,h=i(`label`),g=i(`dot`),_=`${t.value}__dot-content`;if(Mi(g)){g.props=g.props||{};var v=g.props.class;g.props.class=v?[_,v].join(` `):_}return V(`li`,{class:[`${t.value}`,`${a(e.index)}`],onClick:o},[c===`alternate`&&h&&V(`div`,{class:[`${t.value}__label`,`${t.value}__label--${c}`]},[h]),V(`div`,{class:`${t.value}__wrapper`},[V(`div`,{class:G(G(G({},`${t.value}__dot`,!0),`${t.value}__dot--custom`,!!g||!g&&f),`${t.value}__dot--${p}`,gI.includes(p)),style:{borderColor:!gI.includes(p)&&p}},[!g&&f&&V(uh,{size:`12px`,class:_},null),g]),V(`div`,{class:G(G(G({},`${t.value}__tail`,!0),`${t.value}__tail--theme-${l}`,!0),`${t.value}__tail--status-${u[m]}`,d)},null)]),V(`div`,{class:`${t.value}__content`},[r(`default`,`content`),c===`same`&&h&&V(`div`,{class:[`${t.value}__label`,`${t.value}__label--${c}`]},[h])])])}}}),vI=X(z({name:`TTimeline`,props:lI,setup:function(e){var t=Q(`timeline`),n=U(function(){var t=e.labelAlign,n=e.layout,r=n===`vertical`?`left`:`top`;if(n===`vertical`&&t){var i=uI.horizontal.indexOf(t),a=i!==-1;a&&Vp.warn(`Timeline`,`If layout is vertical, align should be "left","alternate" or "right" `),r=a?uI.vertical[i]:t}if(n===`horizontal`&&t){var o=uI.vertical.indexOf(t),s=o!==-1;s&&Vp.warn(`Timeline`,`If layout is horizontal, align should be "top","alternate" or "bottom" `),r=s?uI.horizontal[o]:t}return r}),r=U(function(){return{theme:e.theme,reverse:e.reverse,itemsStatus:[``],layout:e.layout,globalAlign:e.labelAlign,mode:e.mode,renderAlign:n.value}}),i=1;return Cn(dI,r),function(){var r=om()(`TTimelineItem`);return e.reverse&&(r=r.reverse()),V(`ul`,{class:[`${t.value}`,G(G(G(G(G({},`${t.value}-${n.value}`,!0),`${t.value}-reverse`,e.reverse),`${t.value}-${e.layout}`,!0),`${t.value}-label`,i),`${t.value}-label--${e.mode}`,!0)]},[r.map(function(e,n){return V(_I,H(e.props,{index:n,class:G({},`${t.value}-item--last`,n===r.length-1)}),e.children)})])}}})),yI=X(_I),bI=z({name:`TCollapse`,props:{borderless:Boolean,defaultExpandAll:Boolean,disabled:Boolean,expandIcon:{type:[Boolean,Function],default:!0},expandIconPlacement:{type:String,default:`left`,validator:function(e){return!e||[`left`,`right`].includes(e)}},expandMutex:Boolean,expandOnRowClick:{type:Boolean,default:!0},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array},onChange:Function},setup:function(e){var t=Q(`collapse`),n=Q(`-border-less`),r=pm(),i=Wt(e),a=i.value,o=i.expandMutex,s=i.borderless,c=i.modelValue,l=Y(Rm(a,c,e.defaultValue,e.onChange),2),u=l[0],d=l[1],f=function(e){var t=[].concat(u.value||[]),n=t.indexOf(e);n>=0?t.splice(n,1):o.value?t=[e]:t.push(e),d(t)},p=U(function(){return[t.value,G({},n.value,!!s.value)]}),m=function(){var e=0;return function(){return e++}}();return Cn(`collapseValue`,u),Cn(`updateCollapseValue`,f),Cn(`collapseProps`,Wt(e)),Cn(`getUniqId`,m),Cn(`renderParentTNode`,r),function(){var e=r(`default`);return V(`div`,{class:p.value},[e])}}}),xI={content:{type:[String,Function]},default:{type:[String,Function]},destroyOnCollapse:Boolean,disabled:{type:Boolean,default:void 0},expandIcon:{type:[Boolean,Function],default:void 0},header:{type:[String,Function]},headerRightContent:{type:[String,Function]},value:{type:[String,Number]}};function SI(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var CI=z({name:`TCollapsePanel`,props:xI,setup:function(e,t){var n=t.slots,r=pm(),i=hm(),a=Q(`collapse-panel`),o=Q(`is-disabled`),s=Q(`is-clickable`),c=Q(`slide-down`),l=Wt(e),u=l.value,d=l.disabled,f=l.destroyOnCollapse,p=wn(`collapseValue`),m=wn(`updateCollapseValue`),h=wn(`getUniqId`,function(){},!1),g=wn(`collapseProps`),_=g.defaultExpandAll,v=g.disabled,y=g.expandIconPlacement,b=g.expandOnRowClick,x=wn(`renderParentTNode`),S=u.value||h();_.value&&m(S);var C=vm(),w=C.beforeEnter,T=C.enter,E=C.afterEnter,D=C.beforeLeave,O=C.leave,k=C.afterLeave,A=I(),j=U(function(){return d.value||v.value}),M=U(function(){return p.value instanceof Array?p.value.includes(S):p.value===S}),ee=U(function(){return[a.value,G({},o.value,j.value)]}),N=U(function(){return n.expandIcon||e.expandIcon}),P=function(e){(b.value||e.currentTarget===A.value)&&!j.value&&m(S),e.stopPropagation()},F=function(e){e.stopPropagation()},te=function(){return V(DS,{overlayClassName:`${a.value}__icon--default`},null)},ne=function(){var e=N.value===void 0?x:r;return V(`div`,{ref:A,class:`${a.value}__icon ${a.value}__icon--${y.value} ${M.value?`${a.value}__icon--active`:``}`,onClick:P},[e(`expandIcon`,te())])},re=function(){return V(`div`,{class:`${a.value}__header--blank`},null)},ie=function(){var e=r(`headerRightContent`);return e?V(`div`,{onClick:F},[e]):null},ae=function(){return V(`div`,{class:[`${a.value}__header`,G({},s.value,b.value&&!j.value)],onClick:P},[y.value===`left`&&ne(),r(`header`),re(),ie(),y.value===`right`&&ne()])},oe=function(){return xn(V(`div`,{class:`${a.value}__body`},[V(`div`,{class:`${a.value}__content`},[i(`default`,`content`)])]),[[Na,M.value]])},se=function(){return M.value?V(`div`,{class:`${a.value}__body`},[V(`div`,{class:`${a.value}__content`},[i(`default`,`content`)])]):null},ce=function(){return f.value?se():oe()};return function(){var e;return V(`div`,{class:ee.value},[V(`div`,{class:`${a.value}__wrapper`},[ae(),V(va,{name:c.value,onBeforeEnter:w,onEnter:T,onAfterEnter:E,onBeforeLeave:D,onLeave:O,onAfterLeave:k},SI(e=ce())?e:{default:function(){return[e]}})])])}}}),wI=X(bI),TI=X(CI),EI={alpha:{type:Number,default:1},content:{type:[String,Function]},default:{type:[String,Function]},height:{type:Number},isRepeat:{type:Boolean,default:!0},layout:{type:String,default:`rectangular`,validator:function(e){return!e||[`rectangular`,`hexagonal`].includes(e)}},lineSpace:{type:Number,default:16},movable:Boolean,moveInterval:{type:Number,default:3e3},offset:{type:Array},removable:{type:Boolean,default:!0},rotate:{type:Number,default:-22},watermarkContent:{type:[Object,Array]},width:{type:Number},x:{type:Number},y:{type:Number},zIndex:{type:Number}};function DI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function OI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?DI(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kI(e,t){var n=e.width,r=e.height,i=e.gapX,a=e.gapY,o=e.offsetLeft,s=e.offsetTop,c=e.rotate,l=e.alpha,u=e.watermarkContent,d=e.lineSpace,f=e.fontColor,p=f===void 0?`rgba(0,0,0,0.1)`:f,m=e.layout===`hexagonal`,h=document.createElement(`canvas`),g=h.getContext(`2d`);if(!g){console.warn(`当前环境不支持Canvas, 无法绘制水印`),t(``);return}var _=window.devicePixelRatio||1,v={width:i+n},y=(i+n)*_,b=(a+r)*_,x=n*_,S=r*_,C=y,w=b,T=(i+n)*_,E=(a+r)*_;h.width=y,h.height=b,h.style.width=`${i+n}px`,h.style.height=`${a+r}px`,m&&(h.style.width=`${y*2}px`,h.style.height=`${b*2}px`,h.width=y*2,h.height=b*2,v={width:i+n*2+n/2}),g.translate(o*_,s*_),g.globalAlpha=l,g.fillStyle=`transparent`,g.fillRect(0,0,x,S);var D=function(e,t,n,r){e.translate(t,n),e.rotate(Math.PI/180*Number(r)),e.translate(-t,-n)},O=function(e,t,n,r,i,a,o,s,c){e.font=`normal normal ${a} ${o*_}px/${r}px ${s}`,e.fillStyle=c,e.textAlign=`start`,e.textBaseline=`top`,e.fillText(i,t,n)},k=Array.isArray(u)?u:[OI({},u)],A=0,j=0,M=0;k.forEach(function(e){e.top=A,e.url?(A+=r,M+=m?2:1):e.text&&(A+=d)});var ee=function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(e.url){var l=e.url,u=e.isGrayscale,d=u!==void 0&&u,f=new Image;f.crossOrigin=`anonymous`,f.referrerPolicy=`no-referrer`,f.src=l,f.onload=function(){var l,u;if((l=g.save)==null||l.call(g),D(g,o,s,c),d){var p=document.createElement(`canvas`),m=p.getContext(`2d`);p.width=n*_,p.height=r*_,m.drawImage(f,0,0,n*_,r*_);for(var y=m.getImageData(0,0,n*_,r*_),b=y.data,x=0;x<b.length;x+=4){var S=(b[x]+b[x+1]+b[x+2])/3;b[x]=S,b[x+1]=S,b[x+2]=S}m.putImageData(y,0,0),g.drawImage(p,i,a+e.top*_,n*_,r*_)}else g.drawImage(f,i,a+e.top*_,n*_,r*_);(u=g.restore)==null||u.call(g),j+=1,j===M&&t(h.toDataURL(),v)}}else if(e.text){var m,y,b=e.text,x=e.fontSize,C=x===void 0?16:x,w=e.fontFamily,T=w===void 0?`normal`:w,E=e.fontWeight,k=E===void 0?`normal`:E,A=e?.fontColor||p;(m=g.save)==null||m.call(g),D(g,o,s,c),O(g,i,a+e.top*_,S,b,k,C,T,A),(y=g.restore)==null||y.call(g)}};k.forEach(function(e){ee(e,0,0,0,0)}),m&&k.forEach(function(e){ee(e,T,E,C,w)}),M===0&&t(h.toDataURL(),v)}function AI(){var e=Math.floor(Math.random()*4),t=Math.floor(Math.random()*70)+30,n=0,r=95,i=90;return`
@keyframes watermark {
0% {left: ${e===1?i:e===3?n:t}%; top: ${e===0?n:e===2?r:t}%;}
25% {left: ${e===0?i:e===2?n:100-t}%; top: ${e===1?r:e===3?n:t}%;}
50% {left: ${e===1?n:e===3?i:100-t}%; top: ${e===0?r:e===2?n:100-t}%; transform: translateX(-100%);}
75% {left: ${e===0?n:e===2?i:t}%; top: ${e===1?n:e===3?r:100-t}%;}
100% {left: ${e===1?i:e===3?n:t}%; top: ${e===0?n:e===2?r:t}%;}
}
`}var jI=function(e){var t=document.createElement(`style`),n=null;document.head.appendChild(t),n=t.sheet,n.insertRule(e,n.cssRules.length)};function MI(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=NI(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function NI(e,t){if(e){if(typeof e==`string`)return PI(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?PI(e,t):void 0}}function PI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var FI=X(z({name:`TWatermark`,props:EI,setup:function(e){var t=I(``),n=Bt(),r=Bt(),i=Dt(e.offset||[]),a=U(function(){return e.movable?0:e.x}),o=U(function(){return e.movable?0:e.y}),s=U(function(){return e.movable?0:e.rotate}),c=U(function(){return e.movable?`no-repeat`:e.isRepeat?`repeat`:`no-repeat`}),l=U(function(){return i[0]||a.value/2}),u=U(function(){return i[1]||o.value/2}),d=Km({fontColor:`--td-text-color-watermark`}).fontColor,f=U(function(){return{width:e.width,height:e.height,rotate:s.value,lineSpace:e.lineSpace,alpha:e.alpha,gapX:a.value,gapY:o.value,watermarkContent:e.watermarkContent,offsetLeft:l.value,offsetTop:u.value,fontColor:d.value,layout:e.layout}}),p=function(){r.value&&=(r.value.remove(),null)},m=function(){kI(f.value,function(i,o){var s;p(),t.value=i,r.value=document.createElement(`div`),Pm(r.value,{zIndex:e.zIndex,position:`absolute`,left:0,right:0,top:0,bottom:0,width:`100%`,height:`100%`,backgroundSize:`${o?.width||a.value+e.width}px`,pointerEvents:`none`,backgroundRepeat:c.value,backgroundImage:`url('${t.value}')`,animation:e.movable?`watermark infinite ${e.moveInterval*4/60}s`:`none`}),(s=n.value)==null||s.append(r.value)}),e.movable&&jI(AI())};return mr(function(){m(),qO(n.value,function(t){if(!(e.removable||!r.value)){var n=MI(t),i;try{for(n.s();!(i=n.n()).done;){var a=i.value,o=Array.from(a.removedNodes).includes(r.value),s=a.type===`attributes`&&r.value===a.target;if(o||s){m();break}}}catch(e){n.e(e)}finally{n.f()}}},{attributes:!0,childList:!0,characterData:!0,subtree:!0})}),R(function(){return[e,d.value]},m,{deep:!0,flush:`post`}),function(){var e=Q(`watermark`),t=hm();return V(`div`,{style:{position:`relative`,overflow:`hidden`,width:`100%`},class:e.value,ref:n},[t(`default`,`content`)])}}})),II=X(z({name:`TRate`,props:{allowHalf:Boolean,clearable:Boolean,color:{type:[String,Array],default:`#ED7B2F`},count:{type:Number,default:5},disabled:{type:Boolean,default:void 0},gap:{type:Number,default:4},icon:{type:Function},showText:Boolean,size:{type:String,default:`24px`},texts:{type:Array,default:function(){return[]}},value:{type:Number,default:void 0},modelValue:{type:Number,default:void 0},defaultValue:{type:Number,default:0},onChange:Function},setup:function(e,t){var n=t.slots,r=pm(),i=Rp(`rate`).globalConfig,a=U(function(){return K(e.color)?e.color[0]:e.color}),o=U(function(){return K(e.color)?e.color[1]:`var(--td-bg-color-component)`}),s=Wt(e),c=s.value,l=s.modelValue,u=Y(Rm(c,l,e.defaultValue,e.onChange),2),d=u[0],f=u[1],p=I(void 0),m=I(),h=U(function(){return Number(p.value||d.value)}),g=U(function(){return e.texts.length===0?i.value.rateText:e.texts}),_=U(function(){return g.value[Math.ceil(h.value-1)]}),v=function(e){return n.icon===void 0?V(wle,e,null):r(`icon`,{params:e})},y=function(t,n){if(e.allowHalf){var r=m.value.getBoundingClientRect().left,i=m.value.firstChild.nextSibling.getBoundingClientRect().width,a=t.clientX,o=i*(n-.5)+e.gap*(n-1);if(a-r>=o)return n;if(a-r<o)return n-.5}return n},b=function(t,n){e.disabled||(p.value=y(t,n))},x=function(){e.disabled||(p.value=void 0)},S=function(t,n){if(!e.disabled){var r=y(t,n);e.clearable&&r===d.value?(p.value=void 0,f(0)):f(r)}},C=function(t){if(e.allowHalf&&t+.5===h.value)return`${w.value}-rate__item--half`;if(t>=h.value)return``;if(t<h.value)return`${w.value}-rate__item--full`},w=Rp(`classPrefix`).classPrefix;return function(){return V(`div`,{class:`${w.value}-rate`,onMouseleave:x},[V(`ul`,{class:`${w.value}-rate__list`,style:{gap:`${e.gap}px`},ref:m},[W(Array(Number(e.count))).map(function(t,n){return V(`li`,{key:n,class:[`${w.value}-rate__item`,C(n)],onClick:function(e){return S(e,n+1)},onMousemove:function(e){return b(e,n+1)}},[e.showText?V(Gx,{key:n,content:_.value},{default:function(){return[V(`div`,{class:`${w.value}-rate__star-top`},[V(v,{size:e.size,color:a.value},null)]),V(`div`,{class:`${w.value}-rate__star-bottom`},[V(v,{size:e.size,color:o.value},null)])]}}):V(bi,null,[V(`div`,{class:`${w.value}-rate__star-top`},[V(v,{size:e.size,color:a.value},null)]),V(`div`,{class:`${w.value}-rate__star-bottom`},[V(v,{size:e.size,color:o.value},null)])])])})]),e.showText&&V(`div`,{class:`${w.value}-rate__text`},[_.value])])}}})),LI={code:Boolean,content:{type:[String,Function]},copyable:{type:[Boolean,Object],default:!1},default:{type:[String,Function]},delete:Boolean,disabled:Boolean,ellipsis:{type:[Boolean,Object],default:!1},italic:Boolean,keyboard:Boolean,mark:{type:[String,Boolean],default:!1},strong:Boolean,theme:{type:String,validator:function(e){return!e||[`primary`,`secondary`,`success`,`warning`,`error`].includes(e)}},underline:Boolean},RI={content:{type:[String,Function]},default:{type:[String,Function]},ellipsis:{type:[Boolean,Object],default:!1}};function zI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function BI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zI(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function VI(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var HI=z({name:`TEllipsis`,components:{TTooltip:Gx},props:BI(BI({},RI),{},{renderCopy:Function}),setup:function(e,t){var n=t.slots,r=Q(`typography`),i=Rp(`typography`).globalConfig,a=U(function(){return e.content||n?.default()}),o=U(function(){var t=e.ellipsis;return BI({row:1,expandable:!1},so(t)===`object`?t:null)}),s=U(function(){var t=o.value,n={overflow:e.ellipsis?`hidden`:`visible`,textOverflow:e.ellipsis?`ellipsis`:`initial`,whiteSpace:e.ellipsis?`normal`:`nowrap`,display:`-webkit-box`,WebkitLineClamp:t.row,WebkitBoxOrient:`vertical`};return c.value&&(n.overflow=`visible`,n.whiteSpace=`normal`,n.display=`initial`),n}),c=I(!1),l=function(){var t,n;c.value=!0,so(e.ellipsis)===`object`&&((t=(n=e.ellipsis).onExpand)==null||t.call(n,!0))},u=function(){var t,n;c.value=!1,so(e.ellipsis)===`object`&&((t=(n=e.ellipsis).onExpand)==null||t.call(n,!1))},d=function(){var t=o.value.suffix,n={textDecoration:`none`,whiteSpace:`nowrap`,flex:1,marginRight:e.renderCopy?`8px`:0},a=V(`span`,{class:`${r.value}-ellipsis-symbol`,onClick:l,style:n},[t||i.value.expandText]),s=o.value,d=s.tooltipProps,f=s.expandable,p=s.collapsible;if(!c.value&&f)return d&&d.content?V(Gx,H(d,{content:d.content}),VI(a)?a:{default:function(){return[a]}}):a;if(f&&c.value&&p)return V(`span`,{class:`${r.value}-ellipsis-symbol`,onClick:u,style:n},[i.value.collapseText])};return function(){var t=o.value.tooltipProps;return V(`div`,{style:{display:`flex`,alignItems:`flex-end`}},[t&&V(Gx,{content:t.content,placement:`top-right`},null),V(`p`,{style:e.ellipsis?s.value:{}},[a.value]),d(),e.renderCopy?.call(e)])}}});function UI(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var WI=z({name:`TTypographyText`,props:LI,setup:function(e,t){var n=t.slots,r=Q(`typography`),i=Rp(`typography`).globalConfig,a=I(!1),o=hm(),s=function(e,t){var n=e.code,r=e.underline,i=e.delete,a=e.strong,o=e.keyboard,s=e.mark,c=e.italic,l=t;function u(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};e&&(l=sa(t,{style:n},[l]))}return u(a,`strong`),u(r,`u`),u(i,`del`),u(n,`code`),u(s!==!1,`mark`,s?{backgroundColor:s}:{}),u(o,`kbd`),u(c,`i`),l},c=U(function(){var t=e.theme,n=e.disabled,i=r.value,a=[i];return n?a.push(`${i}--disabled`):t&&[`primary`,`secondary`,`success`,`warning`,`error`].includes(t)&&a.push(`${i}--${t}`),a}),l=U(function(){var t=e.copyable;return a.value?i.value.copiedText:so(t)===`object`?t.tooltipProps?.content:null}),u=U(function(){return e.content||n?.default()}),d=function(t){var n=e.copyable,r=a.value?function(){return V(ig,null,null)}:function(){return V(dce,null,null)},i={theme:`default`},o=function(){};return so(n)===`object`&&(n.suffix&&!a.value&&(r=n.suffix),n.tooltipProps&&(i=n.tooltipProps),typeof n.onCopy==`function`&&(o=n.onCopy)),V(Gx,H(i,{content:l.value}),{default:function(){return[t?V(`span`,{onClick:function(e){return p(e,o)}},[r()]):V(mh,{icon:r,shape:`square`,theme:`primary`,variant:`text`,onClick:function(e){return p(e,o)}},null)]}})},f=function(){var t=e.copyable;if(so(t)===`object`&&t!=null&&t.text)return t.text;if(typeof u.value==`string`)return u.value;if(Array.isArray(u.value))return u.value.map(function(e){return e.children}).join(``)},p=function(e,t){e.preventDefault(),e.stopPropagation(),a.value=!0,setTimeout(function(){a.value=!1},1500),hoe(f()),t?.()};return function(){var t,n=o(`default`,`content`);return e.ellipsis?V(HI,H(e,{class:c.value,renderCopy:e.copyable?function(){return d(!0)}:null}),UI(t=s(e,n))?t:{default:function(){return[t]}}):V(`span`,{class:c.value},[s(e,n),e.copyable?d():null])}}});function GI(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var KI=z({name:`TTypography`,setup:function(){var e=pm();return function(){var t;return V(WI,null,GI(t=e(`default`))?t:{default:function(){return[t]}})}}}),qI={content:{type:[String,Function]},default:{type:[String,Function]},ellipsis:{type:[Boolean,Object],default:!1},level:{type:String,default:`h1`,validator:function(e){return!e||[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`].includes(e)}}};function JI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function YI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?JI(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function XI(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var ZI=z({name:`TTypographyTitle`,props:qI,setup:function(e,t){var n=t.attrs,r=Q(`typography`),i=hm();return function(){var t,a=e.level,o=i(`default`,`content`);return e.ellipsis?V(HI,H(e,{class:r.value}),XI(t=sa.apply(void 0,[a].concat(W(o))))?t:{default:function(){return[t]}}):V(bi,null,[sa.apply(void 0,[a,YI(YI({},n),{},{class:[r.value,n.class]})].concat(W(o)))])}}});function QI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $I(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?QI(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var eL=z({name:`TTypographyParagraph`,props:$I({style:{type:Object,default:function(){return{}}}},RI),setup:function(e,t){var n=t.slots,r=Q(`typography`),i=U(function(){return e.content||n?.default()});return function(){return e.ellipsis?V(HI,H(e,{class:r.value}),{default:function(){return[i.value]}}):V(`p`,{class:r.value},[i.value])}}}),tL=X(KI),nL=X(WI),rL=X(ZI),iL=X(eL),aL={bgColor:{type:String,default:``},borderless:Boolean,color:{type:String,default:``},icon:{type:String,default:``},iconSize:{type:[Number,Object],default:40},level:{type:String,default:`M`,validator:function(e){return!e||[`L`,`M`,`Q`,`H`].includes(e)}},size:{type:Number,default:160},status:{type:String,default:`active`,validator:function(e){return!e||[`active`,`expired`,`loading`,`scanned`].includes(e)}},statusRender:{type:Function},type:{type:String,default:`canvas`,validator:function(e){return!e||[`canvas`,`svg`].includes(e)}},value:{type:String,default:``},onRefresh:Function},oL,sL;function cL(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=lL(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function lL(e,t){if(e){if(typeof e==`string`)return uL(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?uL(e,t):void 0}}function uL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function dL(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(var r=t-1;r>=0;r--)n.push(e>>>r&1)}function fL(e,t){return(e>>>t&1)!=0}function pL(e){if(!e)throw Error(`Assertion error`)}var mL=function(){function e(t,n){Xp(this,e),G(this,`modeBits`,void 0),G(this,`numBitsCharCount`,void 0),this.modeBits=t,this.numBitsCharCount=n}return Yp(e,[{key:`numCharCountBits`,value:function(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}}])}();oL=mL,G(mL,`NUMERIC`,new oL(1,[10,12,14])),G(mL,`ALPHANUMERIC`,new oL(2,[9,11,13])),G(mL,`BYTE`,new oL(4,[8,16,16])),G(mL,`KANJI`,new oL(8,[8,10,12])),G(mL,`ECI`,new oL(7,[0,0,0]));var hL=Yp(function e(t,n){Xp(this,e),G(this,`ordinal`,void 0),G(this,`formatBits`,void 0),this.ordinal=t,this.formatBits=n});sL=hL,G(hL,`LOW`,new sL(0,1)),G(hL,`MEDIUM`,new sL(1,0)),G(hL,`QUARTILE`,new sL(2,3)),G(hL,`HIGH`,new sL(3,2));var gL=function(){function e(t,n,r){if(Xp(this,e),G(this,`mode`,void 0),G(this,`numChars`,void 0),G(this,`bitData`,void 0),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw RangeError(`Invalid argument`);this.bitData=r.slice()}return Yp(e,[{key:`getData`,value:function(){return this.bitData.slice()}}],[{key:`makeBytes`,value:function(t){var n=[],r=cL(t),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;dL(a,8,n)}}catch(e){r.e(e)}finally{r.f()}return new e(mL.BYTE,t.length,n)}},{key:`makeNumeric`,value:function(t){if(!e.isNumeric(t))throw RangeError(`String contains non-numeric characters`);for(var n=[],r=0;r<t.length;){var i=Math.min(t.length-r,3);dL(parseInt(t.substring(r,r+i),10),i*3+1,n),r+=i}return new e(mL.NUMERIC,t.length,n)}},{key:`makeAlphanumeric`,value:function(t){if(!e.isAlphanumeric(t))throw RangeError(`String contains unencodable characters in alphanumeric mode`);var n=[],r;for(r=0;r+2<=t.length;r+=2){var i=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r))*45;i+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),dL(i,11,n)}return r<t.length&&dL(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,n),new e(mL.ALPHANUMERIC,t.length,n)}},{key:`makeSegments`,value:function(t){return t===``?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}},{key:`makeEci`,value:function(t){var n=[];if(t<0)throw RangeError(`ECI assignment value out of range`);if(t<128)dL(t,8,n);else if(t<16384)dL(2,2,n),dL(t,14,n);else if(t<1e6)dL(6,3,n),dL(t,21,n);else throw RangeError(`ECI assignment value out of range`);return new e(mL.ECI,0,n)}},{key:`isNumeric`,value:function(t){return e.NUMERIC_REGEX.test(t)}},{key:`isAlphanumeric`,value:function(t){return e.ALPHANUMERIC_REGEX.test(t)}},{key:`getTotalBits`,value:function(e,t){var n=0,r=cL(e),i;try{for(r.s();!(i=r.n()).done;){var a=i.value,o=a.mode.numCharCountBits(t);if(a.numChars>=1<<o)return 1/0;n+=4+o+a.bitData.length}}catch(e){r.e(e)}finally{r.f()}return n}},{key:`toUtf8ByteArray`,value:function(e){for(var t=encodeURI(e),n=[],r=0;r<t.length;r++)t.charAt(r)===`%`?(n.push(parseInt(t.substring(r+1,r+3),16)),r+=2):n.push(t.charCodeAt(r));return n}}])}();G(gL,`NUMERIC_REGEX`,/^[0-9]*$/),G(gL,`ALPHANUMERIC_REGEX`,/^[A-Z0-9 $%*+.\/:-]*$/),G(gL,`ALPHANUMERIC_CHARSET`,`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`);var _L=function(){function e(t,n,r,i){Xp(this,e),G(this,`size`,void 0),G(this,`mask`,void 0),G(this,`modules`,[]),G(this,`isFunction`,[]),G(this,`version`,void 0),G(this,`errorCorrectionLevel`,void 0);var a=i;if(this.version=t,this.errorCorrectionLevel=n,t<e.MIN_VERSION||t>e.MAX_VERSION)throw RangeError(`Version value out of range`);if(a<-1||a>7)throw RangeError(`Mask value out of range`);this.size=t*4+17;for(var o=[],s=0;s<this.size;s++)o.push(!1);for(var c=0;c<this.size;c++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();var l=this.addEccAndInterleave(r);if(this.drawCodewords(l),a===-1)for(var u=1e9,d=0;d<8;d++){this.applyMask(d),this.drawFormatBits(d);var f=this.getPenaltyScore();f<u&&(a=d,u=f),this.applyMask(d)}pL(a>=0&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}return Yp(e,[{key:`getModule`,value:function(e,t){return e>=0&&e<this.size&&t>=0&&t<this.size&&this.modules[t][e]}},{key:`getModules`,value:function(){return this.modules}},{key:`drawFunctionPatterns`,value:function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),n=t.length,r=0;r<n;r++)for(var i=0;i<n;i++)r===0&&i===0||r===0&&i===n-1||r===n-1&&i===0||this.drawAlignmentPattern(t[r],t[i]);this.drawFormatBits(0),this.drawVersion()}},{key:`drawFormatBits`,value:function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,n=t,r=0;r<10;r++)n=n<<1^(n>>>9)*1335;var i=(t<<10|n)^21522;pL(i>>>15==0);for(var a=0;a<=5;a++)this.setFunctionModule(8,a,fL(i,a));this.setFunctionModule(8,7,fL(i,6)),this.setFunctionModule(8,8,fL(i,7)),this.setFunctionModule(7,8,fL(i,8));for(var o=9;o<15;o++)this.setFunctionModule(14-o,8,fL(i,o));for(var s=0;s<8;s++)this.setFunctionModule(this.size-1-s,8,fL(i,s));for(var c=8;c<15;c++)this.setFunctionModule(8,this.size-15+c,fL(i,c));this.setFunctionModule(8,this.size-8,!0)}},{key:`drawVersion`,value:function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^(e>>>11)*7973;var n=this.version<<12|e;pL(n>>>18==0);for(var r=0;r<18;r++){var i=fL(n,r),a=this.size-11+r%3,o=Math.floor(r/3);this.setFunctionModule(a,o,i),this.setFunctionModule(o,a,i)}}}},{key:`drawFinderPattern`,value:function(e,t){for(var n=-4;n<=4;n++)for(var r=-4;r<=4;r++){var i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;a>=0&&a<this.size&&o>=0&&o<this.size&&this.setFunctionModule(a,o,i!==2&&i!==4)}}},{key:`drawAlignmentPattern`,value:function(e,t){for(var n=-2;n<=2;n++)for(var r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,Math.max(Math.abs(r),Math.abs(n))!==1)}},{key:`setFunctionModule`,value:function(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}},{key:`addEccAndInterleave`,value:function(t){var n=this.version,r=this.errorCorrectionLevel;if(t.length!==e.getNumDataCodewords(n,r))throw RangeError(`Invalid argument`);for(var i=e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],o=Math.floor(e.getNumRawDataModules(n)/8),s=i-o%i,c=Math.floor(o/i),l=[],u=e.reedSolomonComputeDivisor(a),d=0,f=0;d<i;d++){var p=t.slice(f,f+c-a+(d<s?0:1));f+=p.length;var m=e.reedSolomonComputeRemainder(p,u);d<s&&p.push(0),l.push(p.concat(m))}for(var h=[],g=function(e){l.forEach(function(t,n){(e!==c-a||n>=s)&&h.push(t[e])})},_=0;_<l[0].length;_++)g(_);return pL(h.length===o),h}},{key:`drawCodewords`,value:function(t){if(t.length!==Math.floor(e.getNumRawDataModules(this.version)/8))throw RangeError(`Invalid argument`);for(var n=0,r=this.size-1;r>=1;r-=2){r===6&&(r=5);for(var i=0;i<this.size;i++)for(var a=0;a<2;a++){var o=r-a,s=r+1&2?i:this.size-1-i;!this.isFunction[s][o]&&n<t.length*8&&(this.modules[s][o]=fL(t[n>>>3],7-(n&7)),n++)}}pL(n===t.length*8)}},{key:`applyMask`,value:function(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(var t=0;t<this.size;t++)for(var n=0;n<this.size;n++){var r=void 0;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw Error(`Unreachable`)}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}},{key:`getPenaltyScore`,value:function(){for(var t=0,n=0;n<this.size;n++){for(var r=!1,i=0,a=[0,0,0,0,0,0,0],o=0;o<this.size;o++)this.modules[n][o]===r?(i++,i===5?t+=e.PENALTY_N1:i>5&&t++):(this.finderPenaltyAddHistory(i,a),r||(t+=this.finderPenaltyCountPatterns(a)*e.PENALTY_N3),r=this.modules[n][o],i=1);t+=this.finderPenaltyTerminateAndCount(r,i,a)*e.PENALTY_N3}for(var s=0;s<this.size;s++){for(var c=!1,l=0,u=[0,0,0,0,0,0,0],d=0;d<this.size;d++)this.modules[d][s]===c?(l++,l===5?t+=e.PENALTY_N1:l>5&&t++):(this.finderPenaltyAddHistory(l,u),c||(t+=this.finderPenaltyCountPatterns(u)*e.PENALTY_N3),c=this.modules[d][s],l=1);t+=this.finderPenaltyTerminateAndCount(c,l,u)*e.PENALTY_N3}for(var f=0;f<this.size-1;f++)for(var p=0;p<this.size-1;p++){var m=this.modules[f][p];m===this.modules[f][p+1]&&m===this.modules[f+1][p]&&m===this.modules[f+1][p+1]&&(t+=e.PENALTY_N2)}var h=0,g=cL(this.modules),_;try{for(g.s();!(_=g.n()).done;)h=_.value.reduce(function(e,t){return e+ +!!t},h)}catch(e){g.e(e)}finally{g.f()}var v=this.size*this.size,y=Math.ceil(Math.abs(h*20-v*10)/v)-1;return pL(y>=0&&y<=9),t+=y*e.PENALTY_N4,pL(t>=0&&t<=2568888),t}},{key:`getAlignmentPatternPositions`,value:function(){if(this.version===1)return[];for(var e=Math.floor(this.version/7)+2,t=this.version===32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6],r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}},{key:`finderPenaltyCountPatterns`,value:function(e){var t=e[1];pL(t<=this.size*3);var n=t>0&&e[2]===t&&e[3]===t*3&&e[4]===t&&e[5]===t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}},{key:`finderPenaltyTerminateAndCount`,value:function(e,t,n){var r=t;return e&&(this.finderPenaltyAddHistory(r,n),r=0),r+=this.size,this.finderPenaltyAddHistory(r,n),this.finderPenaltyCountPatterns(n)}},{key:`finderPenaltyAddHistory`,value:function(e,t){var n=e;t[0]===0&&(n+=this.size),t.pop(),t.unshift(n)}}],[{key:`encodeText`,value:function(t,n){var r=gL.makeSegments(t);return e.encodeSegments(r,n)}},{key:`encodeBinary`,value:function(t,n){var r=gL.makeBytes(t);return e.encodeSegments([r],n)}},{key:`encodeSegments`,value:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(e.MIN_VERSION<=r&&r<=i&&i<=e.MAX_VERSION)||a<-1||a>7)throw RangeError(`Invalid value`);var s,c;for(s=r;;s++){var l=e.getNumDataCodewords(s,n)*8,u=gL.getTotalBits(t,s);if(u<=l){c=u;break}if(s>=i)throw RangeError(`Data too long`)}for(var d=n,f=0,p=[hL.MEDIUM,hL.QUARTILE,hL.HIGH];f<p.length;f++){var m=p[f];o&&c<=e.getNumDataCodewords(s,m)*8&&(d=m)}var h=[],g=cL(t),_;try{for(g.s();!(_=g.n()).done;){var v=_.value;dL(v.mode.modeBits,4,h),dL(v.numChars,v.mode.numCharCountBits(s),h);var y=cL(v.getData()),b;try{for(y.s();!(b=y.n()).done;){var x=b.value;h.push(x)}}catch(e){y.e(e)}finally{y.f()}}}catch(e){g.e(e)}finally{g.f()}pL(h.length===c);var S=e.getNumDataCodewords(s,d)*8;pL(h.length<=S),dL(0,Math.min(4,S-h.length),h),dL(0,(8-h.length%8)%8,h),pL(h.length%8==0);for(var C=236;h.length<S;C^=253)dL(C,8,h);for(var w=[];w.length*8<h.length;)w.push(0);return h.forEach(function(e,t){w[t>>>3]|=e<<7-(t&7)}),new e(s,d,w,a)}},{key:`getNumRawDataModules`,value:function(t){if(t<e.MIN_VERSION||t>e.MAX_VERSION)throw RangeError(`Version number out of range`);var n=(16*t+128)*t+64;if(t>=2){var r=Math.floor(t/7)+2;n-=(25*r-10)*r-55,t>=7&&(n-=36)}return pL(n>=208&&n<=29648),n}},{key:`getNumDataCodewords`,value:function(t,n){return Math.floor(e.getNumRawDataModules(t)/8)-e.ECC_CODEWORDS_PER_BLOCK[n.ordinal][t]*e.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][t]}},{key:`reedSolomonComputeDivisor`,value:function(t){if(t<1||t>255)throw RangeError(`Degree out of range`);for(var n=[],r=0;r<t-1;r++)n.push(0);n.push(1);for(var i=1,a=0;a<t;a++){for(var o=0;o<n.length;o++)n[o]=e.reedSolomonMultiply(n[o],i),o+1<n.length&&(n[o]^=n[o+1]);i=e.reedSolomonMultiply(i,2)}return n}},{key:`reedSolomonComputeRemainder`,value:function(t,n){var r=n.map(function(){return 0}),i=cL(t),a;try{var o=function(){var t=a.value^r.shift();r.push(0),n.forEach(function(n,i){r[i]^=e.reedSolomonMultiply(n,t)})};for(i.s();!(a=i.n()).done;)o()}catch(e){i.e(e)}finally{i.f()}return r}},{key:`reedSolomonMultiply`,value:function(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);for(var n=0,r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return pL(n>>>8==0),n}}])}();G(_L,`MIN_VERSION`,1),G(_L,`MAX_VERSION`,40),G(_L,`PENALTY_N1`,3),G(_L,`PENALTY_N2`,3),G(_L,`PENALTY_N3`,40),G(_L,`PENALTY_N4`,10),G(_L,`ECC_CODEWORDS_PER_BLOCK`,[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]),G(_L,`NUM_ERROR_CORRECTION_BLOCKS`,[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var vL={L:hL.LOW,M:hL.MEDIUM,Q:hL.QUARTILE,H:hL.HIGH},yL=4,bL=0,xL=.1,SL=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=[];return e.forEach(function(e,r){var i=null;e.forEach(function(a,o){if(!a&&i!==null){n.push(`M${i+t} ${r+t}h${o-i}v1H${i+t}z`),i=null;return}if(o===e.length-1){if(!a)return;i===null?n.push(`M${o+t},${r+t} h1v1H${o+t}z`):n.push(`M${i+t},${r+t} h${o+1-i}v1H${i+t}z`);return}a&&i===null&&(i=o)})}),n.join(``)},CL=function(e,t){return e.slice().map(function(e,n){return n<t.y||n>=t.y+t.h?e:e.map(function(e,n){return n<t.x||n>=t.x+t.w?e:!1})})},wL=function(e,t,n,r){if(r==null)return null;var i=e.length+n*2,a=Math.floor(t*xL),o=i/t,s=(r.width||a)*o,c=(r.height||a)*o,l=r.x==null?e.length/2-s/2:r.x*o,u=r.y==null?e.length/2-c/2:r.y*o,d=r.opacity==null?1:r.opacity,f=null;if(r.excavate){var p=Math.floor(l),m=Math.floor(u);f={x:p,y:m,w:Math.ceil(s+l-p),h:Math.ceil(c+u-m)}}var h=r.crossOrigin;return{x:l,y:u,h:c,w:s,excavation:f,opacity:d,crossOrigin:h}},TL=function(e,t){return t==null?e?yL:bL:Math.max(Math.floor(t),0)},EL=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),DL=function(e){var t=e.value,n=e.level,r=e.minVersion,i=e.includeMargin,a=e.marginSize,o=e.imageSettings,s=e.size,c=U(function(){var e=gL.makeSegments(t);return _L.encodeSegments(e,vL[n],r)}),l=U(function(){return c.value.getModules()}),u=U(function(){return TL(i,a)}),d=U(function(){return wL(l.value,s,u.value,o)});return{cells:l,margin:u,numCells:U(function(){return l.value.length+u.value*2}),calculatedImageSettings:d,qrcode:c}},OL={value:{type:String,default:``},size:{type:Number,default:128},level:{type:String,default:`L`},bgColor:{type:String,default:`#FFFFFF`},fgColor:{type:String,default:`#000000`},style:{type:Object,default:function(){return{}}},includeMargin:{type:Boolean,default:!1},marginSize:{type:Number,default:0},imageSettings:{type:Object,default:function(){return{}}},title:{type:String,default:``},minVersion:{type:Number,default:1}},kL={locale:{type:Object,default:function(){return{}}},onRefresh:{type:Function},statusRender:{type:Function},status:{type:String,default:`active`}},AL=z({name:`QRCodeCanvas`,props:OL,setup:function(e){var t=U(function(){return e.imageSettings?.src}),n=I(),r=I(null),i=I(``),a=function(){var t=DL({value:e.value,level:e.level,minVersion:1,includeMargin:!1,marginSize:e.marginSize,imageSettings:e.imageSettings,size:e.size}),a=t.margin,o=t.cells,s=t.numCells,c=t.calculatedImageSettings;if(r.value){var l=r.value,u=l.getContext(`2d`);if(u){i.value=c.value?.crossOrigin;var d=o,f=n.value;f&&(f.crossOrigin=c.value.crossOrigin);var p=c.value&&f!==null&&f?.complete&&f.naturalHeight!==0&&f.naturalWidth!==0;p&&c.value.excavation!=null&&(d=U(function(){return CL(o.value,c.value.excavation)}));var m=window.devicePixelRatio||1;l.height=e.size*m,l.width=e.size*m;var h=e.size/s.value*m;u.scale(h,h),u.fillStyle=e.bgColor,u.fillRect(0,0,s.value,s.value),u.fillStyle=e.fgColor,EL?u.fill(new Path2D(SL(d.value,a.value))):o.value.forEach(function(e,t){e.forEach(function(e,n){e&&u.fillRect(n+a.value,t+a.value,1,1)})}),c&&(u.globalAlpha=c.value.opacity),p&&(u.globalAlpha=c.value.opacity,u.drawImage(f,c.value.x+a.value,c.value.y+a.value,c.value.w,c.value.h))}}};return Tn(function(){a()}),mr(function(){a()}),function(){return V(bi,null,[V(`canvas`,{ref:r,role:`img`},null),t.value==null?null:V(`img`,{ref:n,onLoad:a,style:{display:`none`},src:t.value},null)])}}}),jL=z({name:`QRCodeSVG`,props:OL,setup:function(e){var t=U(function(){return DL({value:e.value,level:e.level,minVersion:1,includeMargin:!1,marginSize:e.marginSize,imageSettings:e.imageSettings,size:e.size})}),n=U(function(){var n=t.value,r=n.cells,i=n.calculatedImageSettings;return e.imageSettings&&i.value?.excavation!=null?CL(r.value,i.value.excavation):r.value}),r=U(function(){var n=t.value,r=n.calculatedImageSettings,i=n.margin;return!e.imageSettings.src||!r.value?null:V(`image`,{href:e.imageSettings.src,height:r.value.h,width:r.value.w,x:r.value.x+i.value,y:r.value.y+i.value,crossOrigin:r.value.crossOrigin},null)});return function(){var i=t.value,a=i.margin,o=i.numCells,s=SL(n.value,a.value);return V(`svg`,{height:e.size,width:e.size,viewBox:`0 0 ${o.value} ${o.value}`,role:`img`,style:e.style},[V(`path`,{fill:e.bgColor,d:`M0,0 h${o.value}v${o.value}H0z`,"shape-rendering":`crispEdges`},null),V(`path`,{fill:e.fgColor,d:s,"shape-rendering":`crispEdges`},null),r.value])}}}),ML=z({name:`QRCodeStatus`,props:kL,setup:function(e){var t=Q(),n=V(uh,{size:`32px`},null),r=U(function(){return V(bi,null,[V(`p`,{class:`${t.value}-expired__text`},[e.locale?.expiredText]),e?.onRefresh&&V(`p`,{class:`${t.value}-expired__button`,onClick:e?.onRefresh},[V(ev,{size:`16`},null),e.locale?.refreshText])])}),i=V(`p`,{class:`${t.value}-scanned`},[V(Qh,{size:`16`,class:`${t.value}-scanned__icon`},null),e.locale?.scannedText]),a=U(function(){return{expired:r.value,loading:n,scanned:i,active:null}}),o=function(e){return a.value[e.status]};return function(){return V(bi,null,[e.statusRender||o({status:e.status,onRefresh:e.onRefresh})])}}}),NL=X(z({name:`TQRCode`,props:aL,setup:function(e){var t=Q(),n=pm(),r=Rp(`qrcode`).globalConfig,i=Km({themeFgColor:`--td-text-color-primary`,themeBgColor:`--td-bg-color-specialcomponent`}),a=i.themeFgColor,o=i.themeBgColor,s=U(function(){return e.bgColor||o.value||`transparent`}),c=U(function(){return e.color||a.value||`#000000`}),l=U(function(){return{src:e.icon,x:void 0,y:void 0,height:nf(e.iconSize)?e.iconSize:e.iconSize?.height??40,width:nf(e.iconSize)?e.iconSize:e.iconSize?.width??40,excavate:!0,crossOrigin:`anonymous`}}),u=U(function(){return[`${t.value}-qrcode`,G(G({},`${t.value}-borderless`,e.borderless),`${t.value}-qrcode-svg`,e.type===`svg`)]}),d=U(function(){return{backgroundColor:s.value,width:`${e.size}px`,height:`${e.size}px`}});return function(){var i={value:e.value,size:e.size,bgColor:s.value,fgColor:c.value,imageSettings:e.icon?l.value:void 0,level:e.level};return V(`div`,H({class:u.value,style:d.value},{level:e.level}),[e.status!==`active`&&V(`div`,{class:[`${t.value}-mask`,G({},`${t.value}-${e.status}`,e.status!==`loading`)]},[V(ML,{locale:r.value,status:e.status,onRefresh:e.onRefresh,statusRender:n(`statusRender`,{params:{status:e.status,onRefresh:e.onRefresh}})},null)]),e.type===`canvas`?V(AL,H(i,{size:e.size}),null):V(jL,H(i,{size:e.size}),null)])}}}),`TQrcode`),PL=X(z({name:`TAlert`,props:{close:{type:[String,Boolean,Function],default:!1},closeBtn:{type:[String,Boolean,Function],default:!1},default:{type:[String,Function]},icon:{type:Function},maxLine:{type:Number,default:0},message:{type:[String,Function]},operation:{type:Function},theme:{type:String,default:`info`,validator:function(e){return!e||[`success`,`info`,`warning`,`error`].includes(e)}},title:{type:[String,Function]},onClose:Function,onClosed:Function},setup:function(e,t){var n=t.slots,r=Yi(),i=Rp(`alert`),a=i.globalConfig,o=i.classPrefix,s=Tm({CheckCircleFilledIcon:Qh,CloseIcon:Og,ErrorCircleFilledIcon:Zg,HelpCircleFilledIcon:v_,InfoCircleFilledIcon:A_}),c=s.CheckCircleFilledIcon,l=s.CloseIcon,u=s.ErrorCircleFilledIcon,d=s.HelpCircleFilledIcon,f=s.InfoCircleFilledIcon,p=Q(`alert`),m=pm(),h=Uoe(),g=I(),_=I(),v=I(0),y=I(!0),b=I(!0),x=function(){var e=h(`icon`,{info:f,success:c,warning:u,error:u,question:d});return e?V(`div`,{class:`${p.value}__icon`},[e]):null},S=function(){var t=e.closeBtn,i=Object.prototype.hasOwnProperty.call(r.vnode.props||{},`close`)||n.close,a=i?e.close:t;i&&Vp.warnOnce(`TAlert`,"prop `close` is going to be deprecated, please use `closeBtn` instead.");var o=null;return o=a===!0||a===``?V(l,null,null):Rd(a)?a:m(i?`close`:`closeBtn`),o?V(`div`,{class:`${p.value}__close`,onClick:D},[o]):null},C=function(){var e=m(`title`);return e?V(`div`,{class:`${p.value}__title`},[` `,e]):null},w=function(){var e=m(`operation`);return V(`div`,{class:`${p.value}__message`},[T(),e?V(`div`,{class:`${p.value}__operation`},[e]):null])},T=function(){var t,n=m(`default`)||m(`message`);K(n)&&(n=gm(n));var r=K(n)?n.length:1,i=e.maxLine>0&&e.maxLine<r,o=(t=_.value)==null||(t=t.children[0])==null?void 0:t.offsetHeight;return i&&b.value?(n=n.slice(0,e.maxLine),o&&(_.value.style.height=`${v.value}px`)):i&&o&&(_.value.style.height=`${o*(r-e.maxLine)+v.value}px`),V(`div`,{class:`${p.value}__description`,ref:_},[i?n.map(function(e){return V(`div`,null,[e])}):n,i?V(`div`,{class:`${p.value}__collapse`,onClick:function(){b.value=!b.value}},[b.value?a.value.expandText:a.value.collapseText]):null])},E=function(){return V(`div`,{class:`${p.value}__content`},[C(),w()])},D=function(t){var n;(n=e.onClose)==null||n.call(e,{e:t}),dp(g.value,`${p.value}--closing`)},O=function(t){var n=t.target===g.value;if(t.propertyName===`opacity`&&n){var r;y.value=!1,(r=e.onClosed)==null||r.call(e,{e:t})}};return mr(function(){cp(g.value,`transitionend`,O),v.value=_.value.offsetHeight}),_r(function(){lp(g.value,`transitionend`,O)}),function(){return V(`div`,{ref:g,class:[`${p.value}`,`${p.value}--${e.theme}`,G({},`${o.value}-is-hidden`,!y.value)]},[x(),E(),S()])}}})),FL={attach:{type:[String,Function]},body:{type:[String,Function]},cancelBtn:{type:[String,Object,Function]},closeBtn:{type:[String,Boolean,Function]},closeOnEscKeydown:{type:Boolean,default:void 0},closeOnOverlayClick:{type:Boolean,default:void 0},confirmBtn:{type:[String,Object,Function]},default:{type:[String,Function]},destroyOnClose:Boolean,drawerClassName:{type:String,default:``},footer:{type:[Boolean,Function],default:!0},header:{type:[String,Boolean,Function],default:!0},lazy:Boolean,mode:{type:String,default:`overlay`,validator:function(e){return!e||[`overlay`,`push`].includes(e)}},placement:{type:String,default:`right`,validator:function(e){return!e||[`left`,`right`,`top`,`bottom`].includes(e)}},preventScrollThrough:{type:Boolean,default:!0},showInAttachedElement:Boolean,showOverlay:{type:Boolean,default:!0},size:{type:String,default:void 0},sizeDraggable:{type:[Boolean,Object],default:!1},visible:Boolean,zIndex:{type:Number},onBeforeClose:Function,onBeforeOpen:Function,onCancel:Function,onClose:Function,onCloseBtnClick:Function,onConfirm:Function,onEscKeydown:Function,onOverlayClick:Function,onSizeDragEnd:Function};function IL(e,t){return typeof e==`boolean`?{allowSizeDraggable:e,max:t.max,min:t.min}:{allowSizeDraggable:!0,max:e.max,min:e.min}}function LL(e,t,n){return Math.min(Math.max(e,t),n)}function RL(e,t){var n=t.x,r=t.y,i=t.max,a=t.min,o=t.maxWidth,s=t.maxHeight,c;switch(e){case`right`:c=LL(o-n,a,i);break;case`left`:c=LL(n,a,i);break;case`top`:c=LL(r,a,i);break;case`bottom`:c=LL(s-r,a,i);break;default:return c}return c}var zL=function(e){var t=I(!1),n=I(null),r=function(t){var n=t.target?.parentElement;if(!n)return null;var r=[`right`,`left`].includes(e.placement),i=r?n.offsetWidth:n.offsetHeight,a=document.documentElement.clientHeight,o=document.documentElement.clientWidth,s=8,c=8,l=r?o:a,u=r?c:s,d=IL(e.sizeDraggable,{max:l,min:u}),f=d.max,p=d.min;return`${Math.max(p,Math.min(f,i))}px`},i=function(e){e.stopPropagation();var i=r(e);i&&(n.value=i),document.addEventListener(`mouseup`,a,!0),document.addEventListener(`mousemove`,o,!0),t.value=!0},a=function(){document.removeEventListener(`mouseup`,a,!0),document.removeEventListener(`mousemove`,o,!0),t.value=!1},o=function(r){var i,a=r.x,o=r.y,s=document.documentElement.clientHeight,c=document.documentElement.clientWidth,l=8,u=8,d=e.placement===`left`||e.placement===`right`?c:s,f=e.placement===`left`||e.placement===`right`?u:l,p=IL(e.sizeDraggable,{max:d,min:f}),m=p.allowSizeDraggable,h=p.max,g=p.min;if(!(!m||!t.value)){var _=RL(e.placement,{x:a,y:o,maxWidth:c,maxHeight:s,max:h,min:g});_!==void 0&&(n.value=`${_}px`,(i=e.onSizeDragEnd)==null||i.call(e,{e:r,size:_}))}};return{draggedSizeValue:n,enableDrag:i,draggableLineStyles:U(function(){var t=[`right`,`left`].includes(e.placement);return G(G(G(G({zIndex:1,position:`absolute`,background:`transparent`},{left:`right`,right:`left`,top:`bottom`,bottom:`top`}[e.placement],0),`width`,t?`16px`:`100%`),`height`,t?`100%`:`16px`),`cursor`,t?`col-resize`:`row-resize`)}),draggingStyles:U(function(){return t.value?{userSelect:`none`}:{}})}};function BL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function VL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?BL(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var HL=1,UL=z({name:`TDrawer`,inheritAttrs:!1,props:FL,emits:[`update:visible`],setup:function(e,t){var n=I(!1),r=I(!1),i=I(),a=I(),o=Rp(`drawer`).globalConfig,s=Tm({CloseIcon:Og}).CloseIcon,c=pm(),l=hm(),u=Q(`drawer`),d=zL(e),f=d.draggedSizeValue,p=d.enableDrag,m=d.draggableLineStyles,h=d.draggingStyles,g=U(function(){return e.visible}),_=I(!1),v=Lm(function(){return e.attach}),y=Sj({confirmBtnAction:function(t){var n;(n=e.onConfirm)==null||n.call(e,{e:t})},cancelBtnAction:function(t){var n;(n=e.onCancel)==null||n.call(e,{e:t}),oe({trigger:`cancel`,e:t})}}),b=y.getConfirmBtn,x=y.getCancelBtn,S=I(null),C=U(function(){return[u.value,`${u.value}--${e.placement}`,G(G(G({},`${u.value}--open`,r.value),`${u.value}--attach`,e.showInAttachedElement),`${u.value}--without-mask`,!e.showOverlay),e.drawerClassName]}),w=U(function(){if(f.value)return f.value;var t=e.size??o.value.size,n=isNaN(Number(t))?t:`${t}px`;return{small:`300px`,medium:`500px`,large:`760px`}[t]||n}),T=U(function(){return{transform:r.value?`translateX(0)`:void 0,width:[`left`,`right`].includes(e.placement)?w.value:``,height:[`top`,`bottom`].includes(e.placement)?w.value:``}}),E=U(function(){return[`${u.value}__content-wrapper`,`${u.value}__content-wrapper--${e.placement}`]}),D=U(function(){return S.value?.parentNode}),O=U(function(){return[e.mode,e.placement].join()}),k=U(function(){return{display:`flex`,justifyContent:e.placement===`right`?`flex-start`:`flex-end`}}),A=function(t){if((e.closeOnEscKeydown??o.value.closeOnEscKeydown)&&t.key===`Escape`&&r.value&&te()){var n;(n=e.onEscKeydown)==null||n.call(e,{e:t}),oe({trigger:`esc`,e:t}),t.stopImmediatePropagation()}},j=function(){clearTimeout(a.value),a.value=setTimeout(function(){var e,t;(e=i.value)==null||(e=e.parentNode)==null||(t=e.removeChild)==null||t.call(e,i.value),i.value=null},150),dn(function(){var e,t;(e=S.value)==null||(t=e.focus)==null||t.call(e)})},M=`transition: margin 300ms cubic-bezier(0.7, 0.3, 0.1, 1) 0s;`,ee=function(){var t=window.innerWidth>document.documentElement.clientWidth?Cj():0;i.value=document.createElement(`style`),i.value.dataset.id=`td_drawer_${+new Date}_${HL+=1}`,i.value.innerHTML=`
html body {
overflow-y: hidden;
${M}
${e.mode===`push`?``:`width: calc(100% - ${t}px);`}
}
`},N=function(){e.mode===`push`&&dn(function(){D.value&&(D.value.style.cssText=M)})},P=function(){if(!(!D.value||e.mode!==`push`)){var t={left:{name:`margin-left`,value:w.value},right:{name:`margin-left`,value:`-${w.value}`},top:{name:`margin-top`,value:w.value},bottom:{name:`margin-top`,value:`-${w.value}`}}[e.placement];r.value?D.value.style.setProperty(t.name,t.value):D.value.style.removeProperty(t.name)}},F=function(){var t=b({confirmBtn:e.confirmBtn,globalConfirm:o.value.confirm,className:`${u.value}__confirm`}),n=x({cancelBtn:e.cancelBtn,globalCancel:o.value.cancel,className:`${u.value}__cancel`});return V(`div`,{style:k.value},[e.placement===`right`?t:null,n,e.placement===`right`?null:t])},te=jm(`drawer`,{visible:g}).isTopInteractivePopup;R(O,N,{immediate:!0});var ne=function(t){if(t&&(_.value=!0),e.destroyOnClose){t?(n.value=!1,setTimeout(function(){return r.value=!0})):(r.value=!1,n.value&&=!1,_.value?setTimeout(function(){return n.value=!0},300):n.value=!0);return}if(n.value&&t){n.value=!1,setTimeout(function(){return r.value=!0});return}setTimeout(function(){return r.value=t})},re=function(){!e.showInAttachedElement&&e.preventScrollThrough&&r.value&&(_.value||!e.lazy)&&(i.value||ee(),i.value&&!document.head.contains(i.value)&&document.head.appendChild(i.value))};R(function(){return e.visible},function(t){if(!sp){if(t){var n;re(),(n=e.onBeforeOpen)==null||n.call(e)}else{var r;j(),(r=e.onBeforeClose)==null||r.call(e)}ne(t)}},{immediate:!0});var ie=function(t){var n;(n=e.onCloseBtnClick)==null||n.call(e,{e:t}),oe({trigger:`close-btn`,e:t})},ae=function(t){var n;(n=e.onOverlayClick)==null||n.call(e,{e:t}),(e.closeOnOverlayClick??o.value.closeOnOverlayClick)&&oe({trigger:`overlay`,e:t})},oe=function(n){var r;(r=e.onClose)==null||r.call(e,n),t.emit(`update:visible`,!1)};gr(P),mr(function(){re(),window.addEventListener(`keydown`,A)}),_r(function(){j(),window.removeEventListener(`keydown`,A)});var se=U(function(){return _.value?r.value||!n.value:e.destroyOnClose&&n.value?!1:!e.lazy});return function(){if(se.value){var n=l(`body`,`default`),r=c(`header`),i=F();return V(Ln,{disabled:!e.attach||!v.value,to:v.value},{default:function(){return[V(`div`,H({ref:S,class:C.value,style:{zIndex:e.zIndex},onKeydown:A,tabindex:0},t.attrs),[e.showOverlay&&V(`div`,{class:`${u.value}__mask`,onClick:ae},null),V(`div`,{class:E.value,style:VL(VL({},T.value),h.value)},[r&&V(`div`,{class:`${u.value}__header`},[r]),e.closeBtn&&V(`div`,{class:`${u.value}__close-btn`,onClick:ie},[c(`closeBtn`,V(s,null,null))]),V(`div`,{class:[`${u.value}__body`,`narrow-scrollbar`]},[n]),e.footer&&V(`div`,{class:`${u.value}__footer`},[c(`footer`,i)]),e.sizeDraggable&&V(`div`,{style:m.value,onMousedown:p},null)])])]}})}}}});function WL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function GL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?WL(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var KL=function(e,t){var n=GL({},e),r=document.createElement(`div`),i=I(!1),a=n.style,o=function(e){e&&(r.firstElementChild.style.cssText+=e)};function s(){Za(null,r),r.remove()}var c=V(z({setup:function(e,t){var r=t.expose,c=I(n);return mr(function(){dn(function(){i.value=!0}),document.activeElement.blur(),dn(function(){o(a)})}),r({update:function(e){c.value=GL(GL({},n),{},{drawerClassName:c.value?.className},Sf(e,[`className`,`style`]))}}),function(){var e=n.onClose||function(){i.value=!1,n.destroyOnClose&&setTimeout(function(){s()},300)};return delete n.style,sa(UL,GL({onClose:e,visible:i.value,drawerClassName:c.value?.className},Sf(c.value,`className`,`style`)))}}}));(t??qL._context)&&(c.appContext=t??qL._context);var l=pp(n.attach);l?l.appendChild(r):console.error(`attach is not exist`),Za(c,r);var u=function(){i.value=!1,setTimeout(function(){s()},400)};return{show:function(){i.value=!0},hide:function(){i.value=!1},update:function(e){c.component.exposed.update(e),o(e.style)},destroy:function(){u()}}},qL=KL;qL.install=function(e){qL._context=e._context,e.config.globalProperties.$drawer=KL};var JL=X(UL),YL={counter:{type:Function},current:{type:Number,default:void 0},modelValue:{type:Number,default:void 0},defaultCurrent:{type:Number},finishButtonProps:{type:Object},hideCounter:Boolean,hidePrev:Boolean,hideSkip:Boolean,highlightPadding:{type:Number,default:8},mode:{type:String,default:`popup`,validator:function(e){return!e||[`popup`,`dialog`].includes(e)}},nextButtonProps:{type:Object},prevButtonProps:{type:Object},showOverlay:{type:Boolean,default:!0},skipButtonProps:{type:Object},steps:{type:Array},zIndex:{type:Number,default:999999},onChange:Function,onFinish:Function,onNextStepClick:Function,onPrevStepClick:Function,onSkip:Function};function XL(e){var t=window.getComputedStyle(e),n=t.position===`absolute`,r=/(auto|scroll)/;if(t.position===`fixed`)return document.body;for(var i=e;i.parentElement;)if(i=i.parentElement,t=window.getComputedStyle(i),!(n&&t.position===`static`)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.body}function ZL(e){var t=XL(e);t!==document.body&&(yp(e,t)||(t.scrollTop=e.offsetTop-t.offsetTop))}function QL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.body,n=Sp(),r=n.scrollTop,i=n.scrollLeft,a=e.getBoundingClientRect(),o=a.top,s=a.left,c=t.getBoundingClientRect(),l=c.top,u=c.left,d=bp(t,`position`);return t.tagName.toLowerCase()!==`body`&&d===`relative`||d===`sticky`?{top:o-l,left:s-u}:xp(e)?{top:o,left:s}:{top:o+r,left:s+i}}function $L(e){if(e){var t,n=null;if(Rd(e))n=document.querySelector(e);else if(q(e))n=e();else throw Error(`elm should be string or function`);if(n)return n;if(((t=process)==null||(t=t.env)==null?void 0:t.NODE_ENV)!==`test`)throw Error(`There is no element with given.`)}else return document.body}function eR(e){var t=e.getBoundingClientRect();if(!yp(e)){var n=uoe().height;_p(t.top-(n/2-t.height/2),{})}}var tR=X(z({name:`TGuide`,props:YL,setup:function(e,t){var n=pm(),r=Q(`guide`),i=Q(`guide--lock`),a=Rp(`guide`).globalConfig,o=Wt(e),s=o.current,c=o.modelValue,l=o.hideCounter,u=o.hidePrev,d=o.hideSkip,f=o.steps,p=o.zIndex,m=Y(Rm(s,c,e.defaultCurrent,e.onChange,`current`),2),h=m[0],g=m[1],_=I(),v=I(),y=I(),b=I(),x=I(),S=I(),C=I(),w=I(!1),T=U(function(){return f.value.length}),E=U(function(){return f.value[h.value]}),D=U(function(){return k(`mode`)===`popup`}),O=U(function(){return xp(b.value||document.body)}),k=function(t){return E.value[t]??e[t]},A=U(function(){var e=E.value.highlightContent,n=e;return q(e)?n=e(ee()):t.slots.highlightContent?n=t.slots.highlightContent(ee()):t.slots[`highlight-content`]?n=t.slots[`highlight-content`](ee()):e&&(n=V(n,null,null)),n&&(n.props||={},n.props.class=n.props.class||``),n}),j=U(function(){return!!(A.value&&D.value)}),M=I(!1),ee=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{currentStepInfo:E.value},t=Function(`return `+sa.toString())();return Object.assign({},t,e)},N=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=QL(b.value),r=n.top,i=n.left,a=b.value.getBoundingClientRect(),o=a.width,s=a.height,c=k(`highlightPadding`);if(D.value)o+=c*2,s+=c*2,r-=c,i-=c;else{var l=Sp(),u=l.scrollTop,d=l.scrollLeft;r+=u,i+=d}var f={top:`${r}px`,left:`${i}px`};if(j.value)if(t){var p=v.value.getBoundingClientRect(),m=p.width,h=p.height;Object.assign(f,{width:`${m}px`,height:`${h}px`})}else Object.assign(f,{width:`auto`,height:`auto`});else Object.assign(f,{width:`${o}px`,height:`${s}px`});Pm(e,f)},P=function(){dn(function(){var e;b.value=$L(E.value.element),b.value&&(ZL(b.value),N(v.value),N(y.value,!0),eR(b.value),(e=C.value)==null||e.update())})},F=function(){var e;(e=y.value)==null||e.parentNode.removeChild(y.value)},te=function(){dn(function(){b.value=S.value,ZL(b.value),N(v.value),eR(b.value)})},ne=function(){var e,t;(e=S.value)==null||e.parentNode.removeChild(S.value),(t=x.value)==null||t.parentNode.removeChild(x.value)},re=function(){D.value?(ne(),P()):(F(),te()),M.value=!0};Om(function(){M.value&&re()},!sp&&document.body);var ie=function(){var e,t;F(),ne(),(e=v.value)==null||e.parentNode.removeChild(v.value),(t=_.value)==null||t.parentNode.removeChild(_.value),fp(document.body,i.value)},ae=function(t){var n,r=T.value;w.value=!1,g(-1,{e:t,total:r}),(n=e.onSkip)==null||n.call(e,{e:t,current:h.value,total:r})},oe=function(t){var n,r=T.value;g(h.value-1,{e:t,total:r}),(n=e.onPrevStepClick)==null||n.call(e,{e:t,prev:h.value-1,current:h.value,total:r})},se=function(t){var n,r=T.value;g(h.value+1,{e:t,total:r}),(n=e.onNextStepClick)==null||n.call(e,{e:t,next:h.value+1,current:h.value,total:r})},ce=function(t){var n,r=T.value;w.value=!1,g(-1,{e:t,total:r}),(n=e.onFinish)==null||n.call(e,{e:t,current:h.value,total:r})},le=function(){h.value>=0&&h.value<f.value.length&&(w.value||(w.value=!0,dp(document.body,i.value)),re())};return R(h,function(e){e>=0&&e<f.value.length?(M.value=!1,le()):(w.value=!1,ie())}),mr(function(){le()}),function(){var i=function(){return V(`div`,{ref:_,class:`${r.value}__overlay`,style:{zIndex:p.value-2}},null)},o=function(){var e={zIndex:p.value-1},t=[`${r.value}__highlight`,`${r.value}__highlight--${D.value?`popup`:`dialog`}`,`${r.value}--${O.value&&D.value?`fixed`:`absolute`}`],n=k(`showOverlay`),i=[`${r.value}__highlight--${n?`mask`:`nomask`}`];return V(`div`,{ref:v,class:[].concat(t,i),style:e},[j.value&&A.value])},s=function(){var e=n(`counter`,{params:{total:T.value,current:h.value}}),t=V(`div`,{class:`${r.value}__counter`},[e||`${h.value+1}/${T.value}`]);return V(bi,null,[!l.value&&t])},c=function(t){var n=h.value===T.value-1,i=h.value===0,o=t===`popup`?`small`:`medium`;return V(`div`,{class:`${r.value}__action`},[!d.value&&!n&&V(mh,H({key:`skip`,class:`${r.value}__skip`,theme:`default`,size:o,variant:`base`,onClick:ae},k(`skipButtonProps`)??a.value.skipButtonProps),null),!u.value&&!i&&V(mh,H({key:`prev`,class:`${r.value}__prev`,theme:`default`,size:o,variant:`base`,onClick:oe},k(`prevButtonProps`)??a.value.prevButtonProps),null),!n&&V(mh,H({key:`next`,class:`${r.value}__next`,theme:`primary`,size:o,variant:`base`,onClick:se},k(`nextButtonProps`)??a.value.nextButtonProps),null),n&&V(mh,H({key:`finish`,class:`${r.value}__finish`,theme:`primary`,size:o,variant:`base`,onClick:ce},e.finishButtonProps??a.value.finishButtonProps),null)])},f=function(){var e=q(E.value.title)?E.value.title():void 0,n=t.slots.title?t.slots.title(ee()):void 0;return e||n||E.value.title},m=function(){var e=V(`div`,{class:`${r.value}__title`},[f()]),n=E.value.body,i=q(n)?n(ee()):t.slots.body?t.slots.body({currentStepInfo:E.value}):typeof n==`string`?n:V(n,null,null);return V(bi,null,[e,V(`div`,{class:`${r.value}__desc`},[i])])},g=function(){var e=V(`div`,{class:[`${r.value}__footer`,`${r.value}__footer--popup`]},[s(),c(`popup`)]);return V(`div`,{class:`${r.value}__tooltip`},[m(),e])},b=function(){var e=E.value.content,n={handlePrev:oe,handleNext:se,handleSkip:ae,handleFinish:ce,current:h.value,total:T.value},i=q(e)?function(){return e(ee(n))}:t.slots.content?function(){return t.slots.content(ee(n))}:e?function(){return V(e,n,null)}:g,a=[`${r.value}__reference`,`${r.value}--${O.value?`fixed`:`absolute`}`],o=[G({},`${r.value}__popup--content`,!!e)];return V(zx,H({ref:C,visible:M.value,"show-arrow":!e,zIndex:p.value,placement:E.value.placement},E.value.popupProps,{content:i,overlayClassName:[`${r.value}__popup`,E.value.stepOverlayClass],overlayInnerClassName:o.concat(E.value.popupProps?.overlayInnerClassName)}),{default:function(){return[V(`div`,{ref:y,class:a},null)]}})},N=function(){var e={zIndex:p.value},t=[`${r.value}__wrapper`,G({},`${r.value}__wrapper--center`,E.value.placement===`center`)],n=[`${r.value}__reference`,`${r.value}--absolute`,`${r.value}__dialog`,G(G({},`${r.value}__dialog--nomask`,!k(`showOverlay`)),E.value.stepOverlayClass,!!E.value.stepOverlayClass)],i=[`${r.value}__footer`,`${r.value}__footer--popup`];return V(bi,null,[V(`div`,{ref:x,class:t,style:e},[V(`div`,{ref:S,class:n},[m(),V(`div`,{class:i},[s(),c(`dialog`)])])])])};return V(bi,null,[w.value&&function(){return V(bi,null,[V(Ln,{to:`body`},{default:function(){return[i(),o(),D.value?b():N()]}})])}()])}}})),nR=X(Ky),rR={closeBtn:{type:[String,Boolean,Function],default:void 0},content:{type:[String,Function]},default:{type:[String,Function]},duration:{type:Number,default:3e3},footer:{type:[String,Function]},icon:{type:[Boolean,Function],default:!0},theme:{type:String,default:`info`,validator:function(e){return!e||[`info`,`success`,`warning`,`error`].includes(e)}},title:{type:[String,Function]},onClose:Function,onCloseBtnClick:Function,onDurationEnd:Function},iR=6e3,aR=`16px`,oR={"top-left":{left:aR,top:aR},"top-right":{right:aR,top:aR},"bottom-right":{right:aR,bottom:aR},"bottom-left":{left:aR,bottom:aR}},sR=Object.keys(oR),cR={duration:200,easing:`linear`},lR=function(e,t,n){if(!sR.includes(e))return null;if(e===`top-right`)return[{opacity:0,transform:`translateX(${t}px)`},{opacity:1,transform:`translateX(0px)`}];if(e===`bottom-right`)return[{opacity:0,transform:`translateX(${t}px)`,marginBottom:`-${n}px`},{opacity:1,transform:`translateX(0px)`}];if(e===`top-left`)return[{opacity:0,transform:`translateX(-${t}px)`},{opacity:1,transform:`translateX(0px)`}];if(e===`bottom-left`)return[{opacity:0,transform:`translateX(-${t}px)`,marginBottom:`-${n}px`},{opacity:1,transform:`translateX(0px)`}]},uR=function(e,t,n){if(!sR.includes(e))return null;if(e===`top-right`)return[{opacity:1,transform:`translateX(0px)`},{opacity:0,transform:`translateX(${t}px)`,marginBottom:`-${n}px`}];if(e===`bottom-right`)return[{opacity:1,transform:`translateX(0px)`},{opacity:0,transform:`translateX(${t}px)`}];if(e===`top-left`)return[{opacity:1,transform:`translateX(0px)`},{opacity:0,transform:`translateX(-${t}px)`,marginBottom:`-${n}px`}];if(e===`bottom-left`)return[{opacity:1,transform:`translateX(0px)`},{opacity:0,transform:`translateX(-${t}px)`}]},dR=function(e,t){if(e){var n=e?.offsetHeight||0,r=lR(t,e?.offsetWidth||0,n);r&&e.animate&&e.animate(r,cR)}},fR=function(e,t,n){if(e){var r=e?.offsetHeight||0,i=uR(t,e?.offsetWidth||0,r);if(!i)return n();var a=e.animate&&e.animate(i,cR);a?a.onfinish=function(){n()}:(e.style.display=`none`,n())}};function pR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?pR(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var hR=z({name:`TNotification`,props:mR(mR({},rR),{},{placement:String,className:String}),setup:function(e,t){var n=t.slots,r=t.expose,i=Q(`notification`),a=Rp(`classPrefix`).classPrefix,o=Tm({InfoCircleFilledIcon:A_,CheckCircleFilledIcon:Qh,CloseIcon:Og}),s=o.InfoCircleFilledIcon,c=o.CheckCircleFilledIcon,l=o.CloseIcon,u=pm(),d=hm(),f=I(null),p=I(null),m=function(t){var n=p.value;fR(n,e.placement,function(){var n;(n=e.onCloseBtnClick)==null||n.call(e,{e:t})})},h=function(){var t=p.value;fR(t,e.placement,function(){var t;(t=e.onClose)==null||t.call(e)})},g=function(){var t;if(e.icon===!1)return null;if(q(e.icon))t=e.icon(sa);else if(n.icon)t=n.icon(null);else if(e.theme){var r=e.theme===`success`?V(c,{class:`${a.value}-is-${e.theme}`},null):V(s,{class:`${a.value}-is-${e.theme}`},null);t=V(`div`,{class:`${a.value}-notification__icon`},[r])}return t},_=function(){var e=V(l,null,null);return V(`span`,{class:`${a.value}-message__close`,onClick:m},[u(`closeBtn`,e)])},v=function(){return V(`div`,{class:`${i.value}__content`},[d(`default`,`content`)])},y=function(){e.duration&&clearTimeout(f.value)},b=function(){e.duration&&(f.value=Number(setTimeout(function(){y();var t=p.value;fR(t,e.placement,function(){var t;(t=e.onDurationEnd)==null||t.call(e)})},e.duration)))};return pr(function(){e.duration&&b()}),mr(function(){var t=p.value;dR(t,e.placement)}),r({close:h}),function(){return V(`div`,{ref:p,class:[i.value,e.className],onMouseenter:y,onMouseleave:b},[g(),V(`div`,{class:`${i.value}__main`},[V(`div`,{class:`${i.value}__title__wrap`},[V(`span`,{class:`${i.value}__title`},[u(`title`)]),_()]),v(),u(`footer`)])])}}});function gR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _R(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?gR(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var vR=z({props:{offset:Array,placement:{type:String,default:`top-right`,validator:function(e){return[`top-left`,`top-right`,`bottom-left`,`bottom-right`].indexOf(e)>-1}}},setup:function(e,t){var n=t.expose,r=Q(`notification-list`),i=e.placement,a=e.offset,o=I([]),s=I([]),c=U(function(){var e=_R({zIndex:iR},oR[i]);if(Array.isArray(a)&&a.length===2){var t=i.includes(`left`)?`left`:`right`,n=i.includes(`top`)?`top`:`bottom`;e[t]=f(a[0])??e[t],e[n]=f(a[1])??e[n]}return e}),l=function(e){return o.value.push(e),o.value.length-1},u=function(e){o.value.splice(e,1)},d=function(){o.value=[]},f=function(e){if(e)return isNaN(Number(e))?e:`${e}px`},p=function(e){var t={marginBottom:aR};return e.zIndex&&(t[`z-index`]=e.zIndex),t},m=function(e,t){return _R(_R({},t),{},{onCloseBtnClick:function(n){return t.onCloseBtnClick&&t.onCloseBtnClick(n),u(e)},onDurationEnd:function(){return t.onDurationEnd&&t.onDurationEnd(),u(e)},onClose:function(){return t.onClose&&t.onClose(),u(e)}})},h=function(e){e&&s.value.push(e)};return n({add:l,remove:u,removeAll:d,list:o,notificationList:s}),function(){if(o.value.length)return V(`div`,{class:`${r.value}__show`,style:c.value},[o.value.map(function(e,t){return V(hR,H({ref:h,key:e.id,style:p(e)},m(t,e)),null)})])}}});function yR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yR(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var xR=0,SR=new Map,CR=function(e,t){xR+=1;var n=bR({placement:`top-right`,zIndex:6e3,attach:`body`,id:xR},e);n.content=e.content?e.content:``;var r=pp(n.attach);SR.get(r)||SR.set(r,{});var i=SR.get(r)[n.placement];if(i)i.component.exposed.add(n);else{var a=document.createElement(`div`),o=V(vR,{placement:n.placement,offset:n.offset});(t??ER._context)&&(o.appContext=t??ER._context),r.appendChild(a),Za(o,a),o.component.exposed.add(n),SR.get(r)[n.placement]=o,i=o}return new Promise(function(e){var t=SR.get(r)[n.placement];dn(function(){e((t.component.exposed.notificationList.value??[])?.find(function(e){var t;return((t=e.$)==null||(t=t.vnode)==null?void 0:t.key)===n.id}))})})},wR=function(e,t,n){return CR(bR(bR({},t),{},{theme:e}),n)},TR={info:function(e,t){return wR(`info`,e,t)},success:function(e,t){return wR(`success`,e,t)},warning:function(e,t){return wR(`warning`,e,t)},error:function(e,t){return wR(`error`,e,t)},close:function(e){e.then(function(e){return e.close()})},closeAll:function(){SR.forEach(function(e){Object.keys(e).forEach(function(t){e[t].component.exposed.removeAll()})})}},ER=wR;ER.install=function(e){e.config.globalProperties.$notify=wR,Object.keys(TR).forEach(function(t){e.config.globalProperties.$notify[t]=TR[t]}),ER._context=e._context},Object.keys(TR).forEach(function(e){ER[e]=TR[e]});var DR=X(hR),OR={cancelBtn:{type:[String,Object,Function],default:``},confirmBtn:{type:[String,Object,Function],default:``},content:{type:[String,Function]},default:{type:[String,Function]},destroyOnClose:{type:Boolean,default:!0},icon:{type:Function},placement:{type:String,default:`top`,validator:function(e){return!e||[`top`,`left`,`right`,`bottom`,`top-left`,`top-right`,`bottom-left`,`bottom-right`,`left-top`,`left-bottom`,`right-top`,`right-bottom`].includes(e)}},popupProps:{type:Object},showArrow:{type:Boolean,default:!0},theme:{type:String,default:`default`,validator:function(e){return!e||[`default`,`warning`,`danger`].includes(e)}},triggerElement:{type:[String,Function]},visible:{type:Boolean,default:void 0},modelValue:{type:Boolean,default:void 0},defaultVisible:Boolean,onCancel:Function,onConfirm:Function,onVisibleChange:Function};function kR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function AR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?kR(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var jR=X(z({name:`TPopconfirm`,props:OR,setup:function(e){var t=Rp(`popconfirm`).globalConfig,n=Q(`popconfirm`),r=Tm({InfoCircleFilledIcon:A_,ErrorCircleFilledIcon:Zg}),i=r.InfoCircleFilledIcon,a=r.ErrorCircleFilledIcon,o=Wt(e),s=o.visible,c=o.modelValue,l=Y(Rm(s,c,e.defaultVisible,e.onVisibleChange,`visible`),2),u=l[0],d=l[1],f=Sj({confirmBtnAction:function(t){var n;(n=e.onConfirm)==null||n.call(e,{e:t}),d(!1,{e:t,trigger:`confirm`})},cancelBtnAction:function(t){var n;(n=e.onCancel)==null||n.call(e,{e:t}),d(!1,{e:t,trigger:`cancel`})}}),p=f.getConfirmBtn,m=f.getCancelBtn,h=pm(),g=U(function(){return AR({showArrow:e.showArrow,overlayClassName:n.value,trigger:`click`,destroyOnClose:e.destroyOnClose,placement:e.placement},e.popupProps)}),_=mm(),v=function(){var r=m({cancelBtn:e.cancelBtn,globalCancel:t.value.cancel,className:`${n.value}__cancel`,size:`small`}),o=p({theme:e.theme,confirmBtn:e.confirmBtn,globalConfirm:t.value.confirm,globalConfirmBtnTheme:t.value.confirmBtnTheme,className:`${n.value}__confirm`,size:`small`});return V(`div`,{class:`${n.value}__content`},[V(`div`,{class:`${n.value}__body`},[function(){var t={default:i,warning:a,danger:a}[e.theme],r=e.theme||`default`;return _(`icon`,V(t,{class:`${n.value}__icon--${r}`},null))}(),V(`div`,{class:`${n.value}__inner`},[h(`content`)])]),!!(r||o)&&V(`div`,{class:`${n.value}__buttons`},[r,o])])},y=function(e,t){d(e,t)},b=hm();return function(){return V(zx,H({visible:u.value},g.value,{onVisibleChange:y}),{default:function(){return[b(`default`,`triggerElement`)]},content:v})}}})),MR={abridgeName:{type:Array},accept:{type:String,default:``},action:{type:String,default:``},allowUploadDuplicateFile:Boolean,autoUpload:{type:Boolean,default:!0},beforeAllFilesUpload:{type:Function},beforeUpload:{type:Function},cancelUploadButton:{type:[Object,Function]},data:{type:[Object,Function]},default:{type:[String,Function]},disabled:{type:Boolean,default:void 0},dragContent:{type:[String,Function]},draggable:{type:Boolean,default:void 0},fileListDisplay:{type:Function},files:{type:Array,default:void 0},defaultFiles:{type:Array,default:function(){return[]}},format:{type:Function},formatRequest:{type:Function},formatResponse:{type:Function},headers:{type:Object},imageViewerProps:{type:Object},inputAttributes:{type:Object},isBatchUpload:Boolean,locale:{type:Object},max:{type:Number,default:0},method:{type:String,default:`POST`,validator:function(e){return!e||[`POST`,`GET`,`PUT`,`OPTION`,`PATCH`,`post`,`get`,`put`,`option`,`patch`].includes(e)}},mockProgressDuration:{type:Number},multiple:Boolean,name:{type:String,default:`file`},placeholder:{type:String,default:``},requestMethod:{type:Function},showImageFileName:{type:Boolean,default:!0},showThumbnail:Boolean,showUploadProgress:{type:Boolean,default:!0},sizeLimit:{type:[Number,Object]},status:{type:String,validator:function(e){return!e||[`default`,`success`,`warning`,`error`].includes(e)}},theme:{type:String,default:`file`,validator:function(e){return!e||[`custom`,`file`,`file-input`,`file-flow`,`image`,`image-flow`].includes(e)}},tips:{type:[String,Function]},trigger:{type:Function},triggerButtonProps:{type:Object},uploadAllFilesInOneRequest:Boolean,uploadButton:{type:[Object,Function]},uploadPastedFiles:{type:Boolean,default:!0},useMockProgress:{type:Boolean,default:!0},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:function(){return[]}},withCredentials:Boolean,onCancelUpload:Function,onChange:Function,onDragenter:Function,onDragleave:Function,onDrop:Function,onFail:Function,onOneFileFail:Function,onOneFileSuccess:Function,onPreview:Function,onProgress:Function,onRemove:Function,onSelectChange:Function,onSuccess:Function,onValidate:Function,onWaitingUploadFilesChange:Function},NR={accept:String,files:Array,toUploadFiles:Array,displayFiles:Array,theme:String,abridgeName:Array,placeholder:String,classPrefix:String,tips:[String,Function],status:String,locale:Object,sizeOverLimitMessage:String,autoUpload:Boolean,uploadPastedFiles:Boolean,onPasteFileChange:Function,disabled:Boolean,uploading:Boolean,tipsClasses:[String,Array,Object],errorClasses:[String,Array,Object],placeholderClass:[String,Array,Object],showUploadProgress:Boolean,default:Function,fileListDisplay:Function,onRemove:Function,imageViewerProps:Object};function PR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function FR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?PR(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function IR(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var LR=z({name:`UploadNormalFile`,props:FR({multiple:Boolean},NR),setup:function(e,t){var n=t.slots,r=Wt(e),i=r.theme,a=r.disabled,o=r.classPrefix,s=U(function(){return e.locale}),c=Tm({CloseIcon:Og,TimeFilledIcon:wv,CheckCircleFilledIcon:Qh,ErrorCircleFilledIcon:Zg,CloseCircleFilledIcon:Tg}),l=c.CloseIcon,u=c.TimeFilledIcon,d=c.CheckCircleFilledIcon,f=c.ErrorCircleFilledIcon,p=c.CloseCircleFilledIcon,m=pm(),h=`${o.value}-upload`,g=function(t){return V(`div`,{class:`${h}__single-progress`},[V(uh,null,null),e.showUploadProgress&&V(`span`,{class:`${h}__single-percent`},[t||0,`%`])])},_=function(t){return i.value!==`file`||!e.multiple&&t[0]?.status===`fail`&&e.autoUpload?null:t.map(function(t,n){var r=e.abridgeName&&t.name?Kp.apply(void 0,[t.name].concat(W(e.abridgeName))):t.name;return V(`div`,{class:`${h}__single-display-text ${h}__display-text--margin`,key:t.name+n+t.percent+t.status},[t.url?V(Kv,{href:t.url,target:`_blank`,hover:`color`,size:`small`,class:`${h}__single-name`,disabled:!1},IR(r)?r:{default:function(){return[r]}}):V(`span`,{class:`${h}__single-name`},[r]),t.status===`fail`&&V(`div`,{class:`${h}__flow-status ${h}__file-fail`},[V(f,null,null)]),t.status===`waiting`&&V(`div`,{class:`${h}__flow-status ${h}__file-waiting`},[V(u,null,null)]),t.status===`progress`&&g(t.percent),!a.value&&t.status!==`progress`&&V(l,{class:`${h}__icon-delete`,onClick:function(r){var i=r.e;return e.onRemove({e:i,file:t,index:n})}},null)])})},v=function(){var t;if(i.value===`file-input`){var n=e.displayFiles[0]||[],r=[`${o.value}-input__inner`,G({},`${h}__placeholder`,!e.displayFiles[0])],s=a.value?`${o.value}-is-disabled`:``,c=(t=e.abridgeName)!=null&&t.length&&n!=null&&n.name?Kp.apply(void 0,[n.name].concat(W(e.abridgeName))):n?.name;return V(`div`,{class:`${h}__single-input-preview ${o.value}-input ${s}`},[V(`div`,{class:r},[V(`span`,{class:[`${h}__single-input-text`,G({},e.placeholderClass,e.placeholder&&!(n!=null&&n.name))]},[n!=null&&n.name?c:e.placeholder]),n?.status===`progress`&&g(n.percent),n?.status===`waiting`&&V(u,{class:`${h}__status-icon ${h}__file-waiting`},null),n.status===`success`&&V(d,{class:`${h}__status-icon`},null),n?.name&&n.status===`fail`&&V(f,{class:`${h}__status-icon ${h}__file-fail`},null),!!(!a.value&&n.name)&&V(p,{class:`${h}__single-input-clear`,onClick:function(t){var r=t.e;return e.onRemove({e:r,file:n,index:0})}},null)])])}};return function(){var t=[`${h}__single`,`${h}__single-${i.value}`],r=m(`fileListDisplay`,{params:{onRemove:e.onRemove,toUploadFiles:e.toUploadFiles,sizeOverLimitMessage:e.sizeOverLimitMessage,locale:e.locale,files:e.displayFiles}});(e.fileListDisplay===null||r===null)&&(r=null);var a=e.displayFiles;return V(`div`,{class:t},[i.value===`file-input`&&v(),n.default?.call(n),i.value===`file`&&e.placeholder&&!a[0]&&V(`small`,{class:[e.tipsClasses,e.placeholderClass]},[e.placeholder]),r===null?null:r||_(a),!e.multiple&&a[0]?.status===`fail`&&i.value===`file`?V(`small`,{class:[e.errorClasses,e.placeholderClass]},[a[0].response?.error||s.value.progress.failText]):null])}}});function RR(e,t){var n=I(null),r=I(!1);return{target:n,dragActive:r,handleDrop:function(n){var i;n.preventDefault(),r.value=!1;var a=n.dataTransfer.files,o=qp(a,t.value);if((i=e.onDrop)==null||i.call(e,{e:n}),o!=null&&o.length){var s;(s=e.onDragFileChange)==null||s.call(e,o)}},handleDragenter:function(t){var i;t.preventDefault(),n.value=t.target,(i=e.onDragenter)==null||i.call(e,{e:t}),r.value=!0},handleDragleave:function(t){var i;t.target===n.value&&(t.preventDefault(),(i=e.onDragleave)==null||i.call(e,{e:t}),r.value=!1)},handleDragover:function(e){e.preventDefault()}}}function zR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function BR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zR(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var VR=z({name:`UploadDraggerFile`,props:BR(BR({},NR),{},{trigger:Function,triggerUpload:Function,uploadFiles:Function,cancelUpload:Function,dragEvents:Object}),setup:function(e,t){var n=t.slots,r=Wt(e),i=r.displayFiles,a=r.disabled,o=r.accept,s=U(function(){return e.locale}),c=pm(),l=ym().SIZE,u=`${e.classPrefix}-upload`,d=RR(e.dragEvents,o),f=d.dragActive,p=I(),m=U(function(){return[`${u}__dragger`,G({},`${u}__dragger-center`,!i.value[0]),G({},`${u}__dragger-error`,i.value[0]?.status===`fail`)]}),h=Tm({CheckCircleFilledIcon:Qh,ErrorCircleFilledIcon:Zg}),g=h.CheckCircleFilledIcon,_=h.ErrorCircleFilledIcon,v=function(){var t;if(e.displayFiles.length){var n=i.value[0];if(!n)return null;var r=n?.url||(n==null||(t=n.response)==null?void 0:t.url);return V(`div`,{class:`${u}__dragger-img-wrap`},[V(Vj,H({images:[r],trigger:function(e,t){var i=t.open;return V(`div`,{onClick:i},[V(KA,{src:r||n.raw,error:``,loading:``},null)])}},e.imageViewerProps),null)])}},y=function(){if(e.displayFiles.length){var t=i.value[0];if(!t)return null;if(t?.status===`progress`)return V(`div`,{class:`${u}__single-progress`},[V(uh,null,null),e.showUploadProgress&&V(`span`,{class:`${u}__single-percent`},[t.percent,`%`])])}},b=function(){var t=i.value[0],n=e.abridgeName?Kp.apply(void 0,[t.name].concat(W(e.abridgeName))):t.name,r=[V(`div`,{class:`${u}__dragger-text`,key:`info`},[V(`span`,{class:`${u}__single-name`},[n]),t.status===`progress`&&y(),t.status===`success`&&V(g,null,null),t.status===`fail`&&V(_,null,null)]),V(`small`,{class:`${l.value.small}`,key:`size`},[s.value.file.fileSizeText,`:`,Loe(t.size)]),V(`small`,{class:`${l.value.small}`,key:`time`},[s.value.file.fileOperationDateText,`:`,t.uploadTime||`-`])];return V(`div`,{class:`${u}__dragger-progress`},[e.theme===`image`&&v(),V(`div`,{class:`${u}__dragger-progress-info`},[c(`fileListDisplay`,{params:{files:e.displayFiles}})||r,V(`div`,{class:`${u}__dragger-btns`},[[`progress`,`waiting`].includes(t.status)&&!a.value&&V(mh,{theme:`primary`,variant:`text`,class:`${u}__dragger-progress-cancel`,onClick:function(t){return e.cancelUpload?.call(e,{e:t,file:e.toUploadFiles[0]||e.files[0]})}},{default:function(){return[s.value?.cancelUploadText]}}),!e.autoUpload&&t.status===`waiting`&&V(mh,{theme:`primary`,variant:`text`,disabled:a.value,onClick:function(){return e.uploadFiles?.call(e)},class:`${u}__dragger-upload-btn`},{default:function(){return[s.value.triggerUploadText.normal]}})]),[`fail`,`success`].includes(t?.status)&&!a.value&&V(`div`,{class:`${u}__dragger-btns`},[V(mh,{theme:`primary`,variant:`text`,disabled:a.value,class:`${u}__dragger-progress-cancel`,onClick:e.triggerUpload},{default:function(){return[s.value.triggerUploadText.reupload]}}),V(mh,{theme:`danger`,variant:`text`,disabled:a.value,class:`${u}__dragger-delete-btn`,onClick:function(n){return e.onRemove({e:n,index:0,file:t})}},{default:function(){return[s.value.triggerUploadText.delete]}})])])])},x=function(){var e=V(`div`,null,[V(`span`,{class:`${u}--highlight`},[s.value.triggerUploadText?.normal]),V(`span`,null,[`\xA0\xA0/\xA0\xA0`,s.value.dragger.draggingText])]),t=V(`div`,null,[s.value.dragger.dragDropText]);return f.value?t:e},S=function(){var t=i.value[0];return t&&([`progress`,`success`,`fail`,`waiting`].includes(t.status)||!t.status)?b():V(`div`,{class:`${u}__trigger`,onClick:e.triggerUpload},[n.default?.call(n)||x()])};return function(){return V(`div`,{ref:p,class:m.value,onDrop:d.handleDrop,onDragenter:d.handleDragenter,onDragover:d.handleDragover,onDragleave:d.handleDragleave},[e.trigger?.call(e,sa,{files:i.value,dragActive:f.value})||S()])}}});function HR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function UR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?HR(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function WR(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var GR=z({name:`UploadImageCard`,props:UR(UR({},NR),{},{multiple:Boolean,max:Number,disabled:Boolean,showUploadProgress:Boolean,triggerUpload:Function,uploadFiles:Function,cancelUpload:Function,onPreview:Function,showImageFileName:Boolean}),setup:function(e){var t=Wt(e),n=t.displayFiles,r=t.classPrefix,i=t.multiple,a=t.max,o=U(function(){return e.locale}),s=Tm({AddIcon:Th,BrowseIcon:zh,DeleteIcon:Vg,ErrorCircleFilledIcon:Zg}),c=s.BrowseIcon,l=s.DeleteIcon,u=s.AddIcon,d=s.ErrorCircleFilledIcon,f=pm(),p=U(function(){var e;return i.value?!a.value||n.value.length<a.value:!((e=n.value)!=null&&e[0])}),m=function(t,i){return V(`div`,{class:`${r.value}-upload__card-content ${r.value}-upload__card-box`},[V(KA,{class:`${r.value}-upload__card-image`,src:t.url||t.raw,error:``,fit:`contain`},null),V(`div`,{class:`${r.value}-upload__card-mask`},[V(`span`,{class:`${r.value}-upload__card-mask-item`,onClick:function(e){return e.stopPropagation()}},[V(Vj,H({images:n.value.map(function(e){return e.url||e.raw}),defaultIndex:i,trigger:function(n,r){var a=r.open;return V(c,{onClick:function(n){var r,o=n.e;(r=e.onPreview)==null||r.call(e,{file:t,index:i,e:o}),a()}},null)}},e.imageViewerProps),null)]),!e.disabled&&V(bi,null,[V(`span`,{class:`${r.value}-upload__card-mask-item-divider`},null),V(`span`,{class:`${r.value}-upload__card-mask-item`,onClick:function(e){return e.stopPropagation()}},[V(l,{onClick:function(n){var r,a=n.e;return e==null||(r=e.onRemove)==null?void 0:r.call(e,{e:a,file:t,index:i})}},null)])])])])},h=function(t,n){var i;return V(`div`,{class:[n,`${r.value}-upload__${e.theme}-${t.status}`]},[V(uh,{loading:!0,size:`medium`},null),V(`p`,null,[(i=o.value)==null||(i=i.progress)==null?void 0:i.uploadingText,e.showUploadProgress?` ${t.percent}%`:``])])},g=function(t,n,i){var a;return V(`div`,{class:i},[V(d,null,null),V(`p`,null,[t.response?.error||((a=o.value)==null||(a=a.progress)==null?void 0:a.failText)]),V(`div`,{class:`${r.value}-upload__card-mask`},[V(`span`,{class:`${r.value}-upload__card-mask-item`,onClick:function(e){return e.stopPropagation()}},[V(l,{onClick:function(r){var i,a=r.e;return e==null||(i=e.onRemove)==null?void 0:i.call(e,{e:a,file:t,index:n})}},null)])])])};return function(){var t=f(`fileListDisplay`,{params:{triggerUpload:e.triggerUpload,uploadFiles:e.uploadFiles,cancelUpload:e.cancelUpload,onPreview:e.onPreview,onRemove:e.onRemove,toUploadFiles:e.toUploadFiles,sizeOverLimitMessage:e.sizeOverLimitMessage,locale:e.locale,files:n.value}});if(t)return t;var i=`${r.value}-upload__card-item ${r.value}-is-background`;return V(`div`,null,[V(`ul`,{class:`${r.value}-upload__card`},[n.value?.map(function(t,n){var a=`${r.value}-upload__card-name`,o=`${r.value}-upload__card-container ${r.value}-upload__card-box`,s=e.abridgeName?Kp.apply(void 0,[t.name].concat(W(e.abridgeName))):t.name;return V(`li`,{class:i,key:n},[t.status===`progress`&&h(t,o),t.status===`fail`&&g(t,n,o),![`progress`,`fail`].includes(t.status)&&m(t,n),!!(s&&e.showImageFileName)&&(t.url?V(Kv,{href:t.url,class:a,target:`_blank`,hover:`color`,size:`small`,disabled:!1},WR(s)?s:{default:function(){return[s]}}):V(`span`,{class:a},[s]))])}),p.value&&function(){var t;return f(`trigger`,{params:{triggerUpload:e.triggerUpload}})||V(`li`,{class:i,onClick:e.triggerUpload},[V(`div`,{class:[`${r.value}-upload__image-add`,`${r.value}-upload__card-container`,`${r.value}-upload__card-box`,G({},`${r.value}-is-disabled`,e.disabled)]},[V(u,null,null),V(`p`,{class:[`${r.value}-size-s`,`${r.value}-upload__add-text`]},[(t=o.value)==null||(t=t.triggerUploadText)==null?void 0:t.image])])])}()])])}}});function KR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?KR(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function JR(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!Mi(e)}var YR=z({name:`UploadMultipleFlowList`,props:qR(qR({},NR),{},{showThumbnail:Boolean,uploadFiles:Function,cancelUpload:Function,dragEvents:Object,disabled:Boolean,isBatchUpload:Boolean,draggable:Boolean,showImageFileName:Boolean,uploadButton:Object,cancelUploadButton:Object,onPreview:Function}),setup:function(e,t){var n=t.slots,r=Wt(e),i=r.uploading,a=r.disabled,o=r.displayFiles,s=r.classPrefix,c=r.accept,l=U(function(){return`${s.value}-upload`}),u=U(function(){return e.locale}),d=pm(),f=Tm({BrowseIcon:zh,DeleteIcon:Vg,CheckCircleFilledIcon:Qh,ErrorCircleFilledIcon:Zg,TimeFilledIcon:wv,FileExcelIcon:Oce,FilePdfIcon:Ace,FileWordIcon:Pce,FilePowerpointIcon:Mce,FileIcon:Ice,VideoIcon:Ale}),p=f.BrowseIcon,m=f.DeleteIcon,h=f.CheckCircleFilledIcon,g=f.ErrorCircleFilledIcon,_=f.TimeFilledIcon,v=f.FileExcelIcon,y=f.FilePdfIcon,b=f.FileWordIcon,x=f.FilePowerpointIcon,S=f.FileIcon,C=f.VideoIcon,w=RR(e.dragEvents,c),T=I([]),E=I(0),D=U(function(){return i.value?`${u.value.progress.uploadingText}`:u.value.triggerUploadText.normal}),O=U(function(){return e.draggable===void 0||e.draggable?{onDrop:w.handleDrop,onDragenter:w.handleDragenter,onDragover:w.handleDragover,onDragleave:w.handleDragleave}:{}}),k=function(){var e={success:V(h,null,null),fail:V(g,null,null),progress:V(uh,null,null),waiting:V(_,null,null)},t=u.value.progress;return{iconMap:e,textMap:{success:t?.successText,fail:t?.failText,progress:t?.uploadingText,waiting:t?.waitingText}}},A=function(){return V(`div`,{class:`${l.value}__flow-empty`},[w.dragActive.value?u.value.dragger.dragDropText:u.value.dragger.clickAndDragText])},j=function(t,n){var r=k(),i=r.iconMap,c=r.textMap,u=e.abridgeName&&t.name?Kp.apply(void 0,[t.name].concat(W(e.abridgeName))):t.name;return V(`li`,{class:`${l.value}__card-item`,key:t.name+n+t.percent+t.status||`0`},[V(`div`,{class:[`${l.value}__card-content`,G({},`${s.value}-is-bordered`,t.status!==`waiting`)]},[t.status===`progress`&&V(`div`,{class:`${l.value}__card-status-wrap ${l.value}__${e.theme}-progress`},[i[t.status],V(`p`,null,[c[t.status],e.showUploadProgress&&` ${t.percent}%`])]),t.status===`fail`&&V(`div`,{class:`${l.value}__card-status-wrap ${l.value}__${e.theme}-fail`},[i[t.status],V(`p`,null,[t.response?.error||c[t.status]])]),([`waiting`,`success`].includes(t.status)||!t.status&&t.url)&&V(KA,{class:`${l.value}__card-image`,src:t.url||t.raw,error:``,loading:``,fit:`contain`},null),V(`div`,{class:`${l.value}__card-mask`},[(t.url||t.raw)&&![`progress`,`fail`].includes(t.status)&&V(`span`,{class:`${l.value}__card-mask-item`},[V(p,{onClick:function(r){var i,a=r.e;E.value=n,T.value=o.value,(i=e.onPreview)==null||i.call(e,{file:t,index:n,e:a})}},null),V(`span`,{class:`${l.value}__card-mask-item-divider`},null)]),!a.value&&V(`span`,{class:`${l.value}__card-mask-item ${l.value}__delete`,onClick:function(r){return e.onRemove({e:r,index:n,file:t})}},[V(m,null,null)])])]),e.showImageFileName&&V(`p`,{class:[`${l.value}__card-name`,`${l.value}__flow-status`]},[[`success`,`waiting`].includes(t.status)&&i[t.status],u])])},M=function(t){var n,r=k(),i=r.iconMap,a=r.textMap;return V(`div`,{class:`${l.value}__flow-status`},[i[t.status],V(`span`,{class:`${l.value}__${e.theme}-${t.status}`},[(n=t.response)!=null&&n.error&&t.response?.error||a[t.status],e.showUploadProgress&&t.status===`progress`?` ${t.percent||0}%`:``])])},ee=function(t,n){var r;return V(`td`,null,[V(mh,{theme:`primary`,variant:`text`,content:(r=u.value)==null||(r=r.triggerUploadText)==null?void 0:r.delete,class:`${l.value}__delete`,onClick:function(r){return e.onRemove({e:r,index:n,file:t})}},null)])},N=function(t){var n;return t===0?V(`td`,{rowspan:o.value.length,class:`${l.value}__flow-table__batch-row`},[V(mh,{theme:`primary`,variant:`text`,content:(n=u.value)==null||(n=n.triggerUploadText)==null?void 0:n.delete,class:`${l.value}__delete`,onClick:function(t){return e.onRemove({e:t,index:-1,file:void 0})}},null)]):null},P=function(e){return Moe.test(e)?V(y,null,null):Noe.test(e)?V(v,null,null):Poe.test(e)?V(b,null,null):Foe.test(e)?V(x,null,null):Hp.test(e)?V(C,null,null):V(S,null,null)},F=function(t){if(!t||!t.raw&&t.url)return null;var n=t.raw.type,r=`${l.value}__file-thumbnail`;return Aoe.test(n)?V(`div`,{onClick:function(n){var r;n.preventDefault(),T.value=[t],E.value=0,(r=e.onPreview)==null||r.call(e,{file:t,index:0,e:n})}},[V(KA,{class:r,src:t.url||t.raw,fit:`scale-down`,error:``,loading:``},null)]):V(`div`,{class:r},[P(n)])},te=function(){var t=d(`fileListDisplay`,{params:{cancelUpload:e.cancelUpload,uploadFiles:e.uploadFiles,onPreview:e.onPreview,onRemove:e.onRemove,toUploadFiles:e.toUploadFiles,sizeOverLimitMessage:e.sizeOverLimitMessage,locale:e.locale,files:e.displayFiles,dragEvents:O.value}});return t||e.fileListDisplay?t:V(`table`,H({class:`${l.value}__flow-table`},O.value),[V(`thead`,null,[V(`tr`,null,[V(`th`,null,[u.value.file?.fileNameText]),V(`th`,{style:{minWidth:`120px`}},[u.value.file?.fileSizeText]),V(`th`,{style:{minWidth:`120px`}},[u.value.file?.fileStatusText]),a.value?null:V(`th`,null,[u.value.file?.fileOperationText])])]),V(`tbody`,null,[!o.value.length&&V(`tr`,null,[V(`td`,{colspan:4},[A()])]),o.value.map(function(t,n){var r,i=e.isBatchUpload&&o.value.every(function(e){return e.status===`success`||!e.status})?N(n):ee(t,n),s=(r=e.abridgeName)!=null&&r.length?Kp.apply(void 0,[t.name].concat(W(e.abridgeName))):t.name,c=e.showThumbnail?V(`div`,{class:`${l.value}__file-info`},[F(t),s]):s,u=t.url?V(Kv,{href:t.url,target:`_blank`,hover:`color`,disabled:!1},JR(c)?c:{default:function(){return[c]}}):c;return V(`tr`,{key:t.name+n+t.size},[V(`td`,{class:`${l.value}__file-name`,key:t.name+t.url},[u]),V(`td`,null,[Ioe(t.size)]),V(`td`,null,[M(t)]),a.value?null:i])})])])},ne=function(){var t=d(`fileListDisplay`,{params:{cancelUpload:e.cancelUpload,uploadFiles:e.uploadFiles,onRemove:e.onRemove,onPreview:e.onPreview,toUploadFiles:e.toUploadFiles,sizeOverLimitMessage:e.sizeOverLimitMessage,locale:e.locale,files:e.displayFiles,dragEvents:O.value}});return t||e.fileListDisplay?t:V(`ul`,{class:`${l.value}__card clearfix`},[e.displayFiles.map(function(e,t){return j(e,t)})])};return function(){var t=`${l.value}__flow-card-area`,r=a.value||!i.value,s=n.uploadButton||q(e.uploadButton),c=!!(a.value||i.value||!o.value.length),f=n.cancelUploadButton||q(e.cancelUploadButton),p=Jm(e.cancelUploadButton,{onClick:function(t){return e.cancelUpload?.call(e,{e:t})}}),m=Jm(e.uploadButton,{onClick:function(){return e.uploadFiles?.call(e)}});return V(`div`,{class:`${l.value}__flow ${l.value}__flow-${e.theme}`},[V(`div`,{class:`${l.value}__flow-op`},[n.default?.call(n),e.placeholder&&V(`small`,{class:`${l.value}__flow-placeholder ${l.value}__placeholder`},[e.placeholder])]),e.theme===`image-flow`&&V(`div`,H({class:t},O.value),[o.value.length?ne():A()]),e.theme===`file-flow`&&(o.value.length?te():V(`div`,H({class:t},O.value),[A()])),!e.autoUpload&&(e.uploadButton!==null||e.cancelUploadButton!==null)&&V(`div`,{class:`${l.value}__flow-bottom`},[e.cancelUploadButton!==null&&(s?d(`cancelUploadButton`,{params:{disabled:r,cancelUploadText:u.value?.cancelUploadText,cancelUpload:e.cancelUpload}}):V(mh,H({theme:`default`,disabled:r,content:u.value?.cancelUploadText,class:`${l.value}__cancel`},p.value),null)),e.uploadButton!==null&&(f?d(`uploadButton`,{params:{disabled:c,uploading:i.value,uploadText:D.value,uploadFiles:e.uploadFiles}}):V(mh,H({disabled:c,theme:`primary`,loading:i.value,class:`${l.value}__continue`,content:D.value},m.value),null))]),V(Vj,H({images:T.value.map(function(e){return e.url||e.raw}),visible:!!T.value.length,onClose:function(){T.value=[]},index:E.value,onIndexChange:function(e){return E.value=e}},e.imageViewerProps),null)])}}});function XR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ZR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?XR(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var QR=z({name:`UploadCustomFile`,props:ZR(ZR({},NR),{},{dragEvents:Object,draggable:Boolean,dragContent:Function,trigger:Function,triggerUpload:Function,childrenNode:[String,Function]}),setup:function(e,t){var n=t.slots,r=Wt(e),i=r.classPrefix,a=r.displayFiles,o=r.accept,s=RR(e.dragEvents,o),c=s.dragActive,l=hm(),u=function(){var t={dragActive:c.value||!1,files:a.value};return V(`div`,{class:`${i.value}-upload__dragger ${i.value}-upload__dragger-center`,onDrop:s.handleDrop,onDragenter:s.handleDragenter,onDragover:s.handleDragover,onDragleave:s.handleDragleave,onClick:e.triggerUpload},[V(`div`,{class:`${i.value}-upload__trigger`},[l(`dragContent`,`trigger`,{params:t})||e.childrenNode?.call(e,t)])])};return function(){return V(bi,null,[e.draggable?u():V(`div`,{class:`${i.value}-upload__trigger`,onClick:e.triggerUpload},[e.childrenNode?.call(e,{files:a.value})||n.default?.call(n)])])}}});function $R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ez(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?$R(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$R(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tz(e){var t=e.method,n=t===void 0?`POST`:t,r=e.action,i=e.withCredentials,a=i!==void 0&&i,o=e.headers,s=o===void 0?{}:o,c=e.data,l=c===void 0?{}:c,u=e.file,d=e.files,f=d===void 0?[]:d,p=e.name,m=p===void 0?`file`:p,h=e.useMockProgress,g=h===void 0||h,_=e.mockProgressDuration,v=_===void 0?300:_,y=e.formatRequest,b=e.onError,x=e.onProgress,S=e.onSuccess,C=f||[],w=0,T=new XMLHttpRequest;a&&(T.withCredentials=!0);var E,D;if(g&&f[0]?.status===`progress`)var O=setTimeout(function(){E=setInterval(function(){w+10<100?(w=Math.max(w+10,w),f[0]&&w!==f[0].percent&&(f[0].percent=w,x({percent:w,file:u||C[0],files:C.map(function(e){return ez(ez({},e),{},{percent:w})}),type:`mock`,XMLHttpRequest:T}))):clearInterval(E)},v),clearTimeout(O)},v);var k={};if(l){var A=q(l)?l(C):l;Object.assign(k,A)}C.forEach(function(e,t){var n=C.length>1?`${m}[${t}]`:m;k[n]=e.raw}),C.length===1?k[m]=C[0].raw:k[m]=C.map(function(e){return e.raw}),k.length=C.length,y&&(k=y(k));var j=new FormData;return Object.keys(k).forEach(function(e){var t=k[e];Array.isArray(t)?t.forEach(function(t){j.append(e,t)}):j.append(e,t)}),T.open(n,r,!0),Object.keys(s).forEach(function(e){T.setRequestHeader(e,s[e])}),T.onerror=function(e){b({event:e,file:u,files:C,XMLHttpRequest:T}),clearInterval(E),clearTimeout(D)},T.ontimeout=function(e){b({event:e,file:u,files:C,XMLHttpRequest:T})},T.upload&&(T.upload.onprogress=function(e){var t=0;if(e.total>0&&(t=Math.round(e.loaded/e.total*100)),w=Math.max(t,w),w!==t&&C[0]?.percent!==w){var n=C.map(function(e){return ez(ez({},e),{},{percent:w})});x({event:e,percent:w,file:u||n[0],files:n,type:`real`,XMLHttpRequest:T})}}),T.onload=function(e){var t={};if(t.XMLHttpRequest=T,T.status<200||T.status>=300)return b({event:e,file:u,files:C,response:t,XMLHttpRequest:T});var n=T.responseText||T.response;try{t=JSON.parse(n)}catch{t=n,Vp.error(`Upload`,`response does not a valid json`)}clearInterval(E),clearTimeout(D),C.forEach(function(e){e.percent=100,e.status=`success`,e.uploadTime=t?.uploadTime||Gp()}),so(t)===`object`&&(t.XMLHttpRequest=T),S({event:e,file:u||C[0],files:W(C),XMLHttpRequest:T,response:t})},T.send(j),T.upload.requestParams=k,T.upload.requestHeaders=s,T}function nz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?nz(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function iz(e,t){var n=t.sizeLimit,r=t.beforeUpload,i=[new Promise(function(t){var r=null;if(n){var i=nf(n)?{size:n,unit:`KB`}:n;Roe(e.size,i.size,i.unit)&&(r=i)}t(r)}),void 0];if(q(r)){var a=r(e);i[1]=a instanceof Promise?a:new Promise(function(e){e(a)})}return new Promise(function(e){Promise.all(i).then(function(t){e(t)})})}function az(e){var t=e.event,n=e.files,r=e.response,i=e.XMLHttpRequest,a=e.formatResponse,o=r;return q(a)&&(o=a(r,{file:n[0],currentFiles:n})),n.forEach(function(e){e.status=`fail`,e.response=o}),{response:o,event:t,files:n,XMLHttpRequest:i}}function oz(e){var t=e.event,n=e.files,r=e.response,i=e.XMLHttpRequest;n?.length<=0&&Vp.error(`Upload`,`Empty File in Success Callback`),n.forEach(function(e){var t;e.percent=100,e.status=`success`,(t=e.response)==null||delete t.error});var a=r;return n[0].url=a.url||n[0].url,{response:a,event:t,files:n,XMLHttpRequest:i}}function sz(e){return e?e.status?[`success`,`fail`].includes(e.status)?(e.status===`success`&&(!e.response||!e.response.url&&!e.response.files)&&Vp.warn(`Upload`,"`requestMethodResponse.response.url` or `requestMethodResponse.response.files` is required if `status` is `success`"),!0):(Vp.error(`Upload`,"`requestMethodResponse.status` must be `success` or `fail`, examples `{ status: 'success', response: { url: '' } }`"),!1):(Vp.error(`Upload`,"`requestMethodResponse.status` is missing, which value only can be `success` or `fail`"),!1):(Vp.error(`Upload`,"`requestMethodResponse` is required."),!1)}function cz(e){var t=e.action,n=e.toUploadFiles,r=e.requestMethod;return new Promise(function(i){if(!t&&!r){Vp.error(`Upload`,`one of action and requestMethod must be exist.`),i({});return}if(!n||!n.length){Vp.warn(`Upload`,`No files need to be uploaded`),i({});return}if(n.forEach(function(e){e.status=`progress`}),r)r(e.multiple?n:n[0]).then(function(t){if(!sz(t)){i({});return}var r=t.response||{};q(e.formatResponse)&&(r=e.formatResponse(r,{file:n[0],currentFiles:n})),t.status===`fail`&&(r.error=t.error||r.error);var a=[];t.status===`success`&&r.files?a=r.files.map(function(e){return rz(rz(rz({},n.find(function(t){return e.name&&t.name===e.name||e.raw&&t.raw===e.raw})),e),{},{status:t.status,response:r})}):(n.forEach(function(e){e.status=t.status,e.response=r,e.url=r.url,e.percent=t.status===`success`?100:0,e.uploadTime=r?.uploadTime||Gp()}),a=n);var o={response:r,file:a[0],files:a};if(t.status===`success`){var s;(s=e.onResponseSuccess)==null||s.call(e,o)}else if(t.status===`fail`){var c;(c=e.onResponseError)==null||c.call(e,o)}i({status:t.status,data:o})});else{var a,o=tz({action:e.action,files:e.toUploadFiles,useMockProgress:e.useMockProgress,mockProgressDuration:e.mockProgressDuration,onError:function(t){var n,r=az(rz(rz({},t),{},{formatResponse:e.formatResponse}));(n=e.onResponseError)==null||n.call(e,r),i({status:`fail`,data:r})},onProgress:e.onResponseProgress,onSuccess:function(t){var n=e.formatResponse,r=t.response;if(q(n)&&(r=n(t.response,{file:t.file,currentFiles:t.files})),r.error){var a,o=az(rz(rz({},t),{},{response:r}));(a=e.onResponseError)==null||a.call(e,o),i({status:`fail`,data:o})}else{var s;t.file.response=r,t.files[0].response=r;var c=oz(rz(rz({},t),{},{response:r}));(s=e.onResponseSuccess)==null||s.call(e,c),i({status:`success`,data:c})}},formatRequest:e.formatRequest,data:e.data,name:e.name,headers:e.headers,withCredentials:e.withCredentials,method:e.method});(a=e.setXhrObject)==null||a.call(e,{files:e.toUploadFiles,xhrReq:o})}})}function lz(e,t){for(var n=e.filter(function(e){return e.url}),r=function(){var r=t[i],a=e.findIndex(function(e){return e.raw&&e.raw===r.raw||e.name&&e.name===r.name}),o=a>=0?rz(rz({},e[a]),r):r;n.push(o)},i=0,a=t.length;i<a;i++)r();return n}function uz(e){var t=e.uploadAllFilesInOneRequest,n=e.toUploadFiles,r=e.uploadedFiles,i=e.isBatchUpload,a=n.filter(function(e){return!e.response||e.response&&!e.response.error});return new Promise(function(n){if(t||!e.multiple){cz(e).then(function(t){t.status===`success`&&(t.data.files=i||!e.multiple?t.data.files:lz(r,t.data.files));var a=t.status===`fail`?t.data.files:[];n(rz(rz({},t),{},{failedFiles:a}))});return}var o=a.map(function(t){return cz(rz(rz({},e),{},{toUploadFiles:[t]}))});Promise.all(o).then(function(t){var a=[],o=[];t.forEach(function(e){e.status===`success`?a.push(e.data.files[0]):e.status===`fail`&&o.push(e.data.files[0])});var s=e.autoUpload?r.concat(a):r,c=i||!e.multiple?a:s;n({status:a.length?`success`:`fail`,data:{files:c},failedFiles:o,list:t})})})}function dz(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return e.map(function(e){var i=e;return q(t)&&(i=t(e)),rz({raw:e,lastModified:e.lastModified,name:e.name,size:e.size,type:e.type,percent:r,status:n},i)})}function fz(e){var t=e.files,n=e.uploadValue,r=e.max,i=e.allowUploadDuplicateFile,a=e.capture,o=a===void 0?``:a;return new Promise(function(a){var s=t.filter(function(e){return i||o?!0:!n.find(function(t){return t.name===e.name})}),c=!1;if(s.length<t.length&&(c=!0),!s.length){var l=dz(t,e.format,e.autoUpload?`progress`:`waiting`);a({hasSameNameFile:c,file:l?.[0],files:l,validateResult:{type:`FILTER_FILE_SAME_NAME`}});return}var u=!1;if(r&&s.length&&!e.isBatchUpload){var d=s.length;s=s.slice(0,r-n.length),d+n.length>r&&(u=!0)}var f=dz(s,e.format,e.autoUpload?`progress`:`waiting`),p;if(e.beforeAllFilesUpload){var m=e.beforeAllFilesUpload?.call(e,f);p=m instanceof Promise?m:new Promise(function(e){e(m)})}var h=f.map(function(t){return new Promise(function(n){iz(t,{beforeUpload:e.beforeUpload,sizeLimit:e.sizeLimit}).then(function(e){var r=Y(e,2),i=r[0],a=r[1];i?n({file:t,validateResult:{type:`FILE_OVER_SIZE_LIMIT`,extra:i}}):a===!1&&n({file:t,validateResult:{type:`CUSTOM_BEFORE_UPLOAD`}}),n({file:t})})})});Promise.all([p].concat(h)).then(function(e){var t=yF(e),n=t[0],r=t.slice(1);a(n===!1?{lengthOverLimit:u,hasSameNameFile:c,validateResult:{type:`BEFORE_ALL_FILES_UPLOAD`},files:f}:{lengthOverLimit:u,hasSameNameFile:c,fileValidateList:r,files:f})})})}function pz(e,t){var n=[],r=[],i=[];return e.forEach(function(e){if(e.validateResult?.type===`CUSTOM_BEFORE_UPLOAD`){r.push(e.file);return}if(e.validateResult?.type===`FILE_OVER_SIZE_LIMIT`){e.file.response||(e.file.response={}),e.file.response.error=e.file.response.error||t(e.validateResult.extra),n.push(e);return}i.push(e.file)}),{sizeLimitErrors:n,beforeUploadErrorFiles:r,toFiles:i}}function mz(e){return e.isBatchUpload&&e.status||e.status===`fail`?`reupload`:e.status===`progress`?`uploading`:e.status===`success`||!e.autoUpload&&e.status===`waiting`?e.multiple?`continueUpload`:`reupload`:`fileInput`}function hz(e){var t=e.multiple,n=e.uploadValue,r=e.toUploadFiles,i=e.autoUpload,a=i?r:r.filter(function(e){return e.status!==`success`});return t&&!e.isBatchUpload?i?(a.length?n.concat(a):n)||[]:n:(a.length?a:n)||[]}function gz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?gz(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vz(e){var t=I(),n=Wt(e),r=n.disabled,i=n.autoUpload,a=n.isBatchUpload,o=n.multiple,s=n.files,c=n.modelValue,l=n.defaultFiles,u=Rp(`upload`),d=u.globalConfig,f=u.t,p=u.classPrefix,m=Y(Rm(s,c,l.value,e.onChange,`files`),2),h=m[0],g=m[1],_=U(function(){return Array.isArray(h.value)?h.value:[]}),v=I([]),y=I([]),b=I(``),x=U(function(){return mf({},d.value,e.locale)}),S=`${p.value}-upload__tips ${p.value}-size-s`,C=[S].concat(`${p.value}-upload__tips-error`),w=`${p.value}-upload__placeholder`,T=U(function(){var e,t=mz({isBatchUpload:a.value,multiple:o.value,status:(e=_.value)==null||(e=e[0])==null?void 0:e.status,autoUpload:i.value});return x.value.triggerUploadText[t]}),E=I(!1),D=U(function(){return hz({multiple:e.multiple,toUploadFiles:y.value,uploadValue:_.value,autoUpload:i.value,isBatchUpload:a.value})}),O=function(e){var t=e.file,n=e.percent,r=i.value?y:h,a=r.value.findIndex(function(e){return t.raw===e.raw});r.value[a]=_z(_z({},r.value[a]),{},{percent:n})},k=function(){e.autoUpload&&(y.value=W(y.value))},A=function(t){var n;if(!(!t||!t.files||!t.files[0])){var r=t.response,i=t.event,a=t.files;k(),(n=e.onOneFileFail)==null||n.call(e,{e:i,file:a?.[0],currentFiles:a,failedFiles:a,response:r}),(!e.multiple||e.isBatchUpload)&&g([],{trigger:`progress-fail`,e:t.event,file:t.files[0]})}},j=function(t){var n;k(),(n=e.onProgress)==null||n.call(e,{e:t.event,file:t.file,currentFiles:t.files,percent:t.percent,type:t.type,XMLHttpRequest:t.XMLHttpRequest})},M=function(t){if(e.multiple&&!e.uploadAllFilesInOneRequest){var n;k(),(n=e.onOneFileSuccess)==null||n.call(e,{e:t.event,file:t.files[0],response:t.response})}};function ee(e){var t=e;return t.message?f(t.message,{sizeLimit:t.size}):`${f(x.value.sizeLimitMessage,{sizeLimit:t.size})} ${t.unit}`}var N=function(t){var n=e.multiple&&!a.value?_.value.concat(t):t;n.length&&(g(n,{trigger:`add`,index:_.value.length,file:t[0],files:t}),y.value=[])},P=function(n){var o;if(!r.value){var s={currentSelectedFiles:dz(W(n),e.format)};(o=e.onSelectChange)==null||o.call(e,W(n),s),fz({uploadValue:_.value,files:W(n),allowUploadDuplicateFile:e.allowUploadDuplicateFile,max:e.multiple?e.max:0,sizeLimit:e.sizeLimit,isBatchUpload:a.value,autoUpload:i.value,format:e.format,beforeUpload:e.beforeUpload,beforeAllFilesUpload:e.beforeAllFilesUpload}).then(function(t){if(t.validateResult?.type===`BEFORE_ALL_FILES_UPLOAD`){var n,r={type:`BEFORE_ALL_FILES_UPLOAD`,files:t.files};(n=e.onValidate)==null||n.call(e,r);return}if(t.lengthOverLimit){var a,o={type:`FILES_OVER_LENGTH_LIMIT`,files:t.files};if((a=e.onValidate)==null||a.call(e,o),!t.files.length)return}if(t.hasSameNameFile){var s,c={type:`FILTER_FILE_SAME_NAME`,files:t.files};(s=e.onValidate)==null||s.call(e,c)}if(t.fileValidateList instanceof Array){var l,u=pz(t.fileValidateList,ee),d=u.sizeLimitErrors,f=u.beforeUploadErrorFiles,p=u.toFiles,m=i.value?p:y.value.concat(p);if(y.value=m,(l=e.onWaitingUploadFilesChange)==null||l.call(e,{files:m,trigger:`validate`}),d[0]){var h;b.value=d[0].file.response.error,(h=e.onValidate)==null||h.call(e,{type:`FILE_OVER_SIZE_LIMIT`,files:d.map(function(e){return e.file})})}else if(b.value=``,f.length){var g,_={type:`CUSTOM_BEFORE_UPLOAD`,files:f};(g=e.onValidate)==null||g.call(e,_)}i.value?re(m):N(m)}}),t.value.value=null}},F=function(e){var t=qp(e.target.files);P?.(t)};function te(e){P?.(e)}function ne(e){P?.(W(e.clipboardData.files))}function re(t){var n=_.value.filter(function(e){return e.status!==`success`}),r=i.value?t||y.value:n;!r||!r.length||(E.value=!0,v.value=[],uz({action:e.action,headers:e.headers,method:e.method,name:e.name,withCredentials:e.withCredentials,uploadedFiles:_.value,toUploadFiles:r,multiple:e.multiple,isBatchUpload:a.value,autoUpload:e.autoUpload,uploadAllFilesInOneRequest:e.uploadAllFilesInOneRequest,useMockProgress:e.useMockProgress,data:e.data,mockProgressDuration:e.mockProgressDuration,requestMethod:e.requestMethod,formatRequest:e.formatRequest,formatResponse:e.formatResponse,onResponseProgress:j,onResponseSuccess:M,onResponseError:A,setXhrObject:function(e){var t;(t=e.files[0])!=null&&t.raw&&v.value.find(function(t){return t.files[0]?.raw===e.files[0].raw})||(v.value=v.value.concat(e))}}).then(function(t){var n=t.status,a=t.data,o=t.list,s=t.failedFiles;if(E.value=!1,n===`success`){var c;g(W(a.files),{trigger:`add`,file:a.files[0]}),v.value=[],(c=e.onSuccess)==null||c.call(e,{fileList:a.files,currentFiles:r,file:r[0],results:o?.map(function(e){return e.data}),response:a.response||o.map(function(e){return e.data.response}),XMLHttpRequest:a.XMLHttpRequest})}else if(s!=null&&s[0]){var l;(l=e.onFail)==null||l.call(e,{e:a.event,file:s[0],failedFiles:s,currentFiles:r,response:a.response,XMLHttpRequest:a.XMLHttpRequest})}if(i.value){var u;y.value=s,(u=e.onWaitingUploadFilesChange)==null||u.call(e,{files:s,trigger:`uploaded`})}}))}function ie(t){var n,r,i;b.value=``,(n=(r=t.e).stopPropagation)==null||n.call(r);var a={e:t.e,trigger:`remove`,index:t.index,file:t.file};if(e.isBatchUpload||!e.multiple){var o;y.value=[],(o=e.onWaitingUploadFilesChange)==null||o.call(e,{files:[],trigger:`remove`}),g([],a)}else if(!e.autoUpload){var s=W(_.value);s.splice(t.index,1),g(s,a)}else if(t.index<_.value.length){var c=W(_.value);c.splice(t.index,1),g(c,a)}else{var l;y.value.splice(t.index-_.value.length,1),y.value=W(y.value),(l=e.onWaitingUploadFilesChange)==null||l.call(e,{files:W(y.value),trigger:`remove`})}(i=e.onRemove)==null||i.call(e,t)}return{t:f,locale:x,classPrefix:p,triggerUploadText:T,toUploadFiles:y,uploadValue:_,displayFiles:D,sizeOverLimitMessage:b,uploading:E,tipsClasses:S,errorClasses:C,placeholderClass:w,inputRef:t,disabled:r,xhrReq:v,uploadFilePercent:O,uploadFiles:re,onFileChange:P,onNormalFileChange:F,onDragFileChange:te,onPasteFileChange:ne,onInnerRemove:ie,triggerUpload:function(e){var n;r.value||!t.value||(e==null||(n=e.stopPropagation)==null||n.call(e),t.value.click())},cancelUpload:function(t){var n,r;(n=v.value)==null||n.forEach(function(e){var t;(t=e.xhrReq)==null||t.abort()}),E.value=!1,i.value?y.value=[]:g(_.value.map(function(e){return e.status===`success`?e:_z(_z({},e),{},{status:`waiting`})}),{trigger:`abort`}),t!=null&&t.file&&!i.value&&ie?.({file:t.file,e:t.e,index:0}),(r=e.onCancelUpload)==null||r.call(e)}}}function yz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yz(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var xz=X(z({name:`TUpload`,props:MR,setup:function(e,t){var n=t.slots,r=t.expose,i=hm(),a=pm(),o=vz(e),s=o.locale,c=o.classPrefix,l=o.triggerUploadText,u=o.toUploadFiles,d=o.displayFiles,f=o.uploadValue,p=o.sizeOverLimitMessage,m=o.uploading,h=o.tipsClasses,g=o.errorClasses,_=o.placeholderClass,v=o.inputRef,y=o.onInnerRemove,b=o.uploadFiles,x=o.onNormalFileChange,S=o.onDragFileChange,C=o.onPasteFileChange,w=o.triggerUpload,T=o.cancelUpload,E=o.uploadFilePercent,D=Sm(),O=Tm({UploadIcon:Av}).UploadIcon,k=U(function(){return e.triggerButtonProps?.default||e.triggerButtonProps?.content||l.value});r({upload:v.value,uploading:m,triggerUpload:w,uploadFiles:b,cancelUpload:T,uploadFilePercent:E});var A=function(){return i(`default`,`trigger`,{params:{dragActive:!1,files:f.value}})||function(){return e.theme===`file-input`?V(mh,H({disabled:D.value,variant:`outline`},e.triggerButtonProps),{default:function(){return[k.value]}}):V(mh,H({disabled:D.value,variant:`outline`,icon:function(){return V(O,null,null)}},e.triggerButtonProps),{default:function(){return[k.value]}})}()},j=U(function(){return{accept:e.accept,files:f.value,toUploadFiles:u.value,displayFiles:d.value,theme:e.theme,placeholder:e.placeholder,disabled:D.value,tips:e.tips,status:e.status,sizeOverLimitMessage:p.value,uploading:m.value,classPrefix:c.value,tipsClasses:h,errorClasses:g,placeholderClass:_,locale:s.value,autoUpload:e.autoUpload,abridgeName:e.abridgeName,showUploadProgress:e.showUploadProgress,fileListDisplay:e.fileListDisplay,onRemove:y,uploadPastedFiles:e.uploadPastedFiles,onPasteFileChange:C,imageViewerProps:e.imageViewerProps}}),M={onDragFileChange:S,onDragenter:e.onDragenter,onDragleave:e.onDragleave,onDrop:e.onDrop},ee=U(function(){return[`${c.value}-upload`,G({},`${c.value}-upload--theme-${e.theme}`,e.theme===`file-input`)]}),N=function(){return V(LR,H(j.value,{multiple:e.multiple}),{default:function(){return[V(`div`,{class:`${c.value}-upload__trigger`,onClick:w},[A()])]},fileListDisplay:n.fileListDisplay,"file-list-display":n[`file-list-display`]})},P=function(){return V(VR,H(j.value,{dragEvents:M,trigger:e.trigger,cancelUpload:T,triggerUpload:w,uploadFiles:b}),{fileListDisplay:n.fileListDisplay,"file-list-display":n[`file-list-display`]})},F=function(){return V(GR,H(j.value,{multiple:e.multiple,max:e.max,showUploadProgress:e.showUploadProgress,triggerUpload:w,uploadFiles:b,cancelUpload:T,onPreview:e.onPreview,showImageFileName:e.showImageFileName}),{fileListDisplay:n.fileListDisplay,"file-list-display":n[`file-list-display`],trigger:n.trigger})},te=function(){return V(YR,H(j.value,{isBatchUpload:e.isBatchUpload,draggable:e.draggable,dragEvents:M,uploadFiles:b,cancelUpload:T,onPreview:e.onPreview,showImageFileName:e.showImageFileName,showThumbnail:e.showThumbnail,uploadButton:e.uploadButton,cancelUploadButton:e.cancelUploadButton}),{default:function(){return[V(`div`,{class:`${c.value}-upload__trigger`,onClick:w},[!e.draggable&&A()])]},fileListDisplay:n.fileListDisplay,"file-list-display":n[`file-list-display`],uploadButton:n.uploadButton,"upload-button":n[`upload-button`],cancelUploadButton:n.cancelUploadButton,"cancel-upload-button":n[`cancel-upload-button`]})},ne=function(){return V(QR,H(j.value,{draggable:e.draggable,dragContent:e.dragContent,dragEvents:M,triggerUpload:w,trigger:e.trigger,childrenNode:n.default}),{default:function(){return[A()]},dragContent:n.dragContent,"drag-content":n[`drag-content`],trigger:n.trigger})};return function(){return V(`div`,{class:ee.value,onPaste:e.uploadPastedFiles?C:void 0},[V(`input`,H({ref:v,type:`file`,disabled:D.value,onChange:x,multiple:e.multiple,accept:e.accept,hidden:!0},e.inputAttributes?bz({},e.inputAttributes):{}),null),[`file`,`file-input`].includes(e.theme)&&!e.draggable&&N(),[`file`,`image`].includes(e.theme)&&e.draggable&&P(),e.theme===`image`&&!e.draggable&&F(),[`image-flow`,`file-flow`].includes(e.theme)&&te(),e.theme===`custom`&&ne(),!!(e.tips||n.tips)&&V(`small`,{class:[h,G({},`${c.value}-upload__tips-${e.status}`,e.status)]},[a(`tips`)]),p.value&&V(`small`,{class:g},[p.value])])}}})),Sz=X(z({name:`TConfigProvider`,props:{globalConfig:{type:Object}},setup:function(e){koe(e);var t=pm();return function(){return V(bi,null,[t(`default`)])}}})),Cz=Object.freeze({__proto__:null,Button:mh,Icon:Gv,Link:Kv,Row:Yle,Col:Xle,Aside:nue,Layout:rue,Header:iue,Footer:aue,Content:oue,Divider:Zv,Space:ty,Descriptions:fue,DescriptionsItem:pue,Affix:Dy,Anchor:Vx,AnchorItem:Hx,AnchorTarget:ude,Breadcrumb:yde,BreadcrumbItem:bde,Dropdown:wde,DropdownItem:Tde,DropdownMenu:Ede,Menu:Qde,HeadMenu:$de,Submenu:efe,MenuItem:tfe,MenuGroup:nfe,Pagination:Nw,PaginationMini:Pw,Steps:Bw,StepItem:Vw,Tabs:TS,TabPanel:ES,StickyItem:Xw,StickyTool:Zw,BackTop:Qw,AutoComplete:sT,HighlightOption:cT,Cascader:dE,CascaderPanel:fE,Checkbox:nw,CheckboxGroup:rw,DatePicker:Nme,DatePickerPanel:Pme,DateRangePicker:Fme,DateRangePickerPanel:Ime,Form:Qme,FormItem:$me,InputAdornment:Cw,Input:WS,InputGroup:dfe,InputNumber:fC,Radio:XO,RadioGroup:ZO,RadioButton:QO,Select:bw,Option:xw,OptionGroup:Sw,Slider:hhe,SliderButton:ghe,Switch:_he,TagInput:VC,SelectInput:ZC,Textarea:bhe,Transfer:khe,TimePicker:bme,TimeRangePicker:xme,TimePickerPanel:nO,TreeSelect:age,ColorPickerPanel:Uge,ColorPicker:Wge,RangeInput:_me,RangeInputPopup:$D,Avatar:Xge,AvatarGroup:Zge,Badge:Qge,Calendar:p_e,Card:m_e,Comment:__e,Empty:w_e,Image:KA,ImageViewer:Vj,List:sve,ListItem:cve,ListItemMeta:lve,Progress:fve,Skeleton:Qj,Statistic:bve,Swiper:wve,SwiperItem:Tve,BaseTable:aI,PrimaryTable:oI,EnhancedTable:sI,Table:cI,Tag:FC,CheckTag:IC,CheckTagGroup:cpe,Timeline:vI,TimelineItem:yI,Tooltip:Gx,Tree:Wk,Collapse:wI,CollapsePanel:TI,Watermark:FI,Rate:II,Typography:tL,Text:nL,Title:rL,Paragraph:iL,QRCode:NL,Alert:PL,DialogPlugin:Pj,Dialog:Fj,DialogCard:W_e,DrawerPlugin:qL,Drawer:JL,Guide:tR,LoadingPlugin:oh,LoadingDirective:lh,Loading:uh,MessagePlugin:eb,Message:nR,NotifyPlugin:ER,Notification:DR,Popconfirm:jR,Popup:zx,Upload:xz,ConfigProvider:Sz});function wz(e,t){Object.keys(Cz).forEach(function(n){/directive/i.test(n)||(/plugin/i.test(n)?e.use(Cz[n]):e.use(Cz[n],t))})}var Tz={install:wz,version:`1.20.2`},Ez=typeof document<`u`;function Dz(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function Oz(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Dz(e.default)}var kz=Object.assign;function Az(e,t){let n={};for(let r in t){let i=t[r];n[r]=Mz(i)?i.map(e):e(i)}return n}var jz=()=>{},Mz=Array.isArray;function Nz(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var Pz=Symbol(``);function Fz(e,t){return kz(Error(),{type:e,[Pz]:!0},t)}function Iz(e,t){return e instanceof Error&&Pz in e&&(t==null||!!(e.type&t))}var Lz=Symbol(``),Rz=Symbol(``),zz=Symbol(``),Bz=Symbol(``),Vz=Symbol(``);function Hz(){return wn(zz)}function Uz(e){return wn(Bz)}var Wz=/#/g,Gz=/&/g,Kz=/\//g,qz=/=/g,Jz=/\?/g,Yz=/\+/g,Xz=/%5B/g,Zz=/%5D/g,Qz=/%5E/g,$z=/%60/g,eB=/%7B/g,tB=/%7C/g,nB=/%7D/g,rB=/%20/g;function iB(e){return e==null?``:encodeURI(``+e).replace(tB,`|`).replace(Xz,`[`).replace(Zz,`]`)}function aB(e){return iB(e).replace(eB,`{`).replace(nB,`}`).replace(Qz,`^`)}function oB(e){return iB(e).replace(Yz,`%2B`).replace(rB,`+`).replace(Wz,`%23`).replace(Gz,`%26`).replace($z,"`").replace(eB,`{`).replace(nB,`}`).replace(Qz,`^`)}function sB(e){return oB(e).replace(qz,`%3D`)}function cB(e){return iB(e).replace(Wz,`%23`).replace(Jz,`%3F`)}function lB(e){return cB(e).replace(Kz,`%2F`)}function uB(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var dB=/\/$/,fB=e=>e.replace(dB,``);function pB(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=xB(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:uB(o)}}function mB(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function hB(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function gB(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&_B(t.matched[r],n.matched[i])&&vB(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function _B(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function vB(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!yB(e[n],t[n]))return!1;return!0}function yB(e,t){return Mz(e)?bB(e,t):Mz(t)?bB(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function bB(e,t){return Mz(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function xB(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var SB={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function CB(e){if(!e)if(Ez){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),fB(e)}var wB=/^[^#]+#/;function TB(e,t){return e.replace(wB,`#`)+t}function EB(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var DB=()=>({left:window.scrollX,top:window.scrollY});function OB(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=EB(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function kB(e,t){return(history.state?history.state.position-t:-1)+e}var AB=new Map;function jB(e,t){AB.set(e,t)}function MB(e){let t=AB.get(e);return AB.delete(e),t}function NB(e){return typeof e==`string`||e&&typeof e==`object`}function PB(e){return typeof e==`string`||typeof e==`symbol`}function FB(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(Yz,` `),i=r.indexOf(`=`),a=uB(i<0?r:r.slice(0,i)),o=i<0?null:uB(r.slice(i+1));if(a in t){let e=t[a];Mz(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function IB(e){let t=``;for(let n in e){let r=e[n];if(n=sB(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(Mz(r)?r.map(e=>e&&oB(e)):[r&&oB(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function LB(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=Mz(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function RB(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function zB(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(Fz(4,{from:n,to:t})):e instanceof Error?c(e):NB(e)?c(Fz(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function BB(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(Dz(s)){let c=(s.__vccOpts||s)[t];c&&a.push(zB(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=Oz(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&zB(c,n,r,o,e,i)()}))}}return a}function VB(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>_B(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>_B(e,s))||i.push(s))}return[n,r,i]}var HB=()=>location.protocol+`//`+location.host;function UB(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),hB(n,``)}return hB(n,e)+r+i}function WB(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=UB(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(kz({},e.state,{scroll:DB()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function GB(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?DB():null}}function KB(e){let{history:t,location:n}=window,r={value:UB(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:HB()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,kz({},t.state,GB(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=kz({},i.value,t.state,{forward:e,scroll:DB()});a(o.current,o,!0),a(e,kz({},GB(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function qB(e){e=CB(e);let t=KB(e),n=WB(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=kz({location:``,base:e,go:r,createHref:TB.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function JB(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),qB(e)}var YB={type:0,value:``},XB=/[a-zA-Z0-9_]/;function ZB(e){if(!e)return[[]];if(e===`/`)return[[YB]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)switch(c=e[s++],n){case 0:c===`\\`?(r=n,n=4):c===`/`?(l&&d(),o()):c===`:`?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:c===`(`?n=2:XB.test(c)?f():(d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case 2:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var QB=`[^/]+?`,$B={sensitive:!1,strict:!1,start:!0,end:!0},eV=/[.+*?^${}()[\]/\\]/g;function tV(e,t){let n=kz({},$B,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=40+(n.sensitive?.25:0);if(o.type===0)r||(i+=`/`),i+=o.value.replace(eV,`\\$&`),s+=40;else if(o.type===1){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||QB;if(u!==QB){s+=10;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=20,c&&(s+=-8),n&&(s+=-20),u===`.*`&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===0)n+=e.value;else if(e.type===1){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(Mz(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=Mz(c)?c.join(`/`):c;if(!l)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function nV(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function rV(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=nV(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(iV(r))return 1;if(iV(i))return-1}return i.length-r.length}function iV(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var aV={strict:!1,end:!0,sensitive:!1};function oV(e,t,n){let r=kz(tV(ZB(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function sV(e,t){let n=[],r=new Map;t=Nz(aV,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=lV(e);s.aliasOf=r&&r.record;let l=Nz(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(lV(kz({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=oV(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!dV(d)&&o(e.name)),hV(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:jz}function o(e){if(PB(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=pV(e,n);n.splice(t,0,e),e.record.name&&!dV(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw Fz(1,{location:e});s=i.record.name,a=kz(cV(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&cV(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw Fz(1,{location:e,currentLocation:t});s=i.record.name,a=kz({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:fV(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function cV(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function lV(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:uV(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function uV(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function dV(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function fV(e){return e.reduce((e,t)=>kz(e,t.meta),{})}function pV(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;rV(e,t[i])<0?r=i:n=i+1}let i=mV(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function mV(e){let t=e;for(;t=t.parent;)if(hV(t)&&rV(e,t)===0)return t}function hV({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function gV(e){let t=wn(zz),n=wn(Bz),r=U(()=>{let n=Ht(e.to);return t.resolve(n)}),i=U(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(_B.bind(null,i));if(o>-1)return o;let s=xV(e[t-2]);return t>1&&xV(i)===s&&a[a.length-1].path!==s?a.findIndex(_B.bind(null,e[t-2])):o}),a=U(()=>i.value>-1&&bV(n.params,r.value.params)),o=U(()=>i.value>-1&&i.value===n.matched.length-1&&vB(n.params,r.value.params));function s(n={}){if(yV(n)){let n=t[Ht(e.replace)?`replace`:`push`](Ht(e.to)).catch(jz);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:U(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function _V(e){return e.length===1?e[0]:e}var vV=z({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:gV,setup(e,{slots:t}){let n=Dt(gV(e)),{options:r}=wn(zz),i=U(()=>({[SV(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[SV(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&_V(t.default(n));return e.custom?r:sa(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function yV(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function bV(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!Mz(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function xV(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var SV=(e,t,n)=>e??t??n,CV=z({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=wn(Vz),i=U(()=>e.route||r.value),a=wn(Rz,0),o=U(()=>{let e=Ht(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=U(()=>i.value.matched[o.value]);Cn(Rz,U(()=>o.value+1)),Cn(Lz,s),Cn(Vz,i);let c=I();return R(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!_B(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return wV(n.default,{Component:l,route:r});let u=o.props[a],d=sa(l,kz({},u?u===!0?r.params:typeof u==`function`?u(r):u:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return wV(n.default,{Component:d,route:r})||d}}});function wV(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var TV=CV;function EV(e){let t=sV(e.routes,e),n=e.parseQuery||FB,r=e.stringifyQuery||IB,i=e.history,a=RB(),o=RB(),s=RB(),c=Bt(SB),l=SB;Ez&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=Az.bind(null,e=>``+e),d=Az.bind(null,lB),f=Az.bind(null,uB);function p(e,n){let r,i;return PB(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=kz({},a||c.value),typeof e==`string`){let r=pB(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return kz(r,o,{params:f(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=kz({},e,{path:pB(n,e.path,a.path).path});else{let t=kz({},e.params);for(let e in t)t[e]??delete t[e];o=kz({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=mB(r,kz({},e,{hash:aB(l),path:s.path})),m=i.createHref(p);return kz({fullPath:p,hash:l,query:r===IB?LB(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?pB(n,e,c.value.path):kz({},e)}function y(e,t){if(l!==e)return Fz(8,{from:t,to:e})}function b(e){return C(e)}function x(e){return b(kz(v(e),{replace:!0}))}function S(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),kz({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=S(n,i);if(u)return C(kz(v(u),{state:typeof u==`object`?kz({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&gB(r,i,n)&&(f=Fz(16,{to:d,from:i}),te(i,i,!0,!1)),(f?Promise.resolve(f):E(d,i)).catch(e=>Iz(e)?Iz(e,2)?e:F(e):N(e,d,i)).then(e=>{if(e){if(Iz(e,2))return C(kz({replace:s},v(e.to),{state:typeof e.to==`object`?kz({},a,e.to.state):a,force:o}),t||d)}else e=O(d,i,!0,s,a);return D(d,i,e),e})}function w(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function T(e){let t=ie.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function E(e,t){let n,[r,i,s]=VB(e,t);n=BB(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(zB(r,e,t))});let c=w.bind(null,e,t);return n.push(c),oe(n).then(()=>{n=[];for(let r of a.list())n.push(zB(r,e,t));return n.push(c),oe(n)}).then(()=>{n=BB(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(zB(r,e,t))});return n.push(c),oe(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter)if(Mz(r.beforeEnter))for(let i of r.beforeEnter)n.push(zB(i,e,t));else n.push(zB(r.beforeEnter,e,t));return n.push(c),oe(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=BB(s,`beforeRouteEnter`,e,t,T),n.push(c),oe(n))).then(()=>{n=[];for(let r of o.list())n.push(zB(r,e,t));return n.push(c),oe(n)}).catch(e=>Iz(e,8)?e:Promise.reject(e))}function D(e,t,n){s.list().forEach(r=>T(()=>r(e,t,n)))}function O(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===SB,l=Ez?history.state:{};n&&(r||s?i.replace(e.fullPath,kz({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,te(e,t,n,s),F()}let k;function A(){k||=i.listen((e,t,n)=>{if(!ae.listening)return;let r=_(e),a=S(r,ae.currentRoute.value);if(a){C(kz(a,{replace:!0,force:!0}),r).catch(jz);return}l=r;let o=c.value;Ez&&jB(kB(o.fullPath,n.delta),DB()),E(r,o).catch(e=>Iz(e,12)?e:Iz(e,2)?(C(kz(v(e.to),{force:!0}),r).then(e=>{Iz(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(jz),Promise.reject()):(n.delta&&i.go(-n.delta,!1),N(e,r,o))).then(e=>{e||=O(r,o,!1),e&&(n.delta&&!Iz(e,8)?i.go(-n.delta,!1):n.type===`pop`&&Iz(e,20)&&i.go(-1,!1)),D(r,o,e)}).catch(jz)})}let j=RB(),M=RB(),ee;function N(e,t,n){F(e);let r=M.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function P(){return ee&&c.value!==SB?Promise.resolve():new Promise((e,t)=>{j.add([e,t])})}function F(e){return ee||(ee=!e,A(),j.list().forEach(([t,n])=>e?n(e):t()),j.reset()),e}function te(t,n,r,i){let{scrollBehavior:a}=e;if(!Ez||!a)return Promise.resolve();let o=!r&&MB(kB(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return dn().then(()=>a(t,n,o)).then(e=>e&&OB(e)).catch(e=>N(e,t,n))}let ne=e=>i.go(e),re,ie=new Set,ae={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:ne,back:()=>ne(-1),forward:()=>ne(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:M.add,isReady:P,install(e){e.component(`RouterLink`,vV),e.component(`RouterView`,TV),e.config.globalProperties.$router=ae,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Ht(c)}),Ez&&!re&&c.value===SB&&(re=!0,b(i.location).catch(e=>{}));let t={};for(let e in SB)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(zz,ae),e.provide(Bz,Ot(t)),e.provide(Vz,c);let n=e.unmount;ie.add(e),e.unmount=function(){ie.delete(e),ie.size<1&&(l=SB,k&&k(),k=null,c.value=SB,re=!1,ee=!1),n()}}};function oe(e){return e.reduce((e,t)=>e.then(()=>T(t)),Promise.resolve())}return ae}var DV=Dt({ready:!1,user:null,csrf:``,pendingToken:``}),OV=Dt({subscriptionEnabled:!1,loaded:!1,loading:!1}),kV=()=>(document.querySelector(`meta[name="plugin-base-path"]`)?.getAttribute(`content`)||``).replace(/\/$/,``),AV=class extends Error{status;constructor(e,t=0){super(e),this.name=`ApiError`,this.status=t}};async function jV(e,t={}){let n=new Headers(t.headers||{});n.set(`Accept`,`application/json`);let r=(t.method||`GET`).toUpperCase();t.body&&!(t.body instanceof FormData)&&n.set(`Content-Type`,`application/json`),DV.csrf&&r!==`GET`&&n.set(`X-CSRF-Token`,DV.csrf);let i=await fetch(`${kV()}${e}`,{...t,method:r,headers:n,credentials:`same-origin`}),a=await i.json().catch(()=>({}));if(!i.ok)throw i.status===401&&!e.startsWith(`/login`)&&(DV.user=null,DV.csrf=``),new AV(a?.error||`请求失败 (${i.status})`,i.status);return a}async function MV(){try{let e=await jV(`/api/me`);DV.user=e.user||null,DV.csrf=e.csrf_token||``}catch{DV.user=null,DV.csrf=``,OV.loaded=!1,OV.subscriptionEnabled=!1}finally{DV.ready=!0}}async function NV(){let e=await jV(`/api/captcha-config`);return{enabled:e.enabled===!0,provider:e.provider||``,turnstile_enabled:e.turnstile_enabled===!0,turnstile_site_key:String(e.turnstile_site_key||``),tencent_captcha_enabled:e.tencent_captcha_enabled===!0,tencent_captcha_app_id:String(e.tencent_captcha_app_id||``),tencent_captcha_region:String(e.tencent_captcha_region||`cn`),aliyun_captcha_enabled:e.aliyun_captcha_enabled===!0,aliyun_captcha_scene_id:String(e.aliyun_captcha_scene_id||``),aliyun_captcha_prefix:String(e.aliyun_captcha_prefix||``),aliyun_captcha_region:String(e.aliyun_captcha_region||`cn`)}}async function PV(e=!1){if(OV.loaded&&!e)return OV.subscriptionEnabled;if(OV.loading)return await new Promise(e=>{let t=window.setInterval(()=>{OV.loading||(window.clearInterval(t),e())},20)}),OV.subscriptionEnabled;OV.loading=!0;try{OV.subscriptionEnabled=(RV(await jV(`/api/subscription/status`))||{}).enabled===!0}catch{OV.subscriptionEnabled=!1}finally{OV.loaded=!0,OV.loading=!1}return OV.subscriptionEnabled}async function FV(e,t,n={}){let r=await jV(`/login`,{method:`POST`,body:JSON.stringify({email:e,password:t,...n})});return r.requires_2fa?(DV.pendingToken=r.pending_token||``,{requires2fa:!0}):(DV.pendingToken=``,DV.user=r.user||null,DV.csrf=r.csrf_token||``,OV.loaded=!1,{requires2fa:!1})}async function IV(e){let t=await jV(`/login/2fa`,{method:`POST`,body:JSON.stringify({pending_token:DV.pendingToken,totp_code:e})});DV.pendingToken=``,DV.user=t.user||null,DV.csrf=t.csrf_token||``,OV.loaded=!1}async function LV(){try{await jV(`/logout`,{method:`POST`})}finally{DV.user=null,DV.csrf=``,DV.pendingToken=``,OV.loaded=!1,OV.subscriptionEnabled=!1}}function RV(e){return e&&Object.prototype.hasOwnProperty.call(e,`data`)&&(`code`in e||`message`in e)?e.data:e}function zV(e){let t=RV(e);return Array.isArray(t)?t:Array.isArray(t?.items)?t.items:Array.isArray(t?.list)?t.list:Array.isArray(t?.rows)?t.rows:[]}function BV(e){if(!e)return`-`;let t=new Date(String(e));return Number.isNaN(t.getTime())?String(e):t.toLocaleString(`zh-CN`,{hour12:!1})}function VV(e){return{healthy:`运行中`,enabled:`运行中`,disabled:`已停用`,incompatible:`Core 不兼容`,error:`启用失败`,starting:`启动中`,draining:`停用中`,upgrading:`升级中`,rollback_pending:`等待回滚`}[String(e)]||String(e||`未知`)}function HV(e){return[`completed`,`success`,`succeeded`].includes(String(e||``).toLowerCase())}function UV(e){let t=String(e||``).toLowerCase();return HV(t)?`success`:t===`failed`||t===`error`?`danger`:`warning`}function WV(e,t=``){return`${e}-${t}-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}var GV={class:`brand`},KV={class:`brand-mark`},qV={class:`aside-footer`},JV={class:`header-left`},YV={class:`breadcrumbs`},XV={class:`header-right`},ZV={class:`user-name`},QV=z({__name:`Shell`,setup(e){let t=Uz(),n=Hz(),r=I(!1),i=U(()=>OV.subscriptionEnabled),a=U(()=>String(t.meta.title||(t.path.startsWith(`/modules/subscription`)?`订阅管理`:`概览`))),o=U(()=>t.path.startsWith(`/plugins`)?`/plugins`:t.path.startsWith(`/modules/subscription`)?`/modules/subscription/overview`:t.path),s=U(()=>String(DV.user?.email||DV.user?.username||`管理员`)),c=[{content:`退出登录`,value:`logout`}];async function l(){await PV(!0)}function u(e){let t=String(e);if(t===`/modules/subscription/overview`&&!i.value){eb.warning(`请先安装并启用订阅模块`);return}n.push(t),r.value=!1}async function d(e){String(e?.value||``)===`logout`&&(await LV(),n.push(`/login`))}return mr(l),(e,t)=>{let n=br(`t-menu-item`),l=br(`t-divider`),f=br(`t-menu`),p=br(`t-tag`),m=br(`t-aside`),h=br(`t-button`),g=br(`t-dropdown`),_=br(`t-header`),v=br(`router-view`),y=br(`t-content`),b=br(`t-layout`);return Ei(),ji(b,{class:`app-shell`},{default:L(()=>[r.value?(Ei(),Ai(`div`,{key:0,class:`mobile-scrim`,onClick:t[0]||=e=>r.value=!1})):Bi(``,!0),V(m,{class:de([`app-aside`,{"app-aside-mobile-open":r.value}]),width:`252px`},{default:L(()=>[B(`div`,GV,[B(`div`,KV,[V(Ht(Pg),{size:`22px`})]),t[2]||=B(`div`,null,[B(`div`,{class:`brand-title`},`Sub2API`),B(`div`,{class:`brand-subtitle`},`插件控制面`)],-1)]),t[11]||=B(`div`,{class:`nav-caption`},`控制台`,-1),V(f,{value:o.value,class:`main-menu`,onChange:u},{default:L(()=>[V(n,{value:`/overview`},{icon:L(()=>[V(Ht(pce))]),default:L(()=>[t[3]||=zi(`概览`,-1)]),_:1}),V(n,{value:`/plugins`},{icon:L(()=>[V(Ht(Oh))]),default:L(()=>[t[4]||=zi(`已安装插件`,-1)]),_:1}),V(n,{value:`/marketplace`},{icon:L(()=>[V(Ht(Sle))]),default:L(()=>[t[5]||=zi(`插件市场`,-1)]),_:1}),V(n,{value:`/operations`},{icon:L(()=>[V(Ht(x_))]),default:L(()=>[t[6]||=zi(`操作记录`,-1)]),_:1}),i.value?(Ei(),Ai(bi,{key:0},[V(l,{class:`nav-divider`}),t[7]||=B(`div`,{class:`nav-caption nav-caption-module`},`业务模块`,-1)],64)):Bi(``,!0),i.value?(Ei(),ji(n,{key:1,value:`/modules/subscription/overview`},{icon:L(()=>[V(Ht(Yh))]),default:L(()=>[t[8]||=zi(`订阅管理 `,-1)]),_:1})):Bi(``,!0)]),_:1},8,[`value`]),B(`div`,qV,[V(p,{theme:`success`,variant:`light`,class:`status-tag`},{default:L(()=>[V(Ht(tg),{size:`14px`}),t[9]||=zi(` Core 会话正常`,-1)]),_:1}),t[10]||=B(`span`,{class:`version-text`},`Plugin Admin v1.1.0`,-1)])]),_:1},8,[`class`]),V(b,{class:`main-layout`},{default:L(()=>[V(_,{class:`app-header`},{default:L(()=>[B(`div`,JV,[V(h,{class:`mobile-menu-button`,variant:`text`,shape:`square`,"aria-label":`打开导航`,onClick:t[1]||=e=>r.value=!0},{icon:L(()=>[V(Ht(Jce))]),_:1}),B(`div`,YV,[t[12]||=B(`span`,null,`插件管理`,-1),V(Ht(yg),{size:`15px`}),B(`strong`,null,ve(a.value),1)])]),B(`div`,XV,[V(p,{theme:`success`,variant:`light`,class:`secure-tag`},{default:L(()=>[V(Ht(tg),{size:`14px`}),t[13]||=zi(` 安全会话`,-1)]),_:1}),V(g,{options:c,trigger:`click`,onClick:d},{default:L(()=>[V(h,{variant:`text`,class:`user-button`},{icon:L(()=>[V(Ht(Nv))]),default:L(()=>[B(`span`,ZV,ve(s.value),1),V(Ht(sg),{size:`15px`})]),_:1})]),_:1})])]),_:1}),V(y,{class:`app-content`},{default:L(()=>[V(v)]),_:1})]),_:1})]),_:1})}}}),$V={key:0,class:`captcha-turnstile`},eH=z({__name:`TurnstileWidget`,props:{siteKey:{},theme:{default:`auto`},size:{default:`flexible`}},emits:[`verify`,`expire`,`error`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=I(null),o=null,s=null;function c(){return window.turnstile?Promise.resolve():s||(s=new Promise((e,t)=>{let n=document.querySelector(`script[src*="challenges.cloudflare.com/turnstile"]`);if(n){n.addEventListener(`load`,()=>window.turnstile?e():t(Error(`Turnstile SDK unavailable`)),{once:!0}),window.turnstile&&e();return}let r=document.createElement(`script`);r.src=`https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit`,r.async=!0,r.defer=!0,r.onload=()=>window.turnstile?e():t(Error(`Turnstile SDK unavailable`)),r.onerror=()=>t(Error(`Failed to load Turnstile SDK`)),document.head.appendChild(r)}).catch(e=>{throw s=null,e}),s)}function l(){if(!(!window.turnstile||!a.value||!r.siteKey)){if(o){try{window.turnstile.remove(o)}catch{}o=null}a.value.innerHTML=``,o=window.turnstile.render(a.value,{sitekey:r.siteKey,theme:r.theme,size:r.size,callback:e=>i(`verify`,e),"expired-callback":()=>i(`expire`),"error-callback":()=>i(`error`)})}}function u(){if(window.turnstile&&o)try{window.turnstile.reset(o)}catch{}}return t({reset:u}),mr(async()=>{if(r.siteKey)try{await c(),l()}catch(e){console.error(`Failed to initialize Turnstile:`,e),i(`error`)}}),R(()=>r.siteKey,e=>{e&&window.turnstile&&l()}),vr(()=>{if(window.turnstile&&o)try{window.turnstile.remove(o)}catch{}o=null}),(t,n)=>e.siteKey?(Ei(),Ai(`div`,$V,[B(`div`,{ref_key:`containerRef`,ref:a,class:`captcha-turnstile__container`},null,512)])):Bi(``,!0)}}),tH=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},nH=tH(eH,[[`__scopeId`,`data-v-dcfbd1a5`]]),rH={cn:`https://turing.captcha.qcloud.com/TJCaptcha.js`,intl:`https://ca.turing.captcha.qcloud.com/TJNCaptcha-global.js`},iH=null,aH=null;function oH(e){return e===`intl`?`intl`:`cn`}function sH(){return window.TCaptchaGlobal===!0?`intl`:`cn`}function cH(e=`cn`){return window.TencentCaptcha&&(aH===e||sH()===e)?Promise.resolve(window.TencentCaptcha):window.TencentCaptcha&&aH!==null&&aH!==e?Promise.reject(Error(`Tencent Captcha region changed; reload the page to apply it`)):iH&&aH===e?iH:(aH=e,iH=new Promise((t,n)=>{let r=document.querySelector(`script[src="${rH[e]}"]`);if(r){let i=()=>window.TencentCaptcha&&sH()===e?t(window.TencentCaptcha):n(Error(`Tencent Captcha SDK unavailable`));window.TencentCaptcha?i():r.addEventListener(`load`,i,{once:!0}),r.addEventListener(`error`,()=>n(Error(`Failed to load Tencent Captcha SDK`)),{once:!0});return}let i=document.createElement(`script`);i.src=rH[e],i.async=!0,i.onload=()=>{window.TencentCaptcha&&sH()===e?t(window.TencentCaptcha):n(Error(`Tencent Captcha SDK unavailable`))},i.onerror=()=>n(Error(`Failed to load Tencent Captcha SDK`)),document.head.appendChild(i)}).catch(e=>{throw iH=null,aH=null,e}),iH)}var lH={class:`captcha-action`},uH=[`disabled`],dH=tH(z({__name:`TencentCaptchaGate`,props:{appId:{},region:{default:`cn`}},emits:[`verify`,`expire`,`error`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=U(()=>oH(r.region)===`intl`),o=I(null),s=I(`idle`),c=null,l=null,u=null,d=null;function f(e){if(e.ret===2){s.value=`idle`,u?.(null),u=null,l=null;return}let t=e.ticket?.trim()||``,n=e.randstr?.trim()||``;if(!t||!n||t.startsWith(`trerror_`)||e.errorCode!==void 0){s.value=`idle`,u?.(null),u=null,l=null,i(`error`);return}let r={ticket:t,randstr:n};d=r,s.value=`verified`,i(`verify`,r),u?.(r),u=null,l=null}async function p(){let e=await cH(oH(r.region));if(!c)if(a.value){if(!o.value)throw Error(`Tencent Captcha container unavailable`);c=new e(o.value,r.appId,f,{enableAutoCheck:!1,type:`popup`})}else c=new e(r.appId,f,{userLanguage:`zh-cn`})}function m(){s.value===`verified`||s.value===`verifying`||(s.value=`verifying`,h())}async function h(){if(d){let e=d;return d=null,e}if(l)return l;let e=new Promise(e=>{u=e});l=e;try{await p(),c?.show()}catch(e){throw s.value=`idle`,u?.(null),u=null,l=null,i(`error`),e}return e}function g(){c?.destroy(),c=null,d=null,s.value=`idle`,u?.(null),u=null,l=null,i(`expire`)}return t({verify:h,reset:g}),mr(()=>{r.appId&&a.value&&p().catch(()=>i(`error`))}),_r(g),(e,t)=>(Ei(),Ai(`div`,lH,[a.value?(Ei(),Ai(`div`,{key:0,ref_key:`internationalContainerRef`,ref:o,class:`captcha-action__international`},null,512)):(Ei(),Ai(`button`,{key:1,type:`button`,class:`captcha-action__trigger`,disabled:s.value===`verified`||s.value===`verifying`,onClick:m},[B(`span`,{class:de([`captcha-action__dot`,{"is-verified":s.value===`verified`}])},null,2),zi(` `+ve(s.value===`verified`?`验证通过`:s.value===`verifying`?`验证中...`:`点击完成安全验证`),1)],8,uH))]))}}),[[`__scopeId`,`data-v-7fd83f77`]]),fH={key:0,class:`captcha-action`},pH=[`disabled`],mH=`https://o.alicdn.com/captcha-frontend/aliyunCaptcha/AliyunCaptcha.js`,hH=tH(z({__name:`AliyunCaptchaWidget`,props:{sceneId:{},prefix:{},region:{default:`cn`}},emits:[`verify`,`expire`,`error`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=Math.random().toString(36).slice(2,10),o=`plugin-aliyun-captcha-button-${a}`,s=`plugin-aliyun-captcha-element-${a}`,c=I(`idle`),l=null,u=null,d=null,f=null,p=!1;function m(){return window.initAliyunCaptcha?Promise.resolve():l||(window.AliyunCaptchaConfig={region:r.region||`cn`,prefix:r.prefix},l=new Promise((e,t)=>{let n=document.querySelector(`script[src*="aliyunCaptcha/AliyunCaptcha"]`);if(n){n.addEventListener(`load`,()=>window.initAliyunCaptcha?e():t(Error(`Aliyun Captcha SDK unavailable`)),{once:!0}),n.addEventListener(`error`,()=>t(Error(`Failed to load Aliyun Captcha SDK`)),{once:!0});return}let r=document.createElement(`script`);r.src=mH,r.async=!0,r.onload=()=>window.initAliyunCaptcha?e():t(Error(`Aliyun Captcha SDK unavailable`)),r.onerror=()=>t(Error(`Failed to load Aliyun Captcha SDK`)),document.head.appendChild(r)}).catch(e=>{throw l=null,e}),l)}function h(e){f!==null&&(window.clearTimeout(f),f=null);let t=e.trim();if(!t){c.value=`idle`,d?.resolve(null),d=null,i(`error`);return}u=t,c.value=`verified`,i(`verify`,t),d?.resolve(t),d=null}function g(){if(!p){if(!window.initAliyunCaptcha)throw Error(`Aliyun Captcha SDK unavailable`);window.initAliyunCaptcha({SceneId:r.sceneId,prefix:r.prefix,mode:`popup`,element:`#${s}`,button:`#${o}`,captchaVerifyCallback:e=>(h(e),{captchaResult:!0}),onBizResultCallback:()=>void 0,getInstance:()=>void 0,slideStyle:{width:360,height:40},language:`cn`}),p=!0}}function _(){c.value===`verified`||c.value===`verifying`||(c.value=`verifying`,v().catch(()=>{c.value=`idle`,i(`error`)}))}async function v(){if(u){let e=u;return u=null,e}if(await m(),!window.initAliyunCaptcha)throw Error(`Aliyun Captcha SDK unavailable`);return g(),new Promise(e=>{d={resolve:e},f!==null&&window.clearTimeout(f),f=window.setTimeout(()=>{f=null,c.value=`idle`,d?.resolve(null),d=null},15e3),document.getElementById(o)?.click()})}function y(){f!==null&&(window.clearTimeout(f),f=null),u=null,c.value=`idle`,d?.resolve(null),d=null,document.getElementById(`aliyunCaptcha-mask`)?.remove(),document.getElementById(`aliyunCaptcha-window-popup`)?.remove(),i(`expire`)}return t({verify:v,reset:y}),mr(()=>{!r.sceneId||!r.prefix||m().then(g).catch(()=>i(`error`))}),vr(()=>{f!==null&&(window.clearTimeout(f),f=null),d?.resolve(null),d=null,document.getElementById(`aliyunCaptcha-mask`)?.remove(),document.getElementById(`aliyunCaptcha-window-popup`)?.remove()}),(t,n)=>e.sceneId&&e.prefix?(Ei(),Ai(`div`,fH,[B(`button`,{id:o,type:`button`,class:de([`captcha-action__trigger`,{"is-verified":c.value===`verified`}]),disabled:c.value===`verified`||c.value===`verifying`,onClick:_},[B(`span`,{class:de([`captcha-action__dot`,{"is-verified":c.value===`verified`}])},null,2),zi(` `+ve(c.value===`verified`?`验证通过`:c.value===`verifying`?`验证中...`:`点击完成安全验证`),1)],10,pH),B(`div`,{id:s})])):Bi(``,!0)}}),[[`__scopeId`,`data-v-8a1336a6`]]),gH={key:0,class:`captcha-challenge`,"aria-live":`polite`},_H={key:3,class:`captcha-challenge__missing`},vH=tH(z({__name:`CaptchaChallenge`,props:{enabled:{type:Boolean},provider:{},turnstileSiteKey:{},tencentAppId:{},tencentRegion:{},aliyunSceneId:{},aliyunPrefix:{},aliyunRegion:{}},emits:[`verify`,`expire`,`error`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=I(null),o=I(null),s=I(null),c=I(``),l=I(null),u=I(``),d=U(()=>r.provider);function f(e){c.value=e,i(`verify`,{token:e,randstr:``,provider:`turnstile`})}function p(e){l.value=e,i(`verify`,{token:e.ticket,randstr:e.randstr,provider:`tencent`})}function m(e){u.value=e,i(`verify`,{token:e,randstr:``,provider:`aliyun`})}function h(){c.value=``,l.value=null,u.value=``,i(`expire`)}function g(){h(),i(`error`)}async function _(){if(!r.enabled)return null;if(d.value===`turnstile`)return c.value?{token:c.value,randstr:``,provider:`turnstile`}:null;if(d.value===`tencent`){let e=l.value||await o.value?.verify()||null;return e?{token:e.ticket,randstr:e.randstr,provider:`tencent`}:null}if(d.value===`aliyun`){let e=u.value||await s.value?.verify()||``;return e?{token:e,randstr:``,provider:`aliyun`}:null}return null}function v(){c.value=``,l.value=null,u.value=``,a.value?.reset(),o.value?.reset(),s.value?.reset()}return t({verifyAction:_,reset:v}),(t,n)=>e.enabled?(Ei(),Ai(`div`,gH,[d.value===`turnstile`&&e.turnstileSiteKey?(Ei(),ji(nH,{key:0,ref_key:`turnstileRef`,ref:a,"site-key":e.turnstileSiteKey,onVerify:f,onExpire:h,onError:g},null,8,[`site-key`])):d.value===`tencent`&&e.tencentAppId?(Ei(),ji(dH,{key:1,ref_key:`tencentRef`,ref:o,"app-id":e.tencentAppId,region:e.tencentRegion,onVerify:p,onExpire:h,onError:g},null,8,[`app-id`,`region`])):d.value===`aliyun`&&e.aliyunSceneId&&e.aliyunPrefix?(Ei(),ji(hH,{key:2,ref_key:`aliyunRef`,ref:s,"scene-id":e.aliyunSceneId,prefix:e.aliyunPrefix,region:e.aliyunRegion,onVerify:m,onExpire:h,onError:g},null,8,[`scene-id`,`prefix`,`region`])):(Ei(),Ai(`div`,_H,`验证码配置不完整,请联系管理员`))])):Bi(``,!0)}}),[[`__scopeId`,`data-v-be35acfe`]]),yH={class:`login-page`},bH={class:`login-layout`},xH={class:`login-intro`},SH={class:`brand brand-login`},CH={class:`brand-mark`},wH={class:`login-points`},TH={class:`login-card-heading`},EH={class:`login-security`},DH=z({__name:`Login`,setup(e){let t=Hz(),n=I(!1),r=I(!1),i=I(``),a=I(!1),o=I(``),s=I(null),c=I(null),l=Dt({enabled:!1,provider:``,turnstile_enabled:!1,turnstile_site_key:``,tencent_captcha_enabled:!1,tencent_captcha_app_id:``,tencent_captcha_region:`cn`,aliyun_captcha_enabled:!1,aliyun_captcha_scene_id:``,aliyun_captcha_prefix:``,aliyun_captcha_region:`cn`}),u=Dt({email:``,password:``}),d=Dt({totp_code:``}),f={email:[{required:!0,message:`请输入管理员邮箱`,type:`error`}],password:[{required:!0,message:`请输入密码`,type:`error`}]};async function p(){if(!u.email.trim()||!u.password){i.value=`请输入邮箱和密码`;return}n.value=!0,i.value=``;try{let e=l.enabled&&await s.value?.verifyAction()||null;if(l.enabled&&!e){i.value=`请先完成安全验证`;return}c.value=e;let n=e?.provider===`tencent`?{tencent_captcha_ticket:e.token,tencent_captcha_randstr:e.randstr}:e?.provider===`aliyun`||e?.provider===`turnstile`?{turnstile_token:e.token}:{};(await FV(u.email.trim(),u.password,n)).requires2fa?r.value=!0:(eb.success(`登录成功`),t.push(`/overview`))}catch(e){i.value=e instanceof Error?e.message:`登录失败,请稍后重试`}finally{s.value?.reset(),c.value=null,n.value=!1}}async function m(){if(!/^\d{6}$/.test(d.totp_code)){i.value=`请输入 6 位数字验证码`;return}n.value=!0,i.value=``;try{await IV(d.totp_code),eb.success(`登录成功`),t.push(`/overview`)}catch(e){i.value=e instanceof Error?e.message:`验证码校验失败`}finally{n.value=!1}}function h(){r.value=!1,d.totp_code=``,i.value=``}function g(e){c.value=e,i.value=``}function _(){c.value=null}function v(){c.value=null,i.value=`安全验证加载失败,请刷新页面重试`}return mr(async()=>{o.value=``;try{let e=await NV();Object.assign(l,e),[e.turnstile_enabled,e.tencent_captcha_enabled,e.aliyun_captcha_enabled].filter(Boolean).length>1?o.value=`Core 同时启用了多个验证码服务,请保留一个服务商后重试`:e.enabled&&!e.provider&&(o.value=`验证码配置不完整,请联系管理员`)}catch(e){o.value=e instanceof Error?`验证码配置加载失败:${e.message}`:`验证码配置加载失败,请刷新页面重试`}finally{a.value=!0}}),(e,t)=>{let c=br(`t-tag`),y=br(`t-alert`),b=br(`t-input`),x=br(`t-form-item`),S=br(`t-button`),C=br(`t-form`),w=br(`t-card`);return Ei(),Ai(`main`,yH,[t[18]||=B(`div`,{class:`login-accent`},null,-1),B(`section`,bH,[B(`div`,xH,[B(`div`,SH,[B(`div`,CH,[V(Ht(Pg),{size:`24px`})]),t[3]||=B(`div`,null,[B(`div`,{class:`brand-title`},`Sub2API`),B(`div`,{class:`brand-subtitle`},`插件控制面`)],-1)]),t[7]||=B(`p`,{class:`eyebrow`},`BUSINESS PLUGIN CONTROL PLANE`,-1),t[8]||=B(`h1`,null,`统一管理你的业务插件`,-1),t[9]||=B(`p`,{class:`login-lead`},`使用 Core 管理员会话进入插件市场、生命周期和业务模块。所有插件操作都在同一安全控制面完成。`,-1),B(`div`,wH,[B(`div`,null,[V(Ht(tg),{size:`18px`}),t[4]||=B(`span`,null,`一次登录,访问已启用业务模块`,-1)]),B(`div`,null,[V(Ht(tg),{size:`18px`}),t[5]||=B(`span`,null,`凭据仅保存在服务端会话`,-1)]),B(`div`,null,[V(Ht(tg),{size:`18px`}),t[6]||=B(`span`,null,`每次变更都有可追溯操作记录`,-1)])])]),V(w,{class:`login-card`,bordered:!0},{default:L(()=>[B(`div`,TH,[t[11]||=B(`div`,null,[B(`p`,{class:`eyebrow`},`ADMIN ACCESS`),B(`h2`,null,`管理员登录`)],-1),V(c,{theme:`primary`,variant:`light`},{default:L(()=>[...t[10]||=[zi(`仅管理员`,-1)]]),_:1})]),t[17]||=B(`p`,{class:`muted`},`使用 Sub2API Core 的管理员账号登录,普通账号没有访问权限。`,-1),o.value?(Ei(),ji(y,{key:0,class:`login-error`,theme:`warning`,message:o.value},null,8,[`message`])):Bi(``,!0),r.value?(Ei(),ji(C,{key:2,class:`login-form`,data:d,onSubmit:m},{default:L(()=>[V(y,{theme:`info`,title:`需要二次验证`},{default:L(()=>[...t[13]||=[zi(`请输入 Core 返回的 6 位验证码。`,-1)]]),_:1}),V(x,{label:`验证码`,name:`totp_code`},{default:L(()=>[V(b,{modelValue:d.totp_code,"onUpdate:modelValue":t[2]||=e=>d.totp_code=e,inputmode:`numeric`,maxlength:`6`,placeholder:`000000`},null,8,[`modelValue`])]),_:1}),V(S,{theme:`primary`,type:`submit`,block:``,loading:n.value},{icon:L(()=>[V(Ht(tg))]),default:L(()=>[t[14]||=zi(`验证并继续`,-1)]),_:1},8,[`loading`]),V(S,{variant:`text`,block:``,onClick:h},{default:L(()=>[...t[15]||=[zi(`返回账号登录`,-1)]]),_:1})]),_:1},8,[`data`])):(Ei(),ji(C,{key:1,ref:`loginForm`,class:`login-form`,data:u,rules:f,onSubmit:p},{default:L(()=>[V(x,{label:`邮箱`,name:`email`},{default:L(()=>[V(b,{modelValue:u.email,"onUpdate:modelValue":t[0]||=e=>u.email=e,type:`text`,"aria-label":`邮箱`,autocomplete:`username`,placeholder:`admin@example.com`},null,8,[`modelValue`])]),_:1}),V(x,{label:`密码`,name:`password`},{default:L(()=>[V(b,{modelValue:u.password,"onUpdate:modelValue":t[1]||=e=>u.password=e,type:`password`,"aria-label":`密码`,autocomplete:`current-password`,placeholder:`输入管理员密码`},null,8,[`modelValue`])]),_:1}),a.value&&l.enabled?(Ei(),ji(vH,{key:0,ref_key:`captchaRef`,ref:s,enabled:l.enabled,provider:l.provider,"turnstile-site-key":l.turnstile_site_key,"tencent-app-id":l.tencent_captcha_app_id,"tencent-region":l.tencent_captcha_region,"aliyun-scene-id":l.aliyun_captcha_scene_id,"aliyun-prefix":l.aliyun_captcha_prefix,"aliyun-region":l.aliyun_captcha_region,onVerify:g,onExpire:_,onError:v},null,8,[`enabled`,`provider`,`turnstile-site-key`,`tencent-app-id`,`tencent-region`,`aliyun-scene-id`,`aliyun-prefix`,`aliyun-region`])):Bi(``,!0),V(S,{theme:`primary`,type:`submit`,block:``,loading:n.value,disabled:!a.value||!!o.value},{icon:L(()=>[V(Ht(Nv))]),default:L(()=>[t[12]||=zi(`登录`,-1)]),_:1},8,[`loading`,`disabled`])]),_:1},8,[`data`])),i.value?(Ei(),ji(y,{key:3,class:`login-error`,theme:`error`,message:i.value},null,8,[`message`])):Bi(``,!0),B(`div`,EH,[V(Ht(F_),{size:`15px`}),t[16]||=zi(` HttpOnly 会话 · CSRF 保护 · 8 小时绝对有效期`,-1)])]),_:1})])])}}}),OH={class:`page-header`},kH={class:`eyebrow`},AH={class:`page-subtitle`},jH={class:`page-actions`},MH=z({__name:`PageHeader`,props:{eyebrow:{},title:{},subtitle:{}},setup(e){return(t,n)=>(Ei(),Ai(`header`,OH,[B(`div`,null,[B(`p`,kH,ve(e.eyebrow),1),B(`h1`,null,ve(e.title),1),B(`p`,AH,ve(e.subtitle),1)]),B(`div`,jH,[Dee(t.$slots,`actions`)])]))}}),NH=function(e,t){return NH=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},NH(e,t)};function PH(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);NH(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var FH=`12px sans-serif`,IH=20,LH=100,RH=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function zH(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-IH)/LH}return t}var BH=zH(RH),VH={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=VH.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=BH[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r},getTime:function(){return Date.now?Date.now():+new Date}},HH=pU([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),UH=pU([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),WH=Object.prototype.toString,GH=Array.prototype,KH=GH.forEach,qH=GH.filter,JH=GH.slice,YH=GH.map,XH=function(){}.constructor,ZH=XH?XH.prototype:null,QH=`__proto__`,$H=2311,eU=2**53-1;function tU(){return $H>=eU&&($H=0),$H++}function nU(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function rU(e){if(typeof e!=`object`||!e)return e;var t=e,n=WH.call(e);if(n===`[object Array]`){if(!VU(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=rU(e[r])}}else if(UH[n]){if(!VU(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!HH[n]&&!VU(e)&&!OU(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==QH&&(t[o]=rU(e[o]));return t}function iU(e,t,n){if(!TU(t)||!TU(e))return n?rU(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==QH){var i=e[r],a=t[r];TU(a)&&TU(i)&&!bU(a)&&!bU(i)&&!OU(a)&&!OU(i)&&!EU(a)&&!EU(i)&&!VU(a)&&!VU(i)?iU(i,a,n):(n||!(r in e))&&(e[r]=rU(t[r]))}return e}function aU(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==QH&&(e[n]=t[n]);return e}function oU(e,t,n){e||={};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}function sU(e,t,n){for(var r=gU(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}VH.createCanvas;function cU(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function lU(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function uU(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else sU(e,t,n)}function dU(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function $(e,t,n){if(e&&t)if(e.forEach&&e.forEach===KH)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function fU(e,t,n){if(!e)return[];if(!t)return FU(e);if(e.map&&e.map===YH)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function pU(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function mU(e,t,n){if(!e)return[];if(!t)return FU(e);if(e.filter&&e.filter===qH)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function hU(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function gU(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function _U(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(JH.call(arguments)))}}var vU=ZH&&xU(ZH.bind)?ZH.call.bind(ZH.bind):_U;function yU(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(JH.call(arguments)))}}function bU(e){return Array.isArray?Array.isArray(e):WH.call(e)===`[object Array]`}function xU(e){return typeof e==`function`}function SU(e){return typeof e==`string`}function CU(e){return WH.call(e)===`[object String]`}function wU(e){return typeof e==`number`}function TU(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function EU(e){return!!HH[WH.call(e)]}function DU(e){return!!UH[WH.call(e)]}function OU(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function kU(e){return e.colorStops!=null}function AU(e){return e.image!=null}function jU(e){return e!==e}function MU(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function NU(e,t){return e??t}function PU(e,t,n){return e??t??n}function FU(e){var t=[...arguments].slice(1);return JH.apply(e,t)}function IU(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function LU(e,t){if(!e)throw Error(t)}function RU(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var zU=`__ec_primitive__`;function BU(e){e[zU]=!0}function VU(e){return e[zU]}var HU=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return gU(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),UU=typeof Map==`function`;function WU(){return UU?new Map:new HU}var GU=function(){function e(t){var n=bU(t);this.data=WU();var r=this;t instanceof e?t.each(i):t&&$(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return UU?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function KU(e){return new GU(e)}function qU(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function JU(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&aU(n,t),n}function YU(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function XU(e,t){return e.hasOwnProperty(t)}function ZU(){}var QU=180/Math.PI,$U=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),eW=new(function(){function e(){this.browser=new $U,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<`u`}return e}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(eW.wxa=!0,eW.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?eW.worker=!0:!eW.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(eW.node=!0,eW.svgSupported=!0):tW(navigator.userAgent,eW);function tW(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var nW=`.`,rW=`___EC__COMPONENT__CONTAINER___`,iW=`___EC__EXTENDED_CLASS___`;function aW(e){var t={main:``,sub:``};if(e){var n=e.split(nW);t.main=n[0]||``,t.sub=n[1]||``}return t}function oW(e){LU(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function sW(e){return!!(e&&e[iW])}function cW(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return lW(t)?n=function(e){PH(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},lU(n,this)),aU(n.prototype,e),n[iW]=!0,n.extend=this.extend,n.superCall=pW,n.superApply=mW,n.superClass=t,n}}function lW(e){return xU(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function uW(e,t){e.extend=t.extend}var dW=Math.round(Math.random()*10);function fW(e){var t=[`__\0is_clz`,dW++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function pW(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function mW(e,t,n){return this.superClass.prototype[t].apply(e,n)}function hW(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){oW(r),e.prototype.type=r;var i=aW(r);if(!i.sub)t[i.main]=e;else if(i.sub!==rW){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[rW]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=aW(e),r=[],i=t[n.main];return i&&i[rW]?$(i,function(e,t){t!==rW&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[aW(e).main]},e.getAllClassMainTypes=function(){var e=[];return $(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[aW(e).main];return n&&n[rW]};function n(e){var n=t[e.main];return(!n||!n[rW])&&(n=t[e.main]={},n[rW]=!0),n}}function gW(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t||=!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&cU(r,s)>=0||i&&cU(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var _W=gW([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),vW=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return _W(this,e,t)},e}(),yW=function(e,t){return yW=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},yW(e,t)};function bW(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);yW(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var xW=function(){function e(e){this.value=e}return e}(),SW=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new xW(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),CW=function(){function e(e){this._list=new SW,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new xW(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),wW=new CW(50);function TW(e){if(typeof e==`string`){var t=wW.get(e);return t&&t.image}else return e}function EW(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=wW.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!OW(t)&&a.pending.push(o)):(t=VH.loadImage(e,DW,DW),t.__zrImageSrc=e,wW.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e}function DW(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function OW(e){return e&&e.width&&e.height}function kW(){return[1,0,0,1,0,0]}function AW(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function jW(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function MW(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function NW(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function PW(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function kye(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function FW(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}function IW(e,t){return e??=0,t??=0,[e,t]}function Aye(e){return[e[0],e[1]]}function LW(e,t,n){return e[0]=t,e[1]=n,e}function RW(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function jye(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Mye(e){return Math.sqrt(Nye(e))}function Nye(e){return e[0]*e[0]+e[1]*e[1]}function zW(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Pye(e,t){var n=Mye(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function BW(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Fye=BW;function Iye(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var VW=Iye;function HW(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function UW(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function WW(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var GW=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),KW=Math.min,qW=Math.max,JW=Math.abs,YW=[`x`,`y`],Lye=[`width`,`height`],XW=new GW,ZW=new GW,QW=new GW,$W=new GW,eG=lG(),tG=eG.minTv,nG=eG.maxTv,rG=[0,0],iG=function(){function e(e,t,n,r){aG(this,e,t,n,r)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=KW(e.x,this.x),n=KW(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=qW(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=qW(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){return Rye(kW(),this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&GW.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=aG(zye,t.x,t.y,t.width,t.height)),n instanceof e||(n=aG(Bye,n.x,n.y,n.width,n.height));var s=!!r;eG.reset(i,s);var c=eG.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u<p||m<l||f<h||g<d);return(s||a)&&(rG[0]=1/0,rG[1]=0,cG(l,u,p,m,0,s,a,o),cG(d,f,h,g,1,s,a,o),s&&GW.copy(r,_?eG.useDir?eG.dirMinTv:tG:nG)),_},e.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){oG(this,e)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,n){if(!n){e!==t&&oG(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],i=n[3],a=n[4],o=n[5];e.x=t.x*r+a,e.y=t.y*i+o,e.width=t.width*r,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}XW.x=QW.x=t.x,XW.y=$W.y=t.y,ZW.x=$W.x=t.x+t.width,ZW.y=QW.y=t.y+t.height,XW.transform(n),$W.transform(n),ZW.transform(n),QW.transform(n),e.x=KW(XW.x,ZW.x,QW.x,$W.x),e.y=KW(XW.y,ZW.y,QW.y,$W.y);var s=qW(XW.x,ZW.x,QW.x,$W.x),c=qW(XW.y,ZW.y,QW.y,$W.y);e.width=s-e.x,e.height=c-e.y},e.calculateTransform=function(e,t,n){var r=n.width/t.width,i=n.height/t.height;return e=AW(e||[]),NW(e,e,LW(sG,-t.x,-t.y)),kye(e,e,LW(sG,r,i)),NW(e,e,LW(sG,n.x,n.y)),e},e}();iG.create;var aG=iG.set,oG=iG.copy,Rye=iG.calculateTransform;iG.applyTransform,iG.contain;var zye=new iG(0,0,0,0),Bye=new iG(0,0,0,0),sG=[];function cG(e,t,n,r,i,a,o,s){var c=JW(t-n),l=JW(r-e),u=KW(c,l),d=YW[i],f=YW[1-i],p=Lye[i];t<n||r<e?c<l?(a&&(nG[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(nG[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=qW(e,n),o[p]=KW(t,r)-o[d]),a&&(u<rG[0]||eG.useDir)&&(rG[0]=KW(u,rG[0]),(c<l||!eG.bidirectional)&&(tG[d]=c,tG[f]=0,eG.useDir&&eG.calcDirMTV()),(c>=l||!eG.bidirectional)&&(tG[d]=-l,tG[f]=0,eG.useDir&&eG.calcDirMTV())))}function lG(){var e=0,t=new GW,n=new GW,r={minTv:new GW,maxTv:new GW,useDir:!1,dirMinTv:new GW,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=qW(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;if(i(u)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)){o.set(0,0);return}(r.bidirectional||t.dot(n)>0)&&n.len()<o.len()&&o.copy(n)}};function i(e){return JW(e)<1e-10}return r}function uG(e){dG||=new CW(100),e||=`12px sans-serif`;var t=dG.get(e);return t||(t={font:e,strWidthCache:new CW(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:VH.measureText(`国`,e).width,asciiCharWidth:VH.measureText(`a`,e).width},dG.put(e,t)),t}var dG;function Vye(e){if(!(fG>=pG)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=VH.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?fG=pG:i>2&&fG++,t}}var fG=0,pG=5;function mG(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=Vye(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function hG(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=VH.measureText(t,e.font).width,n.put(t,r)),r}function gG(e,t,n,r){var i=hG(uG(t),e),a=bG(t);return new iG(vG(0,i,n),yG(0,a,r),i,a)}function _G(e,t,n,r){var i=((e||``)+``).split(`
`);if(i.length===1)return gG(i[0],t,n,r);for(var a=new iG(0,0,0,0),o=0;o<i.length;o++){var s=gG(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function vG(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function yG(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function bG(e){return uG(e).stWideCharWidth}function xG(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function SG(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=xG(r[0],n.width),l+=xG(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`;break}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var CG=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Hye(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
`);a=wG(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)TG(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
`),e.isTruncated=s}function wG(e,t,n,r){r||={};var i=aU({},r);n=NU(n,`...`),i.maxIterations=NU(r.maxIterations,2);var a=i.minChar=NU(r.minChar,0),o=i.fontMeasureInfo=uG(t),s=o.asciiCharWidth;i.placeholder=NU(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=hG(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function TG(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=hG(a,t);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?Uye(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=hG(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Uye(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=mG(n,e.charCodeAt(i));return i}function Wye(e,t,n,r){var i=MG(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,c=o?o[0]+o[2]:0,l=t.font,u=a===`truncate`,d=bG(l),f=NU(t.lineHeight,d),p=t.lineOverflow===`truncate`,m=!1,h=t.width;h==null&&n!=null&&(h=n-s);var g=t.height;g==null&&r!=null&&(g=r-c);var _=h!=null&&(a===`break`||a===`breakAll`)?i?OG(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
`):[],v=_.length*f;if(g??=v,v>g&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=wG(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)TG(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=uG(l),S=0;S<_.length;S++)w=Math.max(hG(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}var Gye=function(){function e(){}return e}(),EG=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),Kye=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function qye(e,t,n,r,i){var a=new Kye,o=MG(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=CG.lastIndex=0,h;(h=CG.exec(o))!=null;){var g=h.index;g>m&&DG(a,o.substring(m,g),t,p),DG(a,h[2],t,p,h[1]),m=CG.lastIndex}m<o.length&&DG(a,o.substring(m,o.length),t,p);var _=[],v=0,y=0,b=f===`truncate`,x=t.lineOverflow===`truncate`,S={};function C(e,t,n){e.width=t,e.lineHeight=n,v+=n,y=Math.max(y,t)}outer:for(var w=0;w<a.lines.length;w++){for(var T=a.lines[w],E=0,D=0,O=0;O<T.tokens.length;O++){var k=T.tokens[O],A=k.styleName&&t.rich[k.styleName]||{},j=k.textPadding=A.padding,M=j?j[1]+j[3]:0,ee=k.font=A.font||t.font;k.contentHeight=bG(ee);var N=NU(A.height,k.contentHeight);if(k.innerHeight=N,j&&(N+=j[0]+j[2]),k.height=N,k.lineHeight=PU(A.lineHeight,t.lineHeight,N),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var P=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<P;break outer}var F=A.width,te=F==null||F===`auto`;if(typeof F==`string`&&F.charAt(F.length-1)===`%`)k.percentWidth=F,_.push(k),k.contentWidth=hG(uG(ee),k.text);else{if(te){var ne=A.backgroundColor,re=ne&&ne.image;re&&(re=TW(re),OW(re)&&(k.width=Math.max(k.width,re.width*N/re.height)))}var ie=b&&u!=null?u-D:null;ie!=null&&ie<k.width?!te||ie<M?(k.text=``,k.width=k.contentWidth=0):(Hye(S,k.text,ie-M,ee,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=hG(uG(ee),k.text)):k.contentWidth=hG(uG(ee),k.text)}k.width+=M,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=NU(u,y),a.outerHeight=a.height=NU(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l;for(var w=0;w<_.length;w++){var k=_[w],ae=k.percentWidth;k.width=parseInt(ae,10)/100*a.width}return a}function DG(e,t,n,r,i){var a=t===``,o=i&&n.rich[i]||{},s=e.lines,c=o.font||n.font,l=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!==`auto`){var m=xG(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
`),l=!0),r.accumWidth=m}else{var h=OG(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(`
`);for(var g=uG(c),_=0;_<u.length;_++){var v=u[_],y=new Gye;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,typeof o.width==`number`?y.width=o.width:y.width=d?d[_]:hG(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new EG)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new EG([y]))}}function Jye(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Yye=pU(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function Xye(e){return!Jye(e)||!!Yye[e]}function OG(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=uG(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
`){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var m=mG(d,p.charCodeAt(0)),h=!r&&!Xye(p);if(a.length?u+m>n:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function kG(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;iG.set(AG,vG(n,o,i),yG(r,s,a),o,s),iG.intersect(t,AG,null,jG);var c=jG.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=vG(c.x,c.width,i,!0),e.baseY=yG(c.y,c.height,a,!0)}}var AG=new iG(0,0,0,0),jG={outIntersectRect:{},clamp:!0};function MG(e){return e==null?e=``:e+=``}function Zye(e){var t=MG(e.text),n=e.font;return NG(e,hG(uG(n),t),bG(n),null)}function NG(e,t,n,r){var i=new iG(vG(e.x||0,t,e.textAlign),yG(e.y||0,n,e.textBaseline),t,n),a=r??(PG(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function PG(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var FG=AW,IG=5e-5;function LG(e){return e>IG||e<-IG}var RG=[],zG=[],BG=kW(),VG=Math.abs,HG=function(){function e(){}return e.prototype.getLocalTransform=function(e){return Qye(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return LG(this.rotation)||LG(this.x)||LG(this.y)||LG(this.scaleX-1)||LG(this.scaleY-1)||LG(this.skewX)||LG(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(FG(n),this.invTransform=null);return}n||=kW(),t?this.getLocalTransform(n):FG(n),e&&(t?MW(n,e,n):jW(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||kW(),FW(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(RG);var n=RG[0]<0?-1:1,r=RG[1]<0?-1:1,i=((RG[0]-n)*t+n)/RG[0]||0,a=((RG[1]-r)*t+r)/RG[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||kW(),MW(zG,e.invTransform,t),t=zG);var n=this.originX,r=this.originY;(n||r)&&(BG[4]=n,BG[5]=r,MW(zG,t,BG),zG[4]-=n,zG[5]-=r,t=zG),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&HW(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&HW(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&VG(e[0]-1)>1e-10&&VG(e[3]-1)>1e-10?Math.sqrt(VG(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){WG(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&PW(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),Qye=HG.getLocalTransform,UG=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function WG(e,t){return oU(e,t,UG)}var GG={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=1.70158*1.525;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-GG.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?GG.bounceIn(e*2)*.5:GG.bounceOut(e*2-1)*.5+.5}},KG=Math.pow,qG=Math.sqrt,JG=1e-8,YG=1e-4,XG=qG(3),ZG=1/3,QG=IW(),$G=IW(),eK=IW();function tK(e){return e>-JG&&e<JG}function nK(e){return e>JG||e<-JG}function rK(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function iK(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function aK(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(tK(u)&&tK(d))if(tK(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}else{var h=d*d-4*u*f;if(tK(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=qG(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-KG(-y,ZG):KG(y,ZG),b=b<0?-KG(-b,ZG):KG(b,ZG);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*qG(u*u*u)),S=Math.acos(x)/3,C=qG(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+XG*Math.sin(S)))/(3*o),T=(-s+C*(w-XG*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function oK(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(tK(o)){if(nK(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(tK(u))i[0]=-a/(2*o);else if(u>0){var d=qG(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function sK(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function $ye(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;QG[0]=c,QG[1]=l;for(var v=0;v<1;v+=.05)$G[0]=rK(e,n,i,o,v),$G[1]=rK(t,r,a,s,v),g=VW(QG,$G),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<YG);y++)m=d-f,h=d+f,$G[0]=rK(e,n,i,o,m),$G[1]=rK(t,r,a,s,m),g=VW($G,QG),m>=0&&g<p?(d=m,p=g):(eK[0]=rK(e,n,i,o,h),eK[1]=rK(t,r,a,s,h),_=VW(eK,QG),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=rK(e,n,i,o,d),u[1]=rK(t,r,a,s,d)),qG(p)}function ebe(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=rK(e,n,i,o,m),g=rK(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function cK(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function lK(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function tbe(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(tK(a)){if(nK(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(tK(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=qG(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function uK(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function dK(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function nbe(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;QG[0]=o,QG[1]=s;for(var f=0;f<1;f+=.05){$G[0]=cK(e,n,i,f),$G[1]=cK(t,r,a,f);var p=VW(QG,$G);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<YG);m++){var h=l-u,g=l+u;$G[0]=cK(e,n,i,h),$G[1]=cK(t,r,a,h);var p=VW($G,QG);if(h>=0&&p<d)l=h,d=p;else{eK[0]=cK(e,n,i,g),eK[1]=cK(t,r,a,g);var _=VW(eK,QG);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=cK(e,n,i,l),c[1]=cK(t,r,a,l)),qG(d)}function rbe(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=cK(e,n,i,f),m=cK(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var ibe=/cubic-bezier\(([0-9,\.e ]+)\)/;function fK(e){var t=e&&ibe.exec(e);if(t){var n=t[1].split(`,`),r=+RU(n[0]),i=+RU(n[1]),a=+RU(n[2]),o=+RU(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:aK(0,r,a,1,e,s)&&rK(0,i,o,1,s[0])}}}var abe=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||ZU,this.ondestroy=e.ondestroy||ZU,this.onrestart=e.onrestart||ZU,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1)if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=xU(e)?e:GG[e]||fK(e)},e}(),pK={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function mK(e){return e=Math.round(e),e<0?0:e>255?255:e}function obe(e){return e=Math.round(e),e<0?0:e>360?360:e}function hK(e){return e<0?0:e>1?1:e}function gK(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?mK(parseFloat(t)/100*255):mK(parseInt(t,10))}function _K(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?hK(parseFloat(t)/100):hK(parseFloat(t))}function vK(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function yK(e,t,n){return e+(t-e)*n}function bK(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function xK(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var SK=new CW(20),CK=null;function wK(e,t){CK&&xK(CK,t),CK=SK.put(e,CK||t.slice())}function TK(e,t){if(e){t||=[];var n=SK.get(e);if(n)return xK(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in pK)return xK(t,pK[r]),wK(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){bK(t,0,0,0,1);return}return bK(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),wK(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){bK(t,0,0,0,1);return}return bK(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),wK(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?bK(t,+l[0],+l[1],+l[2],1):bK(t,0,0,0,1);u=_K(l.pop());case`rgb`:if(l.length>=3)return bK(t,gK(l[0]),gK(l[1]),gK(l[2]),l.length===3?u:_K(l[3])),wK(e,t),t;bK(t,0,0,0,1);return;case`hsla`:if(l.length!==4){bK(t,0,0,0,1);return}return l[3]=_K(l[3]),EK(l,t),wK(e,t),t;case`hsl`:if(l.length!==3){bK(t,0,0,0,1);return}return EK(l,t),wK(e,t),t;default:return}}bK(t,0,0,0,1)}}function EK(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=_K(e[1]),i=_K(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],bK(t,mK(vK(o,a,n+1/3)*255),mK(vK(o,a,n)*255),mK(vK(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function sbe(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function DK(e,t){var n=TK(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return kK(n,n.length===4?`rgba`:`rgb`)}}function cbe(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=TK(t[i]),s=TK(t[a]),c=r-i,l=kK([mK(yK(o[0],s[0],c)),mK(yK(o[1],s[1],c)),mK(yK(o[2],s[2],c)),hK(yK(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function OK(e,t,n,r){var i=TK(e);if(e)return i=sbe(i),t!=null&&(i[0]=obe(xU(t)?t(i[0]):t)),n!=null&&(i[1]=_K(xU(n)?n(i[1]):n)),r!=null&&(i[2]=_K(xU(r)?r(i[2]):r)),kK(EK(i),`rgba`)}function kK(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function AK(e,t){var n=TK(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var jK=new CW(100);function MK(e){if(SU(e)){var t=jK.get(e);return t||(t=DK(e,-.1),jK.put(e,t)),t}else if(kU(e)){var n=aU({},e);return n.colorStops=fU(e.colorStops,function(e){return{offset:e.offset,color:DK(e.color,-.1)}}),n}return e}function lbe(e){return e.type===`linear`}function ube(e){return e.type===`radial`}(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})();var NK=Array.prototype.slice;function PK(e,t,n){return(t-e)*n+e}function FK(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=PK(t[a],n[a],r);return e}function dbe(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=PK(t[o][s],n[o][s],r)}return e}function IK(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function LK(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function fbe(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function pbe(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var a=r.length,o=i.length;if(a!==o)if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:NK.call(i[s]));for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function RK(e){if(dU(e)){var t=e.length;if(dU(e[0])){for(var n=[],r=0;r<t;r++)n.push(NK.call(e[r]));return n}return NK.call(e)}return e}function zK(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function mbe(e){return dU(e&&e[0])?2:1}var BK=0,VK=1,HK=2,UK=3,WK=4,GK=5,KK=6;function qK(e){return e===WK||e===GK}function JK(e){return e===VK||e===HK}var YK=[0,0,0,0],hbe=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=KK,s=t;if(dU(t)){var c=mbe(t);o=c,(c===1&&!wU(t[0])||c===2&&!wU(t[0][0]))&&(a=!0)}else if(wU(t)&&!jU(t))o=BK;else if(SU(t))if(!isNaN(+t))o=BK;else{var l=TK(t);l&&(s=l,o=UK)}else if(kU(t)){var u=aU({},s);u.colorStops=fU(t.colorStops,function(e){return{offset:e.offset,color:TK(e.color)}}),lbe(t)?o=WK:ube(t)&&(o=GK),s=u}i===0?this.valType=o:(o!==this.valType||o===KK)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=xU(n)?n:GG[n]||fK(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=JK(r),c=qK(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?pbe(d,f,r):c&&fbe(d.colorStops,f.colorStops))}if(!o&&r!==GK&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===BK?n[l].additiveValue=n[l].value-p:r===UK?n[l].additiveValue=IK([],n[l].value,p,-1):JK(r)&&(n[l].additiveValue=r===VK?IK([],n[l].value,p,-1):LK([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===UK,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?YK:e[s];if((JK(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(JK(i))i===VK?FK(g,f[r],p[r],h):dbe(g,f[r],p[r],h);else if(qK(i)){var _=f[r],v=p[r],y=i===WK;e[s]={type:y?`linear`:`radial`,x:PK(_.x,v.x,h),y:PK(_.y,v.y,h),colorStops:fU(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:PK(e.offset,n.offset,h),color:zK(FK([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=PK(_.x2,v.x2,h),e[s].y2=PK(_.y2,v.y2,h)):e[s].r=PK(_.r,v.r,h)}else if(c)FK(g,f[r],p[r],h),n||(e[s]=zK(g));else{var b=PK(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===BK?e[n]=e[n]+r:t===UK?(TK(e[n],YK),IK(YK,YK,r,1),e[n]=zK(YK)):t===VK?IK(e[n],e[n],r,1):t===HK&&LK(e[n],e[n],r,1)},e}(),XK=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){nU(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,gU(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new hbe(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===UK&&c&&(c=zK(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,RK(c),r),this._trackKeys.push(o)}s.addKeyframe(e,RK(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}if(n.length||this._force){var d=new abe({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return fU(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=RK(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=gU(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),ZK=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!(r&&r.filter&&s.query!=null&&!r.filter(e,s.query)))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t);break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1));break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),QK=1;eW.hasGlobalWindow&&(QK=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var $K=QK,eq=.4,tq=`#333`,nq=`#ccc`,gbe=`#eee`,rq=`__zr_normal__`,iq=UG.concat([`ignore`]),_be=pU(UG,function(e,t){return e[t]=!0,e},{ignore:!1}),aq={},vbe=new iG(0,0,0,0),oq=[],sq=function(){function e(e){this.id=tU(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0;break}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=vbe,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(aq,n,d):SG(aq,n,d),i.x=aq.x,i.y=aq.y,a=aq.align,o=aq.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=xG(f[0],d.width),m=xG(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new iG(0,0,0,0);i.getLocalTransform(oq),FW(oq,oq),iG.copy(_,d),_.applyTransform(oq)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?nq:tq},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&TK(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,kK(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},aU(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(TU(e))for(var n=gU(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||=this._normalState={},e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,iq)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(rq,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===rq;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(cU(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){nU(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=dq(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,pq(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||=this.states[c],l&&r.push(l)}var u=r[a-1],d=this._textContent,f=dq(this,d,u,n);f&&!this.__inHover&&(this.__inHover=f);var p=this._mergeStates(r),m=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(`,`),p,this._normalState,!1,pq(this,t,m),m);var h=this._textGuide;d&&d.useStates(e,t,!!f),h&&h.useStates(e,t,!!f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=cU(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=cU(r,e),a=cU(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r<e.length;r++){var i=e[r];aU(t,i),i.textConfig&&(n||={},aU(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){if(this.__inHover!==1){var o=!(t&&r);t&&t.textConfig?(this.textConfig=aU({},r?this.textConfig:n.textConfig),aU(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<iq.length;l++){var u=iq[l],d=i&&_be[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(var l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)}},e.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new HG,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},aU(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=new XK(e?this[e]:this,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=cU(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){cq(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){cq(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=cq(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type=`element`,t.name=``,t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=0,t.__dirty=1;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}}Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}();uU(sq,ZK),uU(sq,HG);function cq(e,t,n,r,i){n||={};var a=[];uq(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function lq(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function ybe(e){return dU(e[0])}function bbe(e,t,n){if(dU(t[n]))if(dU(e[n])||(e[n]=[]),DU(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),lq(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(ybe(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?lq(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else lq(a,i,o);a.length=i.length}else e[n]=t[n]}function xbe(e,t){return e===t||dU(e)&&dU(t)&&Sbe(e,t)}function Sbe(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function uq(e,t,n,r,i,a,o,s){for(var c=gU(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!TU(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_]))if(TU(v)&&!dU(v)&&!kU(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}uq(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_);else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=cU(m,x);m.splice(S,1)}}if(i.force||(h=mU(h,function(e){return!xbe(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b<y;b++){var _=h[b];w[_]=n[_],f?C[_]=r[_]:n[_]=r[_]}}else if(f){T={};for(var b=0;b<y;b++){var _=h[b];T[_]=RK(n[_]),bbe(n,r,_)}}var x=new XK(n,!1,!1,d?mU(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),T&&x.whenWithKeys(0,T,h),x.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}function dq(e,t,n,r){return!(n&&n.hoverLayer||r)||fq(e)||t&&fq(t)?0:1}function fq(e){return e.type===`text`||e.type===`tspan`}function pq(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}var mq=`__zr_style_`+Math.round(Math.random()*10),hq={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},gq={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};hq[mq]=!0;var _q=[`z`,`z2`,`invisible`],Cbe=[`invisible`],vq=function(e){bW(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=gU(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(e){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&wbe(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new iG(0,0,0,0),t?iG.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new iG(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:aU(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return JU(hq,e)},t.prototype.useStyle=function(e){e[mq]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[mq]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,_q)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c=this.__inHover===1,l;if(n&&n.style?a?i?l=n.style:(l=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(l,n.style)):s&&(l=r.style),l)if(a){var u=this.style;if(this.style=this.createStyle(s?{}:u),s)for(var d=gU(u),f=0;f<d.length;f++){var p=d[f];p in l&&(l[p]=l[p],this.style[p]=u[p])}for(var m=gU(l),f=0;f<m.length;f++){var p=m[f];this.style[p]=this.style[p]}this._transitionState(t,{style:l},o,this.getAnimationStyleProps())}else c?this._useHoverStyle(l):this.useStyle(l);if(!c)for(var h=this.__inHover?Cbe:_q,f=0;f<h.length;f++){var p=h[f];n&&n[p]!=null?this[p]=n[p]:s&&r[p]!=null&&(this[p]=r[p])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r||={},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return aU(e,t),e},t.prototype.getAnimationStyleProps=function(){return gq},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(sq),yq=new iG(0,0,0,0),bq=new iG(0,0,0,0);function wbe(e,t,n){return yq.copy(e.getBoundingRect()),e.transform&&yq.applyTransform(e.transform),bq.width=t,bq.height=n,!yq.intersect(bq)}var xq=Math.min,Sq=Math.max,Cq=Math.sin,wq=Math.cos,Tq=Math.PI*2,Eq=IW(),Dq=IW(),Oq=IW();function kq(e,t,n,r,i,a){i[0]=xq(e,n),i[1]=xq(t,r),a[0]=Sq(e,n),a[1]=Sq(t,r)}var Aq=[],jq=[];function Tbe(e,t,n,r,i,a,o,s,c,l){var u=oK,d=rK,f=u(e,n,i,o,Aq);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,Aq[p]);c[0]=xq(m,c[0]),l[0]=Sq(m,l[0])}f=u(t,r,a,s,jq);for(var p=0;p<f;p++){var h=d(t,r,a,s,jq[p]);c[1]=xq(h,c[1]),l[1]=Sq(h,l[1])}c[0]=xq(e,c[0]),l[0]=Sq(e,l[0]),c[0]=xq(o,c[0]),l[0]=Sq(o,l[0]),c[1]=xq(t,c[1]),l[1]=Sq(t,l[1]),c[1]=xq(s,c[1]),l[1]=Sq(s,l[1])}function Ebe(e,t,n,r,i,a,o,s){var c=uK,l=cK,u=Sq(xq(c(e,n,i),1),0),d=Sq(xq(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=xq(e,i,f),o[1]=xq(t,a,p),s[0]=Sq(e,i,f),s[1]=Sq(t,a,p)}function Dbe(e,t,n,r,i,a,o,s,c){var l=UW,u=WW,d=Math.abs(i-a);if(d%Tq<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Eq[0]=wq(i)*n+e,Eq[1]=Cq(i)*r+t,Dq[0]=wq(a)*n+e,Dq[1]=Cq(a)*r+t,l(s,Eq,Dq),u(c,Eq,Dq),i%=Tq,i<0&&(i+=Tq),a%=Tq,a<0&&(a+=Tq),i>a&&!o?a+=Tq:i<a&&o&&(i+=Tq),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(Oq[0]=wq(p)*n+e,Oq[1]=Cq(p)*r+t,l(s,Oq,s),u(c,Oq,c))}var Mq={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Nq=[],Pq=[],Fq=[],Iq=[],Lq=[],Rq=[],zq=Math.min,Bq=Math.max,Vq=Math.cos,Hq=Math.sin,Uq=Math.abs,Wq=Math.PI,Gq=Wq*2,Kq=typeof Float32Array<`u`,qq=[];function Jq(e){return Math.round(e/Wq*1e8)/1e8%2*Wq}function Obe(e,t){var n=Jq(e[0]);n<0&&(n+=Gq);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Gq?i=n+Gq:t&&n-i>=Gq?i=n-Gq:!t&&n>i?i=n+(Gq-Jq(n-i)):t&&n<i&&(i=n-(Gq-Jq(i-n))),e[0]=n,e[1]=i}var Yq=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n||=0,n>0&&(this._ux=Uq(n/$K/e)||0,this._uy=Uq(n/$K/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Mq.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=Uq(e-this._xi),r=Uq(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(Mq.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(Mq.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(Mq.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),qq[0]=r,qq[1]=i,Obe(qq,a),r=qq[0],i=qq[1];var o=i-r;return this.addData(Mq.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=Vq(i)*n+e,this._yi=Hq(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(Mq.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Mq.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&Kq&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},e.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();var a=this.data;if(Kq&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+n),r>0&&a))for(var o=0;o<r;o++)this.data[o]=a[o];for(var i=0;i<t;i++)for(var s=e[i].data,o=0;o<s.length;o++)this.data[r++]=s[o];this._len=r}},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Kq&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Fq[0]=Fq[1]=Lq[0]=Lq[1]=Number.MAX_VALUE,Iq[0]=Iq[1]=Rq[0]=Rq[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case Mq.M:t=r=e[a++],n=i=e[a++],Lq[0]=r,Lq[1]=i,Rq[0]=r,Rq[1]=i;break;case Mq.L:kq(t,n,e[a],e[a+1],Lq,Rq),t=e[a++],n=e[a++];break;case Mq.C:Tbe(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],Lq,Rq),t=e[a++],n=e[a++];break;case Mq.Q:Ebe(t,n,e[a++],e[a++],e[a],e[a+1],Lq,Rq),t=e[a++],n=e[a++];break;case Mq.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=Vq(f)*u+c,i=Hq(f)*d+l),Dbe(c,l,u,d,f,p,m,Lq,Rq),t=Vq(p)*u+c,n=Hq(p)*d+l;break;case Mq.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];kq(r,i,r+h,i+g,Lq,Rq);break;case Mq.Z:t=r,n=i;break}UW(Fq,Fq,Lq),WW(Iq,Iq,Rq)}return a===0&&(Fq[0]=Fq[1]=Iq[0]=Iq[1]=0),new iG(Fq[0],Fq[1],Iq[0]-Fq[0],Iq[1]-Fq[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case Mq.M:i=o=e[d++],a=s=e[d++];break;case Mq.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(Uq(_)>n||Uq(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case Mq.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=ebe(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case Mq.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=rbe(i,a,y,b,h,g,10),i=h,a=g;break;case Mq.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=Vq(D)*T+C,s=Hq(D)*E+w),m=Bq(T,E)*zq(Gq,Math.abs(O)),i=Vq(k)*T+C,a=Hq(k)*E+w;break;case Mq.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case Mq.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s;break}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==Mq.L&&v>0&&(e.lineTo(y,b),v=0),S){case Mq.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case Mq.L:u=n[x++],d=n[x++];var w=Uq(u-c),T=Uq(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case Mq.C:var k=n[x++],A=n[x++],j=n[x++],M=n[x++],ee=n[x++],N=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;sK(c,k,j,ee,D,Nq),sK(l,A,M,N,D,Pq),e.bezierCurveTo(Nq[1],Pq[1],Nq[2],Pq[2],Nq[3],Pq[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,M,ee,N),c=ee,l=N;break;case Mq.Q:var k=n[x++],A=n[x++],j=n[x++],M=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;dK(c,k,j,D,Nq),dK(l,A,M,D,Pq),e.quadraticCurveTo(Nq[1],Pq[1],Nq[2],Pq[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,M),c=j,l=M;break;case Mq.A:var P=n[x++],F=n[x++],te=n[x++],ne=n[x++],re=n[x++],ie=n[x++],ae=n[x++],oe=!n[x++],se=te>ne?te:ne,ce=Uq(te-ne)>.001,le=re+ie,ue=!1;if(f){var E=p[g++];h+E>_&&(le=re+ie*(_-h)/E,ue=!0),h+=E}if(ce&&e.ellipse?e.ellipse(P,F,te,ne,ae,re,le,oe):e.arc(P,F,se,re,le,oe),ue)break lo;C&&(o=Vq(re)*te+P,s=Hq(re)*ne+F),c=Vq(le)*te+P,l=Hq(le)*ne+F;break;case Mq.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var de=n[x++],fe=n[x++];if(f){var E=p[g++];if(h+E>_){var pe=_-h;e.moveTo(u,d),e.lineTo(u+zq(pe,de),d),pe-=de,pe>0&&e.lineTo(u+de,d+zq(pe,fe)),pe-=fe,pe>0&&e.lineTo(u+Bq(de-pe,0),d+fe),pe-=de,pe>0&&e.lineTo(u,d+Bq(fe-pe,0));break lo}h+=E}e.rect(u,d,de,fe);break;case Mq.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=Mq,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function Xq(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}function kbe(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:$ye(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function Abe(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:nbe(e,t,n,r,i,a,s,c,null)<=l/2}var Zq=Math.PI*2;function Qq(e){return e%=Zq,e<0&&(e+=Zq),e}var $q=Math.PI*2;function jbe(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%$q<1e-4)return!0;if(a){var d=r;r=Qq(i),i=Qq(d)}else r=Qq(r),i=Qq(i);r>i&&(i+=$q);var f=Math.atan2(c,s);return f<0&&(f+=$q),f>=r&&f<=i||f+$q>=r&&f+$q<=i}function eJ(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var tJ=Yq.CMD,nJ=Math.PI*2,Mbe=1e-4;function Nbe(e,t){return Math.abs(e-t)<Mbe}var rJ=[-1,-1,-1],iJ=[-1,-1];function Pbe(){var e=iJ[0];iJ[0]=iJ[1],iJ[1]=e}function Fbe(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=aK(t,r,a,s,l,rJ);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=rJ[h],_=g===0||g===1?.5:1;rK(e,n,i,o,g)<c||(f<0&&(f=oK(t,r,a,s,iJ),iJ[1]<iJ[0]&&f>1&&Pbe(),p=rK(t,r,a,s,iJ[0]),f>1&&(m=rK(t,r,a,s,iJ[1]))),f===2?g<iJ[0]?d+=p<t?_:-_:g<iJ[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<iJ[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function Ibe(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=tbe(t,r,a,s,rJ);if(c===0)return 0;var l=uK(t,r,a);if(l>=0&&l<=1){for(var u=0,d=cK(t,r,a,l),f=0;f<c;f++){var p=rJ[f]===0||rJ[f]===1?.5:1,m=cK(e,n,i,rJ[f]);m<o||(rJ[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}else{var p=rJ[0]===0||rJ[0]===1?.5:1,m=cK(e,n,i,rJ[0]);return m<o?0:a<t?p:-p}}function Lbe(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);rJ[0]=-c,rJ[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=nJ-1e-4){r=0,i=nJ;var u=a?1:-1;return o>=rJ[0]+e&&o<=rJ[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=nJ,i+=nJ);for(var f=0,p=0;p<2;p++){var m=rJ[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=nJ+h),(h>=r&&h<=i||h+nJ>=r&&h+nJ<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function aJ(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===tJ.M&&m>1&&(n||(s+=eJ(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case tJ.M:u=a[m++],d=a[m++],c=u,l=d;break;case tJ.L:if(n){if(Xq(c,l,a[m],a[m+1],t,r,i))return!0}else s+=eJ(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case tJ.C:if(n){if(kbe(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Fbe(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case tJ.Q:if(n){if(Abe(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Ibe(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case tJ.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=eJ(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(jbe(_,v,b,x,x+S,C,t,w,i))return!0}else s+=Lbe(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case tJ.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(Xq(u,d,f,d,t,r,i)||Xq(f,d,f,p,t,r,i)||Xq(f,p,u,p,t,r,i)||Xq(u,p,u,d,t,r,i))return!0}else s+=eJ(f,d,f,p,r,i),s+=eJ(u,p,u,d,r,i);break;case tJ.Z:if(n){if(Xq(c,l,u,d,t,r,i))return!0}else s+=eJ(c,l,u,d,r,i);c=u,l=d;break}}return!n&&!Nbe(l,d)&&(s+=eJ(c,l,u,d,r,i)||0),s!==0}function Rbe(e,t,n){return aJ(e,0,!1,t,n)}function zbe(e,t,n,r){return aJ(e,t,!0,n,r)}var oJ=sU({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},hq),Bbe={style:sU({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},gq.style)},sJ=UG.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),cJ=function(e){bW(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<sJ.length;++s)i[sJ[s]]=this[sJ[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=gU(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?aU(this.style,o):this.useStyle(o):a===`shape`?aU(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(SU(e)){var t=AK(e,0);return t>.5?tq:t>.2?gbe:nq}else if(e)return nq}return tq},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(SU(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==AK(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Yq(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),zbe(a,o/s,e,t)))return!0}if(this.hasFill())return Rbe(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:aU(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return JU(oJ,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=aU({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=aU({},r.shape),aU(c,n.shape)):(c=aU({},i?this.shape:r.shape),aU(c,n.shape)):s&&(c=r.shape),c)if(a){this.shape=aU({},this.shape);for(var l={},u=gU(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r||={},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return Bbe},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){bW(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return rU(e.style)},n.prototype.getDefaultShape=function(){return rU(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(vq),Vbe=sU({strokeFirst:!0,font:FH,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},oJ),lJ=function(e){bW(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return PG(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return JU(Vbe,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=Zye(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(vq);lJ.prototype.type=`tspan`;var Hbe=sU({x:0,y:0},hq),Ube={style:sU({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},gq.style)};function Wbe(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var uJ=function(e){bW(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return JU(Hbe,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=Wbe(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return Ube},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new iG(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(vq);uJ.prototype.type=`image`;function Gbe(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var dJ=Math.round;function fJ(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(dJ(r*2)===dJ(i*2)&&(e.x1=e.x2=mJ(r,s,!0)),dJ(a*2)===dJ(o*2)&&(e.y1=e.y2=mJ(a,s,!0)),e):e}}function pJ(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=mJ(r,s,!0),e.y=mJ(i,s,!0),e.width=Math.max(mJ(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(mJ(i+o,s,!1)-e.y,o===0?0:1),e):e}}function mJ(e,t,n){if(!t)return e;var r=dJ(e*2);return(r+dJ(t))%2==0?r/2:(r+(n?1:-1))/2}var Kbe=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),qbe={},hJ=function(e){bW(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Kbe},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=pJ(qbe,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?Gbe(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(cJ);hJ.prototype.type=`rect`;var gJ={fill:`#000`},_J=2,vJ={},Jbe={style:sU({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},gq.style)},yJ=function(e){bW(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=gJ,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,$be(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new iG(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r||=e.clone(),r.union(e)):(r||=o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||gJ},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return aU(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=gU(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},aU(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return Jbe},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=this._defaultStyle,i=e.x||0,a=e.y||0,o=e.align||r.align||`left`,s=e.verticalAlign||r.verticalAlign||`top`;kG(vJ,r.overflowRect,i,a,o,s),i=vJ.baseX,a=vJ.baseY;var c=Wye(EJ(e),e,vJ.outerWidth,vJ.outerHeight),l=DJ(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=yG(a,c.contentHeight,s);if(l||n){var _=vG(i,f,o),v=yG(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=TJ(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=wJ(`fill`in e?e.fill:(x=!0,r.fill)),C=CJ(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=_J,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(lJ),D=E.createStyle();E.useStyle(D),D.text=p[T],D.x=h,D.y=g,o&&(D.textAlign=o),D.textBaseline=`middle`,D.opacity=e.opacity,D.strokeFirst=!0,w&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||`transparent`,D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=C,D.fill=S,C&&(D.lineWidth=e.lineWidth||y,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,xJ(D,e),g+=m,E.setBoundingRect(NG(D,c.contentWidth,c.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,n=e.align||t.align,r=e.verticalAlign||t.verticalAlign,i=e.x||0,a=e.y||0;kG(vJ,t.overflowRect,i,a,n,r),i=vJ.baseX,a=vJ.baseY;var o=qye(EJ(e),e,vJ.outerWidth,vJ.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=vG(i,c,n),f=yG(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;DJ(e)&&this._renderBackground(e,e,d,f,c,l);for(var g=!!e.backgroundColor,_=0;_<o.lines.length;_++){for(var v=o.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&DJ(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=TJ(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(lJ),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=wJ(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=CJ(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=_J,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=PU(s.opacity,t.opacity,1),xJ(p,s),y&&(p.lineWidth=PU(s.lineWidth,t.lineWidth,g),p.lineDash=NU(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(NG(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(hJ),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=NU(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(uJ),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=NU(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=PU(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return Qbe(e)&&(t=[e.fontStyle,e.fontWeight,Zbe(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&RU(t)||e.textFont||e.font},t}(vq),Ybe={left:!0,right:1,center:1},Xbe={top:1,bottom:1,middle:1},bJ=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function Zbe(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function xJ(e,t){for(var n=0;n<bJ.length;n++){var r=bJ[n],i=t[r];i!=null&&(e[r]=i)}}function Qbe(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function $be(e){return SJ(e),$(e.rich,SJ),e}function SJ(e){if(e){e.font=yJ.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||Ybe[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||Xbe[n]?n:`top`,e.padding&&=IU(e.padding)}}function CJ(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function wJ(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function TJ(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function EJ(e){var t=e.text;return t!=null&&(t+=``),t}function DJ(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var OJ=1e-4,kJ=20;function exe(e){return e.replace(/^\s+|\s+$/g,``)}var AJ=Math.min,jJ=Math.max,MJ=Math.abs,NJ=Math.round,PJ=Math.floor,FJ=Math.ceil,IJ=Math.pow,LJ=Math.log,RJ=Math.LN10,txe=Math.PI,nxe=Math.random;function zJ(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var BJ=rxe;function rxe(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`;break}return VJ(e,t,n)}function VJ(e,t,n){return SU(e)?ixe(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function ixe(e){return!!exe(e).match(/%$/)}function HJ(e,t,n){return isNaN(t)?n?``+e:+e:(t=AJ(jJ(0,t),kJ),e=(+e).toFixed(t),n?e:+e)}function UJ(e){return e.sort(function(e,t){return e-t}),e}function WJ(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(NJ(e*t)/t===e)return n}return axe(e)}function axe(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return jJ(0,(a<0?0:i-1-a)-r)}function oxe(e,t,n){var r=MJ(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=LJ(2*MJ(n||1)*MJ(r))/RJ,a=LJ(MJ(t))/RJ,o=jJ(0,FJ(-i+a));return isFinite(o)||(o=NaN),o}function sxe(e,t){var n=jJ(WJ(e),WJ(t)),r=e+t;return n>kJ?r:HJ(r,n)}var GJ=IJ(2,53)-1;function KJ(e){var t=txe*2;return(e%t+t)%t}function qJ(e){return e>-OJ&&e<OJ}var cxe=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function JJ(e){if(e instanceof Date)return e;if(SU(e)){var t=cxe.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(NJ(e))}function YJ(e){return IJ(10,XJ(e))}function XJ(e){if(e===0)return 0;var t=PJ(LJ(e)/RJ);return e/IJ(10,t)>=10&&t++,t}function ZJ(e,t){var n=XJ(e),r=IJ(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,HJ(e,-n)}function QJ(e){var t=parseFloat(e);return t==e&&(t!==0||!SU(e)||e.indexOf(`x`)<=0)?t:NaN}function lxe(e){return!isNaN(QJ(e))}function $J(){return NJ(nxe()*9)}function eY(e,t){return t===0?e:eY(t,e%t)}function tY(e,t){return e==null?t:t==null?e:e*t/eY(e,t)}function nY(e){return e!=null&&isFinite(e)}var uxe=`[ECharts] `,rY={},dxe=typeof console<`u`&&console.warn&&console.log;function fxe(e,t,n){if(dxe){if(n){if(rY[t])return;rY[t]=!0}console[e](uxe+t)}}function iY(e,t){fxe(`error`,e,t)}function aY(e){throw Error(e)}function oY(e,t,n){return(t-e)*n+e}var sY=`series\0`,pxe=`\0_ec_\0`;function cY(e){return e instanceof Array?e:e==null?[]:[e]}function lY(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var uY=`fontStyle.fontWeight.fontSize.fontFamily.rich.tag.color.textBorderColor.textBorderWidth.width.height.lineHeight.align.verticalAlign.baseline.shadowColor.shadowBlur.shadowOffsetX.shadowOffsetY.textShadowColor.textShadowBlur.textShadowOffsetX.textShadowOffsetY.backgroundColor.borderColor.borderWidth.borderRadius.padding`.split(`.`);function dY(e){return TU(e)&&!bU(e)&&!(e instanceof Date)?e.value:e}function mxe(e){return TU(e)&&!(e instanceof Array)}function hxe(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=KU();$(t,function(e,n){if(!TU(e)){t[n]=null;return}});var s=gxe(e,o,n);return(r||i)&&_xe(s,e,o,t),r&&vxe(s,t),r||i?yxe(s,t,i):a&&bxe(s,t),xxe(s),s}function gxe(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||gY(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function _xe(e,t,n,r){$(r,function(i,a){if(!(!i||i.id==null)){var o=pY(i.id),s=n.get(o);if(s!=null){var c=e[s];LU(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function vxe(e,t){$(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!gY(n)&&!gY(a)&&fY(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function yxe(e,t,n){$(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||gY(r.existing)||r.existing&&t.id!=null&&!fY(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function bxe(e,t){$(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function xxe(e){var t=KU();$(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),$(e,function(e){var n=e.newOption;LU(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),$(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(TU(i)){if(a.name=i.name==null?r?r.name:sY+n:pY(i.name),r)a.id=pY(r.id);else if(i.id!=null)a.id=pY(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+o++;while(t.get(a.id))}t.set(a.id,e)}})}function fY(e,t,n){var r=mY(t[e],null),i=mY(n[e],null);return r!=null&&i!=null&&r===i}function pY(e){return mY(e,``)}function mY(e,t){return e==null?t:SU(e)?e:wU(e)||CU(e)?e+``:t}function hY(e){var t=e.name;return!!(t&&t.indexOf(sY))}function gY(e){return e&&e.id!=null&&pY(e.id).indexOf(pxe)===0}function Sxe(e,t,n){$(e,function(e){var r=e.newOption;TU(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=Cxe(t,r,e.existing,n))})}function Cxe(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function _Y(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return bU(t.dataIndex)?fU(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return bU(t.name)?fU(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function vY(){var e=`__ec_inner_`+wxe++;return function(t){return t[e]||(t[e]={})}}var wxe=$J();function yY(e,t,n){var r=bY(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=SY(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function bY(e,t){var n;if(SU(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=KU(),a={},o=!1;return $(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&cU(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var xY={useDefault:!0,enableAll:!1,enableNone:!1};function SY(e,t,n,r){r||=xY;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}if(i===`none`||i===!1){if(r.enableNone)return s.models=[],s;i=-1}return i===`all`&&(i=r.enableAll?a=o=null:-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function Txe(e,t,n){var r={};r[t+`Id`]=e[t+`Id`],r[t+`Index`]=e[t+`Index`],r[t+`Name`]=e[t+`Name`];var i={mainType:t,query:r};return n&&(i.subType=n),i}function CY(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Exe(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Dxe(e){return e===`auto`?eW.domSupported?`html`:`richText`:e||`html`}function Oxe(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(wU(r)){var o=oY(n||0,r,i);return HJ(o,a?Math.max(WJ(n||0),WJ(r)):t)}else if(SU(r))return i<1?n:r;else{for(var s=[],c=n,l=r,u=Math.max(c?c.length:0,l.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type===`ordinal`)s[d]=(i<1&&c?c:l)[d];else{var p=c&&c[d]?c[d]:0,m=l[d],o=oY(p,m,i);s[d]=HJ(o,a?Math.max(WJ(p),WJ(m)):t)}}return s}}(function(){function e(){}return e.prototype.reset=function(e,t,n,r){return this._list=e,this._step=r||=1,this._idx=t,this._end=n??(r>0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0):!1},e})();function wY(){return[1/0,-1/0]}function TY(e,t){OY(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function EY(e,t){OY(t)&&t<e[0]&&(e[0]=t)}function DY(e,t){OY(t)&&t>e[1]&&(e[1]=t)}function kxe(e,t){kY(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function OY(e){return e!=null&&isFinite(e)}function kY(e,t){return OY(e)&&OY(t)&&e<=t}function Axe(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function jxe(e){kY(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function AY(){var e=`__ec_once_`+Mxe++;return function(t,n){XU(t,e)||(t[e]=1,n())}}var Mxe=$J();function jY(e,t,n){var r=KU(),i=0;$(e,function(a){var o=t(a),s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function Nxe(e){return e.value+``}function Pxe(e){return e+``}function Fxe(e,t){return NU(t,!0)?e.seriesIndex+2:0}function MY(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function NY(e){return{overallReset:e}}var PY=vY(),Ixe=function(e,t,n,r){if(r){var i=PY(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=PY(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},FY=KU([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),IY=`original`,LY=`arrayRows`,RY=`objectRows`,zY=`keyedColumns`,BY=`typedArray`,Lxe=`unknown`,VY=`column`,Rxe=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],HY=function(){function e(e){$(Rxe,function(t){this[t]=vU(e[t],e)},this)}return e}();function zxe(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var UY=1,WY={},GY=vY(),KY=vY(),qY=[`emphasis`,`blur`,`select`],JY=[`normal`,`emphasis`,`blur`,`select`],YY=`highlight`,XY=`downplay`,ZY=`select`,QY=`unselect`,$Y=`toggleSelect`,eX=`selectchanged`;function tX(e){return e!=null&&e!==`none`}function nX(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function rX(e){nX(e,`emphasis`,2)}function iX(e){e.hoverState===2&&nX(e,`normal`,0)}function aX(e){nX(e,`blur`,1)}function oX(e){e.hoverState===1&&nX(e,`normal`,0)}function Bxe(e){e.selected=!0}function Vxe(e){e.selected=!1}function sX(e,t,n){t(e,n)}function cX(e,t,n){sX(e,t,n),e.isGroup&&e.traverse(function(e){sX(e,t,n)})}function lX(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function Hxe(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}function Uxe(e,t,n,r){var i=n&&cU(n,`select`)>=0,a=!1;if(e instanceof cJ){var o=GY(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(tX(s)||tX(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=aU({},r),l=aU({},l),l.fill=s):!tX(l.fill)&&tX(s)?(a=!0,r=aU({},r),l=aU({},l),l.fill=MK(s)):!tX(l.stroke)&&tX(c)&&(a||(r=aU({},r),l=aU({},l)),l.stroke=MK(c)),r.style=l}}if(r&&r.z2==null){a||(r=aU({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Wxe(e,t,n){if(n&&n.z2==null){n=aU({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function Gxe(e,t,n){var r=cU(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Hxe(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=aU({},n),o=aU({opacity:r?i:a.opacity*.1},o),n.style=o),n}function uX(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return Uxe(this,e,t,n);if(e===`blur`)return Gxe(this,e,n);if(e===`select`)return Wxe(this,e,n)}return n}function Kxe(e){e.stateProxy=uX;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=uX),n&&(n.stateProxy=uX)}function dX(e,t){!vX(e,t)&&!e.__highByOuter&&cX(e,rX)}function fX(e,t){!vX(e,t)&&!e.__highByOuter&&cX(e,iX)}function pX(e,t){e.__highByOuter|=1<<(t||0),cX(e,rX)}function mX(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&cX(e,iX)}function qxe(e){cX(e,aX)}function hX(e){cX(e,oX)}function gX(e){cX(e,Bxe)}function _X(e){cX(e,Vxe)}function vX(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function yX(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=KY(i),o=zxe(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){oX(e)}),s&&n.push(i)),a.isBlured=!1}),$(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function bX(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&hX(r)}}if(e!=null&&!(!t||t===`none`)){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||aX(e)}),dU(t))a(e.getData(),t);else if(TU(t))for(var u=gU(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),KY(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function xX(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){KY(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){aX(e)})}}}function Jxe(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=_Y(i,t);a=(bU(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=PY(o);bX(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&bX(r,u,d,n)}}}function SX(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if(PY(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function Yxe(e,t,n){var r=PY(e),i=SX(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&xX(r.componentMainType,r.componentIndex,n),$(a,function(e){return dX(e,t)})):(bX(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&xX(r.componentMainType,r.componentIndex,n),dX(e,t))}function Xxe(e,t,n){yX(n);var r=PY(e),i=SX(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?$(i,function(e){return fX(e,t)}):fX(e,t)}function Zxe(e,t,n){if(AX(t)){var r=t.dataType,i=_Y(e.getData(r),t);bU(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function CX(e){$(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?gX(t):_X(t)})})}function Qxe(e){var t=[];return e.eachSeries(function(e){$(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function wX(e,t,n){OX(e,!0),cX(e,Kxe),eSe(e,t,n)}function $xe(e){OX(e,!1)}function TX(e,t,n,r){r?$xe(e):wX(e,t,n)}function eSe(e,t,n){var r=PY(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var EX=[`emphasis`,`blur`,`select`],tSe={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function DX(e,t,n,r){n||=`itemStyle`;for(var i=0;i<EX.length;i++){var a=EX[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[tSe[n]]()}}function OX(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function kX(e){return!!(e&&e.__highDownDispatcher)}function nSe(e){var t=WY[e];return t==null&&UY<=32&&(t=WY[e]=UY++),t}function AX(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function jX(e){var t=e.type;return t===`highlight`||t===`downplay`}function rSe(e){var t=GY(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var MX=Yq.CMD,iSe=[[],[],[]],NX=Math.sqrt,aSe=Math.atan2;function oSe(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=MX.M,d=MX.C,f=MX.L,p=MX.R,m=MX.A,h=MX.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=NX(t[0]*t[0]+t[1]*t[1]),y=NX(t[2]*t[2]+t[3]*t[3]),b=aSe(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],HW(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],HW(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=iSe[c];x[0]=n[o++],x[1]=n[o++],HW(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var PX=Math.sqrt,FX=Math.sin,IX=Math.cos,LX=Math.PI;function RX(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function zX(e,t){return(e[0]*t[0]+e[1]*t[1])/(RX(e)*RX(t))}function BX(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(zX(e,t))}function VX(e,t,n,r,i,a,o,s,c,l,u){var d=LX/180*c,f=IX(d)*(e-n)/2+FX(d)*(t-r)/2,p=-1*FX(d)*(e-n)/2+IX(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=PX(m),s*=PX(m));var h=(i===a?-1:1)*PX((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+IX(d)*g-FX(d)*_,y=(t+r)/2+FX(d)*g+IX(d)*_,b=BX([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=BX(x,S);if(zX(x,S)<=-1&&(C=LX),zX(x,S)>=1&&(C=0),C<0){var w=Math.round(C/LX*1e6)/1e6;C=LX*2+w%2*LX}u.addData(l,v,y,o,s,b,C,d,a)}var sSe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,cSe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function lSe(e){var t=new Yq;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=Yq.CMD,c=e.match(sSe);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(cSe)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,VX(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,VX(w,T,n,r,S,C,y,b,x,f,t);break}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}var HX=function(e){bW(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(cJ);function UX(e){return e.setData!=null}function WX(e,t){var n=lSe(e),r=aU({},t);return r.buildPath=function(e){var t=UX(e);if(t&&e.canSave()){e.appendPath(n);var r=e.getContext();r&&e.rebuildPath(r,1)}else{var r=t?e.getContext():e;r&&n.rebuildPath(r,1)}},r.applyTransform=function(e){oSe(n,e),this.dirtyShape()},r}function uSe(e,t){return new HX(WX(e,t))}function dSe(e,t){var n=WX(e,t);return function(e){bW(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(HX)}function fSe(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new cJ(t);return o.createPathProxy(),o.buildPath=function(e){if(UX(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}var GX=function(e){bW(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=cU(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=cU(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new iG(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!(o.ignore||o.invisible)){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(iG.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(sq);GX.prototype.type=`group`;var pSe=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),KX=function(e){bW(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new pSe},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(cJ);KX.prototype.type=`circle`;var mSe=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),qX=function(e){bW(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new mSe},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(cJ);qX.prototype.type=`ellipse`;var JX=Math.PI,YX=JX*2,XX=Math.sin,ZX=Math.cos,hSe=Math.acos,QX=Math.atan2,$X=Math.abs,eZ=Math.sqrt,tZ=Math.max,nZ=Math.min,rZ=1e-4;function gSe(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<rZ))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function iZ(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/eZ(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*eZ(tZ(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function _Se(e){var t;if(bU(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function vSe(e,t){var n,r=tZ(t.r,0),i=tZ(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=$X(c-s),p=f>YX&&f%YX;if(p>rZ&&(f=p),!(r>rZ))e.moveTo(l,u);else if(f>YX-rZ)e.moveTo(l+r*ZX(s),u+r*XX(s)),e.arc(l,u,r,s,c,!d),i>rZ&&(e.moveTo(l+i*ZX(c),u+i*XX(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*ZX(s),j=r*XX(s),M=i*ZX(c),ee=i*XX(c),N=f>rZ;if(N){var P=t.cornerRadius;P&&(n=_Se(P),m=n[0],h=n[1],g=n[2],_=n[3]);var F=$X(r-i)/2;if(v=nZ(F,g),y=nZ(F,_),b=nZ(F,m),x=nZ(F,h),w=S=tZ(v,y),T=C=tZ(b,x),(S>rZ||C>rZ)&&(E=r*ZX(c),D=r*XX(c),O=i*ZX(s),k=i*XX(s),f<JX)){var te=gSe(A,j,O,k,E,D,M,ee);if(te){var ne=A-te[0],re=j-te[1],ie=E-te[0],ae=D-te[1],oe=1/XX(hSe((ne*ie+re*ae)/(eZ(ne*ne+re*re)*eZ(ie*ie+ae*ae)))/2),se=eZ(te[0]*te[0]+te[1]*te[1]);w=nZ(S,(r-se)/(oe+1)),T=nZ(C,(i-se)/(oe-1))}}}if(!N)e.moveTo(l+A,u+j);else if(w>rZ){var ce=nZ(g,w),le=nZ(_,w),ue=iZ(O,k,A,j,r,ce,d),de=iZ(E,D,M,ee,r,le,d);e.moveTo(l+ue.cx+ue.x0,u+ue.cy+ue.y0),w<S&&ce===le?e.arc(l+ue.cx,u+ue.cy,w,QX(ue.y0,ue.x0),QX(de.y0,de.x0),!d):(ce>0&&e.arc(l+ue.cx,u+ue.cy,ce,QX(ue.y0,ue.x0),QX(ue.y1,ue.x1),!d),e.arc(l,u,r,QX(ue.cy+ue.y1,ue.cx+ue.x1),QX(de.cy+de.y1,de.cx+de.x1),!d),le>0&&e.arc(l+de.cx,u+de.cy,le,QX(de.y1,de.x1),QX(de.y0,de.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>rZ)||!N)e.lineTo(l+M,u+ee);else if(T>rZ){var ce=nZ(m,T),le=nZ(h,T),ue=iZ(M,ee,E,D,i,-le,d),de=iZ(A,j,O,k,i,-ce,d);e.lineTo(l+ue.cx+ue.x0,u+ue.cy+ue.y0),T<C&&ce===le?e.arc(l+ue.cx,u+ue.cy,T,QX(ue.y0,ue.x0),QX(de.y0,de.x0),!d):(le>0&&e.arc(l+ue.cx,u+ue.cy,le,QX(ue.y0,ue.x0),QX(ue.y1,ue.x1),!d),e.arc(l,u,i,QX(ue.cy+ue.y1,ue.cx+ue.x1),QX(de.cy+de.y1,de.cx+de.x1),d),ce>0&&e.arc(l+de.cx,u+de.cy,ce,QX(de.y1,de.x1),QX(de.y0,de.x0),!d))}else e.lineTo(l+M,u+ee),e.arc(l,u,i,c,s,d)}e.closePath()}}}var ySe=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),aZ=function(e){bW(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ySe},t.prototype.buildPath=function(e,t){vSe(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(cJ);aZ.prototype.type=`sector`;var bSe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),oZ=function(e){bW(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new bSe},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(cJ);oZ.prototype.type=`ring`;function xSe(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)UW(u,u,e[f]),WW(d,d,e[f]);UW(u,u,r[0]),WW(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(Aye(e[f]));continue}else c=e[f-1],l=e[f+1];jye(a,l,c),zW(a,a,t);var h=BW(m,c),g=BW(m,l),_=h+g;_!==0&&(h/=_,g/=_),zW(o,a,-h),zW(s,a,g);var v=RW([],m,o),y=RW([],m,s);r&&(WW(v,v,u),UW(v,v,d),WW(y,y,u),UW(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function sZ(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=xSe(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var SSe=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),cZ=function(e){bW(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new SSe},t.prototype.buildPath=function(e,t){sZ(e,t,!0)},t}(cJ);cZ.prototype.type=`polygon`;var CSe=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),lZ=function(e){bW(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new CSe},t.prototype.buildPath=function(e,t){sZ(e,t,!1)},t}(cJ);lZ.prototype.type=`polyline`;var wSe={},TSe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),uZ=function(e){bW(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new TSe},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=fJ(wSe,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(cJ);uZ.prototype.type=`line`;var dZ=[],ESe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function fZ(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?iK:rK)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?iK:rK)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?lK:cK)(e.x1,e.cpx1,e.x2,t),(n?lK:cK)(e.y1,e.cpy1,e.y2,t)]}var pZ=function(e){bW(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new ESe},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(dK(n,o,i,u,dZ),o=dZ[1],i=dZ[2],dK(r,s,a,u,dZ),s=dZ[1],a=dZ[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(sK(n,o,c,i,u,dZ),o=dZ[1],c=dZ[2],i=dZ[3],sK(r,s,l,a,u,dZ),s=dZ[1],l=dZ[2],a=dZ[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return fZ(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=fZ(this.shape,e,!0);return Pye(t,t)},t}(cJ);pZ.prototype.type=`bezier-curve`;var DSe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),mZ=function(e){bW(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new DSe},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(cJ);mZ.prototype.type=`arc`;var OSe=function(e){bW(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),cJ.prototype.getBoundingRect.call(this)},t}(cJ),hZ=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),gZ=function(e){bW(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return t}(hZ),kSe=function(e){bW(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return t}(hZ),_Z=Math.min,ASe=Math.max,vZ=Math.abs,yZ=[0,0],bZ=[0,0],xZ=lG(),SZ=xZ.minTv,CZ=xZ.maxTv,wZ=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new GW;for(var n=0;n<2;n++)this._axes[n]=new GW;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);GW.sub(r[0],n[1],n[0]),GW.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t,n){var r=!0,i=!t;return t&&GW.set(t,0,0),xZ.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!xZ.negativeSize&&GW.copy(t,r?xZ.useDir?xZ.dirMinTv:SZ:CZ),r},e.prototype._intersectCheckOneSide=function(e,t,n,r){for(var i=!0,a=0;a<2;a++){var o=e._axes[a];if(e._getProjMinMaxOnAxis(a,e._corners,yZ),e._getProjMinMaxOnAxis(a,t._corners,bZ),xZ.negativeSize||yZ[1]<bZ[0]||yZ[0]>bZ[1]){if(i=!1,xZ.negativeSize||n)return i;var s=vZ(bZ[0]-yZ[1]),c=vZ(yZ[0]-bZ[1]);_Z(s,c)>CZ.len()&&(s<c?GW.scale(CZ,o,-s*r):GW.scale(CZ,o,c*r))}else if(!n){var s=vZ(bZ[0]-yZ[1]),c=vZ(yZ[0]-bZ[1]);(xZ.useDir||_Z(s,c)<SZ.len())&&((s<c||!xZ.bidirectional)&&(GW.scale(SZ,o,s*r),xZ.useDir&&xZ.calcDirMTV()),(s>=c||!xZ.bidirectional)&&(GW.scale(SZ,o,-c*r),xZ.useDir&&xZ.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=_Z(l,o),s=ASe(l,s)}n[0]=o+xZ.touchThreshold,n[1]=s-xZ.touchThreshold,xZ.negativeSize=n[1]<n[0]},e}(),jSe=[],MSe=function(e){bW(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=1,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new iG(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(jSe)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(vq),NSe=vY();function PSe(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=NU(r.duration,200),u=NU(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),xU(d)&&(d=d(n,i)),xU(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}else return null}function TZ(e,t,n,r,i,a,o){var s=!1,c;xU(i)?(o=a,a=i,i=null):TU(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=PSe(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function EZ(e,t,n,r,i,a){TZ(`update`,e,t,n,r,i,a)}function DZ(e,t,n,r,i,a){TZ(`enter`,e,t,n,r,i,a)}function OZ(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function kZ(e,t,n,r,i,a){OZ(e)||TZ(`leave`,e,t,n,r,i,a)}function AZ(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),kZ(e,{style:{opacity:0}},t,n,r)}function jZ(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||AZ(e,t,n,r)}):AZ(e,t,n,r)}function MZ(e){NSe(e).oldStyle=e.style}var FSe=t({Arc:()=>mZ,BezierCurve:()=>pZ,BoundingRect:()=>iG,Circle:()=>KX,CompoundPath:()=>OSe,Ellipse:()=>qX,Group:()=>GX,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>uJ,IncrementalDisplayable:()=>MSe,Line:()=>uZ,LinearGradient:()=>gZ,OrientedBoundingRect:()=>wZ,Path:()=>cJ,Point:()=>GW,Polygon:()=>cZ,Polyline:()=>lZ,RadialGradient:()=>kSe,Rect:()=>hJ,Ring:()=>oZ,Sector:()=>aZ,Text:()=>yJ,WH:()=>FZ,XY:()=>PZ,applyTransform:()=>HZ,calcZ2Range:()=>XSe,clipPointsByRect:()=>KSe,clipRectByRect:()=>qSe,createIcon:()=>GZ,decomposeTransform:()=>QSe,ensureCopyRect:()=>nQ,ensureCopyTransform:()=>rQ,expandOrShrinkRect:()=>JZ,extendPath:()=>RSe,extendShape:()=>ISe,getCurrentCanvasPainter:()=>$Se,getShapeClass:()=>zSe,getTransform:()=>USe,groupTransition:()=>WZ,initProps:()=>DZ,isBoundingRectAxisAligned:()=>eQ,isElementRemoved:()=>OZ,lineLineIntersect:()=>KZ,linePolygonIntersect:()=>JSe,makeImage:()=>RZ,makePath:()=>LZ,mergePath:()=>BSe,payloadDisableAnimation:()=>ZSe,registerShape:()=>IZ,removeElement:()=>kZ,removeElementWithFadeOut:()=>jZ,resizePath:()=>BZ,retrieveZInfo:()=>iQ,setTooltipConfig:()=>ZZ,subPixelOptimize:()=>HSe,subPixelOptimizeLine:()=>VZ,subPixelOptimizeRect:()=>VSe,transformDirection:()=>WSe,traverseElements:()=>$Z,traverseUpdateZ:()=>aQ,updateProps:()=>EZ}),NZ={},PZ=[`x`,`y`],FZ=[`width`,`height`];function ISe(e){return cJ.extend(e)}var LSe=dSe;function RSe(e,t){return LSe(e,t)}function IZ(e,t){NZ[e]=t}function zSe(e){if(NZ.hasOwnProperty(e))return NZ[e]}function LZ(e,t,n,r){var i=uSe(e,t);return n&&(r===`center`&&(n=zZ(n,i.getBoundingRect())),BZ(i,n)),i}function RZ(e,t,n){var r=new uJ({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(zZ(t,i))}}});return r}function zZ(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var BSe=fSe;function BZ(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function VZ(e,t){return fJ(e,e,{lineWidth:t}),e}function VSe(e,t){return pJ(e,e,t),e}var HSe=mJ;function USe(e,t){for(var n=AW([]);e&&e!==t;)MW(n,e.getLocalTransform(),n),e=e.parent;return n}function HZ(e,t,n){return t&&!dU(t)&&(t=HG.getLocalTransform(t)),n&&(t=FW([],t)),HW([],e,t)}function WSe(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:MJ(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:MJ(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=HZ(a,t,n),MJ(a[0])>MJ(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function UZ(e){return!e.isGroup}function GSe(e){return e.shape!=null}function WZ(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){UZ(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return GSe(e)&&(t.shape=rU(e.shape)),t}var a=r(e);t.traverse(function(e){if(UZ(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),EZ(e,r,n,PY(e).dataIndex)}}})}function KSe(e,t){return fU(e,function(e){var n=e[0];n=jJ(n,t.x),n=AJ(n,t.x+t.width);var r=e[1];return r=jJ(r,t.y),r=AJ(r,t.y+t.height),[n,r]})}function qSe(e,t){var n=jJ(e.x,t.x),r=AJ(e.x+e.width,t.x+t.width),i=jJ(e.y,t.y),a=AJ(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function GZ(e,t,n){var r=aU({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),sU(i,n),new uJ(r)):LZ(e.replace(`path://`,``),r,n,`center`)}function JSe(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(KZ(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function KZ(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=qZ(u,d,c,l);if(YSe(f))return!1;var p=e-i,m=t-a,h=qZ(p,m,c,l)/f;if(h<0||h>1)return!1;var g=qZ(p,m,u,d)/f;return!(g<0||g>1)}function qZ(e,t,n,r){return e*r-n*t}function YSe(e){return e<=1e-6&&e>=-1e-6}function JZ(e,t,n,r,i){return t==null?e:(wU(t)?YZ[0]=YZ[1]=YZ[2]=YZ[3]=t:(YZ[0]=t[0],YZ[1]=t[1],YZ[2]=t[2],YZ[3]=t[3]),r&&(YZ[0]=jJ(0,YZ[0]),YZ[1]=jJ(0,YZ[1]),YZ[2]=jJ(0,YZ[2]),YZ[3]=jJ(0,YZ[3])),n&&(YZ[0]=-YZ[0],YZ[1]=-YZ[1],YZ[2]=-YZ[2],YZ[3]=-YZ[3]),XZ(e,YZ,`x`,`width`,3,1,i&&i[0]||0),XZ(e,YZ,`y`,`height`,0,2,i&&i[1]||0),e)}var YZ=[0,0,0,0];function XZ(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=jJ(0,AJ(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:MJ(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function ZZ(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=SU(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&$(gU(c),function(e){XU(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=PY(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:sU({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function QZ(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function $Z(e,t){if(e)if(bU(e))for(var n=0;n<e.length;n++)QZ(e[n],t);else QZ(e,t)}function eQ(e){return!e||MJ(e[1])<tQ&&MJ(e[2])<tQ||MJ(e[0])<tQ&&MJ(e[3])<tQ}var tQ=1e-5;function nQ(e,t){return e?iG.copy(e,t):t.clone()}function rQ(e,t){return t?jW(e||kW(),t):void 0}function iQ(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function XSe(e){var t=-1/0,n=1/0;QZ(e,function(e){r(e),r(e.getTextContent()),r(e.getTextGuideLine())});function r(e){if(!(!e||e.isGroup)){var t=e.currentStates;if(t.length)for(var n=0;n<t.length;n++)i(e.states[t[n]]);i(e)}}function i(e){if(e){var r=e.z2;r>t&&(t=r),r<n&&(n=r)}}return n>t&&(n=t=0),{min:n,max:t}}function aQ(e,t,n){oQ(e,t,n,-1/0)}function oQ(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s<o.length;s++)r=jJ(oQ(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=jJ(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}function ZSe(e){return e.animation={duration:0},e}function QSe(e,t){return t?jW(sQ.transform,t):AW(sQ.transform),sQ.decomposeTransform(),WG(e,sQ),e}var sQ=new HG;sQ.transform=kW();function $Se(e){var t=e.getZr().painter;return t.getType()===`canvas`?t:null}IZ(`circle`,KX),IZ(`ellipse`,qX),IZ(`sector`,aZ),IZ(`ring`,oZ),IZ(`polygon`,cZ),IZ(`polyline`,lZ),IZ(`rect`,hJ),IZ(`line`,uZ),IZ(`bezierCurve`,pZ),IZ(`arc`,mZ);var cQ={};function eCe(e,t){for(var n=0;n<qY.length;n++){var r=qY[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function lQ(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s??=xU(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<qY.length;l++){var u=qY[l],d=t[u];c[u]=NU(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function uQ(e,t,n,r){n||=cQ;for(var i=e instanceof yJ,a=!1,o=0;o<JY.length;o++){var s=t[JY[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new yJ,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=lQ(n,t),u=t.normal,d=!!u.getShallow(`show`),f=fQ(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(pQ(u,n,!1));for(var o=0;o<qY.length;o++){var p=qY[o],s=t[p];if(s){var m=c.ensureState(p),h=!!NU(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=fQ(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=pQ(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(vQ(c).setLabelText=function(e){var r=lQ(n,t,e);eCe(c,r)})}else c&&(c.ignore=!0);e.dirty()}function dQ(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<qY.length;r++){var i=qY[r];n[i]=e.getModel([i,t])}return n}function fQ(e,t,n,r,i){var a={};return tCe(a,e,n,r,i),t&&aU(a,t),a}function pQ(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=NU(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,t.autoOverflowArea!=null&&(r.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(r.layoutRect=t.layoutRect),r}function tCe(e,t,n,r,i){n||=cQ;var a=t.ecModel,o=a&&a.option.textStyle,s=nCe(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=NU(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);_Q(c[d]={},f,o,t,u,n,r,i,!1,!0)}}c&&(e.rich=c);var p=t.get(`overflow`);p&&(e.overflow=p);var m=t.get(`lineOverflow`);m&&(e.lineOverflow=m);var h=e,g=t.get(`minMargin`);if(g!=null)g=wU(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=yQ.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=IU(_),h.__marginType=yQ.textMargin)}_Q(e,t,o,null,null,n,r,i,!0,!1)}function nCe(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||cQ).rich;if(n){t||={};for(var r=gU(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var mQ=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],hQ=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],gQ=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function _Q(e,t,n,r,i,a,o,s,c,l){n=!o&&n||cQ;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=NU(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(d=u||null),(f===`inherit`||f===`auto`)&&(f=u||null),s||(d||=n.color,f||=n.textBorderColor),d!=null&&(e.fill=d),f!=null&&(e.stroke=f);var m=NU(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=NU(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=NU(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&p==null&&!l&&(p=a&&a.defaultOpacity),p!=null&&(e.opacity=p),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var _=0;_<mQ.length;_++){var v=mQ[_],y=i!==!1&&r?PU(t.getShallow(v),r.getShallow(v),n[v]):NU(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<hQ.length;_++){var v=hQ[_],y=t.getShallow(v);y!=null&&(e[v]=y)}if(e.verticalAlign==null){var b=t.getShallow(`baseline`);b!=null&&(e.verticalAlign=b)}if(!c||!a.disableBox){for(var _=0;_<gQ.length;_++){var v=gQ[_],y=t.getShallow(v);y!=null&&(e[v]=y)}var x=t.getShallow(`borderType`);x!=null&&(e.borderDash=x),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&u&&(e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(e.borderColor=u)}}function rCe(e,t){var n=t&&t.getModel(`textStyle`);return RU([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}var vQ=vY();function iCe(e,t,n,r){if(e){var i=vQ(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}}var yQ={minMargin:1,textMargin:2},aCe=[`textStyle`,`color`],bQ=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],xQ=new yJ,oCe=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(aCe):null)},e.prototype.getFont=function(){return rCe({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<bQ.length;n++)t[bQ[n]]=this.getShallow(bQ[n]);return xQ.useStyle(t),xQ.update(),xQ.getBoundingRect()},e}(),SQ=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],sCe=gW(SQ),cCe=function(){function e(){}return e.prototype.getLineStyle=function(e){return sCe(this,e)},e}(),CQ=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],lCe=gW(CQ),uCe=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return lCe(this,e,t)},e}(),wQ=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){iU(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(rU(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!eW.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();cW(wQ),fW(wQ),uU(wQ,cCe),uU(wQ,uCe),uU(wQ,vW),uU(wQ,oCe);function TQ(e){return e==null?0:e.length||1}function EQ(e){return e}var dCe=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||EQ,this._newKeyGetter=r||EQ,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=TQ(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=TQ(c),d=TQ(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=TQ(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=TQ(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),DQ={Must:1,Might:2,Not:3},OQ=vY();function fCe(e){OQ(e).datasetMap=KU()}function pCe(e,t,n){var r={},i=kQ(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=OQ(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),$(e,function(t,n){var i=TU(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});$(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function kQ(e){if(!e.get(`data`,!0))return SY(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},xY).models[0]}function mCe(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:SY(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},xY).models}function AQ(e,t){return hCe(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function hCe(e,t,n,r,i,a){var o,s=5;if(DU(e))return DQ.Not;var c,l;if(r){var u=r[a];TU(u)?(c=u.name,l=u.type):SU(u)&&(c=u)}if(l!=null)return l===`ordinal`?DQ.Must:DQ.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return DQ.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return DQ.Not;var f=_[c];if(!f||DU(f))return DQ.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=dY(g);if(!bU(y))return DQ.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=SU(e);if(e!=null&&isFinite(Number(e))&&e!==``)return t?DQ.Might:DQ.Not;if(t&&e!==`-`)return DQ.Must}return DQ.Not}var jQ=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&AQ(this,n)===DQ.Must&&(r.type=`ordinal`)}}return e}();function MQ(e){return e instanceof jQ}function NQ(e,t,n){n||=FQ(e);var r=t.seriesLayoutBy,i=_Ce(e,n,r,t.sourceHeader,t.dimensions);return new jQ({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:rU(t)})}function PQ(e){return new jQ({data:e,sourceFormat:DU(e)?BY:IY})}function gCe(e){return new jQ({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:rU(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function FQ(e){var t=Lxe;if(DU(e))t=BY;else if(bU(e)){e.length===0&&(t=LY);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(bU(i)||DU(i)){t=LY;break}else if(TU(i)){t=RY;break}}}}else if(TU(e)){for(var a in e)if(XU(e,a)&&dU(e[a])){t=zY;break}}return t}function _Ce(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:IQ(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?LQ(function(e){e!=null&&e!==`-`&&(SU(e)?o??=1:o=0)},n,s,10):o=wU(r)?r:+!!r,!i&&o===1&&(i=[],LQ(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=vCe(e);else if(t===`keyedColumns`)i||(i=[],$(e,function(e,t){i.push(t)}));else if(t===`original`){var c=dY(e[0]);a=bU(c)&&c.length||1}return{startIndex:o,dimensionsDefine:IQ(i),dimensionsDetectedCount:a}}function vCe(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return gU(n)}function IQ(e){if(e){var t=KU();return fU(e,function(e,n){e=TU(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+i.count++:t.set(r.name,{count:1}),r})}}function LQ(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function RQ(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var zQ,BQ,VQ,HQ,UQ,WQ,GQ=function(){function e(e,t){var n=MQ(e)?e:PQ(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),WQ(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;WQ=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=UQ[$Q(o,s)];aU(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=vU(JQ(o,s),null,i,c,l),e.count=vU(XQ(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};UQ=(e={},e[LY+`_`+VY]={pure:!0,appendData:i},e[LY+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[RY]={pure:!0,appendData:i},e[zY]={pure:!0,appendData:function(e){var t=this._data;$(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[IY]={appendData:i},e[BY]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),KQ=function(e){bU(e)||iY(`series.data or dataset.source must be an array.`)};zQ={},zQ[LY+`_`+VY]=KQ,zQ[LY+`_row`]=KQ,zQ[RY]=KQ,zQ[zY]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??iY(`dimension name must not be null/undefined.`)},zQ[IY]=KQ;var qQ=function(e,t,n,r){return e[r]},yCe=(BQ={},BQ[LY+`_`+VY]=function(e,t,n,r){return e[r+t]},BQ[LY+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},BQ[RY]=qQ,BQ[zY]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name,c=s==null?null:e[s];a[o]=c?c[r]:null}return a},BQ[IY]=qQ,BQ);function JQ(e,t){return yCe[$Q(e,t)]}var YQ=function(e,t,n){return e.length},bCe=(VQ={},VQ[LY+`_`+VY]=function(e,t,n){return Math.max(0,e.length-t)},VQ[LY+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},VQ[RY]=YQ,VQ[zY]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},VQ[IY]=YQ,VQ);function XQ(e,t){return bCe[$Q(e,t)]}var ZQ=function(e,t,n){return e[t]},xCe=(HQ={},HQ[LY]=ZQ,HQ[RY]=function(e,t,n){return e[n]},HQ[zY]=ZQ,HQ[IY]=function(e,t,n){var r=dY(e);return r instanceof Array?r[t]:r},HQ[BY]=ZQ,HQ);function QQ(e){return xCe[e]}function $Q(e,t){return e===`arrayRows`?e+`_`+t:e}function e$(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return QQ(a)(r,o,s)}else{var c=r;return a===`original`&&(c=dY(r)),c}}}}var SCe=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||=this._schema?this._schema.makeOutputDimensionNames():[],this._cachedDimNames},e}();function CCe(e,t){var n={},r=n.encode={},i=KU(),a=[],o=[],s={};$(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){var l=n.coordDimIndex;t$(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),TCe(n.type)&&(a[0]=t),t$(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}FY.each(function(e,t){var i=t$(r,t),a=n.otherDims[t];a!=null&&a!==!1&&(i[a]=n.name)})});var c=[],l={};i.each(function(e,t){var n=r[t];l[t]=n[0],c=c.concat(n)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=fU(c,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=l;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new SCe(s,t),n}function t$(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function wCe(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function TCe(e){return!(e===`ordinal`||e===`time`)}var n$=function(){function e(e){this.otherDims={},e!=null&&aU(this,e)}return e}();function r$(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!wU(e)&&e!=null&&e!==`-`&&(e=+JJ(e)),e==null||e===``?NaN:Number(e))}KU({number:function(e){return parseFloat(e)},time:function(e){return+JJ(e)},trim:function(e){return SU(e)?RU(e):e}});var ECe={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}};(function(){function e(e,t){wU(t)||aY(``),this._opFn=ECe[e],this._rvalFloat=QJ(t)}return e.prototype.evaluate=function(e){return wU(e)?this._opFn(e,this._rvalFloat):this._opFn(QJ(e),this._rvalFloat)},e})();var DCe=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=wU(e)?e:QJ(e),r=wU(t)?t:QJ(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=SU(e),s=SU(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}();(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=QJ(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=QJ(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();function i$(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function a$(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var OCe=typeof Uint32Array>`u`?Array:Uint32Array,kCe=typeof Uint16Array>`u`?Array:Uint16Array,o$=typeof Int32Array>`u`?Array:Int32Array,s$=typeof Float64Array>`u`?Array:Float64Array,c$={float:s$,int:o$,ordinal:Array,number:Array,time:s$},l$;function u$(e){return e>65535?OCe:kCe}function ACe(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function d$(e,t,n,r,i){var a=c$[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var f$=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=KU()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=l$[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],RQ(r),this._dimensions=fU(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new c$[t||`float`](this._rawCount),this._rawExtent[i]=wY(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=wY());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];d$(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=l$.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=fU(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=wY()),d$(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)}),UJ(t);var n=this.count();return n===0?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=u$(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(u$(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=gU(e),i=r.length;if(!i)return this;var a=t.count(),o=new(u$(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f)if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=wY();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(u$(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];if(isNaN(y)){T++,w<0&&(w=v);continue}l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v)}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(u$(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=wY(),d=new(u$(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++)o[m]=c[this.getRawIndex(p+m)];var h=n(o),g=this.getRawIndex(Math.min(p+r(o,h)||0,l-1));c[g]=h,h<u[0]&&(u[0]=h),h>u[1]&&(u[1]=h),d[f++]=g}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e,t){var n=this._chunks[e],r=wY();if(!n)return r;var i=this.count();if(!this._indices&&!t)return this._rawExtent[e].slice();var a=this._extent,o=a[e]||(a[e]={}),s=i$(t),c=s.key,l=o[c];if(l)return l.slice();for(var u=r[0],d=r[1],f=0;f<i;f++){var p=n[this.getRawIndex(f)];(!t||a$(s,p))&&(p<u&&(u=p),p>d&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&pU(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?ACe(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=rU(this._extent),e._rawExtent=rU(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return r$(e[r],this._dimensions[r])}l$={arrayRows:e,objectRows:function(e,t,n,r){return r$(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return r$(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),jCe=vY(),MCe={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},p$=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=g$(this.source))},e.prototype.getSourceDimensionIndex=function(e){return NU(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=RQ(this.source),n=!_$(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),t&&s!=null&&(!u||!u.isCalculationCoord)&&(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=MCe[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function m$(e){return e instanceof p$}function h$(e){for(var t=KU(),n=0;n<(e||[]).length;n++){var r=e[n],i=TU(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function g$(e){var t=jCe(e);return t.dimNameMap||=h$(e.dimensionsDefine)}function _$(e){return e>30}var v$=TU,y$=fU,NCe=typeof Int32Array>`u`?Array:Int32Array,PCe=`e\0\0`,b$=-1,FCe=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],ICe=[`_approximateExtent`],x$,S$,C$,w$,T$,E$,D$,LCe=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;m$(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){var u=n[l],d=SU(u)?new n$({name:u}):u instanceof n$?u:new n$(u),f=d.name;d.type=d.type||`float`,d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,c[f]!=null&&(s=!0),d.createInvertedIndices&&(o[f]=[]),r&&(d.storeDimIndex=l),p.itemName===0&&(this._nameDimIdx=d.storeDimIndex),p.itemId===0&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var m=this._dimIdxToName=KU();$(a,function(e){m.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(wU(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r=this,i;if(e instanceof f$&&(i=e),!i){var a=this.dimensions,o=MQ(e)||dU(e)?new GQ(e,a.length):e;i=new f$;var s=y$(a,function(e){return{type:r._dimInfos[e].type,property:e}});i.initData(o,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=CCe(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&D$(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&mxe(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=mY(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=mY(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)D$(this,o);x$(this)}},e.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){v$(e)?aU(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=C$(this,this._nameDimIdx,t)),n??=``,n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return S$(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return bU(e)?r.getValues(y$(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],r=n&&n[t];return r==null||isNaN(r)?b$:r},e.prototype.each=function(e,t,n){xU(e)&&(n=t,t=e,e=[]);var r=n||this,i=y$(w$(e),this._getStoreDimIndex,this);this._store.each(i,r?vU(t,r):t)},e.prototype.filterSelf=function(e,t,n){xU(e)&&(n=t,t=e,e=[]);var r=n||this,i=y$(w$(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?vU(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=gU(e),i=[];return $(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){xU(e)&&(n=t,t=e,e=[]),n||=this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=y$(w$(e),this._getStoreDimIndex,this),o=E$(this);return o._store=this._store.map(a,i?vU(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=y$(w$(e),this._getStoreDimIndex,this);this._store.modify(a,i?vU(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=E$(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=E$(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=E$(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new wQ(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new dCe(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return S$(e,t)},function(e){return S$(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},v$(e)?aU(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e];return(n&&n[t])??this.getVisual(t)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),bU(i)?i=i.slice():v$(i)&&(i=aU({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,v$(t)?aU(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){v$(e)?aU(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?aU(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){Ixe(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){$(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:y$(this.dimensions,this._getDimInfo,this),this.hostModel),T$(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];xU(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(FU(arguments)))})},e.internalField=function(){x$=function(e){var t=e._invertedIndicesMap;$(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new NCe(a.categories.length);for(var s=0;s<n.length;s++)n[s]=b$;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},C$=function(e,t,n){return mY(e._getCategory(t,n),null)},S$=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=C$(e,e._idDimIdx,t)),n??=PCe+t,n},w$=function(e){return bU(e)||(e=e==null?[]:[e]),e},E$=function(t){var n=new e(t._schema?t._schema:y$(t.dimensions,t._getDimInfo,t),t.hostModel);return T$(n,t),n},T$=function(e,t){$(FCe.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,$(ICe,function(n){e[n]=rU(t[n])}),e._calculationInfo=aU({},t._calculationInfo)},D$=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=C$(e,i,t)),s==null&&a!=null&&(r[t]=s=C$(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function RCe(e,t){MQ(e)||(e=PQ(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=KU(),a=[],o=zCe(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&_$(o),c=r===e.dimensionsDefine,l=c?g$(e):h$(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=KU(u),f=new o$(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=TU(n)?n:{name:n},o=new n$,s=i.name;return s!=null&&l.get(s)!=null&&(o.name=o.displayName=s),i.type!=null&&(o.type=i.type),i.displayName!=null&&(o.displayName=i.displayName),f[e]=a.length,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(var p=0;p<o;p++)m(p);d.each(function(e,t){var n=cY(e).slice();if(n.length===1&&!SU(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);$(n,function(e,n){var i=SU(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;$(n,function(e){var t,n,r,i;if(SU(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=aU({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(s!==!1){if(s=cY(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&s.push(h++)}$(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(sU(o,i),t,a),o.name==null&&n){var s=n[a];!TU(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&sU(o.otherDims,r)})}});function g(e,t,n){FY.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}var _=t.generateCoord,v=t.generateCoordCount,y=v!=null;v=_?v||1:0;var b=_||`value`;function x(e){e.name??=e.coordDim}if(s)$(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var C=m(S);C.coordDim??(C.coordDim=BCe(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(AQ(e,S)===DQ.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return jY(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new p$({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function zCe(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return $(t,function(e){var t;TU(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function BCe(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var O$={},k$={},A$=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(O$,!0),this._normalMasterList=n(k$,!1);function n(n,r){var i=[];return $(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){$(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){O$[e]=t;return}k$[e]=t},e.get=function(e){return k$[e]||O$[e]},e}();function VCe(e){return!!O$[e]}var HCe=KU();function j$(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=HCe.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function UCe(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=0;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=1,a||(i=0)):r===`box`&&(i=2,!a&&!VCe(n)&&(i=0))}return{coordSysType:n,kind:i}}function WCe(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=UCe(t,!0),o=a.kind,s=a.coordSysType;if(i&&o!==1&&(o=1,s=n),o===0||s!==n)return 0;var c=r(n,t);return c?(o===1?t.coordinateSystem=c:t.boxCoordinateSystem=c,o):0}var GCe=function(){function e(e){this.coordSysDims=[],this.axisMap=KU(),this.categoryAxisMap=KU(),this.coordSysName=e}return e}();function KCe(e){var t=e.get(`coordinateSystem`),n=new GCe(t),r=qCe[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var qCe={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,xY).models[0],a=e.getReferringComponents(`yAxis`,xY).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),M$(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),M$(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,xY).models[0];t.coordSysDims=[`single`],n.set(`single`,i),M$(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,xY).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),M$(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),M$(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();$(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),M$(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,xY).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function M$(e){return e.get(`type`)===`category`}function JCe(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;YCe(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if($(a,function(e,t){SU(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),$(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&m(e)&&(!p||e.coordDim!==`x`&&e.coordDim!==`angle`)&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;$(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function YCe(e){return!m$(e.schema)}function N$(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function XCe(e,t){return N$(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function ZCe(e,t){var n=e.get(`coordinateSystem`),r=A$.get(n),i;return t&&t.coordSysDims&&(i=fU(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=wCe(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function QCe(e,t,n){var r,i;return n&&$(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function P$(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=PQ(e)):(i=r.getSource(),a=i.sourceFormat===IY);var o=KCe(t),s=ZCe(t,o),c=n.useEncodeDefaulter,l=xU(c)?c:c?yU(pCe,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=RCe(i,u),f=QCe(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=JCe(t,{schema:d,store:p}),h=new LCe(d,t);h.setCalculationInfo(m);var g=f!=null&&$Ce(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function $Ce(e){if(e.sourceFormat===`original`)return!bU(dY(ewe(e.data||[])))}function ewe(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var twe=Math.round(Math.random()*10);function F$(e){return[e||``,twe++].join(`_`)}function nwe(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=aW(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=aW(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function rwe(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for($(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),$(u.successor,d?p:f)}$(c,function(){throw Error(``)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return $(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),$(c,function(e){cU(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);cU(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return $(e,function(e){cU(t,e)>=0&&n.push(e)}),n}}function I$(e,t){return iU(iU({},e,!0),t,!0)}var iwe=Math.log(2);function L$(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/iwe);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*L$(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function R$(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=L$(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*L$(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var z$=`___zrEVENTSAVED`,B$=[];function awe(e,t,n,r,i){return V$(B$,t,r,i,!0)&&V$(e,n,B$[0],B$[1])}function owe(e,t){e&&n(e),t&&n(t);function n(e){var t=e[z$];t&&(t.clearMarkers&&t.clearMarkers(),delete e[z$])}}function V$(e,t,n,r,i){if(t.getBoundingClientRect&&eW.domSupported&&!H$(t)){var a=t[z$]||(t[z$]={}),o=cwe(swe(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function swe(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){$(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function cwe(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?R$(s,o):R$(o,s))}function H$(e){return e.nodeName.toUpperCase()===`CANVAS`}var lwe=/([&<>"'])/g,uwe={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`};function U$(e){return e==null?``:(e+``).replace(lwe,function(e,t){return uwe[t]})}var dwe={time:{month:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],dayOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayOfWeekAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]},legend:{selector:{all:`All`,inverse:`Inv`}},toolbox:{brush:{title:{rect:`Box Select`,polygon:`Lasso Select`,lineX:`Horizontally Select`,lineY:`Vertically Select`,keep:`Keep Selections`,clear:`Clear Selections`}},dataView:{title:`Data View`,lang:[`Data View`,`Close`,`Refresh`]},dataZoom:{title:{zoom:`Zoom`,back:`Zoom Reset`}},magicType:{title:{line:`Switch to Line Chart`,bar:`Switch to Bar Chart`,stack:`Stack`,tiled:`Tile`}},restore:{title:`Restore`},saveAsImage:{title:`Save as Image`,lang:[`Right Click to Save Image`]}},series:{typeNames:{pie:`Pie chart`,bar:`Bar chart`,line:`Line chart`,scatter:`Scatter plot`,effectScatter:`Ripple scatter plot`,radar:`Radar chart`,tree:`Tree`,treemap:`Treemap`,boxplot:`Boxplot`,candlestick:`Candlestick`,k:`K line chart`,heatmap:`Heat map`,map:`Map`,parallel:`Parallel coordinate map`,lines:`Line graph`,graph:`Relationship graph`,sankey:`Sankey diagram`,funnel:`Funnel chart`,gauge:`Gauge`,pictorialBar:`Pictorial bar`,themeRiver:`Theme River Map`,sunburst:`Sunburst`,custom:`Custom chart`,chart:`Chart`}},aria:{general:{withTitle:`This is a chart about "{title}"`,withoutTitle:`This is a chart`},series:{single:{prefix:``,withName:` with type {seriesType} named {seriesName}.`,withoutName:` with type {seriesType}.`},multiple:{prefix:`. It consists of {seriesCount} series count.`,withName:` The {seriesId} series is a {seriesType} representing {seriesName}.`,withoutName:` The {seriesId} series is a {seriesType}.`,separator:{middle:``,end:``}}},data:{allData:`The data is as follows: `,partialData:`The first {displayCnt} items are: `,withName:`the data for {name} is {value}`,withoutName:`{value}`,separator:{middle:`, `,end:`. `}}}},fwe={time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}},W$=`ZH`,G$=`EN`,K$=G$,q$={},J$={},Y$=eW.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||K$).toUpperCase().indexOf(W$)>-1?W$:K$}():K$;function X$(e,t){e=e.toUpperCase(),J$[e]=new wQ(t),q$[e]=t}function pwe(e){if(SU(e)){var t=q$[e.toUpperCase()]||{};return e===W$||e===G$?rU(t):iU(rU(t),rU(q$[K$]),!1)}else return iU(rU(e),rU(q$[K$]),!1)}function mwe(e){return J$[e]}function hwe(){return J$[K$]}X$(G$,dwe),X$(W$,fwe);var gwe=null;function Z$(){return gwe}function Q$(e,t){var n=Z$(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function $$(e){var t=e.brk;return t?t.breaks:[]}function e1(e){var t=e.brk;return t?t.hasBreaks():!1}var t1=1e3,n1=t1*60,r1=n1*60,i1=r1*24,a1=i1*365,_we={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},o1={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},vwe=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,s1=`{yyyy}-{MM}-{dd}`,c1={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:s1,hour:s1+` `+o1.hour,minute:s1+` `+o1.minute,second:s1+` `+o1.second,millisecond:vwe},l1=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],ywe=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function bwe(e){return!SU(e)&&!xU(e)?xwe(e):e}function xwe(e){e||={};var t={},n=!0;return $(l1,function(t){n&&=e[t]==null}),$(l1,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=l1[s],l=TU(a)&&!bU(a)?a[c]:a,u=void 0;bU(l)?(u=l.slice(),o=u[0]||``):SU(l)?(o=l,u=[o]):(o==null?o=o1[r]:_we[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function u1(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function d1(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function Swe(e){return e===d1(e)}function Cwe(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function f1(e,t,n,r){var i=JJ(e),a=i[h1(n)](),o=i[g1(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[_1(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[v1(n)](),d=(u-1)%12+1,f=i[y1(n)](),p=i[b1(n)](),m=i[x1(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof wQ?r:mwe(r||Y$)||hwe()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,u1(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,u1(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,u1(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,u1(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,u1(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,u1(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,u1(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,u1(m,3)).replace(/{S}/g,m+``)}function wwe(e,t,n,r,i){var a=null;if(SU(n))a=n;else if(xU(n)){var o={time:e.time,level:e.time?e.time.level:0},s=Z$();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=p1(e.value,i);a=n[u][u][0]}}return f1(new Date(e.value),a,i,r)}function p1(e,t){var n=JJ(e),r=n[g1(t)]()+1,i=n[_1(t)](),a=n[v1(t)](),o=n[y1(t)](),s=n[b1(t)](),c=n[x1(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function m1(e,t,n){switch(t){case`year`:e[S1(n)](0);case`month`:e[C1(n)](1);case`day`:e[w1(n)](0);case`hour`:e[T1(n)](0);case`minute`:e[E1(n)](0);case`second`:e[D1(n)](0)}return e}function h1(e){return e?`getUTCFullYear`:`getFullYear`}function g1(e){return e?`getUTCMonth`:`getMonth`}function _1(e){return e?`getUTCDate`:`getDate`}function v1(e){return e?`getUTCHours`:`getHours`}function y1(e){return e?`getUTCMinutes`:`getMinutes`}function b1(e){return e?`getUTCSeconds`:`getSeconds`}function x1(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Twe(e){return e?`setUTCFullYear`:`setFullYear`}function S1(e){return e?`setUTCMonth`:`setMonth`}function C1(e){return e?`setUTCDate`:`setDate`}function w1(e){return e?`setUTCHours`:`setHours`}function T1(e){return e?`setUTCMinutes`:`setMinutes`}function E1(e){return e?`setUTCSeconds`:`setSeconds`}function D1(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function O1(e){if(!lxe(e))return SU(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function k1(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var A1=IU;function j1(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&RU(e)?e:`-`}function a(e){return nY(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?JJ(e):e;if(!isNaN(+c))return f1(c,r,n);if(s)return`-`}if(t===`ordinal`)return CU(e)?i(e):wU(e)&&a(e)?e+``:`-`;var l=QJ(e);return a(l)?O1(l):CU(e)?i(e):typeof e==`boolean`?e+``:`-`}var M1=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],N1=function(e,t){return`{`+e+(t??``)+`}`};function P1(e,t,n){bU(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=M1[a];e=e.replace(N1(o),N1(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(N1(M1[c],s),n?U$(l):l)}return e}function Ewe(e,t){var n=SU(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?i===`subItem`?`<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:`+U$(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+U$(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function F1(e,t){return t||=`transparent`,SU(e)?e:TU(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var I1=$,Dwe=[`left`,`right`,`top`,`bottom`,`width`,`height`],L1=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function R1(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var z1=R1;yU(R1,`vertical`),yU(R1,`horizontal`);function Owe(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function B1(e,t,n){n=A1(n||0);var r=t.width,i=t.height,a=BJ(e.left,r),o=BJ(e.top,i),s=BJ(e.right,r),c=BJ(e.bottom,i),l=BJ(e.width,r),u=BJ(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f;break}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d;break}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new iG((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}var V1={rect:1,point:2};function H1(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=j$(e),l=c.coord,u=c.from;if(o.dataToLayout){a=V1.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=V1.point,s=u,i=o.dataToPoint(l))}return a??=V1.rect,a===V1.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function U1(e){var t=e.layoutMode||e.constructor.layoutMode;return TU(t)?t:t?{type:t}:null}function W1(e,t,n){var r=n&&n.ignoreSize;!bU(r)&&(r=[r,r]);var i=o(L1[0],0),a=o(L1[1],1);c(L1[0],e,i),c(L1[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(I1(n,function(t){c[t]=e[t]}),I1(n,function(e){XU(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d<n.length;d++){var f=n[d];if(!XU(a,f)&&XU(e,f)){a[f]=e[f];break}}return a}function s(e,t){return e[t]!=null&&e[t]!==`auto`}function c(e,t,n){I1(e,function(e){t[e]=n[e]})}}function G1(e){return kwe({},e)}function kwe(e,t){return t&&e&&I1(Dwe,function(n){XU(t,n)&&(e[n]=t[n])}),e}var Awe=vY(),K1=function(e){PH(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=F$(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=U1(this),r=n?G1(e):{};iU(e,t.getTheme().get(this.mainType)),iU(e,this.getDefaultOption()),n&&W1(e,r,n)},t.prototype.mergeOption=function(e,t){iU(this.option,e,!0);var n=U1(this);n&&W1(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!sW(e))return e.defaultOption;var t=Awe(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=iU(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return SY(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return Owe(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(wQ);uW(K1,wQ),hW(K1),nwe(K1),rwe(K1,jwe);function jwe(e){var t=[];return $(K1.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=fU(t,function(e){return aW(e).main}),e!==`dataset`&&cU(t,`dataset`)<=0&&t.unshift(`dataset`),t}var q1=vY();vY();var J1=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=cY(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return Nwe(this,q1,r,i,e,t,n)},e.prototype.clearColorPalette=function(){Pwe(this,q1)},e}();function Mwe(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function Nwe(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:Mwe(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function Pwe(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Fwe=/\{@(.+?)\}/g,Iwe=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&bU(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),xU(i))return s.status=t,s.dimensionIndex=r,i(s);if(SU(i))return P1(i,s).replace(Fwe,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=e$(o,e,i);if(a&&bU(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return e$(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function Y1(e){var t,n;return TU(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function X1(e){return new Lwe(e)}var Lwe=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(bU(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){Z1.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:Z1.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),bU(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),Z1=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}(),Rwe=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return r$(e,t)},e}();function zwe(e,t){var n=new Rwe,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&aY(``);var o=[],s={},c=e.dimensionsDefine;if(c)$(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(XU(s,n)&&aY(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=JQ(i,VY);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=vU(Bwe,null,e)),n.cloneRawData=vU(Vwe,null,e),n.count=vU(XQ(i,VY),null,r,a,o);var d=QQ(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=vU(Hwe,null,o,s),n.cloneAllDimensionInfo=vU(Uwe,null,o),n}function Bwe(e){var t=e.sourceFormat;return $1(t)||aY(``),e.data}function Vwe(e){var t=e.sourceFormat,n=e.data;if($1(t)||aY(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}else if(t===`objectRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(aU({},n[i]));return r}}function Hwe(e,t,n){if(n!=null){if(wU(n)||!isNaN(n)&&!XU(t,n))return e[n];if(XU(t,n))return t[n]}}function Uwe(e){return rU(e)}var Q1=KU();function Wwe(e){e=rU(e);var t=e.type,n=``;t||aY(n);var r=t.split(`:`);r.length!==2&&aY(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,Q1.set(t,e)}function Gwe(e,t,n){var r=cY(e),i=r.length;i||aY(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=Kwe(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function Kwe(e,t,n,r){var i=``;t.length||aY(i),TU(e)||aY(i);var a=e.type,o=Q1.get(a);o||aY(i);var s=fU(t,function(e){return zwe(e,o)});return fU(cY(o.transform({upstream:s[0],upstreamList:s,config:rU(e.config)})),function(e,n){var r=``;TU(e)||aY(r),e.data||aY(r),$1(FQ(e.data))||aY(r);var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:VY,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:VY,sourceHeader:0,dimensions:e.dimensions};return NQ(e.data,i,null)})}function $1(e){return e===`arrayRows`||e===`objectRows`}var qwe=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(e0(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=DU(o)?BY:IY,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=NU(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=NU(u.sourceHeader,d.sourceHeader),m=NU(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[NQ(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[NQ(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&t0(``);var i,a=[],o=[];return $(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&t0(``),a.push(t),o.push(e._getVersionSign())}),n?i=Gwe(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[gCe(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||=i[r]={};var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];e0(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new f$,o.initData(new GQ(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(e0(e)){var t=kQ(e);return t?[t.getSourceManager()]:[]}else return fU(mCe(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(e0(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}();function e0(e){return e.mainType===`series`}function t0(e){throw Error(e)}var n0={color:{},darkColor:{},size:{}},r0=n0.color={theme:[`#5070dd`,`#b6d634`,`#505372`,`#ff994d`,`#0ca8df`,`#ffd10a`,`#fb628b`,`#785db0`,`#3fbe95`],neutral00:`#fff`,neutral05:`#f4f7fd`,neutral10:`#e8ebf0`,neutral15:`#dbdee4`,neutral20:`#cfd2d7`,neutral25:`#c3c5cb`,neutral30:`#b7b9be`,neutral35:`#aaacb2`,neutral40:`#9ea0a5`,neutral45:`#929399`,neutral50:`#86878c`,neutral55:`#797b7f`,neutral60:`#6d6e73`,neutral65:`#616266`,neutral70:`#54555a`,neutral75:`#48494d`,neutral80:`#3c3c41`,neutral85:`#303034`,neutral90:`#232328`,neutral95:`#17171b`,neutral99:`#000`,accent05:`#eff1f9`,accent10:`#e0e4f2`,accent15:`#d0d6ec`,accent20:`#c0c9e6`,accent25:`#b1bbdf`,accent30:`#a1aed9`,accent35:`#91a0d3`,accent40:`#8292cc`,accent45:`#7285c6`,accent50:`#6578ba`,accent55:`#5c6da9`,accent60:`#536298`,accent65:`#4a5787`,accent70:`#404c76`,accent75:`#374165`,accent80:`#2e3654`,accent85:`#252b43`,accent90:`#1b2032`,accent95:`#121521`,transparent:`rgba(0,0,0,0)`,highlight:`rgba(255,231,130,0.8)`};for(var i0 in aU(r0,{primary:r0.neutral80,secondary:r0.neutral70,tertiary:r0.neutral60,quaternary:r0.neutral50,disabled:r0.neutral20,border:r0.neutral30,borderTint:r0.neutral20,borderShade:r0.neutral40,background:r0.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:r0.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:r0.neutral70,axisLineTint:r0.neutral40,axisTick:r0.neutral70,axisTickMinor:r0.neutral60,axisLabel:r0.neutral70,axisSplitLine:r0.neutral15,axisMinorSplitLine:r0.neutral05}),r0)if(r0.hasOwnProperty(i0)){var a0=r0[i0];i0===`theme`?n0.darkColor.theme=r0.theme.slice():i0===`highlight`?n0.darkColor.highlight=`rgba(255,231,130,0.4)`:i0.indexOf(`accent`)===0?n0.darkColor[i0]=OK(a0,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):n0.darkColor[i0]=OK(a0,null,function(e){return e*.9},function(e){return 1-e**1.5})}n0.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Jwe=`line-height:1`;function o0(e){var t=e.lineHeight;return t==null?Jwe:`line-height:`+U$(t+``)+`px`}function s0(e,t){var n=e.color||n0.color.tertiary,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||n0.color.secondary,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+U$(r+``)+`px;color:`+U$(n)+`;font-weight:`+U$(i+``),valueStyle:`font-size:`+U$(o+``)+`px;color:`+U$(a)+`;font-weight:`+U$(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Ywe=[0,10,20,30],Xwe=[``,`
`,`
`,`
`];function c0(e,t){return t.type=e,t}function l0(e){return e.type===`section`}function u0(e){return l0(e)?Zwe:Qwe}function d0(e){if(l0(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return $(e.blocks,function(e){var n=d0(e);n>=t&&(t=n+ +(r&&(!n||l0(e)&&!e.noHeader)))}),t}return 0}function Zwe(e,t,n,r){var i=t.noHeader,a=$we(d0(t)),o=[],s=t.blocks||[];LU(!s||bU(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(XU(l,c)){var u=new DCe(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}$(s,function(n,i){var s=t.valueFormatter,c=u0(n)(s?aU(aU({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):p0(r,o.join(``),i?n:a.html);if(i)return d;var f=j1(t.header,`ordinal`,e.useUTC),p=s0(r,e.renderMode).nameStyle,m=o0(r);return e.renderMode===`richText`?m0(e,f,p)+a.richText+d:p0(r,`<div style="`+p+`;`+m+`;">`+U$(f)+`</div>`+d,n)}function Qwe(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=bU(e)?e:[e],fU(e,function(e,t){return j1(e,bU(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||n0.color.secondary,i),f=a?``:j1(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=s0(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:m0(e,f,v))+(o?``:nTe(e,m,h,g,y)):p0(r,(s?``:d)+(a?``:eTe(f,!s,v))+(o?``:tTe(m,h,g,y)),n)}}function f0(e,t,n,r,i,a){if(e)return u0(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function $we(e){return{html:Ywe[e],richText:Xwe[e]}}function p0(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=o0(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function eTe(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+U$(e)+`</span>`}function tTe(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=bU(e)?e:[e],`<span style="`+i+`;`+r+`">`+fU(e,function(e){return U$(e)}).join(`&nbsp;&nbsp;`)+`</span>`}function m0(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function nTe(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(bU(t)?t.join(` `):t,a)}function rTe(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return F1(n)}function h0(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var g0=function(){function e(){this.richTextStyles={},this._nextStyleNameId=$J()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=Ewe({color:t,type:e,renderMode:n,markerId:r});return SU(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};bU(t)?$(t,function(e){return aU(n,e)}):aU(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function iTe(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=bU(s),l=rTe(t,n),u,d,f,p;if(o>1||c&&!o){var m=aTe(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=e$(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=hY(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return c0(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[c0(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!RU(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function aTe(e,t,n,r,i){var a=t.getData(),o=pU(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?$(r,function(e){u(e$(a,n,e),e)}):$(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(c0(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var _0=vY();function v0(e,t){return e.getName(t)||e.getId(t)}var y0=function(e){PH(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=X1({count:sTe,reset:cTe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(_0(this).sourceManager=new qwe(this)).prepareSource();var r=this.getInitialData(e,n);x0(r,this),this.dataTask.context.data=r,_0(this).dataBeforeProcessed=r,b0(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=U1(this),r=n?G1(e):{},i=this.subType;K1.hasClass(i)&&(i+=`Series`),iU(e,t.getTheme().get(this.subType)),iU(e,this.getDefaultOption()),lY(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&W1(e,r,n)},t.prototype.mergeOption=function(e,t){e=iU(this.option,e,!0),this.fillDataTextStyle(e.data);var n=U1(this);n&&W1(this.option,e,n);var r=_0(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);x0(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,_0(this).dataBeforeProcessed=i,b0(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!DU(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&lY(e[n],`label`,t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=S0(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return _0(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=S0(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}_0(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return KU(e)},t.prototype.getSourceManager=function(){return _0(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return _0(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get(`colorBy`)||`series`},t.prototype.isColorBySeries=function(){return this.getColorBy()===`series`},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,t,n,r){var i=this.getData(),a=this.coordinateSystem,o=a&&a.getAxis(e);if(!a||!o)return[];var s=o.dataToCoord(n);r??=1/0;for(var c=[],l=1/0,u=-1,d=0,f=i.getDimensionIndex(t),p=i.getStore(),m=0,h=p.count();m<h;m++){var g=p.get(f,m),_=s-o.dataToCoord(g),v=Math.abs(_);v<=r&&((v<l||v===l&&_>=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return iTe({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(eW.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=J1.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a<e.length;a++){var o=e[a],s=v0(i,o);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===`all`)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=gU(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[v0(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0||e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(!(!a||!o)){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){TU(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=v0(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=v0(e,d);i.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(r={},r[u]=e.getRawIndex(d),r)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return K1.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(K1);uU(y0,Iwe),uU(y0,J1),uW(y0,K1);function b0(e){var t=e.name;hY(e)||(e.name=oTe(e)||t)}function oTe(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return $(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function sTe(e){return e.model.getRawData().count()}function cTe(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),lTe}function lTe(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function x0(e,t){$(qU(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,yU(uTe,t))})}function uTe(e,t){var n=S0(e);return n&&n.setOutputEnd((t||this).count()),t}function S0(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var dTe=cJ.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),fTe={line:uZ,rect:hJ,roundRect:hJ,square:hJ,circle:KX,diamond:cJ.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:cJ.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:cJ.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:dTe},pTe={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},C0={};$(fTe,function(e,t){C0[t]=new e});var mTe=cJ.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=SG(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=C0[r];i||=(r=`rect`,C0[r]),pTe[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function hTe(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||n0.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function w0(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?RZ(e.slice(8),new iG(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?LZ(e.slice(7),{},new iG(t,n,r,i),o?`center`:`cover`):new mTe({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=hTe,a&&c.setColor(a),c}function gTe(e){return bU(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function T0(e,t){if(e!=null)return bU(e)||(e=[e,e]),[BJ(e[0],t[0])||0,BJ(NU(e[1],e[0]),t[1])||0]}var _Te=function(e){PH(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e){return P$(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new GX,n=w0(`line`,0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual(`symbol`),i=this.getData().getVisual(`symbolRotate`),a=r===`none`?`circle`:r,o=e.itemHeight*.8,s=w0(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);return t.add(s),s.setStyle(e.itemStyle),s.rotation=(e.iconRotate===`inherit`?i:e.iconRotate||0)*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf(`empty`)>-1&&(s.style.stroke=s.style.fill,s.style.fill=n0.color.neutral00,s.style.lineWidth=2),t},t.type=`series.line`,t.dependencies=[`grid`,`polar`],t.defaultOption={z:3,coordinateSystem:`cartesian2d`,legendHoverLink:!0,clip:!0,label:{position:`top`},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:`solid`},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:`emptyCircle`,symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:`auto`,connectNulls:!1,sampling:`none`,animationEasing:`linear`,progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:`clone`},triggerLineEvent:!1,triggerEvent:!1},t}(y0);function E0(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=e$(e,t,n[0]);return i==null?null:i+``}else if(r){for(var a=[],o=0;o<n.length;o++)a.push(e$(e,t,n[o]));return a.join(` `)}}function D0(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!bU(t))return t+``;for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(` `)}var O0=function(e){PH(t,e);function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=w0(e,-1,-1,2,2,null,a);o.attr({z2:NU(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=vTe,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){pX(this.childAt(0))},t.prototype.downplay=function(){mX(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(p):EZ(f,p,o,n),MZ(f)}if(this._updateCommon(e,n,s,r,i),l){var f=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,DZ(f,p,o,n)}}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=dQ(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=T0(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof uJ){var S=a.style;a.useStyle(aU({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(aU({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w??(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;uQ(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):E0(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),TX(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=PY(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&kZ(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();kZ(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return gTe(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(GX);function vTe(e,t){this.parent.drift(e,t)}function k0(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r&&r.isIgnore&&r.isIgnore(n))&&!(r&&r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function A0(e){return e!=null&&!TU(e)&&(e={isIgnore:e}),e||{}}function j0(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:dQ(t),cursorStyle:t.get(`cursor`)}}function M0(e,t,n,r,i,a,o){var s=new e(t,n,r,i);return s.setPosition(a),t.setItemGraphicEl(n,s),o.add(s),s}var yTe=function(){function e(e){this.group=new GX,this._SymbolCtor=e||O0}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=A0(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=this._seriesScope=j0(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);k0(e,i,r,t)&&M0(a,e,r,s,c,i,n)}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!k0(e,p,u,t)){n.remove(f);return}var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):EZ(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,r=t.getStore(),i=0,a=r.count();i<a;i++){var o=t.getItemGraphicEl(i),s=n._getSymbolPoint(i);k0(t,s,i,e)?(o||=M0(n._SymbolCtor,t,i,n._seriesScope,{disableAnimation:!0},s,n.group),o.stopAnimation(),o.setPosition(s),o.markRedraw()):o&&(n.group.remove(o),t.setItemGraphicEl(i,null))}},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=j0(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n,r){this._progressiveEls=[],r=A0(r);function i(e){e.isGroup||(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}for(var a=e.start;a<e.end;a++){var o=t.getItemLayout(a);if(k0(t,o,a,r)){var s=new this._SymbolCtor(t,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(e){$Z(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}();function N0(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=bTe(i,n),o=r.dim,s=i.dim,c=t.mapDimension(s),l=t.mapDimension(o),u=+(s===`x`||s===`radius`),d=fU(e.dimensions,function(e){return t.mapDimension(e)}),f=!1,p=t.getCalculationInfo(`stackResultDimension`);return N$(t,d[0])&&(f=!0,d[0]=p),N$(t,d[1])&&(f=!0,d[1]=p),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:c,baseDim:l,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo(`stackedOverDimension`)}}function bTe(e,t){var n=0,r=e.scale.getExtent();return t===`start`?n=r[0]:t===`end`?n=r[1]:wU(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function P0(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function F0(e,t){return!isFinite(e)||!isFinite(t)}var xTe=typeof Float32Array<`u`?Float32Array:void 0,STe=typeof Float64Array<`u`?Float64Array:void 0;function I0(e){return L0({ctor:xTe},e).arr}function L0(e,t){var n=e.arr,r=e.ctor;if(t>GJ&&(t=GJ),!n||e.typed&&n.length<t){var i=void 0;if(r)try{i=new r(t),e.typed=!0,n&&i.set(n)}catch{}if(!i&&(i=[],e.typed=!1,n))for(var a=0,o=n.length;a<o;a++)i[a]=n[a];e.arr=i}return e}function CTe(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:`+`,idx:e})}).update(function(e,t){n.push({cmd:`=`,idx:t,idx1:e})}).remove(function(e){n.push({cmd:`-`,idx:e})}).execute(),n}function wTe(e,t,n,r,i,a,o,s){for(var c=CTe(e,t),l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=N0(i,t,o),_=e.getLayout(`points`)||[],v=t.getLayout(`points`)||[],y=0;y<c.length;y++){var b=c[y],x=!0,S=void 0,C=void 0;switch(b.cmd){case`=`:S=b.idx*2,C=b.idx1*2;var w=_[S],T=_[S+1],E=v[C],D=v[C+1];(isNaN(w)||isNaN(T))&&(w=E,T=D),l.push(w,T),u.push(E,D),d.push(n[S],n[S+1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(b.idx1));break;case`+`:var O=b.idx,k=g.dataDimsForPoint,A=i.dataToPoint([t.get(k[0],O),t.get(k[1],O)]);C=O*2,l.push(A[0],A[1]),u.push(v[C],v[C+1]);var j=P0(g,i,t,O);d.push(j[0],j[1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(O));break;case`-`:x=!1}x&&(p.push(b),m.push(m.length))}m.sort(function(e,t){return h[e]-h[t]});for(var M=l.length,ee=I0(M),N=I0(M),P=I0(M),F=I0(M),te=[],y=0;y<m.length;y++){var ne=m[y],re=y*2,ie=ne*2;ee[re]=l[ie],ee[re+1]=l[ie+1],N[re]=u[ie],N[re+1]=u[ie+1],P[re]=d[ie],P[re+1]=d[ie+1],F[re]=f[ie],F[re+1]=f[ie+1],te[y]=p[ne]}return{current:ee,next:N,stackedOnCurrent:P,stackedOnNext:F,status:te}}var R0=Math.min,z0=Math.max;function B0(e,t,n,r,i,a,o,s,c){for(var l,u,d,f,p,m,h=n,g=0;g<r;g++){var _=t[h*2],v=t[h*2+1];if(h>=i||h<0)break;if(F0(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g<r;)g++,x+=a,h+=a,S=t[x*2],C=t[x*2+1],_=t[h*2],v=t[h*2+1],y=_-l,b=v-u;var w=g+1;if(c)for(;F0(S,C)&&w<r;)w++,x+=a,S=t[x*2],C=t[x*2+1];var T=.5,E=0,D=0,O=void 0,k=void 0;if(w>=r||F0(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,M=v-u,ee=C-v,N=void 0,P=void 0;if(s===`x`){N=Math.abs(A),P=Math.abs(j);var F=E>0?1:-1;p=_-F*N*o,m=v,O=_+F*P*o,k=v}else if(s===`y`){N=Math.abs(M),P=Math.abs(ee);var te=D>0?1:-1;p=_,m=v-te*N*o,O=_,k=v+te*P*o}else N=Math.sqrt(A*A+M*M),P=Math.sqrt(j*j+ee*ee),T=P/(P+N),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=R0(O,z0(S,_)),k=R0(k,z0(C,v)),O=z0(O,R0(S,_)),k=z0(k,R0(C,v)),E=O-_,D=k-v,p=_-E*N/P,m=v-D*N/P,p=R0(p,z0(l,_)),m=R0(m,z0(u,v)),p=z0(p,R0(l,_)),m=z0(m,R0(u,v)),E=_-p,D=v-m,O=_+E*P/N,k=v+D*P/N}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var V0=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),TTe=function(e){PH(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return t.prototype.getDefaultStyle=function(){return{stroke:n0.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new V0},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&F0(n[i*2-2],n[i*2-1]);i--);for(;r<i&&F0(n[r*2],n[r*2+1]);r++);}for(;r<i;)r+=B0(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path.data,r=Yq.CMD,i,a,o=t===`x`,s=[],c=0;c<n.length;){var l=n[c++],u=void 0,d=void 0,f=void 0,p=void 0,m=void 0,h=void 0,g=void 0;switch(l){case r.M:i=n[c++],a=n[c++];break;case r.L:if(u=n[c++],d=n[c++],g=o?(e-i)/(u-i):(e-a)/(d-a),g<=1&&g>=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?aK(i,u,f,m,e,s):aK(a,d,p,h,e,s);if(v>0)for(var y=0;y<v;y++){var b=s[y];if(b<=1&&b>=0){var _=o?rK(a,d,p,h,b):rK(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h;break}}},t}(cJ),ETe=function(e){PH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(V0),DTe=function(e){PH(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return t.prototype.getDefaultShape=function(){return new ETe},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&F0(n[a*2-2],n[a*2-1]);a--);for(;i<a&&F0(n[i*2],n[i*2+1]);i++);}for(;i<a;){var s=B0(e,n,i,a,a,1,t.smooth,o,t.connectNulls);B0(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(cJ);function H0(){var e=vY();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&`reset`}}var U0=vY(),OTe=H0(),W0=function(){function e(){this.group=new GX,this.uid=F$(`viewChart`),this.renderTask=X1({plan:kTe,reset:ATe}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&K0(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&K0(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){$Z(this.group,e)},e.markUpdateMethod=function(e,t){U0(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function G0(e,t,n){e&&kX(e)&&(t===`emphasis`?pX:mX)(e,n)}function K0(e,t,n){var r=_Y(e,t),i=t&&t.highlightKey!=null?nSe(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){G0(e,n,i)}):$(cY(r),function(t){G0(e.getItemGraphicEl(t),n,i)})}cW(W0,[`dispose`]),hW(W0);function kTe(e){return OTe(e.model)}function ATe(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&U0(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),jTe[c]}var jTe={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};function q0(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,c=a.width,l=a.height,u=n.get([`lineStyle`,`width`])||0;o-=u/2,s-=u/2,c+=u,l+=u,c=Math.ceil(c),o!==Math.floor(o)&&(o=Math.floor(o),c++);var d=new hJ({shape:{x:o,y:s,width:c,height:l}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(d.shape.x+=c),d.shape.width=0):(m||(d.shape.y+=l),d.shape.height=0);var h=xU(i)?function(e){i(e,d)}:null;DZ(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function J0(e,t,n){var r=e.getArea(),i=HJ(r.r0,1),a=HJ(r.r,1),o=new aZ({shape:{cx:HJ(e.cx,1),cy:HJ(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(e.getBaseAxis().dim===`angle`?o.shape.endAngle=r.startAngle:o.shape.r=i,DZ(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function MTe(e,t,n,r,i){return e?e.type===`polar`?J0(e,t,n):e.type===`cartesian2d`?q0(e,t,n,r,i):null:null}function Y0(e,t){return e.type===t}var X0=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();hW(X0);var NTe=0,Z0=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++NTe,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&fU(r,PTe);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!SU(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var r=this._getOrCreateMap();return t=r.get(e),t??(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||=KU(this.categories)},e}();function PTe(e){return TU(e)&&e.value!=null?e.value:e+``}var Q0=gU({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1});function $0(e,t,n){var r;e||={};var i=Z$();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&($(Q0,function(t){a[t]&&(e[t]=vU(a[t],a))}),r=a)}return r??ITe(e,n),{brk:r,mapper:e}}function e2(e,t){$(Q0,function(n){e[n]=t[n]})}function t2(e,t){e.freeze=ZU}function n2(e){return e.getExtentUnsafe(0,2)}function r2(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function FTe(e){var t=r2(e,3);return t[1]-t[0]}function i2(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function ITe(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():wY(),aU(n,LTe),n}var LTe={needTransform:function(){return!1},normalize:function(e){var t=this._extents[1]||this._extents[0];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[1]||this._extents[0];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=r2(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){a2(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),a2(r,e,t,n)},freeze:function(){}};function a2(e,t,n,r){kY(n,r)&&(e[t][0]=n,e[t][1]=r)}function o2(e){return s2(e)||l2(e)}function s2(e){return e.type===`interval`}function c2(e){return e.type===`time`}function l2(e){return e.type===`log`}function u2(e){return e.type===`ordinal`}function RTe(e){var t=XJ(e),n=IJ(10,t),r=NJ(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,HJ(r*n,-t)}function d2(e){return WJ(e)+2}function f2(e,t){return LJ(e)/LJ(t)}function p2(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i<r.from.length;i++)if(e===r.from[i])return r.to[i]}return IJ(t,e)}function m2(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=MJ(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return(!OY(r[0])||!OY(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function zTe(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function h2(e,t){return e||=t,NJ(jJ(e,1))}function g2(e,t,n){var r=n2(e),i=r[0],a=e.count(),o=Math.max((t||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var _2=function(e){PH(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,e2(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new Z0({}),bU(i)&&(i=new Z0({categories:fU(i,function(e){return TU(e)?e.value:e})})),r._ordinalMeta=i;var a=$0(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,t2(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:SU(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=NJ(e),e},t.prototype.getTicks=function(){var e=[];return g2(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=AJ(a,t.length);i<o;++i){var s=n[i]=t[i];r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n[i]=c,r[c]=i}},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return n==null?``:n+``}},t.prototype.count=function(){var e=n2(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type=`ordinal`,t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber(NJ(this._mapper.scale(e)))},transformIn:function(e,t){return this._mapper.transformIn(this._getTickNumber(e),t)},transformOut:function(e,t){return this.getRawOrdinalNumber(this._mapper.transformOut(e,t))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,t){return this._mapper.getExtentUnsafe(e,t)},setExtent:function(e,t){return this._mapper.setExtent(e,t)},setExtent2:function(e,t,n){return this._mapper.setExtent2(e,t,n)}},t}(X0);X0.registerClass(_2);function v2(e,t,n,r){for(var i=e.getTicks({expandToNicedExtent:!0}),a=[],o=e.getExtent(),s=1;s<i.length;s++){var c=i[s],l=i[s-1];if(!(l.break||c.break)){for(var u=0,d=[],f=(c.value-l.value)/t,p=d2(f);u<t-1;){var m=HJ(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=Z$();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}var y2=function(e){PH(t,e);function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,n||={},r.brk=$0(r,Q$(r,n),null).brk,r._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},r}return t.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.getConfig=function(){return rU(this._cfg)},t.prototype.setConfig=function(e){var t=n2(this);this._cfg=e=rU(e),e.niceExtent??=t.slice(),e.intervalPrecision??=d2(e.interval)},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=n2(this),i=t.niceExtent,a=t.intervalPrecision,o=Z$(),s=this.brk,c=o&&s,l=[];if(!n)return l;if(e.breakTicks===`only_break`&&c)return o.addBreaksToTicks(l,s.breaks,r),l;var u=3e3;r[0]<i[0]&&l.push({value:e.expandToNicedExtent?HJ(i[0]-n,a):r[0]});for(var d=function(e,t){return NJ((t-e)/n)},f=t.intervalCount,p=i[0],m=0;;m++){if(f==null){if(p>i[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=AJ(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=HJ(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=HJ(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?HJ(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return v2(this,e,$$(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=WJ(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),O1(HJ(e.value,n,!0))},t.type=`interval`,t}(X0);X0.registerClass(y2);var BTe=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},b2=function(e){PH(t,e);function t(n){var r=e.call(this)||this;return r.type=`time`,r.parse=t.parse,r._locale=n.locale,r._useUTC=n.useUTC,r._interval=0,r.brk=$0(r,Q$(r,n),null).brk,r}return t.prototype.getLabel=function(e){return f1(e.value,c1[Cwe(d1(this._minLevelUnit))]||c1.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return wwe(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=n2(this),r=Z$(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return Z$().addBreaksToTicks(o,i.breaks,n),o;o=qTe(this._minLevelUnit,this._approxInterval,s,n,i2(this),i);var c=l1.length-1,l=0;return $(o,function(e){e.time&&(c=Math.min(c,cU(l1,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&Z$().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&Z$().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(cU(l1,p1(e.vmin,s)),cU(l1,p1(e.vmax,s))),n=0,r=0;r<l1.length;r++)if(!S2(l1[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:l1[Math.max(i,t)],upperTimeUnit:l1[i]}}),o},t.prototype.getMinorTicks=function(e){return v2(this,e,$$(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return wU(e)?Math.round(e):+JJ(e)},t.type=`time`,t}(X0),x2=[[`second`,t1],[`minute`,n1],[`hour`,r1],[`quarter-day`,r1*6],[`half-day`,r1*12],[`day`,i1*1.2],[`half-week`,i1*3.5],[`week`,i1*7],[`month`,i1*31],[`quarter`,i1*95],[`half-year`,a1/2],[`year`,a1]];function S2(e,t,n,r){return m1(new Date(t),e,r).getTime()===m1(new Date(n),e,r).getTime()}function VTe(e,t){return e/=i1,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function HTe(e){var t=30*i1;return e/=t,e>6?6:e>3?3:e>2?2:1}function UTe(e){return e/=r1,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function C2(e,t){return e/=t?n1:t1,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function WTe(e){return jJ(ZJ(e,!0),1)}function GTe(e,t,n){var r=Math.max(0,cU(l1,t)-1);return m1(new Date(e),l1[r],n).getTime()}function KTe(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function qTe(e,t,n,r,i,a){var o=ywe,s=0;function c(e,t,n,i,o,c,l){for(var u=KTe(o,e),d=t,f=new Date(d);d<n&&d<=r[1]&&(l.push({value:d}),!(s++>3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!S2(d1(e),r[0],r[1],n)){s&&(i=[{value:GTe(r[0],e,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var u=i[l].value,d=i[l+1].value;if(u!==d){var f=void 0,p=void 0,m=void 0,h=!1;switch(e){case`year`:f=Math.max(1,Math.round(t/i1/365)),p=h1(n),m=Twe(n);break;case`half-year`:case`quarter`:case`month`:f=HTe(t),p=g1(n),m=S1(n);break;case`week`:case`half-week`:case`day`:f=VTe(t,31),p=_1(n),m=C1(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=UTe(t),p=v1(n),m=w1(n);break;case`minute`:f=C2(t,!0),p=y1(n),m=T1(n);break;case`second`:f=C2(t,!1),p=b1(n),m=E1(n);break;case`millisecond`:f=WTe(t),p=x1(n),m=D1(n);break}d>=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l<o.length;l++)a.push(o[l])}}for(var u=[],d=[],f=0,p=0,m=0;m<o.length;++m){var h=d1(o[m]);if(Swe(o[m])&&(l(o[m],u[u.length-1]||[],d),h!==(o[m+1]?d1(o[m+1]):null))){if(d.length){p=f,d.sort(function(e,t){return e.value-t.value});for(var g=[],_=0;_<d.length;++_){var v=d[_].value;(_===0||d[_-1].value!==v)&&(g.push(d[_]),v>=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=mU(fU(u,function(e){return mU(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;m<b.length;++m)for(var C=b[m],w=0;w<C.length;++w){var T=p1(C[w].value,n);S.push({value:C[w].value,time:{level:x-m,upperTimeUnit:T,lowerTimeUnit:T}})}jY(S,Nxe,null),S.sort(function(e,t){return e.value-t.value});var E=S[0],D=S[S.length-1],O=p1(r[0],n),k=p1(r[1],n);return(!E||E.value>r[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!D||D.value<r[1])&&S.push({value:r[1],time:{level:0,upperTimeUnit:k,lowerTimeUnit:k},notNice:!0}),S}var JTe=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=i1,n[1]+=i1),n[1]===-1/0&&n[0]===1/0){var r=new Date;n[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),n[0]=n[1]-i1}e.setExtent(n[0],n[1]);var i=h2(t.splitNumber,10),a=i2(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=x2.length,l=Math.min(BTe(x2,a,0,c),c-1),u=x2[l][1],d=x2[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};X0.registerClass(b2);var w2=0,T2=1,YTe=2,E2=function(e){PH(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=y2.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[w2]=i[T2]=a[w2]=a[T2]=NaN,e2(r,t.mapperMethods);var s=Z$(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},YTe,l),r.powStub=new y2({breakParsed:l.original}),r.intervalStub=new y2({breakParsed:l.transformed}),t2(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=Z$(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return fU(i.getTicks(e||{}),function(e){var i=e.value,o=p2(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,$$(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return v2(this,e,$$(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(f2(e,this.base))},scale:function(e){return p2(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=f2(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return D2.depth=n,O2.lookup=this._lookup,p2(n===2?e:this.intervalStub.transformOut(e,D2),this.base,O2)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!kY(t,n)||t<=0||n<=0)){var r=k2,i=k2;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[w2]=t,r[T2]=n);var o=this.base;this.intervalStub.setExtent2(e,i[w2]=f2(t,o),i[T2]=f2(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return kY(t[0],t[1])&&nY(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(X0);X0.registerClass(E2);var D2={},O2={},k2=[],A2={value:1,category:1,time:1,log:1},j2=vY();function XTe(e){var t=e.get(`type`);return(t==null||!XU(A2,t)&&!X0.getClass(t))&&(t=`value`),t}function ZTe(e,t,n){var r=Z$(),i;switch(r&&(i=L2(e,t,n)),t){case`category`:return new _2({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:wY()});case`time`:return new b2({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new E2({logBase:e.get(`logBase`),breakOption:i});case`value`:return new y2({breakOption:i});default:return new((X0.getClass(t))||y2)({})}}function QTe(e,t,n){var r=n?r2(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return kY(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}function $Te(e){j2(e).noOnMyZero=!0}function eEe(e){return j2(e).noOnMyZero}function M2(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=bwe(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}else if(SU(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};else if(xU(t)){if(e.type===`category`)return function(n,r){return t(N2(e,n),n.value-e.scale.getExtent()[0],null)};var r=Z$();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(N2(e,n),i,a)}}else return function(t){return e.scale.getLabel(t)}}function N2(e,t){var n=e.scale;return u2(n)?n.getLabel(t):t.value}function P2(e){return e.get(`interval`)??`auto`}function tEe(e){return e.type===`category`&&P2(e.getLabelModel())===0}function nEe(e,t){var n={};return $(e.mapDimensionsAll(t),function(t){n[XCe(e,t)]=!0}),gU(n)}function F2(e){return e===`middle`||e===`center`}function I2(e){return e.getShallow(`show`)}function L2(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!Z$()||!n||!rEe(t)?void 0:r}function rEe(e){return e!==`category`}function R2(e,t,n,r,i,a){var o=l2(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=zTe(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function z2(e,t){return u2(e)?e.getRawOrdinalNumber(t.value):t.value}function B2(e,t){return u2(e)&&!!t.get(`boundaryGap`)}function V2(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function H2(e){for(var t=wY(),n=wY(),r=0;r<e.length;){var i=e[r++],a=e[r++];F0(i,a)||(TY(t,i),TY(n,a))}return[t,n]}function U2(e,t){var n=H2(e),r=n[0],i=n[1],a=H2(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(r[1]-o[1]),Math.abs(i[1]-s[1]))}function W2(e){return wU(e)?e:e?.5:0}function iEe(e,t,n){if(n.valueDim==null)return[];for(var r=t.count(),i=I0(r*2),a=0;a<r;a++){var o=P0(n,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function G2(e,t,n,r,i){var a=n.getBaseAxis(),o=a.dim===`x`||a.dim===`radius`?0:1,s=[],c=0,l=[],u=[],d=[],f=[];if(i){for(c=0;c<e.length;c+=2){var p=t||e;F0(p[c],p[c+1])||f.push(e[c],e[c+1])}e=f}for(c=0;c<e.length-2;c+=2)switch(d[0]=e[c+2],d[1]=e[c+3],u[0]=e[c],u[1]=e[c+1],s.push(u[0],u[1]),r){case`end`:l[o]=d[o],l[1-o]=u[1-o],s.push(l[0],l[1]);break;case`middle`:var m=(u[o]+d[o])/2,h=[];l[o]=h[o]=m,l[1-o]=u[1-o],h[1-o]=d[1-o],s.push(l[0],l[1]),s.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=d[1-o],s.push(l[0],l[1])}return s.push(e[c++],e[c++]),s}function aEe(e,t){var n=[],r=e.length,i,a;function o(e,t,n){var r=e.coord;return{coord:n,color:cbe((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<r;s++){var c=e[s],l=c.coord;if(l<0)i=c;else if(l>t){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&=(n.push(o(i,c,0)),null),n.push(c),a=c}return n}function oEe(e,t,n){var r=e.getVisual(`visualMeta`);if(!(!r||!r.length||!e.count())&&t.type===`cartesian2d`){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(a){var c=t.getAxis(i),l=fU(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=aEe(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;$(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new gZ(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}}function sEe(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!(r&&!i)){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&cEe(a,t))){var o=t.mapDimension(a.dim),s={};return $(a.getViewLabels(),function(e){e.tick.offInterval||(s[z2(a.scale,e.tick)]=1)}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function cEe(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(O0.getSymbolSize(t,o)[+!!e.isHorizontal()]*1.5>r)return!1;return!0}function lEe(e){for(var t=e.length/2;t>0&&F0(e[t*2-2],e[t*2-1]);t--);return t-1}function K2(e,t){return[e[t*2],e[t*2+1]]}function uEe(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l<r;l++)if(o=e[l*2+i],!F0(o,e[l*2+1-i])){if(l===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){c=l;break}s=l,a=o}return{range:[s,c],t:(t-a)/(o-a)}}function q2(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t<qY.length;t++)if(e.get([qY[t],`endLabel`,`show`]))return!0;return!1}function J2(e,t,n,r){if(Y0(t,`cartesian2d`)){var i=r.getModel(`endLabel`),a=i.get(`valueAnimation`),o=r.getData(),s={lastFrameIndex:0},c=q2(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,l=t.getBaseAxis().isHorizontal(),u=q0(t,n,r,function(){var t=e._endLabel;t&&n&&s.originalX!=null&&t.attr({x:s.originalX,y:s.originalY})},c);if(!r.get(`clip`,!0)){var d=u.shape,f=Math.max(d.width,d.height);l?(d.y-=f,d.height+=f*2):(d.x-=f,d.width+=f*2)}return c&&c(1,u),u}else return J0(t,n,r)}function dEe(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?`right`:`left`:`center`,o=r?`middle`:i?`top`:`bottom`;return{normal:{align:e.get(`align`)||a,verticalAlign:e.get(`verticalAlign`)||o}}}var fEe=function(e){PH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var e=new GX,t=new yTe;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=vU(this._changePolyState,this)},t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=e.getModel(`lineStyle`),s=e.getModel(`areaStyle`),c=a.getLayout(`points`)||[],l=r.type===`polar`,u=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,m=this._lineGroup,h=!t.ssr&&e.get(`animation`),g=!s.isEmpty(),_=s.get(`origin`),v=N0(r,a,_),y=g&&iEe(r,a,v),b=e.get(`showSymbol`),x=e.get(`connectNulls`),S=b&&!l&&sEe(e,a,r),C=this._data;C&&C.eachItemGraphicEl(function(e,t){e.__temp&&(i.remove(e),C.setItemGraphicEl(t,null))}),b||d.remove(),i.add(m);var w=!l&&e.get(`step`),T;r&&r.getArea&&e.get(`clip`,!0)&&(T=r.getArea(),T.width==null?T.r0&&(T.r0-=.5,T.r+=.5):(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2)),this._clipShapeForSymbol=T;var E=oEe(a,r,n)||a.getVisual(`style`)[a.getVisual(`drawType`)];if(!(f&&u.type===r.type&&w===this._step))b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),h&&this._initSymbolLabelAnimation(a,r,T),w&&(y&&=G2(y,c,r,w,x),c=G2(c,null,r,w,x)),f=this._newPolyline(c),g?p=this._newPolygon(c,y):p&&=(m.remove(p),this._polygon=null),l||this._initOrUpdateEndLabel(e,r,F1(E)),m.setClipPath(J2(this,r,!0,e));else{g&&!p?p=this._newPolygon(c,y):p&&!g&&(m.remove(p),p=this._polygon=null),l||this._initOrUpdateEndLabel(e,r,F1(E));var D=m.getClipPath();D?DZ(D,{shape:J2(this,r,!1,e).shape},e):m.setClipPath(J2(this,r,!0,e)),b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),(!V2(this._stackedOnPoints,y)||!V2(this._points,c))&&(h?this._doUpdateAnimation(a,y,r,n,w,_,x):(w&&(y&&=G2(y,c,r,w,x),c=G2(c,null,r,w,x)),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:y})))}var O=e.getModel(`emphasis`),k=O.get(`focus`),A=O.get(`blurScope`),j=O.get(`disabled`);if(f.useStyle(sU(o.getLineStyle(),{fill:`none`,stroke:E,lineJoin:`bevel`})),DX(f,e,`lineStyle`),f.style.lineWidth>0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var M=f.getState(`emphasis`).style;M.lineWidth=+f.style.lineWidth+1}PY(f).seriesIndex=e.seriesIndex,TX(f,k,A,j);var ee=W2(e.get(`smooth`)),N=e.get(`smoothMonotone`);if(f.setShape({smooth:ee,smoothMonotone:N,connectNulls:x}),p){var P=a.getCalculationInfo(`stackedOnSeries`),F=0;p.useStyle(sU(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),P&&(F=W2(P.get(`smooth`))),p.setShape({smooth:ee,stackedOnSmooth:F,smoothMonotone:N,connectNulls:x}),DX(p,e,`areaStyle`),PY(p).seriesIndex=e.seriesIndex,TX(p,k,A,j)}var te=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=te)}),this._polyline.onHoverStateChange=te,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_;var ne=e.get(`triggerEvent`),re=e.get(`triggerLineEvent`),ie=re===!0||ne===!0||ne===`line`,ae=re===!0||ne===!0||ne===`area`;this.packEventData(e,f,ie),p&&this.packEventData(e,p,ae)},t.prototype.packEventData=function(e,t,n){PY(t).eventData=n?{componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`,selfType:t===this._polygon?`area`:`line`}:null},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=_Y(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(F0(c,l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new O0(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else W0.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=_Y(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else W0.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;lX(this._polyline,e),t&&lX(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new TTe({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new DTe({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);xU(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=xU(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n)if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=xU(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(q2(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new yJ({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=lEe(o);c>=0&&(uQ(a,dQ(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?E0(i,e):D0(i,n)},enableTextSetter:!0},dEe(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=uEe(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=K2(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=Oxe(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=K2(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=vQ(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=wTe(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=G2(u.stackedOnCurrent,u.current,n,i,o),d=G2(u.current,null,n,i,o),m=G2(u.stackedOnNext,u.next,n,i,o),p=G2(u.next,null,n,i,o)),U2(d,p)>3e3||c&&U2(f,m)>3e3){s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),EZ(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),EZ(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=g[t].ptIdx*2;n.x=e[r],n.y=e[r+1],n.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type=`line`,t}(W0);function pEe(e,t){return{seriesType:e,plan:H0(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=fU(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,c=n.getCalculationInfo(`stackResultDimension`);N$(n,o[0])&&(o[0]=c),N$(n,o[1])&&(o[1]=c);var l=n.getStore(),u=n.getDimensionIndex(o[0]),d=n.getDimensionIndex(o[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&I0(n*s),o=[],c=[],f=e.start,p=0;f<e.end;f++){var m=void 0;if(s===1){var h=l.get(u,f);m=r.dataToPoint(h,null,c)}else o[0]=l.get(u,f),o[1]=l.get(d,f),m=r.dataToPoint(o,null,c);a?(i[p++]=m[0],i[p++]=m[1]):t.setItemLayout(f,m.slice())}a&&(t.setLayout(`points`,i),t.setLayout(`pointsRange`,{start:e.start,end:e.end}))}}}}}}var mEe={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},hEe=function(e){return Math.round(e.length/2)};function Y2(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get(`sampling`),a=e.coordinateSystem,o=r.count();if(o>10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;SU(i)?p=mEe[i]:xU(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,hEe))}}}}}function gEe(e){e.registerChartView(fEe),e.registerSeriesModel(_Te),e.registerLayout(pEe(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Y2(`line`))}var _Ee=vY(),X2=vY(),Z2={estimate:1,determine:2};function Q2(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function vEe(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:fU($2(n,r),function(t,n){return{formattedLabel:M2(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?bEe(e,t):SEe(e)}function yEe(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:$2(i,r)}:e.type===`category`?xEe(e,t):{ticks:r.getTicks(n)}}function $2(e,t){var n=t.getExtent(),r=[];return $(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),jY(r,Pxe,null),UJ(r),fU(r,function(e){return{value:e}})}function bEe(e,t){var n=e.getLabelModel(),r=e4(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function e4(e,t,n){var r=wEe(e),i=P2(t),a=n.kind===Z2.estimate;if(!a){var o=n4(r,i);if(o)return o}var s,c;xU(i)?s=a4(e,i,!1):(c=i===`auto`?TEe(e,n):i,s=a4(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return r4(r,i,l),!0}):r4(r,i,l),l}function xEe(e,t){var n=CEe(e),r=P2(t),i=n4(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),xU(r))a=a4(e,r,!0);else if(r===`auto`){var s=e4(e,e.getLabelModel(),Q2(Z2.determine));o=s.labelCategoryInterval,a=fU(s.labels,function(e){return e.tick})}else o=r,a=a4(e,o,!0);return r4(n,r,{ticks:a,tickCategoryInterval:o})}function SEe(e){var t=e.scale.getTicks(),n=M2(e);return{labels:fU(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var CEe=t4(`axisTick`),wEe=t4(`axisLabel`);function t4(e){return function(t){return X2(t)[e]||(X2(t)[e]={list:[]})}}function n4(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function r4(e,t,n){return e.list.push({key:t,value:n}),n}function TEe(e,t){if(t.kind===Z2.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return X2(e).autoInterval=n,!0}),n}return X2(e).autoInterval??(X2(e).autoInterval=e.calculateCategoryInterval(t))}function EEe(e,t){var n=t.kind,r=OEe(e),i=M2(e),a=(r.axisRotate-r.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),c=o.count();if(s[1]-s[0]<1)return 0;var l=1,u=40;c>u&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=_G(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===Z2.estimate?(t.out.noPxChangeTryDetermine.push(vU(DEe,null,e,S,c)),S):i4(e,S,c)??S}function DEe(e,t,n){return i4(e,t,n)==null}function i4(e,t,n){var r=_Ee(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function OEe(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function a4(e,t,n){var r=M2(e),i=e.scale,a=[],o=xU(t);return g2(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var o4=vY();function kEe(e){o4(e).prepare={}}function AEe(e){o4(e).fullUpdate={}}function jEe(e){return o4(e).prepare}function s4(e){return o4(e).fullUpdate}var MEe=AY(),c4=vY(),NEe=vY();function l4(e,t){var n=e.model,r=c4(s4(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function PEe(e,t){return d4(l4(e,t))}function FEe(e,t){var n=[];return u4(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(d4(e))}),n}function u4(e,t){var n=c4(s4(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function d4(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function IEe(e,t){var n=e.model.ecModel,r=c4(s4(n)).axSer;r&&p4(n,r.get(e.model.uid),t)}function f4(e,t,n){var r=l4(e,t);r&&p4(e.model.ecModel,r.sers,n)}function p4(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function LEe(e,t,n){var r=c4(s4(e)).keyed,i=r&&r.get(t);i&&i.each(function(e){n(e.axis)})}function m4(e,t){var n=e.model,r=c4(s4(n.ecModel)).keys;r&&$(r.get(n.uid),function(e){t(e)})}function REe(e){var t=NEe(jEe(e)),n=t.keyed||=KU();u4(e,function(t,r,i){var a=n.get(r)||n.set(r,KU()),o=a.get(i)||a.set(i,{});t.metrics.liPosMinGap&&h4.liPosMinGap(e,t,o)})}function zEe(e,t){h4[e]=t}var h4={};function g4(e,t,n){if(e){var r=t.ecModel,i=c4(s4(r)),a=e.model.uid,o=i.axSer||=KU();(o.get(a)||o.set(a,[])).push(t);var s=t.subType,c=t.getBaseAxis()===e,l=v4.get(_4(s,c,n))||v4.get(_4(s,c,null));if(l){var u=i.keyed||=KU(),d=i.keys||=KU(),f=l.key,p=u.get(f)||u.set(f,KU()),m=p.get(a);m||(m=p.set(a,{axis:e,sers:[],serByIdx:[]}),m.metrics=l.getMetrics(e),(d.get(a)||d.set(a,[])).push(f)),m.sers.push(t),m.serByIdx[t.seriesIndex]=t}}}function _4(e,t,n){return e+`|&`+NU(t,!0)+`|&`+(n||``)}function BEe(e,t){var n=_4(t.seriesType,t.baseAxis,t.coordSysType);v4.set(n,t),MEe(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:REe})})}var v4=KU(),VEe=.8;function y4(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=FTe(r);nY(o)||(o=NaN);var s=e.getExtent(),c=MJ(s[1]-s[0]);return u2(r)?HEe(n,e,o,c):i&&UEe(n,e,o,c,i),a!=null&&(n.w=nY(n.w)?jJ(a,n.w):a),n}function HEe(e,t,n,r){var i=t.onBand,a=n+ +!!i;a===0&&(a=1),e.w=r/a,!i&&n&&r&&(e.w2=e.w*n/r)}function UEe(e,t,n,r,i){var a=!1,o=-1/0;$(i.key?[PEe(t,i.key)]:FEe(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),nY(n)&&n>0&&nY(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*VEe,e.w2=e.w*n/r)}var b4=[0,1],WEe=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),zJ(e,b4,x4(this),t)},e.prototype.coordToData=function(e,t){var n=zJ(e,x4(this),b4,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=fU(yEe(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(z2(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=GEe(this,n,r);return fU(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(u2(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),fU(this.scale.getMinorTicks(e),function(e){return fU(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=Q2(Z2.determine),vEe(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return y4(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=Q2(Z2.determine),EEe(this,e)},e}();function x4(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function GEe(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=y4(e).w;if(!i)return!1;$(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var KEe=function(e){PH(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(WEe),S4=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],qEe=1,C4=2,w4=qEe|C4;function T4(e,t,n){n||=w4,t?e.dirty|=n:e.dirty&=~n}function E4(e,t){return t||=w4,e.dirty==null||!!(e.dirty&t)}function D4(e){if(e)return E4(e)&&JEe(e,e.label,e),e}function JEe(e,t,n){var r=t.getComputedTransform();e.transform=rQ(e.transform,r);var i=e.localRect=nQ(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=yQ.textMargin);for(var d=0;d<4;d++)O4[d]=u===yQ.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===yQ.textMargin&&JZ(i,O4,!1,!1);var f=e.rect=nQ(e.rect,i);return r&&f.applyTransform(r),u===yQ.minMargin&&JZ(f,O4,!1,!1),e.axisAligned=eQ(r),(e.label=e.label||{}).ignore=t.ignore,T4(e,!1),T4(e,!0,C4),e}var O4=[0,0,0,0];function YEe(e,t,n){return e.transform=rQ(e.transform,n),e.localRect=nQ(e.localRect,t),e.rect=nQ(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=eQ(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function XEe(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function k4(e,t){for(var n=0;n<S4.length;n++){var r=S4[n];e[r]??(e[r]=t[r])}return D4(e)}function A4(e){var t=e.obb;return(!t||E4(e,C4))&&(e.obb=t||=new wZ,t.fromBoundingRect(e.localRect,e.transform),T4(e,!1,C4)),t}function ZEe(e){var t=[];e.sort(function(e,t){return!!t.suggestIgnore-+!!e.suggestIgnore||t.priority-e.priority});function n(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore??=!1}e.ignore=!0}for(var r=0;r<e.length;r++){var i=D4(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(j4(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function j4(e,t,n,r){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,n,r)?!1:e.axisAligned&&t.axisAligned?!0:A4(e).intersect(A4(t),n,r)}var QEe=null;function M4(){return QEe}var $Ee=`expandAxisBreak`,N4=Math.PI,eDe=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],tDe=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],P4=vY(),F4=vY(),I4=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}();function nDe(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=X4(e.axisName)&&F2(e.nameLocation);$(r,function(e){var t=D4(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?FW(L4,n.transform):AW(L4),t.transform&&MW(L4,L4,t.transform),iG.copy(R4,t.localRect),R4.applyTransform(L4),s?s.union(R4):iG.copy(s=new iG(0,0,0,0),R4))}});var l=Math.abs(a.dirVec.x)>.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new iG(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var L4=kW(),R4=new iG(0,0,0,0),z4=function(e,t,n,r,i,a){if(F2(e.nameLocation)){var o=a.stOccupiedRect;o&&B4(YEe({},o,a.transGroup.transform),r,i)}else V4(a.labelInfoList,a.dirVec,r,i)};function B4(e,t,n){var r=new GW;j4(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&XEe(t,r)}function V4(e,t,n,r){for(var i=GW.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||B4(s,n,r)}}var H4=function(){function e(e,t,n,r){this.group=new GX,this._axisModel=e,this._api=t,this._local={},this._shared=r||new I4(z4),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},r=NU(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=NU(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:NU(e.nameDirection,1),tickDirection:NU(e.tickDirection,1),labelDirection:NU(e.labelDirection,1),labelOffset:NU(e.labelOffset,0),silent:NU(e.silent,!0),axisName:r,nameLocation:PU(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:X4(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};this._cfg=a;var o=new GX({x:a.position[0],y:a.position[1],rotation:a.rotation});o.updateTransform(),this._transformGroup=o;var s=this._shared.ensureRecord(t);s.transGroup=this._transformGroup,s.dirVec=new GW(Math.cos(-a.rotation),Math.sin(-a.rotation))},e.prototype.build=function(e,t){var n=this;return e||={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0},$(rDe,function(r){e[r]&&iDe[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},e.innerTextLayout=function(e,t,n){var r=KJ(t-e),i,a;return qJ(r)?(a=n>0?`top`:`bottom`,i=`center`):qJ(r-N4)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<N4?n>0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),rDe=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],iDe={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(HW(u,u,l),HW(d,d,l));var p=aU({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&e1(r.axis.scale))M4().buildAxisBreakLine(r,i,a,m);else{var h=new uZ(aU({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));VZ(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);SU(g)&&(g=[g,g]),(SU(_)||wU(_))&&(_=[_,_]);var v=T0(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];$([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=w0(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){K4(t,i,s)&&U4(e,t,n,r,i,a,o,Z2.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){K4(t,i,s)&&U4(e,t,n,r,i,a,o,Z2.determine);var c=cDe(e,i,a,r);sDe(e,t.labelLayoutList,c),lDe(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(X4(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new GW(0,0),_=new GW(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=kW();_.transform(PW(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*N4/180);var b,x;F2(u)?b=H4.innerTextLayout(e.rotation,y??e.rotation,d):(b=aDe(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=MU(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new yJ({x:g.x,y:g.y,rotation:b.rotation,silent:H4.isLabelSilent(r),style:fQ(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(ZZ({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=H4.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,PY(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=D4({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:F2(u)?eDe[E]:tDe[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function U4(e,t,n,r,i,a,o,s){q4(t)||uDe(e,t,i,s,r,o);var c=t.labelLayoutList;dDe(e,r,c,a),mDe(r,e.rotation,c);var l=e.optionHideOverlap;oDe(r,c,l),l&&ZEe(mU(c,function(e){return e&&!e.label.ignore})),nDe(e,n,r,c)}function aDe(e,t,n,r){var i=KJ(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return qJ(i-N4/2)?(o=c?`bottom`:`top`,a=`center`):qJ(i-N4*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<N4*1.5&&i>N4/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function oDe(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(tEe(r))return;function a(e,a,o){var s=D4(t[a]),c=D4(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=P4(s.label).labelInfo.tick;if(c2(l)&&u.notNice||u2(l)&&u.offInterval){W4(s.label);return}}if(e===!1||s.suggestIgnore){W4(s.label);return}if(c.suggestIgnore){W4(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=k4({marginForce:f},s),c=k4({marginForce:f},c)}j4(s,c,null,{touchThreshold:d})&&W4(e?c.label:s.label)}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function sDe(e,t,n){e.showMinorTicks||$(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=F4(r),a=P4(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.labelInfo.tick.value){W4(r);return}}})}function W4(e){e&&(e.ignore=!0)}function G4(e,t,n,r,i){for(var a=[],o=[],s=[],c=0;c<e.length;c++){var l=e[c].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=n,t&&(HW(o,o,t),HW(s,s,t));var u=new uZ({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});VZ(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=F4(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function cDe(e,t,n,r){var i=r.axis,a=r.getModel(`axisTick`),o=a.get(`show`);if(o===`auto`&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel(`lineStyle`),c=e.tickDirection*a.get(`length`),l=G4(i.getTicksCoords(),n.transform,c,sU(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function lDe(e,t,n,r,i){var a=r.axis,o=r.getModel(`minorTick`);if(!(!e.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var c=o.getModel(`lineStyle`),l=i*o.get(`length`),u=sU(c.getLineStyle(),sU(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=G4(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function K4(e,t,n){if(q4(e)){var r=e.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var i=!0,a=0;a<r.length;a++)i&&=r[a]();if(i)return!1}r.length&&(t.remove(e.labelGroup),J4(e,null,null,null))}return!0}function uDe(e,t,n,r,i,a){var o=i.axis,s=MU(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new GX;n.add(c);var l=Q2(r);if(!s||o.scale.isBlank()){J4(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(MU(e.raw.labelRotate,u.get(`rotate`))||0)*N4/180,p=H4.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;$(d,function(e,t){var n=e.tick,r=e.formattedLabel,s=e.rawLabel,l=u,f=z2(o.scale,n);if(m&&m[f]){var y=m[f];TU(y)&&y.textStyle&&(l=new wQ(y.textStyle,u,i.ecModel))}var b=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),x=l.getShallow(`align`,!0)||p.textAlign,S=NU(l.getShallow(`alignMinLabel`,!0),x),C=NU(l.getShallow(`alignMaxLabel`,!0),x),w=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,T=NU(l.getShallow(`verticalAlignMinLabel`,!0),w),E=NU(l.getShallow(`verticalAlignMaxLabel`,!0),w),D=10+(n.time?.level||0);_=Math.min(_,D),v=Math.max(v,D);var O=new yJ({x:0,y:0,rotation:0,silent:H4.isLabelSilent(i),z2:D,style:fQ(l,{text:r,align:t===0?S:t===d.length-1?C:x,verticalAlign:t===0?T:t===d.length-1?E:w,fill:xU(b)?b(o.type===`category`?s:o.type===`value`?f+``:f,t):b})});O.anid=`label_`+f;var k=P4(O);if(k.labelInfo=e,k.layoutRotation=p.rotation,ZZ({el:O,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:s,tickIndex:t}}),g){var A=H4.makeAxisEventDataBase(i);A.targetType=`axisLabel`,A.value=s,A.tickIndex=t;var j=e.tick.break;if(j){var M=j.parsedBreak;A.break={start:M.vmin,end:M.vmax}}o.type===`category`&&(A.dataIndex=f),PY(O).eventData=A,j&&pDe(i,a,O,j)}h.push(O),c.add(O)}),J4(t,fU(h,function(e){return{label:e,priority:P4(e).labelInfo.tick.break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function q4(e){return!!e.labelLayoutList}function J4(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function dDe(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);$(n,function(n,a){var o=D4(n);if(o){var s=o.label,c=P4(s);o.suggestIgnore=s.ignore,s.ignore=!1,WG(Y4,fDe);var l=t.axis;Y4.x=l.dataToCoord(z2(l.scale,c.labelInfo.tick)),Y4.y=e.labelOffset+e.labelDirection*i,Y4.rotation=c.layoutRotation,r.add(Y4),Y4.updateTransform(),r.remove(Y4),Y4.decomposeTransform(),WG(s,Y4),s.markRedraw(),T4(o,!0),D4(o)}})}var Y4=new hJ,fDe=new hJ;function X4(e){return!!e}function pDe(e,t,n,r){n.on(`click`,function(n){var i={type:$Ee,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function mDe(e,t,n){var r=Z$();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&P4(e.label).labelInfo.tick.break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&$(i,function(r){M4().adjustBreakLabelPair(e.axis.inverse,t,[D4(n[r[0]]),D4(n[r[1]])])})}}function Z4(e,t,n){n||={};var r=t.axis,i={},a=r.getAxesOnZeroOf()[0],o=r.position,s=a?`onZero`:o,c=r.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],u={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get(`offset`)||0,f=c===`x`?[l[2]-d,l[3]+d]:[l[0]-d,l[1]+d];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));f[u.onZero]=Math.max(Math.min(p,f[1]),f[0])}i.position=[c===`y`?f[u[s]]:l[0],c===`x`?f[u[s]]:l[3]],i.rotation=Math.PI/2*(c===`x`?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],i.labelOffset=a?f[u[o]]-f[u.onZero]:0,t.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),MU(n.labelInside,t.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var m=t.get([`axisLabel`,`rotate`]);return i.labelRotate=s===`top`?-m:m,i.z2=1,i}function hDe(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function gDe(e){var t={xAxisModel:null,yAxisModel:null};return $(t,function(n,r){var i=r.replace(/Model$/,``);t[r]=e.getReferringComponents(i,xY).models[0]}),t}function _De(e,t,n,r,i,a){for(var o=Z4(e,n),s=!1,c=!1,l=0;l<t.length;l++)o2(t[l].getOtherAxis(n.axis).scale)&&(s=c=!0,n.axis.type===`category`&&n.axis.onBand&&(c=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=c,o.defaultNameMoveOverlap=a,new H4(n,r,o,i)}function vDe(e,t,n){var r=Z4(t,n);e.updateCfg(r)}var yDe=vY(),bDe=3,Q4=function(){function e(e,t,n,r,i){var a=u2(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(s2(e)||l2(e)||c2(e))&&(EY(l,e3(e,t.get(`dataMin`,!0))),DY(l,e3(e,t.get(`dataMax`,!0)))),Axe(l)||(l[0]=l[1]=NaN);var u=[],d=[!1,!1],f=t.get(`min`,!0);f===`dataMin`?(u[0]=l[0],d[0]=!0):(u[0]=e3(e,xU(f)?f({min:l[0],max:l[1]}):f),d[0]=u[0]!=null);var p=t.get(`max`,!0);p===`dataMax`?(u[1]=l[1],d[1]=!0):(u[1]=e3(e,xU(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=xDe(e,t),h=a?null:l[1]-l[0]||Math.abs(l[0]);u[0]??=a?s?l[0]:o?0:NaN:l[0]-m[0]*h,u[1]??=a?s?l[1]:o?o-1:NaN:l[1]+m[1]*h,!OY(u[0])&&(u[0]=NaN),!OY(u[1])&&(u[1]=NaN);var g=s||jU(u[0])||jU(u[1])||a&&!o,_=s2(e),v=_&&t.needIncludeZero&&t.needIncludeZero();v&&(u[0]>0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=e3(e,t.get(`startValue`,!0)),x=b!=null;!nY(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),nY(b)&&(x||!_||v)&&(b<u[0]&&!d[0]?(u[0]=b,d[0]=!0):b>u[1]&&!d[1]&&(u[1]=b,d[1]=!0)),$4(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),$4(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function $4(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),jxe(t))}function e3(e,t){return t==null?null:jU(t)?NaN:e.parse(t)}function xDe(e,t){var n;if(u2(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=bU(r)?r:[r,r]}return[t3(n[0]),t3(n[1])]}function t3(e){return xG(typeof e==`boolean`?0:e,1)||0}function n3(e){var t=yDe(e.scale);return t.extent||=wY(),t}function SDe(e,t){n3(e).dimIdxInCoord=t.get(e.dim)}function CDe(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||wDe(n,e,i,r,t)}function wDe(e,t,n,r,i){var a=n3(t),o=a.extent,s=!1;IEe(t,function(r){if(r.boxCoordinateSystem){var i=j$(r).coord,c=a.dimIdxInCoord;if(c>=0&&bU(i)){var l=i[c];l!=null&&!bU(l)&&TY(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;$(nEe(u,n),function(e){kxe(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=DDe(e,t,r);r3(e,new Q4(e,r,o,s,c),i),a.extent=null}function TDe(e,t){var n=e.scale;r3(n,new Q4(n,e.model,t,!1,!1),bDe)}function r3(e,t,n){e.rawExtentInfo=t,t.from=n}function EDe(e,t){i3.set(e,t)}var i3=KU();function a3(e,t,n,r,i){e.rawExtentInfo||TDe({scale:e,model:t},i||wY());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function DDe(e,t,n){var r=B2(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return m4(t,function(e){a=!!i3.get(e)||a}),a}function ODe(e,t,n,r){if(n.ctnShp){var i;if(m4(e,function(t){var n=i3.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],EY(i,a[0]),DY(i,a[1]),$Te(e))}}),i){var a=t.getExtent();if(u2(t))e.onBand||t.setExtent2(1,AJ(a[0],a[0]+i[0]),jJ(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=AJ(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=jJ(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&t.setExtent2(1,o[0],o[1])}}}}function kDe(){zEe(`liPosMinGap`,ADe)}function ADe(e,t,n){var r=KU(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=i$(u);function f(n){p4(e,t.sers,function(e){var t=e.getRawData(),r=t.getDimensionIndex(t.mapDimension(s.dim));r>=0&&n(r,e,t.getStore())})}var p=0;if(f(function(e,t,n){r.set(t.uid,1),(!i||!i.hasKey(t.uid))&&(o=!0),p+=n.count()}),(!i||i.keys().length!==r.keys().length)&&(o=!0),!o&&a!=null){t.liPosMinGap=a;return}L0(o3,p);var m=0;f(function(e,t,n){for(var r=0,i=n.count();r<i;++r){var a=n.get(e,r);isFinite(a)&&(!u||a$(d,a))&&(l&&(a=c.transformIn(a,null)),o3.arr[m++]=a)}});var h=o3.typed?o3.arr.subarray(0,m):(o3.arr.length=m,o3.arr);o3.typed?h.sort():UJ(h);for(var g=1/0,_=1;_<m;++_){var v=h[_]-h[_-1];v>0&&v<g&&(g=v)}n.liPosMinGap=t.liPosMinGap=nY(g)?g:m>0?-2:-1,n.serUids=r}var o3=L0({ctor:STe},50);function jDe(e){return function(t,n){var r=y4(t,{fromStat:{key:e}});if(nY(r.w2))return[-r.w2/2,r.w2/2]}}function s3(e,t){return e+`|&`+t}function MDe(e){return kDe(),{liPosMinGap:!u2(e.scale)}}function NDe(e,t,n,r){BEe(e,{key:t,seriesType:n,coordSysType:r,getMetrics:MDe})}function PDe(e){return e.scale.rawExtentInfo.makeRenderInfo().startValue}var c3={left:0,right:0,top:0,bottom:0},l3=[`25%`,`25%`],u3=`cartesian2d`,FDe=function(e){PH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=G1(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&W1(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&W1(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:c3,outerBoundsContain:`all`,outerBoundsClampWidth:l3[0],outerBoundsClampHeight:l3[1],backgroundColor:n0.color.transparent,borderWidth:1,borderColor:n0.color.neutral30},t}(K1),IDe=AY(),LDe=`__ec_stack_`;function d3(e){return e.get(`stack`)||LDe+e.seriesIndex}function RDe(e,t){var n=zDe(e,t);return n.columnMap=BDe(n),n}function zDe(e,t){var n=s3(t,u3),r=[],i=y4(e,{fromStat:{key:n},min:1});return f4(e,n,function(e){r.push({barWidth:BJ(e.get(`barWidth`),i.w),barMaxWidth:BJ(e.get(`barMaxWidth`),i.w),barMinWidth:BJ(e.get(`barMinWidth`)||(f3(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:d3(e)})}),{bandWidthResult:i,seriesInfo:r}}function BDe(e){var t=e.bandWidthResult.w,n=t,r=0,i,a,o=[],s={};$(e.seriesInfo,function(e,t){t||(a=e.defaultBarGap||0);var c=e.stackId;XU(s,c)||r++;var l=s[c];l||(l=s[c]={width:0,maxWidth:0},o.push(c));var u=e.barWidth;u&&!l.width&&(l.width=u,u=AJ(n,u),n-=u);var d=e.barMaxWidth;d&&(l.maxWidth=d);var f=e.barMinWidth;f&&(l.minWidth=f);var p=e.barGap;p!=null&&(a=p);var m=e.barCategoryGap;m!=null&&(i=m)}),i??=jJ(35-o.length*4,15)+`%`;var c=BJ(i,t),l=BJ(a,1),u=(n-c)/(r+(r-1)*l);u=jJ(u,0),$(o,function(e){var t=s[e],i=t.maxWidth,a=t.minWidth;if(t.width){var o=t.width;i&&(o=AJ(o,i)),a&&(o=jJ(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&i<o&&(o=AJ(i,n)),a&&a>o&&(o=a),o!==u&&(t.width=o,n-=o+l*o,r--)}}),u=(n-c)/(r+(r-1)*l),u=jJ(u,0);var d=0,f;$(o,function(e){var t=s[e];t.width||=u,f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p={},m=-d/2;return $(o,function(e){var n=s[e];p[e]=p[e]||{bandWidth:t,offset:m,width:n.width},m+=n.width*(1+l)}),p}function VDe(e){return{seriesType:e,overallReset:function(t){var n=s3(e,u3);LEe(t,n,function(t){var r=RDe(t,e);f4(t,n,function(e){var t=r.columnMap[d3(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function HDe(e){return{seriesType:e,plan:H0(),reset:function(e){if(hDe(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=N$(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(PDe(i))),p=f3(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&I0(r*3),c=p&&s&&I0(r*3),l=p&&I0(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,MJ(k)<m&&(k=(k<0?-1:1)*m)}else{var j=n.dataToPoint([w,C]);u&&(T=n.dataToPoint([w,E])[1]),D=j[0]+_,O=T,k=g,A=j[1]-T,MJ(A)<m&&(A=(A<=0?-1:1)*m)}p?(i[S]=D,i[S+1]=O,i[S+2]=d?k:A,c&&(c[S]=d?v.x:D,c[S+1]=d?O:v.y,c[S+2]=y),l[b]=b):t.setItemLayout(b,{x:D,y:O,width:k,height:A}),S+=3}p&&t.setLayout({largePoints:i,largeDataIndices:l,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function f3(e){return e.pipelineContext&&e.pipelineContext.large}function UDe(e){return jDe(s3(e,u3))}function WDe(e){IDe(e,function(){function t(t){var n=s3(t,u3);NDe(e,n,t,u3),EDe(n,UDe(t))}t(`bar`),t(`pictorialBar`)})}var p3=function(e){PH(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return P$(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)$(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2){a[n]=e.toGlobalCoord(e.getExtent()[+!!c]);return}for(var l=void 0,u=void 0,d=1,f=0;f<r.length;f++){var p=r[f].coord,m=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(m===s){u=p;break}else if(m<s)l=p;else if(l!=null&&m>s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}(y0);y0.registerClass(p3);var GDe=function(e){PH(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return P$(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.__preparePipelineContext=function(e,t){var n=MY(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=I$(p3.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:`rgba(180, 180, 180, 0.2)`,borderColor:null,borderWidth:0,borderType:`solid`,borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:n0.color.primary,borderWidth:2}},realtimeSort:!1}),t}(p3),m3=`\0__throttleOriginMethod`,h3=`\0__throttleRate`,g3=`\0__throttleType`;function _3(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function v3(e,t,n,r){var i=e[t];if(i){var a=i[m3]||i,o=i[g3];if(i[h3]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=_3(a,n,r===`debounce`),i[m3]=a,i[g3]=r,i[h3]=n}return i}}function y3(e,t){var n=e[t];n&&n[m3]&&(n.clear&&n.clear(),e[t]=n[m3])}var KDe=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),b3=function(e){PH(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new KDe},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-c<d:c-l<d;f||(c=l-(u?d:-d));var p=Math.cos(c),m=Math.sin(c),h=Math.cos(l),g=Math.sin(l);f?(e.moveTo(p*i+n,m*i+r),e.arc(p*s+n,m*s+r,o,-Math.PI+c,c,!u)):e.moveTo(p*a+n,m*a+r),e.arc(n,r,a,c,l,!u),e.arc(h*s+n,g*s+r,o,l-Math.PI*2,l-Math.PI,!u),i!==0&&e.arc(n,r,i,l,c,u)},t}(cJ);function qDe(e,t){t||={};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return SG(t,r,i);var o=e(a),s=r.distance==null?5:r.distance,c=this.shape,l=c.cx,u=c.cy,d=c.r,f=c.r0,p=(d+f)/2,m=c.startAngle,h=c.endAngle,g=(m+h)/2,_=n?Math.abs(d-f)/2:0,v=Math.cos,y=Math.sin,b=l+d*v(m),x=u+d*y(m),S=`left`,C=`top`;switch(o){case`startArc`:b=l+(f-s)*v(g),x=u+(f-s)*y(g),S=`center`,C=`top`;break;case`insideStartArc`:b=l+(f+s)*v(g),x=u+(f+s)*y(g),S=`center`,C=`bottom`;break;case`startAngle`:b=l+p*v(m)+x3(m,s+_,!1),x=u+p*y(m)+S3(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+x3(m,-s+_,!1),x=u+p*y(m)+S3(m,-s+_,!1),S=`left`,C=`middle`;break;case`middle`:b=l+p*v(g),x=u+p*y(g),S=`center`,C=`middle`;break;case`endArc`:b=l+(d+s)*v(g),x=u+(d+s)*y(g),S=`center`,C=`bottom`;break;case`insideEndArc`:b=l+(d-s)*v(g),x=u+(d-s)*y(g),S=`center`,C=`top`;break;case`endAngle`:b=l+p*v(h)+x3(h,s+_,!0),x=u+p*y(h)+S3(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+x3(h,-s+_,!0),x=u+p*y(h)+S3(h,-s+_,!0),S=`right`,C=`middle`;break;default:return SG(t,r,i)}return t||={},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function JDe(e,t,n,r){if(wU(r)){e.setTextConfig({rotation:r});return}else if(bU(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,c,l=n(t);switch(l){case`startArc`:case`insideStartArc`:case`middle`:case`insideEndArc`:case`endArc`:c=s;break;case`startAngle`:case`insideStartAngle`:c=a;break;case`endAngle`:case`insideEndAngle`:c=o;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-c;l===`middle`&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}function x3(e,t,n){return t*Math.sin(e)*(n?-1:1)}function S3(e,t,n){return t*Math.cos(e)*(n?1:-1)}function YDe(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;bU(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:fU(r,function(e){return xG(e,i)})}}var C3=Math.max,w3=Math.min,XDe=function(e){PH(t,e);function t(){var t=e.call(this)||this;return t.type=`bar`,t._isFirstFrame=!0,t}return t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get(`coordinateSystem`);(i===`cartesian2d`||i===`polar`)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){$Z(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i=this.group,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.getBaseAxis(),l;s.type===`cartesian2d`?l=c.isHorizontal():s.type===`polar`&&(l=c.dim===`angle`);var u=e.isAnimationEnabled()?e:null,d=ZDe(e,s);d&&this._enableRealtimeSort(d,a,n);var f=e.get(`clip`,!0)||d,p=s.getArea();i.removeClipPath();var m=e.get(`roundCap`,!0),h=e.get(`showBackground`,!0),g=e.getModel(`backgroundStyle`),_=g.get(`borderRadius`)||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,x=r&&r.type===`changeAxisOrder`;function S(e){var t=A3[s.type](a,e);if(!t)return null;var n=iOe(s,l,t);return n.useStyle(g.getItemStyle()),s.type===`cartesian2d`?n.setShape(`r`,_):n.setShape(`cornerRadius`,_),v[e]=n,n}a.diff(o).add(function(t){var n=a.getItemModel(t),r=A3[s.type](a,t,n);if(r&&(h&&S(t),!(!a.hasValue(t)||!k3[s.type](r)))){var o=!1;f&&(o=T3[s.type](p,r));var g=E3[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),M3(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?D3(d,u,g,r,t,l,!1,!1):DZ(g,{shape:r},e,t),a.setItemGraphicEl(t,g),i.add(g),g.ignore=o}}).update(function(t,n){var r=a.getItemModel(t),C=A3[s.type](a,t,r);if(C){if(h){var w=void 0;y.length===0?w=S(n):(w=y[n],w.useStyle(g.getItemStyle()),s.type===`cartesian2d`?w.setShape(`r`,_):w.setShape(`cornerRadius`,_),v[t]=w);var T=A3[s.type](a,t),E=I3(l,T,s);EZ(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!k3[s.type](C)){i.remove(D);return}var O=!1;if(f&&(O=T3[s.type](p,C),O&&i.remove(D)),D&&(D.type===`sector`&&m||D.type===`sausage`&&!m)&&(D&&jZ(D,e,n),D=null),D?MZ(D):D=E3[s.type](e,a,t,C,l,u,c.model,!0,m),d&&(D.forceLabelAnimation=!0),x){var k=D.getTextContent();if(k){var A=vQ(k);A.prevValue!=null&&(A.prevValue=A.value)}}else M3(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?D3(d,u,D,C,t,l,!0,x):EZ(D,{shape:C},e,t,null),a.setItemGraphicEl(t,D),D.ignore=O,i.add(D)}}).remove(function(t){var n=o.getItemGraphicEl(t);n&&jZ(n,e,t)}).execute();var C=this._backgroundGroup||=new GX;C.removeAll();for(var w=0;w<v.length;++w)C.add(v[w]);i.add(C),this._backgroundEls=v,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),P3(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),P3(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&MTe(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on(`rendered`,this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i??=NaN,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:fU(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){jZ(t,e,PY(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(W0),T3={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=C3(t.x,e.x),s=w3(t.x+t.width,i),c=C3(t.y,e.y),l=w3(t.y+t.height,a),u=s<o,d=l<c;return t.x=u&&o>i?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=w3(t.r,e.r),a=C3(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},E3={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new hJ({shape:aU({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?b3:aZ,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=qDe(j3(i),{isRoundCap:l===b3}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?EZ:DZ)(u,{shape:p},a)}return u}};function ZDe(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function D3(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?EZ:DZ)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?EZ:DZ)(n,{shape:l},u,i)}function O3(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var QDe=[`x`,`y`,`width`,`height`],$De=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],k3={cartesian2d:function(e){return!O3(e,QDe)},polar:function(e){return!O3(e,$De)}},A3={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?tOe(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function eOe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function j3(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function M3(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;aU(u,YDe(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?aOe(i,a.coordinateSystem):oOe(i,a.coordinateSystem),p=dQ(r);uQ(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:E0(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`||null,JDe(e,h===`outside`?f:h,j3(o),r.get([`label`,`rotate`]))}iCe(m,p,a.getRawValue(n),function(e){return D0(t,e)});var g=r.getModel([`emphasis`]);TX(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),DX(e,r),eOe(i)&&(e.style.fill=`none`,e.style.stroke=`none`,$(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function tOe(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var nOe=function(){function e(){}return e}(),N3=function(e){PH(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new nOe},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},t}(cJ);function P3(e,t,n,r){var i=e.getData(),a=+!!i.getLayout(`valueAxisHorizontal`),o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`),u=r?Fxe(e):0;if(l){var d=new N3({shape:{points:l},incremental:u,silent:!0,z2:0});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,d.useStyle(c.getItemStyle()),t.add(d),n&&n.push(d)}var f=new N3({shape:{points:i.getLayout(`largePoints`)},incremental:u,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual(`style`)),f.style.stroke=null,PY(f).seriesIndex=e.seriesIndex,e.get(`silent`)||(f.on(`mousedown`,F3),f.on(`mousemove`,F3)),n&&n.push(f)}var F3=_3(function(e){var t=this,n=rOe(t,e.offsetX,e.offsetY);PY(t).dataIndex=n>=0?n:null},30,!1);function rOe(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u<d;u++){var f=u*3;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function I3(e,t,n){if(Y0(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}else{var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function iOe(e,t,n){return new(e.type===`polar`?aZ:hJ)({shape:I3(t,n,e),silent:!0,z2:0})}function aOe(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function oOe(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function sOe(e){e.registerChartView(XDe),e.registerSeriesModel(GDe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,VDe(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,HDe(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Y2(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),WDe(e)}function L3(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=_Y(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:bU(l)?c.getName(l[0]):c.getName(l),selected:SU(r)?r:aU({},r)})}})}function cOe(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(L3(`map`,`selectchanged`,t,r,e),L3(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(L3(`map`,`selected`,t,r,e),L3(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(L3(`map`,`unselected`,t,r,e),L3(`pie`,`unselected`,t,r,e))})}var R3=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),lOe=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new R3(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new R3(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new R3(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new R3(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new R3(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new R3(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),uOe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,z3=[],dOe=eW.browser.firefox&&+eW.browser.version.split(`.`)[0]<39;function B3(e,t,n,r){return n||={},r?V3(e,t,n):dOe&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?V3(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function V3(e,t,n){if(eW.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(H$(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(V$(z3,e,r,i)){n.zrX=z3[0],n.zrY=z3[1];return}}n.zrX=n.zrY=0}function H3(e){return e||window.event}function U3(e,t,n){if(t=H3(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&B3(e,i,t,n)}else{B3(e,t,t,n);var a=fOe(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&uOe.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function fOe(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function pOe(e,t,n,r){e.addEventListener(t,n,r)}function mOe(e,t,n,r){e.removeEventListener(t,n,r)}var W3=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},hOe=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=B3(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in K3)if(K3.hasOwnProperty(t)){var n=K3[t](this._track,e);if(n)return n}},e}();function G3(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function gOe(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var K3={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=G3(r)/G3(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=gOe(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}},q3=`silent`;function _Oe(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:vOe}}function vOe(){W3(this.event)}var yOe=function(e){bW(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(ZK),J3=function(){function e(e,t){this.x=e,this.y=t}return e}(),bOe=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],Y3=new iG(0,0,0,0),X3=function(e){bW(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new J3(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new yOe,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new lOe(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&($(bOe,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=Q3(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new J3(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new J3(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=_Oe(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new J3(e,t);if(Z3(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new iG(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(Y3.copy(u.getBoundingRect()),u.transform&&Y3.applyTransform(u.transform),Y3.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(Z3(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new hOe;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new J3;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(ZK);$([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){X3.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=Q3(this,n,r),a,o;if((e!==`mouseup`||!i)&&(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||Fye(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function xOe(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||q3}return!1}function Z3(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=xOe(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==q3)){t.target=o;break}}}function Q3(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var $3=32,e6=7;function SOe(e){for(var t=0;e>=$3;)t|=e&1,e>>=1;return e+t}function t6(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;COe(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function COe(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function n6(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function r6(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function i6(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function wOe(e,t){var n=e6,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=i6(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=r6(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0){for(c=0;c<i;c++)e[d+c]=o[l+c];return}if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l];return}for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=i6(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=r6(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=e6||m>=e6);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0){for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];return}if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-i6(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-r6(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=e6||g>=e6);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function a6(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<$3){a=t6(e,n,r,t),n6(e,n,r,n+a,t);return}var o=wOe(e,t),s=SOe(i);do{if(a=t6(e,n,r,t),a<s){var c=i;c>s&&(c=s),n6(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var o6=!1;function s6(){o6||(o6=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function c6(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var TOe=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=c6}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,a6(n,c6)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||r)){if(o||=e.__clipPaths=[],i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var c=r,l=e;c;)c.parent=l,c.updateTransform(),o[a++]=c,l=c,c=c.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),d=0;d<u.length;d++){var f=u[d];e.__dirty&&(f.__dirty|=1),this._updateAndAddDisplayable(f,o,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(s6(),p.z=0),isNaN(p.z2)&&(s6(),p.z2=0),isNaN(p.zlevel)&&(s6(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,o,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,o,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,o,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var r=cU(this._roots,e);r>=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),l6=eW.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function u6(){return new Date().getTime()}var EOe=function(e){bW(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=u6()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(l6(t),!e._paused&&e.update())}l6(t)},t.prototype.start=function(){this._running||(this._time=u6(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=u6(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=u6()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new XK(e,t.loop);return this.addAnimator(n),n},t}(ZK),DOe=300,d6=eW.domSupported,f6=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:fU(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),p6={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},m6=!1;function h6(e){var t=e.pointerType;return t===`pen`||t===`touch`}function OOe(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function g6(e){e&&(e.zrByTouch=!0)}function kOe(e,t){return U3(e.dom,new AOe(e,t),!0)}function _6(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var AOe=function(){function e(e,t){this.stopPropagation=ZU,this.stopImmediatePropagation=ZU,this.preventDefault=ZU,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),v6={mousedown:function(e){e=U3(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=U3(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=U3(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=U3(this.dom,e);var t=e.toElement||e.relatedTarget;_6(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){m6=!0,e=U3(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){m6||(e=U3(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=U3(this.dom,e),g6(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),v6.mousemove.call(this,e),v6.mousedown.call(this,e)},touchmove:function(e){e=U3(this.dom,e),g6(e),this.handler.processGesture(e,`change`),v6.mousemove.call(this,e)},touchend:function(e){e=U3(this.dom,e),g6(e),this.handler.processGesture(e,`end`),v6.mouseup.call(this,e),new Date-+this.__lastTouchMoment<DOe&&v6.click.call(this,e)},pointerdown:function(e){v6.mousedown.call(this,e)},pointermove:function(e){h6(e)||v6.mousemove.call(this,e)},pointerup:function(e){v6.mouseup.call(this,e)},pointerout:function(e){h6(e)||v6.mouseout.call(this,e)}};$([`click`,`dblclick`,`contextmenu`],function(e){v6[e]=function(t){t=U3(this.dom,t),this.trigger(e,t)}});var y6={pointermove:function(e){h6(e)||y6.mousemove.call(this,e)},pointerup:function(e){y6.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}};function jOe(e,t){var n=t.domHandlers;eW.pointerEventsSupported?$(f6.pointer,function(r){b6(t,r,function(t){n[r].call(e,t)})}):(eW.touchEventsSupported&&$(f6.touch,function(r){b6(t,r,function(i){n[r].call(e,i),OOe(t)})}),$(f6.mouse,function(r){b6(t,r,function(i){i=H3(i),t.touching||n[r].call(e,i)})}))}function MOe(e,t){eW.pointerEventsSupported?$(p6.pointer,n):eW.touchEventsSupported||$(p6.mouse,n);function n(n){function r(r){r=H3(r),_6(e,r.target)||(r=kOe(e,r),t.domHandlers[n].call(e,r))}b6(t,n,r,{capture:!0})}}function b6(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,pOe(e.domTarget,t,n,r)}function x6(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&mOe(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var S6=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),NOe=function(e){bW(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new S6(t,v6),d6&&(r._globalHandlerScope=new S6(document,y6)),jOe(r,r._localHandlerScope),r}return t.prototype.dispose=function(){x6(this._localHandlerScope),d6&&x6(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,d6&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?MOe(this,t):x6(t)}},t}(ZK),C6={},w6={};function POe(e){delete w6[e]}function FOe(e){if(!e)return!1;if(typeof e==`string`)return AK(e,1)<eq;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=AK(t[i].color,1);return n/=r,n<eq}return!1}var IOe=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new TOe,a=n.renderer||`canvas`;C6[a]||(a=gU(C6)[0]),n.useDirtyRect=n.useDirtyRect!=null&&n.useDirtyRect;var o=new C6[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!eW.node&&!eW.worker&&!s?new NOe(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?eW.touchEventsSupported:!!l,d=44,f;u&&(f=NU(n.pointerSize,d)),this.handler=new X3(i,o,c,o.root,f),this.animation=new EOe({stage:{update:s?null:function(){return r._flush(!1)}}}),s||this.animation.start()}return e.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=FOe(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(e){var t,n=u6(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=u6();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof GX&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,POe(this.id))},e}();function T6(e,t){var n=new IOe(tU(),e,t);return w6[n.id]=n,n}function LOe(e,t){C6[e]=t}var E6=``;typeof navigator<`u`&&(E6=navigator.platform||``);var D6=`rgba(0, 0, 0, 0.2)`,O6=n0.color.theme[0],ROe=OK(O6,null,null,.9),k6={darkMode:`auto`,colorBy:`series`,color:n0.color.theme,gradientColor:[ROe,O6],aria:{decal:{decals:[{color:D6,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:D6,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:D6,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:D6,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:D6,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:D6,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:E6.match(/^Win/)?`Microsoft YaHei`:`sans-serif`,fontSize:12,fontStyle:`normal`,fontWeight:`normal`},blendMode:null,stateAnimation:{duration:300,easing:`cubicOut`},animation:`auto`,animationDuration:1e3,animationDurationUpdate:500,animationEasing:`cubicInOut`,animationEasingUpdate:`cubicInOut`,animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},zOe=KU();function BOe(e,t,n){var r=zOe.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var A6,j6,M6,N6=`\0_ec_inner`,VOe=1,P6=function(e){PH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new wQ(r),this._locale=new wQ(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=L6(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,L6(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?M6(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&$(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=KU(),s=t&&t.replaceMergeMainTypeMap;fCe(this),$(e,function(e,t){e!=null&&(K1.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?rU(e):iU(n[t],e,!0))}),s&&s.each(function(e,t){K1.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),K1.topologicalTravel(a,K1.getAllClassMainTypes(),c,this);function c(t){var a=BOe(this,t,cY(e[t])),o=r.get(t),c=hxe(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);Sxe(c,t,K1),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;$(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=K1.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=aU({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),aU(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&A6(this)}this._seriesIndices||A6(this)},t.prototype.getOption=function(){var e=rU(this.option);return $(e,function(t,n){if(K1.hasClass(n)){for(var r=cY(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!gY(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[N6],e},t.prototype.setTheme=function(e){this._theme=new wQ(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?mU(a,function(e){return!!e}):F6(`name`,i,a):F6(`id`,r,a):(o=[],$(cY(n),function(e){a[e]&&o.push(a[e])})),I6(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(I6(r?this.queryComponents(r):mU(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?mU(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(xU(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=SU(e)?r.get(e):TU(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=mY(e,null);return mU(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return mU(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return mU(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){j6(this),$(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){$(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){j6(this),$(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return $(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return j6(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){j6(this);var n=[];$(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=KU(n)},t.prototype.restoreData=function(e){A6(this);var t=this._componentsMap,n=[];t.each(function(e,t){K1.hasClass(t)&&n.push(t)}),K1.topologicalTravel(n,K1.getAllClassMainTypes(),function(n){$(t.get(n),function(t){t&&(n!==`series`||!HOe(t,e))&&t.restoreData()})})},t.internalField=function(){A6=function(e){var t=e._seriesIndices=[];$(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=KU(t)},j6=function(e){},M6=function(e,t){e.option={},e.option[N6]=VOe,e._componentsMap=KU({series:[]}),e._componentsCount=KU();var n=t.aria;TU(n)&&n.enabled==null&&(n.enabled=!0),UOe(t,e._theme.option),iU(t,k6,!1),e._mergeOption(t,null)}}(),t}(wQ);function HOe(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function UOe(e,t){var n=e.color&&!e.colorLayer;$(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||K1.hasClass(r)||(typeof t==`object`?e[r]=e[r]?iU(e[r],t,!1):rU(t):e[r]??(e[r]=t))})}function F6(e,t,n){if(bU(t)){var r=KU();return $(t,function(e){e!=null&&mY(e,null)!=null&&r.set(e,!0)}),mU(n,function(t){return t&&r.get(t[e])})}else{var i=mY(t,null);return mU(n,function(t){return t&&i!=null&&t[e]===i})}}function I6(e,t){return t.hasOwnProperty(`subType`)?mU(e,function(e){return e&&e.subType===t.subType}):e}function L6(e){var t=KU();return e&&$(cY(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}uU(P6,J1);var WOe=/^(min|max)?(.+)$/,GOe=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&($(cY(e.series),function(e){e&&e.data&&DU(e.data)&&BU(e.data)}),$(cY(e.dataset),function(e){e&&e.source&&DU(e.source)&&BU(e.source)})),e=rU(e);var r=this._optionBackup,i=KOe(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],rU(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=rU(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)qOe(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!YOe(a,this._currentMediaIndices)&&(o=fU(a,function(e){return rU(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function KOe(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||=s):((d||u)&&(e.options=e.media=null),a=e),u&&bU(l)&&$(l,function(e){e&&e.option&&(e.query?r.push(e):i||=e)}),f(a),$(c,function(e){return f(e)}),$(r,function(e){return f(e.option)});function f(e){$(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function qOe(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return $(e,function(e,t){var n=t.match(WOe);if(!(!n||!n[1]||!n[2])){var a=n[1];JOe(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function JOe(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function YOe(e,t){return e.join(`,`)===t.join(`,`)}var R6=$,z6=TU,B6=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function V6(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=B6.length;n<r;n++){var i=B6[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?iU(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?iU(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function H6(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,sU(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function U6(e){H6(e,`itemStyle`),H6(e,`lineStyle`),H6(e,`areaStyle`),H6(e,`label`),H6(e,`labelLine`),H6(e,`upperLabel`),H6(e,`edgeLabel`)}function W6(e,t){var n=z6(e)&&e[t],r=z6(n)&&n.textStyle;if(r)for(var i=0,a=uY.length;i<a;i++){var o=uY[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function G6(e){e&&(U6(e),W6(e,`label`),e.emphasis&&W6(e.emphasis,`label`))}function XOe(e){if(z6(e)){V6(e),U6(e),W6(e,`label`),W6(e,`upperLabel`),W6(e,`edgeLabel`),e.emphasis&&(W6(e.emphasis,`label`),W6(e.emphasis,`upperLabel`),W6(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(V6(t),G6(t));var n=e.markLine;n&&(V6(n),G6(n));var r=e.markArea;r&&G6(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!DU(a))for(var o=0;o<a.length;o++)G6(a[o]);$(e.categories,function(e){U6(e)})}if(i&&!DU(i))for(var o=0;o<i.length;o++)G6(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)G6(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)bU(c[o])?(G6(c[o][0]),G6(c[o][1])):G6(c[o]);e.type===`gauge`?(W6(e,`axisLabel`),W6(e,`title`),W6(e,`detail`)):e.type===`treemap`?(H6(e.breadcrumb,`itemStyle`),$(e.levels,function(e){U6(e)})):e.type===`tree`&&U6(e.leaves)}}function K6(e){return bU(e)?e:e?[e]:[]}function q6(e){return(bU(e)?e[0]:e)||{}}function ZOe(e,t){R6(K6(e.series),function(e){z6(e)&&XOe(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),R6(n,function(t){R6(K6(e[t]),function(e){e&&(W6(e,`axisLabel`),W6(e.axisPointer,`label`))})}),R6(K6(e.parallel),function(e){var t=e&&e.parallelAxisDefault;W6(t,`axisLabel`),W6(t&&t.axisPointer,`label`)}),R6(K6(e.calendar),function(e){H6(e,`itemStyle`),W6(e,`dayLabel`),W6(e,`monthLabel`),W6(e,`yearLabel`)}),R6(K6(e.radar),function(e){W6(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),R6(K6(e.geo),function(e){z6(e)&&(G6(e),R6(K6(e.regions),function(e){G6(e)}))}),R6(K6(e.timeline),function(e){G6(e),H6(e,`label`),H6(e,`itemStyle`),H6(e,`controlStyle`,!0);var t=e.data;bU(t)&&$(t,function(e){TU(e)&&(H6(e,`label`),H6(e,`itemStyle`))})}),R6(K6(e.toolbox),function(e){H6(e,`iconStyle`),R6(e.feature,function(e){H6(e,`iconStyle`)})}),W6(q6(e.axisPointer),`label`),W6(q6(e.tooltip).axisPointer,`label`)}function QOe(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function $Oe(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]??(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function J6(e){e&&$(eke,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var eke=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],tke=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],Y6=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function X6(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Y6.length;n++){var r=Y6[n][1],i=Y6[n][0];t[r]!=null&&(t[i]=t[r])}}function Z6(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function Q6(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function nke(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function $6(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&$6(e[n].children,t)}function e8(e,t){ZOe(e,t),e.series=cY(e.series),$(e.series,function(e){if(TU(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise),Z6(e.label);var n=e.data;if(n&&!DU(n))for(var r=0;r<n.length;r++)Z6(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=QOe(e,`pointer.color`);i!=null&&$Oe(e,`itemStyle.color`,i)}else if(t===`bar`){X6(e),X6(e.backgroundStyle),X6(e.emphasis);var n=e.data;if(n&&!DU(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(X6(n[r]),X6(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),Q6(e),$6(e.data,Q6)}else t===`graph`||t===`sankey`?nke(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&sU(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),J6(e)}}),e.dataRange&&(e.visualMap=e.dataRange),$(tke,function(t){var n=e[t];n&&(bU(n)||(n=[n]),$(n,function(e){J6(e)}))})}var rke=NY(ike);function ike(e){var t=KU();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.push(a)}}),t.each(function(e){e.length!==0&&((e[0].seriesModel.get(`stackOrder`)||`seriesAsc`)===`seriesDesc`&&e.reverse(),$(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),ake(e))})}function ake(e){$(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=sxe(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var t8=function(){function e(){this.group=new GX,this.uid=F$(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();cW(t8),hW(t8);var n8=vY(),r8={itemStyle:gW(CQ,!0),lineStyle:gW(SQ,!0)},oke={lineStyle:`stroke`,itemStyle:`fill`};function i8(e,t){return e.visualStyleMapper||r8[t]||(console.warn(`Unknown style type '`+t+`'.`),r8.itemStyle)}function a8(e,t){return e.visualDrawType||oke[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var ske={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=i8(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=a8(e,r),c=a[s],l=xU(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||xU(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||xU(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=aU({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},o8=new wQ,cke={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=i8(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){o8.option=n[r];var o=i(o8);aU(e.ensureUniqueItemVisual(t,`style`),o),o8.option.decal&&(e.setItemVisual(t,`decal`,o8.option.decal),o8.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},lke={performRawSeries:!0,overallReset:function(e){var t=KU();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();n8(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=n8(e).scope,a=a8(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},s8=Math.PI;function uke(e,t){t||={},sU(t,{text:`loading`,textColor:n0.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:n0.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new GX,r=new hJ({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new yJ({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new hJ({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new mZ({shape:{startAngle:-s8/2,endAngle:-s8/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:s8*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:s8*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var c8=function(){function e(e,t,n,r){this._stageTaskMap=KU(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):MY(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=KU();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;$(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});LU(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;$(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=KU(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||X1({plan:hke,reset:gke,count:vke}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||X1({reset:dke});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=KU(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;LU(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):$(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,X1({reset:fke,onDirty:mke})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return xU(e)&&(e={overallReset:e,seriesType:yke(e)}),e.uid=F$(`stageHandler`),t&&(e.visualType=t),e},e}();function dke(e){e.overallReset(e.ecModel,e.api,e.payload)}function fke(e){return e.dirtyOnOverallProgress&&pke}function pke(){this.agent.dirty(),this.getDownstream().dirty()}function mke(){this.agent&&this.agent.dirty()}function hke(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function gke(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=cY(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?fU(t,function(e,t){return l8(t)}):_ke}var _ke=l8(0);function l8(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function vke(e){return e.data.count()}function yke(e){f8=null;try{e(u8,d8)}catch{}return f8}var u8={},d8={},f8;p8(u8,P6),p8(d8,HY),u8.eachSeriesByType=u8.eachRawSeriesByType=function(e){f8=e},u8.eachComponent=function(e){e.mainType===`series`&&e.subType&&(f8=e.subType)};function p8(e,t){for(var n in t.prototype)e[n]=ZU}var m8=n0.darkColor,h8=m8.background,g8=function(){return{axisLine:{lineStyle:{color:m8.axisLine}},splitLine:{lineStyle:{color:m8.axisSplitLine}},splitArea:{areaStyle:{color:[m8.backgroundTint,m8.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:m8.axisMinorSplitLine}},axisLabel:{color:m8.axisLabel},axisName:{}}},_8={label:{color:m8.secondary},itemStyle:{borderColor:m8.borderTint},dividerLineStyle:{color:m8.border}},v8={darkMode:!0,color:m8.theme,backgroundColor:h8,axisPointer:{lineStyle:{color:m8.border},crossStyle:{color:m8.borderShade},label:{color:m8.tertiary}},legend:{textStyle:{color:m8.secondary},pageTextStyle:{color:m8.tertiary}},textStyle:{color:m8.secondary},title:{textStyle:{color:m8.primary},subtextStyle:{color:m8.quaternary}},toolbox:{iconStyle:{borderColor:m8.accent50},feature:{dataView:{backgroundColor:h8,textColor:m8.primary,textareaColor:m8.background,textareaBorderColor:m8.border,buttonColor:m8.accent50,buttonTextColor:m8.neutral00}}},tooltip:{backgroundColor:m8.neutral20,defaultBorderColor:m8.border,textStyle:{color:m8.tertiary}},dataZoom:{borderColor:m8.accent10,textStyle:{color:m8.tertiary},brushStyle:{color:m8.backgroundTint},handleStyle:{color:m8.neutral00,borderColor:m8.accent20},moveHandleStyle:{color:m8.accent40},emphasis:{handleStyle:{borderColor:m8.accent50}},dataBackground:{lineStyle:{color:m8.accent30},areaStyle:{color:m8.accent20}},selectedDataBackground:{lineStyle:{color:m8.accent50},areaStyle:{color:m8.accent30}}},visualMap:{textStyle:{color:m8.secondary},handleStyle:{borderColor:m8.neutral30}},timeline:{lineStyle:{color:m8.accent10},label:{color:m8.tertiary},controlStyle:{color:m8.accent30,borderColor:m8.accent30}},calendar:{itemStyle:{color:m8.neutral00,borderColor:m8.neutral20},dayLabel:{color:m8.tertiary},monthLabel:{color:m8.secondary},yearLabel:{color:m8.secondary}},matrix:{x:_8,y:_8,backgroundColor:{borderColor:m8.axisLine},body:{itemStyle:{borderColor:m8.borderTint}}},timeAxis:g8(),logAxis:g8(),valueAxis:g8(),categoryAxis:g8(),line:{symbol:`circle`},graph:{color:m8.theme},gauge:{title:{color:m8.secondary},axisLine:{lineStyle:{color:[[1,m8.neutral05]]}},axisLabel:{color:m8.axisLabel},detail:{color:m8.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:m8.background}},radar:function(){var e=g8();return e.axisName={color:m8.axisLabel},e.axisLine.lineStyle.color=m8.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:m8.neutral20,textStyle:{color:m8.secondary}},emphasis:{itemStyle:{color:m8.neutral30}}}},sunburst:{itemStyle:{borderColor:m8.background}},map:{itemStyle:{borderColor:m8.border,areaColor:m8.neutral10},label:{color:m8.tertiary},emphasis:{label:{color:m8.primary},itemStyle:{areaColor:m8.highlight}},select:{label:{color:m8.primary},itemStyle:{areaColor:m8.highlight}}},geo:{itemStyle:{borderColor:m8.border,areaColor:m8.neutral10},emphasis:{label:{color:m8.primary},itemStyle:{areaColor:m8.highlight}},select:{label:{color:m8.primary},itemStyle:{color:m8.highlight}}}};v8.categoryAxis.splitLine.show=!1;var bke=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(SU(e)){var i=aW(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};$(e,function(e,i){for(var s=!1,c=0;c<a.length;c++){var l=a[c],u=i.lastIndexOf(l);if(u>0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),y8=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],b8=y8.concat([`symbolKeepAspect`]),xke={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o<y8.length;o++){var s=y8[o],c=e.get(s);xU(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(aU({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=gU(i);function u(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<l.length;o++){var s=l[o];t.setItemVisual(n,s,i[s](r,a))}}return{dataEach:a?u:null}}},Ske={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(e,t){for(var n=e.getItemModel(t),r=0;r<b8.length;r++){var i=b8[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function Cke(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n);default:}}function wke(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t);default:}}function x8(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var S8=new ZK,C8={};function Tke(e,t){C8[e]=t}function Eke(e){return C8[e]}var Dke={};function Oke(e,t){Dke[e]=t}var kke=Math.round(Math.random()*9),Ake=typeof Object.defineProperty==`function`,jke=function(){function e(){this._id=`__ec_inner_`+kke++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return Ake?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError(`Value of WeakMap is not a non-null object.`);return e},e}();function w8(e){return isFinite(e)}function Mke(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=w8(r)?r:0,i=w8(i)?i:1,a=w8(a)?a:0,o=w8(o)?o:0,e.createLinearGradient(r,a,i,o)}function Nke(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,c=t.r==null?.5:t.r;return t.global||(o=o*r+n.x,s=s*i+n.y,c*=a),o=w8(o)?o:.5,s=w8(s)?s:.5,c=c>=0&&w8(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function T8(e,t,n){for(var r=t.type===`radial`?Nke(e,t,n):Mke(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function Pke(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function E8(e){return parseInt(e,10)}function D8(e,t,n){var r=[`width`,`height`][t],i=[`clientWidth`,`clientHeight`][t],a=[`paddingLeft`,`paddingTop`][t],o=[`paddingRight`,`paddingBottom`][t];if(n[r]!=null&&n[r]!==`auto`)return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||E8(s[r])||E8(e.style[r]))-(E8(s[a])||0)-(E8(s[o])||0)||0}function Fke(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:wU(e)?[e]:bU(e)?e:null}function O8(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&Fke(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=fU(n,function(e){return e/i}),r/=i)}return[n,r]}var Ike=new Yq(!0);function k8(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function A8(e){return typeof e==`string`&&e!==`none`}function j8(e){var t=e.fill;return t!=null&&t!==`none`}function M8(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function N8(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function P8(e,t,n){var r=EW(t.image,t.__image,n);if(OW(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*QU),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function Lke(e,t,n,r,i){var a,o=k8(n),s=j8(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||Ike,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?T8(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?T8(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?P8(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?P8(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=O8(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&N8(e,n),s&&M8(e,n)):(s&&M8(e,n),o&&N8(e,n)),T&&e.setLineDash([])}function Rke(e,t,n){var r=t.__image=EW(n.image,t.__image,t,t.onload);if(!(!r||!OW(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function zke(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=O8(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(k8(n)&&e.strokeText(i,n.x,n.y),j8(n)&&e.fillText(i,n.x,n.y)):(j8(n)&&e.fillText(i,n.x,n.y),k8(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var F8=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],I8=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function L8(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){W8(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?hq.opacity:o}(r||t.blend!==n.blend)&&(a||=(W8(e,i),!0),e.globalCompositeOperation=t.blend||hq.blend);for(var s=0;s<F8.length;s++){var c=F8[s];(r||t[c]!==n[c])&&(a||=(W8(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(W8(e,i),!0),e.shadowColor=t.shadowColor||hq.shadowColor),a}function R8(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=L8(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(W8(e,i),!0),A8(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(W8(e,i),!0),A8(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(W8(e,i),!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var c=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||=(W8(e,i),!0),e.lineWidth=c)}for(var l=0;l<I8.length;l++){var u=I8[l],d=u[0];(r||a[d]!==o[d])&&(s||=(W8(e,i),!0),e[d]=a[d]||u[1])}return s}function Bke(e,t,n,r,i){return L8(e,t.style,n&&n.style,r,i)}function z8(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function Vke(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),z8(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function Hke(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var B8=1,V8=2,H8=3,U8=4;function Uke(e){var t=j8(e),n=k8(e);return!(e.lineDash||!(t^+n)||t&&typeof e.fill!=`string`||n&&typeof e.stroke!=`string`||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function W8(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function G8(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};K8(e,t,n),q8(e,n)}function K8(e,t,n){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var i=t.__clipPaths,a=n.prevElClipPaths,o=t.style,s=!1,c=!1;if((!a||Pke(i,a))&&(a&&(W8(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(W8(e,n),e.save(),Vke(i,e,n),s=!0,n.prevElClipPaths=i)),n.allClipped){t.__dirty&=-2,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(n.beforeBrushParam),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof cJ&&t.autoBatch&&Uke(o);s||Hke(r,l.transform)?(W8(e,n),z8(e,t)):u||W8(e,n),t instanceof cJ?(n.lastDrawType!==B8&&(c=!0,n.lastDrawType=B8),R8(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),Lke(e,t,o,u,n)):t instanceof lJ?(n.lastDrawType!==H8&&(c=!0,n.lastDrawType=H8),R8(e,t,l,c,n),zke(e,t,o)):t instanceof uJ?(n.lastDrawType!==V8&&(c=!0,n.lastDrawType=V8),Bke(e,t,l,c,n),Rke(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==U8&&(c=!0,n.lastDrawType=U8),Wke(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&W8(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function q8(e,t){W8(e,t),t.prevElClipPaths&&e.restore()}function Wke(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}},o,s;for(o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),K8(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}q8(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),K8(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}q8(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var J8=new jke,Y8=new CW(100),X8=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function Z8(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&J8.delete(e);var a=J8.get(e);if(a)return a;var o=sU(e,{symbol:`rect`,symbolSize:1,symbolKeepAspect:!0,color:`rgba(0, 0, 0, 0.2)`,backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor===`none`&&(o.backgroundColor=null);var s={repeat:`repeat`};return c(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,J8.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<X8.length;++s){var c=o[X8[s]];if(c!=null&&!bU(c)&&!SU(c)&&!wU(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=Y8.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=$8(o.dashArrayX),f=Gke(o.dashArrayY),p=Q8(o.symbol),m=Kke(d),h=e5(f),g=!i&&VH.createCanvas(),_=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},v=b(),y;g&&(g.width=v.width*n,g.height=v.height*n,y=g.getContext(`2d`)),x(),a&&Y8.put(l,g||_),e.image=g,e.svgElement=_,e.svgWidth=v.width,e.svgHeight=v.height;function b(){for(var e=1,t=0,n=m.length;t<n;++t)e=tY(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=tY(r,p[t].length);e*=r;var i=h*m.length*p.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function x(){y&&(y.clearRect(0,0,g.width,g.height),o.backgroundColor&&(y.fillStyle=o.backgroundColor,y.fillRect(0,0,g.width,g.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-h,s=0,c=0,l=0;a<v.height;){if(s%2==0){for(var u=c/2%p.length,m=0,b=0,x=0;m<v.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(b%2==0){var C=(1-o.symbolSize)*.5,w=m+d[l][b]*C,T=a+f[s]*C,E=d[l][b]*o.symbolSize,D=f[s]*o.symbolSize,O=x/2%p[u].length;k(w,T,E,D,p[u][O])}m+=d[l][b],++x,++b,b===d[l].length&&(b=0)}++l,l===d.length&&(l=0)}a+=f[s],++c,++s,s===f.length&&(s=0)}function k(e,t,a,s,c){var l=i?1:n,u=w0(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&_.children.push(d)}else G8(y,u)}}}}function Q8(e){if(!e||e.length===0)return[[`rect`]];if(SU(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!SU(e[n])){t=!1;break}if(t)return Q8([e]);for(var r=[],n=0;n<e.length;++n)SU(e[n])?r.push([e[n]]):r.push(e[n]);return r}function $8(e){if(!e||e.length===0)return[[0,0]];if(wU(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!wU(e[r])){n=!1;break}if(n)return $8([e]);for(var i=[],r=0;r<e.length;++r)if(wU(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=fU(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function Gke(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(wU(e)){var t=Math.ceil(e);return[t,t]}var n=fU(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function Kke(e){return fU(e,function(e){return e5(e)})}function e5(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var qke=NY(Jke);function Jke(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,`decal`);if(n){var i=r.ensureUniqueItemVisual(e,`style`);i.decal=Z8(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=Z8(i,t)}}})}var Yke=1,Xke=800,Zke=900,Qke=920,$ke=1e3,eAe=2e3,t5=5e3,n5=1e3,tAe=1100,r5=2e3,i5=3e3,nAe=4e3,a5=4500,rAe=4600,iAe=5e3,aAe=6e3,o5=7e3,oAe={PROCESSOR:{SERIES_FILTER:Xke,AXIS_STATISTICS:Qke,FILTER:$ke,STATISTIC:t5,STATISTICS:t5},VISUAL:{LAYOUT:n5,PROGRESSIVE_LAYOUT:tAe,GLOBAL:r5,CHART:i5,POST_CHART_LAYOUT:rAe,COMPONENT:nAe,BRUSH:iAe,CHART_ITEM:a5,ARIA:aAe,DECAL:o5}},s5=`__flagInMainProcess`,c5=`__mainProcessVersion`,l5=`__pendingUpdate`,u5=`__needsUpdateStatus`,d5=/^[a-zA-Z0-9_]+$/,f5=`__connectUpdateStatus`,p5=0,sAe=1,cAe=2;function m5(e){return function(){var t=[...arguments];if(this.isDisposed()){this.id;return}return g5(this,e,t)}}function h5(e){return function(){var t=[...arguments];return g5(this,e,t)}}function g5(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),ZK.prototype[t].apply(e,n)}var _5=function(e){PH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ZK),v5=_5.prototype;v5.on=h5(`on`),v5.off=h5(`off`);var y5,b5,x5,S5,C5,w5,T5,E5,D5,O5,k5,A5,j5,M5,N5,P5,F5,I5,L5,R5=function(e){PH(t,e);function t(t,n,r){var i=e.call(this,new bke)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i.__v_skip=!0,i._dom=t;var a=`canvas`,o=`auto`,s=!1;i[c5]=1,r.ssr;var c=i._zr=T6(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:NU(r.useDirtyRect,s),useCoarsePointer:NU(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=_3(vU(c.flush,c),17),i._updateTheme(n),i._locale=pwe(r.locale||Y$),i._coordSysMgr=new A$;var l=i._api=N5(i);function u(e,t){return e.__prio-t.__prio}return a6(G5,u),a6(U5,u),i._scheduler=new c8(i,l,U5,G5),i._messageCenter=new _5,i._initEvents(),i.resize=vU(i.resize,i),c.animation.on(`frame`,i._onframe,i),O5(c,i),k5(c,i),BU(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(I5(this),this[l5]){var r=this[l5].silent;this[s5]=!0,L5(this);try{y5(this),S5.update.call(this,null,this[l5].updateParams)}catch(e){throw this[s5]=!1,this[l5]=null,e}this._zr.flush(),this[s5]=!1,this[l5]=null,E5.call(this,r),D5.call(this,r)}else if(e.unfinished){var i=Yke;do{e.unfinished=!1;var a=VH.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),w5(this,t),e.performVisualTasks(t),M5(this,this._model,n,`remain`,{}),i-=VH.getTime()-a}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[s5]){if(this._disposed){this.id;return}var r,i,a;if(TU(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[s5]=!0,L5(this),!this._model||t){var o=new GOe(this._api),s=this._theme,c=this._model=new P6;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},W5);var l={seriesTransition:a,optionChanged:!0};if(n)this[l5]={silent:r,updateParams:l},this[s5]=!1,this.getZr().wakeUp();else{try{y5(this),S5.update.call(this,null,l)}catch(e){throw this[l5]=null,this[s5]=!1,e}this._ssr||this._zr.flush(),this[l5]=null,this[s5]=!1,E5.call(this,r),D5.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[s5]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[l5]&&(r??=this[l5].silent,i=this[l5].updateParams,this[l5]=null),this[s5]=!0,L5(this);try{this._updateTheme(e),n.setTheme(this._theme),y5(this),S5.update.call(this,{type:`setTheme`},i)}catch(e){throw this[s5]=!1,e}this[s5]=!1,E5.call(this,r),D5.call(this,r)}}},t.prototype._updateTheme=function(e){SU(e)&&(e=K5[e]),e&&(e=rU(e),e&&e8(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||eW.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return $(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;$(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return $(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(Y5[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();$(J5,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(rU(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=VH.createCanvas(),h=T6(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return $(u,function(e){var t=e.left-o,n=e.top-s;g+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}else return e.connectedBackgroundColor&&h.add(new hJ({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),$(u,function(e){var t=new uJ({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return C5(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return C5(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return C5(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return $(yY(n,e),function(e,n){n.indexOf(`Models`)>=0&&$(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=yY(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?wke(i,t):Cke(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;$(lAe,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&x8(i,function(e){var t=PY(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}else if(t.eventData)return a=aU({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;$(H5,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),cOe(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0,this.getDom()&&CY(this.getDom(),X5,``);var e=this,t=e._api,n=e._model;$(e._componentsViews,function(e){e.dispose(n,t)}),$(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete J5[e.id]},t.prototype.resize=function(e){if(!this[s5]){if(this._disposed){this.id;return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[l5]&&(r??=this[l5].silent,n=!0,this[l5]=null),this[s5]=!0,L5(this);try{n&&y5(this),S5.update.call(this,{type:`resize`,animation:aU({duration:0},e&&e.animation)})}catch(e){throw this[s5]=!1,e}this[s5]=!1,E5.call(this,r),D5.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(TU(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),q5[e]){var n=q5[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=aU({},e);return t.type=V5[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(TU(t)||(t={silent:!!t}),B5[e.type]&&this._model){if(this[s5]){this._pendingActions.push(e);return}var n=t.silent;T5.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&eW.browser.weChat&&this._throttledZrFlush(),E5.call(this,n),D5.call(this,n)}},t.prototype.updateLabelLayout=function(){S8.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){y5=function(e){kEe(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),b5(e,!0),b5(e,!1),t.plan()},b5=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;c<i.length;c++)i[c].__alive=!1;t?n.eachComponent(function(e,t){e!==`series`&&l(t)}):n.eachSeries(l);function l(e){var c=e.__requireNewView;e.__requireNewView=!1;var l=`_ec_`+e.id+`_`+e.type,u=!c&&a[l];if(!u){var d=aW(e.type);u=new(t?t8.getClass(d.main,d.sub):W0.getClass(d.sub)),u.init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(var c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},x5=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){$([].concat(e._componentsViews,e._chartsViews),l);return}var o=Txe(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=KU(),$(cY(s),function(e){var t=mY(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null))if(jX(n))if(t instanceof y0)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&Jxe(t,n,e._api);else{var r=SX(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&xX(t.mainType,t.componentIndex,e._api),a&&$(a,function(e){n.type===`highlight`?pX(e):mX(e)})}else AX(n)&&t instanceof y0&&(Zxe(t,n,e._api),CX(t),F5(e))},e),a&&a.eachComponent(o,function(t){c&&c.get(t.id)!=null||l(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function l(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},S5={prepareAndUpdate:function(e){y5(this),S5.update.call(this,e,e&&{optionChanged:e.newOption!=null})},update:function(e,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){AEe(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),S8.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,e),w5(this,r),o.update(r,i),t(r),s.performVisualTasks(r,e);var c=r.get(`backgroundColor`)||`transparent`;a.setBackgroundColor(c);var l=r.get(`darkMode`);l!=null&&l!==`auto`&&a.setDarkMode(l),A5(this,r,i,e,n),S8.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var t=this,n=t._model,r=t._api;if(n){n.setUpdatePayload(e);var i=[];n.eachComponent(function(a,o){if(a!==`series`){var s=t.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var c=s.updateTransform(o,n,r,e);c&&c.update&&i.push(s)}else i.push(s)}});var a=KU();n.eachSeries(function(i){var o=t._chartsMap[i.__viewId],s=i.pipelineContext;if(o.updateTransform&&!s.progressiveRender){var c=o.updateTransform(i,n,r,e);c&&c.update&&a.set(i.uid,1)}else a.set(i.uid,1)}),t._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),M5(t,n,r,e,{},a),S8.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),W0.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),A5(this,n,this._api,e,{}),S8.trigger(`afterupdate`,n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(e){e.getData().clearAllVisual()}),W0.markUpdateMethod(e,`updateVisual`),t(r),this._scheduler.performVisualTasks(r,e,{visualType:`visual`,setDirty:!0}),r.eachComponent(function(t,i){if(t!==`series`){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)}),S8.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){S5.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed){e.id;return}for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=yY(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&(s=u[t](a,c,r,i))!=null)return s}}C5=e,w5=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},T5=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=B5[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&aW(s[0]);this[s5]=!0,L5(this);var u=[e],d=!1;e.batch&&(d=!0,u=fU(e.batch,function(t){return t=sU(aU({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=AX(e),_=jX(e);if(_&&yX(this._api),$(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=aU({},t),p.type=h,f.push(p),_){var a=bY(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;x5(n,c,t,u),F5(n)}else g?(x5(n,c,t,`series`),F5(n)):l&&x5(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[l5]?(y5(this),S5.update.call(this,e),this[l5]=null):S5[c].call(this,e)}catch(e){throw this[s5]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[s5]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;LU(TU(y)),v=sU({type:o.refinedEventType},y),v.fromAction=e.type,v.fromActionPayload=e,v.escapeConnect=!0}var b=this._messageCenter;b.trigger(p.type,p),v&&b.trigger(v.type,v)}},E5=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();T5.call(this,n,e)}},D5=function(e){!e&&this.trigger(`updated`)},O5=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[l5]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},k5=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=x8(n,kX);r&&(Yxe(r,e,t._api),F5(t))}).on(`mouseout`,function(e){var n=e.target,r=x8(n,kX);r&&(Xxe(r,e,t._api),F5(t))}).on(`click`,function(e){var n=e.target,r=x8(n,function(e){return PY(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=PY(r);t._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}})};function t(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function n(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var a=i.get(`zlevel`)||0,o=i.get(`z`)||0,s=i.getZLevelKey();r||=!!s,(e===`series`?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i=t.concat(n),a,o;a6(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),$(i,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,i=t.key;a!=null&&(r=Math.max(a,r)),i?(r===a&&i!==o&&r++,o=i):o&&=(r===a&&r++,``),a=r,n.setZLevel(r)})}}A5=function(e,t,r,i,a){n(t),j5(e,t,r,i,a),$(e._chartsViews,function(e){e.__alive=!1}),M5(e,t,r,i,a),$(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},j5=function(e,t,n,r,i,a){$(a||e._componentsViews,function(e){var i=e.__model;s(i,e),e.render(i,t,n,r),o(i,e),c(i,e)})},M5=function(e,t,n,r,l,u){var d=e._scheduler;l=aU(l||{},{updatedSeries:t.getSeries()}),S8.trigger(`series:beforeupdate`,t,n,l);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),s(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),a(t,n),CX(t)}),d.unfinished=f||d.unfinished,S8.trigger(`series:layoutlabels`,t,n,l),S8.trigger(`series:transition`,t,n,l),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];o(t,n),c(t,n)}),i(e,t),S8.trigger(`series:afterupdate`,t,n,l)},F5=function(e){e[u5]=!0,e.getZr().wakeUp()},L5=function(e){e[c5]=(e[c5]+1)%1e6},I5=function(e){e[u5]&&(e.getZr().storage.traverse(function(e){OZ(e)||r(e)}),e[u5]=!1)};function r(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i===`emphasis`||i===`blur`||i===`select`||t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function i(e,t){var n=e._zr;if(n.painter.type===`canvas`){var r=n.storage,i=0;r.traverse(function(e){e.isGroup||i++});var a=i>NU(t.get(`hoverLayerThreshold`),k6.hoverLayerThreshold)&&!eW.node&&!eW.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=iQ(e);t.eachRendered(function(e){return aQ(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!OZ(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(OZ(e))return;if(e instanceof cJ&&rSe(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}N5=function(e){return new(function(t){PH(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){pX(t,n),F5(e)},n.prototype.leaveEmphasis=function(t,n){mX(t,n),F5(e)},n.prototype.enterBlur=function(t){qxe(t),F5(e)},n.prototype.leaveBlur=function(t){hX(t),F5(e)},n.prototype.enterSelect=function(t){gX(t),F5(e)},n.prototype.leaveSelect=function(t){_X(t),F5(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[c5]},n.prototype.usingTHL=function(){return e._usingTHL},n}(HY))(e)},P5=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[f5]=t}}$(V5,function(n,r){e._messageCenter.on(r,function(n){if(Y5[e.group]&&e[f5]!==p5){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];$(J5,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,p5),$(i,function(e){e[f5]!==sAe&&e.dispatchAction(r)}),t(i,cAe)}})})}}(),t}(ZK),z5=R5.prototype;z5.on=m5(`on`),z5.off=m5(`off`),z5.one=function(e,t,n){var r=this;function i(){var n=[...arguments];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)};var lAe=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],B5={},V5={},H5={},U5=[],W5=[],G5=[],K5={},q5={},J5={},Y5={},uAe=new Date-0;new Date-0;var X5=`_echarts_instance_`;function dAe(e,t,n){var r=!(n&&n.ssr);if(r){var i=fAe(e);if(i)return i}var a=new R5(e,t,n);return a.id=`ec_`+uAe++,J5[a.id]=a,r&&CY(e,X5,a.id),P5(a),S8.trigger(`afterinit`,a),a}function fAe(e){return J5[Exe(e,X5)]}function Z5(e,t){K5[e]=t}function Q5(e){cU(W5,e)<0&&W5.push(e)}function $5(e,t){i7(U5,e,t,eAe)}function pAe(e){e7(`afterinit`,e)}function mAe(e){e7(`afterupdate`,e)}function e7(e,t){S8.on(e,t)}function t7(e,t,n){var r,i,a,o,s;xU(t)&&(n=t,t=``),TU(e)?(r=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,n||=e.action,a=e.refineEvent):(r=e,i=t);function c(e){return e.toLowerCase()}i=c(i||r);var l=a?c(r):i;B5[r]||(LU(d5.test(r)&&d5.test(i)),a&&LU(i!==r),B5[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},H5[i]=1,a&&s&&(H5[l]=1),V5[l]=r)}function hAe(e,t){A$.register(e,t)}function gAe(e,t){i7(G5,e,t,n5,`layout`,!0)}function n7(e,t){i7(G5,e,t,i5,`visual`,!0)}var r7=[];function i7(e,t,n,r,i,a){if((xU(t)||TU(t))&&(n=t,t=r),!(cU(r7,n)>=0)){r7.push(n);var o=c8.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function a7(e,t){q5[e]=t}function _Ae(e,t,n){var r=Eke(`registerMap`);r&&r(e,t,n)}var vAe=Wwe;n7(r5,ske),n7(a5,cke),n7(a5,lke),n7(r5,xke),n7(a5,Ske),n7(o5,qke),Q5(e8),$5(Zke,rke),a7(`default`,uke),t7({type:YY,event:YY,update:YY},ZU),t7({type:XY,event:XY,update:XY},ZU),t7({type:ZY,event:eX,update:ZY,action:ZU,refineEvent:o7,publishNonRefinedEvent:!0}),t7({type:QY,event:eX,update:QY,action:ZU,refineEvent:o7,publishNonRefinedEvent:!0}),t7({type:$Y,event:eX,update:$Y,action:ZU,refineEvent:o7,publishNonRefinedEvent:!0});function o7(e,t,n,r){return{eventContent:{selected:Qxe(n),isFromClick:t.isFromClick||!1}}}Z5(`default`,{}),Z5(`dark`,v8);var s7=[],yAe={registerPreprocessor:Q5,registerProcessor:$5,registerPostInit:pAe,registerPostUpdate:mAe,registerUpdateLifecycle:e7,registerAction:t7,registerCoordinateSystem:hAe,registerLayout:gAe,registerVisual:n7,registerTransform:vAe,registerLoading:a7,registerMap:_Ae,registerImpl:Tke,PRIORITY:oAe,ComponentModel:K1,ComponentView:t8,SeriesModel:y0,ChartView:W0,registerComponentModel:function(e){K1.registerClass(e)},registerComponentView:function(e){t8.registerClass(e)},registerSeriesModel:function(e){y0.registerClass(e)},registerChartView:function(e){W0.registerClass(e)},registerCustomSeries:function(e,t){Oke(e,t)},registerSubTypeDefaulter:function(e,t){K1.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){LOe(e,t)}};function c7(e){if(bU(e)){$(e,function(e){c7(e)});return}cU(s7,e)>=0||(s7.push(e),xU(e)&&(e={install:e}),e.install(yAe))}var bAe=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),l7=function(e){PH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,xY).models[0]},t.type=`cartesian2dAxis`,t}(K1);uU(l7,bAe);var u7={show:!0,z:0,inverse:!1,name:``,nameLocation:`end`,nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:`...`,placeholder:`.`},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:`auto`,onZeroAxisIndex:null,lineStyle:{color:n0.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:n0.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:n0.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[n0.color.backgroundTint,n0.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:n0.color.neutral00,borderColor:n0.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},xAe=iU({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},u7),d7=iU({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:n0.color.axisMinorSplitLine,width:1}}},u7),SAe={category:xAe,value:d7,time:iU({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},d7),log:sU({logBase:10},d7)};function f7(e,t,n,r){$(A2,function(i,a){var o=iU(iU({},SAe[a],!0),r,!0),s=function(e){PH(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=U1(this),r=n?G1(e):{};iU(e,t.getTheme().get(a+`Axis`)),iU(e,this.getDefaultOption()),e.type=p7(e),n&&W1(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=Z0.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=M4();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,p7)}function p7(e){return e.type||(e.data?`category`:`value`)}var CAe=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return fU(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),mU(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),m7=[`x`,`y`];function h7(e){return(e.type===`interval`||e.type===`time`)&&!e1(e)}var wAe=function(e){PH(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=u3,t.dimensions=m7,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!h7(e)||!h7(t))){var n=r2(e,null),r=r2(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=FW([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new iG(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return HW(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return HW(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new iG(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(CAe);function TAe(e,t){var n=e.scale,r=e.model,i=a3(n,r,r.ecModel,e,null),a=l2(n),o=l2(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1,f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=MJ(l[0].value-l[1].value),g=MJ(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h<g?f=h/g:p=g/h)}else{var _=o.getConfig().interval;f=(1-(l[0].value-u[0].value)/_)%1,p=(1-(u[d].value-l[d].value)/_)%1,m=d-+!!f-!!p}var v=i.zoomFixMM,y=v[0]||v[1],b=[i.fixMM[0]||y,i.fixMM[1]||y],x=n.getExtent(),S=s.getExtent(),C=m2(S,b),w,T,E,D,O,k;function A(e){for(var t=50,n=0;n<t&&!e();n++)E=a?E*jJ(c,2):RTe(E),D=d2(E)}function j(){w=HJ(k-E*f,D)}function M(){T=HJ(O+E*p,D)}function ee(){k=f?HJ(w+E*f,D):w}function N(){O=p?HJ(T-E*p,D):T}if(b[0]&&b[1]){w=C[0],T=C[1],E=(T-w)/(m+f+p);var P=e.getExtent(),F=MJ(P[1]-P[0]);D=oxe([T,w],F,.5/m),ee(),N(),nY(D)&&(E=HJ(E,D))}else{var te=C[1]-C[0];E=a?jJ(YJ(te),1):ZJ(te/m,2),D=d2(E),b[0]?(w=C[0],A(function(){if(ee(),O=HJ(k+E*m,D),M(),T>=C[1])return!0})):b[1]?(T=C[1],A(function(){if(N(),k=HJ(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=HJ(FJ(C[0]/E)*E,D),O=HJ(PJ(C[1]/E)*E,D);var e=NJ((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=PJ(t/2);n=t%2==0?[o,o]:w+T<C[0]+C[1]?[o,o+1]:[o+1,o]}if(k=HJ(k-E*n[0],D),O=HJ(O+E*n[1],D),j(),M(),w<=C[0]&&T>=C[1])return!0}})}R2(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]})}function g7(e,t){var n=l2(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=m2(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?DAe(r,t):EAe(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=d2(d)),i[0]||(s[0]=HJ(PJ(s[0]/u)*u,l)),i[1]||(s[1]=HJ(FJ(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),R2(e,i,o,s,a,c)}function EAe(e,t){var n=h2(t.splitNumber,5),r=i2(e),i=t.minInterval,a=t.maxInterval,o=ZJ(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=d2(o),c=e.getExtent(),l=[HJ(FJ(c[0]/o)*o,s),HJ(PJ(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function DAe(e,t){var n=h2(t.splitNumber,10),r=e.getExtent(),i=i2(e),a=jJ(YJ(i),1);n/i*a<=.5&&(a*=10);var o=d2(a),s=[HJ(FJ(r[0]/a)*a,o),HJ(PJ(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function _7(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;OAe(t,n,r,i,null)}function OAe(e,t,n,r,i){var a=a3(e,t,r,n,i),o=s2(e)||c2(e);kAe(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&ODe(n,e,a,r)}function kAe(e,t){AAe[e.type](e,t)}var AAe={interval:g7,log:g7,time:JTe,ordinal:ZU},v7=[[3,1],[0,2]],jAe=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=m7,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;$(this._axesList,function(e){CDe(e,1);var t=e.scale;u2(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=gU(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):_7(i)}$(n,function(e){NAe(e,e.__alignTo)?_7(e):TAe(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};$(n.x,function(e){y7(n,`y`,e,i)}),$(n.y,function(e){y7(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=H1(e,t),i=this._rect=B1(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(S7(a,i),!n){var c=FAe(i,o,a,s,t),l=void 0;if(s)w7?(w7(this._axesList,i),S7(a,i)):l=T7(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=IAe(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=T7(d,f,p,i,a,c,r))}E7(i,a,Z2.determine,null,l,r),$(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}TU(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis(`x`).index===e||i[r].getAxis(`y`).index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents(`xAxis`,xY).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,xY).models[0],i=e.gridModel,a=this._coordsList,o,s;return t?(o=t.coordinateSystem,cU(a,o)<0&&(o=null)):n&&r?o=this.getCartesian(n.componentIndex,r.componentIndex):n?s=this.getAxis(`x`,n.componentIndex):r?s=this.getAxis(`y`,r.componentIndex):i&&i.coordinateSystem===this&&(o=this._coordsList[0]),{cartesian:o,axis:s}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent(`xAxis`,c(`x`),this),t.eachComponent(`yAxis`,c(`y`),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}this._axesMap=o,$(o.x,function(t,n){$(o.y,function(i,a){var o=`x`+n+`y`+a,s=new wAe(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})}),x7(o.x),x7(o.y);function c(t){return function(n,r){if(MAe(n,e)){var c=n.get(`position`);t===`x`?c!==`top`&&c!==`bottom`&&(c=a.bottom?`top`:`bottom`):c!==`left`&&c!==`right`&&(c=a.left?`right`:`left`),a[c]=!0;var l=XTe(n),u=new KEe(t,ZTe(n,l,!0),[0,0],l,c);u.onBand=B2(u.scale,n),u.inverse=n.get(`inverse`),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),o[t][r]=u,s[t]++}}}},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return $(this.getCartesians(),function(r){var i=e!=null&&e!==`auto`?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);cU(t,i)<0&&t.push(i),cU(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent(`grid`,function(i,a){var o=new e(i,t,n);o.name=`grid_`+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o),$(o._axesList,function(t){SDe(t,e.dimIdxMap)})}),t.eachSeries(function(e){var t,n;WCe({targetModel:e,coordSysType:u3,coordSysProvider:r});function r(){var r=gDe(e),i=r.xAxisModel,a=r.yAxisModel;return t=i.axis,n=a.axis,i.getCoordSysModel().coordinateSystem.getCartesian(i.componentIndex,a.componentIndex)}t&&n&&(g4(t,e,u3),g4(n,e,u3))},this),r},e.dimensions=m7,e.dimIdxMap=h$(m7),e}();function MAe(e,t){return e.getCoordSysModel()===t}function y7(e,t,n,r){n.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=n.model,s=o.get([`axisLine`,`onZero`]),c=o.get([`axisLine`,`onZeroAxisIndex`]);if(!s)return;if(c!=null)b7(s,i[c])&&(a=i[c]);else for(var l in i)if(XU(i,l)&&b7(s,i[l])&&!r[u(i[l])]){a=i[l];break}a&&(r[u(a)]=!0);function u(e){return e.dim+`_`+e.index}}function b7(e,t){if(!t)return!1;var n=t.scale,r=QTe(n,0,!1),i=t&&t.type!==`category`&&t.type!==`time`&&r!==3;return i&&e===`auto`&&eEe(t)&&(i=!1),i}function x7(e){for(var t=gU(e),n,r=[],i=t.length-1;i>=0;i--){var a=e[+t[i]];o2(a.scale)&&L2(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&$(r,function(e){e.__alignTo=n})}function NAe(e,t){return e1(e.scale)||e1(t.scale)||t.scale.getTicks().length<2}function PAe(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function S7(e,t){$(e.x,function(e){return C7(e,t.x,t.width)}),$(e.y,function(e){return C7(e,t.y,t.height)})}function C7(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),PAe(e,t)}var w7;function T7(e,t,n,r,i,a,o){E7(r,i,Z2.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=hU(s,function(e){return e>0})==null;return JZ(r,s,!0,!0,n),S7(i,r),c;function l(e){$(i[PZ[e]],function(t){if(I2(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var o=r[i],s=t.scale.normalize(z2(t.scale,P4(o.label).labelInfo.tick));s=e===1?1-s:s,u(o.rect,e,s),u(o.rect,1-e,NaN)}var c=n.nameLayout;if(c){var s=F2(n.nameLocation)?.5:NaN;u(c.rect,e,s),u(c.rect,1-e,NaN)}}})}function u(t,n,r){var i=e[PZ[n]]-t[PZ[n]],a=t[FZ[n]]+t[PZ[n]]-(e[FZ[n]]+e[PZ[n]]);i=d(i,1-r),a=d(a,r);var o=v7[n][0],c=v7[n][1];s[o]=jJ(s[o],i),s[c]=jJ(s[c],a)}function d(e,t){return e>0&&!jU(t)&&t>1e-4&&(e/=t),e}}function FAe(e,t,n,r,i){var a=new I4(LAe);return $(n,function(n){return $(n,function(n){if(I2(n.model)){var o=!r;n.axisBuilder=_De(e,t,n.model,i,a,o)}})}),a}function E7(e,t,n,r,i,a){var o=n===Z2.determine;$(t,function(t){return $(t,function(t){I2(t.model)&&(vDe(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[PZ[1-t]]=e[FZ[t]]<=a.refContainer[FZ[t]]*.5?0:1-t==1?2:1}$(t,function(e,t){return $(e,function(e){I2(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function IAe(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=B1(e.get(`outerBounds`,!0)||c3,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||cU([`all`,`axisLabel`],a)<0?`all`:a,s=[VJ(NU(e.get(`outerBoundsClampWidth`,!0),l3[0]),t.width),VJ(NU(e.get(`outerBoundsClampHeight`,!0),l3[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var LAe=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;z4(e,t,n,r,i,a),F2(e.nameLocation)||$(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&V4(e.labelInfoList,e.dirVec,r,i)})};function RAe(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return zAe(n,e,t),n.seriesInvolved&&VAe(n,e),n}function zAe(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];$(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=A7(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if($(n.getAxes(),yU(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&$(f.baseAxes,yU(p,!d||`cross`,u)),d&&$(f.otherAxes,yU(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!k7(d))){s??=d.get(`triggerTooltip`),d=r?BAe(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=A7(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:k7(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=HAe(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function BAe(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};$(s,function(e){c[e]=rU(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&sU(l,u.textStyle)}return e.model.getModel(`axisPointer`,new wQ(c,n,r))}function VAe(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||!n.model||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||$(e.coordSysAxesInfo[A7(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function HAe(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(D7(a[r+`AxisId`],n.id)||D7(a[r+`AxisIndex`],n.componentIndex)||D7(a[r+`AxisName`],n.name))return i}}function D7(e,t){return e===`all`||bU(e)&&cU(e,t)>=0||e===t}function UAe(e){var t=O7(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=k7(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o<c[0]&&(o=c[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?`hide`:`show`)}}function O7(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[A7(e)]}function WAe(e){var t=O7(e);return t&&t.axisPointerModel}function k7(e){return!!e.get([`handle`,`show`])}function A7(e){return e.type+`||`+e.id}var j7={},M7=function(e){PH(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(t,n,r,i){this.axisPointerClass&&UAe(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=WAe(e);a?(this._axisPointer||=new i).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){j7[e]=t},t.getAxisPointerClass=function(e){return e&&j7[e]},t.type=`axis`,t}(t8),N7=vY();function GAe(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel(`splitArea`),o=a.getModel(`areaStyle`),s=o.get(`color`),c=r.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`});if(l.length){var u=s.length,d=N7(e).splitAreaColors,f=KU(),p=0;if(d)for(var m=0;m<l.length;m++){var h=d.get(l[m].tickValue);if(h!=null){p=(h+(u-1)*m)%u;break}}var g=i.toGlobalCoord(l[0].coord),_=o.getAreaStyle();s=bU(s)?s:[s];for(var m=1;m<l.length;m++){var v=i.toGlobalCoord(l[m].coord),y=void 0,b=void 0,x=void 0,S=void 0;i.isHorizontal()?(y=g,b=c.y,x=v-y,S=c.height,g=y+x):(y=c.x,b=g,x=c.width,S=v-b,g=b+S);var C=l[m-1].tickValue;C!=null&&f.set(C,p),t.add(new hJ({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:sU({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}N7(e).splitAreaColors=f}}}function KAe(e){N7(e).splitAreaColors=null}var qAe=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],P7=function(e){PH(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`CartesianAxisPointer`,n}return t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;this._axisGroup=new GX,this.group.add(this._axisGroup),I2(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),$(qAe,function(e){t.get([e,`show`])&&JAe[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||WZ(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){KAe(this)},t.type=`cartesianAxis`,t}(M7),JAe={splitLine:function(e,t,n,r,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`),l=o.get(`showMinLine`)!==!1,u=o.get(`showMaxLine`)!==!1;c=bU(c)?c:[c];for(var d=r.coordinateSystem.getRect(),f=a.isHorizontal(),p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=s.getLineStyle(),v=0;v<m.length;v++){var y=a.toGlobalCoord(m[v].coord);if(!(v===0&&!l||v===m.length-1&&!u)){var b=m[v].tickValue;f?(h[0]=y,h[1]=d.y,g[0]=y,g[1]=d.y+d.height):(h[0]=d.x,h[1]=y,g[0]=d.x+d.width,g[1]=y);var x=p++%c.length,S=new uZ({anid:b==null?null:`line_`+b,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:sU({stroke:c[x]},_),silent:!0});VZ(S.shape,_.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,n,r,i){var a=n.axis,o=n.getModel(`minorSplitLine`).getModel(`lineStyle`),s=r.coordinateSystem.getRect(),c=a.isHorizontal(),l=a.getMinorTicksCoords();if(l.length)for(var u=[],d=[],f=o.getLineStyle(),p=0;p<l.length;p++)for(var m=0;m<l[p].length;m++){var h=a.toGlobalCoord(l[p][m].coord);c?(u[0]=h,u[1]=s.y,d[0]=h,d[1]=s.y+s.height):(u[0]=s.x,u[1]=h,d[0]=s.x+s.width,d[1]=h);var g=new uZ({anid:`minor_line_`+l[p][m].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:f,silent:!0});VZ(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){GAe(e,t,n,r)},breakArea:function(e,t,n,r,i){var a=M4(),o=n.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},F7=function(e){PH(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`xAxis`,t}(P7),YAe=function(e){PH(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=F7.type,t}return t.type=`yAxis`,t}(P7),XAe=function(e){PH(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`grid`,t}return t.prototype.render=function(e,t){this.group.removeAll(),e.get(`show`)&&this.group.add(new hJ({shape:e.coordinateSystem.getRect(),style:sU({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(t8),I7={offset:0};function ZAe(e){e.registerComponentView(XAe),e.registerComponentModel(FDe),e.registerCoordinateSystem(`cartesian2d`,jAe),f7(e,`x`,l7,I7),f7(e,`y`,l7,I7),e.registerComponentView(F7),e.registerComponentView(YAe),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var L7=vY(),R7=rU,z7=vU,QAe=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new GX,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=yU(B7,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}W7(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&y4(r).w>o)return!0;if(a){var s=O7(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=L7(e).pointerEl=new FSe[i.type](R7(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=L7(e).labelEl=new yJ(R7(t.label));e.add(i),H7(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=L7(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=L7(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),H7(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=GZ(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){W3(e.event)},onmousedown:z7(this._onHandleDragMove,this,0,0),drift:z7(this._onHandleDragMove,this),ondragend:z7(this._onHandleDragEnd,this)}),n.add(r)),W7(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);bU(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,v3(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){B7(this._axisPointerModel,!t&&this._moveAnimation,this._handle,U7(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(U7(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(U7(r)),L7(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),y3(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function B7(e,t,n,r){V7(L7(n).lastProp,r)||(L7(n).lastProp=r,t?EZ(n,r,e):(n.stopAnimation(),n.attr(r)))}function V7(e,t){if(TU(e)&&TU(t)){var n=!0;return $(t,function(t,r){n&&=V7(e[r],t)}),!!n}else return e===t}function H7(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function U7(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function W7(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function $Ae(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function eje(e,t,n,r,i){var a=G7(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=A1(o.get(`padding`)||0),c=o.getFont(),l=_G(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),tje(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:fQ(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function tje(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function G7(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:N2(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};$(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),SU(o)?a=o.replace(`{value}`,a):xU(o)&&(a=o(s))}return a}function K7(e,t,n){var r=kW();return PW(r,r,n.rotation),NW(r,r,n.position),HZ([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function nje(e,t,n,r,i,a){var o=H4.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),eje(t,r,i,a,{position:K7(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function rje(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function ije(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function aje(e,t,n){return y4(e,{fromStat:{sers:fU(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function oje(e,t,n){return[jJ(AJ(t[0],t[1]),e-n/2),AJ(e+n/2,jJ(t[0],t[1]))]}var sje=function(e){PH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=q7(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=$Ae(r),f=cje[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}nje(t,e,Z4(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=Z4(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=K7(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=q7(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=AJ(o[1],l[c]),l[c]=jJ(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(QAe);function q7(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var cje={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:rje([t,r[0]],[t,r[1]],J7(e))}},shadow:function(e,t,n,r,i,a){var o=aje(e,i,a),s=r[1]-r[0],c=oje(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:ije([l,r[0]],[u-l,s],J7(e))}}};function J7(e){return e.dim===`x`?0:1}var lje=function(e){PH(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:n0.color.border,width:1,type:`dashed`},shadowStyle:{color:n0.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:n0.color.neutral00,padding:[5,7,5,7],backgroundColor:n0.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:n0.color.accent40,throttle:40}},t}(K1),Y7=vY(),uje=$;function X7(e,t,n){if(!eW.node){var r=t.getZr();Y7(r).records||(Y7(r).records={}),dje(r,t);var i=Y7(r).records[e]||(Y7(r).records[e]={});i.handler=n}}function dje(e,t){if(Y7(e).initialized)return;Y7(e).initialized=!0,n(`click`,yU(Z7,`click`)),n(`mousemove`,yU(Z7,`mousemove`)),n(`mousewheel`,yU(Z7,`mousewheel`)),n(`globalout`,pje);function n(n,r){e.on(n,function(n){var i=mje(t);uje(Y7(e).records,function(e){e&&r(e,n,i.dispatchAction)}),fje(i.pendings,t)})}}function fje(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function pje(e,t,n){e.handler(`leave`,null,n)}function Z7(e,t,n,r){t.handler(e,n,r)}function mje(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function Q7(e,t){if(!eW.node){var n=t.getZr();(Y7(n).records||{})[e]&&(Y7(n).records[e]=null)}}var hje=function(e){PH(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;X7(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){Q7(`axisPointer`,t)},t.prototype.dispose=function(e,t){Q7(`axisPointer`,t)},t.type=`axisPointer`,t}(t8);function $7(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=_Y(a,e);if(o==null||o<0||bU(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint)if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(fU(c.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var e9=vY();function gje(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||vU(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){r9(i)&&(i=$7({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=r9(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||r9(i),f={},p={},m={list:[],map:{}},h={showPointer:yU(vje,p),showTooltip:yU(yje,m)};$(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);$(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=Cje(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&t9(e,o,h,!1,f)}})});var g={};return $(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&$(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,n9(t),n9(e)))),g[e.key]=a}})}),$(g,function(e,t){t9(u[t],e,h,!0,f)}),bje(p,u,f),xje(m,i,e,o),Sje(u,o,n),f}}function t9(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=_je(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&aU(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function _je(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return $(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(nY(u)){var p=e-u,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,i=u,a.length=0),$(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function vje(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function yje(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=A7(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function bje(e,t,n){var r=n.axesInfo=[];$(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function xje(e,t,n,r){if(r9(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function Sje(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=e9(r)[i]||{},o=e9(r)[i]={};$(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&$(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}$(a,function(e,t){!o[t]&&c.push(l(e))}),$(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function Cje(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function n9(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function r9(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function i9(e){M7.registerAxisPointerClass(`CartesianAxisPointer`,sje),e.registerComponentModel(lje),e.registerComponentView(hje),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!bU(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=RAe(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},gje)}function wje(e){c7(ZAe),c7(i9)}function Tje(e,t){var n=A1(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new hJ({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var Eje=function(e){PH(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:n0.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:n0.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:n0.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:n0.color.tertiary,fontSize:14}},t}(K1);function a9(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function o9(e){if(eW.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var s9=o9([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),Dje=o9([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function c9(e,t){if(!e)return t;t=k1(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function Oje(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var kje=c9(Dje,`transition`),l9=c9(s9,`transform`),Aje=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(eW.transform3dSupported?`will-change:transform;`:``);function jje(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function Mje(e,t,n){if(!SU(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=F1(t);var a=jje(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=l9+`:`,l;cU([`left`,`right`],a)>-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`<div style="`+[`position:absolute;width:`+o+`px;height:`+o+`px;z-index:-1;`,s+`;`+c+`;`,`border-bottom:`+m,`border-right:`+m,`background-color:`+r+`;`].join(``)+`"></div>`}function Nje(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(eW.transformSupported?``+l9+i:`,left`+i+`,top`+i)),kje+`:`+a}function u9(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!eW.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=eW.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+l9+`:`+o+`;`:[[`top`,0],[`left`,0],[s9,o]]}function Pje(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=NU(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),$([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function Fje(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=h0(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(Nje(a,n,r)),o&&i.push(`background-color:`+o),$([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=k1(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(Pje(d)),f!=null&&i.push(`padding:`+A1(f).join(`px `)+`px`),i.join(`;`)+`;`}function d9(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&awe(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Ije=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,eW.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(SU(i)?document.querySelector(i):OU(i)?i:xU(i)&&i(e.getDom()));d9(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;U3(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=Oje(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=Aje+Fje(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+u9(i[0],i[1],!0)+(`border-color:`+F1(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(SU(i)&&n.get(`trigger`)===`item`&&!a9(n)&&(o=Mje(n,r,i)),SU(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,bU(e)||(e=[e]);for(var s=0;s<e.length;s++)OU(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);if(o&&a.childNodes.length){var c=document.createElement(`div`);c.innerHTML=o,a.appendChild(c)}}},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(d9(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;$(u9(n[0],n[1]),function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility=`hidden`,t.opacity=`0`):t.display=`none`,eW.transform3dSupported&&(t.willChange=``),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(vU(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;owe(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},e}(),Lje=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),m9(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get(`alwaysShowContent`);t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var a=this;TU(e)&&aY(``),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new yJ({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:h0(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),$([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),$([`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],function(e){a.el.style[e]=o.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on(`mouseover`,function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on(`mouseout`,function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=p9(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;m9(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=f9(i.borderWidth||0),o=p9(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(vU(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function f9(e){return Math.max(0,e)}function p9(e){var t=f9(e.shadowBlur||0),n=f9(e.shadowOffsetX||0),r=f9(e.shadowOffsetY||0);return{left:f9(t-n),right:f9(t+n),top:f9(t-r),bottom:f9(t+r)}}function m9(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Rje=new hJ({shape:{x:-1,y:-1,width:2,height:2}}),zje=function(e){PH(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){if(!(eW.node||!t.getDom())){var n=e.getComponent(`tooltip`),r=this._renderMode=Dxe(n.get(`renderMode`));this._tooltipContent=r===`richText`?new Lje(t):new Ije(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(eW.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get(`enterable`)),this._initGlobalListener(),this._keepShow(),this._renderMode!==`richText`&&e.get(`transitionDuration`)?v3(this,`_updatePosition`,50,`fixRate`):y3(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);X7(`itemTooltip`,this._api,vU(function(t,n,r){e!==`none`&&(e.indexOf(t)>=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||eW.node||!n.getDom())){var i=g9(r,n);this._ticket=``;var a=r.dataByCoordSys,o=Uje(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=Rje;c.x=r.x,c.y=r.y,c.update(),PY(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=$7(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(g9(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(!(i==null||a==null||o==null)){var s=t.getSeriesByIndex(i);if(s&&h9([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(PY(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;x8(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(PY(e).dataIndex==null?PY(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=vU(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=h9([t.tooltipOption],r),o=this._renderMode,s=[],c=c0(`section`,{blocks:[],noHeader:!0}),l=[],u=new g0;$(e,function(e){$(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(!(!t||i==null)){var f=G7(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=c0(`section`,{header:f,noHeader:!RU(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),$(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=N2(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,F1(m.color),o);var h=Y1(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=h9([a],r).get(`valueFormatter`);p.blocks.push(_?aU({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=f0(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
`:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=PY(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=h9([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(!(m!=null&&m!==`item`)){var h=s.getDataParams(c,l),g=new g0;h.marker=g.makeTooltipMarker(`item`,F1(h.color),d);var _=Y1(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?f0(y?aU({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=PY(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(SU(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=rU(a),a.content=U$(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=h9(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new g0;this._showOrMove(d,function(){var n=rU(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u)if(SU(u)){var p=e.ecModel.get(`useUTC`),m=bU(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=f1(m.axisValue,d,p)),d=P1(d,n,!0)}else if(xU(u)){var g=vU(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u;l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||bU(t))return{color:r||i};if(!bU(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),xU(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),bU(t))n=BJ(t[0],s),r=BJ(t[1],c);else if(TU(t)){var p=t;p.width=l[0],p.height=l[1];var m=B1(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(SU(t)&&o){var h=Hje(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=Bje(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=_9(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=_9(d)?l[1]/2:d===`bottom`?l[1]:0),a9(e)){var h=Vje(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&$(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&$(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&$(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&$(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){eW.node||!t.getDom()||(y3(this,`_updatePosition`),this._tooltipContent.dispose(),Q7(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(t8);function h9(e,t,n){var r=t.ecModel,i;n?(i=new wQ(n,r,r),i=new wQ(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof wQ&&(o=o.get(`tooltip`,!0)),SU(o)&&(o={formatter:o}),o&&(i=new wQ(o,i,r)))}return i}function g9(e,t){return e.dispatchAction||vU(t.dispatchAction,t)}function Bje(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function Vje(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function Hje(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function _9(e){return e===`center`||e===`middle`}function Uje(e,t,n){var r=bY(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=SY(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=PY(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function Wje(e){c7(i9),e.registerComponentModel(Eje),e.registerComponentView(zje),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},ZU),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},ZU)}var Gje=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},v9=function(e){PH(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),bU(t)&&$(t,function(e,r){SU(e)&&(e={type:e}),t[r]=iU(e,Gje(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get(`name`);if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get(`name`))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i=r.name;n.push(i);var a;if(r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):a=!0}else a=!0;a&&hY(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=KU(),a=fU(r,function(e){return(SU(e)||wU(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new wQ(e,this,this.ecModel))},this);this._data=mU(a,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if(this.get(`selectedMode`)===`single`){var n=this._data;$(n,function(e){t[e.get(`name`)]=!1})}t[e]=!0},t.prototype.unSelect=function(e){this.get(`selectedMode`)!==`single`&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?`unSelect`:`select`](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;$(e,function(e){t[e.get(`name`,!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;$(e,function(e){var n=e.get(`name`,!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&cU(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:n0.size.m,align:`auto`,backgroundColor:n0.color.transparent,borderColor:n0.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:n0.color.disabled,inactiveBorderColor:n0.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:n0.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:n0.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:n0.color.tertiary,borderWidth:1,borderColor:n0.color.border},emphasis:{selectorLabel:{show:!0,color:n0.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(K1),y9=yU,b9=$,x9=GX,S9=function(e){PH(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new x9),this.group.add(this._selectorGroup=new x9),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=H1(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=B1(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=B1(sU({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Tje(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=KU(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),b9(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===`
`)){var p=new x9;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f))if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,y9(C9,f,null,r,d)).on(`mouseover`,y9(w9,m.name,null,r,d)).on(`mouseout`,y9(T9,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=PY(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=TK(h.fill);_&&_[3]===0&&(_[3]=.2,h=aU(aU({},h),{fill:kK(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,y9(C9,null,f,r,d)).on(`mouseover`,y9(w9,null,f,r,d)).on(`mouseout`,y9(T9,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=PY(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};PY(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();b9(e,function(e){var r=e.type,i=new yJ({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),uQ(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),wX(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=Kje(c,r,o,s,d,m,u),y=new x9,b=r.getModel(`textStyle`);if(xU(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(qje({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;SU(w)&&w?T=w.replace(`{name}`,t??``):xU(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new yJ({style:fQ(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new hJ({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&ZZ({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),wX(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();z1(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){z1(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}else return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(t8);function Kje(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),b9(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:Z8(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function qje(e){var t=e.icon||`roundRect`,n=w0(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=n0.color.neutral00,n.style.lineWidth=2),n}function C9(e,t,n,r){T9(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),w9(e,t,n,r)}function w9(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function T9(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function E9(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),D9(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){$(i,function(t,n){e[t?`select`:`unSelect`](n)}),D9(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function D9(e,t){var n=t||{};return $(e.getData(),function(t){var r=t.get(`name`);if(!(r===`
`||r===``)){var i=e.isSelected(r);XU(n,r)?n[r]=n[r]&&i:n[r]=i}}),n}function Jje(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,yU(E9,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,yU(E9,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,yU(E9,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,yU(E9,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,yU(E9,`unSelect`))}var Yje=NY(Xje);function Xje(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function O9(e){e.registerComponentModel(v9),e.registerComponentView(S9),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,Yje),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),Jje(e)}var Zje=function(e){PH(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=G1(t);e.prototype.init.call(this,t,n,r),k9(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),k9(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=I$(v9.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:`end`,pageFormatter:`{current}/{total}`,pageIcons:{horizontal:[`M0,0L12,-10L12,10z`,`M0,0L-12,-10L-12,10z`],vertical:[`M0,0L20,0L10,-20z`,`M0,0L20,0L10,20z`]},pageIconColor:n0.color.accent50,pageIconInactiveColor:n0.color.accent10,pageIconSize:15,pageTextStyle:{color:n0.color.tertiary},animationDurationUpdate:800}),t}(v9);function k9(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,W1(t,n,{type:`box`,ignoreSize:!!i})}var A9=GX,j9=[`width`,`height`],M9=[`x`,`y`],Qje=function(e){PH(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new A9),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new A9)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=bU(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new yJ({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1);function p(e,t){var r=e+`DataIndex`,a=GZ(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:vU(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=j9[s],l=M9[s],u=j9[1-s],d=M9[1-s];i&&z1(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=rU(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;z1(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),z1(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=NU(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new hJ({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&EZ(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;$([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,SU(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=j9[i],o=M9[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i<g.i&&(g=h,f.pagePrevDataIndex??=h.i,++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(S9);function $je(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function eMe(e){c7(O9),e.registerComponentModel(Zje),e.registerComponentView(Qje),$je(e)}function tMe(e){c7(O9),c7(eMe)}function N9(e,t,n){var r=VH.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=i+`px`,o.height=a+`px`,r.setAttribute(`data-zr-dom-id`,e)),r.width=i*n,r.height=a*n,r}function P9(e){return!e.__cursors.get(0)}function F9(e){var t=e.__cursors.get(0);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var I9=function(e){bW(t,e);function t(t,n,r){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var a;r||=$K,typeof t==`string`?a=N9(t,n,r):TU(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(YU(a),a.onselectstart=function(){return!1},o.padding=`0`,o.margin=`0`,o.borderWidth=`0`),i.painter=n,i.dpr=r,i}return t.prototype.afterBrush=function(){this.__prevIdx=F9(this)},t.prototype.initContext=function(){this.ctx=this.dom.getContext(`2d`),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=N9(`back-`+this.id,this.painter,e),this.ctxBack=this.domBack.getContext(`2d`),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],a=this.maxRepaintRectCount,o=!1,s=new iG(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero()))if(i.length===0){var t=new iG(0,0,0,0);t.copy(e),i.push(t)}else{for(var n=!1,r=1/0,c=0,l=0;l<i.length;++l){var u=i[l];if(u.intersect(e)){var d=new iG(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}else if(o){s.copy(e),s.union(u);var f=e.width*e.height,p=u.width*u.height,m=s.width*s.height-f-p;m<r&&(r=m,c=l)}}if(o&&(i[c].union(e),n=!0),!n){var t=new iG(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}for(var l=F9(this),u=l.startIdx;u<l.endIdx;++u){var d=e[u];if(d){var f=d.shouldBePainted(n,r,!0,!0),p=d.__isRendered&&(d.__dirty&1||!f)?d.getPrevPaintRect():null;p&&c(p);var m=f&&(d.__dirty&1||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var h=this.__prevIdx,u=h.startIdx;u<h.endIdx;++u){var d=t[u],f=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var u=0;u<i.length;){if(i[u].isZero()){i.splice(u,1);continue}for(var _=u+1;_<i.length;)i[u].intersect(i[_])?(g=!0,i[u].union(i[_]),i.splice(_,1)):_++;u++}}while(g);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+`px`,i.height=t+`px`),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t||=this.clearColor;var s=this.motionBlur&&!e,c=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(r,0,0,a/l,o/l));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&t!==`transparent`){var o=void 0;kU(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||T8(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):AU(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=P8(i,t,{dirty:function(){u.setUnpainted(),u.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=c,i.drawImage(d,e,n,r,a),i.restore())}!n||s?f(0,0,a,o):n.length&&$(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(ZK),L9=1e5,R9=314159,z9=void 0,nMe=1,B9=2;function rMe(e){return e?e.__builtin__?!0:!(typeof e.resize!=`function`||typeof e.refresh!=`function`):!1}function iMe(e,t){var n=document.createElement(`div`);return n.style.cssText=[`position:relative`,`width:`+e+`px`,`height:`+t+`px`,`padding:0`,`margin:0`,`border-width:0`].join(`;`)+`;`,n}function V9(e,t,n,r){var i=new I9(e,t,t.dpr);return i.zlevel=n,i.zlevel2=r,i.__builtin__=!0,H9(i),i}function H9(e){e.__cursorStack=[],e.__cursors=KU()}function aMe(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function oMe(e,t){var n=e.__cursors,r=+t;return n.get(r)||(e.__cursorStack.push(r),n.set(r,aMe({key:r})))}function U9(e,t){for(var n=e.__cursorStack,r=0;r<n.length;r++)t(e.__cursors.get(n[r]))}function W9(e,t){var n=e.layers;return n[t]||(n[t]=[,,,])}function G9(e,t,n){for(var r=e.layerStack,i=0;i<r.length;i++){var a=r[i].zl,o=r[i].zl2,s=e.layers[a][o];(!n||(!(n&K9)||s.__builtin__)&&(!(n&q9)||!s.__builtin__)&&(!(n&J9)||s!==e.hoverlayer))&&t(s,a,o,i)}}var K9=1,q9=2,J9=4,Y9=K9|J9,sMe=function(){function e(e,t,n,r){this.type=`canvas`,this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`,this._i={layerStack:[],layers:[]};var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;if(this._opts=n=aU({},n||{}),this.dpr=n.devicePixelRatio||$K,this._singleCanvas=i,this.root=e,e.style&&(YU(e),e.innerHTML=``),this.storage=t,this._prevDisplayList=[],i){var a=e,o=a.width,s=a.height;n.width!=null&&(o=n.width),n.height!=null&&(s=n.height),this.dpr=n.devicePixelRatio||1,a.width=o*this.dpr,a.height=s*this.dpr,this._width=o,this._height=s;var c=V9(a,this,R9,0);c.initContext(),this._insertLayer(c,R9,0,!0),this._domRoot=e}else{this._width=D8(e,0,n),this._height=D8(e,1,n);var l=this._domRoot=iMe(this._width,this._height);e.appendChild(l)}}return e.prototype.getType=function(){return`canvas`},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=e&&!TU(e)?{paintAll:!!e}:e||{},n=NU(t.refresh,!0),r=NU(t.refreshHover,!1);if(r&&(this._hoverLayerDirty=B9),!n)return r&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,t.paintAll),this._redrawId=Math.random();var a=this._prevDisplayList;this._paintList(i,a,this._redrawId);var o=this._backgroundColor;return G9(this._i,function(e,t,n,r){e.refresh&&e.refresh(r===0?o:null)},q9),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},e.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=z9,n!==z9&&(!t&&n===B9&&(t=this._i.hoverlayer=this._ensureLayer(L9)),t)){t.clear();for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,a=0,o=e.length;a<o;a++){var s=e[a];if(s.__inHover){i||(i=t.ctx,i.save());var c=s.__hoverStyle,l=void 0;c&&(l=s.style,s.style=c),K8(i,s,r),c&&(s.style=l)}}i&&(q8(i,r),i.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(L9)},e.prototype.paintOne=function(e,t){G8(e,t)},e.prototype._paintList=function(e,t,n){if(this._redrawId===n){var r=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),r)G9(this._i,function(e){e.afterBrush&&e.afterBrush()},Y9),this._paintHoverList(e);else{var i=this;l6(function(){i._paintList(e,t,n)})}}},e.prototype._compositeManually=function(){var e=this._ensureLayer(R9).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),G9(this._i,function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)},K9)},e.prototype._doPaintList=function(e,t){var n=this,r=!0;return G9(this._i,function(i){var a=!1;if(U9(i,function(e){(e.drawIdx<e.endIdx||e.notClearIdx>=0)&&(a=!0)}),!(!a&&!i.__dirty)){var o=n._opts.useDirtyRect&&!P9(i)?i.createRepaintRects(e,t,n._width,n._height):null,s=n._i.layerStack[0],c=!0;if(i.__dirty){c=!1,i.__dirty=!1;var l=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,l,o)}U9(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},Y9),eW.wxa&&G9(this._i,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),r},e.prototype._paintPerCursor=function(e,t,n,r,i){var a=e.ctx;if(r)if(!r.length)t.drawIdx=t.endIdx;else for(var o=this.dpr,s=0;s<r.length;++s){var c=r[s];a.save(),a.beginPath(),a.rect(c.x*o,c.y*o,c.width*o,c.height*o),a.clip(),this._paintPerCursorInRect(e,t,n,c,i),a.restore()}else a.save(),this._paintPerCursorInRect(e,t,n,null,i),a.restore();return t.drawIdx>=t.endIdx},e.prototype._paintPerCursorInRect=function(e,t,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=e.ctx,s=P9(e),c=s&&VH.getTime(),l=t.drawIdx,u=t.notClearIdx,d=u>=0?Math.min(u,l):l;d<t.endIdx;d++){var f=n[d];if(!(d<l&&!f.notClear)){if(f.__inHover&&(this._hoverLayerDirty=B9),r!=null){var p=f.getPaintRect();p&&p.intersect(r)&&(K8(o,f,a),f.setPrevPaintRect(p))}else K8(o,f,a);if(s&&VH.getTime()-c>15){d++;break}}}q8(o,a),t.drawIdx=Math.max(d,l)},e.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},e.prototype._ensureLayer=function(e,t,n){t||=0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(e=R9,t=0);var i=W9(this._i,e)[t];return i||(i=V9(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&iU(i,this._layerConfig[e],!0),(n||r&&e!==R9)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},e.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},e.prototype._insertLayer=function(e,t,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,c=null;if(!(a[t]&&a[t][n])&&rMe(e)){for(var l=o.length,u=0;u<l&&(o[u].zl<t||o[u].zl===t&&o[u].zl2<n);)u++;if(u>0&&(c=W9(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),W9(i,t)[n]=e,!r&&!e.virtual)if(c){var d=c.dom;d.nextSibling?s.insertBefore(e.dom,d.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom);e.painter||=this}},e.prototype.eachLayer=function(e,t){return G9(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return G9(this._i,function(n,r){e.call(t,n,r)},K9)},e.prototype.eachOtherLayer=function(e,t){return G9(this._i,function(n,r){e.call(t,n,r)},q9)},e.prototype.getLayers=function(){var e={};return G9(this._i,function(t,n,r){e[t.id]=t}),e},e.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var r=1;r<e.length;r++){var i=e[r];if(i.zlevel!==e[r-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}G9(n._i,function(e){e.__dirty=!1,U9(e,function(e){e.used=!1,e.endIdxNew=0,e.notClearIdx=-1})},Y9);for(var a,o=null,s=null,c=!1,l=0,u=e.length;l<u;l++){var i=e[l],d=i.zlevel,f=i.incremental,p=void 0;if(a!==d&&(a=d,c=!1),f?(c=!0,p=1):p=c?2:0,(!o||d!==o.zlevel||p!==o.zlevel2)&&(o=n._ensureLayer(d,p),s=null,!o.__builtin__)){nU(`ZLevel `+d+` has been used by unknown layer `+o.id);continue}if((!s||f!==s.key)&&(s=oMe(o,f),!s.used))if(s.used=!0,!t&&s.first===i.id){var m=l-s.startIdx;s.startIdx=l,s.drawIdx+=m,s.endIdx+=m}else o.__dirty=!0,s.first=i.id,s.startIdx=s.drawIdx=l,s.endIdx=l+1;s.endIdxNew=l+1,i.__dirty&1&&!i.__inHover&&((!f||!i.notClear&&l<s.drawIdx)&&(o.__dirty=!0),f&&i.notClear&&s.notClearIdx<0&&(s.notClearIdx=l))}G9(n._i,function(t){for(var r=t.__cursorStack,i=t.__cursors,a=r.length-1;a>=0;a--){var o=i.get(r[a]);if(!o.used)t.__dirty=!0,i.removeKey(r[a]),r.splice(a,1);else{var s=o.endIdxNew;(P9(t)?s<o.drawIdx:s!==o.endIdx||!s||e[s-1].id!==o.last)&&(t.__dirty=!0),o.endIdx=o.endIdxNew,o.last=s?e[s-1].id:NaN}}t.__dirty&&(U9(t,function(e){e.drawIdx=e.startIdx}),n._hoverLayerDirty===z9&&(n._hoverLayerDirty=nMe))},Y9)},e.prototype.clear=function(){return G9(this._i,function(e){e.clear(),H9(e)},K9),this},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,G9(this._i,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?iU(n[e],t,!0):n[e]=t,G9(this._i,function(e,t){iU(e,n[t],!0)})}},e.prototype.delLayer=function(e){for(var t=this._i.layerStack,n=this._i.layers,r=t.length-1;r>=0;r--){var i=t[r];if(i.zl===e){var a=n[e][i.zl2];if(a.__builtin__)continue;if(t.splice(r,1),n[e][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;e!=null&&(r.width=e),t!=null&&(r.height=t),e=D8(i,0,r),t=D8(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,G9(this._i,function(n){n.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(R9).resize(e,t)}return this},e.prototype.clearLayer=function(e){$(this._i.layers[e],function(e){e&&!e.__builtin__&&e.clear()})},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._i.layers[R9][0].dom;var t=new I9(`image`,this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;G9(this._i,function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];K8(n,l,a)}q8(n,a)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function cMe(e){e.registerPainter(`canvas`,sMe)}var lMe=z({__name:`TrendChart`,props:{labels:{},values:{}},setup(e){c7([sOe,gEe,wje,tMe,Wje,cMe]);let t=e,n=I(null),r=null,i=null;function a(){n.value&&(r||=dAe(n.value),r.setOption({animationDuration:350,grid:{left:36,right:16,top:20,bottom:24},tooltip:{trigger:`axis`},xAxis:{type:`category`,boundaryGap:!1,data:t.labels,axisLine:{lineStyle:{color:`#d7dce3`}},axisLabel:{color:`#718096`,fontSize:11}},yAxis:{type:`value`,minInterval:1,splitLine:{lineStyle:{color:`#edf0f4`}},axisLabel:{color:`#718096`,fontSize:11}},series:[{name:`操作数`,type:`line`,smooth:!0,symbol:`circle`,symbolSize:5,data:t.values,lineStyle:{color:`#0052d9`,width:2},itemStyle:{color:`#0052d9`},areaStyle:{color:`rgba(0,82,217,.10)`}}]}))}return mr(()=>{a(),n.value&&(i=new ResizeObserver(()=>r?.resize()),i.observe(n.value))}),R(()=>[t.labels,t.values],a,{deep:!0}),_r(()=>{i?.disconnect(),r?.dispose(),r=null}),(e,t)=>(Ei(),Ai(`div`,{ref_key:`element`,ref:n,class:`trend-chart`,"aria-label":`近期操作趋势`},null,512))}}),uMe={install:`入库`,marketplace_install:`市场入库`,enable:`启用`,disable:`停用`,upgrade:`升级`,rollback:`回滚`,uninstall:`卸载`,menu_preview:`菜单预览`,menu_apply:`应用菜单`,config:`保存配置`};function X9(e){return uMe[String(e)]||String(e||`操作`)}function Z9(e){return{install:jg,marketplace_install:jg,enable:tg,disable:_v,upgrade:Av,rollback:av,uninstall:Vg,menu_preview:Oh,menu_apply:Oh,config:_v}[String(e)]||x_}var dMe={class:`page-view`},fMe={class:`stat-grid`,"aria-label":`插件统计`},pMe={class:`stat-card-top`},mMe={class:`overview-grid`},hMe={class:`table-action`},gMe={class:`secondary-text`},_Me={class:`guidance-grid`},vMe={class:`guidance-number`},yMe=z({__name:`Overview`,setup(e){let t=Hz(),n=I([]),r=I([]),i=I(``),a=[{colKey:`action`,title:`操作`,width:150},{colKey:`plugin_id`,title:`插件`,ellipsis:!0},{colKey:`result`,title:`结果`,width:90},{colKey:`time`,title:`时间`,width:170}],o=e=>HV(e)?`已完成`:String(e||`未知`),s=U(()=>{let e=n.value.filter(e=>[`healthy`,`enabled`].includes(e.state)).length,t=n.value.filter(e=>[`disabled`,`incompatible`].includes(e.state)||e.installation_status===`staged`).length,r=n.value.filter(e=>[`error`,`starting`,`upgrading`,`rollback_pending`].includes(e.state)).length;return[{label:`已登记插件`,value:n.value.length,caption:`全部已校验版本`,theme:`neutral`,icon:Oh},{label:`运行中`,value:e,caption:`健康检查通过`,theme:`success`,icon:tg},{label:`待启用`,value:t,caption:`已入库,等待启动`,theme:`warning`,icon:Dv},{label:`需要关注`,value:r,caption:`失败或迁移中`,theme:`danger`,icon:Sce}]}),c=[{title:`入库不等于启用`,body:`上传或市场下载只完成验签、哈希和兼容性校验。`},{title:`启用前先配置`,body:`服务地址和菜单地址在插件详情的配置页维护。`},{title:`高风险操作可追溯`,body:`升级、回滚和卸载均保留操作 ID 与审计结果。`}],l=U(()=>[`-6 天`,`-5 天`,`-4 天`,`-3 天`,`-2 天`,`昨天`,`今天`]),u=U(()=>{let e=Array(7).fill(0);return r.value.forEach(t=>{let n=new Date(t.time);if(!Number.isNaN(n.getTime())){let t=Math.floor((Date.now()-n.getTime())/864e5);t>=0&&t<7&&(e[6-t]+=1)}}),e});async function d(){try{let[e,t]=await Promise.all([jV(`/api/plugins`),jV(`/api/audit`)]);n.value=zV(e),r.value=zV(t).sort((e,t)=>new Date(String(t.time)).getTime()-new Date(String(e.time)).getTime()).slice(0,8)}catch(e){i.value=e instanceof Error?e.message:`概览数据加载失败`}}return mr(d),(e,n)=>{let d=br(`t-button`),f=br(`t-alert`),p=br(`t-card`),m=br(`t-link`),h=br(`t-tag`),g=br(`t-table`),_=br(`t-empty`);return Ei(),Ai(`div`,dMe,[V(MH,{eyebrow:`OVERVIEW`,title:`概览`,subtitle:`查看插件控制面的总体状态、运行健康和最近活动。`},{actions:L(()=>[V(d,{theme:`primary`,onClick:n[0]||=e=>Ht(t).push(`/plugins`)},{icon:L(()=>[V(Ht(Oh))]),default:L(()=>[n[2]||=zi(`管理插件`,-1)]),_:1})]),_:1}),i.value?(Ei(),ji(f,{key:0,theme:`warning`,message:i.value,class:`page-alert`},null,8,[`message`])):Bi(``,!0),B(`section`,fMe,[(Ei(!0),Ai(bi,null,Tr(s.value,e=>(Ei(),ji(p,{key:e.label,class:de([`stat-card`,`stat-${e.theme}`]),bordered:!0},{default:L(()=>[B(`div`,pMe,[B(`span`,null,ve(e.label),1),(Ei(),ji(Sr(e.icon),{size:`18px`}))]),B(`strong`,null,ve(e.value),1),B(`small`,null,ve(e.caption),1)]),_:2},1032,[`class`]))),128))]),B(`section`,mMe,[V(p,{class:`panel-card`,title:`近期操作`,bordered:!0},{actions:L(()=>[V(m,{theme:`primary`,onClick:n[1]||=e=>Ht(t).push(`/operations`)},{default:L(()=>[...n[3]||=[zi(`查看全部`,-1)]]),_:1})]),default:L(()=>[r.value.length?(Ei(),ji(g,{key:0,data:r.value,columns:a,"row-key":`id`,size:`small`,hover:!0},{action:L(({row:e})=>[B(`span`,hMe,[(Ei(),ji(Sr(Ht(Z9)(e.action)),{size:`15px`})),zi(ve(Ht(X9)(e.action)),1)])]),result:L(({row:e})=>[V(h,{theme:Ht(UV)(e.result),variant:`light`},{default:L(()=>[zi(ve(o(e.result)),1)]),_:2},1032,[`theme`])]),time:L(({row:e})=>[B(`span`,gMe,ve(Ht(BV)(e.time)),1)]),_:1},8,[`data`])):(Ei(),ji(_,{key:1,description:`还没有操作记录`}))]),_:1}),V(p,{class:`panel-card`,title:`操作趋势`,bordered:!0},{actions:L(()=>[V(h,{theme:`primary`,variant:`light`},{default:L(()=>[...n[4]||=[zi(`最近 7 天`,-1)]]),_:1})]),default:L(()=>[V(lMe,{labels:l.value,values:u.value},null,8,[`labels`,`values`])]),_:1})]),V(p,{class:`panel-card guidance-card`,title:`生命周期提示`,bordered:!0},{default:L(()=>[B(`div`,_Me,[(Ei(),Ai(bi,null,Tr(c,(e,t)=>B(`div`,{key:e.title,class:`guidance-item`},[B(`span`,vMe,ve(String(t+1).padStart(2,`0`)),1),B(`div`,null,[B(`strong`,null,ve(e.title),1),B(`p`,null,ve(e.body),1)])])),64))])]),_:1})])}}}),bMe={class:`page-view`},xMe={class:`page-toolbar`},SMe={class:`secondary-text`},CMe={class:`plugin-cell`},wMe={class:`plugin-avatar`},TMe={class:`secondary-text mono`},EMe={class:`mono`},DMe={class:`cell-note`},OMe={class:`secondary-text`},kMe={class:`table-actions`},AMe=z({__name:`Plugins`,setup(e){let t=Hz(),n=I([]),r=I(!1),i=I(``),a=I(``),o=I(null),s=[{colKey:`plugin`,title:`插件`,minWidth:230},{colKey:`version`,title:`版本`,width:110},{colKey:`state`,title:`状态`,width:150},{colKey:`compatibility`,title:`Core 兼容性`,width:145},{colKey:`updated`,title:`最近更新`,width:180},{colKey:`actions`,title:`操作`,width:250,fixed:`right`}],c=[`healthy`,`enabled`],l=e=>c.includes(e.state),u=e=>[`starting`,`draining`,`upgrading`,`rollback_pending`].includes(e.state),d=e=>c.includes(e)?`success`:[`error`,`incompatible`].includes(e)?`danger`:[`starting`,`draining`,`upgrading`,`rollback_pending`].includes(e)?`warning`:`default`;async function f(){r.value=!0,i.value=``;try{n.value=zV(await jV(`/api/plugins`)).sort((e,t)=>String(e.name||e.plugin_id).localeCompare(String(t.name||t.plugin_id)))}catch(e){i.value=e instanceof Error?e.message:`插件列表加载失败`}finally{r.value=!1}}async function p(e){if(!e)return null;for(let t=0;t<8;t+=1){let t=await jV(`/api/operations/${encodeURIComponent(e)}`).catch(()=>null);if(t&&t.state&&t.state!==`running`)return t;await new Promise(e=>window.setTimeout(e,150))}return null}async function m(e,t){a.value=t,i.value=``;try{let n=await p((await jV(`/api/plugins/${encodeURIComponent(t)}/${e}`,{method:`POST`,headers:{"Idempotency-Key":WV(e,t)}})).operation_id);eb.success(`${e===`enable`?`启用`:e===`disable`?`停用`:e}操作已完成${n?.state?`:${n.state}`:``}`),await f()}catch(e){i.value=e instanceof Error?e.message:`操作失败`}finally{a.value=``}}function h(e){return[{content:`配置`,value:`config`},{content:`版本与升级`,value:`revisions`},{content:`菜单接入`,value:`menu`},{content:`卸载插件`,value:`uninstall`,disabled:l(e)}]}function g(e,n){if((e===`config`||e===`revisions`||e===`menu`)&&t.push(`/plugins/${encodeURIComponent(n.plugin_id)}/${e}`),e===`uninstall`){let e=Pj.confirm({header:`确认卸载插件`,body:`卸载会移除插件文件,但不会删除 Core 数据。`,confirmBtn:`卸载`,cancelBtn:`取消`,onConfirm:()=>{e.hide(),m(`uninstall`,n.plugin_id)}})}}async function _(e){let t=e.target,n=t.files?.[0];if(t.value=``,n){a.value=`upload`,i.value=``;try{let e=new FormData;e.append(`package`,n);let t=await jV(`/api/plugins/install`,{method:`POST`,headers:{"Idempotency-Key":WV(`install`)},body:e});eb.success(`插件已入库,待手动启用:${t.operation_id||t.state}`),await f()}catch(e){i.value=e instanceof Error?e.message:`上传失败`}finally{a.value=``}}}return mr(f),(e,c)=>{let p=br(`t-button`),v=br(`t-alert`),y=br(`t-tag`),b=br(`t-dropdown`),x=br(`t-table`),S=br(`t-card`),C=br(`t-empty`);return Ei(),Ai(`div`,bMe,[V(MH,{eyebrow:`INSTALLED PLUGINS`,title:`已安装插件`,subtitle:`查看插件状态、版本和生命周期。高风险操作进入插件详情页。`},{actions:L(()=>[B(`input`,{ref_key:`packageInput`,ref:o,class:`visually-hidden`,type:`file`,accept:`.zip,.s2plugin,application/zip`,onChange:_},null,544),V(p,{theme:`primary`,loading:a.value===`upload`,onClick:c[0]||=e=>o.value?.click()},{icon:L(()=>[V(Ht(Av))]),default:L(()=>[c[1]||=zi(`上传并入库`,-1)]),_:1},8,[`loading`]),V(p,{variant:`outline`,loading:r.value,onClick:f},{icon:L(()=>[V(Ht(ev))]),default:L(()=>[c[2]||=zi(`刷新`,-1)]),_:1},8,[`loading`])]),_:1}),i.value?(Ei(),ji(v,{key:0,theme:`error`,message:i.value,class:`page-alert`},null,8,[`message`])):Bi(``,!0),B(`div`,xMe,[B(`span`,SMe,`共 `+ve(n.value.length)+` 个插件`,1),c[3]||=B(`span`,{class:`toolbar-hint`},`下载包仅入库,不会自动启动`,-1)]),n.value.length?(Ei(),ji(S,{key:1,class:`table-card`,bordered:!0},{default:L(()=>[V(x,{data:n.value,columns:s,"row-key":`plugin_id`,loading:r.value,hover:!0,stripe:``},{plugin:L(({row:e})=>[B(`div`,CMe,[B(`div`,wMe,[V(Ht(Oh),{size:`19px`})]),B(`div`,null,[B(`strong`,null,ve(e.name||e.plugin_id),1),B(`span`,TMe,ve(e.plugin_id),1)])])]),version:L(({row:e})=>[B(`span`,EMe,`v`+ve(e.version||`-`),1)]),state:L(({row:e})=>[V(y,{theme:d(e.state),variant:`light`},{default:L(()=>[zi(ve(Ht(VV)(e.state)),1)]),_:2},1032,[`theme`]),B(`span`,DMe,ve(e.installation_status===`staged`?`待启用`:``),1)]),compatibility:L(({row:e})=>[V(y,{theme:e.compatibility?.compatible?`success`:`warning`,variant:`light`},{default:L(()=>[zi(ve(e.compatibility?.status||`unknown`),1)]),_:2},1032,[`theme`])]),updated:L(({row:e})=>[B(`span`,OMe,ve(Ht(BV)(e.updated_at)),1)]),actions:L(({row:e})=>[B(`div`,kMe,[V(p,{size:`medium`,variant:`outline`,onClick:n=>Ht(t).push(`/plugins/${encodeURIComponent(e.plugin_id)}/overview`)},{default:L(()=>[...c[4]||=[zi(`查看详情`,-1)]]),_:1},8,[`onClick`]),V(p,{size:`medium`,theme:l(e)?`default`:`primary`,variant:l(e)?`outline`:`base`,loading:a.value===e.plugin_id,disabled:u(e)||e.state===`incompatible`,onClick:t=>m(l(e)?`disable`:`enable`,e.plugin_id)},{default:L(()=>[zi(ve(l(e)?`停用`:`启用`),1)]),_:2},1032,[`theme`,`variant`,`loading`,`disabled`,`onClick`]),V(b,{options:h(e),trigger:`click`,onClick:t=>g(String(t?.value||``),e)},{default:L(()=>[V(p,{size:`medium`,variant:`text`,shape:`square`,"aria-label":`更多操作`},{icon:L(()=>[V(Ht(ele))]),_:1})]),_:1},8,[`options`,`onClick`])])]),_:1},8,[`data`,`loading`])]),_:1})):(Ei(),ji(S,{key:2,class:`empty-card`,bordered:!0},{default:L(()=>[V(C,{description:`还没有登记业务插件`})]),_:1}))])}}}),jMe={class:`page-view`},MMe={class:`detail-back`},NMe={key:1,class:`loading-panel`},PMe={key:0,class:`detail-content`},FMe={class:`detail-actions`},IMe={class:`detail-grid`},LMe={class:`description-grid`},RMe={class:`mono wrap-anywhere`},zMe={class:`mono`},BMe={class:`mono`},VMe={class:`description-grid`},HMe={class:`wrap-anywhere`},UMe={class:`mono wrap-anywhere`},WMe={key:1,class:`detail-content`},GMe={class:`section-toolbar`},KMe={class:`secondary-text mono wrap-anywhere`},qMe={class:`mono wrap-anywhere`},JMe={class:`secondary-text`},YMe={key:2,class:`detail-content narrow-content`},XMe={key:3,class:`detail-content narrow-content`},ZMe={class:`section-toolbar`},QMe={class:`toolbar-actions`},$Me={class:`description-grid`},eNe={class:`mono wrap-anywhere`},tNe={key:4,class:`detail-content`},nNe={class:`section-toolbar`},rNe={class:`secondary-text`},iNe={class:`preview-grid`},aNe=z({__name:`PluginDetail`,setup(e){let t=Uz(),n=Hz(),r=I(null),i=I([]),a=I(!1),o=I(``),s=I(``),c=[{value:`overview`,label:`运行概况`},{value:`revisions`,label:`版本与升级`},{value:`config`,label:`配置`},{value:`menu`,label:`菜单接入`},{value:`operations`,label:`操作历史`}],l=I(String(t.params.tab||`overview`)),u=I(null),d=Dt({service_url:``,public_url:``}),f={service_url:[{required:!0,message:`请输入服务地址`,type:`error`}]},p=I(!1),m=I([]),h=I([]),g=[{colKey:`version`,title:`版本`,minWidth:250},{colKey:`hash`,title:`SHA-256`,minWidth:300},{colKey:`verified`,title:`验证时间`,width:180},{colKey:`actions`,title:`操作`,width:160}],_=[{colKey:`action`,title:`操作`,width:180},{colKey:`result`,title:`结果`,width:100},{colKey:`request_id`,title:`请求 ID`,minWidth:250},{colKey:`time`,title:`时间`,width:180}],v=e=>[`healthy`,`enabled`].includes(e.state),y=e=>v({state:e})?`success`:[`error`,`incompatible`].includes(e)?`danger`:[`starting`,`draining`,`upgrading`,`rollback_pending`].includes(e)?`warning`:`default`,b=U(()=>r.value?.plugin_id===`qiu.subscription-admin`),x=U(()=>(r.value?.revisions||[]).filter(e=>!e.retired)),S=e=>HV(e)?`已完成`:String(e||`未知`);function C(e){l.value=String(e),n.replace(`/plugins/${encodeURIComponent(String(t.params.id))}/${String(e)}`)}async function w(){a.value=!0,o.value=``;try{let e=encodeURIComponent(String(t.params.id));r.value=await jV(`/api/plugins/${e}`);let n=await jV(`/api/audit`);if(i.value=(Array.isArray(n.items)?n.items:[]).filter(e=>e.plugin_id===r.value.plugin_id).sort((e,t)=>new Date(String(t.time)).getTime()-new Date(String(e.time)).getTime()),[`config`,`menu`].includes(l.value)){let t=await jV(`/api/plugins/${e}/config`);d.service_url=t.endpoint||``,d.public_url=typeof t.config?.public_url==`string`?t.config.public_url:``}}catch(e){o.value=e instanceof Error?e.message:`插件详情加载失败`}finally{a.value=!1}}async function T(e){for(let t=0;t<20&&e;t+=1){let t=await jV(`/api/operations/${encodeURIComponent(e)}`).catch(()=>null);if(t?.state&&t.state!==`running`)return t;await new Promise(e=>window.setTimeout(e,200))}return null}async function E(e,n=``){let r=encodeURIComponent(String(t.params.id)),i=e===`rollback`?`/api/plugins/${r}/rollback`:`/api/plugins/${r}/${e}`;if([`disable`,`uninstall`].includes(e)){let t=Pj.confirm({header:e===`uninstall`?`确认卸载插件`:`确认停用插件`,body:e===`uninstall`?`卸载会移除插件文件,但不会删除 Core 数据。`:`停用后 Core 管理员菜单会被移除。`,confirmBtn:e===`uninstall`?`卸载`:`停用`,cancelBtn:`取消`,onConfirm:()=>{t.hide(),D(i,e,n)}});return}await D(i,e,n)}async function D(e,t,n=``){s.value=t===`rollback`?n:t;try{let r=t===`rollback`&&n?JSON.stringify({revision:n}):void 0,i=await jV(e,{method:`POST`,headers:{"Idempotency-Key":WV(t,n)},body:r}),a=await T(i.operation_id),o=a?.state||i.state;if(o===`failed`)throw Error(a?.error||i.error||`${X9(t)}失败`);o&&!HV(o)?eb.warning(`${X9(t)}操作仍在处理中`):eb.success(`${X9(t)}已完成`),await w()}catch(e){o.value=e instanceof Error?e.message:`操作失败`}finally{s.value=``}}async function O(){if(!d.service_url.trim()){o.value=`请输入服务地址`;return}s.value=`config`;try{let e=b.value?{service_url:d.service_url}:d,n=await jV(`/api/plugins/${encodeURIComponent(String(t.params.id))}/config`,{method:`PUT`,headers:{"Idempotency-Key":WV(`config`,String(t.params.id))},body:JSON.stringify(e)}),r=await T(n.operation_id);if((r?.state||n.state)===`failed`)throw Error(r?.error||n.error||`配置保存失败`);eb.success(`配置已保存`),await w()}catch(e){o.value=e instanceof Error?e.message:`配置保存失败`}finally{s.value=``}}async function k(){s.value=`menu-preview`;try{let e=await jV(`/api/plugins/${encodeURIComponent(String(t.params.id))}/menu-preview`,{method:`POST`,headers:{"Idempotency-Key":WV(`menu-preview`,String(t.params.id))}});m.value=e.current||[],h.value=e.next||[],p.value=!0}catch(e){o.value=e instanceof Error?e.message:`菜单预览失败`}finally{s.value=``}}async function A(e){let n=e.target,r=n.files?.[0];if(n.value=``,r){s.value=`upgrade`;try{let e=new FormData;e.append(`package`,r);let n=await jV(`/api/plugins/${encodeURIComponent(String(t.params.id))}/upgrade`,{method:`POST`,headers:{"Idempotency-Key":WV(`upgrade`,String(t.params.id))},body:e}),i=await T(n.operation_id);if((i?.state||n.state)===`failed`)throw Error(i?.error||n.error||`升级失败`);eb.success(`升级已完成`),await w()}catch(e){o.value=e instanceof Error?e.message:`升级上传失败`}finally{s.value=``}}}return R(()=>t.params.tab,e=>{l.value=String(e||`overview`),w()}),mr(w),(e,T)=>{let D=br(`t-link`),j=br(`t-tag`),M=br(`t-alert`),ee=br(`t-tab-panel`),N=br(`t-tabs`),P=br(`t-loading`),F=br(`t-button`),te=br(`t-card`),ne=br(`t-table`),re=br(`t-empty`),ie=br(`t-input`),ae=br(`t-form-item`),oe=br(`t-form`),se=br(`t-dialog`);return Ei(),Ai(`div`,jMe,[B(`div`,MMe,[V(D,{theme:`primary`,onClick:T[0]||=e=>Ht(n).push(`/plugins`)},{"prefix-icon":L(()=>[V(Ht(fg))]),default:L(()=>[T[10]||=zi(`返回已安装插件`,-1)]),_:1})]),V(MH,{eyebrow:`PLUGIN DETAIL`,title:r.value?.name||String(Ht(t).params.id),subtitle:`${String(Ht(t).params.id)} · v${r.value?.version||`-`}`},{actions:L(()=>[r.value?(Ei(),ji(j,{key:0,theme:y(r.value.state),variant:`light`},{default:L(()=>[zi(ve(Ht(VV)(r.value.state)),1)]),_:1},8,[`theme`])):Bi(``,!0)]),_:1},8,[`title`,`subtitle`]),o.value?(Ei(),ji(M,{key:0,theme:`error`,message:o.value,class:`page-alert`},null,8,[`message`])):Bi(``,!0),V(N,{modelValue:l.value,"onUpdate:modelValue":T[1]||=e=>l.value=e,class:`detail-tabs`,onChange:C},{default:L(()=>[(Ei(),Ai(bi,null,Tr(c,e=>V(ee,{key:e.value,value:e.value,label:e.label},null,8,[`value`,`label`])),64))]),_:1},8,[`modelValue`]),a.value?(Ei(),Ai(`div`,NMe,[V(P,{text:`加载中`})])):r.value?(Ei(),Ai(bi,{key:2},[l.value===`overview`?(Ei(),Ai(`section`,PMe,[B(`div`,FMe,[v(r.value)?(Ei(),ji(F,{key:0,variant:`outline`,loading:s.value===`disable`,onClick:T[2]||=e=>E(`disable`)},{icon:L(()=>[V(Ht(ole))]),default:L(()=>[T[11]||=zi(`停用插件`,-1)]),_:1},8,[`loading`])):(Ei(),ji(F,{key:1,theme:`primary`,disabled:r.value.state===`incompatible`,loading:s.value===`enable`,onClick:T[3]||=e=>E(`enable`)},{icon:L(()=>[V(Ht(cle))]),default:L(()=>[T[12]||=zi(`启用插件`,-1)]),_:1},8,[`disabled`,`loading`])),V(F,{theme:`danger`,variant:`outline`,disabled:v(r.value),loading:s.value===`uninstall`,onClick:T[4]||=e=>E(`uninstall`)},{icon:L(()=>[V(Ht(Vg))]),default:L(()=>[T[13]||=zi(`卸载插件`,-1)]),_:1},8,[`disabled`,`loading`])]),B(`div`,IMe,[V(te,{title:`健康状态`,class:`panel-card`,bordered:!0},{actions:L(()=>[V(j,{theme:y(r.value.state),variant:`light`},{default:L(()=>[zi(ve(Ht(VV)(r.value.state)),1)]),_:1},8,[`theme`])]),default:L(()=>[B(`dl`,LMe,[B(`div`,null,[T[14]||=B(`dt`,null,`安装状态`,-1),B(`dd`,null,ve(r.value.installation_status||`-`),1)]),B(`div`,null,[T[15]||=B(`dt`,null,`服务地址`,-1),B(`dd`,RMe,ve(r.value.endpoint||`未配置`),1)]),B(`div`,null,[T[16]||=B(`dt`,null,`活动 revision`,-1),B(`dd`,zMe,ve(r.value.active_revision||`-`),1)]),B(`div`,null,[T[17]||=B(`dt`,null,`待切换 revision`,-1),B(`dd`,BMe,ve(r.value.pending_revision||`-`),1)])]),r.value.last_error?(Ei(),ji(M,{key:0,theme:`error`,message:r.value.last_error,class:`inline-alert`},null,8,[`message`])):(Ei(),ji(M,{key:1,theme:`success`,message:`最近一次检查未发现错误。`,class:`inline-alert`}))]),_:1}),V(te,{title:`插件信息`,class:`panel-card`,bordered:!0},{default:L(()=>[B(`dl`,VMe,[B(`div`,null,[T[18]||=B(`dt`,null,`能力`,-1),B(`dd`,HMe,ve((r.value.capabilities||[]).join(`, `)||`未声明`),1)]),B(`div`,null,[T[19]||=B(`dt`,null,`Core 兼容性`,-1),B(`dd`,null,ve(r.value.compatibility?.status||`unknown`),1)]),B(`div`,null,[T[20]||=B(`dt`,null,`更新时间`,-1),B(`dd`,null,ve(Ht(BV)(r.value.updated_at)),1)]),B(`div`,null,[T[21]||=B(`dt`,null,`菜单标识`,-1),B(`dd`,UMe,ve(r.value.menu?.id||`未声明`),1)])])]),_:1})])])):l.value===`revisions`?(Ei(),Ai(`section`,WMe,[B(`div`,GMe,[T[23]||=B(`div`,null,[B(`h2`,null,`版本与升级`),B(`p`,{class:`secondary-text`},`新版本先校验并进入候选 revision,健康检查通过后才会切换。`)],-1),B(`input`,{ref_key:`upgradeInput`,ref:u,class:`visually-hidden`,type:`file`,accept:`.zip,.s2plugin,application/zip`,onChange:A},null,544),V(F,{theme:`primary`,loading:s.value===`upgrade`,onClick:T[5]||=e=>u.value?.click()},{icon:L(()=>[V(Ht(Av))]),default:L(()=>[T[22]||=zi(`上传升级`,-1)]),_:1},8,[`loading`])]),V(te,{class:`table-card`,bordered:!0},{default:L(()=>[x.value.length?(Ei(),ji(ne,{key:0,data:x.value,columns:g,"row-key":`id`,hover:!0},{version:L(({row:e})=>[B(`div`,null,[B(`strong`,null,`v`+ve(e.version||`-`),1),e.id===r.value.active_revision?(Ei(),ji(j,{key:0,theme:`success`,variant:`light`,class:`tag-gap`},{default:L(()=>[...T[24]||=[zi(`当前活动`,-1)]]),_:1})):Bi(``,!0),B(`div`,KMe,ve(e.id),1)])]),hash:L(({row:e})=>[B(`span`,qMe,ve(e.archive_sha256||`-`),1)]),verified:L(({row:e})=>[B(`span`,JMe,ve(Ht(BV)(e.verified_at)),1)]),actions:L(({row:e})=>[e.id!==r.value.active_revision&&!e.retired?(Ei(),ji(F,{key:0,size:`medium`,variant:`outline`,loading:s.value===e.id,onClick:t=>E(`rollback`,e.id)},{icon:L(()=>[V(Ht(av))]),default:L(()=>[T[25]||=zi(`回滚到此版本`,-1)]),_:1},8,[`loading`,`onClick`])):Bi(``,!0)]),_:1},8,[`data`])):(Ei(),ji(re,{key:1,description:`暂无可用版本记录`}))]),_:1})])):l.value===`config`?(Ei(),Ai(`section`,YMe,[T[27]||=B(`div`,{class:`section-toolbar`},[B(`div`,null,[B(`h2`,null,`配置`),B(`p`,{class:`secondary-text`},`服务地址和菜单地址由控制面保存,密钥不会回显到浏览器。`)])],-1),V(te,{class:`panel-card`,bordered:!0},{default:L(()=>[V(oe,{data:d,rules:f,onSubmit:O},{default:L(()=>[V(ae,{label:`服务地址`,name:`service_url`},{default:L(()=>[V(ie,{modelValue:d.service_url,"onUpdate:modelValue":T[6]||=e=>d.service_url=e,placeholder:`http://127.0.0.1:18090`},null,8,[`modelValue`])]),_:1}),b.value?Bi(``,!0):(Ei(),ji(ae,{key:0,label:`菜单地址`,name:`public_url`},{default:L(()=>[V(ie,{modelValue:d.public_url,"onUpdate:modelValue":T[7]||=e=>d.public_url=e,placeholder:`https://CORE_ORIGIN/extensions/PLUGIN_ID/`},null,8,[`modelValue`])]),_:1})),b.value?(Ei(),ji(M,{key:1,theme:`info`,message:`订阅模块的菜单固定进入 Plugin Admin 统一 Shell;这里只需配置服务地址用于健康检查。`,class:`inline-alert`})):(Ei(),ji(M,{key:2,theme:`info`,message:`敏感配置只在服务端加密保存,页面不会回显原值。`,class:`inline-alert`})),V(F,{theme:`primary`,type:`submit`,loading:s.value===`config`},{icon:L(()=>[V(Ht(vle))]),default:L(()=>[T[26]||=zi(`保存配置`,-1)]),_:1},8,[`loading`])]),_:1},8,[`data`])]),_:1})])):l.value===`menu`?(Ei(),Ai(`section`,XMe,[B(`div`,ZMe,[T[30]||=B(`div`,null,[B(`h2`,null,`菜单接入`),B(`p`,{class:`secondary-text`},`先预览菜单变更,再应用到 Core 管理员导航。`)],-1),B(`div`,QMe,[V(F,{variant:`outline`,loading:s.value===`menu-preview`,onClick:k},{icon:L(()=>[V(Ht(Mle))]),default:L(()=>[T[28]||=zi(`预览菜单`,-1)]),_:1},8,[`loading`]),V(F,{theme:`primary`,loading:s.value===`menu-apply`,onClick:T[8]||=e=>E(`menu-apply`)},{icon:L(()=>[V(Ht(ig))]),default:L(()=>[T[29]||=zi(`应用菜单`,-1)]),_:1},8,[`loading`])])]),V(te,{class:`panel-card`,bordered:!0},{default:L(()=>[B(`dl`,$Me,[B(`div`,null,[T[31]||=B(`dt`,null,`菜单标识`,-1),B(`dd`,eNe,ve(r.value.menu?.id||`-`),1)]),B(`div`,null,[T[32]||=B(`dt`,null,`菜单名称`,-1),B(`dd`,null,ve(r.value.menu?.label||`-`),1)]),B(`div`,null,[T[33]||=B(`dt`,null,`可见性`,-1),B(`dd`,null,ve(r.value.menu?.visibility||`admin`),1)]),B(`div`,null,[T[34]||=B(`dt`,null,`排序`,-1),B(`dd`,null,ve(r.value.menu?.sort_order??`-`),1)])]),V(M,{theme:`info`,message:`应用菜单只会更新 Core 的 custom_menu_items,不会修改 Core 源码。`,class:`inline-alert`})]),_:1})])):(Ei(),Ai(`section`,tNe,[B(`div`,nNe,[T[36]||=B(`div`,null,[B(`h2`,null,`操作历史`),B(`p`,{class:`secondary-text`},`只显示当前插件的生命周期和菜单操作。`)],-1),V(F,{variant:`outline`,onClick:w},{icon:L(()=>[V(Ht(ev))]),default:L(()=>[T[35]||=zi(`刷新`,-1)]),_:1})]),V(te,{class:`table-card`,bordered:!0},{default:L(()=>[V(ne,{data:i.value,columns:_,"row-key":`operation_id`,hover:!0},{action:L(({row:e})=>[zi(ve(Ht(X9)(e.action)),1)]),result:L(({row:e})=>[V(j,{theme:Ht(UV)(e.result),variant:`light`},{default:L(()=>[zi(ve(S(e.result)),1)]),_:2},1032,[`theme`])]),time:L(({row:e})=>[B(`span`,rNe,ve(Ht(BV)(e.time)),1)]),_:1},8,[`data`]),i.value.length?Bi(``,!0):(Ei(),ji(re,{key:0,description:`还没有操作记录`}))]),_:1})]))],64)):(Ei(),ji(te,{key:3,class:`empty-card`,bordered:!0},{default:L(()=>[V(re,{description:`插件不存在或已卸载`})]),_:1})),V(se,{visible:p.value,"onUpdate:visible":T[9]||=e=>p.value=e,header:`菜单变更预览`,width:`min(880px, calc(100vw - 32px))`,footer:!1},{default:L(()=>[B(`div`,iNe,[B(`div`,null,[T[37]||=B(`h3`,null,`当前菜单`,-1),B(`pre`,null,ve(JSON.stringify(m.value,null,2)),1)]),B(`div`,null,[T[38]||=B(`h3`,null,`应用后菜单`,-1),B(`pre`,null,ve(JSON.stringify(h.value,null,2)),1)])])]),_:1},8,[`visible`])])}}}),oNe={class:`page-view`},sNe={key:1,class:`market-grid`},cNe={class:`market-heading`},lNe={class:`market-icon`},uNe={class:`market-title`},dNe={class:`secondary-text mono`},fNe={class:`market-description`},pNe={class:`description-grid market-meta`},mNe={class:`market-hash`},hNe=z({__name:`Marketplace`,setup(e){let t=Hz(),n=I([]),r=I(!1),i=I(``),a=I(``);function o(e){return e.installed?String(e.installed_version).replace(/^v/,``)===String(e.version).replace(/^v/,``)?{label:`已入库`,theme:`success`}:{label:`已有版本`,theme:`warning`}:{label:`可入库`,theme:`primary`}}function s(e){let t=Number(e);return!Number.isFinite(t)||t<=0?`-`:t>1024*1024?`${(t/1024/1024).toFixed(1)} MB`:`${Math.ceil(t/1024)} KB`}async function c(){r.value=!0,i.value=``;try{let[e,t]=await Promise.all([jV(`/api/marketplace`),jV(`/api/plugins`)]),r=new Map(zV(t).map(e=>[e.plugin_id,e]));n.value=zV(e).map(e=>({...e,installed:e.installed||r.has(e.plugin_id),installed_version:e.installed_version||r.get(e.plugin_id)?.version}))}catch(e){i.value=e instanceof Error?e.message:`市场加载失败`}finally{r.value=!1}}async function l(e){a.value=e.plugin_id;try{let t=await jV(`/api/marketplace/install`,{method:`POST`,headers:{"Idempotency-Key":WV(`marketplace-install`,`${e.plugin_id}-${e.version}`)},body:JSON.stringify({plugin_id:e.plugin_id,version:e.version})});eb.success(`插件已入库,待手动启用:${t.operation_id||t.state}`),await c()}catch(e){i.value=e instanceof Error?e.message:`插件入库失败`}finally{a.value=``}}return mr(c),(e,u)=>{let d=br(`t-button`),f=br(`t-alert`),p=br(`t-tag`),m=br(`t-card`),h=br(`t-empty`);return Ei(),Ai(`div`,oNe,[V(MH,{eyebrow:`MARKETPLACE`,title:`插件市场`,subtitle:`从受控目录查看可用版本,下载后先入库,再由管理员手动启用。`},{actions:L(()=>[V(d,{variant:`outline`,loading:r.value,onClick:c},{icon:L(()=>[V(Ht(ev))]),default:L(()=>[u[0]||=zi(`刷新市场`,-1)]),_:1},8,[`loading`])]),_:1}),V(f,{theme:`info`,class:`page-alert`,message:`归档地址只在控制面服务端访问,浏览器不会接触下载 URL。`}),i.value?(Ei(),ji(f,{key:0,theme:`error`,class:`page-alert`,message:i.value},null,8,[`message`])):Bi(``,!0),n.value.length?(Ei(),Ai(`section`,sNe,[(Ei(!0),Ai(bi,null,Tr(n.value,e=>(Ei(),ji(m,{key:`${e.plugin_id}-${e.version}`,class:`market-card`,bordered:!0},{header:L(()=>[B(`div`,cNe,[B(`div`,lNe,[V(Ht(jg),{size:`20px`})]),B(`div`,uNe,[B(`h2`,null,ve(e.name||e.plugin_id),1),B(`span`,dNe,ve(e.plugin_id)+` · v`+ve(e.version||`-`),1)]),V(p,{theme:o(e).theme,variant:`light`},{default:L(()=>[zi(ve(o(e).label),1)]),_:2},1032,[`theme`])])]),footer:L(()=>[e.installed?(Ei(),ji(d,{key:1,variant:`outline`,block:``,onClick:n=>Ht(t).push(`/plugins/${encodeURIComponent(e.plugin_id)}/revisions`)},{default:L(()=>[...u[7]||=[zi(`查看已安装版本`,-1)]]),_:1},8,[`onClick`])):(Ei(),ji(d,{key:0,theme:`primary`,block:``,loading:a.value===e.plugin_id,onClick:t=>l(e)},{icon:L(()=>[V(Ht(jg))]),default:L(()=>[u[6]||=zi(`下载并入库`,-1)]),_:1},8,[`loading`,`onClick`]))]),default:L(()=>[B(`p`,fNe,ve(e.description||`由受控插件目录提供的 Business Plugin`),1),B(`dl`,pNe,[B(`div`,null,[u[1]||=B(`dt`,null,`发布者`,-1),B(`dd`,null,ve(e.publisher||e.publisher_key_id||`-`),1)]),B(`div`,null,[u[2]||=B(`dt`,null,`兼容性`,-1),B(`dd`,null,ve(e.compatibility?.status||`unknown`),1)]),B(`div`,null,[u[3]||=B(`dt`,null,`发布时间`,-1),B(`dd`,null,ve(Ht(BV)(e.published_at)),1)]),B(`div`,null,[u[4]||=B(`dt`,null,`包大小`,-1),B(`dd`,null,ve(s(e.archive_size)),1)])]),B(`div`,mNe,[u[5]||=B(`span`,null,`SHA-256`,-1),B(`code`,null,ve(e.archive_sha256||`-`),1)])]),_:2},1024))),128))])):(Ei(),ji(m,{key:2,class:`empty-card`,bordered:!0},{default:L(()=>[V(h,{description:`暂无可用插件`})]),_:1}))])}}}),gNe={class:`page-view`},_Ne={class:`filter-grid`},vNe={class:`table-action`},yNe={class:`mono wrap-anywhere`},bNe={class:`secondary-text mono wrap-anywhere`},xNe={class:`secondary-text`},SNe={key:0,class:`description-grid drawer-description`},CNe={class:`mono wrap-anywhere`},wNe={class:`mono wrap-anywhere`},TNe={class:`mono wrap-anywhere`},ENe=z({__name:`Operations`,setup(e){Hz();let t=I([]),n=I([]),r=I(!1),i=I(``),a=I({plugin:``,action:``}),o=I(!1),s=I(null),c=[{colKey:`action`,title:`操作`,width:170},{colKey:`plugin_id`,title:`插件`,minWidth:220},{colKey:`result`,title:`结果`,width:100},{colKey:`request_id`,title:`请求 ID`,minWidth:220},{colKey:`time`,title:`时间`,width:180},{colKey:`operation_id`,title:``,width:100,fixed:`right`}],l=e=>HV(e)?`已完成`:String(e||`未知`),u=U(()=>[...new Set(n.value.map(e=>e.action).filter(Boolean))].sort()),d=U(()=>n.value.filter(e=>(!a.value.plugin||e.plugin_id===a.value.plugin)&&(!a.value.action||e.action===a.value.action)).sort((e,t)=>new Date(String(t.time)).getTime()-new Date(String(e.time)).getTime()));function f(){a.value={plugin:``,action:``}}async function p(){r.value=!0,i.value=``;try{let[e,r]=await Promise.all([jV(`/api/audit`),jV(`/api/plugins`)]);n.value=zV(e),t.value=zV(r)}catch(e){i.value=e instanceof Error?e.message:`操作记录加载失败`}finally{r.value=!1}}async function m(e){o.value=!0,s.value=await jV(`/api/operations/${encodeURIComponent(e)}`).catch(()=>null)}return mr(p),(e,n)=>{let h=br(`t-button`),g=br(`t-option`),_=br(`t-select`),v=br(`t-card`),y=br(`t-alert`),b=br(`t-tag`),x=br(`t-link`),S=br(`t-table`),C=br(`t-empty`),w=br(`t-drawer`);return Ei(),Ai(`div`,gNe,[V(MH,{eyebrow:`OPERATIONS`,title:`操作记录`,subtitle:`按插件和操作类型筛选控制面审计结果。`},{actions:L(()=>[V(h,{variant:`outline`,loading:r.value,onClick:p},{icon:L(()=>[V(Ht(ev))]),default:L(()=>[n[3]||=zi(`刷新`,-1)]),_:1},8,[`loading`])]),_:1}),V(v,{class:`filter-card`,bordered:!0},{default:L(()=>[B(`div`,_Ne,[V(_,{modelValue:a.value.plugin,"onUpdate:modelValue":n[0]||=e=>a.value.plugin=e,label:`插件`,placeholder:`全部插件`,clearable:``},{default:L(()=>[V(g,{value:``,label:`全部插件`}),n[4]||=zi(),(Ei(!0),Ai(bi,null,Tr(t.value,e=>(Ei(),ji(g,{key:e.plugin_id,value:e.plugin_id,label:e.name||e.plugin_id},null,8,[`value`,`label`]))),128))]),_:1},8,[`modelValue`]),V(_,{modelValue:a.value.action,"onUpdate:modelValue":n[1]||=e=>a.value.action=e,label:`操作类型`,placeholder:`全部操作`,clearable:``},{default:L(()=>[V(g,{value:``,label:`全部操作`}),(Ei(!0),Ai(bi,null,Tr(u.value,e=>(Ei(),ji(g,{key:e,value:e,label:Ht(X9)(e)},null,8,[`value`,`label`]))),128))]),_:1},8,[`modelValue`]),V(h,{variant:`text`,onClick:f},{default:L(()=>[...n[5]||=[zi(`清除筛选`,-1)]]),_:1})])]),_:1}),i.value?(Ei(),ji(y,{key:0,theme:`error`,message:i.value,class:`page-alert`},null,8,[`message`])):Bi(``,!0),V(v,{class:`table-card`,bordered:!0},{default:L(()=>[V(S,{data:d.value,columns:c,"row-key":`operation_id`,loading:r.value,hover:!0},{action:L(({row:e})=>[B(`span`,vNe,[(Ei(),ji(Sr(Ht(Z9)(e.action)),{size:`15px`})),zi(ve(Ht(X9)(e.action)),1)])]),plugin_id:L(({row:e})=>[B(`span`,yNe,ve(e.plugin_id||`-`),1)]),result:L(({row:e})=>[V(b,{theme:Ht(UV)(e.result),variant:`light`},{default:L(()=>[zi(ve(l(e.result)),1)]),_:2},1032,[`theme`])]),request_id:L(({row:e})=>[B(`span`,bNe,ve(e.request_id||`-`),1)]),time:L(({row:e})=>[B(`span`,xNe,ve(Ht(BV)(e.time)),1)]),operation_id:L(({row:e})=>[e.operation_id?(Ei(),ji(x,{key:0,theme:`primary`,onClick:t=>m(e.operation_id)},{default:L(()=>[...n[6]||=[zi(`查看详情`,-1)]]),_:1},8,[`onClick`])):Bi(``,!0)]),_:1},8,[`data`,`loading`]),d.value.length?Bi(``,!0):(Ei(),ji(C,{key:0,description:`还没有操作记录`}))]),_:1}),V(w,{visible:o.value,"onUpdate:visible":n[2]||=e=>o.value=e,header:`操作详情`,size:`min(520px, 100vw)`},{default:L(()=>[s.value?(Ei(),Ai(`dl`,SNe,[B(`div`,null,[n[7]||=B(`dt`,null,`操作 ID`,-1),B(`dd`,CNe,ve(s.value.id),1)]),B(`div`,null,[n[8]||=B(`dt`,null,`操作类型`,-1),B(`dd`,null,ve(Ht(X9)(s.value.kind)),1)]),B(`div`,null,[n[9]||=B(`dt`,null,`插件`,-1),B(`dd`,wNe,ve(s.value.plugin_id||`-`),1)]),B(`div`,null,[n[10]||=B(`dt`,null,`状态`,-1),B(`dd`,null,ve(s.value.state||`-`),1)]),B(`div`,null,[n[11]||=B(`dt`,null,`请求 ID`,-1),B(`dd`,TNe,ve(s.value.request_id||`-`),1)]),B(`div`,null,[n[12]||=B(`dt`,null,`更新时间`,-1),B(`dd`,null,ve(Ht(BV)(s.value.updated_at)),1)])])):Bi(``,!0),s.value?.error?(Ei(),ji(y,{key:1,theme:`error`,message:s.value.error},null,8,[`message`])):Bi(``,!0),s.value?.warning?(Ei(),ji(y,{key:2,theme:`warning`,message:s.value.warning},null,8,[`message`])):Bi(``,!0)]),_:1},8,[`visible`])])}}}),DNe={class:`page-view`},ONe={key:1,class:`detail-content`},kNe={class:`stat-grid module-stats`},ANe={class:`stat-card-top`},jNe={class:`stat-card-top`},MNe={class:`stat-card-top`},NNe={class:`stat-card-top`},PNe={class:`module-flow`},FNe={key:2,class:`detail-content`},INe={class:`section-toolbar`},LNe={class:`secondary-text`},RNe={class:`numeric`},zNe={key:3,class:`detail-content`},BNe={class:`section-toolbar`},VNe={class:`filter-grid subscription-filter`},HNe={class:`secondary-text`},UNe={class:`secondary-text`},WNe={class:`pagination-row`},GNe={key:4,class:`detail-content`},KNe={class:`section-toolbar`},qNe={class:`secondary-text`},JNe=z({__name:`Subscription`,setup(e){let t=Uz(),n=Hz(),r=I(String(t.params.tab||`overview`)),i=I(!1),a=I(``),o=I(null),s=I([]),c=I([]),l=I([]),u=Dt({current:1,pageSize:20,total:0}),d=Dt({user_id:``,group_id:``,status:``}),f=[{colKey:`name`,title:`套餐`,minWidth:260},{colKey:`price`,title:`价格`,width:150},{colKey:`status`,title:`状态`,width:120}],p=[{colKey:`user`,title:`用户`,minWidth:220},{colKey:`plan`,title:`套餐/分组`,minWidth:200},{colKey:`status`,title:`状态`,width:120},{colKey:`period`,title:`有效期`,minWidth:270}],m=[{colKey:`action`,title:`操作`,minWidth:240},{colKey:`result`,title:`结果`,width:110},{colKey:`request`,title:`请求 ID`,minWidth:220},{colKey:`time`,title:`时间`,width:180}],h=e=>HV(e)?`已完成`:String(e||`未知`),g=U(()=>u.total||c.value.length);function _(e){let t=Number(e);return Number.isFinite(t)?`¥${t.toFixed(2)}`:`-`}function v(e){return e===`active`||e===`enabled`?`success`:e===`revoked`?`danger`:`warning`}function y(e){return{active:`有效`,enabled:`有效`,expired:`已过期`,revoked:`已撤销`}[String(e)]||String(e||`未知`)}function b(e){r.value=String(e),n.replace(`/modules/subscription/${String(e)}`),O()}function x(e){let t=RV(e)||{},n=zV(e);return{rows:n,total:Number(t.total??t.pagination?.total??n.length)||n.length}}async function S(){o.value=await jV(`/api/subscription/status`).then(RV).catch(()=>null)}async function C(){i.value=!0,a.value=``;try{s.value=zV(await jV(`/api/subscription/plans`))}catch(e){a.value=e instanceof Error?e.message:`套餐加载失败`}finally{i.value=!1}}async function w(){i.value=!0,a.value=``;try{let e=new URLSearchParams({page:String(u.current),page_size:String(u.pageSize)});Object.entries(d).forEach(([t,n])=>{n&&e.set(t,n)});let t=x(await jV(`/api/subscription/subscriptions?${e.toString()}`));c.value=t.rows,u.total=t.total}catch(e){a.value=e instanceof Error?e.message:`订阅加载失败`}finally{i.value=!1}}async function T(){i.value=!0,a.value=``;try{l.value=zV(await jV(`/api/subscription/audit`))}catch(e){a.value=e instanceof Error?e.message:`审计加载失败`}finally{i.value=!1}}function E(){u.current=1,w()}function D(e){u.current=Number(e?.current||e?.page||e||1),u.pageSize=Number(e?.pageSize||u.pageSize),w()}function O(){r.value===`plans`?C():r.value===`subscriptions`?w():r.value===`audit`?T():S()}return R(()=>t.params.tab,async e=>{r.value=String(e||`overview`),await PV()&&O()}),mr(async()=>{if(!await PV()){await n.replace(`/overview`);return}await S(),O()}),(e,t)=>{let n=br(`t-tag`),x=br(`t-alert`),S=br(`t-tab-panel`),O=br(`t-tabs`),k=br(`t-card`),A=br(`t-button`),j=br(`t-table`),M=br(`t-empty`),ee=br(`t-input`),N=br(`t-option`),P=br(`t-select`),F=br(`t-pagination`);return Ei(),Ai(`div`,DNe,[V(MH,{eyebrow:`BUSINESS MODULE · SUBSCRIPTION`,title:`订阅管理`,subtitle:`订阅是插件控制面中的业务模块,沿用当前管理员会话,不需要再次登录。`},{actions:L(()=>[V(n,{theme:`success`,variant:`light`},{default:L(()=>[V(Ht(tg),{size:`14px`}),t[6]||=zi(` 共享控制面会话`,-1)]),_:1})]),_:1}),a.value?(Ei(),ji(x,{key:0,theme:`warning`,message:a.value,class:`page-alert`},null,8,[`message`])):Bi(``,!0),V(O,{modelValue:r.value,"onUpdate:modelValue":t[0]||=e=>r.value=e,class:`detail-tabs`,onChange:b},{default:L(()=>[V(S,{value:`overview`,label:`概览`}),V(S,{value:`plans`,label:`套餐`}),V(S,{value:`subscriptions`,label:`用户订阅`}),V(S,{value:`audit`,label:`操作记录`})]),_:1},8,[`modelValue`]),r.value===`overview`?(Ei(),Ai(`section`,ONe,[B(`div`,kNe,[V(k,{class:`stat-card stat-neutral`,bordered:!0},{default:L(()=>[B(`div`,ANe,[t[7]||=B(`span`,null,`Core 连接`,-1),V(Ht(Gce),{size:`18px`})]),B(`strong`,null,ve(o.value?.core_base_configured?`正常`:`未配置`),1),t[8]||=B(`small`,null,`服务端 allowlist`,-1)]),_:1}),V(k,{class:`stat-card stat-primary`,bordered:!0},{default:L(()=>[B(`div`,jNe,[t[9]||=B(`span`,null,`套餐数量`,-1),V(Ht(Gse),{size:`18px`})]),B(`strong`,null,ve(s.value.length),1),t[10]||=B(`small`,null,`来自 Core 套餐目录`,-1)]),_:1}),V(k,{class:`stat-card stat-success`,bordered:!0},{default:L(()=>[B(`div`,MNe,[t[11]||=B(`span`,null,`订阅记录`,-1),V(Ht(Yh),{size:`18px`})]),B(`strong`,null,ve(g.value),1),t[12]||=B(`small`,null,`当前筛选范围`,-1)]),_:1}),V(k,{class:`stat-card stat-warning`,bordered:!0},{default:L(()=>[B(`div`,NNe,[t[13]||=B(`span`,null,`会话模式`,-1),V(Ht(F_),{size:`18px`})]),t[14]||=B(`strong`,null,`共享`,-1),t[15]||=B(`small`,null,`不创建模块 Cookie`,-1)]),_:1})]),V(k,{class:`panel-card module-note`,title:`模块边界`,bordered:!0},{default:L(()=>[V(x,{theme:`info`,message:`浏览器只请求 Plugin Admin 的同源 BFF。Core access token、refresh token 和服务密钥始终保存在服务端会话。`}),B(`div`,PNe,[t[16]||=B(`span`,null,`统一登录`,-1),V(Ht(yg)),t[17]||=B(`span`,null,`订阅模块`,-1),V(Ht(yg)),t[18]||=B(`span`,null,`Core 只读接口`,-1)])]),_:1})])):r.value===`plans`?(Ei(),Ai(`section`,FNe,[B(`div`,INe,[t[20]||=B(`div`,null,[B(`h2`,null,`套餐目录`),B(`p`,{class:`secondary-text`},`套餐数据由 Core 返回,订阅模块只负责展示和查询。`)],-1),V(A,{variant:`outline`,loading:i.value,onClick:C},{icon:L(()=>[V(Ht(ev))]),default:L(()=>[t[19]||=zi(`刷新`,-1)]),_:1},8,[`loading`])]),V(k,{class:`table-card`,bordered:!0},{default:L(()=>[V(j,{data:s.value,columns:f,"row-key":`id`,loading:i.value,hover:!0},{name:L(({row:e})=>[B(`div`,null,[B(`strong`,null,ve(e.name||e.title||`套餐 ${e.id||`-`}`),1),B(`span`,LNe,ve(e.description||`Core 套餐`),1)])]),price:L(({row:e})=>[B(`span`,RNe,ve(_(e.price??e.amount)),1)]),status:L(({row:e})=>[V(n,{theme:e.enabled===!1?`default`:`success`,variant:`light`},{default:L(()=>[zi(ve(e.enabled===!1?`已停用`:`可用`),1)]),_:2},1032,[`theme`])]),_:1},8,[`data`,`loading`]),s.value.length?Bi(``,!0):(Ei(),ji(M,{key:0,description:`暂无套餐数据`}))]),_:1})])):r.value===`subscriptions`?(Ei(),Ai(`section`,zNe,[B(`div`,BNe,[t[22]||=B(`div`,null,[B(`h2`,null,`用户订阅`),B(`p`,{class:`secondary-text`},`服务端分页和筛选参数沿用订阅模块 API。`)],-1),V(A,{variant:`outline`,loading:i.value,onClick:w},{icon:L(()=>[V(Ht(ev))]),default:L(()=>[t[21]||=zi(`刷新`,-1)]),_:1},8,[`loading`])]),V(k,{class:`filter-card`,bordered:!0},{default:L(()=>[B(`div`,VNe,[V(ee,{modelValue:d.user_id,"onUpdate:modelValue":t[1]||=e=>d.user_id=e,label:`用户 ID`,placeholder:`输入用户 ID`,clearable:``},null,8,[`modelValue`]),V(ee,{modelValue:d.group_id,"onUpdate:modelValue":t[2]||=e=>d.group_id=e,label:`分组 ID`,placeholder:`输入分组 ID`,clearable:``},null,8,[`modelValue`]),V(P,{modelValue:d.status,"onUpdate:modelValue":t[3]||=e=>d.status=e,label:`状态`,placeholder:`全部状态`,clearable:``},{default:L(()=>[V(N,{value:`active`,label:`有效`}),V(N,{value:`expired`,label:`已过期`}),V(N,{value:`revoked`,label:`已撤销`})]),_:1},8,[`modelValue`]),V(A,{theme:`primary`,onClick:E},{icon:L(()=>[V(Ht(mv))]),default:L(()=>[t[23]||=zi(`查询`,-1)]),_:1})])]),_:1}),V(k,{class:`table-card`,bordered:!0},{default:L(()=>[V(j,{data:c.value,columns:p,"row-key":`id`,loading:i.value,hover:!0},{user:L(({row:e})=>[B(`div`,null,[B(`strong`,null,ve(e.user?.username||e.user?.email||e.user_id||`-`),1),B(`span`,HNe,`用户 ID `+ve(e.user_id||`-`),1)])]),plan:L(({row:e})=>[zi(ve(e.plan?.name||e.plan_name||e.group?.name||e.group_id||`-`),1)]),status:L(({row:e})=>[V(n,{theme:v(e.status),variant:`light`},{default:L(()=>[zi(ve(y(e.status)),1)]),_:2},1032,[`theme`])]),period:L(({row:e})=>[B(`span`,UNe,ve(Ht(BV)(e.start_at||e.started_at))+` 至 `+ve(Ht(BV)(e.expire_at||e.expires_at)),1)]),_:1},8,[`data`,`loading`]),c.value.length?Bi(``,!0):(Ei(),ji(M,{key:0,description:`暂无订阅记录`})),B(`div`,WNe,[V(F,{modelValue:u.current,"onUpdate:modelValue":t[4]||=e=>u.current=e,"page-size":u.pageSize,"onUpdate:pageSize":t[5]||=e=>u.pageSize=e,total:u.total,"show-jumper":!0,onChange:D},null,8,[`modelValue`,`page-size`,`total`])])]),_:1})])):(Ei(),Ai(`section`,GNe,[B(`div`,KNe,[t[25]||=B(`div`,null,[B(`h2`,null,`模块操作记录`),B(`p`,{class:`secondary-text`},`只记录通过统一控制面发起的订阅查询。`)],-1),V(A,{variant:`outline`,loading:i.value,onClick:T},{icon:L(()=>[V(Ht(ev))]),default:L(()=>[t[24]||=zi(`刷新`,-1)]),_:1},8,[`loading`])]),V(k,{class:`table-card`,bordered:!0},{default:L(()=>[V(j,{data:l.value,columns:m,"row-key":`request`},{action:L(({row:e})=>[zi(ve(e.action||`-`),1)]),result:L(({row:e})=>[V(n,{theme:Ht(UV)(e.result),variant:`light`},{default:L(()=>[zi(ve(h(e.result)),1)]),_:2},1032,[`theme`])]),time:L(({row:e})=>[B(`span`,qNe,ve(Ht(BV)(e.time)),1)]),_:1},8,[`data`]),l.value.length?Bi(``,!0):(Ei(),ji(M,{key:0,description:`还没有模块操作记录`}))]),_:1})]))])}}}),Q9=EV({history:JB(),routes:[{path:`/login`,component:DH,meta:{public:!0}},{path:`/`,component:QV,children:[{path:``,redirect:`/overview`},{path:`overview`,component:yMe,meta:{title:`概览`}},{path:`plugins`,component:AMe,meta:{title:`已安装插件`}},{path:`plugins/:id/:tab?`,component:aNe,meta:{title:`插件详情`}},{path:`marketplace`,component:hNe,meta:{title:`插件市场`}},{path:`operations`,component:ENe,meta:{title:`操作记录`}},{path:`modules/subscription/:tab?`,component:JNe,meta:{title:`订阅管理`}}]},{path:`/:pathMatch(.*)*`,redirect:`/overview`}]});Q9.beforeEach(async e=>DV.ready?!DV.user&&!e.meta.public?`/login`:DV.user&&e.path===`/login`||DV.user&&e.path.startsWith(`/modules/subscription`)&&!await PV()?`/overview`:!0:!0);var YNe={key:0,class:`boot-screen`},$9=Mte(z({__name:`App`,setup(e){return mr(async()=>{await MV();let e=Q9.currentRoute.value;!DV.user&&e.path!==`/login`?await Q9.replace(`/login`):DV.user&&e.path.startsWith(`/modules/subscription`)&&(await PV(!0)||await Q9.replace(`/overview`))}),(e,t)=>{let n=br(`t-loading`),r=br(`router-view`),i=br(`t-config-provider`);return Ei(),ji(i,null,{default:L(()=>[Ht(DV).ready?Ht(DV).user?(Ei(),ji(r,{key:1})):(Ei(),ji(DH,{key:2})):(Ei(),Ai(`div`,YNe,[V(n,{size:`32px`,text:`正在连接控制面`})]))]),_:1})}}}));$9.use(Tz),$9.use(Wte()),$9.use(Q9),$9.mount(`#app`);