156 lines
2.3 MiB
156 lines
2.3 MiB
var Ete=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var adt=Ete((To,ko)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();/**
|
||
* @vue/shared v3.5.26
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function gd(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Rn={},Vv=[],cn=()=>{},I$=()=>!1,pm=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),QT=e=>e.startsWith("onUpdate:"),qn=Object.assign,e5=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ite=Object.prototype.hasOwnProperty,nn=(e,t)=>Ite.call(e,t),Ce=Array.isArray,$v=e=>Wh(e)==="[object Map]",md=e=>Wh(e)==="[object Set]",ec=e=>Wh(e)==="[object Date]",Lte=e=>Wh(e)==="[object RegExp]",Je=e=>typeof e=="function",Ge=e=>typeof e=="string",Ei=e=>typeof e=="symbol",St=e=>e!==null&&typeof e=="object",tc=e=>(St(e)||Je(e))&&Je(e.then)&&Je(e.catch),L$=Object.prototype.toString,Wh=e=>L$.call(e),Dte=e=>Wh(e).slice(8,-1),Zf=e=>Wh(e)==="[object Object]",nw=e=>Ge(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,zv=gd(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),rw=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Pte=/-\w/g,Or=rw(e=>e.replace(Pte,t=>t.slice(1).toUpperCase())),Rte=/\B([A-Z])/g,Sa=rw(e=>e.replace(Rte,"-$1").toLowerCase()),Gh=rw(e=>e.charAt(0).toUpperCase()+e.slice(1)),Fv=rw(e=>e?`on${Gh(e)}`:""),za=(e,t)=>!Object.is(e,t),Hv=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},D$=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},aw=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ib=e=>{const t=Ge(e)?Number(e):NaN;return isNaN(t)?e:t};let YE;const gm=()=>YE||(YE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Ote="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",Nte=gd(Ote);function et(e){if(Ce(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],a=Ge(r)?zte(r):et(r);if(a)for(const o in a)t[o]=a[o]}return t}else if(Ge(e)||St(e))return e}const Bte=/;(?![^(]*\))/g,Vte=/:([^]+)/,$te=/\/\*[^]*?\*\//g;function zte(e){const t={};return e.replace($te,"").split(Bte).forEach(n=>{if(n){const r=n.split(Vte);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Fte(e){if(!e)return"";if(Ge(e))return e;let t="";for(const n in e){const r=e[n];if(Ge(r)||typeof r=="number"){const a=n.startsWith("--")?n:Sa(n);t+=`${a}:${r};`}}return t}function W(e){let t="";if(Ge(e))t=e;else if(Ce(e))for(let n=0;n<e.length;n++){const r=W(e[n]);r&&(t+=r+" ")}else if(St(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Cs(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ge(t)&&(e.class=W(t)),n&&(e.style=et(n)),e}const P$="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Hte=gd(P$),qE=gd(P$+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function t5(e){return!!e||e===""}const Wte=gd("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),Gte=gd("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function Ute(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const Kte=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function jte(e,t){return e.replace(Kte,n=>t?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function Yte(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=nc(e[r],t[r]);return n}function nc(e,t){if(e===t)return!0;let n=ec(e),r=ec(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Ei(e),r=Ei(t),n||r)return e===t;if(n=Ce(e),r=Ce(t),n||r)return n&&r?Yte(e,t):!1;if(n=St(e),r=St(t),n||r){if(!n||!r)return!1;const a=Object.keys(e).length,o=Object.keys(t).length;if(a!==o)return!1;for(const i in e){const s=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(s&&!l||!s&&l||!nc(e[i],t[i]))return!1}}return String(e)===String(t)}function ow(e,t){return e.findIndex(n=>nc(n,t))}const R$=e=>!!(e&&e.__v_isRef===!0),Ae=e=>Ge(e)?e:e==null?"":Ce(e)||St(e)&&(e.toString===L$||!Je(e.toString))?R$(e)?Ae(e.value):JSON.stringify(e,O$,2):String(e),O$=(e,t)=>R$(t)?O$(e,t.value):$v(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,a],o)=>(n[U4(r,o)+" =>"]=a,n),{})}:md(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>U4(n))}:Ei(t)?U4(t):St(t)&&!Ce(t)&&!Zf(t)?String(t):t,U4=(e,t="")=>{var n;return Ei(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function N$(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}/**
|
||
* @vue/reactivity v3.5.26
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let ma;class n5{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ma,!t&&ma&&(this.index=(ma.scopes||(ma.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=ma;try{return ma=this,t()}finally{ma=n}}}on(){++this._on===1&&(this.prevScope=ma,ma=this)}off(){this._on>0&&--this._on===0&&(ma=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0}}}function B$(e){return new n5(e)}function r5(){return ma}function a5(e,t=!1){ma&&ma.cleanups.push(e)}let ar;const K4=new WeakSet;class ag{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ma&&ma.active&&ma.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,K4.has(this)&&(K4.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||$$(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,XE(this),z$(this);const t=ar,n=wi;ar=this,wi=!0;try{return this.fn()}finally{F$(this),ar=t,wi=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)s5(t);this.deps=this.depsTail=void 0,XE(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?K4.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){v8(this)&&this.run()}get dirty(){return v8(this)}}let V$=0,L0,D0;function $$(e,t=!1){if(e.flags|=8,t){e.next=D0,D0=e;return}e.next=L0,L0=e}function o5(){V$++}function i5(){if(--V$>0)return;if(D0){let t=D0;for(D0=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;L0;){let t=L0;for(L0=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function z$(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function F$(e){let t,n=e.depsTail,r=n;for(;r;){const a=r.prevDep;r.version===-1?(r===n&&(n=a),s5(r),qte(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=a}e.deps=t,e.depsTail=n}function v8(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(H$(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function H$(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===og)||(e.globalVersion=og,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!v8(e))))return;e.flags|=2;const t=e.dep,n=ar,r=wi;ar=e,wi=!0;try{z$(e);const a=e.fn(e._value);(t.version===0||za(a,e._value))&&(e.flags|=128,e._value=a,t.version++)}catch(a){throw t.version++,a}finally{ar=n,wi=r,F$(e),e.flags&=-3}}function s5(e,t=!1){const{dep:n,prevSub:r,nextSub:a}=e;if(r&&(r.nextSub=a,e.prevSub=void 0),a&&(a.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)s5(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function qte(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function Xte(e,t){e.effect instanceof ag&&(e=e.effect.fn);const n=new ag(e);t&&qn(n,t);try{n.run()}catch(a){throw n.stop(),a}const r=n.run.bind(n);return r.effect=n,r}function Zte(e){e.effect.stop()}let wi=!0;const W$=[];function Bs(){W$.push(wi),wi=!1}function Vs(){const e=W$.pop();wi=e===void 0?!0:e}function XE(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ar;ar=void 0;try{t()}finally{ar=n}}}let og=0,Jte=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class iw{constructor(t){this.computed=t,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(t){if(!ar||!wi||ar===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ar)n=this.activeLink=new Jte(ar,this),ar.deps?(n.prevDep=ar.depsTail,ar.depsTail.nextDep=n,ar.depsTail=n):ar.deps=ar.depsTail=n,G$(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=ar.depsTail,n.nextDep=void 0,ar.depsTail.nextDep=n,ar.depsTail=n,ar.deps===n&&(ar.deps=r)}return n}trigger(t){this.version++,og++,this.notify(t)}notify(t){o5();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{i5()}}}function G$(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)G$(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const sb=new WeakMap,Rf=Symbol(""),h8=Symbol(""),ig=Symbol("");function _a(e,t,n){if(wi&&ar){let r=sb.get(e);r||sb.set(e,r=new Map);let a=r.get(n);a||(r.set(n,a=new iw),a.map=r,a.key=n),a.track()}}function _l(e,t,n,r,a,o){const i=sb.get(e);if(!i){og++;return}const s=l=>{l&&l.trigger()};if(o5(),t==="clear")i.forEach(s);else{const l=Ce(e),u=l&&nw(n);if(l&&n==="length"){const c=Number(r);i.forEach((f,d)=>{(d==="length"||d===ig||!Ei(d)&&d>=c)&&s(f)})}else switch((n!==void 0||i.has(void 0))&&s(i.get(n)),u&&s(i.get(ig)),t){case"add":l?u&&s(i.get("length")):(s(i.get(Rf)),$v(e)&&s(i.get(h8)));break;case"delete":l||(s(i.get(Rf)),$v(e)&&s(i.get(h8)));break;case"set":$v(e)&&s(i.get(Rf));break}}i5()}function Qte(e,t){const n=sb.get(e);return n&&n.get(t)}function zd(e){const t=Cn(e);return t===e?t:(_a(t,"iterate",ig),so(e)?t:t.map(Ii))}function sw(e){return _a(e=Cn(e),"iterate",ig),e}function Tu(e,t){return $s(e)?Al(e)?ih(Ii(t)):ih(t):Ii(t)}const ene={__proto__:null,[Symbol.iterator](){return j4(this,Symbol.iterator,e=>Tu(this,e))},concat(...e){return zd(this).concat(...e.map(t=>Ce(t)?zd(t):t))},entries(){return j4(this,"entries",e=>(e[1]=Tu(this,e[1]),e))},every(e,t){return ll(this,"every",e,t,void 0,arguments)},filter(e,t){return ll(this,"filter",e,t,n=>n.map(r=>Tu(this,r)),arguments)},find(e,t){return ll(this,"find",e,t,n=>Tu(this,n),arguments)},findIndex(e,t){return ll(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ll(this,"findLast",e,t,n=>Tu(this,n),arguments)},findLastIndex(e,t){return ll(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ll(this,"forEach",e,t,void 0,arguments)},includes(...e){return Y4(this,"includes",e)},indexOf(...e){return Y4(this,"indexOf",e)},join(e){return zd(this).join(e)},lastIndexOf(...e){return Y4(this,"lastIndexOf",e)},map(e,t){return ll(this,"map",e,t,void 0,arguments)},pop(){return Sp(this,"pop")},push(...e){return Sp(this,"push",e)},reduce(e,...t){return ZE(this,"reduce",e,t)},reduceRight(e,...t){return ZE(this,"reduceRight",e,t)},shift(){return Sp(this,"shift")},some(e,t){return ll(this,"some",e,t,void 0,arguments)},splice(...e){return Sp(this,"splice",e)},toReversed(){return zd(this).toReversed()},toSorted(e){return zd(this).toSorted(e)},toSpliced(...e){return zd(this).toSpliced(...e)},unshift(...e){return Sp(this,"unshift",e)},values(){return j4(this,"values",e=>Tu(this,e))}};function j4(e,t,n){const r=sw(e),a=r[t]();return r!==e&&!so(e)&&(a._next=a.next,a.next=()=>{const o=a._next();return o.done||(o.value=n(o.value)),o}),a}const tne=Array.prototype;function ll(e,t,n,r,a,o){const i=sw(e),s=i!==e&&!so(e),l=i[t];if(l!==tne[t]){const f=l.apply(e,o);return s?Ii(f):f}let u=n;i!==e&&(s?u=function(f,d){return n.call(this,Tu(e,f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=l.call(i,u,r);return s&&a?a(c):c}function ZE(e,t,n,r){const a=sw(e);let o=n;return a!==e&&(so(e)?n.length>3&&(o=function(i,s,l){return n.call(this,i,s,l,e)}):o=function(i,s,l){return n.call(this,i,Tu(e,s),l,e)}),a[t](o,...r)}function Y4(e,t,n){const r=Cn(e);_a(r,"iterate",ig);const a=r[t](...n);return(a===-1||a===!1)&&mm(n[0])?(n[0]=Cn(n[0]),r[t](...n)):a}function Sp(e,t,n=[]){Bs(),o5();const r=Cn(e)[t].apply(e,n);return i5(),Vs(),r}const nne=gd("__proto__,__v_isRef,__isVue"),U$=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ei));function rne(e){Ei(e)||(e=String(e));const t=Cn(this);return _a(t,"has",e),t.hasOwnProperty(e)}class K${constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const a=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!a;if(n==="__v_isReadonly")return a;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(a?o?J$:Z$:o?X$:q$).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=Ce(t);if(!a){let l;if(i&&(l=ene[n]))return l;if(n==="hasOwnProperty")return rne}const s=Reflect.get(t,n,Dn(t)?t:r);if((Ei(n)?U$.has(n):nne(n))||(a||_a(t,"get",n),o))return s;if(Dn(s)){const l=i&&nw(n)?s:s.value;return a&&St(l)?rc(l):l}return St(s)?a?rc(s):sn(s):s}}class j$ extends K${constructor(t=!1){super(!1,t)}set(t,n,r,a){let o=t[n];const i=Ce(t)&&nw(n);if(!this._isShallow){const u=$s(o);if(!so(r)&&!$s(r)&&(o=Cn(o),r=Cn(r)),!i&&Dn(o)&&!Dn(r))return u||(o.value=r),!0}const s=i?Number(n)<t.length:nn(t,n),l=Reflect.set(t,n,r,Dn(t)?t:a);return t===Cn(a)&&(s?za(r,o)&&_l(t,"set",n,r):_l(t,"add",n,r)),l}deleteProperty(t,n){const r=nn(t,n);t[n];const a=Reflect.deleteProperty(t,n);return a&&r&&_l(t,"delete",n,void 0),a}has(t,n){const r=Reflect.has(t,n);return(!Ei(n)||!U$.has(n))&&_a(t,"has",n),r}ownKeys(t){return _a(t,"iterate",Ce(t)?"length":Rf),Reflect.ownKeys(t)}}class Y$ extends K${constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ane=new j$,one=new Y$,ine=new j$(!0),sne=new Y$(!0),p8=e=>e,T1=e=>Reflect.getPrototypeOf(e);function lne(e,t,n){return function(...r){const a=this.__v_raw,o=Cn(a),i=$v(o),s=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=a[e](...r),c=n?p8:t?ih:Ii;return!t&&_a(o,"iterate",l?h8:Rf),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:s?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function k1(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function une(e,t){const n={get(a){const o=this.__v_raw,i=Cn(o),s=Cn(a);e||(za(a,s)&&_a(i,"get",a),_a(i,"get",s));const{has:l}=T1(i),u=t?p8:e?ih:Ii;if(l.call(i,a))return u(o.get(a));if(l.call(i,s))return u(o.get(s));o!==i&&o.get(a)},get size(){const a=this.__v_raw;return!e&&_a(Cn(a),"iterate",Rf),a.size},has(a){const o=this.__v_raw,i=Cn(o),s=Cn(a);return e||(za(a,s)&&_a(i,"has",a),_a(i,"has",s)),a===s?o.has(a):o.has(a)||o.has(s)},forEach(a,o){const i=this,s=i.__v_raw,l=Cn(s),u=t?p8:e?ih:Ii;return!e&&_a(l,"iterate",Rf),s.forEach((c,f)=>a.call(o,u(c),u(f),i))}};return qn(n,e?{add:k1("add"),set:k1("set"),delete:k1("delete"),clear:k1("clear")}:{add(a){!t&&!so(a)&&!$s(a)&&(a=Cn(a));const o=Cn(this);return T1(o).has.call(o,a)||(o.add(a),_l(o,"add",a,a)),this},set(a,o){!t&&!so(o)&&!$s(o)&&(o=Cn(o));const i=Cn(this),{has:s,get:l}=T1(i);let u=s.call(i,a);u||(a=Cn(a),u=s.call(i,a));const c=l.call(i,a);return i.set(a,o),u?za(o,c)&&_l(i,"set",a,o):_l(i,"add",a,o),this},delete(a){const o=Cn(this),{has:i,get:s}=T1(o);let l=i.call(o,a);l||(a=Cn(a),l=i.call(o,a)),s&&s.call(o,a);const u=o.delete(a);return l&&_l(o,"delete",a,void 0),u},clear(){const a=Cn(this),o=a.size!==0,i=a.clear();return o&&_l(a,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(a=>{n[a]=lne(a,e,t)}),n}function lw(e,t){const n=une(e,t);return(r,a,o)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?r:Reflect.get(nn(n,a)&&a in r?n:r,a,o)}const cne={get:lw(!1,!1)},fne={get:lw(!1,!0)},dne={get:lw(!0,!1)},vne={get:lw(!0,!0)},q$=new WeakMap,X$=new WeakMap,Z$=new WeakMap,J$=new WeakMap;function hne(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function pne(e){return e.__v_skip||!Object.isExtensible(e)?0:hne(Dte(e))}function sn(e){return $s(e)?e:cw(e,!1,ane,cne,q$)}function uw(e){return cw(e,!1,ine,fne,X$)}function rc(e){return cw(e,!0,one,dne,Z$)}function gne(e){return cw(e,!0,sne,vne,J$)}function cw(e,t,n,r,a){if(!St(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=pne(e);if(o===0)return e;const i=a.get(e);if(i)return i;const s=new Proxy(e,o===2?r:n);return a.set(e,s),s}function Al(e){return $s(e)?Al(e.__v_raw):!!(e&&e.__v_isReactive)}function $s(e){return!!(e&&e.__v_isReadonly)}function so(e){return!!(e&&e.__v_isShallow)}function mm(e){return e?!!e.__v_raw:!1}function Cn(e){const t=e&&e.__v_raw;return t?Cn(t):e}function Ts(e){return!nn(e,"__v_skip")&&Object.isExtensible(e)&&D$(e,"__v_skip",!0),e}const Ii=e=>St(e)?sn(e):e,ih=e=>St(e)?rc(e):e;function Dn(e){return e?e.__v_isRef===!0:!1}function K(e){return Q$(e,!1)}function Ln(e){return Q$(e,!0)}function Q$(e,t){return Dn(e)?e:new mne(e,t)}class mne{constructor(t,n){this.dep=new iw,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Cn(t),this._value=n?t:Ii(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||so(t)||$s(t);t=r?t:Cn(t),za(t,n)&&(this._rawValue=t,this._value=r?t:Ii(t),this.dep.trigger())}}function P0(e){e.dep&&e.dep.trigger()}function _(e){return Dn(e)?e.value:e}function yne(e){return Je(e)?e():_(e)}const bne={get:(e,t,n)=>t==="__v_raw"?e:_(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const a=e[t];return Dn(a)&&!Dn(n)?(a.value=n,!0):Reflect.set(e,t,n,r)}};function l5(e){return Al(e)?e:new Proxy(e,bne)}class _ne{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new iw,{get:r,set:a}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=a}get value(){return this._value=this._get()}set value(t){this._set(t)}}function ez(e){return new _ne(e)}function kr(e){const t=Ce(e)?new Array(e.length):{};for(const n in e)t[n]=tz(e,n);return t}class wne{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=Cn(t);let a=!0,o=t;if(!Ce(t)||!nw(String(n)))do a=!mm(o)||so(o);while(a&&(o=o.__v_raw));this._shallow=a}get value(){let t=this._object[this._key];return this._shallow&&(t=_(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Dn(this._raw[this._key])){const n=this._object[this._key];if(Dn(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Qte(this._raw,this._key)}}class Sne{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function vn(e,t,n){return Dn(e)?e:Je(e)?new Sne(e):St(e)&&arguments.length>1?tz(e,t,n):K(e)}function tz(e,t,n){return new wne(e,t,n)}class xne{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new iw(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=og-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ar!==this)return $$(this,!0),!0}get value(){const t=this.dep.track();return H$(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Cne(e,t,n=!1){let r,a;return Je(e)?r=e:(r=e.get,a=e.set),new xne(r,a,n)}const Tne={GET:"get",HAS:"has",ITERATE:"iterate"},kne={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},M1={},lb=new WeakMap;let ku;function Mne(){return ku}function nz(e,t=!1,n=ku){if(n){let r=lb.get(n);r||lb.set(n,r=[]),r.push(e)}}function Ane(e,t,n=Rn){const{immediate:r,deep:a,once:o,scheduler:i,augmentJob:s,call:l}=n,u=w=>a?w:so(w)||a===!1||a===0?wl(w,1):wl(w);let c,f,d,v,h=!1,p=!1;if(Dn(e)?(f=()=>e.value,h=so(e)):Al(e)?(f=()=>u(e),h=!0):Ce(e)?(p=!0,h=e.some(w=>Al(w)||so(w)),f=()=>e.map(w=>{if(Dn(w))return w.value;if(Al(w))return u(w);if(Je(w))return l?l(w,2):w()})):Je(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Bs();try{d()}finally{Vs()}}const w=ku;ku=c;try{return l?l(e,3,[v]):e(v)}finally{ku=w}}:f=cn,t&&a){const w=f,S=a===!0?1/0:a;f=()=>wl(w(),S)}const g=r5(),m=()=>{c.stop(),g&&g.active&&e5(g.effects,c)};if(o&&t){const w=t;t=(...S)=>{w(...S),m()}}let y=p?new Array(e.length).fill(M1):M1;const b=w=>{if(!(!(c.flags&1)||!c.dirty&&!w))if(t){const S=c.run();if(a||h||(p?S.some((x,C)=>za(x,y[C])):za(S,y))){d&&d();const x=ku;ku=c;try{const C=[S,y===M1?void 0:p&&y[0]===M1?[]:y,v];y=S,l?l(t,3,C):t(...C)}finally{ku=x}}}else c.run()};return s&&s(b),c=new ag(f),c.scheduler=i?()=>i(b,!1):b,v=w=>nz(w,!1,c),d=c.onStop=()=>{const w=lb.get(c);if(w){if(l)l(w,4);else for(const S of w)S();lb.delete(c)}},t?r?b(!0):y=c.run():i?i(b.bind(null,!0),!0):c.run(),m.pause=c.pause.bind(c),m.resume=c.resume.bind(c),m.stop=m,m}function wl(e,t=1/0,n){if(t<=0||!St(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Dn(e))wl(e.value,t,n);else if(Ce(e))for(let r=0;r<e.length;r++)wl(e[r],t,n);else if(md(e)||$v(e))e.forEach(r=>{wl(r,t,n)});else if(Zf(e)){for(const r in e)wl(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&wl(e[r],t,n)}return e}/**
|
||
* @vue/runtime-core v3.5.26
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/const Of=[];function Ene(e){Of.push(e)}function Ine(){Of.pop()}let q4=!1;function mu(e,...t){if(q4)return;q4=!0,Bs();const n=Of.length?Of[Of.length-1].component:null,r=n&&n.appContext.config.warnHandler,a=Lne();if(r)yd(r,n,11,[e+t.map(o=>{var i,s;return(s=(i=o.toString)==null?void 0:i.call(o))!=null?s:JSON.stringify(o)}).join(""),n&&n.proxy,a.map(({vnode:o})=>`at <${oF(n,o.type)}>`).join(`
|
||
`),a]);else{const o=[`[Vue warn]: ${e}`,...t];a.length&&o.push(`
|
||
`,...Dne(a)),console.warn(...o)}Vs(),q4=!1}function Lne(){let e=Of[Of.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function Dne(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
|
||
`],...Pne(n))}),t}function Pne({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,a=` at <${oF(e.component,e.type,r)}`,o=">"+n;return e.props?[a,...Rne(e.props),o]:[a+o]}function Rne(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...rz(r,e[r]))}),n.length>3&&t.push(" ..."),t}function rz(e,t,n){return Ge(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Dn(t)?(t=rz(e,Cn(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Je(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Cn(t),n?t:[`${e}=`,t])}function One(e,t){}const Nne={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},Bne={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function yd(e,t,n,r){try{return r?e(...r):e()}catch(a){bd(a,t,n)}}function ri(e,t,n,r){if(Je(e)){const a=yd(e,t,n,r);return a&&tc(a)&&a.catch(o=>{bd(o,t,n)}),a}if(Ce(e)){const a=[];for(let o=0;o<e.length;o++)a.push(ri(e[o],t,n,r));return a}}function bd(e,t,n,r=!0){const a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Rn;if(t){let s=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const c=s.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}s=s.parent}if(o){Bs(),yd(o,null,10,[e,l,u]),Vs();return}}Vne(e,n,a,r,i)}function Vne(e,t,n,r=!0,a=!1){if(a)throw e;console.error(e)}const Fa=[];let fs=-1;const Wv=[];let Mu=null,bv=0;const az=Promise.resolve();let ub=null;function ze(e){const t=ub||az;return e?t.then(this?e.bind(this):e):t}function $ne(e){let t=fs+1,n=Fa.length;for(;t<n;){const r=t+n>>>1,a=Fa[r],o=lg(a);o<e||o===e&&a.flags&2?t=r+1:n=r}return t}function u5(e){if(!(e.flags&1)){const t=lg(e),n=Fa[Fa.length-1];!n||!(e.flags&2)&&t>=lg(n)?Fa.push(e):Fa.splice($ne(t),0,e),e.flags|=1,oz()}}function oz(){ub||(ub=az.then(iz))}function sg(e){Ce(e)?Wv.push(...e):Mu&&e.id===-1?Mu.splice(bv+1,0,e):e.flags&1||(Wv.push(e),e.flags|=1),oz()}function JE(e,t,n=fs+1){for(;n<Fa.length;n++){const r=Fa[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Fa.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function cb(e){if(Wv.length){const t=[...new Set(Wv)].sort((n,r)=>lg(n)-lg(r));if(Wv.length=0,Mu){Mu.push(...t);return}for(Mu=t,bv=0;bv<Mu.length;bv++){const n=Mu[bv];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Mu=null,bv=0}}const lg=e=>e.id==null?e.flags&2?-1:1/0:e.id;function iz(e){const t=cn;try{for(fs=0;fs<Fa.length;fs++){const n=Fa[fs];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),yd(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;fs<Fa.length;fs++){const n=Fa[fs];n&&(n.flags&=-2)}fs=-1,Fa.length=0,cb(),ub=null,(Fa.length||Wv.length)&&iz()}}let _v,A1=[];function sz(e,t){var n,r;_v=e,_v?(_v.enabled=!0,A1.forEach(({event:a,args:o})=>_v.emit(a,...o)),A1=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{sz(o,t)}),setTimeout(()=>{_v||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,A1=[])},3e3)):A1=[]}let sa=null,fw=null;function ug(e){const t=sa;return sa=e,fw=e&&e.type.__scopeId||null,t}function zne(e){fw=e}function Fne(){fw=null}const Hne=e=>ee;function ee(e,t=sa,n){if(!t||e._n)return e;const r=(...a)=>{r._d&&dg(-1);const o=ug(t);let i;try{i=e(...a)}finally{ug(o),r._d&&dg(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function xt(e,t){if(sa===null)return e;const n=Cm(sa),r=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[o,i,s,l=Rn]=t[a];o&&(Je(o)&&(o={mounted:o,updated:o}),o.deep&&wl(i),r.push({dir:o,instance:n,value:i,oldValue:void 0,arg:s,modifiers:l}))}return e}function ds(e,t,n,r){const a=e.dirs,o=t&&t.dirs;for(let i=0;i<a.length;i++){const s=a[i];o&&(s.oldValue=o[i].value);let l=s.dir[r];l&&(Bs(),ri(l,n,8,[e.el,s,e,t]),Vs())}}function Ut(e,t){if(oa){let n=oa.provides;const r=oa.parent&&oa.parent.provides;r===n&&(n=oa.provides=Object.create(r)),n[e]=t}}function Ue(e,t,n=!1){const r=bt();if(r||Nf){let a=Nf?Nf._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(a&&e in a)return a[e];if(arguments.length>1)return n&&Je(t)?t.call(r&&r.proxy):t}}function Wne(){return!!(bt()||Nf)}const lz=Symbol.for("v-scx"),uz=()=>Ue(lz);function Ga(e,t){return ym(e,null,t)}function Gne(e,t){return ym(e,null,{flush:"post"})}function cz(e,t){return ym(e,null,{flush:"sync"})}function he(e,t,n){return ym(e,t,n)}function ym(e,t,n=Rn){const{immediate:r,deep:a,flush:o,once:i}=n,s=qn({},n),l=t&&r||!t&&o!=="post";let u;if(lh){if(o==="sync"){const v=uz();u=v.__watcherHandles||(v.__watcherHandles=[])}else if(!l){const v=()=>{};return v.stop=cn,v.resume=cn,v.pause=cn,v}}const c=oa;s.call=(v,h,p)=>ri(v,c,h,p);let f=!1;o==="post"?s.scheduler=v=>{Lr(v,c&&c.suspense)}:o!=="sync"&&(f=!0,s.scheduler=(v,h)=>{h?v():u5(v)}),s.augmentJob=v=>{t&&(v.flags|=4),f&&(v.flags|=2,c&&(v.id=c.uid,v.i=c))};const d=Ane(e,t,s);return lh&&(u?u.push(d):l&&d()),d}function Une(e,t,n){const r=this.proxy,a=Ge(e)?e.includes(".")?fz(r,e):()=>r[e]:e.bind(r,r);let o;Je(t)?o=t:(o=t.handler,n=t);const i=Qf(this),s=ym(a,o.bind(r),n);return i(),s}function fz(e,t){const n=t.split(".");return()=>{let r=e;for(let a=0;a<n.length&&r;a++)r=r[n[a]];return r}}const dz=Symbol("_vte"),vz=e=>e.__isTeleport,R0=e=>e&&(e.disabled||e.disabled===""),QE=e=>e&&(e.defer||e.defer===""),e9=e=>typeof SVGElement<"u"&&e instanceof SVGElement,t9=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,g8=(e,t)=>{const n=e&&e.to;return Ge(n)?t?t(n):null:n},hz={name:"Teleport",__isTeleport:!0,process(e,t,n,r,a,o,i,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:v,querySelector:h,createText:p,createComment:g}}=u,m=R0(t.props);let{shapeFlag:y,children:b,dynamicChildren:w}=t;if(e==null){const S=t.el=p(""),x=t.anchor=p("");v(S,n,r),v(x,n,r);const C=(M,k)=>{y&16&&c(b,M,k,a,o,i,s,l)},T=()=>{const M=t.target=g8(t.props,h),k=gz(M,t,p,v);M&&(i!=="svg"&&e9(M)?i="svg":i!=="mathml"&&t9(M)&&(i="mathml"),a&&a.isCE&&(a.ce._teleportTargets||(a.ce._teleportTargets=new Set)).add(M),m||(C(M,k),h2(t,!1)))};m&&(C(n,x),h2(t,!0)),QE(t.props)?(t.el.__isMounted=!1,Lr(()=>{T(),delete t.el.__isMounted},o)):T()}else{if(QE(t.props)&&e.el.__isMounted===!1){Lr(()=>{hz.process(e,t,n,r,a,o,i,s,l,u)},o);return}t.el=e.el,t.targetStart=e.targetStart;const S=t.anchor=e.anchor,x=t.target=e.target,C=t.targetAnchor=e.targetAnchor,T=R0(e.props),M=T?n:x,k=T?S:C;if(i==="svg"||e9(x)?i="svg":(i==="mathml"||t9(x))&&(i="mathml"),w?(d(e.dynamicChildren,w,M,a,o,i,s),_5(e,t,!0)):l||f(e,t,M,k,a,o,i,s,!1),m)T?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):E1(t,n,S,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const E=t.target=g8(t.props,h);E&&E1(t,E,null,u,0)}else T&&E1(t,x,C,u,1);h2(t,m)}},remove(e,t,n,{um:r,o:{remove:a}},o){const{shapeFlag:i,children:s,anchor:l,targetStart:u,targetAnchor:c,target:f,props:d}=e;if(f&&(a(u),a(c)),o&&a(l),i&16){const v=o||!R0(d);for(let h=0;h<s.length;h++){const p=s[h];r(p,t,n,v,!!p.dynamicChildren)}}},move:E1,hydrate:Kne};function E1(e,t,n,{o:{insert:r},m:a},o=2){o===0&&r(e.targetAnchor,t,n);const{el:i,anchor:s,shapeFlag:l,children:u,props:c}=e,f=o===2;if(f&&r(i,t,n),(!f||R0(c))&&l&16)for(let d=0;d<u.length;d++)a(u[d],t,n,2);f&&r(s,t,n)}function Kne(e,t,n,r,a,o,{o:{nextSibling:i,parentNode:s,querySelector:l,insert:u,createText:c}},f){function d(p,g,m,y){g.anchor=f(i(p),g,s(p),n,r,a,o),g.targetStart=m,g.targetAnchor=y}const v=t.target=g8(t.props,l),h=R0(t.props);if(v){const p=v._lpa||v.firstChild;if(t.shapeFlag&16)if(h)d(e,t,p,p&&i(p));else{t.anchor=i(e);let g=p;for(;g;){if(g&&g.nodeType===8){if(g.data==="teleport start anchor")t.targetStart=g;else if(g.data==="teleport anchor"){t.targetAnchor=g,v._lpa=t.targetAnchor&&i(t.targetAnchor);break}}g=i(g)}t.targetAnchor||gz(v,t,c,u),f(p&&i(p),t,v,n,r,a,o)}h2(t,h)}else h&&t.shapeFlag&16&&d(e,t,e,i(e));return t.anchor&&i(t.anchor)}const pz=hz;function h2(e,t){const n=e.ctx;if(n&&n.ut){let r,a;for(t?(r=e.el,a=e.anchor):(r=e.targetStart,a=e.targetAnchor);r&&r!==a;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function gz(e,t,n,r){const a=t.targetStart=n(""),o=t.targetAnchor=n("");return a[dz]=o,e&&(r(a,e),r(o,e)),o}const yl=Symbol("_leaveCb"),I1=Symbol("_enterCb");function c5(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Et(()=>{e.isMounted=!0}),un(()=>{e.isUnmounting=!0}),e}const No=[Function,Array],f5={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:No,onEnter:No,onAfterEnter:No,onEnterCancelled:No,onBeforeLeave:No,onLeave:No,onAfterLeave:No,onLeaveCancelled:No,onBeforeAppear:No,onAppear:No,onAfterAppear:No,onAppearCancelled:No},mz=e=>{const t=e.subTree;return t.component?mz(t.component):t},jne={name:"BaseTransition",props:f5,setup(e,{slots:t}){const n=bt(),r=c5();return()=>{const a=t.default&&dw(t.default(),!0);if(!a||!a.length)return;const o=yz(a),i=Cn(e),{mode:s}=i;if(r.isLeaving)return X4(o);const l=n9(o);if(!l)return X4(o);let u=sh(l,i,r,n,f=>u=f);l.type!==$n&&Nl(l,u);let c=n.subTree&&n9(n.subTree);if(c&&c.type!==$n&&!yi(c,l)&&mz(n).type!==$n){let f=sh(c,i,r,n);if(Nl(c,f),s==="out-in"&&l.type!==$n)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},X4(o);s==="in-out"&&l.type!==$n?f.delayLeave=(d,v,h)=>{const p=_z(r,c);p[String(c.key)]=c,d[yl]=()=>{v(),d[yl]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{h(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return o}}};function yz(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==$n){t=n;break}}return t}const bz=jne;function _z(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function sh(e,t,n,r,a){const{appear:o,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:v,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:g,onAppear:m,onAfterAppear:y,onAppearCancelled:b}=t,w=String(e.key),S=_z(n,e),x=(M,k)=>{M&&ri(M,r,9,k)},C=(M,k)=>{const E=k[1];x(M,k),Ce(M)?M.every(A=>A.length<=1)&&E():M.length<=1&&E()},T={mode:i,persisted:s,beforeEnter(M){let k=l;if(!n.isMounted)if(o)k=g||l;else return;M[yl]&&M[yl](!0);const E=S[w];E&&yi(e,E)&&E.el[yl]&&E.el[yl](),x(k,[M])},enter(M){let k=u,E=c,A=f;if(!n.isMounted)if(o)k=m||u,E=y||c,A=b||f;else return;let I=!1;const O=M[I1]=z=>{I||(I=!0,z?x(A,[M]):x(E,[M]),T.delayedLeave&&T.delayedLeave(),M[I1]=void 0)};k?C(k,[M,O]):O()},leave(M,k){const E=String(e.key);if(M[I1]&&M[I1](!0),n.isUnmounting)return k();x(d,[M]);let A=!1;const I=M[yl]=O=>{A||(A=!0,k(),O?x(p,[M]):x(h,[M]),M[yl]=void 0,S[E]===e&&delete S[E])};S[E]=e,v?C(v,[M,I]):I()},clone(M){const k=sh(M,t,n,r,a);return a&&a(k),k}};return T}function X4(e){if(bm(e))return e=Li(e),e.children=null,e}function n9(e){if(!bm(e))return vz(e.type)&&e.children?yz(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Je(n.default))return n.default()}}function Nl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Nl(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 dw(e,t=!1,n){let r=[],a=0;for(let o=0;o<e.length;o++){let i=e[o];const s=n==null?i.key:String(n)+String(i.key!=null?i.key:o);i.type===qe?(i.patchFlag&128&&a++,r=r.concat(dw(i.children,t,s))):(t||i.type!==$n)&&r.push(s!=null?Li(i,{key:s}):i)}if(a>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}function q(e,t){return Je(e)?(()=>qn({name:e.name},t,{setup:e}))():e}function Yne(){const e=bt();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function d5(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function qne(e){const t=bt(),n=Ln(null);if(t){const a=t.refs===Rn?t.refs={}:t.refs;Object.defineProperty(a,e,{enumerable:!0,get:()=>n.value,set:o=>n.value=o})}return n}const fb=new WeakMap;function Gv(e,t,n,r,a=!1){if(Ce(e)){e.forEach((h,p)=>Gv(h,t&&(Ce(t)?t[p]:t),n,r,a));return}if(El(r)&&!a){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Gv(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?Cm(r.component):r.el,i=a?null:o,{i:s,r:l}=e,u=t&&t.r,c=s.refs===Rn?s.refs={}:s.refs,f=s.setupState,d=Cn(f),v=f===Rn?I$:h=>nn(d,h);if(u!=null&&u!==l){if(r9(t),Ge(u))c[u]=null,v(u)&&(f[u]=null);else if(Dn(u)){u.value=null;const h=t;h.k&&(c[h.k]=null)}}if(Je(l))yd(l,s,12,[i,c]);else{const h=Ge(l),p=Dn(l);if(h||p){const g=()=>{if(e.f){const m=h?v(l)?f[l]:c[l]:l.value;if(a)Ce(m)&&e5(m,o);else if(Ce(m))m.includes(o)||m.push(o);else if(h)c[l]=[o],v(l)&&(f[l]=c[l]);else{const y=[o];l.value=y,e.k&&(c[e.k]=y)}}else h?(c[l]=i,v(l)&&(f[l]=i)):p&&(l.value=i,e.k&&(c[e.k]=i))};if(i){const m=()=>{g(),fb.delete(e)};m.id=-1,fb.set(e,m),Lr(m,n)}else r9(e),g()}}}function r9(e){const t=fb.get(e);t&&(t.flags|=8,fb.delete(e))}let a9=!1;const Tc=()=>{a9||(console.error("Hydration completed but contains mismatches."),a9=!0)},Xne=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Zne=e=>e.namespaceURI.includes("MathML"),L1=e=>{if(e.nodeType===1){if(Xne(e))return"svg";if(Zne(e))return"mathml"}},ff=e=>e.nodeType===8;function Jne(e){const{mt:t,p:n,o:{patchProp:r,createText:a,nextSibling:o,parentNode:i,remove:s,insert:l,createComment:u}}=e,c=(b,w)=>{if(!w.hasChildNodes()){__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&mu("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,b,w),cb(),w._vnode=b;return}f(w.firstChild,b,null,null,null),cb(),w._vnode=b},f=(b,w,S,x,C,T=!1)=>{T=T||!!w.dynamicChildren;const M=ff(b)&&b.data==="[",k=()=>p(b,w,S,x,C,M),{type:E,ref:A,shapeFlag:I,patchFlag:O}=w;let z=b.nodeType;w.el=b,O===-2&&(T=!1,w.dynamicChildren=null);let $=null;switch(E){case ks:z!==3?w.children===""?(l(w.el=a(""),i(b),b),$=b):$=k():(b.data!==w.children&&(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&mu("Hydration text mismatch in",b.parentNode,`
|
||
- rendered on server: ${JSON.stringify(b.data)}
|
||
- expected on client: ${JSON.stringify(w.children)}`),Tc(),b.data=w.children),$=o(b));break;case $n:y(b)?($=o(b),m(w.el=b.content.firstChild,b,S)):z!==8||M?$=k():$=o(b);break;case Bf:if(M&&(b=o(b),z=b.nodeType),z===1||z===3){$=b;const P=!w.children.length;for(let L=0;L<w.staticCount;L++)P&&(w.children+=$.nodeType===1?$.outerHTML:$.data),L===w.staticCount-1&&(w.anchor=$),$=o($);return M?o($):$}else k();break;case qe:M?$=h(b,w,S,x,C,T):$=k();break;default:if(I&1)(z!==1||w.type.toLowerCase()!==b.tagName.toLowerCase())&&!y(b)?$=k():$=d(b,w,S,x,C,T);else if(I&6){w.slotScopeIds=C;const P=i(b);if(M?$=g(b):ff(b)&&b.data==="teleport start"?$=g(b,b.data,"teleport end"):$=o(b),t(w,P,null,S,x,L1(P),T),El(w)&&!w.type.__asyncResolved){let L;M?(L=Q(qe),L.anchor=$?$.previousSibling:P.lastChild):L=b.nodeType===3?gt(""):Q("div"),L.el=b,w.component.subTree=L}}else I&64?z!==8?$=k():$=w.type.hydrate(b,w,S,x,C,T,e,v):I&128?$=w.type.hydrate(b,w,S,x,L1(i(b)),C,T,e,f):__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&mu("Invalid HostVNode type:",E,`(${typeof E})`)}return A!=null&&Gv(A,null,x,w),$},d=(b,w,S,x,C,T)=>{T=T||!!w.dynamicChildren;const{type:M,props:k,patchFlag:E,shapeFlag:A,dirs:I,transition:O}=w,z=M==="input"||M==="option";if(z||E!==-1){I&&ds(w,null,S,"created");let $=!1;if(y(b)){$=Kz(null,O)&&S&&S.vnode.props&&S.vnode.props.appear;const L=b.content.firstChild;if($){const V=L.getAttribute("class");V&&(L.$cls=V),O.beforeEnter(L)}m(L,b,S),w.el=b=L}if(A&16&&!(k&&(k.innerHTML||k.textContent))){let L=v(b.firstChild,w,b,S,x,C,T),V=!1;for(;L;){c0(b,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!V&&(mu("Hydration children mismatch on",b,`
|
||
Server rendered element contains more child nodes than client vdom.`),V=!0),Tc());const B=L;L=L.nextSibling,s(B)}}else if(A&8){let L=w.children;L[0]===`
|
||
`&&(b.tagName==="PRE"||b.tagName==="TEXTAREA")&&(L=L.slice(1));const{textContent:V}=b;V!==L&&V!==L.replace(/\r\n|\r/g,`
|
||
`)&&(c0(b,0)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&mu("Hydration text content mismatch on",b,`
|
||
- rendered on server: ${V}
|
||
- expected on client: ${L}`),Tc()),b.textContent=w.children)}if(k){if(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||z||!T||E&48){const L=b.tagName.includes("-");for(const V in k)__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!(I&&I.some(B=>B.dir.created))&&Qne(b,V,k[V],w,S)&&Tc(),(z&&(V.endsWith("value")||V==="indeterminate")||pm(V)&&!zv(V)||V[0]==="."||L)&&r(b,V,null,k[V],void 0,S)}else if(k.onClick)r(b,"onClick",null,k.onClick,void 0,S);else if(E&4&&Al(k.style))for(const L in k.style)k.style[L]}let P;(P=k&&k.onVnodeBeforeMount)&&eo(P,S,w),I&&ds(w,null,S,"beforeMount"),((P=k&&k.onVnodeMounted)||I||$)&&Xz(()=>{P&&eo(P,S,w),$&&O.enter(b),I&&ds(w,null,S,"mounted")},x)}return b.nextSibling},v=(b,w,S,x,C,T,M)=>{M=M||!!w.dynamicChildren;const k=w.children,E=k.length;let A=!1;for(let I=0;I<E;I++){const O=M?k[I]:k[I]=to(k[I]),z=O.type===ks;b?(z&&!M&&I+1<E&&to(k[I+1]).type===ks&&(l(a(b.data.slice(O.children.length)),S,o(b)),b.data=O.children),b=f(b,O,x,C,T,M)):z&&!O.children?l(O.el=a(""),S):(c0(S,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!A&&(mu("Hydration children mismatch on",S,`
|
||
Server rendered element contains fewer child nodes than client vdom.`),A=!0),Tc()),n(null,O,S,null,x,C,L1(S),T))}return b},h=(b,w,S,x,C,T)=>{const{slotScopeIds:M}=w;M&&(C=C?C.concat(M):M);const k=i(b),E=v(o(b),w,k,S,x,C,T);return E&&ff(E)&&E.data==="]"?o(w.anchor=E):(Tc(),l(w.anchor=u("]"),k,E),E)},p=(b,w,S,x,C,T)=>{if(c0(b.parentElement,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&mu(`Hydration node mismatch:
|
||
- rendered on server:`,b,b.nodeType===3?"(text)":ff(b)&&b.data==="["?"(start of fragment)":"",`
|
||
- expected on client:`,w.type),Tc()),w.el=null,T){const E=g(b);for(;;){const A=o(b);if(A&&A!==E)s(A);else break}}const M=o(b),k=i(b);return s(b),n(null,w,k,M,S,x,L1(k),C),S&&(S.vnode.el=w.el,pw(S,w.el)),M},g=(b,w="[",S="]")=>{let x=0;for(;b;)if(b=o(b),b&&ff(b)&&(b.data===w&&x++,b.data===S)){if(x===0)return o(b);x--}return b},m=(b,w,S)=>{const x=w.parentNode;x&&x.replaceChild(b,w);let C=S;for(;C;)C.vnode.el===w&&(C.vnode.el=C.subTree.el=b),C=C.parent},y=b=>b.nodeType===1&&b.tagName==="TEMPLATE";return[c,f]}function Qne(e,t,n,r,a){let o,i,s,l;if(t==="class")e.$cls?(s=e.$cls,delete e.$cls):s=e.getAttribute("class"),l=W(n),ere(o9(s||""),o9(l))||(o=2,i="class");else if(t==="style"){s=e.getAttribute("style")||"",l=Ge(n)?n:Fte(et(n));const u=i9(s),c=i9(l);if(r.dirs)for(const{dir:f,value:d}of r.dirs)f.name==="show"&&!d&&c.set("display","none");a&&wz(a,r,c),tre(u,c)||(o=3,i="style")}else(e instanceof SVGElement&&Gte(t)||e instanceof HTMLElement&&(qE(t)||Wte(t)))&&(qE(t)?(s=e.hasAttribute(t),l=t5(n)):n==null?(s=e.hasAttribute(t),l=!1):(e.hasAttribute(t)?s=e.getAttribute(t):t==="value"&&e.tagName==="TEXTAREA"?s=e.value:s=!1,l=Ute(n)?String(n):!1),s!==l&&(o=4,i=t));if(o!=null&&!c0(e,o)){const u=d=>d===!1?"(not rendered)":`${i}="${d}"`,c=`Hydration ${Sz[o]} mismatch on`,f=`
|
||
- rendered on server: ${u(s)}
|
||
- expected on client: ${u(l)}
|
||
Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.
|
||
You should fix the source of the mismatch.`;return mu(c,e,f),!0}return!1}function o9(e){return new Set(e.trim().split(/\s+/))}function ere(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function i9(e){const t=new Map;for(const n of e.split(";")){let[r,a]=n.split(":");r=r.trim(),a=a&&a.trim(),r&&a&&t.set(r,a)}return t}function tre(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e)if(r!==t.get(n))return!1;return!0}function wz(e,t,n){const r=e.subTree;if(e.getCssVars&&(t===r||r&&r.type===qe&&r.children.includes(t))){const a=e.getCssVars();for(const o in a){const i=N$(a[o]);n.set(`--${jte(o,!1)}`,i)}}t===r&&e.parent&&wz(e.parent,e.vnode,n)}const s9="data-allow-mismatch",Sz={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function c0(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(s9);)e=e.parentElement;const n=e&&e.getAttribute(s9);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(Sz[t])}}const nre=gm().requestIdleCallback||(e=>setTimeout(e,1)),rre=gm().cancelIdleCallback||(e=>clearTimeout(e)),are=(e=1e4)=>t=>{const n=nre(t,{timeout:e});return()=>rre(n)};function ore(e){const{top:t,left:n,bottom:r,right:a}=e.getBoundingClientRect(),{innerHeight:o,innerWidth:i}=window;return(t>0&&t<o||r>0&&r<o)&&(n>0&&n<i||a>0&&a<i)}const ire=e=>(t,n)=>{const r=new IntersectionObserver(a=>{for(const o of a)if(o.isIntersecting){r.disconnect(),t();break}},e);return n(a=>{if(a instanceof Element){if(ore(a))return t(),r.disconnect(),!1;r.observe(a)}}),()=>r.disconnect()},sre=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},lre=(e=[])=>(t,n)=>{Ge(e)&&(e=[e]);let r=!1;const a=i=>{r||(r=!0,o(),t(),i.target.dispatchEvent(new i.constructor(i.type,i)))},o=()=>{n(i=>{for(const s of e)i.removeEventListener(s,a)})};return n(i=>{for(const s of e)i.addEventListener(s,a,{once:!0})}),o};function ure(e,t){if(ff(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(ff(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const El=e=>!!e.type.__asyncLoader;function cre(e){Je(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:a=200,hydrate:o,timeout:i,suspensible:s=!0,onError:l}=e;let u=null,c,f=0;const d=()=>(f++,u=null,v()),v=()=>{let h;return u||(h=u=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),l)return new Promise((g,m)=>{l(p,()=>g(d()),()=>m(p),f+1)});throw p}).then(p=>h!==u&&u?u:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),c=p,p)))};return q({name:"AsyncComponentWrapper",__asyncLoader:v,__asyncHydrate(h,p,g){let m=!1;(p.bu||(p.bu=[])).push(()=>m=!0);const y=()=>{m||g()},b=o?()=>{const w=o(y,S=>ure(h,S));w&&(p.bum||(p.bum=[])).push(w)}:y;c?b():v().then(()=>!p.isUnmounted&&b())},get __asyncResolved(){return c},setup(){const h=oa;if(d5(h),c)return()=>D1(c,h);const p=b=>{u=null,bd(b,h,13,!r)};if(s&&h.suspense||lh)return v().then(b=>()=>D1(b,h)).catch(b=>(p(b),()=>r?Q(r,{error:b}):null));const g=K(!1),m=K(),y=K(!!a);return a&&setTimeout(()=>{y.value=!1},a),i!=null&&setTimeout(()=>{if(!g.value&&!m.value){const b=new Error(`Async component timed out after ${i}ms.`);p(b),m.value=b}},i),v().then(()=>{g.value=!0,h.parent&&bm(h.parent.vnode)&&h.parent.update()}).catch(b=>{p(b),m.value=b}),()=>{if(g.value&&c)return D1(c,h);if(m.value&&r)return Q(r,{error:m.value});if(n&&!y.value)return D1(n,h)}}})}function D1(e,t){const{ref:n,props:r,children:a,ce:o}=t.vnode,i=Q(e,r,a);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const bm=e=>e.type.__isKeepAlive,fre={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=bt(),r=n.ctx;if(!r.renderer)return()=>{const y=t.default&&t.default();return y&&y.length===1?y[0]:y};const a=new Map,o=new Set;let i=null;const s=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=r,d=f("div");r.activate=(y,b,w,S,x)=>{const C=y.component;u(y,b,w,0,s),l(C.vnode,y,b,w,C,s,S,y.slotScopeIds,x),Lr(()=>{C.isDeactivated=!1,C.a&&Hv(C.a);const T=y.props&&y.props.onVnodeMounted;T&&eo(T,C.parent,y)},s)},r.deactivate=y=>{const b=y.component;vb(b.m),vb(b.a),u(y,d,null,1,s),Lr(()=>{b.da&&Hv(b.da);const w=y.props&&y.props.onVnodeUnmounted;w&&eo(w,b.parent,y),b.isDeactivated=!0},s)};function v(y){Z4(y),c(y,n,s,!0)}function h(y){a.forEach((b,w)=>{const S=mb(El(b)?b.type.__asyncResolved||{}:b.type);S&&!y(S)&&p(w)})}function p(y){const b=a.get(y);b&&(!i||!yi(b,i))?v(b):i&&Z4(i),a.delete(y),o.delete(y)}he(()=>[e.include,e.exclude],([y,b])=>{y&&h(w=>f0(y,w)),b&&h(w=>!f0(b,w))},{flush:"post",deep:!0});let g=null;const m=()=>{g!=null&&(hb(n.subTree.type)?Lr(()=>{a.set(g,P1(n.subTree))},n.subTree.suspense):a.set(g,P1(n.subTree)))};return Et(m),Lo(m),un(()=>{a.forEach(y=>{const{subTree:b,suspense:w}=n,S=P1(b);if(y.type===S.type&&y.key===S.key){Z4(S);const x=S.component.da;x&&Lr(x,w);return}v(y)})}),()=>{if(g=null,!t.default)return i=null;const y=t.default(),b=y[0];if(y.length>1)return i=null,y;if(!wn(b)||!(b.shapeFlag&4)&&!(b.shapeFlag&128))return i=null,b;let w=P1(b);if(w.type===$n)return i=null,w;const S=w.type,x=mb(El(w)?w.type.__asyncResolved||{}:S),{include:C,exclude:T,max:M}=e;if(C&&(!x||!f0(C,x))||T&&x&&f0(T,x))return w.shapeFlag&=-257,i=w,b;const k=w.key==null?S:w.key,E=a.get(k);return w.el&&(w=Li(w),b.shapeFlag&128&&(b.ssContent=w)),g=k,E?(w.el=E.el,w.component=E.component,w.transition&&Nl(w,w.transition),w.shapeFlag|=512,o.delete(k),o.add(k)):(o.add(k),M&&o.size>parseInt(M,10)&&p(o.values().next().value)),w.shapeFlag|=256,i=w,hb(b.type)?b:w}}},dre=fre;function f0(e,t){return Ce(e)?e.some(n=>f0(n,t)):Ge(e)?e.split(",").includes(t):Lte(e)?(e.lastIndex=0,e.test(t)):!1}function _m(e,t){xz(e,"a",t)}function v5(e,t){xz(e,"da",t)}function xz(e,t,n=oa){const r=e.__wdc||(e.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(vw(t,r,n),n){let a=n.parent;for(;a&&a.parent;)bm(a.parent.vnode)&&vre(r,t,n,a),a=a.parent}}function vre(e,t,n,r){const a=vw(t,e,r,!0);mc(()=>{e5(r[t],a)},n)}function Z4(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function P1(e){return e.shapeFlag&128?e.ssContent:e}function vw(e,t,n=oa,r=!1){if(n){const a=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Bs();const s=Qf(n),l=ri(t,n,e,i);return s(),Vs(),l});return r?a.unshift(o):a.push(o),o}}const Jl=e=>(t,n=oa)=>{(!lh||e==="sp")&&vw(e,(...r)=>t(...r),n)},wm=Jl("bm"),Et=Jl("m"),Sm=Jl("bu"),Lo=Jl("u"),un=Jl("bum"),mc=Jl("um"),Cz=Jl("sp"),Tz=Jl("rtg"),kz=Jl("rtc");function Mz(e,t=oa){vw("ec",e,t)}const h5="components",hre="directives";function Ft(e,t){return p5(h5,e,!0,t)||e}const Az=Symbol.for("v-ndc");function Tt(e){return Ge(e)?p5(h5,e,!1)||e:e||Az}function xm(e){return p5(hre,e)}function p5(e,t,n=!0,r=!1){const a=sa||oa;if(a){const o=a.type;if(e===h5){const s=mb(o,!1);if(s&&(s===t||s===Or(t)||s===Gh(Or(t))))return o}const i=l9(a[e]||o[e],t)||l9(a.appContext[e],t);return!i&&r?o:i}}function l9(e,t){return e&&(e[t]||e[Or(t)]||e[Gh(Or(t))])}function Wt(e,t,n,r){let a;const o=n&&n[r],i=Ce(e);if(i||Ge(e)){const s=i&&Al(e);let l=!1,u=!1;s&&(l=!so(e),u=$s(e),e=sw(e)),a=new Array(e.length);for(let c=0,f=e.length;c<f;c++)a[c]=t(l?u?ih(Ii(e[c])):Ii(e[c]):e[c],c,void 0,o&&o[c])}else if(typeof e=="number"){a=new Array(e);for(let s=0;s<e;s++)a[s]=t(s+1,s,void 0,o&&o[s])}else if(St(e))if(e[Symbol.iterator])a=Array.from(e,(s,l)=>t(s,l,void 0,o&&o[l]));else{const s=Object.keys(e);a=new Array(s.length);for(let l=0,u=s.length;l<u;l++){const c=s[l];a[l]=t(e[c],c,l,o&&o[l])}}else a=[];return n&&(n[r]=a),a}function Ua(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Ce(r))for(let a=0;a<r.length;a++)e[r[a].name]=r[a].fn;else r&&(e[r.name]=r.key?(...a)=>{const o=r.fn(...a);return o&&(o.key=r.key),o}:r.fn)}return e}function ue(e,t,n={},r,a){if(sa.ce||sa.parent&&El(sa.parent)&&sa.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),D(),de(qe,null,[Q("slot",n,r&&r())],u?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),D();const i=o&&g5(o(n)),s=n.key||i&&i.key,l=de(qe,{key:(s&&!Ei(s)?s:`_${t}`)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&e._===1?64:-2);return!a&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function g5(e){return e.some(t=>wn(t)?!(t.type===$n||t.type===qe&&!g5(t.children)):!0)?e:null}function Ez(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Fv(r)]=e[r];return n}const m8=e=>e?tF(e)?Cm(e):m8(e.parent):null,O0=qn(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=>m8(e.parent),$root:e=>m8(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>m5(e),$forceUpdate:e=>e.f||(e.f=()=>{u5(e.update)}),$nextTick:e=>e.n||(e.n=ze.bind(e.proxy)),$watch:e=>Une.bind(e)}),J4=(e,t)=>e!==Rn&&!e.__isScriptSetup&&nn(e,t),y8={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:a,props:o,accessCache:i,type:s,appContext:l}=e;if(t[0]!=="$"){const d=i[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return a[t];case 4:return n[t];case 3:return o[t]}else{if(J4(r,t))return i[t]=1,r[t];if(a!==Rn&&nn(a,t))return i[t]=2,a[t];if(nn(o,t))return i[t]=3,o[t];if(n!==Rn&&nn(n,t))return i[t]=4,n[t];b8&&(i[t]=0)}}const u=O0[t];let c,f;if(u)return t==="$attrs"&&_a(e.attrs,"get",""),u(e);if((c=s.__cssModules)&&(c=c[t]))return c;if(n!==Rn&&nn(n,t))return i[t]=4,n[t];if(f=l.config.globalProperties,nn(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:a,ctx:o}=e;return J4(a,t)?(a[t]=n,!0):r!==Rn&&nn(r,t)?(r[t]=n,!0):nn(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:a,props:o,type:i}},s){let l;return!!(n[s]||e!==Rn&&s[0]!=="$"&&nn(e,s)||J4(t,s)||nn(o,s)||nn(r,s)||nn(O0,s)||nn(a.config.globalProperties,s)||(l=i.__cssModules)&&l[s])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:nn(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},pre=qn({},y8,{get(e,t){if(t!==Symbol.unscopables)return y8.get(e,t,e)},has(e,t){return t[0]!=="_"&&!Nte(t)}});function gre(){return null}function mre(){return null}function yre(e){}function bre(e){}function _re(){return null}function wre(){}function Sre(e,t){return null}function fr(){return Iz().slots}function el(){return Iz().attrs}function Iz(e){const t=bt();return t.setupContext||(t.setupContext=aF(t))}function cg(e){return Ce(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function xre(e,t){const n=cg(e);for(const r in t){if(r.startsWith("__skip"))continue;let a=n[r];a?Ce(a)||Je(a)?a=n[r]={type:a,default:t[r]}:a.default=t[r]:a===null&&(a=n[r]={default:t[r]}),a&&t[`__skip_${r}`]&&(a.skipFactory=!0)}return n}function Cre(e,t){return!e||!t?e||t:Ce(e)&&Ce(t)?e.concat(t):qn({},cg(e),cg(t))}function Tre(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function kre(e){const t=bt();let n=e();return C8(),tc(n)&&(n=n.catch(r=>{throw Qf(t),r})),[n,()=>Qf(t)]}let b8=!0;function Mre(e){const t=m5(e),n=e.proxy,r=e.ctx;b8=!1,t.beforeCreate&&u9(t.beforeCreate,e,"bc");const{data:a,computed:o,methods:i,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:v,updated:h,activated:p,deactivated:g,beforeDestroy:m,beforeUnmount:y,destroyed:b,unmounted:w,render:S,renderTracked:x,renderTriggered:C,errorCaptured:T,serverPrefetch:M,expose:k,inheritAttrs:E,components:A,directives:I,filters:O}=t;if(u&&Are(u,r,null),i)for(const P in i){const L=i[P];Je(L)&&(r[P]=L.bind(n))}if(a){const P=a.call(n,n);St(P)&&(e.data=sn(P))}if(b8=!0,o)for(const P in o){const L=o[P],V=Je(L)?L.bind(n,n):Je(L.get)?L.get.bind(n,n):cn,B=!Je(L)&&Je(L.set)?L.set.bind(n):cn,F=R({get:V,set:B});Object.defineProperty(r,P,{enumerable:!0,configurable:!0,get:()=>F.value,set:U=>F.value=U})}if(s)for(const P in s)Lz(s[P],r,n,P);if(l){const P=Je(l)?l.call(n):l;Reflect.ownKeys(P).forEach(L=>{Ut(L,P[L])})}c&&u9(c,e,"c");function $(P,L){Ce(L)?L.forEach(V=>P(V.bind(n))):L&&P(L.bind(n))}if($(wm,f),$(Et,d),$(Sm,v),$(Lo,h),$(_m,p),$(v5,g),$(Mz,T),$(kz,x),$(Tz,C),$(un,y),$(mc,w),$(Cz,M),Ce(k))if(k.length){const P=e.exposed||(e.exposed={});k.forEach(L=>{Object.defineProperty(P,L,{get:()=>n[L],set:V=>n[L]=V,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===cn&&(e.render=S),E!=null&&(e.inheritAttrs=E),A&&(e.components=A),I&&(e.directives=I),M&&d5(e)}function Are(e,t,n=cn){Ce(e)&&(e=_8(e));for(const r in e){const a=e[r];let o;St(a)?"default"in a?o=Ue(a.from||r,a.default,!0):o=Ue(a.from||r):o=Ue(a),Dn(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function u9(e,t,n){ri(Ce(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Lz(e,t,n,r){let a=r.includes(".")?fz(n,r):()=>n[r];if(Ge(e)){const o=t[e];Je(o)&&he(a,o)}else if(Je(e))he(a,e.bind(n));else if(St(e))if(Ce(e))e.forEach(o=>Lz(o,t,n,r));else{const o=Je(e.handler)?e.handler.bind(n):t[e.handler];Je(o)&&he(a,o,e)}}function m5(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:a,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,s=o.get(t);let l;return s?l=s:!a.length&&!n&&!r?l=t:(l={},a.length&&a.forEach(u=>db(l,u,i,!0)),db(l,t,i)),St(t)&&o.set(t,l),l}function db(e,t,n,r=!1){const{mixins:a,extends:o}=t;o&&db(e,o,n,!0),a&&a.forEach(i=>db(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const s=Ere[i]||n&&n[i];e[i]=s?s(e[i],t[i]):t[i]}return e}const Ere={data:c9,props:f9,emits:f9,methods:d0,computed:d0,beforeCreate:Na,created:Na,beforeMount:Na,mounted:Na,beforeUpdate:Na,updated:Na,beforeDestroy:Na,beforeUnmount:Na,destroyed:Na,unmounted:Na,activated:Na,deactivated:Na,errorCaptured:Na,serverPrefetch:Na,components:d0,directives:d0,watch:Lre,provide:c9,inject:Ire};function c9(e,t){return t?e?function(){return qn(Je(e)?e.call(this,this):e,Je(t)?t.call(this,this):t)}:t:e}function Ire(e,t){return d0(_8(e),_8(t))}function _8(e){if(Ce(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Na(e,t){return e?[...new Set([].concat(e,t))]:t}function d0(e,t){return e?qn(Object.create(null),e,t):t}function f9(e,t){return e?Ce(e)&&Ce(t)?[...new Set([...e,...t])]:qn(Object.create(null),cg(e),cg(t??{})):t}function Lre(e,t){if(!e)return t;if(!t)return e;const n=qn(Object.create(null),e);for(const r in t)n[r]=Na(e[r],t[r]);return n}function Dz(){return{app:null,config:{isNativeTag:I$,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}}let Dre=0;function Pre(e,t){return function(r,a=null){Je(r)||(r=qn({},r)),a!=null&&!St(a)&&(a=null);const o=Dz(),i=new WeakSet,s=[];let l=!1;const u=o.app={_uid:Dre++,_component:r,_props:a,_container:null,_context:o,_instance:null,version:sF,get config(){return o.config},set config(c){},use(c,...f){return i.has(c)||(c&&Je(c.install)?(i.add(c),c.install(u,...f)):Je(c)&&(i.add(c),c(u,...f))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,f){return f?(o.components[c]=f,u):o.components[c]},directive(c,f){return f?(o.directives[c]=f,u):o.directives[c]},mount(c,f,d){if(!l){const v=u._ceVNode||Q(r,a);return v.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(v,c):e(v,c,d),l=!0,u._container=c,c.__vue_app__=u,Cm(v.component)}},onUnmount(c){s.push(c)},unmount(){l&&(ri(s,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return o.provides[c]=f,u},runWithContext(c){const f=Nf;Nf=u;try{return c()}finally{Nf=f}}};return u}}let Nf=null;function Rre(e,t,n=Rn){const r=bt(),a=Or(t),o=Sa(t),i=Pz(e,a),s=ez((l,u)=>{let c,f=Rn,d;return cz(()=>{const v=e[a];za(c,v)&&(c=v,u())}),{get(){return l(),n.get?n.get(c):c},set(v){const h=n.set?n.set(v):v;if(!za(h,c)&&!(f!==Rn&&za(v,f)))return;const p=r.vnode.props;p&&(t in p||a in p||o in p)&&(`onUpdate:${t}`in p||`onUpdate:${a}`in p||`onUpdate:${o}`in p)||(c=v,u()),r.emit(`update:${t}`,h),za(v,h)&&za(v,f)&&!za(h,d)&&u(),f=v,d=h}}});return s[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?i||Rn:s,done:!1}:{done:!0}}}},s}const Pz=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Or(t)}Modifiers`]||e[`${Sa(t)}Modifiers`];function Ore(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Rn;let a=n;const o=t.startsWith("update:"),i=o&&Pz(r,t.slice(7));i&&(i.trim&&(a=n.map(c=>Ge(c)?c.trim():c)),i.number&&(a=n.map(aw)));let s,l=r[s=Fv(t)]||r[s=Fv(Or(t))];!l&&o&&(l=r[s=Fv(Sa(t))]),l&&ri(l,e,6,a);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,ri(u,e,6,a)}}const Nre=new WeakMap;function Rz(e,t,n=!1){const r=n?Nre:t.emitsCache,a=r.get(e);if(a!==void 0)return a;const o=e.emits;let i={},s=!1;if(!Je(e)){const l=u=>{const c=Rz(u,t,!0);c&&(s=!0,qn(i,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!s?(St(e)&&r.set(e,null),null):(Ce(o)?o.forEach(l=>i[l]=null):qn(i,o),St(e)&&r.set(e,i),i)}function hw(e,t){return!e||!pm(t)?!1:(t=t.slice(2).replace(/Once$/,""),nn(e,t[0].toLowerCase()+t.slice(1))||nn(e,Sa(t))||nn(e,t))}function p2(e){const{type:t,vnode:n,proxy:r,withProxy:a,propsOptions:[o],slots:i,attrs:s,emit:l,render:u,renderCache:c,props:f,data:d,setupState:v,ctx:h,inheritAttrs:p}=e,g=ug(e);let m,y;try{if(n.shapeFlag&4){const w=a||r,S=w;m=to(u.call(S,w,c,f,v,d,h)),y=s}else{const w=t;m=to(w.length>1?w(f,{attrs:s,slots:i,emit:l}):w(f,null)),y=t.props?s:Vre(s)}}catch(w){N0.length=0,bd(w,e,1),m=Q($n)}let b=m;if(y&&p!==!1){const w=Object.keys(y),{shapeFlag:S}=b;w.length&&S&7&&(o&&w.some(QT)&&(y=$re(y,o)),b=Li(b,y,!1,!0))}return n.dirs&&(b=Li(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Nl(b,n.transition),m=b,ug(g),m}function Bre(e,t=!0){let n;for(let r=0;r<e.length;r++){const a=e[r];if(wn(a)){if(a.type!==$n||a.children==="v-if"){if(n)return;n=a}}else return}return n}const Vre=e=>{let t;for(const n in e)(n==="class"||n==="style"||pm(n))&&((t||(t={}))[n]=e[n]);return t},$re=(e,t)=>{const n={};for(const r in e)(!QT(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function zre(e,t,n){const{props:r,children:a,component:o}=e,{props:i,children:s,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?d9(r,i,u):!!i;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(i[d]!==r[d]&&!hw(u,d))return!0}}}else return(a||s)&&(!s||!s.$stable)?!0:r===i?!1:r?i?d9(r,i,u):!0:!!i;return!1}function d9(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let a=0;a<r.length;a++){const o=r[a];if(t[o]!==e[o]&&!hw(n,o))return!0}return!1}function pw({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Oz={},Nz=()=>Object.create(Oz),Bz=e=>Object.getPrototypeOf(e)===Oz;function Fre(e,t,n,r=!1){const a={},o=Nz();e.propsDefaults=Object.create(null),Vz(e,t,a,o);for(const i in e.propsOptions[0])i in a||(a[i]=void 0);n?e.props=r?a:uw(a):e.type.props?e.props=a:e.props=o,e.attrs=o}function Hre(e,t,n,r){const{props:a,attrs:o,vnode:{patchFlag:i}}=e,s=Cn(a),[l]=e.propsOptions;let u=!1;if((r||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(hw(e.emitsOptions,d))continue;const v=t[d];if(l)if(nn(o,d))v!==o[d]&&(o[d]=v,u=!0);else{const h=Or(d);a[h]=w8(l,s,h,v,e,!1)}else v!==o[d]&&(o[d]=v,u=!0)}}}else{Vz(e,t,a,o)&&(u=!0);let c;for(const f in s)(!t||!nn(t,f)&&((c=Sa(f))===f||!nn(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(a[f]=w8(l,s,f,void 0,e,!0)):delete a[f]);if(o!==s)for(const f in o)(!t||!nn(t,f))&&(delete o[f],u=!0)}u&&_l(e.attrs,"set","")}function Vz(e,t,n,r){const[a,o]=e.propsOptions;let i=!1,s;if(t)for(let l in t){if(zv(l))continue;const u=t[l];let c;a&&nn(a,c=Or(l))?!o||!o.includes(c)?n[c]=u:(s||(s={}))[c]=u:hw(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,i=!0)}if(o){const l=Cn(n),u=s||Rn;for(let c=0;c<o.length;c++){const f=o[c];n[f]=w8(a,l,f,u[f],e,!nn(u,f))}}return i}function w8(e,t,n,r,a,o){const i=e[n];if(i!=null){const s=nn(i,"default");if(s&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&Je(l)){const{propsDefaults:u}=a;if(n in u)r=u[n];else{const c=Qf(a);r=u[n]=l.call(null,t),c()}}else r=l;a.ce&&a.ce._setProp(n,r)}i[0]&&(o&&!s?r=!1:i[1]&&(r===""||r===Sa(n))&&(r=!0))}return r}const Wre=new WeakMap;function $z(e,t,n=!1){const r=n?Wre:t.propsCache,a=r.get(e);if(a)return a;const o=e.props,i={},s=[];let l=!1;if(!Je(e)){const c=f=>{l=!0;const[d,v]=$z(f,t,!0);qn(i,d),v&&s.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return St(e)&&r.set(e,Vv),Vv;if(Ce(o))for(let c=0;c<o.length;c++){const f=Or(o[c]);v9(f)&&(i[f]=Rn)}else if(o)for(const c in o){const f=Or(c);if(v9(f)){const d=o[c],v=i[f]=Ce(d)||Je(d)?{type:d}:qn({},d),h=v.type;let p=!1,g=!0;if(Ce(h))for(let m=0;m<h.length;++m){const y=h[m],b=Je(y)&&y.name;if(b==="Boolean"){p=!0;break}else b==="String"&&(g=!1)}else p=Je(h)&&h.name==="Boolean";v[0]=p,v[1]=g,(p||nn(v,"default"))&&s.push(f)}}const u=[i,s];return St(e)&&r.set(e,u),u}function v9(e){return e[0]!=="$"&&!zv(e)}const y5=e=>e==="_"||e==="_ctx"||e==="$stable",b5=e=>Ce(e)?e.map(to):[to(e)],Gre=(e,t,n)=>{if(t._n)return t;const r=ee((...a)=>b5(t(...a)),n);return r._c=!1,r},zz=(e,t,n)=>{const r=e._ctx;for(const a in e){if(y5(a))continue;const o=e[a];if(Je(o))t[a]=Gre(a,o,r);else if(o!=null){const i=b5(o);t[a]=()=>i}}},Fz=(e,t)=>{const n=b5(t);e.slots.default=()=>n},Hz=(e,t,n)=>{for(const r in t)(n||!y5(r))&&(e[r]=t[r])},Ure=(e,t,n)=>{const r=e.slots=Nz();if(e.vnode.shapeFlag&32){const a=t._;a?(Hz(r,t,n),n&&D$(r,"_",a,!0)):zz(t,r)}else t&&Fz(e,t)},Kre=(e,t,n)=>{const{vnode:r,slots:a}=e;let o=!0,i=Rn;if(r.shapeFlag&32){const s=t._;s?n&&s===1?o=!1:Hz(a,t,n):(o=!t.$stable,zz(t,a)),i=t}else t&&(Fz(e,t),i={default:1});if(o)for(const s in a)!y5(s)&&i[s]==null&&delete a[s]};function jre(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(gm().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Lr=Xz;function Wz(e){return Uz(e)}function Gz(e){return Uz(e,Jne)}function Uz(e,t){jre();const n=gm();n.__VUE__=!0;const{insert:r,remove:a,patchProp:o,createElement:i,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:v=cn,insertStaticContent:h}=e,p=(J,ae,fe,ve=null,me=null,pe=null,Ne=void 0,Ee=null,_e=!!ae.dynamicChildren)=>{if(J===ae)return;J&&!yi(J,ae)&&(ve=oe(J),U(J,me,pe,!0),J=null),ae.patchFlag===-2&&(_e=!1,ae.dynamicChildren=null);const{type:be,ref:Fe,shapeFlag:Oe}=ae;switch(be){case ks:g(J,ae,fe,ve);break;case $n:m(J,ae,fe,ve);break;case Bf:J==null&&y(ae,fe,ve,Ne);break;case qe:A(J,ae,fe,ve,me,pe,Ne,Ee,_e);break;default:Oe&1?S(J,ae,fe,ve,me,pe,Ne,Ee,_e):Oe&6?I(J,ae,fe,ve,me,pe,Ne,Ee,_e):(Oe&64||Oe&128)&&be.process(J,ae,fe,ve,me,pe,Ne,Ee,_e,ie)}Fe!=null&&me?Gv(Fe,J&&J.ref,pe,ae||J,!ae):Fe==null&&J&&J.ref!=null&&Gv(J.ref,null,pe,J,!0)},g=(J,ae,fe,ve)=>{if(J==null)r(ae.el=s(ae.children),fe,ve);else{const me=ae.el=J.el;ae.children!==J.children&&u(me,ae.children)}},m=(J,ae,fe,ve)=>{J==null?r(ae.el=l(ae.children||""),fe,ve):ae.el=J.el},y=(J,ae,fe,ve)=>{[J.el,J.anchor]=h(J.children,ae,fe,ve,J.el,J.anchor)},b=({el:J,anchor:ae},fe,ve)=>{let me;for(;J&&J!==ae;)me=d(J),r(J,fe,ve),J=me;r(ae,fe,ve)},w=({el:J,anchor:ae})=>{let fe;for(;J&&J!==ae;)fe=d(J),a(J),J=fe;a(ae)},S=(J,ae,fe,ve,me,pe,Ne,Ee,_e)=>{if(ae.type==="svg"?Ne="svg":ae.type==="math"&&(Ne="mathml"),J==null)x(ae,fe,ve,me,pe,Ne,Ee,_e);else{const be=J.el&&J.el._isVueCE?J.el:null;try{be&&be._beginPatch(),M(J,ae,me,pe,Ne,Ee,_e)}finally{be&&be._endPatch()}}},x=(J,ae,fe,ve,me,pe,Ne,Ee)=>{let _e,be;const{props:Fe,shapeFlag:Oe,transition:Ze,dirs:nt}=J;if(_e=J.el=i(J.type,pe,Fe&&Fe.is,Fe),Oe&8?c(_e,J.children):Oe&16&&T(J.children,_e,null,ve,me,Q4(J,pe),Ne,Ee),nt&&ds(J,null,ve,"created"),C(_e,J,J.scopeId,Ne,ve),Fe){for(const je in Fe)je!=="value"&&!zv(je)&&o(_e,je,null,Fe[je],pe,ve);"value"in Fe&&o(_e,"value",null,Fe.value,pe),(be=Fe.onVnodeBeforeMount)&&eo(be,ve,J)}nt&&ds(J,null,ve,"beforeMount");const xe=Kz(me,Ze);xe&&Ze.beforeEnter(_e),r(_e,ae,fe),((be=Fe&&Fe.onVnodeMounted)||xe||nt)&&Lr(()=>{be&&eo(be,ve,J),xe&&Ze.enter(_e),nt&&ds(J,null,ve,"mounted")},me)},C=(J,ae,fe,ve,me)=>{if(fe&&v(J,fe),ve)for(let pe=0;pe<ve.length;pe++)v(J,ve[pe]);if(me){let pe=me.subTree;if(ae===pe||hb(pe.type)&&(pe.ssContent===ae||pe.ssFallback===ae)){const Ne=me.vnode;C(J,Ne,Ne.scopeId,Ne.slotScopeIds,me.parent)}}},T=(J,ae,fe,ve,me,pe,Ne,Ee,_e=0)=>{for(let be=_e;be<J.length;be++){const Fe=J[be]=Ee?Au(J[be]):to(J[be]);p(null,Fe,ae,fe,ve,me,pe,Ne,Ee)}},M=(J,ae,fe,ve,me,pe,Ne)=>{const Ee=ae.el=J.el;let{patchFlag:_e,dynamicChildren:be,dirs:Fe}=ae;_e|=J.patchFlag&16;const Oe=J.props||Rn,Ze=ae.props||Rn;let nt;if(fe&&kc(fe,!1),(nt=Ze.onVnodeBeforeUpdate)&&eo(nt,fe,ae,J),Fe&&ds(ae,J,fe,"beforeUpdate"),fe&&kc(fe,!0),(Oe.innerHTML&&Ze.innerHTML==null||Oe.textContent&&Ze.textContent==null)&&c(Ee,""),be?k(J.dynamicChildren,be,Ee,fe,ve,Q4(ae,me),pe):Ne||L(J,ae,Ee,null,fe,ve,Q4(ae,me),pe,!1),_e>0){if(_e&16)E(Ee,Oe,Ze,fe,me);else if(_e&2&&Oe.class!==Ze.class&&o(Ee,"class",null,Ze.class,me),_e&4&&o(Ee,"style",Oe.style,Ze.style,me),_e&8){const xe=ae.dynamicProps;for(let je=0;je<xe.length;je++){const Ke=xe[je],en=Oe[Ke],Qe=Ze[Ke];(Qe!==en||Ke==="value")&&o(Ee,Ke,en,Qe,me,fe)}}_e&1&&J.children!==ae.children&&c(Ee,ae.children)}else!Ne&&be==null&&E(Ee,Oe,Ze,fe,me);((nt=Ze.onVnodeUpdated)||Fe)&&Lr(()=>{nt&&eo(nt,fe,ae,J),Fe&&ds(ae,J,fe,"updated")},ve)},k=(J,ae,fe,ve,me,pe,Ne)=>{for(let Ee=0;Ee<ae.length;Ee++){const _e=J[Ee],be=ae[Ee],Fe=_e.el&&(_e.type===qe||!yi(_e,be)||_e.shapeFlag&198)?f(_e.el):fe;p(_e,be,Fe,null,ve,me,pe,Ne,!0)}},E=(J,ae,fe,ve,me)=>{if(ae!==fe){if(ae!==Rn)for(const pe in ae)!zv(pe)&&!(pe in fe)&&o(J,pe,ae[pe],null,me,ve);for(const pe in fe){if(zv(pe))continue;const Ne=fe[pe],Ee=ae[pe];Ne!==Ee&&pe!=="value"&&o(J,pe,Ee,Ne,me,ve)}"value"in fe&&o(J,"value",ae.value,fe.value,me)}},A=(J,ae,fe,ve,me,pe,Ne,Ee,_e)=>{const be=ae.el=J?J.el:s(""),Fe=ae.anchor=J?J.anchor:s("");let{patchFlag:Oe,dynamicChildren:Ze,slotScopeIds:nt}=ae;nt&&(Ee=Ee?Ee.concat(nt):nt),J==null?(r(be,fe,ve),r(Fe,fe,ve),T(ae.children||[],fe,Fe,me,pe,Ne,Ee,_e)):Oe>0&&Oe&64&&Ze&&J.dynamicChildren&&J.dynamicChildren.length===Ze.length?(k(J.dynamicChildren,Ze,fe,me,pe,Ne,Ee),(ae.key!=null||me&&ae===me.subTree)&&_5(J,ae,!0)):L(J,ae,fe,Fe,me,pe,Ne,Ee,_e)},I=(J,ae,fe,ve,me,pe,Ne,Ee,_e)=>{ae.slotScopeIds=Ee,J==null?ae.shapeFlag&512?me.ctx.activate(ae,fe,ve,Ne,_e):O(ae,fe,ve,me,pe,Ne,_e):z(J,ae,_e)},O=(J,ae,fe,ve,me,pe,Ne)=>{const Ee=J.component=eF(J,ve,me);if(bm(J)&&(Ee.ctx.renderer=ie),nF(Ee,!1,Ne),Ee.asyncDep){if(me&&me.registerDep(Ee,$,Ne),!J.el){const _e=Ee.subTree=Q($n);m(null,_e,ae,fe),J.placeholder=_e.el}}else $(Ee,J,ae,fe,me,pe,Ne)},z=(J,ae,fe)=>{const ve=ae.component=J.component;if(zre(J,ae,fe))if(ve.asyncDep&&!ve.asyncResolved){P(ve,ae,fe);return}else ve.next=ae,ve.update();else ae.el=J.el,ve.vnode=ae},$=(J,ae,fe,ve,me,pe,Ne)=>{const Ee=()=>{if(J.isMounted){let{next:Oe,bu:Ze,u:nt,parent:xe,vnode:je}=J;{const mt=jz(J);if(mt){Oe&&(Oe.el=je.el,P(J,Oe,Ne)),mt.asyncDep.then(()=>{J.isUnmounted||Ee()});return}}let Ke=Oe,en;kc(J,!1),Oe?(Oe.el=je.el,P(J,Oe,Ne)):Oe=je,Ze&&Hv(Ze),(en=Oe.props&&Oe.props.onVnodeBeforeUpdate)&&eo(en,xe,Oe,je),kc(J,!0);const Qe=p2(J),Ct=J.subTree;J.subTree=Qe,p(Ct,Qe,f(Ct.el),oe(Ct),J,me,pe),Oe.el=Qe.el,Ke===null&&pw(J,Qe.el),nt&&Lr(nt,me),(en=Oe.props&&Oe.props.onVnodeUpdated)&&Lr(()=>eo(en,xe,Oe,je),me)}else{let Oe;const{el:Ze,props:nt}=ae,{bm:xe,m:je,parent:Ke,root:en,type:Qe}=J,Ct=El(ae);if(kc(J,!1),xe&&Hv(xe),!Ct&&(Oe=nt&&nt.onVnodeBeforeMount)&&eo(Oe,Ke,ae),kc(J,!0),Ze&&se){const mt=()=>{J.subTree=p2(J),se(Ze,J.subTree,J,me,null)};Ct&&Qe.__asyncHydrate?Qe.__asyncHydrate(Ze,J,mt):mt()}else{en.ce&&en.ce._def.shadowRoot!==!1&&en.ce._injectChildStyle(Qe);const mt=J.subTree=p2(J);p(null,mt,fe,ve,J,me,pe),ae.el=mt.el}if(je&&Lr(je,me),!Ct&&(Oe=nt&&nt.onVnodeMounted)){const mt=ae;Lr(()=>eo(Oe,Ke,mt),me)}(ae.shapeFlag&256||Ke&&El(Ke.vnode)&&Ke.vnode.shapeFlag&256)&&J.a&&Lr(J.a,me),J.isMounted=!0,ae=fe=ve=null}};J.scope.on();const _e=J.effect=new ag(Ee);J.scope.off();const be=J.update=_e.run.bind(_e),Fe=J.job=_e.runIfDirty.bind(_e);Fe.i=J,Fe.id=J.uid,_e.scheduler=()=>u5(Fe),kc(J,!0),be()},P=(J,ae,fe)=>{ae.component=J;const ve=J.vnode.props;J.vnode=ae,J.next=null,Hre(J,ae.props,ve,fe),Kre(J,ae.children,fe),Bs(),JE(J),Vs()},L=(J,ae,fe,ve,me,pe,Ne,Ee,_e=!1)=>{const be=J&&J.children,Fe=J?J.shapeFlag:0,Oe=ae.children,{patchFlag:Ze,shapeFlag:nt}=ae;if(Ze>0){if(Ze&128){B(be,Oe,fe,ve,me,pe,Ne,Ee,_e);return}else if(Ze&256){V(be,Oe,fe,ve,me,pe,Ne,Ee,_e);return}}nt&8?(Fe&16&&te(be,me,pe),Oe!==be&&c(fe,Oe)):Fe&16?nt&16?B(be,Oe,fe,ve,me,pe,Ne,Ee,_e):te(be,me,pe,!0):(Fe&8&&c(fe,""),nt&16&&T(Oe,fe,ve,me,pe,Ne,Ee,_e))},V=(J,ae,fe,ve,me,pe,Ne,Ee,_e)=>{J=J||Vv,ae=ae||Vv;const be=J.length,Fe=ae.length,Oe=Math.min(be,Fe);let Ze;for(Ze=0;Ze<Oe;Ze++){const nt=ae[Ze]=_e?Au(ae[Ze]):to(ae[Ze]);p(J[Ze],nt,fe,null,me,pe,Ne,Ee,_e)}be>Fe?te(J,me,pe,!0,!1,Oe):T(ae,fe,ve,me,pe,Ne,Ee,_e,Oe)},B=(J,ae,fe,ve,me,pe,Ne,Ee,_e)=>{let be=0;const Fe=ae.length;let Oe=J.length-1,Ze=Fe-1;for(;be<=Oe&&be<=Ze;){const nt=J[be],xe=ae[be]=_e?Au(ae[be]):to(ae[be]);if(yi(nt,xe))p(nt,xe,fe,null,me,pe,Ne,Ee,_e);else break;be++}for(;be<=Oe&&be<=Ze;){const nt=J[Oe],xe=ae[Ze]=_e?Au(ae[Ze]):to(ae[Ze]);if(yi(nt,xe))p(nt,xe,fe,null,me,pe,Ne,Ee,_e);else break;Oe--,Ze--}if(be>Oe){if(be<=Ze){const nt=Ze+1,xe=nt<Fe?ae[nt].el:ve;for(;be<=Ze;)p(null,ae[be]=_e?Au(ae[be]):to(ae[be]),fe,xe,me,pe,Ne,Ee,_e),be++}}else if(be>Ze)for(;be<=Oe;)U(J[be],me,pe,!0),be++;else{const nt=be,xe=be,je=new Map;for(be=xe;be<=Ze;be++){const He=ae[be]=_e?Au(ae[be]):to(ae[be]);He.key!=null&&je.set(He.key,be)}let Ke,en=0;const Qe=Ze-xe+1;let Ct=!1,mt=0;const Nt=new Array(Qe);for(be=0;be<Qe;be++)Nt[be]=0;for(be=nt;be<=Oe;be++){const He=J[be];if(en>=Qe){U(He,me,pe,!0);continue}let ge;if(He.key!=null)ge=je.get(He.key);else for(Ke=xe;Ke<=Ze;Ke++)if(Nt[Ke-xe]===0&&yi(He,ae[Ke])){ge=Ke;break}ge===void 0?U(He,me,pe,!0):(Nt[ge-xe]=be+1,ge>=mt?mt=ge:Ct=!0,p(He,ae[ge],fe,null,me,pe,Ne,Ee,_e),en++)}const Te=Ct?Yre(Nt):Vv;for(Ke=Te.length-1,be=Qe-1;be>=0;be--){const He=xe+be,ge=ae[He],tt=ae[He+1],Bt=He+1<Fe?tt.el||Yz(tt):ve;Nt[be]===0?p(null,ge,fe,Bt,me,pe,Ne,Ee,_e):Ct&&(Ke<0||be!==Te[Ke]?F(ge,fe,Bt,2):Ke--)}}},F=(J,ae,fe,ve,me=null)=>{const{el:pe,type:Ne,transition:Ee,children:_e,shapeFlag:be}=J;if(be&6){F(J.component.subTree,ae,fe,ve);return}if(be&128){J.suspense.move(ae,fe,ve);return}if(be&64){Ne.move(J,ae,fe,ie);return}if(Ne===qe){r(pe,ae,fe);for(let Oe=0;Oe<_e.length;Oe++)F(_e[Oe],ae,fe,ve);r(J.anchor,ae,fe);return}if(Ne===Bf){b(J,ae,fe);return}if(ve!==2&&be&1&&Ee)if(ve===0)Ee.beforeEnter(pe),r(pe,ae,fe),Lr(()=>Ee.enter(pe),me);else{const{leave:Oe,delayLeave:Ze,afterLeave:nt}=Ee,xe=()=>{J.ctx.isUnmounted?a(pe):r(pe,ae,fe)},je=()=>{pe._isLeaving&&pe[yl](!0),Oe(pe,()=>{xe(),nt&&nt()})};Ze?Ze(pe,xe,je):je()}else r(pe,ae,fe)},U=(J,ae,fe,ve=!1,me=!1)=>{const{type:pe,props:Ne,ref:Ee,children:_e,dynamicChildren:be,shapeFlag:Fe,patchFlag:Oe,dirs:Ze,cacheIndex:nt}=J;if(Oe===-2&&(me=!1),Ee!=null&&(Bs(),Gv(Ee,null,fe,J,!0),Vs()),nt!=null&&(ae.renderCache[nt]=void 0),Fe&256){ae.ctx.deactivate(J);return}const xe=Fe&1&&Ze,je=!El(J);let Ke;if(je&&(Ke=Ne&&Ne.onVnodeBeforeUnmount)&&eo(Ke,ae,J),Fe&6)X(J.component,fe,ve);else{if(Fe&128){J.suspense.unmount(fe,ve);return}xe&&ds(J,null,ae,"beforeUnmount"),Fe&64?J.type.remove(J,ae,fe,ie,ve):be&&!be.hasOnce&&(pe!==qe||Oe>0&&Oe&64)?te(be,ae,fe,!1,!0):(pe===qe&&Oe&384||!me&&Fe&16)&&te(_e,ae,fe),ve&&G(J)}(je&&(Ke=Ne&&Ne.onVnodeUnmounted)||xe)&&Lr(()=>{Ke&&eo(Ke,ae,J),xe&&ds(J,null,ae,"unmounted")},fe)},G=J=>{const{type:ae,el:fe,anchor:ve,transition:me}=J;if(ae===qe){Y(fe,ve);return}if(ae===Bf){w(J);return}const pe=()=>{a(fe),me&&!me.persisted&&me.afterLeave&&me.afterLeave()};if(J.shapeFlag&1&&me&&!me.persisted){const{leave:Ne,delayLeave:Ee}=me,_e=()=>Ne(fe,pe);Ee?Ee(J.el,pe,_e):_e()}else pe()},Y=(J,ae)=>{let fe;for(;J!==ae;)fe=d(J),a(J),J=fe;a(ae)},X=(J,ae,fe)=>{const{bum:ve,scope:me,job:pe,subTree:Ne,um:Ee,m:_e,a:be}=J;vb(_e),vb(be),ve&&Hv(ve),me.stop(),pe&&(pe.flags|=8,U(Ne,J,ae,fe)),Ee&&Lr(Ee,ae),Lr(()=>{J.isUnmounted=!0},ae)},te=(J,ae,fe,ve=!1,me=!1,pe=0)=>{for(let Ne=pe;Ne<J.length;Ne++)U(J[Ne],ae,fe,ve,me)},oe=J=>{if(J.shapeFlag&6)return oe(J.component.subTree);if(J.shapeFlag&128)return J.suspense.next();const ae=d(J.anchor||J.el),fe=ae&&ae[dz];return fe?d(fe):ae};let re=!1;const ce=(J,ae,fe)=>{let ve;J==null?ae._vnode&&(U(ae._vnode,null,null,!0),ve=ae._vnode.component):p(ae._vnode||null,J,ae,null,null,null,fe),ae._vnode=J,re||(re=!0,JE(ve),cb(),re=!1)},ie={p,um:U,m:F,r:G,mt:O,mc:T,pc:L,pbc:k,n:oe,o:e};let Z,se;return t&&([Z,se]=t(ie)),{render:ce,hydrate:Z,createApp:Pre(ce,Z)}}function Q4({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 kc({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Kz(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function _5(e,t,n=!1){const r=e.children,a=t.children;if(Ce(r)&&Ce(a))for(let o=0;o<r.length;o++){const i=r[o];let s=a[o];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=a[o]=Au(a[o]),s.el=i.el),!n&&s.patchFlag!==-2&&_5(i,s)),s.type===ks&&(s.patchFlag!==-1?s.el=i.el:s.__elIndex=o+(e.type===qe?1:0)),s.type===$n&&!s.el&&(s.el=i.el)}}function Yre(e){const t=e.slice(),n=[0];let r,a,o,i,s;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(a=n[n.length-1],e[a]<u){t[r]=a,n.push(r);continue}for(o=0,i=n.length-1;o<i;)s=o+i>>1,e[n[s]]<u?o=s+1:i=s;u<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function jz(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:jz(t)}function vb(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Yz(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Yz(t.subTree):null}const hb=e=>e.__isSuspense;let S8=0;const qre={name:"Suspense",__isSuspense:!0,process(e,t,n,r,a,o,i,s,l,u){if(e==null)Zre(t,n,r,a,o,i,s,l,u);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Jre(e,t,n,r,a,i,s,l,u)}},hydrate:Qre,normalize:eae},Xre=qre;function fg(e,t){const n=e.props&&e.props[t];Je(n)&&n()}function Zre(e,t,n,r,a,o,i,s,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=qz(e,a,r,t,f,n,o,i,s,l);u(null,d.pendingBranch=e.ssContent,f,null,r,d,o,i),d.deps>0?(fg(e,"onPending"),fg(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,i),Uv(d,e.ssFallback)):d.resolve(!1,!0)}function Jre(e,t,n,r,a,o,i,s,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,v=t.ssFallback,{activeBranch:h,pendingBranch:p,isInFallback:g,isHydrating:m}=f;if(p)f.pendingBranch=d,yi(p,d)?(l(p,d,f.hiddenContainer,null,a,f,o,i,s),f.deps<=0?f.resolve():g&&(m||(l(h,v,n,r,a,null,o,i,s),Uv(f,v)))):(f.pendingId=S8++,m?(f.isHydrating=!1,f.activeBranch=p):u(p,a,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),g?(l(null,d,f.hiddenContainer,null,a,f,o,i,s),f.deps<=0?f.resolve():(l(h,v,n,r,a,null,o,i,s),Uv(f,v))):h&&yi(h,d)?(l(h,d,n,r,a,f,o,i,s),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,a,f,o,i,s),f.deps<=0&&f.resolve()));else if(h&&yi(h,d))l(h,d,n,r,a,f,o,i,s),Uv(f,d);else if(fg(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=S8++,l(null,d,f.hiddenContainer,null,a,f,o,i,s),f.deps<=0)f.resolve();else{const{timeout:y,pendingId:b}=f;y>0?setTimeout(()=>{f.pendingId===b&&f.fallback(v)},y):y===0&&f.fallback(v)}}function qz(e,t,n,r,a,o,i,s,l,u,c=!1){const{p:f,m:d,um:v,n:h,o:{parentNode:p,remove:g}}=u;let m;const y=tae(e);y&&t&&t.pendingBranch&&(m=t.pendingId,t.deps++);const b=e.props?ib(e.props.timeout):void 0,w=o,S={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:a,deps:0,pendingId:S8++,timeout:typeof b=="number"?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(x=!1,C=!1){const{vnode:T,activeBranch:M,pendingBranch:k,pendingId:E,effects:A,parentComponent:I,container:O,isInFallback:z}=S;let $=!1;S.isHydrating?S.isHydrating=!1:x||($=M&&k.transition&&k.transition.mode==="out-in",$&&(M.transition.afterLeave=()=>{E===S.pendingId&&(d(k,O,o===w?h(M):o,0),sg(A),z&&T.ssFallback&&(T.ssFallback.el=null))}),M&&(p(M.el)===O&&(o=h(M)),v(M,I,S,!0),!$&&z&&T.ssFallback&&Lr(()=>T.ssFallback.el=null,S)),$||d(k,O,o,0)),Uv(S,k),S.pendingBranch=null,S.isInFallback=!1;let P=S.parent,L=!1;for(;P;){if(P.pendingBranch){P.effects.push(...A),L=!0;break}P=P.parent}!L&&!$&&sg(A),S.effects=[],y&&t&&t.pendingBranch&&m===t.pendingId&&(t.deps--,t.deps===0&&!C&&t.resolve()),fg(T,"onResolve")},fallback(x){if(!S.pendingBranch)return;const{vnode:C,activeBranch:T,parentComponent:M,container:k,namespace:E}=S;fg(C,"onFallback");const A=h(T),I=()=>{S.isInFallback&&(f(null,x,k,A,M,null,E,s,l),Uv(S,x))},O=x.transition&&x.transition.mode==="out-in";O&&(T.transition.afterLeave=I),S.isInFallback=!0,v(T,M,null,!0),O||I()},move(x,C,T){S.activeBranch&&d(S.activeBranch,x,C,T),S.container=x},next(){return S.activeBranch&&h(S.activeBranch)},registerDep(x,C,T){const M=!!S.pendingBranch;M&&S.deps++;const k=x.vnode.el;x.asyncDep.catch(E=>{bd(E,x,0)}).then(E=>{if(x.isUnmounted||S.isUnmounted||S.pendingId!==x.suspenseId)return;x.asyncResolved=!0;const{vnode:A}=x;T8(x,E,!1),k&&(A.el=k);const I=!k&&x.subTree.el;C(x,A,p(k||x.subTree.el),k?null:h(x.subTree),S,i,T),I&&(A.placeholder=null,g(I)),pw(x,A.el),M&&--S.deps===0&&S.resolve()})},unmount(x,C){S.isUnmounted=!0,S.activeBranch&&v(S.activeBranch,n,x,C),S.pendingBranch&&v(S.pendingBranch,n,x,C)}};return S}function Qre(e,t,n,r,a,o,i,s,l){const u=t.suspense=qz(t,r,n,e.parentNode,document.createElement("div"),null,a,o,i,s,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,o,i);return u.deps===0&&u.resolve(!1,!0),c}function eae(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=h9(r?n.default:n),e.ssFallback=r?h9(n.fallback):Q($n)}function h9(e){let t;if(Je(e)){const n=Jf&&e._c;n&&(e._d=!1,D()),e=e(),n&&(e._d=!0,t=Ta,Zz())}return Ce(e)&&(e=Bre(e)),e=to(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Xz(e,t){t&&t.pendingBranch?Ce(e)?t.effects.push(...e):t.effects.push(e):sg(e)}function Uv(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let a=t.el;for(;!a&&t.component;)t=t.component.subTree,a=t.el;n.el=a,r&&r.subTree===n&&(r.vnode.el=a,pw(r,a))}function tae(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const qe=Symbol.for("v-fgt"),ks=Symbol.for("v-txt"),$n=Symbol.for("v-cmt"),Bf=Symbol.for("v-stc"),N0=[];let Ta=null;function D(e=!1){N0.push(Ta=e?null:[])}function Zz(){N0.pop(),Ta=N0[N0.length-1]||null}let Jf=1;function dg(e,t=!1){Jf+=e,e<0&&Ta&&t&&(Ta.hasOnce=!0)}function Jz(e){return e.dynamicChildren=Jf>0?Ta||Vv:null,Zz(),Jf>0&&Ta&&Ta.push(e),e}function H(e,t,n,r,a,o){return Jz(N(e,t,n,r,a,o,!0))}function de(e,t,n,r,a){return Jz(Q(e,t,n,r,a,!0))}function wn(e){return e?e.__v_isVNode===!0:!1}function yi(e,t){return e.type===t.type&&e.key===t.key}function nae(e){}const Qz=({key:e})=>e??null,g2=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ge(e)||Dn(e)||Je(e)?{i:sa,r:e,k:t,f:!!n}:e:null);function N(e,t=null,n=null,r=0,a=null,o=e===qe?0:1,i=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Qz(t),ref:t&&g2(t),scopeId:fw,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:o,patchFlag:r,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:sa};return s?(w5(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Ge(n)?8:16),Jf>0&&!i&&Ta&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Ta.push(l),l}const Q=rae;function rae(e,t=null,n=null,r=0,a=null,o=!1){if((!e||e===Az)&&(e=$n),wn(e)){const s=Li(e,t,!0);return n&&w5(s,n),Jf>0&&!o&&Ta&&(s.shapeFlag&6?Ta[Ta.indexOf(e)]=s:Ta.push(s)),s.patchFlag=-2,s}if(vae(e)&&(e=e.__vccOpts),t){t=Ms(t);let{class:s,style:l}=t;s&&!Ge(s)&&(t.class=W(s)),St(l)&&(mm(l)&&!Ce(l)&&(l=qn({},l)),t.style=et(l))}const i=Ge(e)?1:hb(e)?128:vz(e)?64:St(e)?4:Je(e)?2:0;return N(e,t,n,r,a,i,o,!0)}function Ms(e){return e?mm(e)||Bz(e)?qn({},e):e:null}function Li(e,t,n=!1,r=!1){const{props:a,ref:o,patchFlag:i,children:s,transition:l}=e,u=t?It(a||{},t):a,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Qz(u),ref:t&&t.ref?n&&o?Ce(o)?o.concat(g2(t)):[o,g2(t)]:g2(t):o,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!==qe?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Li(e.ssContent),ssFallback:e.ssFallback&&Li(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Nl(c,l.clone(c)),c}function gt(e=" ",t=0){return Q(ks,null,e,t)}function aae(e,t){const n=Q(Bf,null,e);return n.staticCount=t,n}function le(e="",t=!1){return t?(D(),de($n,null,e)):Q($n,null,e)}function to(e){return e==null||typeof e=="boolean"?Q($n):Ce(e)?Q(qe,null,e.slice()):wn(e)?Au(e):Q(ks,null,String(e))}function Au(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Li(e)}function w5(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ce(t))n=16;else if(typeof t=="object")if(r&65){const a=t.default;a&&(a._c&&(a._d=!1),w5(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!Bz(t)?t._ctx=sa:a===3&&sa&&(sa.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Je(t)?(t={default:t,_ctx:sa},n=32):(t=String(t),r&64?(n=16,t=[gt(t)]):n=8);e.children=t,e.shapeFlag|=n}function It(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const a in r)if(a==="class")t.class!==r.class&&(t.class=W([t.class,r.class]));else if(a==="style")t.style=et([t.style,r.style]);else if(pm(a)){const o=t[a],i=r[a];i&&o!==i&&!(Ce(o)&&o.includes(i))&&(t[a]=o?[].concat(o,i):i)}else a!==""&&(t[a]=r[a])}return t}function eo(e,t,n,r=null){ri(e,t,7,[n,r])}const oae=Dz();let iae=0;function eF(e,t,n){const r=e.type,a=(t?t.appContext:e.appContext)||oae,o={uid:iae++,vnode:e,type:r,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new n5(!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:$z(r,a),emitsOptions:Rz(r,a),emit:null,emitted:null,propsDefaults:Rn,inheritAttrs:r.inheritAttrs,ctx:Rn,data:Rn,props:Rn,attrs:Rn,slots:Rn,refs:Rn,setupState:Rn,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=Ore.bind(null,o),e.ce&&e.ce(o),o}let oa=null;const bt=()=>oa||sa;let pb,x8;{const e=gm(),t=(n,r)=>{let a;return(a=e[n])||(a=e[n]=[]),a.push(r),o=>{a.length>1?a.forEach(i=>i(o)):a[0](o)}};pb=t("__VUE_INSTANCE_SETTERS__",n=>oa=n),x8=t("__VUE_SSR_SETTERS__",n=>lh=n)}const Qf=e=>{const t=oa;return pb(e),e.scope.on(),()=>{e.scope.off(),pb(t)}},C8=()=>{oa&&oa.scope.off(),pb(null)};function tF(e){return e.vnode.shapeFlag&4}let lh=!1;function nF(e,t=!1,n=!1){t&&x8(t);const{props:r,children:a}=e.vnode,o=tF(e);Fre(e,r,o,t),Ure(e,a,n||t);const i=o?sae(e,t):void 0;return t&&x8(!1),i}function sae(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,y8);const{setup:r}=n;if(r){Bs();const a=e.setupContext=r.length>1?aF(e):null,o=Qf(e),i=yd(r,e,0,[e.props,a]),s=tc(i);if(Vs(),o(),(s||e.sp)&&!El(e)&&d5(e),s){if(i.then(C8,C8),t)return i.then(l=>{T8(e,l,t)}).catch(l=>{bd(l,e,0)});e.asyncDep=i}else T8(e,i,t)}else rF(e,t)}function T8(e,t,n){Je(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:St(t)&&(e.setupState=l5(t)),rF(e,n)}let gb,k8;function lae(e){gb=e,k8=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,pre))}}const uae=()=>!gb;function rF(e,t,n){const r=e.type;if(!e.render){if(!t&&gb&&!r.render){const a=r.template||m5(e).template;if(a){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=qn(qn({isCustomElement:o,delimiters:s},i),l);r.render=gb(a,u)}}e.render=r.render||cn,k8&&k8(e)}{const a=Qf(e);Bs();try{Mre(e)}finally{Vs(),a()}}}const cae={get(e,t){return _a(e,"get",""),e[t]}};function aF(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,cae),slots:e.slots,emit:e.emit,expose:t}}function Cm(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(l5(Ts(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in O0)return O0[n](e)},has(t,n){return n in t||n in O0}})):e.proxy}const fae=/(?:^|[-_])\w/g,dae=e=>e.replace(fae,t=>t.toUpperCase()).replace(/[-_]/g,"");function mb(e,t=!0){return Je(e)?e.displayName||e.name:e.name||t&&e.__name}function oF(e,t,n=!1){let r=mb(t);if(!r&&t.__file){const a=t.__file.match(/([^/\\]+)\.\w+$/);a&&(r=a[1])}if(!r&&e){const a=o=>{for(const i in o)if(o[i]===t)return i};r=a(e.components)||e.parent&&a(e.parent.type.components)||a(e.appContext.components)}return r?dae(r):n?"App":"Anonymous"}function vae(e){return Je(e)&&"__vccOpts"in e}const R=(e,t)=>Cne(e,t,lh);function ot(e,t,n){try{dg(-1);const r=arguments.length;return r===2?St(t)&&!Ce(t)?wn(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&wn(n)&&(n=[n]),Q(e,t,n))}finally{dg(1)}}function hae(){}function pae(e,t,n,r){const a=n[r];if(a&&iF(a,e))return a;const o=t();return o.memo=e.slice(),o.cacheIndex=r,n[r]=o}function iF(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(za(n[r],t[r]))return!1;return Jf>0&&Ta&&Ta.push(e),!0}const sF="3.5.26",lF=cn,gae=Bne,mae=_v,yae=sz,bae={createComponentInstance:eF,setupComponent:nF,renderComponentRoot:p2,setCurrentRenderingInstance:ug,isVNode:wn,normalizeVNode:to,getComponentPublicInstance:Cm,ensureValidVNode:g5,pushWarningContext:Ene,popWarningContext:Ine},_ae=bae,wae=null,Sae=null,xae=null;/**
|
||
* @vue/runtime-dom v3.5.26
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let M8;const p9=typeof window<"u"&&window.trustedTypes;if(p9)try{M8=p9.createPolicy("vue",{createHTML:e=>e})}catch{}const uF=M8?e=>M8.createHTML(e):e=>e,Cae="http://www.w3.org/2000/svg",Tae="http://www.w3.org/1998/Math/MathML",pl=typeof document<"u"?document:null,g9=pl&&pl.createElement("template"),cF={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const a=t==="svg"?pl.createElementNS(Cae,e):t==="mathml"?pl.createElementNS(Tae,e):n?pl.createElement(e,{is:n}):pl.createElement(e);return e==="select"&&r&&r.multiple!=null&&a.setAttribute("multiple",r.multiple),a},createText:e=>pl.createTextNode(e),createComment:e=>pl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,a,o){const i=n?n.previousSibling:t.lastChild;if(a&&(a===o||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),n),!(a===o||!(a=a.nextSibling)););else{g9.innerHTML=uF(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const s=g9.content;if(r==="svg"||r==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},iu="transition",xp="animation",uh=Symbol("_vtc"),fF={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},dF=qn({},f5,fF),kae=e=>(e.displayName="Transition",e.props=dF,e),Ur=kae((e,{slots:t})=>ot(bz,vF(e),t)),Mc=(e,t=[])=>{Ce(e)?e.forEach(n=>n(...t)):e&&e(...t)},m9=e=>e?Ce(e)?e.some(t=>t.length>1):e.length>1:!1;function vF(e){const t={};for(const A in e)A in fF||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:r,duration:a,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=i,appearToClass:c=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,h=Mae(a),p=h&&h[0],g=h&&h[1],{onBeforeEnter:m,onEnter:y,onEnterCancelled:b,onLeave:w,onLeaveCancelled:S,onBeforeAppear:x=m,onAppear:C=y,onAppearCancelled:T=b}=t,M=(A,I,O,z)=>{A._enterCancelled=z,yu(A,I?c:s),yu(A,I?u:i),O&&O()},k=(A,I)=>{A._isLeaving=!1,yu(A,f),yu(A,v),yu(A,d),I&&I()},E=A=>(I,O)=>{const z=A?C:y,$=()=>M(I,A,O);Mc(z,[I,$]),y9(()=>{yu(I,A?l:o),ls(I,A?c:s),m9(z)||b9(I,r,p,$)})};return qn(t,{onBeforeEnter(A){Mc(m,[A]),ls(A,o),ls(A,i)},onBeforeAppear(A){Mc(x,[A]),ls(A,l),ls(A,u)},onEnter:E(!1),onAppear:E(!0),onLeave(A,I){A._isLeaving=!0;const O=()=>k(A,I);ls(A,f),A._enterCancelled?(ls(A,d),A8(A)):(A8(A),ls(A,d)),y9(()=>{A._isLeaving&&(yu(A,f),ls(A,v),m9(w)||b9(A,r,g,O))}),Mc(w,[A,O])},onEnterCancelled(A){M(A,!1,void 0,!0),Mc(b,[A])},onAppearCancelled(A){M(A,!0,void 0,!0),Mc(T,[A])},onLeaveCancelled(A){k(A),Mc(S,[A])}})}function Mae(e){if(e==null)return null;if(St(e))return[e3(e.enter),e3(e.leave)];{const t=e3(e);return[t,t]}}function e3(e){return ib(e)}function ls(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[uh]||(e[uh]=new Set)).add(t)}function yu(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[uh];n&&(n.delete(t),n.size||(e[uh]=void 0))}function y9(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Aae=0;function b9(e,t,n,r){const a=e._endId=++Aae,o=()=>{a===e._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:i,timeout:s,propCount:l}=hF(e,t);if(!i)return r();const u=i+"end";let c=0;const f=()=>{e.removeEventListener(u,d),o()},d=v=>{v.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},s+1),e.addEventListener(u,d)}function hF(e,t){const n=window.getComputedStyle(e),r=h=>(n[h]||"").split(", "),a=r(`${iu}Delay`),o=r(`${iu}Duration`),i=_9(a,o),s=r(`${xp}Delay`),l=r(`${xp}Duration`),u=_9(s,l);let c=null,f=0,d=0;t===iu?i>0&&(c=iu,f=i,d=o.length):t===xp?u>0&&(c=xp,f=u,d=l.length):(f=Math.max(i,u),c=f>0?i>u?iu:xp:null,d=c?c===iu?o.length:l.length:0);const v=c===iu&&/\b(?:transform|all)(?:,|$)/.test(r(`${iu}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:v}}function _9(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>w9(n)+w9(e[r])))}function w9(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function A8(e){return(e?e.ownerDocument:document).body.offsetHeight}function Eae(e,t,n){const r=e[uh];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const yb=Symbol("_vod"),pF=Symbol("_vsh"),tn={name:"show",beforeMount(e,{value:t},{transition:n}){e[yb]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Cp(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),Cp(e,!0),r.enter(e)):r.leave(e,()=>{Cp(e,!1)}):Cp(e,t))},beforeUnmount(e,{value:t}){Cp(e,t)}};function Cp(e,t){e.style.display=t?e[yb]:"none",e[pF]=!t}function Iae(){tn.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const gF=Symbol("");function Lae(e){const t=bt();if(!t)return;const n=t.ut=(a=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>bb(o,a))},r=()=>{const a=e(t.proxy);t.ce?bb(t.ce,a):E8(t.subTree,a),n(a)};Sm(()=>{sg(r)}),Et(()=>{he(r,cn,{flush:"post"});const a=new MutationObserver(r);a.observe(t.subTree.el.parentNode,{childList:!0}),mc(()=>a.disconnect())})}function E8(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{E8(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)bb(e.el,t);else if(e.type===qe)e.children.forEach(n=>E8(n,t));else if(e.type===Bf){let{el:n,anchor:r}=e;for(;n&&(bb(n,t),n!==r);)n=n.nextSibling}}function bb(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const a in t){const o=N$(t[a]);n.setProperty(`--${a}`,o),r+=`--${a}: ${o};`}n[gF]=r}}const Dae=/(?:^|;)\s*display\s*:/;function Pae(e,t,n){const r=e.style,a=Ge(n);let o=!1;if(n&&!a){if(t)if(Ge(t))for(const i of t.split(";")){const s=i.slice(0,i.indexOf(":")).trim();n[s]==null&&m2(r,s,"")}else for(const i in t)n[i]==null&&m2(r,i,"");for(const i in n)i==="display"&&(o=!0),m2(r,i,n[i])}else if(a){if(t!==n){const i=r[gF];i&&(n+=";"+i),r.cssText=n,o=Dae.test(n)}}else t&&e.removeAttribute("style");yb in e&&(e[yb]=o?r.display:"",e[pF]&&(r.display="none"))}const S9=/\s*!important$/;function m2(e,t,n){if(Ce(n))n.forEach(r=>m2(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Rae(e,t);S9.test(n)?e.setProperty(Sa(r),n.replace(S9,""),"important"):e[r]=n}}const x9=["Webkit","Moz","ms"],t3={};function Rae(e,t){const n=t3[t];if(n)return n;let r=Or(t);if(r!=="filter"&&r in e)return t3[t]=r;r=Gh(r);for(let a=0;a<x9.length;a++){const o=x9[a]+r;if(o in e)return t3[t]=o}return t}const C9="http://www.w3.org/1999/xlink";function T9(e,t,n,r,a,o=Hte(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(C9,t.slice(6,t.length)):e.setAttributeNS(C9,t,n):n==null||o&&!t5(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Ei(n)?String(n):n)}function k9(e,t,n,r,a){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?uF(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const s=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(s!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const s=typeof e[t];s==="boolean"?n=t5(n):n==null&&s==="string"?(n="",i=!0):s==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(a||t)}function Sl(e,t,n,r){e.addEventListener(t,n,r)}function Oae(e,t,n,r){e.removeEventListener(t,n,r)}const M9=Symbol("_vei");function Nae(e,t,n,r,a=null){const o=e[M9]||(e[M9]={}),i=o[t];if(r&&i)i.value=r;else{const[s,l]=Bae(t);if(r){const u=o[t]=zae(r,a);Sl(e,s,u,l)}else i&&(Oae(e,s,i,l),o[t]=void 0)}}const A9=/(?:Once|Passive|Capture)$/;function Bae(e){let t;if(A9.test(e)){t={};let r;for(;r=e.match(A9);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Sa(e.slice(2)),t]}let n3=0;const Vae=Promise.resolve(),$ae=()=>n3||(Vae.then(()=>n3=0),n3=Date.now());function zae(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ri(Fae(r,n.value),t,5,[r])};return n.value=e,n.attached=$ae(),n}function Fae(e,t){if(Ce(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>a=>!a._stopped&&r&&r(a))}else return t}const E9=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,mF=(e,t,n,r,a,o)=>{const i=a==="svg";t==="class"?Eae(e,r,i):t==="style"?Pae(e,n,r):pm(t)?QT(t)||Nae(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Hae(e,t,r,i))?(k9(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&T9(e,t,r,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ge(r))?k9(e,Or(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),T9(e,t,r,i))};function Hae(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&E9(t)&&Je(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"){const a=e.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return E9(t)&&Ge(n)?!1:t in e}const I9={};function yF(e,t,n){let r=q(e,t);Zf(r)&&(r=qn({},r,t));class a extends gw{constructor(i){super(r,i,n)}}return a.def=r,a}const Wae=(e,t)=>yF(e,t,EF),Gae=typeof HTMLElement<"u"?HTMLElement:class{};class gw extends Gae{constructor(t,n={},r=vg){super(),this._def=t,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==vg?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(qn({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof gw){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,ze(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const n of t)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(r,a=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:i}=r;let s;if(o&&!Ce(o))for(const l in o){const u=o[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=ib(this._props[l])),(s||(s=Object.create(null)))[Or(l)]=!0)}this._numberProps=s,this._resolveProps(r),this.shadowRoot&&this._applyStyles(i),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>{r.configureApp=this._def.configureApp,t(this._def=r,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)nn(this,r)||Object.defineProperty(this,r,{get:()=>_(n[r])})}_resolveProps(t){const{props:n}=t,r=Ce(n)?n:Object.keys(n||{});for(const a of Object.keys(this))a[0]!=="_"&&r.includes(a)&&this._setProp(a,this[a]);for(const a of r.map(Or))Object.defineProperty(this,a,{get(){return this._getProp(a)},set(o){this._setProp(a,o,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let r=n?this.getAttribute(t):I9;const a=Or(t);n&&this._numberProps&&this._numberProps[a]&&(r=ib(r)),this._setProp(a,r,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,a=!1){if(n!==this._props[t]&&(this._dirty=!0,n===I9?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),a&&this._instance&&this._update(),r)){const o=this._ob;o&&(this._processMutations(o.takeRecords()),o.disconnect()),n===!0?this.setAttribute(Sa(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Sa(t),n+""):n||this.removeAttribute(Sa(t)),o&&o.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),zs(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=Q(this._def,qn(t,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const a=(o,i)=>{this.dispatchEvent(new CustomEvent(o,Zf(i[0])?qn({detail:i},i[0]):{detail:i}))};r.emit=(o,...i)=>{a(o,i),Sa(o)!==o&&a(Sa(o),i)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let a=t.length-1;a>=0;a--){const o=document.createElement("style");r&&o.setAttribute("nonce",r),o.textContent=t[a],this.shadowRoot.prepend(o)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(t[r]||(t[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=this._getSlots(),n=this._instance.type.__scopeId;for(let r=0;r<t.length;r++){const a=t[r],o=a.getAttribute("name")||"default",i=this._slots[o],s=a.parentNode;if(i)for(const l of i){if(n&&l.nodeType===1){const u=n+"-s",c=document.createTreeWalker(l,1);l.setAttribute(u,"");let f;for(;f=c.nextNode();)f.setAttribute(u,"")}s.insertBefore(l,a)}else for(;a.firstChild;)s.insertBefore(a.firstChild,a);s.removeChild(a)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const n=new Set;for(const r of t){const a=r.querySelectorAll("slot");for(let o=0;o<a.length;o++)n.add(a[o])}return Array.from(n)}_injectChildStyle(t){this._applyStyles(t.styles,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_removeChildStyle(t){}}function bF(e){const t=bt(),n=t&&t.ce;return n||null}function Uae(){const e=bF();return e&&e.shadowRoot}function Kae(e="$style"){{const t=bt();if(!t)return Rn;const n=t.type.__cssModules;if(!n)return Rn;const r=n[e];return r||Rn}}const _F=new WeakMap,wF=new WeakMap,_b=Symbol("_moveCb"),L9=Symbol("_enterCb"),jae=e=>(delete e.props.mode,e),Yae=jae({name:"TransitionGroup",props:qn({},dF,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=bt(),r=c5();let a,o;return Lo(()=>{if(!a.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!Jae(a[0].el,n.vnode.el,i)){a=[];return}a.forEach(qae),a.forEach(Xae);const s=a.filter(Zae);A8(n.vnode.el),s.forEach(l=>{const u=l.el,c=u.style;ls(u,i),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[_b]=d=>{d&&d.target!==u||(!d||d.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",f),u[_b]=null,yu(u,i))};u.addEventListener("transitionend",f)}),a=[]}),()=>{const i=Cn(e),s=vF(i);let l=i.tag||qe;if(a=[],o)for(let u=0;u<o.length;u++){const c=o[u];c.el&&c.el instanceof Element&&(a.push(c),Nl(c,sh(c,s,r,n)),_F.set(c,{left:c.el.offsetLeft,top:c.el.offsetTop}))}o=t.default?dw(t.default()):[];for(let u=0;u<o.length;u++){const c=o[u];c.key!=null&&Nl(c,sh(c,s,r,n))}return Q(l,null,o)}}}),S5=Yae;function qae(e){const t=e.el;t[_b]&&t[_b](),t[L9]&&t[L9]()}function Xae(e){wF.set(e,{left:e.el.offsetLeft,top:e.el.offsetTop})}function Zae(e){const t=_F.get(e),n=wF.get(e),r=t.left-n.left,a=t.top-n.top;if(r||a){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${a}px)`,o.transitionDuration="0s",e}}function Jae(e,t,n){const r=e.cloneNode(),a=e[uh];a&&a.forEach(s=>{s.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=hF(r);return o.removeChild(r),i}const ac=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ce(t)?n=>Hv(t,n):t};function Qae(e){e.target.composing=!0}function D9(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ei=Symbol("_assign");function P9(e,t,n){return t&&(e=e.trim()),n&&(e=aw(e)),e}const oc={created(e,{modifiers:{lazy:t,trim:n,number:r}},a){e[ei]=ac(a);const o=r||a.props&&a.props.type==="number";Sl(e,t?"change":"input",i=>{i.target.composing||e[ei](P9(e.value,n,o))}),(n||o)&&Sl(e,"change",()=>{e.value=P9(e.value,n,o)}),t||(Sl(e,"compositionstart",Qae),Sl(e,"compositionend",D9),Sl(e,"change",D9))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:a,number:o}},i){if(e[ei]=ac(i),e.composing)return;const s=(o||e.type==="number")&&!/^0\d/.test(e.value)?aw(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||a&&e.value.trim()===l)||(e.value=l))}},Tm={deep:!0,created(e,t,n){e[ei]=ac(n),Sl(e,"change",()=>{const r=e._modelValue,a=ch(e),o=e.checked,i=e[ei];if(Ce(r)){const s=ow(r,a),l=s!==-1;if(o&&!l)i(r.concat(a));else if(!o&&l){const u=[...r];u.splice(s,1),i(u)}}else if(md(r)){const s=new Set(r);o?s.add(a):s.delete(a),i(s)}else i(xF(e,o))})},mounted:R9,beforeUpdate(e,t,n){e[ei]=ac(n),R9(e,t,n)}};function R9(e,{value:t,oldValue:n},r){e._modelValue=t;let a;if(Ce(t))a=ow(t,r.props.value)>-1;else if(md(t))a=t.has(r.props.value);else{if(t===n)return;a=nc(t,xF(e,!0))}e.checked!==a&&(e.checked=a)}const km={created(e,{value:t},n){e.checked=nc(t,n.props.value),e[ei]=ac(n),Sl(e,"change",()=>{e[ei](ch(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[ei]=ac(r),t!==n&&(e.checked=nc(t,r.props.value))}},SF={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const a=md(t);Sl(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?aw(ch(i)):ch(i));e[ei](e.multiple?a?new Set(o):o:o[0]),e._assigning=!0,ze(()=>{e._assigning=!1})}),e[ei]=ac(r)},mounted(e,{value:t}){O9(e,t)},beforeUpdate(e,t,n){e[ei]=ac(n)},updated(e,{value:t}){e._assigning||O9(e,t)}};function O9(e,t){const n=e.multiple,r=Ce(t);if(!(n&&!r&&!md(t))){for(let a=0,o=e.options.length;a<o;a++){const i=e.options[a],s=ch(i);if(n)if(r){const l=typeof s;l==="string"||l==="number"?i.selected=t.some(u=>String(u)===String(s)):i.selected=ow(t,s)>-1}else i.selected=t.has(s);else if(nc(ch(i),t)){e.selectedIndex!==a&&(e.selectedIndex=a);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ch(e){return"_value"in e?e._value:e.value}function xF(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const CF={created(e,t,n){R1(e,t,n,null,"created")},mounted(e,t,n){R1(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){R1(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){R1(e,t,n,r,"updated")}};function TF(e,t){switch(e){case"SELECT":return SF;case"TEXTAREA":return oc;default:switch(t){case"checkbox":return Tm;case"radio":return km;default:return oc}}}function R1(e,t,n,r,a){const i=TF(e.tagName,n.props&&n.props.type)[a];i&&i(e,t,n,r)}function eoe(){oc.getSSRProps=({value:e})=>({value:e}),km.getSSRProps=({value:e},t)=>{if(t.props&&nc(t.props.value,e))return{checked:!0}},Tm.getSSRProps=({value:e},t)=>{if(Ce(e)){if(t.props&&ow(e,t.props.value)>-1)return{checked:!0}}else if(md(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},CF.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=TF(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const toe=["ctrl","shift","alt","meta"],noe={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>toe.some(n=>e[`${n}Key`]&&!t.includes(n))},ut=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(a,...o)=>{for(let i=0;i<t.length;i++){const s=noe[t[i]];if(s&&s(a,t))return}return e(a,...o)})},roe={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Wn=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=a=>{if(!("key"in a))return;const o=Sa(a.key);if(t.some(i=>i===o||roe[i]===o))return e(a)})},kF=qn({patchProp:mF},cF);let B0,N9=!1;function MF(){return B0||(B0=Wz(kF))}function AF(){return B0=N9?B0:Gz(kF),N9=!0,B0}const zs=(...e)=>{MF().render(...e)},aoe=(...e)=>{AF().hydrate(...e)},vg=(...e)=>{const t=MF().createApp(...e),{mount:n}=t;return t.mount=r=>{const a=LF(r);if(!a)return;const o=t._component;!Je(o)&&!o.render&&!o.template&&(o.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const i=n(a,!1,IF(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),i},t},EF=(...e)=>{const t=AF().createApp(...e),{mount:n}=t;return t.mount=r=>{const a=LF(r);if(a)return n(a,!0,IF(a))},t};function IF(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function LF(e){return Ge(e)?document.querySelector(e):e}let B9=!1;const ooe=()=>{B9||(B9=!0,eoe(),Iae())};/**
|
||
* vue v3.5.26
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/const ioe=()=>{},soe=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:bz,BaseTransitionPropsValidators:f5,Comment:$n,DeprecationTypes:xae,EffectScope:n5,ErrorCodes:Nne,ErrorTypeStrings:gae,Fragment:qe,KeepAlive:dre,ReactiveEffect:ag,Static:Bf,Suspense:Xre,Teleport:pz,Text:ks,TrackOpTypes:Tne,Transition:Ur,TransitionGroup:S5,TriggerOpTypes:kne,VueElement:gw,assertNumber:One,callWithAsyncErrorHandling:ri,callWithErrorHandling:yd,camelize:Or,capitalize:Gh,cloneVNode:Li,compatUtils:Sae,compile:ioe,computed:R,createApp:vg,createBlock:de,createCommentVNode:le,createElementBlock:H,createElementVNode:N,createHydrationRenderer:Gz,createPropsRestProxy:Tre,createRenderer:Wz,createSSRApp:EF,createSlots:Ua,createStaticVNode:aae,createTextVNode:gt,createVNode:Q,customRef:ez,defineAsyncComponent:cre,defineComponent:q,defineCustomElement:yF,defineEmits:mre,defineExpose:yre,defineModel:wre,defineOptions:bre,defineProps:gre,defineSSRCustomElement:Wae,defineSlots:_re,devtools:mae,effect:Xte,effectScope:B$,getCurrentInstance:bt,getCurrentScope:r5,getCurrentWatcher:Mne,getTransitionRawChildren:dw,guardReactiveProps:Ms,h:ot,handleError:bd,hasInjectionContext:Wne,hydrate:aoe,hydrateOnIdle:are,hydrateOnInteraction:lre,hydrateOnMediaQuery:sre,hydrateOnVisible:ire,initCustomFormatter:hae,initDirectivesForSSR:ooe,inject:Ue,isMemoSame:iF,isProxy:mm,isReactive:Al,isReadonly:$s,isRef:Dn,isRuntimeOnly:uae,isShallow:so,isVNode:wn,markRaw:Ts,mergeDefaults:xre,mergeModels:Cre,mergeProps:It,nextTick:ze,nodeOps:cF,normalizeClass:W,normalizeProps:Cs,normalizeStyle:et,onActivated:_m,onBeforeMount:wm,onBeforeUnmount:un,onBeforeUpdate:Sm,onDeactivated:v5,onErrorCaptured:Mz,onMounted:Et,onRenderTracked:kz,onRenderTriggered:Tz,onScopeDispose:a5,onServerPrefetch:Cz,onUnmounted:mc,onUpdated:Lo,onWatcherCleanup:nz,openBlock:D,patchProp:mF,popScopeId:Fne,provide:Ut,proxyRefs:l5,pushScopeId:zne,queuePostFlushCb:sg,reactive:sn,readonly:rc,ref:K,registerRuntimeCompiler:lae,render:zs,renderList:Wt,renderSlot:ue,resolveComponent:Ft,resolveDirective:xm,resolveDynamicComponent:Tt,resolveFilter:wae,resolveTransitionHooks:sh,setBlockTracking:dg,setDevtoolsHook:yae,setTransitionHooks:Nl,shallowReactive:uw,shallowReadonly:gne,shallowRef:Ln,ssrContextKey:lz,ssrUtils:_ae,stop:Zte,toDisplayString:Ae,toHandlerKey:Fv,toHandlers:Ez,toRaw:Cn,toRef:vn,toRefs:kr,toValue:yne,transformVNodeArgs:nae,triggerRef:P0,unref:_,useAttrs:el,useCssModule:Kae,useCssVars:Lae,useHost:bF,useId:Yne,useModel:Rre,useSSRContext:uz,useShadowRoot:Uae,useSlots:fr,useTemplateRef:qne,useTransitionState:c5,vModelCheckbox:Tm,vModelDynamic:CF,vModelRadio:km,vModelSelect:SF,vModelText:oc,vShow:tn,version:sF,warn:lF,watch:he,watchEffect:Ga,watchPostEffect:Gne,watchSyncEffect:cz,withAsyncContext:kre,withCtx:ee,withDefaults:Sre,withDirectives:xt,withKeys:Wn,withMemo:pae,withModifiers:ut,withScopeId:Hne},Symbol.toStringTag,{value:"Module"}));function DF(e,t){return function(){return e.apply(t,arguments)}}const{toString:loe}=Object.prototype,{getPrototypeOf:x5}=Object,{iterator:mw,toStringTag:PF}=Symbol,yw=(e=>t=>{const n=loe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fi=e=>(e=e.toLowerCase(),t=>yw(t)===e),bw=e=>t=>typeof t===e,{isArray:Uh}=Array,fh=bw("undefined");function Mm(e){return e!==null&&!fh(e)&&e.constructor!==null&&!fh(e.constructor)&&lo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const RF=Fi("ArrayBuffer");function uoe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&RF(e.buffer),t}const coe=bw("string"),lo=bw("function"),OF=bw("number"),Am=e=>e!==null&&typeof e=="object",foe=e=>e===!0||e===!1,y2=e=>{if(yw(e)!=="object")return!1;const t=x5(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(PF in e)&&!(mw in e)},doe=e=>{if(!Am(e)||Mm(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},voe=Fi("Date"),hoe=Fi("File"),poe=Fi("Blob"),goe=Fi("FileList"),moe=e=>Am(e)&&lo(e.pipe),yoe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||lo(e.append)&&((t=yw(e))==="formdata"||t==="object"&&lo(e.toString)&&e.toString()==="[object FormData]"))},boe=Fi("URLSearchParams"),[_oe,woe,Soe,xoe]=["ReadableStream","Request","Response","Headers"].map(Fi),Coe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Em(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),Uh(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(Mm(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(r=0;r<i;r++)s=o[r],t.call(null,e[s],s,e)}}function NF(e,t){if(Mm(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const bf=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),BF=e=>!fh(e)&&e!==bf;function I8(){const{caseless:e,skipUndefined:t}=BF(this)&&this||{},n={},r=(a,o)=>{const i=e&&NF(n,o)||o;y2(n[i])&&y2(a)?n[i]=I8(n[i],a):y2(a)?n[i]=I8({},a):Uh(a)?n[i]=a.slice():(!t||!fh(a))&&(n[i]=a)};for(let a=0,o=arguments.length;a<o;a++)arguments[a]&&Em(arguments[a],r);return n}const Toe=(e,t,n,{allOwnKeys:r}={})=>(Em(t,(a,o)=>{n&&lo(a)?e[o]=DF(a,n):e[o]=a},{allOwnKeys:r}),e),koe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Moe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Aoe=(e,t,n,r)=>{let a,o,i;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)i=a[o],(!r||r(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=n!==!1&&x5(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Eoe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Ioe=e=>{if(!e)return null;if(Uh(e))return e;let t=e.length;if(!OF(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Loe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&x5(Uint8Array)),Doe=(e,t)=>{const r=(e&&e[mw]).call(e);let a;for(;(a=r.next())&&!a.done;){const o=a.value;t.call(e,o[0],o[1])}},Poe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Roe=Fi("HTMLFormElement"),Ooe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),V9=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Noe=Fi("RegExp"),VF=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Em(n,(a,o)=>{let i;(i=t(a,o,e))!==!1&&(r[o]=i||a)}),Object.defineProperties(e,r)},Boe=e=>{VF(e,(t,n)=>{if(lo(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(lo(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Voe=(e,t)=>{const n={},r=a=>{a.forEach(o=>{n[o]=!0})};return Uh(e)?r(e):r(String(e).split(t)),n},$oe=()=>{},zoe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Foe(e){return!!(e&&lo(e.append)&&e[PF]==="FormData"&&e[mw])}const Hoe=e=>{const t=new Array(10),n=(r,a)=>{if(Am(r)){if(t.indexOf(r)>=0)return;if(Mm(r))return r;if(!("toJSON"in r)){t[a]=r;const o=Uh(r)?[]:{};return Em(r,(i,s)=>{const l=n(i,a+1);!fh(l)&&(o[s]=l)}),t[a]=void 0,o}}return r};return n(e,0)},Woe=Fi("AsyncFunction"),Goe=e=>e&&(Am(e)||lo(e))&&lo(e.then)&&lo(e.catch),$F=((e,t)=>e?setImmediate:t?((n,r)=>(bf.addEventListener("message",({source:a,data:o})=>{a===bf&&o===n&&r.length&&r.shift()()},!1),a=>{r.push(a),bf.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",lo(bf.postMessage)),Uoe=typeof queueMicrotask<"u"?queueMicrotask.bind(bf):typeof process<"u"&&process.nextTick||$F,Koe=e=>e!=null&&lo(e[mw]),Be={isArray:Uh,isArrayBuffer:RF,isBuffer:Mm,isFormData:yoe,isArrayBufferView:uoe,isString:coe,isNumber:OF,isBoolean:foe,isObject:Am,isPlainObject:y2,isEmptyObject:doe,isReadableStream:_oe,isRequest:woe,isResponse:Soe,isHeaders:xoe,isUndefined:fh,isDate:voe,isFile:hoe,isBlob:poe,isRegExp:Noe,isFunction:lo,isStream:moe,isURLSearchParams:boe,isTypedArray:Loe,isFileList:goe,forEach:Em,merge:I8,extend:Toe,trim:Coe,stripBOM:koe,inherits:Moe,toFlatObject:Aoe,kindOf:yw,kindOfTest:Fi,endsWith:Eoe,toArray:Ioe,forEachEntry:Doe,matchAll:Poe,isHTMLForm:Roe,hasOwnProperty:V9,hasOwnProp:V9,reduceDescriptors:VF,freezeMethods:Boe,toObjectSet:Voe,toCamelCase:Ooe,noop:$oe,toFiniteNumber:zoe,findKey:NF,global:bf,isContextDefined:BF,isSpecCompliantForm:Foe,toJSONObject:Hoe,isAsyncFn:Woe,isThenable:Goe,setImmediate:$F,asap:Uoe,isIterable:Koe};function yn(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}Be.inherits(yn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Be.toJSONObject(this.config),code:this.code,status:this.status}}});const zF=yn.prototype,FF={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{FF[e]={value:e}});Object.defineProperties(yn,FF);Object.defineProperty(zF,"isAxiosError",{value:!0});yn.from=(e,t,n,r,a,o)=>{const i=Object.create(zF);Be.toFlatObject(e,i,function(c){return c!==Error.prototype},u=>u!=="isAxiosError");const s=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return yn.call(i,s,l,n,r,a),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",o&&Object.assign(i,o),i};const joe=null;function L8(e){return Be.isPlainObject(e)||Be.isArray(e)}function HF(e){return Be.endsWith(e,"[]")?e.slice(0,-2):e}function $9(e,t,n){return e?e.concat(t).map(function(a,o){return a=HF(a),!n&&o?"["+a+"]":a}).join(n?".":""):t}function Yoe(e){return Be.isArray(e)&&!e.some(L8)}const qoe=Be.toFlatObject(Be,{},null,function(t){return/^is[A-Z]/.test(t)});function _w(e,t,n){if(!Be.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Be.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,g){return!Be.isUndefined(g[p])});const r=n.metaTokens,a=n.visitor||c,o=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Be.isSpecCompliantForm(t);if(!Be.isFunction(a))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(Be.isDate(h))return h.toISOString();if(Be.isBoolean(h))return h.toString();if(!l&&Be.isBlob(h))throw new yn("Blob is not supported. Use a Buffer instead.");return Be.isArrayBuffer(h)||Be.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,p,g){let m=h;if(h&&!g&&typeof h=="object"){if(Be.endsWith(p,"{}"))p=r?p:p.slice(0,-2),h=JSON.stringify(h);else if(Be.isArray(h)&&Yoe(h)||(Be.isFileList(h)||Be.endsWith(p,"[]"))&&(m=Be.toArray(h)))return p=HF(p),m.forEach(function(b,w){!(Be.isUndefined(b)||b===null)&&t.append(i===!0?$9([p],w,o):i===null?p:p+"[]",u(b))}),!1}return L8(h)?!0:(t.append($9(g,p,o),u(h)),!1)}const f=[],d=Object.assign(qoe,{defaultVisitor:c,convertValue:u,isVisitable:L8});function v(h,p){if(!Be.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(h),Be.forEach(h,function(m,y){(!(Be.isUndefined(m)||m===null)&&a.call(t,m,Be.isString(y)?y.trim():y,p,d))===!0&&v(m,p?p.concat(y):[y])}),f.pop()}}if(!Be.isObject(e))throw new TypeError("data must be an object");return v(e),t}function z9(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function C5(e,t){this._pairs=[],e&&_w(e,this,t)}const WF=C5.prototype;WF.append=function(t,n){this._pairs.push([t,n])};WF.toString=function(t){const n=t?function(r){return t.call(this,r,z9)}:z9;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function Xoe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function GF(e,t,n){if(!t)return e;const r=n&&n.encode||Xoe;Be.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let o;if(a?o=a(t,n):o=Be.isURLSearchParams(t)?t.toString():new C5(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Zoe{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Be.forEach(this.handlers,function(r){r!==null&&t(r)})}}const F9=Zoe,UF={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Joe=typeof URLSearchParams<"u"?URLSearchParams:C5,Qoe=typeof FormData<"u"?FormData:null,eie=typeof Blob<"u"?Blob:null,tie={isBrowser:!0,classes:{URLSearchParams:Joe,FormData:Qoe,Blob:eie},protocols:["http","https","file","blob","url","data"]},T5=typeof window<"u"&&typeof document<"u",D8=typeof navigator=="object"&&navigator||void 0,nie=T5&&(!D8||["ReactNative","NativeScript","NS"].indexOf(D8.product)<0),rie=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),aie=T5&&window.location.href||"http://localhost",oie=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:T5,hasStandardBrowserEnv:nie,hasStandardBrowserWebWorkerEnv:rie,navigator:D8,origin:aie},Symbol.toStringTag,{value:"Module"})),xa={...oie,...tie};function iie(e,t){return _w(e,new xa.classes.URLSearchParams,{visitor:function(n,r,a,o){return xa.isNode&&Be.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function sie(e){return Be.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function lie(e){const t={},n=Object.keys(e);let r;const a=n.length;let o;for(r=0;r<a;r++)o=n[r],t[o]=e[o];return t}function KF(e){function t(n,r,a,o){let i=n[o++];if(i==="__proto__")return!0;const s=Number.isFinite(+i),l=o>=n.length;return i=!i&&Be.isArray(a)?a.length:i,l?(Be.hasOwnProp(a,i)?a[i]=[a[i],r]:a[i]=r,!s):((!a[i]||!Be.isObject(a[i]))&&(a[i]=[]),t(n,r,a[i],o)&&Be.isArray(a[i])&&(a[i]=lie(a[i])),!s)}if(Be.isFormData(e)&&Be.isFunction(e.entries)){const n={};return Be.forEachEntry(e,(r,a)=>{t(sie(r),a,n,0)}),n}return null}function uie(e,t,n){if(Be.isString(e))try{return(t||JSON.parse)(e),Be.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const k5={transitional:UF,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,o=Be.isObject(t);if(o&&Be.isHTMLForm(t)&&(t=new FormData(t)),Be.isFormData(t))return a?JSON.stringify(KF(t)):t;if(Be.isArrayBuffer(t)||Be.isBuffer(t)||Be.isStream(t)||Be.isFile(t)||Be.isBlob(t)||Be.isReadableStream(t))return t;if(Be.isArrayBufferView(t))return t.buffer;if(Be.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return iie(t,this.formSerializer).toString();if((s=Be.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return _w(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||a?(n.setContentType("application/json",!1),uie(t)):t}],transformResponse:[function(t){const n=this.transitional||k5.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(Be.isResponse(t)||Be.isReadableStream(t))return t;if(t&&Be.isString(t)&&(r&&!this.responseType||a)){const i=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t,this.parseReviver)}catch(s){if(i)throw s.name==="SyntaxError"?yn.from(s,yn.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xa.classes.FormData,Blob:xa.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Be.forEach(["delete","get","head","post","put","patch"],e=>{k5.headers[e]={}});const M5=k5,cie=Be.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),fie=e=>{const t={};let n,r,a;return e&&e.split(`
|
||
`).forEach(function(i){a=i.indexOf(":"),n=i.substring(0,a).trim().toLowerCase(),r=i.substring(a+1).trim(),!(!n||t[n]&&cie[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},H9=Symbol("internals");function Tp(e){return e&&String(e).trim().toLowerCase()}function b2(e){return e===!1||e==null?e:Be.isArray(e)?e.map(b2):String(e)}function die(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const vie=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function r3(e,t,n,r,a){if(Be.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!Be.isString(t)){if(Be.isString(r))return t.indexOf(r)!==-1;if(Be.isRegExp(r))return r.test(t)}}function hie(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function pie(e,t){const n=Be.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,o,i){return this[r].call(this,t,a,o,i)},configurable:!0})})}class ww{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function o(s,l,u){const c=Tp(l);if(!c)throw new Error("header name must be a non-empty string");const f=Be.findKey(a,c);(!f||a[f]===void 0||u===!0||u===void 0&&a[f]!==!1)&&(a[f||l]=b2(s))}const i=(s,l)=>Be.forEach(s,(u,c)=>o(u,c,l));if(Be.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(Be.isString(t)&&(t=t.trim())&&!vie(t))i(fie(t),n);else if(Be.isObject(t)&&Be.isIterable(t)){let s={},l,u;for(const c of t){if(!Be.isArray(c))throw TypeError("Object iterator must return a key-value pair");s[u=c[0]]=(l=s[u])?Be.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}i(s,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=Tp(t),t){const r=Be.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return die(a);if(Be.isFunction(n))return n.call(this,a,r);if(Be.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Tp(t),t){const r=Be.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||r3(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function o(i){if(i=Tp(i),i){const s=Be.findKey(r,i);s&&(!n||r3(r,r[s],s,n))&&(delete r[s],a=!0)}}return Be.isArray(t)?t.forEach(o):o(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const o=n[r];(!t||r3(this,this[o],o,t,!0))&&(delete this[o],a=!0)}return a}normalize(t){const n=this,r={};return Be.forEach(this,(a,o)=>{const i=Be.findKey(r,o);if(i){n[i]=b2(a),delete n[o];return}const s=t?hie(o):String(o).trim();s!==o&&delete n[o],n[s]=b2(a),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Be.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&Be.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[H9]=this[H9]={accessors:{}}).accessors,a=this.prototype;function o(i){const s=Tp(i);r[s]||(pie(a,i),r[s]=!0)}return Be.isArray(t)?t.forEach(o):o(t),this}}ww.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Be.reduceDescriptors(ww.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Be.freezeMethods(ww);const Si=ww;function a3(e,t){const n=this||M5,r=t||n,a=Si.from(r.headers);let o=r.data;return Be.forEach(e,function(s){o=s.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function jF(e){return!!(e&&e.__CANCEL__)}function Kh(e,t,n){yn.call(this,e??"canceled",yn.ERR_CANCELED,t,n),this.name="CanceledError"}Be.inherits(Kh,yn,{__CANCEL__:!0});function YF(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new yn("Request failed with status code "+n.status,[yn.ERR_BAD_REQUEST,yn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function gie(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function mie(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];i||(i=u),n[a]=l,r[a]=u;let f=o,d=0;for(;f!==a;)d+=n[f++],f=f%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),u-i<t)return;const v=c&&u-c;return v?Math.round(d*1e3/v):void 0}}function yie(e,t){let n=0,r=1e3/t,a,o;const i=(u,c=Date.now())=>{n=c,a=null,o&&(clearTimeout(o),o=null),e(...u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?i(u,c):(a=u,o||(o=setTimeout(()=>{o=null,i(a)},r-f)))},()=>a&&i(a)]}const wb=(e,t,n=3)=>{let r=0;const a=mie(50,250);return yie(o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,l=i-r,u=a(l),c=i<=s;r=i;const f={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-i)/u:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},W9=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},G9=e=>(...t)=>Be.asap(()=>e(...t)),bie=xa.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,xa.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(xa.origin),xa.navigator&&/(msie|trident)/i.test(xa.navigator.userAgent)):()=>!0,_ie=xa.hasStandardBrowserEnv?{write(e,t,n,r,a,o,i){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];Be.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Be.isString(r)&&s.push(`path=${r}`),Be.isString(a)&&s.push(`domain=${a}`),o===!0&&s.push("secure"),Be.isString(i)&&s.push(`SameSite=${i}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function wie(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Sie(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function qF(e,t,n){let r=!wie(t);return e&&(r||n==!1)?Sie(e,t):t}const U9=e=>e instanceof Si?{...e}:e;function ed(e,t){t=t||{};const n={};function r(u,c,f,d){return Be.isPlainObject(u)&&Be.isPlainObject(c)?Be.merge.call({caseless:d},u,c):Be.isPlainObject(c)?Be.merge({},c):Be.isArray(c)?c.slice():c}function a(u,c,f,d){if(Be.isUndefined(c)){if(!Be.isUndefined(u))return r(void 0,u,f,d)}else return r(u,c,f,d)}function o(u,c){if(!Be.isUndefined(c))return r(void 0,c)}function i(u,c){if(Be.isUndefined(c)){if(!Be.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(u,c,f)=>a(U9(u),U9(c),f,!0)};return Be.forEach(Object.keys({...e,...t}),function(c){const f=l[c]||a,d=f(e[c],t[c],c);Be.isUndefined(d)&&f!==s||(n[c]=d)}),n}const XF=e=>{const t=ed({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:o,headers:i,auth:s}=t;if(t.headers=i=Si.from(i),t.url=GF(qF(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),Be.isFormData(n)){if(xa.hasStandardBrowserEnv||xa.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(Be.isFunction(n.getHeaders)){const l=n.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([c,f])=>{u.includes(c.toLowerCase())&&i.set(c,f)})}}if(xa.hasStandardBrowserEnv&&(r&&Be.isFunction(r)&&(r=r(t)),r||r!==!1&&bie(t.url))){const l=a&&o&&_ie.read(o);l&&i.set(a,l)}return t},xie=typeof XMLHttpRequest<"u",Cie=xie&&function(e){return new Promise(function(n,r){const a=XF(e);let o=a.data;const i=Si.from(a.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=a,c,f,d,v,h;function p(){v&&v(),h&&h(),a.cancelToken&&a.cancelToken.unsubscribe(c),a.signal&&a.signal.removeEventListener("abort",c)}let g=new XMLHttpRequest;g.open(a.method.toUpperCase(),a.url,!0),g.timeout=a.timeout;function m(){if(!g)return;const b=Si.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),S={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:b,config:e,request:g};YF(function(C){n(C),p()},function(C){r(C),p()},S),g=null}"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(m)},g.onabort=function(){g&&(r(new yn("Request aborted",yn.ECONNABORTED,e,g)),g=null)},g.onerror=function(w){const S=w&&w.message?w.message:"Network Error",x=new yn(S,yn.ERR_NETWORK,e,g);x.event=w||null,r(x),g=null},g.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const S=a.transitional||UF;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),r(new yn(w,S.clarifyTimeoutError?yn.ETIMEDOUT:yn.ECONNABORTED,e,g)),g=null},o===void 0&&i.setContentType(null),"setRequestHeader"in g&&Be.forEach(i.toJSON(),function(w,S){g.setRequestHeader(S,w)}),Be.isUndefined(a.withCredentials)||(g.withCredentials=!!a.withCredentials),s&&s!=="json"&&(g.responseType=a.responseType),u&&([d,h]=wb(u,!0),g.addEventListener("progress",d)),l&&g.upload&&([f,v]=wb(l),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",v)),(a.cancelToken||a.signal)&&(c=b=>{g&&(r(!b||b.type?new Kh(null,e,g):b),g.abort(),g=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));const y=gie(a.url);if(y&&xa.protocols.indexOf(y)===-1){r(new yn("Unsupported protocol "+y+":",yn.ERR_BAD_REQUEST,e));return}g.send(o||null)})},Tie=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const o=function(u){if(!a){a=!0,s();const c=u instanceof Error?u:this.reason;r.abort(c instanceof yn?c:new Kh(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{i=null,o(new yn(`timeout ${t} of ms exceeded`,yn.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>Be.asap(s),l}},kie=Tie,Mie=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},Aie=async function*(e,t){for await(const n of Eie(e))yield*Mie(n,t)},Eie=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},K9=(e,t,n,r)=>{const a=Aie(e,t);let o=0,i,s=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await a.next();if(u){s(),l.close();return}let f=c.byteLength;if(n){let d=o+=f;n(d)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),a.return()}},{highWaterMark:2})},j9=64*1024,{isFunction:O1}=Be,Iie=(({Request:e,Response:t})=>({Request:e,Response:t}))(Be.global),{ReadableStream:Y9,TextEncoder:q9}=Be.global,X9=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Lie=e=>{e=Be.merge.call({skipUndefined:!0},Iie,e);const{fetch:t,Request:n,Response:r}=e,a=t?O1(t):typeof fetch=="function",o=O1(n),i=O1(r);if(!a)return!1;const s=a&&O1(Y9),l=a&&(typeof q9=="function"?(h=>p=>h.encode(p))(new q9):async h=>new Uint8Array(await new n(h).arrayBuffer())),u=o&&s&&X9(()=>{let h=!1;const p=new n(xa.origin,{body:new Y9,method:"POST",get duplex(){return h=!0,"half"}}).headers.has("Content-Type");return h&&!p}),c=i&&s&&X9(()=>Be.isReadableStream(new r("").body)),f={stream:c&&(h=>h.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(h=>{!f[h]&&(f[h]=(p,g)=>{let m=p&&p[h];if(m)return m.call(p);throw new yn(`Response type '${h}' is not supported`,yn.ERR_NOT_SUPPORT,g)})});const d=async h=>{if(h==null)return 0;if(Be.isBlob(h))return h.size;if(Be.isSpecCompliantForm(h))return(await new n(xa.origin,{method:"POST",body:h}).arrayBuffer()).byteLength;if(Be.isArrayBufferView(h)||Be.isArrayBuffer(h))return h.byteLength;if(Be.isURLSearchParams(h)&&(h=h+""),Be.isString(h))return(await l(h)).byteLength},v=async(h,p)=>{const g=Be.toFiniteNumber(h.getContentLength());return g??d(p)};return async h=>{let{url:p,method:g,data:m,signal:y,cancelToken:b,timeout:w,onDownloadProgress:S,onUploadProgress:x,responseType:C,headers:T,withCredentials:M="same-origin",fetchOptions:k}=XF(h),E=t||fetch;C=C?(C+"").toLowerCase():"text";let A=kie([y,b&&b.toAbortSignal()],w),I=null;const O=A&&A.unsubscribe&&(()=>{A.unsubscribe()});let z;try{if(x&&u&&g!=="get"&&g!=="head"&&(z=await v(T,m))!==0){let F=new n(p,{method:"POST",body:m,duplex:"half"}),U;if(Be.isFormData(m)&&(U=F.headers.get("content-type"))&&T.setContentType(U),F.body){const[G,Y]=W9(z,wb(G9(x)));m=K9(F.body,j9,G,Y)}}Be.isString(M)||(M=M?"include":"omit");const $=o&&"credentials"in n.prototype,P={...k,signal:A,method:g.toUpperCase(),headers:T.normalize().toJSON(),body:m,duplex:"half",credentials:$?M:void 0};I=o&&new n(p,P);let L=await(o?E(I,k):E(p,P));const V=c&&(C==="stream"||C==="response");if(c&&(S||V&&O)){const F={};["status","statusText","headers"].forEach(X=>{F[X]=L[X]});const U=Be.toFiniteNumber(L.headers.get("content-length")),[G,Y]=S&&W9(U,wb(G9(S),!0))||[];L=new r(K9(L.body,j9,G,()=>{Y&&Y(),O&&O()}),F)}C=C||"text";let B=await f[Be.findKey(f,C)||"text"](L,h);return!V&&O&&O(),await new Promise((F,U)=>{YF(F,U,{data:B,headers:Si.from(L.headers),status:L.status,statusText:L.statusText,config:h,request:I})})}catch($){throw O&&O(),$&&$.name==="TypeError"&&/Load failed|fetch/i.test($.message)?Object.assign(new yn("Network Error",yn.ERR_NETWORK,h,I),{cause:$.cause||$}):yn.from($,$&&$.code,h,I)}}},Die=new Map,ZF=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:a}=t,o=[r,a,n];let i=o.length,s=i,l,u,c=Die;for(;s--;)l=o[s],u=c.get(l),u===void 0&&c.set(l,u=s?new Map:Lie(t)),c=u;return u};ZF();const A5={http:joe,xhr:Cie,fetch:{get:ZF}};Be.forEach(A5,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Z9=e=>`- ${e}`,Pie=e=>Be.isFunction(e)||e===null||e===!1;function Rie(e,t){e=Be.isArray(e)?e:[e];const{length:n}=e;let r,a;const o={};for(let i=0;i<n;i++){r=e[i];let s;if(a=r,!Pie(r)&&(a=A5[(s=String(r)).toLowerCase()],a===void 0))throw new yn(`Unknown adapter '${s}'`);if(a&&(Be.isFunction(a)||(a=a.get(t))))break;o[s||"#"+i]=a}if(!a){const i=Object.entries(o).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=n?i.length>1?`since :
|
||
`+i.map(Z9).join(`
|
||
`):" "+Z9(i[0]):"as no adapter specified";throw new yn("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return a}const JF={getAdapter:Rie,adapters:A5};function o3(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Kh(null,e)}function J9(e){return o3(e),e.headers=Si.from(e.headers),e.data=a3.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),JF.getAdapter(e.adapter||M5.adapter,e)(e).then(function(r){return o3(e),r.data=a3.call(e,e.transformResponse,r),r.headers=Si.from(r.headers),r},function(r){return jF(r)||(o3(e),r&&r.response&&(r.response.data=a3.call(e,e.transformResponse,r.response),r.response.headers=Si.from(r.response.headers))),Promise.reject(r)})}const QF="1.13.2",Sw={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Sw[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Q9={};Sw.transitional=function(t,n,r){function a(o,i){return"[Axios v"+QF+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,s)=>{if(t===!1)throw new yn(a(i," has been removed"+(n?" in "+n:"")),yn.ERR_DEPRECATED);return n&&!Q9[i]&&(Q9[i]=!0,console.warn(a(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,s):!0}};Sw.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Oie(e,t,n){if(typeof e!="object")throw new yn("options must be an object",yn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const o=r[a],i=t[o];if(i){const s=e[o],l=s===void 0||i(s,o,e);if(l!==!0)throw new yn("option "+o+" must be "+l,yn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new yn("Unknown option "+o,yn.ERR_BAD_OPTION)}}const _2={assertOptions:Oie,validators:Sw},es=_2.validators;class Sb{constructor(t){this.defaults=t||{},this.interceptors={request:new F9,response:new F9}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const o=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
||
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ed(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&_2.assertOptions(r,{silentJSONParsing:es.transitional(es.boolean),forcedJSONParsing:es.transitional(es.boolean),clarifyTimeoutError:es.transitional(es.boolean)},!1),a!=null&&(Be.isFunction(a)?n.paramsSerializer={serialize:a}:_2.assertOptions(a,{encode:es.function,serialize:es.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),_2.assertOptions(n,{baseUrl:es.spelling("baseURL"),withXsrfToken:es.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&Be.merge(o.common,o[n.method]);o&&Be.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=Si.concat(i,o);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,f=0,d;if(!l){const h=[J9.bind(this),void 0];for(h.unshift(...s),h.push(...u),d=h.length,c=Promise.resolve(n);f<d;)c=c.then(h[f++],h[f++]);return c}d=s.length;let v=n;for(;f<d;){const h=s[f++],p=s[f++];try{v=h(v)}catch(g){p.call(this,g);break}}try{c=J9.call(this,v)}catch(h){return Promise.reject(h)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=ed(this.defaults,t);const n=qF(t.baseURL,t.url,t.allowAbsoluteUrls);return GF(n,t.params,t.paramsSerializer)}}Be.forEach(["delete","get","head","options"],function(t){Sb.prototype[t]=function(n,r){return this.request(ed(r||{},{method:t,url:n,data:(r||{}).data}))}});Be.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,s){return this.request(ed(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Sb.prototype[t]=n(),Sb.prototype[t+"Form"]=n(!0)});const w2=Sb;class E5{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(a=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](a);r._listeners=null}),this.promise.then=a=>{let o;const i=new Promise(s=>{r.subscribe(s),o=s}).then(a);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,s){r.reason||(r.reason=new Kh(o,i,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new E5(function(a){t=a}),cancel:t}}}const Nie=E5;function Bie(e){return function(n){return e.apply(null,n)}}function Vie(e){return Be.isObject(e)&&e.isAxiosError===!0}const P8={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(P8).forEach(([e,t])=>{P8[t]=e});const $ie=P8;function eH(e){const t=new w2(e),n=DF(w2.prototype.request,t);return Be.extend(n,w2.prototype,t,{allOwnKeys:!0}),Be.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return eH(ed(e,a))},n}const Nr=eH(M5);Nr.Axios=w2;Nr.CanceledError=Kh;Nr.CancelToken=Nie;Nr.isCancel=jF;Nr.VERSION=QF;Nr.toFormData=_w;Nr.AxiosError=yn;Nr.Cancel=Nr.CanceledError;Nr.all=function(t){return Promise.all(t)};Nr.spread=Bie;Nr.isAxiosError=Vie;Nr.mergeConfig=ed;Nr.AxiosHeaders=Si;Nr.formToJSON=e=>KF(Be.isHTMLForm(e)?new FormData(e):e);Nr.getAdapter=JF.getAdapter;Nr.HttpStatusCode=$ie;Nr.default=Nr;const i3=Nr;/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */var R8=function(e,t){return R8=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},R8(e,t)};function ye(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");R8(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var zie=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Fie=function(){function e(){this.browser=new zie,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}(),bu=new Fie;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(bu.wxa=!0,bu.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?bu.worker=!0:!bu.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(bu.node=!0,bu.svgSupported=!0):Hie(navigator.userAgent,bu);function Hie(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),i=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),a&&(n.ie=!0,n.version=a[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),i&&(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);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in l||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}const kn=bu;var I5=12,tH="sans-serif",Bl=I5+"px "+tH,Wie=20,Gie=100,Uie="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Kie(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),a=(e.charCodeAt(n)-Wie)/Gie;t[r]=a}return t}var jie=Kie(Uie),Di={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,r){if(!e){var a=Di.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==r&&(t=e.font=r||Bl),e.measureText(n);n=n||"",r=r||Bl;var o=/((?:\d+)?\.?\d*)px/.exec(r),i=o&&+o[1]||I5,s=0;if(r.indexOf("mono")>=0)s=i*n.length;else for(var l=0;l<n.length;l++){var u=jie[n[l]];s+=u==null?i:u*i}return{width:s}}}(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},nH=Fs(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),rH=Fs(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),jh=Object.prototype.toString,xw=Array.prototype,Yie=xw.forEach,qie=xw.filter,L5=xw.slice,Xie=xw.map,eI=(function(){}).constructor,N1=eI?eI.prototype:null,D5="__proto__",Zie=2311;function aH(){return Zie++}function P5(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function Mt(e){if(e==null||typeof e!="object")return e;var t=e,n=jh.call(e);if(n==="[object Array]"){if(!V0(e)){t=[];for(var r=0,a=e.length;r<a;r++)t[r]=Mt(e[r])}}else if(rH[n]){if(!V0(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(var r=0,a=e.length;r<a;r++)t[r]=e[r]}}}else if(!nH[n]&&!V0(e)&&!dh(e)){t={};for(var i in e)e.hasOwnProperty(i)&&i!==D5&&(t[i]=Mt(e[i]))}return t}function Zt(e,t,n){if(!Rt(t)||!Rt(e))return n?Mt(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==D5){var a=e[r],o=t[r];Rt(o)&&Rt(a)&&!Ve(o)&&!Ve(a)&&!dh(o)&&!dh(a)&&!tI(o)&&!tI(a)&&!V0(o)&&!V0(a)?Zt(a,o,n):(n||!(r in e))&&(e[r]=Mt(t[r]))}return e}function R5(e,t){for(var n=e[0],r=1,a=e.length;r<a;r++)n=Zt(n,e[r],t);return n}function Pe(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==D5&&(e[n]=t[n]);return e}function Pt(e,t,n){for(var r=dn(t),a=0,o=r.length;a<o;a++){var i=r[a];(n?t[i]!=null:e[i]==null)&&(e[i]=t[i])}return e}function Xt(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 Jie(e,t){var n=e.prototype;function r(){}r.prototype=t.prototype,e.prototype=new r;for(var a in n)n.hasOwnProperty(a)&&(e.prototype[a]=n[a]);e.prototype.constructor=e,e.superClass=t}function Er(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),a=0;a<r.length;a++){var o=r[a];o!=="constructor"&&(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}else Pt(e,t,n)}function Ea(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function j(e,t,n){if(e&&t)if(e.forEach&&e.forEach===Yie)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,a=e.length;r<a;r++)t.call(n,e[r],r,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function $e(e,t,n){if(!e)return[];if(!t)return O5(e);if(e.map&&e.map===Xie)return e.map(t,n);for(var r=[],a=0,o=e.length;a<o;a++)r.push(t.call(n,e[a],a,e));return r}function Fs(e,t,n,r){if(e&&t){for(var a=0,o=e.length;a<o;a++)n=t.call(r,n,e[a],a,e);return n}}function In(e,t,n){if(!e)return[];if(!t)return O5(e);if(e.filter&&e.filter===qie)return e.filter(t,n);for(var r=[],a=0,o=e.length;a<o;a++)t.call(n,e[a],a,e)&&r.push(e[a]);return r}function _d(e,t,n){if(e&&t){for(var r=0,a=e.length;r<a;r++)if(t.call(n,e[r],r,e))return e[r]}}function dn(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 Qie(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(L5.call(arguments)))}}var lt=N1&&kt(N1.bind)?N1.call.bind(N1.bind):Qie;function Yt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(L5.call(arguments)))}}function Ve(e){return Array.isArray?Array.isArray(e):jh.call(e)==="[object Array]"}function kt(e){return typeof e=="function"}function st(e){return typeof e=="string"}function O8(e){return jh.call(e)==="[object String]"}function gn(e){return typeof e=="number"}function Rt(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function tI(e){return!!nH[jh.call(e)]}function vo(e){return!!rH[jh.call(e)]}function dh(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Cw(e){return e.colorStops!=null}function ese(e){return e.image!=null}function tse(e){return jh.call(e)==="[object RegExp]"}function Ma(e){return e!==e}function la(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(e[n]!=null)return e[n]}function yt(e,t){return e??t}function Mo(e,t,n){return e??t??n}function O5(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return L5.apply(e,t)}function Tw(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 Ia(e,t){if(!e)throw new Error(t)}function Xo(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var oH="__ec_primitive__";function xb(e){e[oH]=!0}function V0(e){return e[oH]}var nse=function(){function e(){this.data={}}return e.prototype.delete=function(t){var n=this.has(t);return n&&delete this.data[t],n},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,n){return this.data[t]=n,this},e.prototype.keys=function(){return dn(this.data)},e.prototype.forEach=function(t){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&t(n[r],r)},e}(),iH=typeof Map=="function";function rse(){return iH?new Map:new nse}var ase=function(){function e(t){var n=Ve(t);this.data=rse();var r=this;t instanceof e?t.each(a):t&&j(t,a);function a(o,i){n?r.set(o,i):r.set(i,o)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,n){return this.data.set(t,n),n},e.prototype.each=function(t,n){this.data.forEach(function(r,a){t.call(n,r,a)})},e.prototype.keys=function(){var t=this.data.keys();return iH?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function pt(e){return new ase(e)}function hg(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var a=e.length,r=0;r<t.length;r++)n[r+a]=t[r];return n}function kw(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&Pe(n,t),n}function sH(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function ft(e,t){return e.hasOwnProperty(t)}function br(){}var S2=180/Math.PI;function wd(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Ba(e,t){return e[0]=t[0],e[1]=t[1],e}function Il(e){return[e[0],e[1]]}function N5(e,t,n){return e[0]=t,e[1]=n,e}function nI(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function N8(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function _f(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function B8(e){return Math.sqrt(ose(e))}function ose(e){return e[0]*e[0]+e[1]*e[1]}function x2(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Yh(e,t){var n=B8(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function V8(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Pu=V8;function ise(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Vf=ise;function C2(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function _r(e,t,n){var r=t[0],a=t[1];return e[0]=n[0]*r+n[2]*a+n[4],e[1]=n[1]*r+n[3]*a+n[5],e}function Ru(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Ou(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Fd=function(){function e(t,n){this.target=t,this.topTarget=n&&n.topTarget}return e}(),sse=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var n=t.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Fd(n,t),"dragstart",t.event))},e.prototype._drag=function(t){var n=this._draggingTarget;if(n){var r=t.offsetX,a=t.offsetY,o=r-this._x,i=a-this._y;this._x=r,this._y=a,n.drift(o,i,t),this.handler.dispatchToElement(new Fd(n,t),"drag",t.event);var s=this.handler.findHover(r,a,n).target,l=this._dropTarget;this._dropTarget=s,n!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Fd(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Fd(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new Fd(n,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Fd(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}();const lse=sse;var use=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,n,r,a){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof n=="function"&&(a=r,r=n,n=null),!r||!t)return this;var i=this._$eventProcessor;n!=null&&i&&i.normalizeQuery&&(n=i.normalizeQuery(n)),o[t]||(o[t]=[]);for(var s=0;s<o[t].length;s++)if(o[t][s].h===r)return this;var l={h:r,query:n,ctx:a||this,callAtLast:r.zrEventfulCallAtLast},u=o[t].length-1,c=o[t][u];return c&&c.callAtLast?o[t].splice(u,0,l):o[t].push(l),this},e.prototype.isSilent=function(t){var n=this._$handlers;return!n||!n[t]||!n[t].length},e.prototype.off=function(t,n){var r=this._$handlers;if(!r)return this;if(!t)return this._$handlers={},this;if(n){if(r[t]){for(var a=[],o=0,i=r[t].length;o<i;o++)r[t][o].h!==n&&a.push(r[t][o]);r[t]=a}r[t]&&r[t].length===0&&delete r[t]}else delete r[t];return this},e.prototype.trigger=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[t],o=this._$eventProcessor;if(a)for(var i=n.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(o&&o.filter&&u.query!=null&&!o.filter(t,u.query)))switch(i){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,n[0]);break;case 2:u.h.call(u.ctx,n[0],n[1]);break;default:u.h.apply(u.ctx,n);break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[t],o=this._$eventProcessor;if(a)for(var i=n.length,s=n[i-1],l=a.length,u=0;u<l;u++){var c=a[u];if(!(o&&o.filter&&c.query!=null&&!o.filter(t,c.query)))switch(i){case 0:c.h.call(s);break;case 1:c.h.call(s,n[0]);break;case 2:c.h.call(s,n[0],n[1]);break;default:c.h.apply(s,n.slice(1,i-1));break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e}();const ci=use;var cse=Math.log(2);function $8(e,t,n,r,a,o){var i=r+"-"+a,s=e.length;if(o.hasOwnProperty(i))return o[i];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/cse);return e[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var f=0,d=0,v=0;d<s;d++){var h=1<<d;h&a||(f+=(v%2?-1:1)*e[n][d]*$8(e,t-1,c,u,a|h,o),v++)}return o[i]=f,f}function rI(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={},a=$8(n,8,0,0,0,r);if(a!==0){for(var o=[],i=0;i<8;i++)for(var s=0;s<8;s++)o[s]==null&&(o[s]=0),o[s]+=((i+s)%2?-1:1)*$8(n,7,i===0?1:0,1<<i,1<<s,r)/a*t[i];return function(l,u,c){var f=u*o[6]+c*o[7]+1;l[0]=(u*o[0]+c*o[1]+o[2])/f,l[1]=(u*o[3]+c*o[4]+o[5])/f}}}var Cb="___zrEVENTSAVED",s3=[];function fse(e,t,n,r,a){return z8(s3,t,r,a,!0)&&z8(e,n,s3[0],s3[1])}function dse(e,t){e&&n(e),t&&n(t);function n(r){var a=r[Cb];a&&(a.clearMarkers&&a.clearMarkers(),delete r[Cb])}}function z8(e,t,n,r,a){if(t.getBoundingClientRect&&kn.domSupported&&!lH(t)){var o=t[Cb]||(t[Cb]={}),i=vse(t,o),s=hse(i,o,a);if(s)return s(e,n,r),!0}return!1}function vse(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],a=["top","bottom"],o=0;o<4;o++){var i=document.createElement("div"),s=i.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",a[u]+":0",r[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),e.appendChild(i),n.push(i)}return t.clearMarkers=function(){j(n,function(c){c.parentNode&&c.parentNode.removeChild(c)})},n}function hse(e,t,n){for(var r=n?"invTrans":"trans",a=t[r],o=t.srcCoords,i=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,v=c.top;i.push(d,v),l=l&&o&&d===o[f]&&v===o[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&a?a:(t.srcCoords=i,t[r]=n?rI(s,i):rI(i,s))}function lH(e){return e.nodeName.toUpperCase()==="CANVAS"}var pse=/([&<>"'])/g,gse={"&":"&","<":"<",">":">",'"':""","'":"'"};function wa(e){return e==null?"":(e+"").replace(pse,function(t,n){return gse[n]})}var mse=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,l3=[],yse=kn.browser.firefox&&+kn.browser.version.split(".")[0]<39;function F8(e,t,n,r){return n=n||{},r?aI(e,t,n):yse&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX!=null?(n.zrX=t.offsetX,n.zrY=t.offsetY):aI(e,t,n),n}function aI(e,t,n){if(kn.domSupported&&e.getBoundingClientRect){var r=t.clientX,a=t.clientY;if(lH(e)){var o=e.getBoundingClientRect();n.zrX=r-o.left,n.zrY=a-o.top;return}else if(z8(l3,e,r,a)){n.zrX=l3[0],n.zrY=l3[1];return}}n.zrX=n.zrY=0}function B5(e){return e||window.event}function Fo(e,t,n){if(t=B5(t),t.zrX!=null)return t;var r=t.type,a=r&&r.indexOf("touch")>=0;if(a){var i=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];i&&F8(e,i,t,n)}else{F8(e,t,t,n);var o=bse(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&mse.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function bse(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var a=Math.abs(r!==0?r:n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*a*o}function H8(e,t,n,r){e.addEventListener(t,n,r)}function _se(e,t,n,r){e.removeEventListener(t,n,r)}var Vl=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function oI(e){return e.which===2||e.which===3}var wse=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,n,r){return this._doTrack(t,n,r),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,n,r){var a=t.touches;if(a){for(var o={points:[],touches:[],target:n,event:t},i=0,s=a.length;i<s;i++){var l=a[i],u=F8(r,l,{});o.points.push([u.zrX,u.zrY]),o.touches.push(l)}this._track.push(o)}},e.prototype._recognize=function(t){for(var n in u3)if(u3.hasOwnProperty(n)){var r=u3[n](this._track,t);if(r)return r}},e}();function iI(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function Sse(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var u3={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,a=(e[n-2]||{}).points||r;if(a&&a.length>1&&r&&r.length>1){var o=iI(r)/iI(a);!isFinite(o)&&(o=1),t.pinchScale=o;var i=Sse(r);return t.pinchX=i[0],t.pinchY=i[1],{type:"pinch",target:e[0].target,event:t}}}}};function Jr(){return[1,0,0,1,0,0]}function Mw(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Aw(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 As(e,t,n){var r=t[0]*n[0]+t[2]*n[1],a=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],i=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=a,e[2]=o,e[3]=i,e[4]=s,e[5]=l,e}function Hs(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 yc(e,t,n,r){r===void 0&&(r=[0,0]);var a=t[0],o=t[2],i=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(n),f=Math.cos(n);return e[0]=a*f+s*c,e[1]=-a*c+s*f,e[2]=o*f+l*c,e[3]=-o*c+f*l,e[4]=f*(i-r[0])+c*(u-r[1])+r[0],e[5]=f*(u-r[1])-c*(i-r[0])+r[1],e}function V5(e,t,n){var r=n[0],a=n[1];return e[0]=t[0]*r,e[1]=t[1]*a,e[2]=t[2]*r,e[3]=t[3]*a,e[4]=t[4]*r,e[5]=t[5]*a,e}function Pi(e,t){var n=t[0],r=t[2],a=t[4],o=t[1],i=t[3],s=t[5],l=n*i-o*r;return l?(l=1/l,e[0]=i*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-i*a)*l,e[5]=(o*a-n*s)*l,e):null}function xse(e){var t=Jr();return Aw(t,e),t}var Cse=function(){function e(t,n){this.x=t||0,this.y=n||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,n){return this.x=t,this.y=n,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,n){this.x+=t.x*n,this.y+=t.y*n},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.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 t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var n=this.x-t.x,r=this.y-t.y;return Math.sqrt(n*n+r*r)},e.prototype.distanceSquare=function(t){var n=this.x-t.x,r=this.y-t.y;return n*n+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var n=this.x,r=this.y;return this.x=t[0]*n+t[2]*r+t[4],this.y=t[1]*n+t[3]*r+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,n,r){t.x=n,t.y=r},e.copy=function(t,n){t.x=n.x,t.y=n.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,n){return t.x*n.x+t.y*n.y},e.add=function(t,n,r){t.x=n.x+r.x,t.y=n.y+r.y},e.sub=function(t,n,r){t.x=n.x-r.x,t.y=n.y-r.y},e.scale=function(t,n,r){t.x=n.x*r,t.y=n.y*r},e.scaleAndAdd=function(t,n,r,a){t.x=n.x+r.x*a,t.y=n.y+r.y*a},e.lerp=function(t,n,r,a){var o=1-a;t.x=o*n.x+a*r.x,t.y=o*n.y+a*r.y},e}();const Dt=Cse;var wf=Math.min,Av=Math.max,W8=Math.abs,sI=["x","y"],Tse=["width","height"],Ac=new Dt,Ec=new Dt,Ic=new Dt,Lc=new Dt,bo=uH(),v0=bo.minTv,G8=bo.maxTv,$0=[0,0],$5=function(){function e(t,n,r,a){e.set(this,t,n,r,a)}return e.set=function(t,n,r,a,o){return a<0&&(n=n+a,a=-a),o<0&&(r=r+o,o=-o),t.x=n,t.y=r,t.width=a,t.height=o,t},e.prototype.union=function(t){var n=wf(t.x,this.x),r=wf(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Av(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Av(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=n,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var n=this,r=t.width/n.width,a=t.height/n.height,o=Jr();return Hs(o,o,[-n.x,-n.y]),V5(o,o,[r,a]),Hs(o,o,[t.x,t.y]),o},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,a){r&&Dt.set(r,0,0);var o=a&&a.outIntersectRect||null,i=a&&a.clamp;if(o&&(o.x=o.y=o.width=o.height=NaN),!t||!n)return!1;t instanceof e||(t=e.set(kse,t.x,t.y,t.width,t.height)),n instanceof e||(n=e.set(Mse,n.x,n.y,n.width,n.height));var s=!!r;bo.reset(a,s);var l=bo.touchThreshold,u=t.x+l,c=t.x+t.width-l,f=t.y+l,d=t.y+t.height-l,v=n.x+l,h=n.x+n.width-l,p=n.y+l,g=n.y+n.height-l;if(u>c||f>d||v>h||p>g)return!1;var m=!(c<v||h<u||d<p||g<f);return(s||o)&&($0[0]=1/0,$0[1]=0,lI(u,c,v,h,0,s,o,i),lI(f,d,p,g,1,s,o,i),s&&Dt.copy(r,m?bo.useDir?bo.dirMinTv:v0:G8)),m},e.contain=function(t,n,r){return n>=t.x&&n<=t.x+t.width&&r>=t.y&&r<=t.y+t.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(t){e.copy(this,t)},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.x,t.y,t.width,t.height)},e.copy=function(t,n){return t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height,t},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],o=r[3],i=r[4],s=r[5];t.x=n.x*a+i,t.y=n.y*o+s,t.width=n.width*a,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Ac.x=Ic.x=n.x,Ac.y=Lc.y=n.y,Ec.x=Lc.x=n.x+n.width,Ec.y=Ic.y=n.y+n.height,Ac.transform(r),Lc.transform(r),Ec.transform(r),Ic.transform(r),t.x=wf(Ac.x,Ec.x,Ic.x,Lc.x),t.y=wf(Ac.y,Ec.y,Ic.y,Lc.y);var l=Av(Ac.x,Ec.x,Ic.x,Lc.x),u=Av(Ac.y,Ec.y,Ic.y,Lc.y);t.width=l-t.x,t.height=u-t.y},e}(),kse=new $5(0,0,0,0),Mse=new $5(0,0,0,0);function lI(e,t,n,r,a,o,i,s){var l=W8(t-n),u=W8(r-e),c=wf(l,u),f=sI[a],d=sI[1-a],v=Tse[a];t<n||r<e?l<u?(o&&(G8[f]=-l),s&&(i[f]=t,i[v]=0)):(o&&(G8[f]=u),s&&(i[f]=e,i[v]=0)):(i&&(i[f]=Av(e,n),i[v]=wf(t,r)-i[f]),o&&(c<$0[0]||bo.useDir)&&($0[0]=wf(c,$0[0]),(l<u||!bo.bidirectional)&&(v0[f]=l,v0[d]=0,bo.useDir&&bo.calcDirMTV()),(l>=u||!bo.bidirectional)&&(v0[f]=-u,v0[d]=0,bo.useDir&&bo.calcDirMTV())))}function uH(){var e=0,t=new Dt,n=new Dt,r={minTv:new Dt,maxTv:new Dt,useDir:!1,dirMinTv:new Dt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(o,i){r.touchThreshold=0,o&&o.touchThreshold!=null&&(r.touchThreshold=Av(0,o.touchThreshold)),r.negativeSize=!1,i&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,o&&o.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=o.direction,r.bidirectional=o.bidirectional==null||!!o.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var o=r.minTv,i=r.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(e),u=Math.cos(e),c=l*o.y+u*o.x;if(a(c)){a(o.x)&&a(o.y)&&i.set(0,0);return}if(n.x=s*u/c,n.y=s*l/c,a(n.x)&&a(n.y)){i.set(0,0);return}(r.bidirectional||t.dot(n)>0)&&n.len()<i.len()&&i.copy(n)}};function a(o){return W8(o)<1e-10}return r}const Ot=$5;var cH="silent";function Ase(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:Ese}}function Ese(){Vl(this.event)}var Ise=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(ci),kp=function(){function e(t,n){this.x=t,this.y=n}return e}(),Lse=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],c3=new Ot(0,0,0,0),fH=function(e){ye(t,e);function t(n,r,a,o,i){var s=e.call(this)||this;return s._hovered=new kp(0,0),s.storage=n,s.painter=r,s.painterRoot=o,s._pointerSize=i,a=a||new Ise,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new lse(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(j(Lse,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},t.prototype.mousemove=function(n){var r=n.zrX,a=n.zrY,o=dH(this,r,a),i=this._hovered,s=i.target;s&&!s.__zr&&(i=this.findHover(i.x,i.y),s=i.target);var l=this._hovered=o?new kp(r,a):this.findHover(r,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(i,"mouseout",n),this.dispatchToElement(l,"mousemove",n),u&&u!==s&&this.dispatchToElement(l,"mouseover",n)},t.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},t.prototype.resize=function(){this._hovered=new kp(0,0)},t.prototype.dispatch=function(n,r){var a=this[n];a&&a.call(this,r)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},t.prototype.dispatchToElement=function(n,r,a){n=n||{};var o=n.target;if(!(o&&o.silent)){for(var i="on"+r,s=Ase(r,n,a);o&&(o[i]&&(s.cancelBubble=!!o[i].call(o,s)),o.trigger(r,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[i]=="function"&&l[i].call(l,s),l.trigger&&l.trigger(r,s)}))}},t.prototype.findHover=function(n,r,a){var o=this.storage.getDisplayList(),i=new kp(n,r);if(uI(o,i,n,r,a),this._pointerSize&&!i.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Ot(n-u,r-u,l,l),f=o.length-1;f>=0;f--){var d=o[f];d!==a&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(c3.copy(d.getBoundingRect()),d.transform&&c3.applyTransform(d.transform),c3.intersect(c)&&s.push(d))}if(s.length)for(var v=4,h=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=v)for(var m=0;m<p;m+=h){var y=n+g*Math.cos(m),b=r+g*Math.sin(m);if(uI(s,i,y,b,a),i.target)return i}}return i},t.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new wse);var a=this._gestureMgr;r==="start"&&a.clear();var o=a.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&a.clear(),o){var i=o.type;n.gestureEvent=i;var s=new kp;s.target=o.target,this.dispatchToElement(s,i,o.event)}},t}(ci);j(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){fH.prototype[e]=function(t){var n=t.zrX,r=t.zrY,a=dH(this,n,r),o,i;if((e!=="mouseup"||!a)&&(o=this.findHover(n,r),i=o.target),e==="mousedown")this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if(e==="mouseup")this._upEl=i;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||Pu(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,e,t)}});function Dse(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,a=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var i=r.getClipPath();if(i&&!i.contain(t,n))return!1}r.silent&&(a=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return a?cH:!0}return!1}function uI(e,t,n,r,a){for(var o=e.length-1;o>=0;o--){var i=e[o],s=void 0;if(i!==a&&!i.ignore&&(s=Dse(i,n,r))&&(!t.topTarget&&(t.topTarget=i),s!==cH)){t.target=i;break}}}function dH(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}const Pse=fH;var vH=32,Mp=7;function Rse(e){for(var t=0;e>=vH;)t|=e&1,e>>=1;return e+t}function cI(e,t,n,r){var a=t+1;if(a===n)return 1;if(r(e[a++],e[t])<0){for(;a<n&&r(e[a],e[a-1])<0;)a++;Ose(e,t,a)}else for(;a<n&&r(e[a],e[a-1])>=0;)a++;return a-t}function Ose(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function fI(e,t,n,r,a){for(r===t&&r++;r<n;r++){for(var o=e[r],i=t,s=r,l;i<s;)l=i+s>>>1,a(o,e[l])<0?s=l:i=l+1;var u=r-i;switch(u){case 3:e[i+3]=e[i+2];case 2:e[i+2]=e[i+1];case 1:e[i+1]=e[i];break;default:for(;u>0;)e[i+u]=e[i+u-1],u--}e[i]=o}}function f3(e,t,n,r,a,o){var i=0,s=0,l=1;if(o(e,t[n+a])>0){for(s=r-a;l<s&&o(e,t[n+a+l])>0;)i=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),i+=a,l+=a}else{for(s=a+1;l<s&&o(e,t[n+a-l])<=0;)i=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=i;i=a-l,l=a-u}for(i++;i<l;){var c=i+(l-i>>>1);o(e,t[n+c])>0?i=c+1:l=c}return l}function d3(e,t,n,r,a,o){var i=0,s=0,l=1;if(o(e,t[n+a])<0){for(s=a+1;l<s&&o(e,t[n+a-l])<0;)i=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=i;i=a-l,l=a-u}else{for(s=r-a;l<s&&o(e,t[n+a+l])>=0;)i=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),i+=a,l+=a}for(i++;i<l;){var c=i+(l-i>>>1);o(e,t[n+c])<0?l=c:i=c+1}return l}function Nse(e,t){var n=Mp,r,a,o=0,i=[];r=[],a=[];function s(v,h){r[o]=v,a[o]=h,o+=1}function l(){for(;o>1;){var v=o-2;if(v>=1&&a[v-1]<=a[v]+a[v+1]||v>=2&&a[v-2]<=a[v]+a[v-1])a[v-1]<a[v+1]&&v--;else if(a[v]>a[v+1])break;c(v)}}function u(){for(;o>1;){var v=o-2;v>0&&a[v-1]<a[v+1]&&v--,c(v)}}function c(v){var h=r[v],p=a[v],g=r[v+1],m=a[v+1];a[v]=p+m,v===o-3&&(r[v+1]=r[v+2],a[v+1]=a[v+2]),o--;var y=d3(e[g],e,h,p,0,t);h+=y,p-=y,p!==0&&(m=f3(e[h+p-1],e,g,m,m-1,t),m!==0&&(p<=m?f(h,p,g,m):d(h,p,g,m)))}function f(v,h,p,g){var m=0;for(m=0;m<h;m++)i[m]=e[v+m];var y=0,b=p,w=v;if(e[w++]=e[b++],--g===0){for(m=0;m<h;m++)e[w+m]=i[y+m];return}if(h===1){for(m=0;m<g;m++)e[w+m]=e[b+m];e[w+g]=i[y];return}for(var S=n,x,C,T;;){x=0,C=0,T=!1;do if(t(e[b],i[y])<0){if(e[w++]=e[b++],C++,x=0,--g===0){T=!0;break}}else if(e[w++]=i[y++],x++,C=0,--h===1){T=!0;break}while((x|C)<S);if(T)break;do{if(x=d3(e[b],i,y,h,0,t),x!==0){for(m=0;m<x;m++)e[w+m]=i[y+m];if(w+=x,y+=x,h-=x,h<=1){T=!0;break}}if(e[w++]=e[b++],--g===0){T=!0;break}if(C=f3(i[y],e,b,g,0,t),C!==0){for(m=0;m<C;m++)e[w+m]=e[b+m];if(w+=C,b+=C,g-=C,g===0){T=!0;break}}if(e[w++]=i[y++],--h===1){T=!0;break}S--}while(x>=Mp||C>=Mp);if(T)break;S<0&&(S=0),S+=2}if(n=S,n<1&&(n=1),h===1){for(m=0;m<g;m++)e[w+m]=e[b+m];e[w+g]=i[y]}else{if(h===0)throw new Error;for(m=0;m<h;m++)e[w+m]=i[y+m]}}function d(v,h,p,g){var m=0;for(m=0;m<g;m++)i[m]=e[p+m];var y=v+h-1,b=g-1,w=p+g-1,S=0,x=0;if(e[w--]=e[y--],--h===0){for(S=w-(g-1),m=0;m<g;m++)e[S+m]=i[m];return}if(g===1){for(w-=h,y-=h,x=w+1,S=y+1,m=h-1;m>=0;m--)e[x+m]=e[S+m];e[w]=i[b];return}for(var C=n;;){var T=0,M=0,k=!1;do if(t(i[b],e[y])<0){if(e[w--]=e[y--],T++,M=0,--h===0){k=!0;break}}else if(e[w--]=i[b--],M++,T=0,--g===1){k=!0;break}while((T|M)<C);if(k)break;do{if(T=h-d3(i[b],e,v,h,h-1,t),T!==0){for(w-=T,y-=T,h-=T,x=w+1,S=y+1,m=T-1;m>=0;m--)e[x+m]=e[S+m];if(h===0){k=!0;break}}if(e[w--]=i[b--],--g===1){k=!0;break}if(M=g-f3(e[y],i,0,g,g-1,t),M!==0){for(w-=M,b-=M,g-=M,x=w+1,S=b+1,m=0;m<M;m++)e[x+m]=i[S+m];if(g<=1){k=!0;break}}if(e[w--]=e[y--],--h===0){k=!0;break}C--}while(T>=Mp||M>=Mp);if(k)break;C<0&&(C=0),C+=2}if(n=C,n<1&&(n=1),g===1){for(w-=h,y-=h,x=w+1,S=y+1,m=h-1;m>=0;m--)e[x+m]=e[S+m];e[w]=i[b]}else{if(g===0)throw new Error;for(S=w-(g-1),m=0;m<g;m++)e[S+m]=i[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function T2(e,t,n,r){n||(n=0),r||(r=e.length);var a=r-n;if(!(a<2)){var o=0;if(a<vH){o=cI(e,n,r,t),fI(e,n,r,n+o,t);return}var i=Nse(e,t),s=Rse(a);do{if(o=cI(e,n,r,t),o<s){var l=a;l>s&&(l=s),fI(e,n,n+l,n+o,t),o=l}i.pushRun(n,o),i.mergeRuns(),a-=o,n+=o}while(a!==0);i.forceMergeRuns()}}var _o=1,h0=2,wv=4,dI=!1;function v3(){dI||(dI=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function vI(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Bse=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=vI}return e.prototype.traverse=function(t,n){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(t,n)},e.prototype.getDisplayList=function(t,n){n=n||!1;var r=this._displayList;return(t||!r.length)&&this.updateDisplayList(n),r},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var n=this._roots,r=this._displayList,a=0,o=n.length;a<o;a++)this._updateAndAddDisplayable(n[a],null,t);r.length=this._displayListLen,T2(r,vI)},e.prototype._updateAndAddDisplayable=function(t,n,r){if(!(t.ignore&&!r)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath(),o=n&&n.length,i=0,s=t.__clipPaths;if(!t.ignoreClip&&(o||a)){if(s||(s=t.__clipPaths=[]),o)for(var l=0;l<n.length;l++)s[i++]=n[l];for(var u=a,c=t;u;)u.parent=c,u.updateTransform(),s[i++]=u,c=u,u=u.getClipPath()}if(s&&(s.length=i),t.childrenRef){for(var f=t.childrenRef(),d=0;d<f.length;d++){var v=f[d];t.__dirty&&(v.__dirty|=_o),this._updateAndAddDisplayable(v,s,r)}t.__dirty=0}else{var h=t;isNaN(h.z)&&(v3(),h.z=0),isNaN(h.z2)&&(v3(),h.z2=0),isNaN(h.zlevel)&&(v3(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,s,r);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,r);var m=t.getTextContent();m&&this._updateAndAddDisplayable(m,s,r)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var n=0,r=t.length;n<r;n++)this.delRoot(t[n]);return}var a=Xt(this._roots,t);a>=0&&this._roots.splice(a,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}();const Vse=Bse;var hH;hH=kn.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const U8=hH;var k2={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:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(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*Math.pow(2,10*(e-=1))*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*Math.pow(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*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)):n*Math.pow(2,-10*(e-=1))*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=2.5949095;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-k2.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?k2.bounceIn(e*2)*.5:k2.bounceOut(e*2-1)*.5+.5}};const pH=k2;var B1=Math.pow,Ku=Math.sqrt,Tb=1e-8,gH=1e-4,hI=Ku(3),V1=1/3,hs=wd(),Ko=wd(),Kv=wd();function Nu(e){return e>-Tb&&e<Tb}function mH(e){return e>Tb||e<-Tb}function Fr(e,t,n,r,a){var o=1-a;return o*o*(o*e+3*a*t)+a*a*(a*r+3*o*n)}function pI(e,t,n,r,a){var o=1-a;return 3*(((t-e)*o+2*(n-t)*a)*o+(r-n)*a*a)}function kb(e,t,n,r,a,o){var i=r+3*(t-n)-e,s=3*(n-t*2+e),l=3*(t-e),u=e-a,c=s*s-3*i*l,f=s*l-9*i*u,d=l*l-3*s*u,v=0;if(Nu(c)&&Nu(f))if(Nu(s))o[0]=0;else{var h=-l/s;h>=0&&h<=1&&(o[v++]=h)}else{var p=f*f-4*c*d;if(Nu(p)){var g=f/c,h=-s/i+g,m=-g/2;h>=0&&h<=1&&(o[v++]=h),m>=0&&m<=1&&(o[v++]=m)}else if(p>0){var y=Ku(p),b=c*s+1.5*i*(-f+y),w=c*s+1.5*i*(-f-y);b<0?b=-B1(-b,V1):b=B1(b,V1),w<0?w=-B1(-w,V1):w=B1(w,V1);var h=(-s-(b+w))/(3*i);h>=0&&h<=1&&(o[v++]=h)}else{var S=(2*c*s-3*i*f)/(2*Ku(c*c*c)),x=Math.acos(S)/3,C=Ku(c),T=Math.cos(x),h=(-s-2*C*T)/(3*i),m=(-s+C*(T+hI*Math.sin(x)))/(3*i),M=(-s+C*(T-hI*Math.sin(x)))/(3*i);h>=0&&h<=1&&(o[v++]=h),m>=0&&m<=1&&(o[v++]=m),M>=0&&M<=1&&(o[v++]=M)}}return v}function yH(e,t,n,r,a){var o=6*n-12*t+6*e,i=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(Nu(i)){if(mH(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(Nu(c))a[0]=-o/(2*i);else if(c>0){var f=Ku(c),u=(-o+f)/(2*i),d=(-o-f)/(2*i);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function ic(e,t,n,r,a,o){var i=(t-e)*a+e,s=(n-t)*a+t,l=(r-n)*a+n,u=(s-i)*a+i,c=(l-s)*a+s,f=(c-u)*a+u;o[0]=e,o[1]=i,o[2]=u,o[3]=f,o[4]=f,o[5]=c,o[6]=l,o[7]=r}function bH(e,t,n,r,a,o,i,s,l,u,c){var f,d=.005,v=1/0,h,p,g,m;hs[0]=l,hs[1]=u;for(var y=0;y<1;y+=.05)Ko[0]=Fr(e,n,a,i,y),Ko[1]=Fr(t,r,o,s,y),g=Vf(hs,Ko),g<v&&(f=y,v=g);v=1/0;for(var b=0;b<32&&!(d<gH);b++)h=f-d,p=f+d,Ko[0]=Fr(e,n,a,i,h),Ko[1]=Fr(t,r,o,s,h),g=Vf(Ko,hs),h>=0&&g<v?(f=h,v=g):(Kv[0]=Fr(e,n,a,i,p),Kv[1]=Fr(t,r,o,s,p),m=Vf(Kv,hs),p<=1&&m<v?(f=p,v=m):d*=.5);return c&&(c[0]=Fr(e,n,a,i,f),c[1]=Fr(t,r,o,s,f)),Ku(v)}function $se(e,t,n,r,a,o,i,s,l){for(var u=e,c=t,f=0,d=1/l,v=1;v<=l;v++){var h=v*d,p=Fr(e,n,a,i,h),g=Fr(t,r,o,s,h),m=p-u,y=g-c;f+=Math.sqrt(m*m+y*y),u=p,c=g}return f}function Zr(e,t,n,r){var a=1-r;return a*(a*e+2*r*t)+r*r*n}function K8(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function zse(e,t,n,r,a){var o=e-2*t+n,i=2*(t-e),s=e-r,l=0;if(Nu(o)){if(mH(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(Nu(c)){var u=-i/(2*o);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=Ku(c),u=(-i+f)/(2*o),d=(-i-f)/(2*o);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function _H(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function pg(e,t,n,r,a){var o=(t-e)*r+e,i=(n-t)*r+t,s=(i-o)*r+o;a[0]=e,a[1]=o,a[2]=s,a[3]=s,a[4]=i,a[5]=n}function wH(e,t,n,r,a,o,i,s,l){var u,c=.005,f=1/0;hs[0]=i,hs[1]=s;for(var d=0;d<1;d+=.05){Ko[0]=Zr(e,n,a,d),Ko[1]=Zr(t,r,o,d);var v=Vf(hs,Ko);v<f&&(u=d,f=v)}f=1/0;for(var h=0;h<32&&!(c<gH);h++){var p=u-c,g=u+c;Ko[0]=Zr(e,n,a,p),Ko[1]=Zr(t,r,o,p);var v=Vf(Ko,hs);if(p>=0&&v<f)u=p,f=v;else{Kv[0]=Zr(e,n,a,g),Kv[1]=Zr(t,r,o,g);var m=Vf(Kv,hs);g<=1&&m<f?(u=g,f=m):c*=.5}}return l&&(l[0]=Zr(e,n,a,u),l[1]=Zr(t,r,o,u)),Ku(f)}function Fse(e,t,n,r,a,o,i){for(var s=e,l=t,u=0,c=1/i,f=1;f<=i;f++){var d=f*c,v=Zr(e,n,a,d),h=Zr(t,r,o,d),p=v-s,g=h-l;u+=Math.sqrt(p*p+g*g),s=v,l=h}return u}var Hse=/cubic-bezier\(([0-9,\.e ]+)\)/;function z5(e){var t=e&&Hse.exec(e);if(t){var n=t[1].split(","),r=+Xo(n[0]),a=+Xo(n[1]),o=+Xo(n[2]),i=+Xo(n[3]);if(isNaN(r+a+o+i))return;var s=[];return function(l){return l<=0?0:l>=1?1:kb(0,r,o,1,l,s)&&Fr(0,a,i,1,s[0])}}}var Wse=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||br,this.ondestroy=t.ondestroy||br,this.onrestart=t.onrestart||br,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,n){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,a=t-this._startTime-this._pausedTime,o=a/r;o<0&&(o=0),o=Math.min(o,1);var i=this.easingFunc,s=i?i(o):o;if(this.onframe(s),o===1)if(this.loop){var l=a%r;this._startTime=t-l,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(t){this.easing=t,this.easingFunc=kt(t)?t:pH[t]||z5(t)},e}();const Gse=Wse;var SH=function(){function e(t){this.value=t}return e}(),Use=function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new SH(t);return this.insertEntry(n),n},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var n=t.prev,r=t.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Kse=function(){function e(t){this._list=new Use,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,n){var r=this._list,a=this._map,o=null;if(a[t]==null){var i=r.len(),s=this._lastRemovedEntry;if(i>=this._maxSize&&i>0){var l=r.head;r.remove(l),delete a[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=n:s=new SH(n),s.key=t,r.insertEntry(s),a[t]=s}return o},e.prototype.get=function(t){var n=this._map[t],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const vh=Kse;var gI={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 xi(e){return e=Math.round(e),e<0?0:e>255?255:e}function jse(e){return e=Math.round(e),e<0?0:e>360?360:e}function gg(e){return e<0?0:e>1?1:e}function h3(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?xi(parseFloat(t)/100*255):xi(parseInt(t,10))}function ju(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?gg(parseFloat(t)/100):gg(parseFloat(t))}function p3(e,t,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Bu(e,t,n){return e+(t-e)*n}function zo(e,t,n,r,a){return e[0]=t,e[1]=n,e[2]=r,e[3]=a,e}function j8(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var xH=new vh(20),$1=null;function Hd(e,t){$1&&j8($1,t),$1=xH.put(e,$1||t.slice())}function uo(e,t){if(e){t=t||[];var n=xH.get(e);if(n)return j8(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in gI)return j8(t,gI[r]),Hd(e,t),t;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var o=parseInt(r.slice(1,4),16);if(!(o>=0&&o<=4095)){zo(t,0,0,0,1);return}return zo(t,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),Hd(e,t),t}else if(a===7||a===9){var o=parseInt(r.slice(1,7),16);if(!(o>=0&&o<=16777215)){zo(t,0,0,0,1);return}return zo(t,(o&16711680)>>16,(o&65280)>>8,o&255,a===9?parseInt(r.slice(7),16)/255:1),Hd(e,t),t}return}var i=r.indexOf("("),s=r.indexOf(")");if(i!==-1&&s+1===a){var l=r.substr(0,i),u=r.substr(i+1,s-(i+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?zo(t,+u[0],+u[1],+u[2],1):zo(t,0,0,0,1);c=ju(u.pop());case"rgb":if(u.length>=3)return zo(t,h3(u[0]),h3(u[1]),h3(u[2]),u.length===3?c:ju(u[3])),Hd(e,t),t;zo(t,0,0,0,1);return;case"hsla":if(u.length!==4){zo(t,0,0,0,1);return}return u[3]=ju(u[3]),Y8(u,t),Hd(e,t),t;case"hsl":if(u.length!==3){zo(t,0,0,0,1);return}return Y8(u,t),Hd(e,t),t;default:return}}zo(t,0,0,0,1)}}function Y8(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=ju(e[1]),a=ju(e[2]),o=a<=.5?a*(r+1):a+r-a*r,i=a*2-o;return t=t||[],zo(t,xi(p3(i,o,n+1/3)*255),xi(p3(i,o,n)*255),xi(p3(i,o,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Yse(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.min(t,n,r),o=Math.max(t,n,r),i=o-a,s=(o+a)/2,l,u;if(i===0)l=0,u=0;else{s<.5?u=i/(o+a):u=i/(2-o-a);var c=((o-t)/6+i/2)/i,f=((o-n)/6+i/2)/i,d=((o-r)/6+i/2)/i;t===o?l=d-f:n===o?l=1/3+c-d:r===o&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return e[3]!=null&&v.push(e[3]),v}}function q8(e,t){var n=uo(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 Es(n,n.length===4?"rgba":"rgb")}}function g3(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n=n||[];var r=e*(t.length-1),a=Math.floor(r),o=Math.ceil(r),i=t[a],s=t[o],l=r-a;return n[0]=xi(Bu(i[0],s[0],l)),n[1]=xi(Bu(i[1],s[1],l)),n[2]=xi(Bu(i[2],s[2],l)),n[3]=gg(Bu(i[3],s[3],l)),n}}function qse(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),a=Math.floor(r),o=Math.ceil(r),i=uo(t[a]),s=uo(t[o]),l=r-a,u=Es([xi(Bu(i[0],s[0],l)),xi(Bu(i[1],s[1],l)),xi(Bu(i[2],s[2],l)),gg(Bu(i[3],s[3],l))],"rgba");return n?{color:u,leftIndex:a,rightIndex:o,value:r}:u}}function Yu(e,t,n,r){var a=uo(e);if(e)return a=Yse(a),t!=null&&(a[0]=jse(kt(t)?t(a[0]):t)),n!=null&&(a[1]=ju(kt(n)?n(a[1]):n)),r!=null&&(a[2]=ju(kt(r)?r(a[2]):r)),Es(Y8(a),"rgba")}function Mb(e,t){var n=uo(e);if(n&&t!=null)return n[3]=gg(t),Es(n,"rgba")}function Es(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 Ab(e,t){var n=uo(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var mI=new vh(100);function X8(e){if(st(e)){var t=mI.get(e);return t||(t=q8(e,-.1),mI.put(e,t)),t}else if(Cw(e)){var n=Pe({},e);return n.colorStops=$e(e.colorStops,function(r){return{offset:r.offset,color:q8(r.color,-.1)}}),n}return e}var Eb=Math.round;function mg(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var n=uo(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}return{color:e,opacity:t??1}}var yI=1e-4;function Vu(e){return e<yI&&e>-yI}function z1(e){return Eb(e*1e3)/1e3}function Z8(e){return Eb(e*1e4)/1e4}function Xse(e){return"matrix("+z1(e[0])+","+z1(e[1])+","+z1(e[2])+","+z1(e[3])+","+Z8(e[4])+","+Z8(e[5])+")"}var Zse={left:"start",right:"end",center:"middle",middle:"middle"};function Jse(e,t,n){return n==="top"?e+=t/2:n==="bottom"&&(e-=t/2),e}function Qse(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function ele(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function CH(e){return e&&!!e.image}function tle(e){return e&&!!e.svgElement}function F5(e){return CH(e)||tle(e)}function TH(e){return e.type==="linear"}function kH(e){return e.type==="radial"}function MH(e){return e&&(e.type==="linear"||e.type==="radial")}function Ew(e){return"url(#"+e+")"}function AH(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function EH(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*S2,a=yt(e.scaleX,1),o=yt(e.scaleY,1),i=e.skewX||0,s=e.skewY||0,l=[];return(t||n)&&l.push("translate("+t+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),(a!==1||o!==1)&&l.push("scale("+a+","+o+")"),(i||s)&&l.push("skew("+Eb(i*S2)+"deg, "+Eb(s*S2)+"deg)"),l.join(" ")}var nle=function(){return kn.hasGlobalWindow&&kt(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),J8=Array.prototype.slice;function gl(e,t,n){return(t-e)*n+e}function m3(e,t,n,r){for(var a=t.length,o=0;o<a;o++)e[o]=gl(t[o],n[o],r);return e}function rle(e,t,n,r){for(var a=t.length,o=a&&t[0].length,i=0;i<a;i++){e[i]||(e[i]=[]);for(var s=0;s<o;s++)e[i][s]=gl(t[i][s],n[i][s],r)}return e}function F1(e,t,n,r){for(var a=t.length,o=0;o<a;o++)e[o]=t[o]+n[o]*r;return e}function bI(e,t,n,r){for(var a=t.length,o=a&&t[0].length,i=0;i<a;i++){e[i]||(e[i]=[]);for(var s=0;s<o;s++)e[i][s]=t[i][s]+n[i][s]*r}return e}function ale(e,t){for(var n=e.length,r=t.length,a=n>r?t:e,o=Math.min(n,r),i=a[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)a.push({offset:i.offset,color:i.color.slice()})}function ole(e,t,n){var r=e,a=t;if(!(!r.push||!a.push)){var o=r.length,i=a.length;if(o!==i){var s=o>i;if(s)r.length=i;else for(var l=o;l<i;l++)r.push(n===1?a[l]:J8.call(a[l]))}for(var u=r[0]&&r[0].length,l=0;l<r.length;l++)if(n===1)isNaN(r[l])&&(r[l]=a[l]);else for(var c=0;c<u;c++)isNaN(r[l][c])&&(r[l][c]=a[l][c])}}function z0(e){if(Ea(e)){var t=e.length;if(Ea(e[0])){for(var n=[],r=0;r<t;r++)n.push(J8.call(e[r]));return n}return J8.call(e)}return e}function M2(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 ile(e){return Ea(e&&e[0])?2:1}var H1=0,A2=1,IH=2,p0=3,Q8=4,ex=5,_I=6;function wI(e){return e===Q8||e===ex}function W1(e){return e===A2||e===IH}var Ap=[0,0,0,0],sle=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}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(t,n,r){this._needsSort=!0;var a=this.keyframes,o=a.length,i=!1,s=_I,l=n;if(Ea(n)){var u=ile(n);s=u,(u===1&&!gn(n[0])||u===2&&!gn(n[0][0]))&&(i=!0)}else if(gn(n)&&!Ma(n))s=H1;else if(st(n))if(!isNaN(+n))s=H1;else{var c=uo(n);c&&(l=c,s=p0)}else if(Cw(n)){var f=Pe({},l);f.colorStops=$e(n.colorStops,function(v){return{offset:v.offset,color:uo(v.color)}}),TH(n)?s=Q8:kH(n)&&(s=ex),l=f}o===0?this.valType=s:(s!==this.valType||s===_I)&&(i=!0),this.discrete=this.discrete||i;var d={time:t,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=kt(r)?r:pH[r]||z5(r)),a.push(d),d},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(p,g){return p.time-g.time});for(var a=this.valType,o=r.length,i=r[o-1],s=this.discrete,l=W1(a),u=wI(a),c=0;c<o;c++){var f=r[c],d=f.value,v=i.value;f.percent=f.time/t,s||(l&&c!==o-1?ole(d,v,a):u&&ale(d.colorStops,v.colorStops))}if(!s&&a!==ex&&n&&this.needsAnimate()&&n.needsAnimate()&&a===n.valType&&!n._finished){this._additiveTrack=n;for(var h=r[0].value,c=0;c<o;c++)a===H1?r[c].additiveValue=r[c].value-h:a===p0?r[c].additiveValue=F1([],r[c].value,h,-1):W1(a)&&(r[c].additiveValue=a===A2?F1([],r[c].value,h,-1):bI([],r[c].value,h,-1))}},e.prototype.step=function(t,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,a=r?"additiveValue":"value",o=this.valType,i=this.keyframes,s=i.length,l=this.propName,u=o===p0,c,f=this._lastFr,d=Math.min,v,h;if(s===1)v=h=i[0];else{if(n<0)c=0;else if(n<this._lastFrP){var p=d(f+1,s-1);for(c=p;c>=0&&!(i[c].percent<=n);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(i[c].percent>n);c++);c=d(c-1,s-2)}h=i[c+1],v=i[c]}if(v&&h){this._lastFr=c,this._lastFrP=n;var g=h.percent-v.percent,m=g===0?1:d((n-v.percent)/g,1);h.easingFunc&&(m=h.easingFunc(m));var y=r?this._additiveValue:u?Ap:t[l];if((W1(o)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?v.rawValue:h.rawValue;else if(W1(o))o===A2?m3(y,v[a],h[a],m):rle(y,v[a],h[a],m);else if(wI(o)){var b=v[a],w=h[a],S=o===Q8;t[l]={type:S?"linear":"radial",x:gl(b.x,w.x,m),y:gl(b.y,w.y,m),colorStops:$e(b.colorStops,function(C,T){var M=w.colorStops[T];return{offset:gl(C.offset,M.offset,m),color:M2(m3([],C.color,M.color,m))}}),global:w.global},S?(t[l].x2=gl(b.x2,w.x2,m),t[l].y2=gl(b.y2,w.y2,m)):t[l].r=gl(b.r,w.r,m)}else if(u)m3(y,v[a],h[a],m),r||(t[l]=M2(y));else{var x=gl(v[a],h[a],m);r?this._additiveValue=x:t[l]=x}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,a=this._additiveValue;n===H1?t[r]=t[r]+a:n===p0?(uo(t[r],Ap),F1(Ap,Ap,a,1),t[r]=M2(Ap)):n===A2?F1(t[r],t[r],a,1):n===IH&&bI(t[r],t[r],a,1)},e}(),H5=function(){function e(t,n,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=n,n&&a){P5("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}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(t){this._target=t},e.prototype.when=function(t,n,r){return this.whenWithKeys(t,n,dn(n),r)},e.prototype.whenWithKeys=function(t,n,r,a){for(var o=this._tracks,i=0;i<r.length;i++){var s=r[i],l=o[s];if(!l){l=o[s]=new sle(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];u=d&&d.value,c.valType===p0&&u&&(u=M2(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,z0(u),a),this._trackKeys.push(s)}l.addKeyframe(t,z0(n[s]),a)}return this._maxTime=Math.max(this._maxTime,t),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(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var n=t.length,r=0;r<n;r++)t[r].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,n=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,n)for(var r=0;r<n.length;r++)n[r].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,n=this._trackKeys,r=0;r<n.length;r++)t[n[r]].setFinished()},e.prototype._getAdditiveTrack=function(t){var n,r=this._additiveAnimators;if(r)for(var a=0;a<r.length;a++){var o=r[a].getTrack(t);o&&(n=o)}return n},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var n=this,r=[],a=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var i=this._trackKeys[o],s=this._tracks[i],l=this._getAdditiveTrack(i),u=s.keyframes,c=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(n._target[s.propName]=f.rawValue),s.setFinished()}else r.push(s)}if(r.length||this._force){var d=new Gse({life:a,loop:this._loop,delay:this._delay||0,onframe:function(v){n._started=2;var h=n._additiveAnimators;if(h){for(var p=!1,g=0;g<h.length;g++)if(h[g]._clip){p=!0;break}p||(n._additiveAnimators=null)}for(var g=0;g<r.length;g++)r[g].step(n._target,v);var m=n._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](n._target,v)},ondestroy:function(){n._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var n=this._clip;t&&n.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return $e(this._trackKeys,function(n){return t._tracks[n]})},e.prototype.stopTracks=function(t,n){if(!t.length||!this._clip)return!0;for(var r=this._tracks,a=this._trackKeys,o=0;o<t.length;o++){var i=r[t[o]];i&&!i.isFinished()&&(n?i.step(this._target,1):this._started===1&&i.step(this._target,0),i.setFinished())}for(var s=!0,o=0;o<a.length;o++)if(!r[a[o]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,n,r){if(t){n=n||this._trackKeys;for(var a=0;a<n.length;a++){var o=n[a],i=this._tracks[o];if(!(!i||i.isFinished())){var s=i.keyframes,l=s[r?0:s.length-1];l&&(t[o]=z0(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,n){n=n||dn(t);for(var r=0;r<n.length;r++){var a=n[r],o=this._tracks[a];if(o){var i=o.keyframes;if(i.length>1){var s=i.pop();o.addKeyframe(s.time,t[a]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},e}();function Ev(){return new Date().getTime()}var lle=function(e){ye(t,e);function t(n){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(n){if(n.animation){var r=n.prev,a=n.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},t.prototype.update=function(n){for(var r=Ev()-this._pausedTime,a=r-this._time,o=this._head;o;){var i=o.next,s=o.step(r,a);s&&(o.ondestroy(),this.removeClip(o)),o=i}this._time=r,n||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(U8(r),!n._paused&&n.update())}U8(r)},t.prototype.start=function(){this._running||(this._time=Ev(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Ev(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ev()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(n,r){r=r||{},this.start();var a=new H5(n,r.loop);return this.addAnimator(a),a},t}(ci);const ule=lle;var cle=300,y3=kn.domSupported,b3=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},r=$e(e,function(a){var o=a.replace("mouse","pointer");return n.hasOwnProperty(o)?o:a});return{mouse:e,touch:t,pointer:r}}(),SI={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},xI=!1;function tx(e){var t=e.pointerType;return t==="pen"||t==="touch"}function fle(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 _3(e){e&&(e.zrByTouch=!0)}function dle(e,t){return Fo(e.dom,new vle(e,t),!0)}function LH(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 vle=function(){function e(t,n){this.stopPropagation=br,this.stopImmediatePropagation=br,this.preventDefault=br,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e}(),pi={mousedown:function(e){e=Fo(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Fo(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=Fo(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Fo(this.dom,e);var t=e.toElement||e.relatedTarget;LH(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){xI=!0,e=Fo(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){xI||(e=Fo(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Fo(this.dom,e),_3(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),pi.mousemove.call(this,e),pi.mousedown.call(this,e)},touchmove:function(e){e=Fo(this.dom,e),_3(e),this.handler.processGesture(e,"change"),pi.mousemove.call(this,e)},touchend:function(e){e=Fo(this.dom,e),_3(e),this.handler.processGesture(e,"end"),pi.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<cle&&pi.click.call(this,e)},pointerdown:function(e){pi.mousedown.call(this,e)},pointermove:function(e){tx(e)||pi.mousemove.call(this,e)},pointerup:function(e){pi.mouseup.call(this,e)},pointerout:function(e){tx(e)||pi.mouseout.call(this,e)}};j(["click","dblclick","contextmenu"],function(e){pi[e]=function(t){t=Fo(this.dom,t),this.trigger(e,t)}});var nx={pointermove:function(e){tx(e)||nx.mousemove.call(this,e)},pointerup:function(e){nx.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 hle(e,t){var n=t.domHandlers;kn.pointerEventsSupported?j(b3.pointer,function(r){E2(t,r,function(a){n[r].call(e,a)})}):(kn.touchEventsSupported&&j(b3.touch,function(r){E2(t,r,function(a){n[r].call(e,a),fle(t)})}),j(b3.mouse,function(r){E2(t,r,function(a){a=B5(a),t.touching||n[r].call(e,a)})}))}function ple(e,t){kn.pointerEventsSupported?j(SI.pointer,n):kn.touchEventsSupported||j(SI.mouse,n);function n(r){function a(o){o=B5(o),LH(e,o.target)||(o=dle(e,o),t.domHandlers[r].call(e,o))}E2(t,r,a,{capture:!0})}}function E2(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,H8(e.domTarget,t,n,r)}function w3(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&_se(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var CI=function(){function e(t,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=n}return e}(),gle=function(e){ye(t,e);function t(n,r){var a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=n,a.painterRoot=r,a._localHandlerScope=new CI(n,pi),y3&&(a._globalHandlerScope=new CI(document,nx)),hle(a,a._localHandlerScope),a}return t.prototype.dispose=function(){w3(this._localHandlerScope),y3&&w3(this._globalHandlerScope)},t.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},t.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,y3&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?ple(this,r):w3(r)}},t}(ci);const mle=gle;var DH=1;kn.hasGlobalWindow&&(DH=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ib=DH,rx=.4,ax="#333",ox="#ccc",yle="#eee",TI=Mw,kI=5e-5;function Dc(e){return e>kI||e<-kI}var Pc=[],Wd=[],S3=Jr(),x3=Math.abs,ble=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Dc(this.rotation)||Dc(this.x)||Dc(this.y)||Dc(this.scaleX-1)||Dc(this.scaleY-1)||Dc(this.skewX)||Dc(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(TI(r),this.invTransform=null);return}r=r||Jr(),n?this.getLocalTransform(r):TI(r),t&&(n?As(r,t,r):Aw(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(Pc);var r=Pc[0]<0?-1:1,a=Pc[1]<0?-1:1,o=((Pc[0]-r)*n+r)/Pc[0]||0,i=((Pc[1]-a)*n+a)/Pc[1]||0;t[0]*=o,t[1]*=o,t[2]*=i,t[3]*=i}this.invTransform=this.invTransform||Jr(),Pi(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,n=[];t;)n.push(t),t=t.parent;for(;t=n.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var n=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),o=Math.PI/2+a-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(o),n=Math.sqrt(n),this.skewX=o,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Jr(),As(Wd,t.invTransform,n),n=Wd);var r=this.originX,a=this.originY;(r||a)&&(S3[4]=r,S3[5]=a,As(Wd,n,S3),Wd[4]-=r,Wd[5]-=a,n=Wd),this.setLocalTransform(n)}},e.prototype.getGlobalScale=function(t){var n=this.transform;return t=t||[],n?(t[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),t[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(t[0]=-t[0]),n[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,n){var r=[t,n],a=this.invTransform;return a&&_r(r,r,a),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],a=this.transform;return a&&_r(r,r,a),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&x3(t[0]-1)>1e-10&&x3(t[3]-1)>1e-10?Math.sqrt(x3(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Lb(this,t)},e.getLocalTransform=function(t,n){n=n||[];var r=t.originX||0,a=t.originY||0,o=t.scaleX,i=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(r||a||s||l){var h=r+s,p=a+l;n[4]=-h*o-d*p*i,n[5]=-p*i-v*h*o}else n[4]=n[5]=0;return n[0]=o,n[3]=i,n[1]=v*o,n[2]=d*i,u&&yc(n,n,u),n[4]+=r+c,n[5]+=a+f,n},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}(),Ws=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Lb(e,t){for(var n=0;n<Ws.length;n++){var r=Ws[n];e[r]=t[r]}}const kl=ble;function Is(e){G1||(G1=new vh(100)),e=e||Bl;var t=G1.get(e);return t||(t={font:e,strWidthCache:new vh(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Di.measureText("国",e).width,asciiCharWidth:Di.measureText("a",e).width},G1.put(e,t)),t}var G1;function _le(e){if(!(C3>=MI)){e=e||Bl;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=Di.measureText(String.fromCharCode(r),e).width;var a=+new Date-n;return a>16?C3=MI:a>2&&C3++,t}}var C3=0,MI=5;function PH(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=_le(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap!=null?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function Ls(e,t){var n=e.strWidthCache,r=n.get(t);return r==null&&(r=Di.measureText(t,e.font).width,n.put(t,r)),r}function AI(e,t,n,r){var a=Ls(Is(t),e),o=Im(t),i=hh(0,a,n),s=$f(0,o,r),l=new Ot(i,s,a,o);return l}function Iw(e,t,n,r){var a=((e||"")+"").split(`
|
||
`),o=a.length;if(o===1)return AI(a[0],t,n,r);for(var i=new Ot(0,0,0,0),s=0;s<a.length;s++){var l=AI(a[s],t,n,r);s===0?i.copy(l):i.union(l)}return i}function hh(e,t,n,r){return n==="right"?r?e+=t:e-=t:n==="center"&&(r?e+=t/2:e-=t/2),e}function $f(e,t,n,r){return n==="middle"?r?e+=t/2:e-=t/2:n==="bottom"&&(r?e+=t:e-=t),e}function Im(e){return Is(e).stWideCharWidth}function Ri(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Db(e,t,n){var r=t.position||"inside",a=t.distance!=null?t.distance:5,o=n.height,i=n.width,s=o/2,l=n.x,u=n.y,c="left",f="top";if(r instanceof Array)l+=Ri(r[0],n.width),u+=Ri(r[1],n.height),c=null,f=null;else switch(r){case"left":l-=a,u+=s,c="right",f="middle";break;case"right":l+=a+i,u+=s,f="middle";break;case"top":l+=i/2,u-=a,c="center",f="bottom";break;case"bottom":l+=i/2,u+=o+a,c="center";break;case"inside":l+=i/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=a,u+=s,f="middle";break;case"insideRight":l+=i-a,u+=s,c="right",f="middle";break;case"insideTop":l+=i/2,u+=a,c="center";break;case"insideBottom":l+=i/2,u+=o-a,c="center",f="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=i-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=o-a,f="bottom";break;case"insideBottomRight":l+=i-a,u+=o-a,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var T3="__zr_normal__",k3=Ws.concat(["ignore"]),wle=Fs(Ws,function(e,t){return e[t]=!0,e},{ignore:!1}),Gd={},Sle=new Ot(0,0,0,0),U1=[],W5=function(){function e(t){this.id=aH(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=n,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(t){var n=this._textContent;if(n&&(!n.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,o=n.innerTransformable,i=void 0,s=void 0,l=!1;o.parent=a?this:null;var u=!1;o.copyTransform(n);var c=r.position!=null,f=r.autoOverflowArea,d=void 0;if((f||c)&&(d=Sle,r.layoutRect?d.copy(r.layoutRect):d.copy(this.getBoundingRect()),a||d.applyTransform(this.transform)),c){this.calculateTextPosition?this.calculateTextPosition(Gd,r,d):Db(Gd,r,d),o.x=Gd.x,o.y=Gd.y,i=Gd.align,s=Gd.verticalAlign;var v=r.origin;if(v&&r.rotation!=null){var h=void 0,p=void 0;v==="center"?(h=d.width*.5,p=d.height*.5):(h=Ri(v[0],d.width),p=Ri(v[1],d.height)),u=!0,o.originX=-o.x+h+(a?0:d.x),o.originY=-o.y+p+(a?0:d.y)}}r.rotation!=null&&(o.rotation=r.rotation);var g=r.offset;g&&(o.x+=g[0],o.y+=g[1],u||(o.originX=-g[0],o.originY=-g[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(f){var y=m.overflowRect=m.overflowRect||new Ot(0,0,0,0);o.getLocalTransform(U1),Pi(U1,U1),Ot.copy(y,d),y.applyTransform(U1)}else m.overflowRect=null;var b=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,w=void 0,S=void 0,x=void 0;b&&this.canBeInsideText()?(w=r.insideFill,S=r.insideStroke,(w==null||w==="auto")&&(w=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(w),x=!0)):(w=r.outsideFill,S=r.outsideStroke,(w==null||w==="auto")&&(w=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(w),x=!0)),w=w||"#000",(w!==m.fill||S!==m.stroke||x!==m.autoStroke||i!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=w,m.stroke=S,m.autoStroke=x,m.align=i,m.verticalAlign=s,n.setDefaultTextStyle(m)),n.__dirty|=_o,l&&n.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ox:ax},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&uo(n);r||(r=[255,255,255,1]);for(var a=r[3],o=this.__zr.isDarkMode(),i=0;i<3;i++)r[i]=r[i]*a+(o?0:255)*(1-a);return r[3]=1,Es(r,"rgba")},e.prototype.traverse=function(t,n){},e.prototype.attrKV=function(t,n){t==="textConfig"?this.setTextConfig(n):t==="textContent"?this.setTextContent(n):t==="clipPath"?this.setClipPath(n):t==="extra"?(this.extra=this.extra||{},Pe(this.extra,n)):this[t]=n},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,n){if(typeof t=="string")this.attrKV(t,n);else if(Rt(t))for(var r=t,a=dn(r),o=0;o<a.length;o++){var i=a[o];this.attrKV(i,t[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var n=this._normalState,r=0;r<this.animators.length;r++){var a=this.animators[r],o=a.__fromStateTransition;if(!(a.getLoop()||o&&o!==T3)){var i=a.targetName,s=i?n[i]:n;a.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var n=this._normalState;n||(n=this._normalState={}),t.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(t,n,k3)},e.prototype._savePrimaryToNormal=function(t,n,r){for(var a=0;a<r.length;a++){var o=r[a];t[o]!=null&&!(o in n)&&(n[o]=this[o])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},e.prototype.clearStates=function(t){this.useState(T3,!1,t)},e.prototype.useState=function(t,n,r,a){var o=t===T3,i=this.hasState();if(!(!i&&o)){var s=this.currentStates,l=this.stateTransition;if(!(Xt(s,t)>=0&&(n||s.length===1))){var u;if(this.stateProxy&&!o&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!o){P5("State "+t+" not exists.");return}o||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,n,!r&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,n,r,c),d&&d.useState(t,n,r,c),o?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~_o),u}}},e.prototype.useStates=function(t,n,r){if(!t.length)this.clearStates();else{var a=[],o=this.currentStates,i=t.length,s=i===o.length;if(s){for(var l=0;l<i;l++)if(t[l]!==o[l]){s=!1;break}}if(s)return;for(var l=0;l<i;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&a.push(c)}var f=a[i-1],d=!!(f&&f.hoverLayer||r);d&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(a),h=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!n&&!this.__inHover&&h&&h.duration>0,h);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,n,d),g&&g.useStates(t,n,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~_o)}},e.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var n=t.__hostTarget;t=n?t.ignoreHostSilent?null:n:t.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var n=this.animators[t];n.targetName&&n.changeTarget(this[n.targetName])}},e.prototype.removeState=function(t){var n=Xt(this.currentStates,t);if(n>=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},e.prototype.replaceState=function(t,n,r){var a=this.currentStates.slice(),o=Xt(a,t),i=Xt(a,n)>=0;o>=0?i?a.splice(o,1):a[o]=n:r&&!i&&a.push(n),this.useStates(a)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},r,a=0;a<t.length;a++){var o=t[a];Pe(n,o),o.textConfig&&(r=r||{},Pe(r,o.textConfig))}return r&&(n.textConfig=r),n},e.prototype._applyStateObj=function(t,n,r,a,o,i){var s=!(n&&a);n&&n.textConfig?(this.textConfig=Pe({},a?this.textConfig:r.textConfig),Pe(this.textConfig,n.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},u=!1,c=0;c<k3.length;c++){var f=k3[c],d=o&&wle[f];n&&n[f]!=null?d?(u=!0,l[f]=n[f]):this[f]=n[f]:s&&r[f]!=null&&(d?(u=!0,l[f]=r[f]):this[f]=r[f])}if(!o)for(var c=0;c<this.animators.length;c++){var v=this.animators[c],h=v.targetName;v.getLoop()||v.__changeFinalValue(h?(n||r)[h]:n||r)}u&&this._transitionState(t,l,i)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var n=this.__zr;n&&t.addSelfToZr(n),t.__zr=n,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var n=this._textContent;n!==t&&(n&&n!==t&&this.removeTextContent(),t.innerTransformable=new kl,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Pe(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=_o;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var n=this._textContent,r=this._textGuide;n&&(n.__inHover=t),r&&(r.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var n=this.animators;if(n)for(var r=0;r<n.length;r++)t.animation.addAnimator(n[r]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var n=this.animators;if(n)for(var r=0;r<n.length;r++)t.animation.removeAnimator(n[r]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,n,r){var a=t?this[t]:this,o=new H5(a,n,r);return t&&(o.targetName=t),this.addAnimator(o,t),o},e.prototype.addAnimator=function(t,n){var r=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(n)}).done(function(){var o=a.animators,i=Xt(o,t);i>=0&&o.splice(i,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var r=this.animators,a=r.length,o=[],i=0;i<a;i++){var s=r[i];!t||t===s.scope?s.stop(n):o.push(s)}return this.animators=o,this},e.prototype.animateTo=function(t,n,r){M3(this,t,n,r)},e.prototype.animateFrom=function(t,n,r){M3(this,t,n,r,!0)},e.prototype._transitionState=function(t,n,r,a){for(var o=M3(this,n,r,a),i=0;i<o.length;i++)o[i].__fromStateTransition=t},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=t.__inHover=!1,t.__dirty=_o;function n(r,a,o,i){Object.defineProperty(t,r,{get:function(){if(!this[a]){var l=this[a]=[];s(this,l)}return this[a]},set:function(l){this[o]=l[0],this[i]=l[1],this[a]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[o]},set:function(c){l[o]=c}}),Object.defineProperty(u,1,{get:function(){return l[i]},set:function(c){l[i]=c}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();Er(W5,ci);Er(W5,kl);function M3(e,t,n,r,a){n=n||{};var o=[];RH(e,"",e,t,n,r,o,a);var i=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,i--,i<=0&&(s?l&&l():u&&u())},f=function(){i--,i<=0&&(s?l&&l():u&&u())};i||l&&l(),o.length>0&&n.during&&o[0].during(function(h,p){n.during(p)});for(var d=0;d<o.length;d++){var v=o[d];c&&v.done(c),f&&v.aborted(f),n.force&&v.duration(n.duration),v.start(n.easing)}return o}function A3(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function xle(e){return Ea(e[0])}function Cle(e,t,n){if(Ea(t[n]))if(Ea(e[n])||(e[n]=[]),vo(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),A3(e[n],t[n],r))}else{var a=t[n],o=e[n],i=a.length;if(xle(a))for(var s=a[0].length,l=0;l<i;l++)o[l]?A3(o[l],a[l],s):o[l]=Array.prototype.slice.call(a[l]);else A3(o,a,i);o.length=a.length}else e[n]=t[n]}function Tle(e,t){return e===t||Ea(e)&&Ea(t)&&kle(e,t)}function kle(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 RH(e,t,n,r,a,o,i,s){for(var l=dn(r),u=a.duration,c=a.delay,f=a.additive,d=a.setToFinal,v=!Rt(o),h=e.animators,p=[],g=0;g<l.length;g++){var m=l[g],y=r[m];if(y!=null&&n[m]!=null&&(v||o[m]))if(Rt(y)&&!Ea(y)&&!Cw(y)){if(t){s||(n[m]=y,e.updateDuringAnimation(t));continue}RH(e,m,n[m],y,a,o&&o[m],i,s)}else p.push(m);else s||(n[m]=y,e.updateDuringAnimation(t),p.push(m))}var b=p.length;if(!f&&b)for(var w=0;w<h.length;w++){var S=h[w];if(S.targetName===t){var x=S.stopTracks(p);if(x){var C=Xt(h,S);h.splice(C,1)}}}if(a.force||(p=In(p,function(E){return!Tle(r[E],n[E])}),b=p.length),b>0||a.force&&!i.length){var T=void 0,M=void 0,k=void 0;if(s){M={},d&&(T={});for(var w=0;w<b;w++){var m=p[w];M[m]=n[m],d?T[m]=r[m]:n[m]=r[m]}}else if(d){k={};for(var w=0;w<b;w++){var m=p[w];k[m]=z0(n[m]),Cle(n,r,m)}}var S=new H5(n,!1,!1,f?In(h,function(A){return A.targetName===t}):null);S.targetName=t,a.scope&&(S.scope=a.scope),d&&T&&S.whenWithKeys(0,T,p),k&&S.whenWithKeys(0,k,p),S.whenWithKeys(u??500,s?M:r,p).delay(c||0),e.addAnimator(S,t),i.push(S)}}const OH=W5;var NH=function(e){ye(t,e);function t(n){var r=e.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(n){return this._children[n]},t.prototype.childOfName=function(n){for(var r=this._children,a=0;a<r.length;a++)if(r[a].name===n)return r[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},t.prototype.addBefore=function(n,r){if(n&&n!==this&&n.parent!==this&&r&&r.parent===this){var a=this._children,o=a.indexOf(r);o>=0&&(a.splice(o,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var a=Xt(this._children,n);return a>=0&&this.replaceAt(r,a),this},t.prototype.replaceAt=function(n,r){var a=this._children,o=a[r];if(n&&n!==this&&n.parent!==this&&n!==o){a[r]=n,o.parent=null;var i=this.__zr;i&&o.removeSelfFromZr(i),this._doAdd(n)}return this},t.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},t.prototype.remove=function(n){var r=this.__zr,a=this._children,o=Xt(a,n);return o<0?this:(a.splice(o,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},t.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,a=0;a<n.length;a++){var o=n[a];r&&o.removeSelfFromZr(r),o.parent=null}return n.length=0,this},t.prototype.eachChild=function(n,r){for(var a=this._children,o=0;o<a.length;o++){var i=a[o];n.call(r,i,o)}return this},t.prototype.traverse=function(n,r){for(var a=0;a<this._children.length;a++){var o=this._children[a],i=n.call(r,o);o.isGroup&&!i&&o.traverse(n,r)}return this},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.addSelfToZr(n)}},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.removeSelfFromZr(n)}},t.prototype.getBoundingRect=function(n){for(var r=new Ot(0,0,0,0),a=n||this._children,o=[],i=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(o);c?(Ot.applyTransform(r,u,c),i=i||r.clone(),i.union(r)):(i=i||u.clone(),i.union(u))}}return i||r},t}(OH);NH.prototype.type="group";const At=NH;/*!
|
||
* ZRender, a high performance 2d drawing library.
|
||
*
|
||
* Copyright (c) 2013, Baidu Inc.
|
||
* All rights reserved.
|
||
*
|
||
* LICENSE
|
||
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
||
*/var I2={},BH={};function Mle(e){delete BH[e]}function Ale(e){if(!e)return!1;if(typeof e=="string")return Ab(e,1)<rx;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,a=0;a<r;a++)n+=Ab(t[a].color,1);return n/=r,n<rx}return!1}var Ele=function(){function e(t,n,r){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=n,this.id=t;var o=new Vse,i=r.renderer||"canvas";I2[i]||(i=dn(I2)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new I2[i](n,o,r,t),l=r.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u=!kn.node&&!kn.worker&&!l?new mle(s.getViewportRoot(),s.root):null,c=r.useCoarsePointer,f=c==null||c==="auto"?kn.touchEventsSupported:!!c,d=44,v;f&&(v=yt(r.pointerSize,d)),this.handler=new Pse(o,s,u,s.root,v),this.animation=new ule({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,n){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,n),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Ale(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var n,r=Ev();this._needsRefresh&&(n=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var a=Ev();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},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._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.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(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){if(!this._disposed)return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this._disposed||this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},e.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n<t.length;n++)t[n]instanceof At&&t[n].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,Mle(this.id))},e}();function EI(e,t){var n=new Ele(aH(),e,t);return BH[n.id]=n,n}function Ile(e,t){I2[e]=t}var ix;function Lle(e){if(typeof ix=="function")return ix(e)}function Dle(e){ix=e}var II=1e-4,VH=20;function Ple(e){return e.replace(/^\s+|\s+$/g,"")}var Ao=Math.min,mr=Math.max,ms=Math.abs;function En(e,t,n,r){var a=t[0],o=t[1],i=n[0],s=n[1],l=o-a,u=s-i;if(l===0)return u===0?i:(i+s)/2;if(r)if(l>0){if(e<=a)return i;if(e>=o)return s}else{if(e>=a)return i;if(e<=o)return s}else{if(e===a)return i;if(e===o)return s}return(e-a)/l*u+i}var at=Rle;function Rle(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 Pb(e,t,n)}function Pb(e,t,n){return st(e)?Ple(e).match(/%$/)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function xr(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),VH),e=(+e).toFixed(t),n?e:+e}function Zo(e){return e.sort(function(t,n){return t-n}),e}function ys(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return Ole(e)}function Ole(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,a=n>0?n:t.length,o=t.indexOf("."),i=o<0?0:a-1-o;return Math.max(0,i-r)}function $H(e,t){var n=Math.log,r=Math.LN10,a=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(ms(t[1]-t[0]))/r),i=Math.min(Math.max(-a+o,0),20);return isFinite(i)?i:20}function Nle(e,t){var n=Fs(e,function(v,h){return v+(isNaN(h)?0:h)},0);if(n===0)return[];for(var r=Math.pow(10,t),a=$e(e,function(v){return(isNaN(v)?0:v)/n*r*100}),o=r*100,i=$e(a,function(v){return Math.floor(v)}),s=Fs(i,function(v,h){return v+h},0),l=$e(a,function(v,h){return v-i[h]});s<o;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],c=f);++i[c],l[c]=0,++s}return $e(i,function(v){return v/r})}function Ble(e,t){var n=Math.max(ys(e),ys(t)),r=e+t;return n>VH?r:xr(r,n)}var LI=9007199254740991;function zH(e){var t=Math.PI*2;return(e%t+t)%t}function yg(e){return e>-II&&e<II}var Vle=/^(?:(\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 Sd(e){if(e instanceof Date)return e;if(st(e)){var t=Vle.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(Math.round(e))}function $le(e){return Math.pow(10,G5(e))}function G5(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function FH(e,t){var n=G5(e),r=Math.pow(10,n),a=e/r,o;return t?a<1.5?o=1:a<2.5?o=2:a<4?o=3:a<7?o=5:o=10:a<1?o=1:a<2?o=2:a<3?o=3:a<5?o=5:o=10,e=o*r,n>=-20?+e.toFixed(n<0?-n:0):e}function E3(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),a=+e[r-1],o=n-r;return o?a+o*(e[r]-a):a}function DI(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var a=e[r].interval,o=e[r].close,i=0;i<2;i++)a[i]<=t&&(a[i]=t,o[i]=i?1:1-n),t=a[i],n=o[i];a[0]===a[1]&&o[0]*o[1]!==1?e.splice(r,1):r++}return e;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function $l(e){var t=parseFloat(e);return t==e&&(t!==0||!st(e)||e.indexOf("x")<=0)?t:NaN}function HH(e){return!isNaN($l(e))}function WH(){return Math.round(Math.random()*9)}function GH(e,t){return t===0?e:GH(t,e%t)}function PI(e,t){return e==null?t:t==null?e:e*t/GH(e,t)}var zle="[ECharts] ",RI={},Fle=typeof console<"u"&&console.warn&&console.log;function Hle(e,t,n){if(Fle){if(n){if(RI[t])return;RI[t]=!0}console[e](zle+t)}}function UH(e,t){Hle("error",e,t)}function An(e){throw new Error(e)}function OI(e,t,n){return(t-e)*n+e}var KH="series\0",jH="\0_ec_\0";function Bn(e){return e instanceof Array?e:e==null?[]:[e]}function td(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,a=n.length;r<a;r++){var o=n[r];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var NI=["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"];function qh(e){return Rt(e)&&!Ve(e)&&!(e instanceof Date)?e.value:e}function Wle(e){return Rt(e)&&!(e instanceof Array)}function YH(e,t,n){var r=n==="normalMerge",a=n==="replaceMerge",o=n==="replaceAll";e=e||[],t=(t||[]).slice();var i=pt();j(t,function(l,u){if(!Rt(l)){t[u]=null;return}});var s=Gle(e,i,n);return(r||a)&&Ule(s,e,i,t),r&&Kle(s,t),r||a?jle(s,t,a):o&&Yle(s,t),qle(s),s}function Gle(e,t,n){var r=[];if(n==="replaceAll")return r;for(var a=0;a<e.length;a++){var o=e[a];o&&o.id!=null&&t.set(o.id,a),r.push({existing:n==="replaceMerge"||bg(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}function Ule(e,t,n,r){j(r,function(a,o){if(!(!a||a.id==null)){var i=F0(a.id),s=n.get(i);if(s!=null){var l=e[s];Ia(!l.newOption,'Duplicated option on id "'+i+'".'),l.newOption=a,l.existing=t[s],r[o]=null}}})}function Kle(e,t){j(t,function(n,r){if(!(!n||n.name==null))for(var a=0;a<e.length;a++){var o=e[a].existing;if(!e[a].newOption&&o&&(o.id==null||n.id==null)&&!bg(n)&&!bg(o)&&qH("name",o,n)){e[a].newOption=n,t[r]=null;return}}})}function jle(e,t,n){j(t,function(r){if(r){for(var a,o=0;(a=e[o])&&(a.newOption||bg(a.existing)||a.existing&&r.id!=null&&!qH("id",r,a.existing));)o++;a?(a.newOption=r,a.brandNew=n):e.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),o++}})}function Yle(e,t){j(t,function(n){e.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function qle(e){var t=pt();j(e,function(n){var r=n.existing;r&&t.set(r.id,n)}),j(e,function(n){var r=n.newOption;Ia(!r||r.id==null||!t.get(r.id)||t.get(r.id)===n,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&t.set(r.id,n),!n.keyInfo&&(n.keyInfo={})}),j(e,function(n,r){var a=n.existing,o=n.newOption,i=n.keyInfo;if(Rt(o)){if(i.name=o.name!=null?F0(o.name):a?a.name:KH+r,a)i.id=F0(a.id);else if(o.id!=null)i.id=F0(o.id);else{var s=0;do i.id="\0"+i.name+"\0"+s++;while(t.get(i.id))}t.set(i.id,n)}})}function qH(e,t,n){var r=Pr(t[e],null),a=Pr(n[e],null);return r!=null&&a!=null&&r===a}function F0(e){return Pr(e,"")}function Pr(e,t){return e==null?t:st(e)?e:gn(e)||O8(e)?e+"":t}function U5(e){var t=e.name;return!!(t&&t.indexOf(KH))}function bg(e){return e&&e.id!=null&&F0(e.id).indexOf(jH)===0}function Xle(e){return jH+e}function Zle(e,t,n){j(e,function(r){var a=r.newOption;Rt(a)&&(r.keyInfo.mainType=t,r.keyInfo.subType=Jle(t,a,r.existing,n))})}function Jle(e,t,n,r){var a=t.type?t.type:n?n.subType:r.determineSubType(e,t);return a}function Qle(e,t){var n={},r={};return a(e||[],n),a(t||[],r,n),[o(n),o(r)];function a(i,s,l){for(var u=0,c=i.length;u<c;u++){var f=Pr(i[u].seriesId,null);if(f==null)return;for(var d=Bn(i[u].dataIndex),v=l&&l[f],h=0,p=d.length;h<p;h++){var g=d[h];v&&v[g]?v[g]=null:(s[f]||(s[f]={}))[g]=1}}}function o(i,s){var l=[];for(var u in i)if(i.hasOwnProperty(u)&&i[u]!=null)if(s)l.push(+u);else{var c=o(i[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function nd(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Ve(t.dataIndex)?$e(t.dataIndex,function(n){return e.indexOfRawIndex(n)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Ve(t.name)?$e(t.name,function(n){return e.indexOfName(n)}):e.indexOfName(t.name)}function an(){var e="__ec_inner_"+eue++;return function(t){return t[e]||(t[e]={})}}var eue=WH();function jv(e,t,n){var r=K5(t,n),a=r.mainTypeSpecified,o=r.queryOptionMap,i=r.others,s=i,l=n?n.defaultMainType:null;return!a&&l&&o.set(l,{}),o.each(function(u,c){var f=Xh(e,c,u,{useDefault:l===c,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function K5(e,t){var n;if(st(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var a=pt(),o={},i=!1;return j(n,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){o[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&Xt(t.includeMainTypes,c)<0)){i=i||!!c;var d=a.get(c)||a.set(c,{});d[f]=s}}),{mainTypeSpecified:i,queryOptionMap:a,others:o}}var lr={useDefault:!0,enableAll:!1,enableNone:!1},tue={useDefault:!1,enableAll:!0,enableNone:!0};function Xh(e,t,n,r){r=r||lr;var a=n.index,o=n.id,i=n.name,s={models:null,specified:a!=null||o!=null||i!=null};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}if(a==="none"||a===!1){if(r.enableNone)return s.models=[],s;a=-1}return a==="all"&&(r.enableAll?a=o=i=null:a=-1),s.models=e.queryComponents({mainType:t,index:a,id:o,name:i}),s}function XH(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function nue(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function rue(e){return e==="auto"?kn.domSupported?"html":"richText":e||"html"}function sx(e,t){var n=pt(),r=[];return j(e,function(a){var o=t(a);(n.get(o)||(r.push(o),n.set(o,[]))).push(a)}),{keys:r,buckets:n}}function ZH(e,t,n,r,a){var o=t==null||t==="auto";if(r==null)return r;if(gn(r)){var i=OI(n||0,r,a);return xr(i,o?Math.max(ys(n||0),ys(r)):t)}else{if(st(r))return a<1?n:r;for(var s=[],l=n,u=r,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=e.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(a<1&&l?l:u)[f];else{var v=l&&l[f]?l[f]:0,h=u[f],i=OI(v,h,a);s[f]=xr(i,o?Math.max(ys(v),ys(h)):t)}}return s}}var qu=function(){function e(){}return e.prototype.reset=function(t,n,r,a){return this._list=t,this._step=a=a||1,this._idx=n,this._end=r??(a>0?t.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._idx+this._step,!0):!1},e}();function I3(e){e.option=e.parentModel=e.ecModel=null}var aue=".",Rc="___EC__COMPONENT__CONTAINER___",JH="___EC__EXTENDED_CLASS___";function bs(e){var t={main:"",sub:""};if(e){var n=e.split(aue);t.main=n[0]||"",t.sub=n[1]||""}return t}function oue(e){Ia(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function iue(e){return!!(e&&e[JH])}function j5(e,t){e.$constructor=e,e.extend=function(n){var r=this,a;return sue(r)?a=function(o){ye(i,o);function i(){return o.apply(this,arguments)||this}return i}(r):(a=function(){(n.$constructor||r).apply(this,arguments)},Jie(a,this)),Pe(a.prototype,n),a[JH]=!0,a.extend=this.extend,a.superCall=cue,a.superApply=fue,a.superClass=r,a}}function sue(e){return kt(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function QH(e,t){e.extend=t.extend}var lue=Math.round(Math.random()*10);function uue(e){var t=["__\0is_clz",lue++].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!!(n&&n[t])}}function cue(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function fue(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Lw(e){var t={};e.registerClass=function(r){var a=r.type||r.prototype.type;if(a){oue(a),r.prototype.type=a;var o=bs(a);if(!o.sub)t[o.main]=r;else if(o.sub!==Rc){var i=n(o);i[o.sub]=r}}return r},e.getClass=function(r,a,o){var i=t[r];if(i&&i[Rc]&&(i=a?i[a]:null),o&&!i)throw new Error(a?"Component "+r+"."+(a||"")+" is used but not imported.":r+".type should be specified.");return i},e.getClassesByMainType=function(r){var a=bs(r),o=[],i=t[a.main];return i&&i[Rc]?j(i,function(s,l){l!==Rc&&o.push(s)}):o.push(i),o},e.hasClass=function(r){var a=bs(r);return!!t[a.main]},e.getAllClassMainTypes=function(){var r=[];return j(t,function(a,o){r.push(o)}),r},e.hasSubTypes=function(r){var a=bs(r),o=t[a.main];return o&&o[Rc]};function n(r){var a=t[r.main];return(!a||!a[Rc])&&(a=t[r.main]={},a[Rc]=!0),a}}function rd(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(r,a,o){for(var i={},s=0;s<e.length;s++){var l=e[s][1];if(!(a&&Xt(a,l)>=0||o&&Xt(o,l)<0)){var u=r.getShallow(l,t);u!=null&&(i[e[s][0]]=u)}}return i}}var due=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],vue=rd(due),hue=function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return vue(this,t,n)},e}(),lx=new vh(50);function pue(e){if(typeof e=="string"){var t=lx.get(e);return t&&t.image}else return e}function Y5(e,t,n,r,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var o=lx.get(e),i={hostEl:n,cb:r,cbPayload:a};return o?(t=o.image,!Dw(t)&&o.pending.push(i)):(t=Di.loadImage(e,BI,BI),t.__zrImageSrc=e,lx.put(e,t.__cachedImgObj={image:t,pending:[i]})),t}else return e;else return t}function BI(){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 Dw(e){return e&&e.width&&e.height}var L3=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function gue(e,t,n,r,a,o){if(!n){e.text="",e.isTruncated=!1;return}var i=(t+"").split(`
|
||
`);o=eW(n,r,a,o);for(var s=!1,l={},u=0,c=i.length;u<c;u++)tW(l,i[u],o),i[u]=l.textLine,s=s||l.isTruncated;e.text=i.join(`
|
||
`),e.isTruncated=s}function eW(e,t,n,r){r=r||{};var a=Pe({},r);n=yt(n,"..."),a.maxIterations=yt(r.maxIterations,2);var o=a.minChar=yt(r.minChar,0),i=a.fontMeasureInfo=Is(t),s=i.asciiCharWidth;a.placeholder=yt(r.placeholder,"");for(var l=e=Math.max(0,e-1),u=0;u<o&&l>=s;u++)l-=s;var c=Ls(i,n);return c>l&&(n="",c=0),l=e-c,a.ellipsis=n,a.ellipsisWidth=c,a.contentWidth=l,a.containerWidth=e,a}function tW(e,t,n){var r=n.containerWidth,a=n.contentWidth,o=n.fontMeasureInfo;if(!r){e.textLine="",e.isTruncated=!1;return}var i=Ls(o,t);if(i<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(i<=a||s>=n.maxIterations){t+=n.ellipsis;break}var l=s===0?mue(t,a,o):i>0?Math.floor(t.length*a/i):0;t=t.substr(0,l),i=Ls(o,t)}t===""&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function mue(e,t,n){for(var r=0,a=0,o=e.length;a<o&&r<t;a++)r+=PH(n,e.charCodeAt(a));return a}function yue(e,t,n,r){var a=q5(e),o=t.overflow,i=t.padding,s=i?i[1]+i[3]:0,l=i?i[0]+i[2]:0,u=t.font,c=o==="truncate",f=Im(u),d=yt(t.lineHeight,f),v=t.lineOverflow==="truncate",h=!1,p=t.width;p==null&&n!=null&&(p=n-s);var g=t.height;g==null&&r!=null&&(g=r-l);var m;p!=null&&(o==="break"||o==="breakAll")?m=a?nW(a,t.font,p,o==="breakAll",0).lines:[]:m=a?a.split(`
|
||
`):[];var y=m.length*d;if(g==null&&(g=y),y>g&&v){var b=Math.floor(g/d);h=h||m.length>b,m=m.slice(0,b),y=m.length*d}if(a&&c&&p!=null)for(var w=eW(p,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),S={},x=0;x<m.length;x++)tW(S,m[x],w),m[x]=S.textLine,h=h||S.isTruncated;for(var C=g,T=0,M=Is(u),x=0;x<m.length;x++)T=Math.max(Ls(M,m[x]),T);p==null&&(p=T);var k=p;return C+=l,k+=s,{lines:m,height:g,outerWidth:k,outerHeight:C,lineHeight:d,calculatedLineHeight:f,contentWidth:T,contentHeight:y,width:p,isTruncated:h}}var bue=function(){function e(){}return e}(),VI=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),_ue=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 wue(e,t,n,r,a){var o=new _ue,i=q5(e);if(!i)return o;var s=t.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,c=t.width;c==null&&n!=null&&(c=n-l);var f=t.height;f==null&&r!=null&&(f=r-u);for(var d=t.overflow,v=(d==="break"||d==="breakAll")&&c!=null?{width:c,accumWidth:0,breakAll:d==="breakAll"}:null,h=L3.lastIndex=0,p;(p=L3.exec(i))!=null;){var g=p.index;g>h&&D3(o,i.substring(h,g),t,v),D3(o,p[2],t,v,p[1]),h=L3.lastIndex}h<i.length&&D3(o,i.substring(h,i.length),t,v);var m=[],y=0,b=0,w=d==="truncate",S=t.lineOverflow==="truncate",x={};function C(te,oe,re){te.width=oe,te.lineHeight=re,y+=re,b=Math.max(b,oe)}e:for(var T=0;T<o.lines.length;T++){for(var M=o.lines[T],k=0,E=0,A=0;A<M.tokens.length;A++){var I=M.tokens[A],O=I.styleName&&t.rich[I.styleName]||{},z=I.textPadding=O.padding,$=z?z[1]+z[3]:0,P=I.font=O.font||t.font;I.contentHeight=Im(P);var L=yt(O.height,I.contentHeight);if(I.innerHeight=L,z&&(L+=z[0]+z[2]),I.height=L,I.lineHeight=Mo(O.lineHeight,t.lineHeight,L),I.align=O&&O.align||a,I.verticalAlign=O&&O.verticalAlign||"middle",S&&f!=null&&y+I.lineHeight>f){var V=o.lines.length;A>0?(M.tokens=M.tokens.slice(0,A),C(M,E,k),o.lines=o.lines.slice(0,T+1)):o.lines=o.lines.slice(0,T),o.isTruncated=o.isTruncated||o.lines.length<V;break e}var B=O.width,F=B==null||B==="auto";if(typeof B=="string"&&B.charAt(B.length-1)==="%")I.percentWidth=B,m.push(I),I.contentWidth=Ls(Is(P),I.text);else{if(F){var U=O.backgroundColor,G=U&&U.image;G&&(G=pue(G),Dw(G)&&(I.width=Math.max(I.width,G.width*L/G.height)))}var Y=w&&c!=null?c-E:null;Y!=null&&Y<I.width?!F||Y<$?(I.text="",I.width=I.contentWidth=0):(gue(x,I.text,Y-$,P,t.ellipsis,{minChar:t.truncateMinChar}),I.text=x.text,o.isTruncated=o.isTruncated||x.isTruncated,I.width=I.contentWidth=Ls(Is(P),I.text)):I.contentWidth=Ls(Is(P),I.text)}I.width+=$,E+=I.width,O&&(k=Math.max(k,I.lineHeight))}C(M,E,k)}o.outerWidth=o.width=yt(c,b),o.outerHeight=o.height=yt(f,y),o.contentHeight=y,o.contentWidth=b,o.outerWidth+=l,o.outerHeight+=u;for(var T=0;T<m.length;T++){var I=m[T],X=I.percentWidth;I.width=parseInt(X,10)/100*o.width}return o}function D3(e,t,n,r,a){var o=t==="",i=a&&n.rich[a]||{},s=e.lines,l=i.font||n.font,u=!1,c,f;if(r){var d=i.padding,v=d?d[1]+d[3]:0;if(i.width!=null&&i.width!=="auto"){var h=Ri(i.width,r.width)+v;s.length>0&&h+r.accumWidth>r.width&&(c=t.split(`
|
||
`),u=!0),r.accumWidth=h}else{var p=nW(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=p.accumWidth+v,f=p.linesWidths,c=p.lines}}c||(c=t.split(`
|
||
`));for(var g=Is(l),m=0;m<c.length;m++){var y=c[m],b=new bue;if(b.styleName=a,b.text=y,b.isLineHolder=!y&&!o,typeof i.width=="number"?b.width=i.width:b.width=f?f[m]:Ls(g,y),!m&&!u){var w=(s[s.length-1]||(s[0]=new VI)).tokens,S=w.length;S===1&&w[0].isLineHolder?w[0]=b:(y||!S||o)&&w.push(b)}else s.push(new VI([b]))}}function Sue(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var xue=Fs(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Cue(e){return Sue(e)?!!xue[e]:!0}function nW(e,t,n,r,a){for(var o=[],i=[],s="",l="",u=0,c=0,f=Is(t),d=0;d<e.length;d++){var v=e.charAt(d);if(v===`
|
||
`){l&&(s+=l,c+=u),o.push(s),i.push(c),s="",l="",u=0,c=0;continue}var h=PH(f,v.charCodeAt(0)),p=r?!1:!Cue(v);if(o.length?c+h>n:a+c+h>n){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),o.push(s),i.push(c-u),l+=v,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),i.push(c),s=v,c=h)):p?(o.push(l),i.push(u),l=v,u=h):(o.push(v),i.push(h));continue}c+=h,p?(l+=v,u+=h):(l&&(s+=l,l="",u=0),s+=v)}return l&&(s+=l),s&&(o.push(s),i.push(c)),o.length===1&&(c+=a),{accumWidth:c,lines:o,linesWidths:i}}function $I(e,t,n,r,a,o){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,!!t){var i=t.width*2,s=t.height*2;Ot.set(zI,hh(n,i,a),$f(r,s,o),i,s),Ot.intersect(t,zI,null,FI);var l=FI.outIntersectRect;e.outerWidth=l.width,e.outerHeight=l.height,e.baseX=hh(l.x,l.width,a,!0),e.baseY=$f(l.y,l.height,o,!0)}}var zI=new Ot(0,0,0,0),FI={outIntersectRect:{},clamp:!0};function q5(e){return e!=null?e+="":e=""}function Tue(e){var t=q5(e.text),n=e.font,r=Ls(Is(n),t),a=Im(n);return ux(e,r,a,null)}function ux(e,t,n,r){var a=new Ot(hh(e.x||0,t,e.textAlign),$f(e.y||0,n,e.textBaseline),t,n),o=r??(rW(e)?e.lineWidth:0);return o>0&&(a.x-=o/2,a.y-=o/2,a.width+=o,a.height+=o),a}function rW(e){var t=e.stroke;return t!=null&&t!=="none"&&e.lineWidth>0}var cx="__zr_style_"+Math.round(Math.random()*10),zf={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Pw={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};zf[cx]=!0;var HI=["z","z2","invisible"],kue=["invisible"],Mue=function(e){ye(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=dn(n),a=0;a<r.length;a++){var o=r[a];o==="style"?this.useStyle(n[o]):e.prototype.attrKV.call(this,o,n[o])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(n,r,a,o){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Aue(this,n,r)||i&&!i[0]&&!i[3])return!1;if(a&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(o&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(n,r){return this.rectContain(n,r)},t.prototype.traverse=function(n,r){n.call(r,this)},t.prototype.rectContain=function(n,r){var a=this.transformCoordToLocal(n,r),o=this.getBoundingRect();return o.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,a=this.getBoundingRect(),o=this.style,i=o.shadowBlur||0,s=o.shadowOffsetX||0,l=o.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new Ot(0,0,0,0)),r?Ot.applyTransform(n,a,r):n.copy(a),(i||s||l)&&(n.width+=i*2+Math.abs(s),n.height+=i*2+Math.abs(l),n.x=Math.min(n.x,n.x+s-i),n.y=Math.min(n.y,n.y+l-i));var u=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-u),n.y=Math.floor(n.y-u),n.width=Math.ceil(n.width+1+u*2),n.height=Math.ceil(n.height+1+u*2))}return n},t.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new Ot(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(n){return this.animate("style",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(n,r){n!=="style"?e.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},t.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:Pe(this.style,n),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=h0,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&h0)},t.prototype.styleUpdated=function(){this.__dirty&=~h0},t.prototype.createStyle=function(n){return kw(zf,n)},t.prototype.useStyle=function(n){n[cx]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},t.prototype.isStyleObject=function(n){return n[cx]},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,r,HI)},t.prototype._applyStateObj=function(n,r,a,o,i,s){e.prototype._applyStateObj.call(this,n,r,a,o,i,s);var l=!(r&&o),u;if(r&&r.style?i?o?u=r.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,r.style)):(u=this._mergeStyle(this.createStyle(),o?this.style:a.style),this._mergeStyle(u,r.style)):l&&(u=a.style),u)if(i){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=dn(c),d=0;d<f.length;d++){var v=f[d];v in u&&(u[v]=u[v],this.style[v]=c[v])}for(var h=dn(u),d=0;d<h.length;d++){var v=h[d];this.style[v]=this.style[v]}this._transitionState(n,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?kue:HI,d=0;d<p.length;d++){var v=p[d];r&&r[v]!=null?this[v]=r[v]:l&&a[v]!=null&&(this[v]=a[v])}},t.prototype._mergeStates=function(n){for(var r=e.prototype._mergeStates.call(this,n),a,o=0;o<n.length;o++){var i=n[o];i.style&&(a=a||{},this._mergeStyle(a,i.style))}return a&&(r.style=a),r},t.prototype._mergeStyle=function(n,r){return Pe(n,r),n},t.prototype.getAnimationStyleProps=function(){return Pw},t.initDefaultProps=function(){var n=t.prototype;n.type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,n.__dirty=_o|h0}(),t}(OH),P3=new Ot(0,0,0,0),R3=new Ot(0,0,0,0);function Aue(e,t,n){return P3.copy(e.getBoundingRect()),e.transform&&P3.applyTransform(e.transform),R3.width=t,R3.height=n,!P3.intersect(R3)}const ai=Mue;var no=Math.min,ro=Math.max,O3=Math.sin,N3=Math.cos,Oc=Math.PI*2,K1=wd(),j1=wd(),Y1=wd();function Rw(e,t,n){if(e.length!==0){for(var r=e[0],a=r[0],o=r[0],i=r[1],s=r[1],l=1;l<e.length;l++)r=e[l],a=no(a,r[0]),o=ro(o,r[0]),i=no(i,r[1]),s=ro(s,r[1]);t[0]=a,t[1]=i,n[0]=o,n[1]=s}}function WI(e,t,n,r,a,o){a[0]=no(e,n),a[1]=no(t,r),o[0]=ro(e,n),o[1]=ro(t,r)}var GI=[],UI=[];function Eue(e,t,n,r,a,o,i,s,l,u){var c=yH,f=Fr,d=c(e,n,a,i,GI);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<d;v++){var h=f(e,n,a,i,GI[v]);l[0]=no(h,l[0]),u[0]=ro(h,u[0])}d=c(t,r,o,s,UI);for(var v=0;v<d;v++){var p=f(t,r,o,s,UI[v]);l[1]=no(p,l[1]),u[1]=ro(p,u[1])}l[0]=no(e,l[0]),u[0]=ro(e,u[0]),l[0]=no(i,l[0]),u[0]=ro(i,u[0]),l[1]=no(t,l[1]),u[1]=ro(t,u[1]),l[1]=no(s,l[1]),u[1]=ro(s,u[1])}function Iue(e,t,n,r,a,o,i,s){var l=_H,u=Zr,c=ro(no(l(e,n,a),1),0),f=ro(no(l(t,r,o),1),0),d=u(e,n,a,c),v=u(t,r,o,f);i[0]=no(e,a,d),i[1]=no(t,o,v),s[0]=ro(e,a,d),s[1]=ro(t,o,v)}function Lue(e,t,n,r,a,o,i,s,l){var u=Ru,c=Ou,f=Math.abs(a-o);if(f%Oc<1e-4&&f>1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(K1[0]=N3(a)*n+e,K1[1]=O3(a)*r+t,j1[0]=N3(o)*n+e,j1[1]=O3(o)*r+t,u(s,K1,j1),c(l,K1,j1),a=a%Oc,a<0&&(a=a+Oc),o=o%Oc,o<0&&(o=o+Oc),a>o&&!i?o+=Oc:a<o&&i&&(a+=Oc),i){var d=o;o=a,a=d}for(var v=0;v<o;v+=Math.PI/2)v>a&&(Y1[0]=N3(v)*n+e,Y1[1]=O3(v)*r+t,u(s,Y1,s),c(l,Y1,l))}var Vn={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Nc=[],Bc=[],ts=[],su=[],ns=[],rs=[],B3=Math.min,V3=Math.max,Vc=Math.cos,$c=Math.sin,ul=Math.abs,fx=Math.PI,_u=fx*2,$3=typeof Float32Array<"u",Ep=[];function z3(e){var t=Math.round(e/fx*1e8)/1e8;return t%2*fx}function Ow(e,t){var n=z3(e[0]);n<0&&(n+=_u);var r=n-e[0],a=e[1];a+=r,!t&&a-n>=_u?a=n+_u:t&&n-a>=_u?a=n-_u:!t&&n>a?a=n+(_u-z3(n-a)):t&&n<a&&(a=n-(_u-z3(a-n))),e[0]=n,e[1]=a}var Gs=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(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(t,n,r){r=r||0,r>0&&(this._ux=ul(r/Ib/t)||0,this._uy=ul(r/Ib/n)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},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(t,n){return this._drawPendingPt(),this.addData(Vn.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},e.prototype.lineTo=function(t,n){var r=ul(t-this._xi),a=ul(n-this._yi),o=r>this._ux||a>this._uy;if(this.addData(Vn.L,t,n),this._ctx&&o&&this._ctx.lineTo(t,n),o)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var i=r*r+a*a;i>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=i)}return this},e.prototype.bezierCurveTo=function(t,n,r,a,o,i){return this._drawPendingPt(),this.addData(Vn.C,t,n,r,a,o,i),this._ctx&&this._ctx.bezierCurveTo(t,n,r,a,o,i),this._xi=o,this._yi=i,this},e.prototype.quadraticCurveTo=function(t,n,r,a){return this._drawPendingPt(),this.addData(Vn.Q,t,n,r,a),this._ctx&&this._ctx.quadraticCurveTo(t,n,r,a),this._xi=r,this._yi=a,this},e.prototype.arc=function(t,n,r,a,o,i){this._drawPendingPt(),Ep[0]=a,Ep[1]=o,Ow(Ep,i),a=Ep[0],o=Ep[1];var s=o-a;return this.addData(Vn.A,t,n,r,r,a,s,0,i?0:1),this._ctx&&this._ctx.arc(t,n,r,a,o,i),this._xi=Vc(o)*r+t,this._yi=$c(o)*r+n,this},e.prototype.arcTo=function(t,n,r,a,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,r,a,o),this},e.prototype.rect=function(t,n,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,r,a),this.addData(Vn.R,t,n,r,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Vn.Z);var t=this._ctx,n=this._x0,r=this._y0;return t&&t.closePath(),this._xi=n,this._yi=r,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){if(this._saveData){var n=t.length;!(this.data&&this.data.length===n)&&$3&&(this.data=new Float32Array(n));for(var r=0;r<n;r++)this.data[r]=t[r];this._len=n}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var n=t.length,r=0,a=this._len,o=0;o<n;o++)r+=t[o].len();var i=this.data;if($3&&(i instanceof Float32Array||!i)&&(this.data=new Float32Array(a+r),a>0&&i))for(var s=0;s<a;s++)this.data[s]=i[s];for(var o=0;o<n;o++)for(var l=t[o].data,s=0;s<l.length;s++)this.data[a++]=l[s];this._len=a}},e.prototype.addData=function(t,n,r,a,o,i,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},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 t=[],n=0;n<this._len;n++)t[n]=this.data[n];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,$3&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){ts[0]=ts[1]=ns[0]=ns[1]=Number.MAX_VALUE,su[0]=su[1]=rs[0]=rs[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,a=0,o=0,i;for(i=0;i<this._len;){var s=t[i++],l=i===1;switch(l&&(n=t[i],r=t[i+1],a=n,o=r),s){case Vn.M:n=a=t[i++],r=o=t[i++],ns[0]=a,ns[1]=o,rs[0]=a,rs[1]=o;break;case Vn.L:WI(n,r,t[i],t[i+1],ns,rs),n=t[i++],r=t[i++];break;case Vn.C:Eue(n,r,t[i++],t[i++],t[i++],t[i++],t[i],t[i+1],ns,rs),n=t[i++],r=t[i++];break;case Vn.Q:Iue(n,r,t[i++],t[i++],t[i],t[i+1],ns,rs),n=t[i++],r=t[i++];break;case Vn.A:var u=t[i++],c=t[i++],f=t[i++],d=t[i++],v=t[i++],h=t[i++]+v;i+=1;var p=!t[i++];l&&(a=Vc(v)*f+u,o=$c(v)*d+c),Lue(u,c,f,d,v,h,p,ns,rs),n=Vc(h)*f+u,r=$c(h)*d+c;break;case Vn.R:a=n=t[i++],o=r=t[i++];var g=t[i++],m=t[i++];WI(a,o,a+g,o+m,ns,rs);break;case Vn.Z:n=a,r=o;break}Ru(ts,ts,ns),Ou(su,su,rs)}return i===0&&(ts[0]=ts[1]=su[0]=su[1]=0),new Ot(ts[0],ts[1],su[0]-ts[0],su[1]-ts[1])},e.prototype._calculateLength=function(){var t=this.data,n=this._len,r=this._ux,a=this._uy,o=0,i=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<n;){var v=t[d++],h=d===1;h&&(o=t[d],i=t[d+1],s=o,l=i);var p=-1;switch(v){case Vn.M:o=s=t[d++],i=l=t[d++];break;case Vn.L:{var g=t[d++],m=t[d++],y=g-o,b=m-i;(ul(y)>r||ul(b)>a||d===n-1)&&(p=Math.sqrt(y*y+b*b),o=g,i=m);break}case Vn.C:{var w=t[d++],S=t[d++],g=t[d++],m=t[d++],x=t[d++],C=t[d++];p=$se(o,i,w,S,g,m,x,C,10),o=x,i=C;break}case Vn.Q:{var w=t[d++],S=t[d++],g=t[d++],m=t[d++];p=Fse(o,i,w,S,g,m,10),o=g,i=m;break}case Vn.A:var T=t[d++],M=t[d++],k=t[d++],E=t[d++],A=t[d++],I=t[d++],O=I+A;d+=1,h&&(s=Vc(A)*k+T,l=$c(A)*E+M),p=V3(k,E)*B3(_u,Math.abs(I)),o=Vc(O)*k+T,i=$c(O)*E+M;break;case Vn.R:{s=o=t[d++],l=i=t[d++];var z=t[d++],$=t[d++];p=z*2+$*2;break}case Vn.Z:{var y=s-o,b=l-i;p=Math.sqrt(y*y+b*b),o=s,i=l;break}}p>=0&&(u[f++]=p,c+=p)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,n){var r=this.data,a=this._ux,o=this._uy,i=this._len,s,l,u,c,f,d,v=n<1,h,p,g=0,m=0,y,b=0,w,S;if(!(v&&(this._pathSegLen||this._calculateLength(),h=this._pathSegLen,p=this._pathLen,y=n*p,!y)))e:for(var x=0;x<i;){var C=r[x++],T=x===1;switch(T&&(u=r[x],c=r[x+1],s=u,l=c),C!==Vn.L&&b>0&&(t.lineTo(w,S),b=0),C){case Vn.M:s=u=r[x++],l=c=r[x++],t.moveTo(u,c);break;case Vn.L:{f=r[x++],d=r[x++];var M=ul(f-u),k=ul(d-c);if(M>a||k>o){if(v){var E=h[m++];if(g+E>y){var A=(y-g)/E;t.lineTo(u*(1-A)+f*A,c*(1-A)+d*A);break e}g+=E}t.lineTo(f,d),u=f,c=d,b=0}else{var I=M*M+k*k;I>b&&(w=f,S=d,b=I)}break}case Vn.C:{var O=r[x++],z=r[x++],$=r[x++],P=r[x++],L=r[x++],V=r[x++];if(v){var E=h[m++];if(g+E>y){var A=(y-g)/E;ic(u,O,$,L,A,Nc),ic(c,z,P,V,A,Bc),t.bezierCurveTo(Nc[1],Bc[1],Nc[2],Bc[2],Nc[3],Bc[3]);break e}g+=E}t.bezierCurveTo(O,z,$,P,L,V),u=L,c=V;break}case Vn.Q:{var O=r[x++],z=r[x++],$=r[x++],P=r[x++];if(v){var E=h[m++];if(g+E>y){var A=(y-g)/E;pg(u,O,$,A,Nc),pg(c,z,P,A,Bc),t.quadraticCurveTo(Nc[1],Bc[1],Nc[2],Bc[2]);break e}g+=E}t.quadraticCurveTo(O,z,$,P),u=$,c=P;break}case Vn.A:var B=r[x++],F=r[x++],U=r[x++],G=r[x++],Y=r[x++],X=r[x++],te=r[x++],oe=!r[x++],re=U>G?U:G,ce=ul(U-G)>.001,ie=Y+X,Z=!1;if(v){var E=h[m++];g+E>y&&(ie=Y+X*(y-g)/E,Z=!0),g+=E}if(ce&&t.ellipse?t.ellipse(B,F,U,G,te,Y,ie,oe):t.arc(B,F,re,Y,ie,oe),Z)break e;T&&(s=Vc(Y)*U+B,l=$c(Y)*G+F),u=Vc(ie)*U+B,c=$c(ie)*G+F;break;case Vn.R:s=u=r[x],l=c=r[x+1],f=r[x++],d=r[x++];var se=r[x++],J=r[x++];if(v){var E=h[m++];if(g+E>y){var ae=y-g;t.moveTo(f,d),t.lineTo(f+B3(ae,se),d),ae-=se,ae>0&&t.lineTo(f+se,d+B3(ae,J)),ae-=J,ae>0&&t.lineTo(f+V3(se-ae,0),d+J),ae-=se,ae>0&&t.lineTo(f,d+V3(J-ae,0));break e}g+=E}t.rect(f,d,se,J);break;case Vn.Z:if(v){var E=h[m++];if(g+E>y){var A=(y-g)/E;t.lineTo(u*(1-A)+s*A,c*(1-A)+l*A);break e}g+=E}t.closePath(),u=s,c=l}}},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=Vn,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function Eu(e,t,n,r,a,o,i){if(a===0)return!1;var s=a,l=0,u=e;if(i>t+s&&i>r+s||i<t-s&&i<r-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e!==n)l=(t-r)/(e-n),u=(e*r-n*t)/(e-n);else return Math.abs(o-e)<=s/2;var c=l*o-i+u,f=c*c/(l*l+1);return f<=s/2*s/2}function Due(e,t,n,r,a,o,i,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>r+f&&c>o+f&&c>s+f||c<t-f&&c<r-f&&c<o-f&&c<s-f||u>e+f&&u>n+f&&u>a+f&&u>i+f||u<e-f&&u<n-f&&u<a-f&&u<i-f)return!1;var d=bH(e,t,n,r,a,o,i,s,u,c,null);return d<=f/2}function aW(e,t,n,r,a,o,i,s,l){if(i===0)return!1;var u=i;if(l>t+u&&l>r+u&&l>o+u||l<t-u&&l<r-u&&l<o-u||s>e+u&&s>n+u&&s>a+u||s<e-u&&s<n-u&&s<a-u)return!1;var c=wH(e,t,n,r,a,o,s,l,null);return c<=u/2}var KI=Math.PI*2;function wo(e){return e%=KI,e<0&&(e+=KI),e}var Ip=Math.PI*2;function Pue(e,t,n,r,a,o,i,s,l){if(i===0)return!1;var u=i;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-a)%Ip<1e-4)return!0;if(o){var f=r;r=wo(a),a=wo(f)}else r=wo(r),a=wo(a);r>a&&(a+=Ip);var d=Math.atan2(l,s);return d<0&&(d+=Ip),d>=r&&d<=a||d+Ip>=r&&d+Ip<=a}function ml(e,t,n,r,a,o){if(o>t&&o>r||o<t&&o<r||r===t)return 0;var i=(o-t)/(r-t),s=r<t?1:-1;(i===1||i===0)&&(s=r<t?.5:-.5);var l=i*(n-e)+e;return l===a?1/0:l>a?s:0}var lu=Gs.CMD,zc=Math.PI*2,Rue=1e-4;function Oue(e,t){return Math.abs(e-t)<Rue}var Va=[-1,-1,-1],Wo=[-1,-1];function Nue(){var e=Wo[0];Wo[0]=Wo[1],Wo[1]=e}function Bue(e,t,n,r,a,o,i,s,l,u){if(u>t&&u>r&&u>o&&u>s||u<t&&u<r&&u<o&&u<s)return 0;var c=kb(t,r,o,s,u,Va);if(c===0)return 0;for(var f=0,d=-1,v=void 0,h=void 0,p=0;p<c;p++){var g=Va[p],m=g===0||g===1?.5:1,y=Fr(e,n,a,i,g);y<l||(d<0&&(d=yH(t,r,o,s,Wo),Wo[1]<Wo[0]&&d>1&&Nue(),v=Fr(t,r,o,s,Wo[0]),d>1&&(h=Fr(t,r,o,s,Wo[1]))),d===2?g<Wo[0]?f+=v<t?m:-m:g<Wo[1]?f+=h<v?m:-m:f+=s<h?m:-m:g<Wo[0]?f+=v<t?m:-m:f+=s<v?m:-m)}return f}function Vue(e,t,n,r,a,o,i,s){if(s>t&&s>r&&s>o||s<t&&s<r&&s<o)return 0;var l=zse(t,r,o,s,Va);if(l===0)return 0;var u=_H(t,r,o);if(u>=0&&u<=1){for(var c=0,f=Zr(t,r,o,u),d=0;d<l;d++){var v=Va[d]===0||Va[d]===1?.5:1,h=Zr(e,n,a,Va[d]);h<i||(Va[d]<u?c+=f<t?v:-v:c+=o<f?v:-v)}return c}else{var v=Va[0]===0||Va[0]===1?.5:1,h=Zr(e,n,a,Va[0]);return h<i?0:o<t?v:-v}}function $ue(e,t,n,r,a,o,i,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Va[0]=-l,Va[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=zc-1e-4){r=0,a=zc;var c=o?1:-1;return i>=Va[0]+e&&i<=Va[1]+e?c:0}if(r>a){var f=r;r=a,a=f}r<0&&(r+=zc,a+=zc);for(var d=0,v=0;v<2;v++){var h=Va[v];if(h+e>i){var p=Math.atan2(s,h),c=o?1:-1;p<0&&(p=zc+p),(p>=r&&p<=a||p+zc>=r&&p+zc<=a)&&(p>Math.PI/2&&p<Math.PI*1.5&&(c=-c),d+=c)}}return d}function oW(e,t,n,r,a){for(var o=e.data,i=e.len(),s=0,l=0,u=0,c=0,f=0,d,v,h=0;h<i;){var p=o[h++],g=h===1;switch(p===lu.M&&h>1&&(n||(s+=ml(l,u,c,f,r,a))),g&&(l=o[h],u=o[h+1],c=l,f=u),p){case lu.M:c=o[h++],f=o[h++],l=c,u=f;break;case lu.L:if(n){if(Eu(l,u,o[h],o[h+1],t,r,a))return!0}else s+=ml(l,u,o[h],o[h+1],r,a)||0;l=o[h++],u=o[h++];break;case lu.C:if(n){if(Due(l,u,o[h++],o[h++],o[h++],o[h++],o[h],o[h+1],t,r,a))return!0}else s+=Bue(l,u,o[h++],o[h++],o[h++],o[h++],o[h],o[h+1],r,a)||0;l=o[h++],u=o[h++];break;case lu.Q:if(n){if(aW(l,u,o[h++],o[h++],o[h],o[h+1],t,r,a))return!0}else s+=Vue(l,u,o[h++],o[h++],o[h],o[h+1],r,a)||0;l=o[h++],u=o[h++];break;case lu.A:var m=o[h++],y=o[h++],b=o[h++],w=o[h++],S=o[h++],x=o[h++];h+=1;var C=!!(1-o[h++]);d=Math.cos(S)*b+m,v=Math.sin(S)*w+y,g?(c=d,f=v):s+=ml(l,u,d,v,r,a);var T=(r-m)*w/b+m;if(n){if(Pue(m,y,w,S,S+x,C,t,T,a))return!0}else s+=$ue(m,y,w,S,S+x,C,T,a);l=Math.cos(S+x)*b+m,u=Math.sin(S+x)*w+y;break;case lu.R:c=l=o[h++],f=u=o[h++];var M=o[h++],k=o[h++];if(d=c+M,v=f+k,n){if(Eu(c,f,d,f,t,r,a)||Eu(d,f,d,v,t,r,a)||Eu(d,v,c,v,t,r,a)||Eu(c,v,c,f,t,r,a))return!0}else s+=ml(d,f,d,v,r,a),s+=ml(c,v,c,f,r,a);break;case lu.Z:if(n){if(Eu(l,u,c,f,t,r,a))return!0}else s+=ml(l,u,c,f,r,a);l=c,u=f;break}}return!n&&!Oue(u,f)&&(s+=ml(l,u,c,f,r,a)||0),s!==0}function zue(e,t,n){return oW(e,0,!1,t,n)}function Fue(e,t,n,r){return oW(e,t,!0,n,r)}var Rb=Pt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},zf),Hue={style:Pt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Pw.style)},F3=Ws.concat(["invisible","culling","z","z2","zlevel","parent"]),Wue=function(e){ye(t,e);function t(n){return e.call(this,n)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){n.buildPath(l,n.shape)}),a.silent=!0;var o=a.style;for(var i in r)o[i]!==r[i]&&(o[i]=r[i]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<F3.length;++s)a[F3[s]]=this[F3[s]];a.__dirty|=_o}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(n){var r=dn(n);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var o=0;o<r.length;o++){var i=r[o],s=n[i];i==="style"?this.style?Pe(this.style,s):this.useStyle(s):i==="shape"?Pe(this.shape,s):e.prototype.attrKV.call(this,i,s)}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 n=this.style.fill;if(n!=="none"){if(st(n)){var r=Ab(n,0);return r>.5?ax:r>.2?yle:ox}else if(n)return ox}return ax},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(st(r)){var a=this.__zr,o=!!(a&&a.isDarkMode()),i=Ab(n,0)<rx;if(o===i)return r}},t.prototype.buildPath=function(n,r,a){},t.prototype.pathUpdated=function(){this.__dirty&=~wv},t.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},t.prototype.createPathProxy=function(){this.path=new Gs(!1)},t.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return!(r==null||r==="none"||!(n.lineWidth>0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,a=!n;if(a){var o=!1;this.path||(o=!0,this.createPathProxy());var i=this.path;(o||this.__dirty&wv)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),n=i.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||a){s.copy(n);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return n},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),o=this.getBoundingRect(),i=this.style;if(n=a[0],r=a[1],o.contain(n,r)){var s=this.path;if(this.hasStroke()){var l=i.lineWidth,u=i.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),Fue(s,l/u,n,r)))return!0}if(this.hasFill())return zue(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=wv,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):e.prototype.attrKV.call(this,n,r)},t.prototype.setShape=function(n,r){var a=this.shape;return a||(a=this.shape={}),typeof n=="string"?a[n]=r:Pe(a,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&wv)},t.prototype.createStyle=function(n){return kw(Rb,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=Pe({},this.shape))},t.prototype._applyStateObj=function(n,r,a,o,i,s){e.prototype._applyStateObj.call(this,n,r,a,o,i,s);var l=!(r&&o),u;if(r&&r.shape?i?o?u=r.shape:(u=Pe({},a.shape),Pe(u,r.shape)):(u=Pe({},o?this.shape:a.shape),Pe(u,r.shape)):l&&(u=a.shape),u)if(i){this.shape=Pe({},this.shape);for(var c={},f=dn(u),d=0;d<f.length;d++){var v=f[d];typeof u[v]=="object"?this.shape[v]=u[v]:c[v]=u[v]}this._transitionState(n,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(n){for(var r=e.prototype._mergeStates.call(this,n),a,o=0;o<n.length;o++){var i=n[o];i.shape&&(a=a||{},this._mergeStyle(a,i.shape))}return a&&(r.shape=a),r},t.prototype.getAnimationStyleProps=function(){return Hue},t.prototype.isZeroArea=function(){return!1},t.extend=function(n){var r=function(o){ye(i,o);function i(s){var l=o.call(this,s)||this;return n.init&&n.init.call(l,s),l}return i.prototype.getDefaultStyle=function(){return Mt(n.style)},i.prototype.getDefaultShape=function(){return Mt(n.shape)},i}(t);for(var a in n)typeof n[a]=="function"&&(r.prototype[a]=n[a]);return r},t.initDefaultProps=function(){var n=t.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=_o|h0|wv}(),t}(ai);const ln=Wue;var Gue=Pt({strokeFirst:!0,font:Bl,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Rb),iW=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return rW(this.style)},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return kw(Gue,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=Tue(this.style)),this._rect},t.initDefaultProps=function(){var n=t.prototype;n.dirtyRectTolerance=10}(),t}(ai);iW.prototype.type="tspan";const _g=iW;var Uue=Pt({x:0,y:0},zf),Kue={style:Pt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Pw.style)};function jue(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var sW=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return kw(Uue,n)},t.prototype._getSize=function(n){var r=this.style,a=r[n];if(a!=null)return a;var o=jue(r.image)?r.image:this.__image;if(!o)return 0;var i=n==="width"?"height":"width",s=r[i];return s==null?o[n]:o[n]/o[i]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Kue},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Ot(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ai);sW.prototype.type="image";const da=sW;function Yue(e,t){var n=t.x,r=t.y,a=t.width,o=t.height,i=t.r,s,l,u,c;a<0&&(n=n+a,a=-a),o<0&&(r=r+o,o=-o),typeof i=="number"?s=l=u=c=i:i instanceof Array?i.length===1?s=l=u=c=i[0]:i.length===2?(s=u=i[0],l=c=i[1]):i.length===3?(s=i[0],l=c=i[1],u=i[2]):(s=i[0],l=i[1],u=i[2],c=i[3]):s=l=u=c=0;var f;s+l>a&&(f=s+l,s*=a/f,l*=a/f),u+c>a&&(f=u+c,u*=a/f,c*=a/f),l+u>o&&(f=l+u,l*=o/f,u*=o/f),s+c>o&&(f=s+c,s*=o/f,c*=o/f),e.moveTo(n+s,r),e.lineTo(n+a-l,r),l!==0&&e.arc(n+a-l,r+l,l,-Math.PI/2,0),e.lineTo(n+a,r+o-u),u!==0&&e.arc(n+a-u,r+o-u,u,0,Math.PI/2),e.lineTo(n+c,r+o),c!==0&&e.arc(n+c,r+o-c,c,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)}var Iv=Math.round;function Nw(e,t,n){if(t){var r=t.x1,a=t.x2,o=t.y1,i=t.y2;e.x1=r,e.x2=a,e.y1=o,e.y2=i;var s=n&&n.lineWidth;return s&&(Iv(r*2)===Iv(a*2)&&(e.x1=e.x2=So(r,s,!0)),Iv(o*2)===Iv(i*2)&&(e.y1=e.y2=So(o,s,!0))),e}}function lW(e,t,n){if(t){var r=t.x,a=t.y,o=t.width,i=t.height;e.x=r,e.y=a,e.width=o,e.height=i;var s=n&&n.lineWidth;return s&&(e.x=So(r,s,!0),e.y=So(a,s,!0),e.width=Math.max(So(r+o,s,!1)-e.x,o===0?0:1),e.height=Math.max(So(a+i,s,!1)-e.y,i===0?0:1)),e}}function So(e,t,n){if(!t)return e;var r=Iv(e*2);return(r+Iv(t))%2===0?r/2:(r+(n?1:-1))/2}var que=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Xue={},uW=function(e){ye(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new que},t.prototype.buildPath=function(n,r){var a,o,i,s;if(this.subPixelOptimize){var l=lW(Xue,r,this.style);a=l.x,o=l.y,i=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,o=r.y,i=r.width,s=r.height;r.r?Yue(n,r):n.rect(a,o,i,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ln);uW.prototype.type="rect";const rn=uW;var jI={fill:"#000"},YI=2,as={},Zue={style:Pt({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},Pw.style)},cW=function(e){ye(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=jI,r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n<this._children.length;n++){var r=this._children[n];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},t.prototype.updateTransform=function(){var n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(n){var r=this.innerTransformable;return r?r.getLocalTransform(n):e.prototype.getLocalTransform.call(this,n)},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,ece(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=n},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new Ot(0,0,0,0),r=this._children,a=[],o=null,i=0;i<r.length;i++){var s=r[i],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(n.copy(l),n.applyTransform(u),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}this._rect=o||n}return this._rect},t.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||jI},t.prototype.setTextContent=function(n){},t.prototype._mergeStyle=function(n,r){if(!r)return n;var a=r.rich,o=n.rich||a&&{};return Pe(n,r),a&&o?(this._mergeRich(o,a),n.rich=o):o&&(n.rich=o),n},t.prototype._mergeRich=function(n,r){for(var a=dn(r),o=0;o<a.length;o++){var i=a[o];n[i]=n[i]||{},Pe(n[i],r[i])}},t.prototype.getAnimationStyleProps=function(){return Zue},t.prototype._getOrCreateChild=function(n){var r=this._children[this._childCursor];return(!r||!(r instanceof n))&&(r=new n),this._children[this._childCursor++]=r,r.__zr=this.__zr,r.parent=this,r},t.prototype._updatePlainTexts=function(){var n=this.style,r=n.font||Bl,a=n.padding,o=this._defaultStyle,i=n.x||0,s=n.y||0,l=n.align||o.align||"left",u=n.verticalAlign||o.verticalAlign||"top";$I(as,o.overflowRect,i,s,l,u),i=as.baseX,s=as.baseY;var c=tL(n),f=yue(c,n,as.outerWidth,as.outerHeight),d=H3(n),v=!!n.backgroundColor,h=f.outerHeight,p=f.outerWidth,g=f.lines,m=f.lineHeight;this.isTruncated=!!f.isTruncated;var y=i,b=$f(s,f.contentHeight,u);if(d||a){var w=hh(i,p,l),S=$f(s,h,u);d&&this._renderBackground(n,n,w,S,p,h)}b+=m/2,a&&(y=eL(i,l,a),u==="top"?b+=a[0]:u==="bottom"&&(b-=a[2]));for(var x=0,C=!1,T=!1,M=QI("fill"in n?n.fill:(T=!0,o.fill)),k=JI("stroke"in n?n.stroke:!v&&(!o.autoStroke||T)?(x=YI,C=!0,o.stroke):null),E=n.textShadowBlur>0,A=0;A<g.length;A++){var I=this._getOrCreateChild(_g),O=I.createStyle();I.useStyle(O),O.text=g[A],O.x=y,O.y=b,l&&(O.textAlign=l),O.textBaseline="middle",O.opacity=n.opacity,O.strokeFirst=!0,E&&(O.shadowBlur=n.textShadowBlur||0,O.shadowColor=n.textShadowColor||"transparent",O.shadowOffsetX=n.textShadowOffsetX||0,O.shadowOffsetY=n.textShadowOffsetY||0),O.stroke=k,O.fill=M,k&&(O.lineWidth=n.lineWidth||x,O.lineDash=n.lineDash,O.lineDashOffset=n.lineDashOffset||0),O.font=r,XI(O,n),b+=m,I.setBoundingRect(ux(O,f.contentWidth,f.calculatedLineHeight,C?0:null))}},t.prototype._updateRichTexts=function(){var n=this.style,r=this._defaultStyle,a=n.align||r.align,o=n.verticalAlign||r.verticalAlign,i=n.x||0,s=n.y||0;$I(as,r.overflowRect,i,s,a,o),i=as.baseX,s=as.baseY;var l=tL(n),u=wue(l,n,as.outerWidth,as.outerHeight,a),c=u.width,f=u.outerWidth,d=u.outerHeight,v=n.padding;this.isTruncated=!!u.isTruncated;var h=hh(i,f,a),p=$f(s,d,o),g=h,m=p;v&&(g+=v[3],m+=v[0]);var y=g+c;H3(n)&&this._renderBackground(n,n,h,p,f,d);for(var b=!!n.backgroundColor,w=0;w<u.lines.length;w++){for(var S=u.lines[w],x=S.tokens,C=x.length,T=S.lineHeight,M=S.width,k=0,E=g,A=y,I=C-1,O=void 0;k<C&&(O=x[k],!O.align||O.align==="left");)this._placeToken(O,n,T,m,E,"left",b),M-=O.width,E+=O.width,k++;for(;I>=0&&(O=x[I],O.align==="right");)this._placeToken(O,n,T,m,A,"right",b),M-=O.width,A-=O.width,I--;for(E+=(c-(E-g)-(y-A)-M)/2;k<=I;)O=x[k],this._placeToken(O,n,T,m,E+O.width/2,"center",b),E+=O.width,k++;m+=T}},t.prototype._placeToken=function(n,r,a,o,i,s,l){var u=r.rich[n.styleName]||{};u.text=n.text;var c=n.verticalAlign,f=o+a/2;c==="top"?f=o+n.height/2:c==="bottom"&&(f=o+a-n.height/2);var d=!n.isLineHolder&&H3(u);d&&this._renderBackground(u,r,s==="right"?i-n.width:s==="center"?i-n.width/2:i,f-n.height/2,n.width,n.height);var v=!!u.backgroundColor,h=n.textPadding;h&&(i=eL(i,s,h),f-=n.height/2-h[0]-n.innerHeight/2);var p=this._getOrCreateChild(_g),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,b=0,w=!1,S=QI("fill"in u?u.fill:"fill"in r?r.fill:(y=!0,m.fill)),x=JI("stroke"in u?u.stroke:"stroke"in r?r.stroke:!v&&!l&&(!m.autoStroke||y)?(b=YI,w=!0,m.stroke):null),C=u.textShadowBlur>0||r.textShadowBlur>0;g.text=n.text,g.x=i,g.y=f,C&&(g.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,g.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=n.font||Bl,g.opacity=Mo(u.opacity,r.opacity,1),XI(g,u),x&&(g.lineWidth=Mo(u.lineWidth,r.lineWidth,b),g.lineDash=yt(u.lineDash,r.lineDash),g.lineDashOffset=r.lineDashOffset||0,g.stroke=x),S&&(g.fill=S),p.setBoundingRect(ux(g,n.contentWidth,n.contentHeight,w?0:null))},t.prototype._renderBackground=function(n,r,a,o,i,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,d=l&&!f,v=n.borderRadius,h=this,p,g;if(d||n.lineHeight||u&&c){p=this._getOrCreateChild(rn),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=a,m.y=o,m.width=i,m.height=s,m.r=v,p.dirtyShape()}if(d){var y=p.style;y.fill=l||null,y.fillOpacity=yt(n.fillOpacity,1)}else if(f){g=this._getOrCreateChild(da),g.onload=function(){h.dirtyStyle()};var b=g.style;b.image=l.image,b.x=a,b.y=o,b.width=i,b.height=s}if(u&&c){var y=p.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=yt(n.strokeOpacity,1),y.lineDash=n.borderDash,y.lineDashOffset=n.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var w=(p||g).style;w.shadowBlur=n.shadowBlur||0,w.shadowColor=n.shadowColor||"transparent",w.shadowOffsetX=n.shadowOffsetX||0,w.shadowOffsetY=n.shadowOffsetY||0,w.opacity=Mo(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return dW(n)&&(r=[n.fontStyle,n.fontWeight,fW(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Xo(r)||n.textFont||n.font},t}(ai),Jue={left:!0,right:1,center:1},Que={top:1,bottom:1,middle:1},qI=["fontStyle","fontWeight","fontSize","fontFamily"];function fW(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?I5+"px":e+"px"}function XI(e,t){for(var n=0;n<qI.length;n++){var r=qI[n],a=t[r];a!=null&&(e[r]=a)}}function dW(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function ece(e){return ZI(e),j(e.rich,ZI),e}function ZI(e){if(e){e.font=cW.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||Jue[t]?t:"left";var n=e.verticalAlign;n==="center"&&(n="middle"),e.verticalAlign=n==null||Que[n]?n:"top";var r=e.padding;r&&(e.padding=Tw(e.padding))}}function JI(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function QI(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function eL(e,t,n){return t==="right"?e-n[1]:t==="center"?e+n[3]/2-n[1]/2:e+n[3]}function tL(e){var t=e.text;return t!=null&&(t+=""),t}function H3(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const _n=cW;var Vt=an(),dx=function(e,t,n,r){if(r){var a=Vt(r);a.dataIndex=n,a.dataType=t,a.seriesIndex=e,a.ssrType="chart",r.type==="group"&&r.traverse(function(o){var i=Vt(o);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType="chart"})}},nL=1,rL={},vW=an(),X5=an(),Z5=0,Lm=1,Bw=2,Ka=["emphasis","blur","select"],wg=["normal","emphasis","blur","select"],Zh=10,tce=9,Ff="highlight",L2="downplay",Ob="select",vx="unselect",Nb="toggleSelect",J5="selectchanged";function Ud(e){return e!=null&&e!=="none"}function Vw(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function hW(e){Vw(e,"emphasis",Bw)}function pW(e){e.hoverState===Bw&&Vw(e,"normal",Z5)}function Q5(e){Vw(e,"blur",Lm)}function gW(e){e.hoverState===Lm&&Vw(e,"normal",Z5)}function nce(e){e.selected=!0}function rce(e){e.selected=!1}function aL(e,t,n){t(e,n)}function Ql(e,t,n){aL(e,t,n),e.isGroup&&e.traverse(function(r){aL(r,t,n)})}function Bb(e,t){switch(t){case"emphasis":e.hoverState=Bw;break;case"normal":e.hoverState=Z5;break;case"blur":e.hoverState=Lm;break;case"select":e.selected=!0}}function ace(e,t,n,r){for(var a=e.style,o={},i=0;i<t.length;i++){var s=t[i],l=a[s];o[s]=l??(r&&r[s])}for(var i=0;i<e.animators.length;i++){var u=e.animators[i];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&u.targetName==="style"&&u.saveTo(o,t)}return o}function oce(e,t,n,r){var a=n&&Xt(n,"select")>=0,o=!1;if(e instanceof ln){var i=vW(e),s=a&&i.selectFill||i.normalFill,l=a&&i.selectStroke||i.normalStroke;if(Ud(s)||Ud(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(o=!0,r=Pe({},r),u=Pe({},u),u.fill=s):!Ud(u.fill)&&Ud(s)?(o=!0,r=Pe({},r),u=Pe({},u),u.fill=X8(s)):!Ud(u.stroke)&&Ud(l)&&(o||(r=Pe({},r),u=Pe({},u)),u.stroke=X8(l)),r.style=u}}if(r&&r.z2==null){o||(r=Pe({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??Zh)}return r}function ice(e,t,n){if(n&&n.z2==null){n=Pe({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??tce)}return n}function sce(e,t,n){var r=Xt(e.currentStates,t)>=0,a=e.style.opacity,o=r?null:ace(e,["opacity"],t,{opacity:1});n=n||{};var i=n.style||{};return i.opacity==null&&(n=Pe({},n),i=Pe({opacity:r?a:o.opacity*.1},i),n.style=i),n}function W3(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return oce(this,e,t,n);if(e==="blur")return sce(this,e,n);if(e==="select")return ice(this,e,n)}return n}function ad(e){e.stateProxy=W3;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=W3),n&&(n.stateProxy=W3)}function oL(e,t){!_W(e,t)&&!e.__highByOuter&&Ql(e,hW)}function iL(e,t){!_W(e,t)&&!e.__highByOuter&&Ql(e,pW)}function zl(e,t){e.__highByOuter|=1<<(t||0),Ql(e,hW)}function Fl(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ql(e,pW)}function mW(e){Ql(e,Q5)}function ek(e){Ql(e,gW)}function yW(e){Ql(e,nce)}function bW(e){Ql(e,rce)}function _W(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function wW(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(a,o){var i=X5(o),s=a==="series",l=s?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!s&&r.push(l),i.isBlured&&(l.group.traverse(function(u){gW(u)}),s&&n.push(o)),i.isBlured=!1}),j(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(n,!1,t)})}function hx(e,t,n,r){var a=r.getModel();n=n||"coordinateSystem";function o(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&ek(d)}}if(e!=null&&!(!t||t==="none")){var i=a.getSeriesByIndex(e),s=i.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var c=i===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(n==="series"&&!c||n==="coordinateSystem"&&!d||t==="series"&&c)){var v=r.getViewOfSeriesModel(u);if(v.group.traverse(function(g){g.__highByOuter&&c&&t==="self"||Q5(g)}),Ea(t))o(u.getData(),t);else if(Rt(t))for(var h=dn(t),p=0;p<h.length;p++)o(u.getData(h[p]),t[h[p]]);l.push(u),X5(u).isBlured=!0}}),a.eachComponent(function(u,c){if(u!=="series"){var f=r.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,a)}})}}function px(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){X5(r).isBlured=!0;var a=n.getViewOfComponentModel(r);!a||!a.focusBlurEnabled||a.group.traverse(function(o){Q5(o)})}}}function lce(e,t,n){var r=e.seriesIndex,a=e.getData(t.dataType);if(a){var o=nd(a,t);o=(Ve(o)?o[0]:o)||0;var i=a.getItemGraphicEl(o);if(!i)for(var s=a.count(),l=0;!i&&l<s;)i=a.getItemGraphicEl(l++);if(i){var u=Vt(i);hx(r,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&hx(r,c,f,n)}}}function tk(e,t,n,r){var a={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||n==null)return a;var o=r.getModel().getComponent(e,t);if(!o)return a;var i=r.getViewOfComponentModel(o);if(!i||!i.findHighDownDispatchers)return a;for(var s=i.findHighDownDispatchers(n),l,u=0;u<s.length;u++)if(Vt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function uce(e,t,n){var r=Vt(e),a=tk(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=a.dispatchers,i=a.focusSelf;o?(i&&px(r.componentMainType,r.componentIndex,n),j(o,function(s){return oL(s,t)})):(hx(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&px(r.componentMainType,r.componentIndex,n),oL(e,t))}function cce(e,t,n){wW(n);var r=Vt(e),a=tk(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;a?j(a,function(o){return iL(o,t)}):iL(e,t)}function fce(e,t,n){if(mx(t)){var r=t.dataType,a=e.getData(r),o=nd(a,t);Ve(o)||(o=[o]),e[t.type===Nb?"toggleSelect":t.type===Ob?"select":"unselect"](o,r)}}function sL(e){var t=e.getAllData();j(t,function(n){var r=n.data,a=n.type;r.eachItemGraphicEl(function(o,i){e.isSelected(i,a)?yW(o):bW(o)})})}function dce(e){var t=[];return e.eachSeries(function(n){var r=n.getAllData();j(r,function(a){a.data;var o=a.type,i=n.getSelectedDataIndices();if(i.length>0){var s={dataIndex:i,seriesIndex:n.seriesIndex};o!=null&&(s.dataType=o),t.push(s)}})}),t}function Hf(e,t,n){Sf(e,!0),Ql(e,ad),gx(e,t,n)}function vce(e){Sf(e,!1)}function Jn(e,t,n,r){r?vce(e):Hf(e,t,n)}function gx(e,t,n){var r=Vt(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var lL=["emphasis","blur","select"],hce={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Br(e,t,n,r){n=n||"itemStyle";for(var a=0;a<lL.length;a++){var o=lL[a],i=t.getModel([o,n]),s=e.ensureState(o);s.style=r?r(i):i[hce[n]]()}}function Sf(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 Sg(e){return!!(e&&e.__highDownDispatcher)}function pce(e,t,n){var r=Vt(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}function gce(e){var t=rL[e];return t==null&&nL<=32&&(t=rL[e]=nL++),t}function mx(e){var t=e.type;return t===Ob||t===vx||t===Nb}function uL(e){var t=e.type;return t===Ff||t===L2}function mce(e){var t=vW(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 Kd=Gs.CMD,yce=[[],[],[]],cL=Math.sqrt,bce=Math.atan2;function SW(e,t){if(t){var n=e.data,r=e.len(),a,o,i,s,l,u,c=Kd.M,f=Kd.C,d=Kd.L,v=Kd.R,h=Kd.A,p=Kd.Q;for(i=0,s=0;i<r;){switch(a=n[i++],s=i,o=0,a){case c:o=1;break;case d:o=1;break;case f:o=3;break;case p:o=2;break;case h:var g=t[4],m=t[5],y=cL(t[0]*t[0]+t[1]*t[1]),b=cL(t[2]*t[2]+t[3]*t[3]),w=bce(-t[1]/b,t[0]/y);n[i]*=y,n[i++]+=g,n[i]*=b,n[i++]+=m,n[i++]*=y,n[i++]*=b,n[i++]+=w,n[i++]+=w,i+=2,s=i;break;case v:u[0]=n[i++],u[1]=n[i++],_r(u,u,t),n[s++]=u[0],n[s++]=u[1],u[0]+=n[i++],u[1]+=n[i++],_r(u,u,t),n[s++]=u[0],n[s++]=u[1]}for(l=0;l<o;l++){var S=yce[l];S[0]=n[i++],S[1]=n[i++],_r(S,S,t),n[s++]=S[0],n[s++]=S[1]}}e.increaseVersion()}}var G3=Math.sqrt,q1=Math.sin,X1=Math.cos,Lp=Math.PI;function fL(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function yx(e,t){return(e[0]*t[0]+e[1]*t[1])/(fL(e)*fL(t))}function dL(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(yx(e,t))}function vL(e,t,n,r,a,o,i,s,l,u,c){var f=l*(Lp/180),d=X1(f)*(e-n)/2+q1(f)*(t-r)/2,v=-1*q1(f)*(e-n)/2+X1(f)*(t-r)/2,h=d*d/(i*i)+v*v/(s*s);h>1&&(i*=G3(h),s*=G3(h));var p=(a===o?-1:1)*G3((i*i*(s*s)-i*i*(v*v)-s*s*(d*d))/(i*i*(v*v)+s*s*(d*d)))||0,g=p*i*v/s,m=p*-s*d/i,y=(e+n)/2+X1(f)*g-q1(f)*m,b=(t+r)/2+q1(f)*g+X1(f)*m,w=dL([1,0],[(d-g)/i,(v-m)/s]),S=[(d-g)/i,(v-m)/s],x=[(-1*d-g)/i,(-1*v-m)/s],C=dL(S,x);if(yx(S,x)<=-1&&(C=Lp),yx(S,x)>=1&&(C=0),C<0){var T=Math.round(C/Lp*1e6)/1e6;C=Lp*2+T%2*Lp}c.addData(u,y,b,i,s,w,C,f,o)}var _ce=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,wce=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Sce(e){var t=new Gs;if(!e)return t;var n=0,r=0,a=n,o=r,i,s=Gs.CMD,l=e.match(_ce);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,v=c.match(wce)||[],h=v.length,p=0;p<h;p++)v[p]=parseFloat(v[p]);for(var g=0;g<h;){var m=void 0,y=void 0,b=void 0,w=void 0,S=void 0,x=void 0,C=void 0,T=n,M=r,k=void 0,E=void 0;switch(f){case"l":n+=v[g++],r+=v[g++],d=s.L,t.addData(d,n,r);break;case"L":n=v[g++],r=v[g++],d=s.L,t.addData(d,n,r);break;case"m":n+=v[g++],r+=v[g++],d=s.M,t.addData(d,n,r),a=n,o=r,f="l";break;case"M":n=v[g++],r=v[g++],d=s.M,t.addData(d,n,r),a=n,o=r,f="L";break;case"h":n+=v[g++],d=s.L,t.addData(d,n,r);break;case"H":n=v[g++],d=s.L,t.addData(d,n,r);break;case"v":r+=v[g++],d=s.L,t.addData(d,n,r);break;case"V":r=v[g++],d=s.L,t.addData(d,n,r);break;case"C":d=s.C,t.addData(d,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),n=v[g-2],r=v[g-1];break;case"c":d=s.C,t.addData(d,v[g++]+n,v[g++]+r,v[g++]+n,v[g++]+r,v[g++]+n,v[g++]+r),n+=v[g-2],r+=v[g-1];break;case"S":m=n,y=r,k=t.len(),E=t.data,i===s.C&&(m+=n-E[k-4],y+=r-E[k-3]),d=s.C,T=v[g++],M=v[g++],n=v[g++],r=v[g++],t.addData(d,m,y,T,M,n,r);break;case"s":m=n,y=r,k=t.len(),E=t.data,i===s.C&&(m+=n-E[k-4],y+=r-E[k-3]),d=s.C,T=n+v[g++],M=r+v[g++],n+=v[g++],r+=v[g++],t.addData(d,m,y,T,M,n,r);break;case"Q":T=v[g++],M=v[g++],n=v[g++],r=v[g++],d=s.Q,t.addData(d,T,M,n,r);break;case"q":T=v[g++]+n,M=v[g++]+r,n+=v[g++],r+=v[g++],d=s.Q,t.addData(d,T,M,n,r);break;case"T":m=n,y=r,k=t.len(),E=t.data,i===s.Q&&(m+=n-E[k-4],y+=r-E[k-3]),n=v[g++],r=v[g++],d=s.Q,t.addData(d,m,y,n,r);break;case"t":m=n,y=r,k=t.len(),E=t.data,i===s.Q&&(m+=n-E[k-4],y+=r-E[k-3]),n+=v[g++],r+=v[g++],d=s.Q,t.addData(d,m,y,n,r);break;case"A":b=v[g++],w=v[g++],S=v[g++],x=v[g++],C=v[g++],T=n,M=r,n=v[g++],r=v[g++],d=s.A,vL(T,M,n,r,x,C,b,w,S,d,t);break;case"a":b=v[g++],w=v[g++],S=v[g++],x=v[g++],C=v[g++],T=n,M=r,n+=v[g++],r+=v[g++],d=s.A,vL(T,M,n,r,x,C,b,w,S,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),n=a,r=o),i=d}return t.toStatic(),t}var xW=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(n){},t}(ln);function CW(e){return e.setData!=null}function TW(e,t){var n=Sce(e),r=Pe({},t);return r.buildPath=function(a){var o=CW(a);if(o&&a.canSave()){a.appendPath(n);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=o?a.getContext():a;i&&n.rebuildPath(i,1)}},r.applyTransform=function(a){SW(n,a),this.dirtyShape()},r}function kW(e,t){return new xW(TW(e,t))}function xce(e,t){var n=TW(e,t),r=function(a){ye(o,a);function o(i){var s=a.call(this,i)||this;return s.applyTransform=n.applyTransform,s.buildPath=n.buildPath,s}return o}(xW);return r}function Cce(e,t){for(var n=[],r=e.length,a=0;a<r;a++){var o=e[a];n.push(o.getUpdatedPathProxy(!0))}var i=new ln(t);return i.createPathProxy(),i.buildPath=function(s){if(CW(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},i}function nk(e,t){t=t||{};var n=new ln;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?SW(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var Tce=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),MW=function(e){ye(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Tce},t.prototype.buildPath=function(n,r){n.moveTo(r.cx+r.r,r.cy),n.arc(r.cx,r.cy,r.r,0,Math.PI*2)},t}(ln);MW.prototype.type="circle";const bc=MW;var kce=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),AW=function(e){ye(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new kce},t.prototype.buildPath=function(n,r){var a=.5522848,o=r.cx,i=r.cy,s=r.rx,l=r.ry,u=s*a,c=l*a;n.moveTo(o-s,i),n.bezierCurveTo(o-s,i-c,o-u,i-l,o,i-l),n.bezierCurveTo(o+u,i-l,o+s,i-c,o+s,i),n.bezierCurveTo(o+s,i+c,o+u,i+l,o,i+l),n.bezierCurveTo(o-u,i+l,o-s,i+c,o-s,i),n.closePath()},t}(ln);AW.prototype.type="ellipse";const rk=AW;var EW=Math.PI,U3=EW*2,Fc=Math.sin,jd=Math.cos,Mce=Math.acos,ha=Math.atan2,hL=Math.abs,H0=Math.sqrt,g0=Math.max,os=Math.min,vi=1e-4;function Ace(e,t,n,r,a,o,i,s){var l=n-e,u=r-t,c=i-a,f=s-o,d=f*l-c*u;if(!(d*d<vi))return d=(c*(t-o)-f*(e-a))/d,[e+d*l,t+d*u]}function Z1(e,t,n,r,a,o,i){var s=e-n,l=t-r,u=(i?o:-o)/H0(s*s+l*l),c=u*l,f=-u*s,d=e+c,v=t+f,h=n+c,p=r+f,g=(d+h)/2,m=(v+p)/2,y=h-d,b=p-v,w=y*y+b*b,S=a-o,x=d*p-h*v,C=(b<0?-1:1)*H0(g0(0,S*S*w-x*x)),T=(x*b-y*C)/w,M=(-x*y-b*C)/w,k=(x*b+y*C)/w,E=(-x*y+b*C)/w,A=T-g,I=M-m,O=k-g,z=E-m;return A*A+I*I>O*O+z*z&&(T=k,M=E),{cx:T,cy:M,x0:-c,y0:-f,x1:T*(a/S-1),y1:M*(a/S-1)}}function Ece(e){var t;if(Ve(e)){var n=e.length;if(!n)return e;n===1?t=[e[0],e[0],0,0]:n===2?t=[e[0],e[0],e[1],e[1]]:n===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function Ice(e,t){var n,r=g0(t.r,0),a=g0(t.r0||0,0),o=r>0,i=a>0;if(!(!o&&!i)){if(o||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,v=hL(u-l),h=v>U3&&v%U3;if(h>vi&&(v=h),!(r>vi))e.moveTo(c,f);else if(v>U3-vi)e.moveTo(c+r*jd(l),f+r*Fc(l)),e.arc(c,f,r,l,u,!d),a>vi&&(e.moveTo(c+a*jd(u),f+a*Fc(u)),e.arc(c,f,a,u,l,d));else{var p=void 0,g=void 0,m=void 0,y=void 0,b=void 0,w=void 0,S=void 0,x=void 0,C=void 0,T=void 0,M=void 0,k=void 0,E=void 0,A=void 0,I=void 0,O=void 0,z=r*jd(l),$=r*Fc(l),P=a*jd(u),L=a*Fc(u),V=v>vi;if(V){var B=t.cornerRadius;B&&(n=Ece(B),p=n[0],g=n[1],m=n[2],y=n[3]);var F=hL(r-a)/2;if(b=os(F,m),w=os(F,y),S=os(F,p),x=os(F,g),M=C=g0(b,w),k=T=g0(S,x),(C>vi||T>vi)&&(E=r*jd(u),A=r*Fc(u),I=a*jd(l),O=a*Fc(l),v<EW)){var U=Ace(z,$,I,O,E,A,P,L);if(U){var G=z-U[0],Y=$-U[1],X=E-U[0],te=A-U[1],oe=1/Fc(Mce((G*X+Y*te)/(H0(G*G+Y*Y)*H0(X*X+te*te)))/2),re=H0(U[0]*U[0]+U[1]*U[1]);M=os(C,(r-re)/(oe+1)),k=os(T,(a-re)/(oe-1))}}}if(!V)e.moveTo(c+z,f+$);else if(M>vi){var ce=os(m,M),ie=os(y,M),Z=Z1(I,O,z,$,r,ce,d),se=Z1(E,A,P,L,r,ie,d);e.moveTo(c+Z.cx+Z.x0,f+Z.cy+Z.y0),M<C&&ce===ie?e.arc(c+Z.cx,f+Z.cy,M,ha(Z.y0,Z.x0),ha(se.y0,se.x0),!d):(ce>0&&e.arc(c+Z.cx,f+Z.cy,ce,ha(Z.y0,Z.x0),ha(Z.y1,Z.x1),!d),e.arc(c,f,r,ha(Z.cy+Z.y1,Z.cx+Z.x1),ha(se.cy+se.y1,se.cx+se.x1),!d),ie>0&&e.arc(c+se.cx,f+se.cy,ie,ha(se.y1,se.x1),ha(se.y0,se.x0),!d))}else e.moveTo(c+z,f+$),e.arc(c,f,r,l,u,!d);if(!(a>vi)||!V)e.lineTo(c+P,f+L);else if(k>vi){var ce=os(p,k),ie=os(g,k),Z=Z1(P,L,E,A,a,-ie,d),se=Z1(z,$,I,O,a,-ce,d);e.lineTo(c+Z.cx+Z.x0,f+Z.cy+Z.y0),k<T&&ce===ie?e.arc(c+Z.cx,f+Z.cy,k,ha(Z.y0,Z.x0),ha(se.y0,se.x0),!d):(ie>0&&e.arc(c+Z.cx,f+Z.cy,ie,ha(Z.y0,Z.x0),ha(Z.y1,Z.x1),!d),e.arc(c,f,a,ha(Z.cy+Z.y1,Z.cx+Z.x1),ha(se.cy+se.y1,se.cx+se.x1),d),ce>0&&e.arc(c+se.cx,f+se.cy,ce,ha(se.y1,se.x1),ha(se.y0,se.x0),!d))}else e.lineTo(c+P,f+L),e.arc(c,f,a,u,l,d)}e.closePath()}}}var Lce=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}(),IW=function(e){ye(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Lce},t.prototype.buildPath=function(n,r){Ice(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ln);IW.prototype.type="sector";const ja=IW;var Dce=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),LW=function(e){ye(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Dce},t.prototype.buildPath=function(n,r){var a=r.cx,o=r.cy,i=Math.PI*2;n.moveTo(a+r.r,o),n.arc(a,o,r.r,0,i,!1),n.moveTo(a+r.r0,o),n.arc(a,o,r.r0,0,i,!0)},t}(ln);LW.prototype.type="ring";const $w=LW;function Pce(e,t,n,r){var a=[],o=[],i=[],s=[],l,u,c,f;if(r){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,v=e.length;d<v;d++)Ru(c,c,e[d]),Ou(f,f,e[d]);Ru(c,c,r[0]),Ou(f,f,r[1])}for(var d=0,v=e.length;d<v;d++){var h=e[d];if(n)l=e[d?d-1:v-1],u=e[(d+1)%v];else if(d===0||d===v-1){a.push(Il(e[d]));continue}else l=e[d-1],u=e[d+1];_f(o,u,l),x2(o,o,t);var p=V8(h,l),g=V8(h,u),m=p+g;m!==0&&(p/=m,g/=m),x2(i,o,-p),x2(s,o,g);var y=nI([],h,i),b=nI([],h,s);r&&(Ou(y,y,c),Ru(y,y,f),Ou(b,b,c),Ru(b,b,f)),a.push(y),a.push(b)}return n&&a.push(a.shift()),a}function DW(e,t,n){var r=t.smooth,a=t.points;if(a&&a.length>=2){if(r){var o=Pce(a,r,n,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var i=a.length,s=0;s<(n?i:i-1);s++){var l=o[s*2],u=o[s*2+1],c=a[(s+1)%i];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var s=1,f=a.length;s<f;s++)e.lineTo(a[s][0],a[s][1])}n&&e.closePath()}}var Rce=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),PW=function(e){ye(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Rce},t.prototype.buildPath=function(n,r){DW(n,r,!0)},t}(ln);PW.prototype.type="polygon";const Ya=PW;var Oce=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),RW=function(e){ye(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Oce},t.prototype.buildPath=function(n,r){DW(n,r,!1)},t}(ln);RW.prototype.type="polyline";const La=RW;var Nce={},Bce=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),OW=function(e){ye(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Bce},t.prototype.buildPath=function(n,r){var a,o,i,s;if(this.subPixelOptimize){var l=Nw(Nce,r,this.style);a=l.x1,o=l.y1,i=l.x2,s=l.y2}else a=r.x1,o=r.y1,i=r.x2,s=r.y2;var u=r.percent;u!==0&&(n.moveTo(a,o),u<1&&(i=a*(1-u)+i*u,s=o*(1-u)+s*u),n.lineTo(i,s))},t.prototype.pointAt=function(n){var r=this.shape;return[r.x1*(1-n)+r.x2*n,r.y1*(1-n)+r.y2*n]},t}(ln);OW.prototype.type="line";const Rr=OW;var Za=[],Vce=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 pL(e,t,n){var r=e.cpx2,a=e.cpy2;return r!=null||a!=null?[(n?pI:Fr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?pI:Fr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?K8:Zr)(e.x1,e.cpx1,e.x2,t),(n?K8:Zr)(e.y1,e.cpy1,e.y2,t)]}var NW=function(e){ye(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Vce},t.prototype.buildPath=function(n,r){var a=r.x1,o=r.y1,i=r.x2,s=r.y2,l=r.cpx1,u=r.cpy1,c=r.cpx2,f=r.cpy2,d=r.percent;d!==0&&(n.moveTo(a,o),c==null||f==null?(d<1&&(pg(a,l,i,d,Za),l=Za[1],i=Za[2],pg(o,u,s,d,Za),u=Za[1],s=Za[2]),n.quadraticCurveTo(l,u,i,s)):(d<1&&(ic(a,l,c,i,d,Za),l=Za[1],c=Za[2],i=Za[3],ic(o,u,f,s,d,Za),u=Za[1],f=Za[2],s=Za[3]),n.bezierCurveTo(l,u,c,f,i,s)))},t.prototype.pointAt=function(n){return pL(this.shape,n,!1)},t.prototype.tangentAt=function(n){var r=pL(this.shape,n,!0);return Yh(r,r)},t}(ln);NW.prototype.type="bezier-curve";const zw=NW;var $ce=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}(),BW=function(e){ye(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new $ce},t.prototype.buildPath=function(n,r){var a=r.cx,o=r.cy,i=Math.max(r.r,0),s=r.startAngle,l=r.endAngle,u=r.clockwise,c=Math.cos(s),f=Math.sin(s);n.moveTo(c*i+a,f*i+o),n.arc(a,o,i,s,l,!u)},t}(ln);BW.prototype.type="arc";const ak=BW;var zce=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="compound",n}return t.prototype._updatePathDirty=function(){for(var n=this.shape.paths,r=this.shapeChanged(),a=0;a<n.length;a++)r=r||n[a].shapeChanged();r&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],r=this.getGlobalScale(),a=0;a<n.length;a++)n[a].path||n[a].createPathProxy(),n[a].path.setScale(r[0],r[1],n[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(n,r){for(var a=r.paths||[],o=0;o<a.length;o++)a[o].buildPath(n,a[o].shape,!0)},t.prototype.afterBrush=function(){for(var n=this.shape.paths||[],r=0;r<n.length;r++)n[r].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ln.prototype.getBoundingRect.call(this)},t}(ln);const Fw=zce;var Fce=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,n){this.colorStops.push({offset:t,color:n})},e}();const VW=Fce;var Hce=function(e){ye(t,e);function t(n,r,a,o,i,s){var l=e.call(this,i)||this;return l.x=n??0,l.y=r??0,l.x2=a??1,l.y2=o??0,l.type="linear",l.global=s||!1,l}return t}(VW);const Jh=Hce;var Wce=function(e){ye(t,e);function t(n,r,a,o,i){var s=e.call(this,o)||this;return s.x=n??.5,s.y=r??.5,s.r=a??.5,s.type="radial",s.global=i||!1,s}return t}(VW);const $W=Wce;var K3=Math.min,Gce=Math.max,J1=Math.abs,Hc=[0,0],Wc=[0,0],Xr=uH(),Q1=Xr.minTv,ey=Xr.maxTv,Uce=function(){function e(t,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new Dt;for(var r=0;r<2;r++)this._axes[r]=new Dt;t&&this.fromBoundingRect(t,n)}return e.prototype.fromBoundingRect=function(t,n){var r=this._corners,a=this._axes,o=t.x,i=t.y,s=o+t.width,l=i+t.height;if(r[0].set(o,i),r[1].set(s,i),r[2].set(s,l),r[3].set(o,l),n)for(var u=0;u<4;u++)r[u].transform(n);Dt.sub(a[0],r[1],r[0]),Dt.sub(a[1],r[3],r[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(r[0])},e.prototype.intersect=function(t,n,r){var a=!0,o=!n;return n&&Dt.set(n,0,0),Xr.reset(r,!o),!this._intersectCheckOneSide(this,t,o,1)&&(a=!1,o)||!this._intersectCheckOneSide(t,this,o,-1)&&(a=!1,o)||!o&&!Xr.negativeSize&&Dt.copy(n,a?Xr.useDir?Xr.dirMinTv:Q1:ey),a},e.prototype._intersectCheckOneSide=function(t,n,r,a){for(var o=!0,i=0;i<2;i++){var s=t._axes[i];if(t._getProjMinMaxOnAxis(i,t._corners,Hc),t._getProjMinMaxOnAxis(i,n._corners,Wc),Xr.negativeSize||Hc[1]<Wc[0]||Hc[0]>Wc[1]){if(o=!1,Xr.negativeSize||r)return o;var l=J1(Wc[0]-Hc[1]),u=J1(Hc[0]-Wc[1]);K3(l,u)>ey.len()&&(l<u?Dt.scale(ey,s,-l*a):Dt.scale(ey,s,u*a))}else if(!r){var l=J1(Wc[0]-Hc[1]),u=J1(Hc[0]-Wc[1]);(Xr.useDir||K3(l,u)<Q1.len())&&((l<u||!Xr.bidirectional)&&(Dt.scale(Q1,s,l*a),Xr.useDir&&Xr.calcDirMTV()),(l>=u||!Xr.bidirectional)&&(Dt.scale(Q1,s,-u*a),Xr.useDir&&Xr.calcDirMTV()))}}return o},e.prototype._getProjMinMaxOnAxis=function(t,n,r){for(var a=this._axes[t],o=this._origin,i=n[0].dot(a)+o[t],s=i,l=i,u=1;u<n.length;u++){var c=n[u].dot(a)+o[t];s=K3(c,s),l=Gce(c,l)}r[0]=s+Xr.touchThreshold,r[1]=l-Xr.touchThreshold,Xr.negativeSize=r[1]<r[0]},e}();const zW=Uce;var Kce=[],jce=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return t.prototype.traverse=function(n,r){n.call(r,this)},t.prototype.useStyle=function(){this.style={}},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(n,r){r?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},t.prototype.addDisplayables=function(n,r){r=r||!1;for(var a=0;a<n.length;a++)this.addDisplayable(n[a],r)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(n){for(var r=this._cursor;r<this._displayables.length;r++)n&&n(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)n&&n(this._temporaryDisplayables[r])},t.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var r=this._displayables[n];r.parent=this,r.update(),r.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var r=this._temporaryDisplayables[n];r.parent=this,r.update(),r.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new Ot(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var a=this._displayables[r],o=a.getBoundingRect().clone();a.needLocalTransform()&&o.applyTransform(a.getLocalTransform(Kce)),n.union(o)}this._rect=n}return this._rect},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),o=this.getBoundingRect();if(o.contain(a[0],a[1]))for(var i=0;i<this._displayables.length;i++){var s=this._displayables[i];if(s.contain(n,r))return!0}return!1},t}(ai);const Yce=jce;var FW=an();function Qh(e,t,n,r,a){var o;if(t&&t.ecModel){var i=t.ecModel.getUpdatePayload();o=i&&i.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,f=void 0;r?(u=yt(r.duration,200),c=yt(r.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(u=o.duration),o.easing!=null&&(c=o.easing),o.delay!=null&&(f=o.delay)),kt(f)&&(f=f(n,a)),kt(u)&&(u=u(n));var d={duration:u||0,delay:f,easing:c};return d}else return null}function ok(e,t,n,r,a,o,i){var s=!1,l;kt(a)?(i=o,o=a,a=null):Rt(a)&&(o=a.cb,i=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=Qh(e,r,a,u?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,a):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,v=c.easing,h={duration:f,delay:d||0,easing:v,done:o,force:!!o||!!i,setToFinal:!u,scope:e,during:i};s?t.animateFrom(n,h):t.animateTo(n,h)}else t.stopAnimation(),!s&&t.attr(n),i&&i(1),o&&o()}function Sn(e,t,n,r,a,o){ok("update",e,t,n,r,a,o)}function Xn(e,t,n,r,a,o){ok("enter",e,t,n,r,a,o)}function Yv(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var n=e.animators[t];if(n.scope==="leave")return!0}return!1}function sc(e,t,n,r,a,o){Yv(e)||ok("leave",e,t,n,r,a,o)}function gL(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),sc(e,{style:{opacity:0}},t,n,r)}function Ll(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||gL(a,t,n,r)}):gL(e,t,n,r)}function oi(e){FW(e).oldStyle=e.style}function qce(e){return FW(e).oldStyle}var bx={},Gt=["x","y"],Tr=["width","height"];function Xce(e){return ln.extend(e)}var Zce=xce;function Jce(e,t){return Zce(e,t)}function Hi(e,t){bx[e]=t}function Vb(e){if(bx.hasOwnProperty(e))return bx[e]}function xg(e,t,n,r){var a=kW(e,t);return n&&(r==="center"&&(n=WW(n,a.getBoundingRect())),GW(a,n)),a}function HW(e,t,n){var r=new da({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(n==="center"){var o={width:a.width,height:a.height};r.setStyle(WW(t,o))}}});return r}function WW(e,t){var n=t.width/t.height,r=e.height*n,a;r<=e.width?a=e.height:(r=e.width,a=r/n);var o=e.x+e.width/2,i=e.y+e.height/2;return{x:o-r/2,y:i-a/2,width:r,height:a}}var Yo=Cce;function GW(e,t){if(e.applyTransform){var n=e.getBoundingRect(),r=n.calculateTransform(t);e.applyTransform(r)}}function ph(e,t){return Nw(e,e,{lineWidth:t}),e}function Qce(e,t){return lW(e,e,t),e}var D2=So;function Wf(e,t){for(var n=Mw([]);e&&e!==t;)As(n,e.getLocalTransform(),n),e=e.parent;return n}function Ci(e,t,n){return t&&!Ea(t)&&(t=kl.getLocalTransform(t)),n&&(t=Pi([],t)),_r([],e,t)}function Hw(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:ms(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:ms(2*t[4]/t[2]),o=[e==="left"?-r:e==="right"?r:0,e==="top"?-a:e==="bottom"?a:0];return o=Ci(o,t,n),ms(o[0])>ms(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function mL(e){return!e.isGroup}function efe(e){return e.shape!=null}function Dm(e,t,n){if(!e||!t)return;function r(i){var s={};return i.traverse(function(l){mL(l)&&l.anid&&(s[l.anid]=l)}),s}function a(i){var s={x:i.x,y:i.y,rotation:i.rotation};return efe(i)&&(s.shape=Mt(i.shape)),s}var o=r(e);t.traverse(function(i){if(mL(i)&&i.anid){var s=o[i.anid];if(s){var l=a(i);i.attr(a(s)),Sn(i,l,n,Vt(i).dataIndex)}}})}function UW(e,t){return $e(e,function(n){var r=n[0];r=mr(r,t.x),r=Ao(r,t.x+t.width);var a=n[1];return a=mr(a,t.y),a=Ao(a,t.y+t.height),[r,a]})}function tfe(e,t){var n=mr(e.x,t.x),r=Ao(e.x+e.width,t.x+t.width),a=mr(e.y,t.y),o=Ao(e.y+e.height,t.y+t.height);if(r>=n&&o>=a)return{x:n,y:a,width:r-n,height:o-a}}function Pm(e,t,n){var r=Pe({rectHover:!0},t),a=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),Pt(a,n),new da(r)):xg(e.replace("path://",""),r,n,"center")}function m0(e,t,n,r,a){for(var o=0,i=a[a.length-1];o<a.length;o++){var s=a[o];if(KW(e,t,n,r,s[0],s[1],i[0],i[1]))return!0;i=s}}function KW(e,t,n,r,a,o,i,s){var l=n-e,u=r-t,c=i-a,f=s-o,d=j3(c,f,l,u);if(nfe(d))return!1;var v=e-a,h=t-o,p=j3(v,h,l,u)/d;if(p<0||p>1)return!1;var g=j3(v,h,c,f)/d;return!(g<0||g>1)}function j3(e,t,n,r){return e*r-n*t}function nfe(e){return e<=1e-6&&e>=-1e-6}function od(e,t,n,r,a){return t==null||(gn(t)?nr[0]=nr[1]=nr[2]=nr[3]=t:(nr[0]=t[0],nr[1]=t[1],nr[2]=t[2],nr[3]=t[3]),r&&(nr[0]=mr(0,nr[0]),nr[1]=mr(0,nr[1]),nr[2]=mr(0,nr[2]),nr[3]=mr(0,nr[3])),n&&(nr[0]=-nr[0],nr[1]=-nr[1],nr[2]=-nr[2],nr[3]=-nr[3]),yL(e,nr,"x","width",3,1,a&&a[0]||0),yL(e,nr,"y","height",0,2,a&&a[1]||0)),e}var nr=[0,0,0,0];function yL(e,t,n,r,a,o,i){var s=t[o]+t[a],l=e[r];e[r]+=s,i=mr(0,Ao(i,l)),e[r]<i?(e[r]=i,e[n]+=t[a]>=0?-t[a]:t[o]>=0?l+t[o]:ms(s)>1e-8?(l-i)*t[a]/s:0):e[n]-=t[a]}function eu(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,a=st(t)?{formatter:t}:t,o=n.mainType,i=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=i;var l=e.formatterParamsExtra;l&&j(dn(l),function(c){ft(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Vt(e.el);u.componentMainType=o,u.componentIndex=i,u.tooltipConfig={name:r,option:Pt({content:r,encodeHTMLContent:!0,formatterParams:s},a)}}function _x(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function _c(e,t){if(e)if(Ve(e))for(var n=0;n<e.length;n++)_x(e[n],t);else _x(e,t)}function ik(e){return!e||ms(e[1])<ty&&ms(e[2])<ty||ms(e[0])<ty&&ms(e[3])<ty}var ty=1e-5;function Cg(e,t){return e?Ot.copy(e,t):t.clone()}function sk(e,t){return t?Aw(e||Jr(),t):void 0}function id(e){return{z:e.get("z")||0,zlevel:e.get("zlevel")||0}}function jW(e){var t=-1/0,n=1/0;_x(e,function(o){r(o),r(o.getTextContent()),r(o.getTextGuideLine())});function r(o){if(!(!o||o.isGroup)){var i=o.currentStates;if(i.length)for(var s=0;s<i.length;s++)a(o.states[i[s]]);a(o)}}function a(o){if(o){var i=o.z2;i>t&&(t=i),i<n&&(n=i)}}return n>t&&(n=t=0),{min:n,max:t}}function Ww(e,t,n){YW(e,t,n,-1/0)}function YW(e,t,n,r){if(e.ignoreModelZ)return r;var a=e.getTextContent(),o=e.getTextGuideLine(),i=e.isGroup;if(i)for(var s=e.childrenRef(),l=0;l<s.length;l++)r=mr(YW(s[l],t,n,r),r);else e.z=t,e.zlevel=n,r=mr(e.z2||0,r);if(a&&(a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+2)),o){var u=e.textGuideLineConfig;o.z=t,o.zlevel=n,isFinite(r)&&(o.z2=r+(u&&u.showAbove?1:-1))}return r}Hi("circle",bc);Hi("ellipse",rk);Hi("sector",ja);Hi("ring",$w);Hi("polygon",Ya);Hi("polyline",La);Hi("rect",rn);Hi("line",Rr);Hi("bezierCurve",zw);Hi("arc",ak);const xd=Object.freeze(Object.defineProperty({__proto__:null,Arc:ak,BezierCurve:zw,BoundingRect:Ot,Circle:bc,CompoundPath:Fw,Ellipse:rk,Group:At,Image:da,IncrementalDisplayable:Yce,Line:Rr,LinearGradient:Jh,OrientedBoundingRect:zW,Path:ln,Point:Dt,Polygon:Ya,Polyline:La,RadialGradient:$W,Rect:rn,Ring:$w,Sector:ja,Text:_n,WH:Tr,XY:Gt,applyTransform:Ci,calcZ2Range:jW,clipPointsByRect:UW,clipRectByRect:tfe,createIcon:Pm,ensureCopyRect:Cg,ensureCopyTransform:sk,expandOrShrinkRect:od,extendPath:Jce,extendShape:Xce,getShapeClass:Vb,getTransform:Wf,groupTransition:Dm,initProps:Xn,isBoundingRectAxisAligned:ik,isElementRemoved:Yv,lineLineIntersect:KW,linePolygonIntersect:m0,makeImage:HW,makePath:xg,mergePath:Yo,registerShape:Hi,removeElement:sc,removeElementWithFadeOut:Ll,resizePath:GW,retrieveZInfo:id,setTooltipConfig:eu,subPixelOptimize:D2,subPixelOptimizeLine:ph,subPixelOptimizeRect:Qce,transformDirection:Hw,traverseElements:_c,traverseUpdateZ:Ww,updateProps:Sn},Symbol.toStringTag,{value:"Module"}));var Gw={};function qW(e,t){for(var n=0;n<Ka.length;n++){var r=Ka[n],a=t[r],o=e.ensureState(r);o.style=o.style||{},o.style.text=a}var i=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(i,!0)}function Sx(e,t,n){var r=e.labelFetcher,a=e.labelDataIndex,o=e.labelDimIndex,i=t.normal,s;r&&(s=r.getFormattedLabel(a,"normal",null,o,i&&i.get("formatter"),n!=null?{interpolatedValue:n}:null)),s==null&&(s=kt(e.defaultText)?e.defaultText(a,e,n):e.defaultText);for(var l={normal:s},u=0;u<Ka.length;u++){var c=Ka[u],f=t[c];l[c]=yt(r?r.getFormattedLabel(a,c,null,o,f&&f.get("formatter")):null,s)}return l}function Kr(e,t,n,r){n=n||Gw;for(var a=e instanceof _n,o=!1,i=0;i<wg.length;i++){var s=t[wg[i]];if(s&&s.getShallow("show")){o=!0;break}}var l=a?e:e.getTextContent();if(o){a||(l||(l=new _n,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=Sx(n,t),c=t.normal,f=!!c.getShallow("show"),d=zn(c,r&&r.normal,n,!1,!a);d.text=u.normal,a||e.setTextConfig($b(c,n,!1));for(var i=0;i<Ka.length;i++){var v=Ka[i],s=t[v];if(s){var h=l.ensureState(v),p=!!yt(s.getShallow("show"),f);if(p!==f&&(h.ignore=!p),h.style=zn(s,r&&r[v],n,!0,!a),h.style.text=u[v],!a){var g=e.ensureState(v);g.textConfig=$b(s,n,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),n.enableTextSetter&&(ep(l).setLabelText=function(m){var y=Sx(n,t,m);qW(l,y)})}else l&&(l.ignore=!0);e.dirty()}function Vr(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<Ka.length;r++){var a=Ka[r];n[a]=e.getModel([a,t])}return n}function zn(e,t,n,r,a){var o={};return rfe(o,e,n,r,a),t&&Pe(o,t),o}function $b(e,t,n){t=t||{};var r={},a,o=e.getShallow("rotate"),i=yt(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return a=e.getShallow("position")||(n?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(r.position=a),s!=null&&(r.offset=s),o!=null&&(o*=Math.PI/180,r.rotation=o),i!=null&&(r.distance=i),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 rfe(e,t,n,r,a){n=n||Gw;var o=t.ecModel,i=o&&o.option.textStyle,s=afe(t),l;if(s){l={};var u="richInheritPlainLabel",c=yt(t.get(u),o?o.get(u):void 0);for(var f in s)if(s.hasOwnProperty(f)){var d=t.getModel(["rich",f]);SL(l[f]={},d,i,t,c,n,r,a,!1,!0)}}l&&(e.rich=l);var v=t.get("overflow");v&&(e.overflow=v);var h=t.get("lineOverflow");h&&(e.lineOverflow=h);var p=e,g=t.get("minMargin");if(g!=null)g=gn(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=Lv.minMargin;else{var m=t.get("textMargin");m!=null&&(p.margin=Tw(m),p.__marginType=Lv.textMargin)}SL(e,t,i,null,null,n,r,a,!0,!1)}function afe(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||Gw).rich;if(n){t=t||{};for(var r=dn(n),a=0;a<r.length;a++){var o=r[a];t[o]=1}}e=e.parentModel}return t}var bL=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],_L=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],wL=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function SL(e,t,n,r,a,o,i,s,l,u){n=!i&&n||Gw;var c=o&&o.inheritColor,f=t.getShallow("color"),d=t.getShallow("textBorderColor"),v=yt(t.getShallow("opacity"),n.opacity);(f==="inherit"||f==="auto")&&(c?f=c:f=null),(d==="inherit"||d==="auto")&&(c?d=c:d=null),s||(f=f||n.color,d=d||n.textBorderColor),f!=null&&(e.fill=f),d!=null&&(e.stroke=d);var h=yt(t.getShallow("textBorderWidth"),n.textBorderWidth);h!=null&&(e.lineWidth=h);var p=yt(t.getShallow("textBorderType"),n.textBorderType);p!=null&&(e.lineDash=p);var g=yt(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!i&&v==null&&!u&&(v=o&&o.defaultOpacity),v!=null&&(e.opacity=v),!i&&!s&&e.fill==null&&o.inheritColor&&(e.fill=o.inheritColor);for(var m=0;m<bL.length;m++){var y=bL[m],b=a!==!1&&r?Mo(t.getShallow(y),r.getShallow(y),n[y]):yt(t.getShallow(y),n[y]);b!=null&&(e[y]=b)}for(var m=0;m<_L.length;m++){var y=_L[m],b=t.getShallow(y);b!=null&&(e[y]=b)}if(e.verticalAlign==null){var w=t.getShallow("baseline");w!=null&&(e.verticalAlign=w)}if(!l||!o.disableBox){for(var m=0;m<wL.length;m++){var y=wL[m],b=t.getShallow(y);b!=null&&(e[y]=b)}var S=t.getShallow("borderType");S!=null&&(e.borderDash=S),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&c&&(e.backgroundColor=c),(e.borderColor==="auto"||e.borderColor==="inherit")&&c&&(e.borderColor=c)}}function lk(e,t){var n=t&&t.getModel("textStyle");return Xo([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 ep=an();function XW(e,t,n,r){if(e){var a=ep(e);a.prevValue=a.value,a.value=n;var o=t.normal;a.valueAnimation=o.get("valueAnimation"),a.valueAnimation&&(a.precision=o.get("precision"),a.defaultInterpolatedText=r,a.statesModels=t)}}function ZW(e,t,n,r,a){var o=ep(e);if(!o.valueAnimation||o.prevValue===o.value)return;var i=o.defaultInterpolatedText,s=yt(o.interpolatedValue,o.prevValue),l=o.value;function u(c){var f=ZH(n,o.precision,s,l,c);o.interpolatedValue=c===1?null:f;var d=Sx({labelDataIndex:t,labelFetcher:a,defaultText:i?i(f):f+""},o.statesModels,f);qW(e,d)}e.percent=0,(o.prevValue==null?Xn:Sn)(e,{percent:1},r,t,null,u)}var Lv={minMargin:1,textMargin:2},ofe=["textStyle","color"],Y3=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],q3=new _n,ife=function(){function e(){}return e.prototype.getTextColor=function(t){var n=this.ecModel;return this.getShallow("color")||(!t&&n?n.get(ofe):null)},e.prototype.getFont=function(){return lk({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var n={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<Y3.length;r++)n[Y3[r]]=this.getShallow(Y3[r]);return q3.useStyle(n),q3.update(),q3.getBoundingRect()},e}();const sfe=ife;var JW=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],lfe=rd(JW),ufe=function(){function e(){}return e.prototype.getLineStyle=function(t){return lfe(this,t)},e}(),QW=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],cfe=rd(QW),ffe=function(){function e(){}return e.prototype.getItemStyle=function(t,n){return cfe(this,t,n)},e}(),Cd=function(){function e(t,n,r){this.parentModel=n,this.ecModel=r,this.option=t}return e.prototype.init=function(t,n,r){},e.prototype.mergeOption=function(t,n){Zt(this.option,t,!0)},e.prototype.get=function(t,n){return t==null?this.option:this._doGet(this.parsePath(t),!n&&this.parentModel)},e.prototype.getShallow=function(t,n){var r=this.option,a=r==null?r:r[t];if(a==null&&!n){var o=this.parentModel;o&&(a=o.getShallow(t))}return a},e.prototype.getModel=function(t,n){var r=t!=null,a=r?this.parsePath(t):null,o=r?this._doGet(a):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new e(o,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(Mt(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!kn.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,n){var r=this.option;if(!t)return r;for(var a=0;a<t.length&&!(t[a]&&(r=r&&typeof r=="object"?r[t[a]]:null,r==null));a++);return r==null&&n&&(r=n._doGet(this.resolveParentPath(t),n.parentModel)),r},e}();j5(Cd);uue(Cd);Er(Cd,ufe);Er(Cd,ffe);Er(Cd,hue);Er(Cd,sfe);const Tn=Cd;var dfe=Math.round(Math.random()*10);function tp(e){return[e||"",dfe++].join("_")}function vfe(e){var t={};e.registerSubTypeDefaulter=function(n,r){var a=bs(n);t[a.main]=r},e.determineSubType=function(n,r){var a=r.type;if(!a){var o=bs(n).main;e.hasSubTypes(n)&&t[o]&&(a=t[o](r))}return a}}function hfe(e,t){e.topologicalTravel=function(o,i,s,l){if(!o.length)return;var u=n(i),c=u.graph,f=u.noEntryList,d={};for(j(o,function(y){d[y]=!0});f.length;){var v=f.pop(),h=c[v],p=!!d[v];p&&(s.call(l,v,h.originalDeps.slice()),delete d[v]),j(h.successor,p?m:g)}j(d,function(){var y="";throw new Error(y)});function g(y){c[y].entryCount--,c[y].entryCount===0&&f.push(y)}function m(y){d[y]=!0,g(y)}};function n(o){var i={},s=[];return j(o,function(l){var u=r(i,l),c=u.originalDeps=t(l),f=a(c,o);u.entryCount=f.length,u.entryCount===0&&s.push(l),j(f,function(d){Xt(u.predecessor,d)<0&&u.predecessor.push(d);var v=r(i,d);Xt(v.successor,d)<0&&v.successor.push(l)})}),{graph:i,noEntryList:s}}function r(o,i){return o[i]||(o[i]={predecessor:[],successor:[]}),o[i]}function a(o,i){var s=[];return j(o,function(l){Xt(i,l)>=0&&s.push(l)}),s}}function wc(e,t){return Zt(Zt({},e,!0),t,!0)}const pfe={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:". "}}}},gfe={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:""}}}};var zb="ZH",uk="EN",qv=uk,P2={},ck={},eG=kn.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||qv).toUpperCase();return e.indexOf(zb)>-1?zb:qv}():qv;function tG(e,t){e=e.toUpperCase(),ck[e]=new Tn(t),P2[e]=t}function mfe(e){if(st(e)){var t=P2[e.toUpperCase()]||{};return e===zb||e===uk?Mt(t):Zt(Mt(t),Mt(P2[qv]),!1)}else return Zt(Mt(e),Mt(P2[qv]),!1)}function xx(e){return ck[e]}function yfe(){return ck[qv]}tG(uk,pfe);tG(zb,gfe);var Cx=null;function bfe(e){Cx||(Cx=e)}function Cr(){return Cx}var fk=1e3,dk=fk*60,W0=dk*60,qo=W0*24,xL=qo*365,_fe={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})/},R2={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},wfe="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",ny="{yyyy}-{MM}-{dd}",CL={year:"{yyyy}",month:"{yyyy}-{MM}",day:ny,hour:ny+" "+R2.hour,minute:ny+" "+R2.minute,second:ny+" "+R2.second,millisecond:wfe},mo=["year","month","day","hour","minute","second","millisecond"],Sfe=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function xfe(e){return!st(e)&&!kt(e)?Cfe(e):e}function Cfe(e){e=e||{};var t={},n=!0;return j(mo,function(r){n&&(n=e[r]==null)}),j(mo,function(r,a){var o=e[r];t[r]={};for(var i=null,s=a;s>=0;s--){var l=mo[s],u=Rt(o)&&!Ve(o)?o[l]:o,c=void 0;Ve(u)?(c=u.slice(),i=c[0]||""):st(u)?(i=u,c=[i]):(i==null?i=R2[r]:_fe[l].test(i)||(i=t[l][l][0]+" "+i),c=[i],n&&(c[1]="{primary|"+i+"}")),t[r][l]=c}}),t}function uu(e,t){return e+="","0000".substr(0,t-e.length)+e}function G0(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 Tfe(e){return e===G0(e)}function kfe(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Uw(e,t,n,r){var a=Sd(e),o=a[nG(n)](),i=a[vk(n)]()+1,s=Math.floor((i-1)/3)+1,l=a[hk(n)](),u=a["get"+(n?"UTC":"")+"Day"](),c=a[pk(n)](),f=(c-1)%12+1,d=a[gk(n)](),v=a[mk(n)](),h=a[yk(n)](),p=c>=12?"pm":"am",g=p.toUpperCase(),m=r instanceof Tn?r:xx(r||eG)||yfe(),y=m.getModel("time"),b=y.get("month"),w=y.get("monthAbbr"),S=y.get("dayOfWeek"),x=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,uu(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[i-1]).replace(/{MMM}/g,w[i-1]).replace(/{MM}/g,uu(i,2)).replace(/{M}/g,i+"").replace(/{dd}/g,uu(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,uu(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,uu(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,uu(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,uu(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,uu(h,3)).replace(/{S}/g,h+"")}function Mfe(e,t,n,r,a){var o=null;if(st(n))o=n;else if(kt(n)){var i={time:e.time,level:e.time.level},s=Cr();s&&s.makeAxisLabelFormatterParamBreak(i,e.break),o=n(e.value,t,i)}else{var l=e.time;if(l){var u=n[l.lowerTimeUnit][l.upperTimeUnit];o=u[Math.min(l.level,u.length-1)]||""}else{var c=Dv(e.value,a);o=n[c][c][0]}}return Uw(new Date(e.value),o,a,r)}function Dv(e,t){var n=Sd(e),r=n[vk(t)]()+1,a=n[hk(t)](),o=n[pk(t)](),i=n[gk(t)](),s=n[mk(t)](),l=n[yk(t)](),u=l===0,c=u&&s===0,f=c&&i===0,d=f&&o===0,v=d&&a===1,h=v&&r===1;return h?"year":v?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function Tx(e,t,n){switch(t){case"year":e[rG(n)](0);case"month":e[aG(n)](1);case"day":e[oG(n)](0);case"hour":e[iG(n)](0);case"minute":e[sG(n)](0);case"second":e[lG(n)](0)}return e}function nG(e){return e?"getUTCFullYear":"getFullYear"}function vk(e){return e?"getUTCMonth":"getMonth"}function hk(e){return e?"getUTCDate":"getDate"}function pk(e){return e?"getUTCHours":"getHours"}function gk(e){return e?"getUTCMinutes":"getMinutes"}function mk(e){return e?"getUTCSeconds":"getSeconds"}function yk(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Afe(e){return e?"setUTCFullYear":"setFullYear"}function rG(e){return e?"setUTCMonth":"setMonth"}function aG(e){return e?"setUTCDate":"setDate"}function oG(e){return e?"setUTCHours":"setHours"}function iG(e){return e?"setUTCMinutes":"setMinutes"}function sG(e){return e?"setUTCSeconds":"setSeconds"}function lG(e){return e?"setUTCMilliseconds":"setMilliseconds"}function uG(e){if(!HH(e))return st(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function cG(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Rm=Tw;function kx(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Xo(c)?c:"-"}function o(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var i=t==="time",s=e instanceof Date;if(i||s){var l=i?Sd(e):e;if(isNaN(+l)){if(s)return"-"}else return Uw(l,r,n)}if(t==="ordinal")return O8(e)?a(e):gn(e)&&o(e)?e+"":"-";var u=$l(e);return o(u)?uG(u):O8(e)?a(e):typeof e=="boolean"?e+"":"-"}var TL=["a","b","c","d","e","f","g"],X3=function(e,t){return"{"+e+(t??"")+"}"};function fG(e,t,n){Ve(t)||(t=[t]);var r=t.length;if(!r)return"";for(var a=t[0].$vars||[],o=0;o<a.length;o++){var i=TL[o];e=e.replace(X3(i),X3(i,0))}for(var s=0;s<r;s++)for(var l=0;l<a.length;l++){var u=t[s][a[l]];e=e.replace(X3(TL[l],s),n?wa(u):u)}return e}function Efe(e,t,n){return j(t,function(r,a){e=e.replace("{"+a+"}",n?wa(r):r)}),e}function Ife(e,t){var n=st(e)?{color:e,extraCssText:t}:e||{},r=n.color,a=n.type;t=n.extraCssText;var o=n.renderMode||"html";if(!r)return"";if(o==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+wa(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+wa(r)+";"+(t||"")+'"></span>';var i=n.markerId||"markerX";return{renderMode:o,content:"{"+i+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function sd(e,t){return t=t||"transparent",st(e)?e:Rt(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Fb(e,t){if(t==="_blank"||t==="blank"){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var O2={},Z3={},Om=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(t,n){this._nonSeriesBoxMasterList=r(O2),this._normalMasterList=r(Z3);function r(a,o){var i=[];return j(a,function(s,l){var u=s.create(t,n);i=i.concat(u||[])}),i}},e.prototype.update=function(t,n){j(this._normalMasterList,function(r){r.update&&r.update(t,n)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(t,n){if(t==="matrix"||t==="calendar"){O2[t]=n;return}Z3[t]=n},e.get=function(t){return Z3[t]||O2[t]},e}();function Lfe(e){return!!O2[e]}var Mx={coord:1,coord2:2};function Dfe(e){dG.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var dG=pt();function Pfe(e){var t=e.getShallow("coord",!0),n=Mx.coord;if(t==null){var r=dG.get(e.type);r&&r.getCoord2&&(n=Mx.coord2,t=r.getCoord2(e))}return{coord:t,from:n}}var ps={none:0,dataCoordSys:1,boxCoordSys:2};function vG(e,t){var n=e.getShallow("coordinateSystem"),r=e.getShallow("coordinateSystemUsage",!0),a=ps.none;if(n){var o=e.mainType==="series";r==null&&(r=o?"data":"box"),r==="data"?(a=ps.dataCoordSys,o||(a=ps.none)):r==="box"&&(a=ps.boxCoordSys,!o&&!Lfe(n)&&(a=ps.none))}return{coordSysType:n,kind:a}}function Nm(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,a=e.isDefaultDataCoordSys;e.allowNotFound;var o=vG(t),i=o.kind,s=o.coordSysType;if(a&&i!==ps.dataCoordSys&&(i=ps.dataCoordSys,s=n),i===ps.none||s!==n)return!1;var l=r(n,t);return l?(i===ps.dataCoordSys?t.coordinateSystem=l:t.boxCoordinateSystem=l,!0):!1}var hG=function(e,t){var n=t.getReferringComponents(e,lr).models[0];return n&&n.coordinateSystem},N2=j,pG=["left","right","top","bottom","width","height"],xf=[["width","left","right"],["height","top","bottom"]];function bk(e,t,n,r,a){var o=0,i=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),v,h;if(e==="horizontal"){var p=c.width+(d?-d.x+c.x:0);v=o+p,v>r||l.newline?(o=0,v=p,i+=s+n,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);h=i+g,h>a||l.newline?(o+=s+n,i=0,h=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=o,l.y=i,l.markRedraw(),e==="horizontal"?o=v+n:i=h+n)})}var Gf=bk;Yt(bk,"vertical");Yt(bk,"horizontal");function gG(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 Rfe(e,t){var n=$r(e,t,{enableLayoutOnlyByCenter:!0}),r=e.getBoxLayoutParams(),a,o;if(n.type===y0.point)o=n.refPoint,a=Qn(r,{width:t.getWidth(),height:t.getHeight()});else{var i=e.get("center"),s=Ve(i)?i:[i,i];a=Qn(r,n.refContainer),o=n.boxCoordFrom===Mx.coord2?n.refPoint:[at(s[0],a.width)+a.x,at(s[1],a.height)+a.y]}return{viewRect:a,center:o}}function mG(e,t){var n=Rfe(e,t),r=n.viewRect,a=n.center,o=e.get("radius");Ve(o)||(o=[0,o]);var i=at(r.width,t.getWidth()),s=at(r.height,t.getHeight()),l=Math.min(i,s),u=at(o[0],l/2),c=at(o[1],l/2);return{cx:a[0],cy:a[1],r0:u,r:c,viewRect:r}}function Qn(e,t,n){n=Rm(n||0);var r=t.width,a=t.height,o=at(e.left,r),i=at(e.top,a),s=at(e.right,r),l=at(e.bottom,a),u=at(e.width,r),c=at(e.height,a),f=n[2]+n[0],d=n[1]+n[3],v=e.aspect;switch(isNaN(u)&&(u=r-s-d-o),isNaN(c)&&(c=a-l-f-i),v!=null&&(isNaN(u)&&isNaN(c)&&(v>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(o)&&(o=r-s-u-d),isNaN(i)&&(i=a-l-c-f),e.left||e.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-d;break}switch(e.top||e.bottom){case"middle":case"center":i=a/2-c/2-n[0];break;case"bottom":i=a-c-f;break}o=o||0,i=i||0,isNaN(u)&&(u=r-d-o-(s||0)),isNaN(c)&&(c=a-f-i-(l||0));var h=new Ot((t.x||0)+o+n[3],(t.y||0)+i+n[0],u,c);return h.margin=n,h}function yG(e,t,n){var r=e.getShallow("preserveAspect",!0);if(!r)return t;var a=t.width/t.height;if(Math.abs(Math.atan(n)-Math.atan(a))<1e-9)return t;var o=e.getShallow("preserveAspectAlign",!0),i=e.getShallow("preserveAspectVerticalAlign",!0),s={width:t.width,height:t.height},l=r==="cover";return a>n&&!l||a<n&&l?(s.width=t.height*n,o==="left"?s.left=0:o==="right"?s.right=0:s.left="center"):(s.height=t.width/n,i==="top"?s.top=0:i==="bottom"?s.bottom=0:s.top="middle"),Qn(s,t)}var y0={rect:1,point:2};function $r(e,t,n){var r,a,o,i=e.boxCoordinateSystem,s;if(i){var l=Pfe(e),u=l.coord,c=l.from;if(i.dataToLayout){o=y0.rect,s=c;var f=i.dataToLayout(u);r=f.contentRect||f.rect}else n&&n.enableLayoutOnlyByCenter&&i.dataToPoint&&(o=y0.point,s=c,a=i.dataToPoint(u))}return o==null&&(o=y0.rect),o===y0.rect&&(r||(r={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),a=[r.x+r.width/2,r.y+r.height/2]),{type:o,refContainer:r,refPoint:a,boxCoordFrom:s}}function Kw(e,t,n,r,a,o){var i=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(o=o||e,o.x=e.x,o.y=e.y,!i&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new Ot(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=Qn(Pt({width:u.width,height:u.height},t),n,r),d=i?f.x-u.x:0,v=s?f.y-u.y:0;return l==="raw"?(o.x=d,o.y=v):(o.x+=d,o.y+=v),o===e&&e.markRedraw(),!0}function Ofe(e,t){return e[xf[t][0]]!=null||e[xf[t][1]]!=null&&e[xf[t][2]]!=null}function Tg(e){var t=e.layoutMode||e.constructor.layoutMode;return Rt(t)?t:t?{type:t}:null}function Us(e,t,n){var r=n&&n.ignoreSize;!Ve(r)&&(r=[r,r]);var a=i(xf[0],0),o=i(xf[1],1);l(xf[0],e,a),l(xf[1],e,o);function i(u,c){var f={},d=0,v={},h=0,p=2;if(N2(u,function(y){v[y]=e[y]}),N2(u,function(y){ft(t,y)&&(f[y]=v[y]=t[y]),s(f,y)&&d++,s(v,y)&&h++}),r[c])return s(t,u[1])?v[u[2]]=null:s(t,u[2])&&(v[u[1]]=null),v;if(h===p||!d)return v;if(d>=p)return f;for(var g=0;g<u.length;g++){var m=u[g];if(!ft(f,m)&&ft(e,m)){f[m]=e[m];break}}return f}function s(u,c){return u[c]!=null&&u[c]!=="auto"}function l(u,c,f){N2(u,function(d){c[d]=f[d]})}}function Td(e){return bG({},e)}function bG(e,t){return t&&e&&N2(pG,function(n){ft(t,n)&&(e[n]=t[n])}),e}var Nfe=an(),np=function(e){ye(t,e);function t(n,r,a){var o=e.call(this,n,r,a)||this;return o.uid=tp("ec_cpt_model"),o}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},t.prototype.mergeDefaultAndTheme=function(n,r){var a=Tg(this),o=a?Td(n):{},i=r.getTheme();Zt(n,i.get(this.mainType)),Zt(n,this.getDefaultOption()),a&&Us(n,o,a)},t.prototype.mergeOption=function(n,r){Zt(this.option,n,!0);var a=Tg(this);a&&Us(this.option,n,a)},t.prototype.optionUpdated=function(n,r){},t.prototype.getDefaultOption=function(){var n=this.constructor;if(!iue(n))return n.defaultOption;var r=Nfe(this);if(!r.defaultOption){for(var a=[],o=n;o;){var i=o.prototype.defaultOption;i&&a.push(i),o=o.superClass}for(var s={},l=a.length-1;l>=0;l--)s=Zt(s,a[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var a=n+"Index",o=n+"Id";return Xh(this.ecModel,n,{index:this.get(a,!0),id:this.get(o,!0)},r)},t.prototype.getBoxLayoutParams=function(){return gG(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),t}(Tn);QH(np,Tn);Lw(np);vfe(np);hfe(np,Bfe);function Bfe(e){var t=[];return j(np.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=$e(t,function(n){return bs(n).main}),e!=="dataset"&&Xt(t,"dataset")<=0&&t.unshift("dataset"),t}const mn=np;var Cf={color:{},darkColor:{},size:{}},pr=Cf.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)"};Pe(pr,{primary:pr.neutral80,secondary:pr.neutral70,tertiary:pr.neutral60,quaternary:pr.neutral50,disabled:pr.neutral20,border:pr.neutral30,borderTint:pr.neutral20,borderShade:pr.neutral40,background:pr.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:pr.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:pr.neutral70,axisLineTint:pr.neutral40,axisTick:pr.neutral70,axisTickMinor:pr.neutral60,axisLabel:pr.neutral70,axisSplitLine:pr.neutral15,axisMinorSplitLine:pr.neutral05});for(var Gc in pr)if(pr.hasOwnProperty(Gc)){var kL=pr[Gc];Gc==="theme"?Cf.darkColor.theme=pr.theme.slice():Gc==="highlight"?Cf.darkColor.highlight="rgba(255,231,130,0.4)":Gc.indexOf("accent")===0?Cf.darkColor[Gc]=Yu(kL,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):Cf.darkColor[Gc]=Yu(kL,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}Cf.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const Se=Cf;var _G="";typeof navigator<"u"&&(_G=navigator.platform||"");var Yd="rgba(0, 0, 0, 0.2)",wG=Se.color.theme[0],Vfe=Yu(wG,null,null,.9);const $fe={darkMode:"auto",colorBy:"series",color:Se.color.theme,gradientColor:[Vfe,wG],aria:{decal:{decals:[{color:Yd,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Yd,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Yd,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Yd,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Yd,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Yd,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:_G.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};var SG=pt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Do="original",Qr="arrayRows",Po="objectRows",Wi="keyedColumns",Xu="typedArray",xG="unknown",Ti="column",kd="row",ra={Must:1,Might:2,Not:3},CG=an();function zfe(e){CG(e).datasetMap=pt()}function TG(e,t,n){var r={},a=wk(t);if(!a||!e)return r;var o=[],i=[],s=t.ecModel,l=CG(s).datasetMap,u=a.uid+"_"+n.seriesLayoutBy,c,f;e=e.slice(),j(e,function(p,g){var m=Rt(p)?p:e[g]={name:p};m.type==="ordinal"&&c==null&&(c=g,f=h(m)),r[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});j(e,function(p,g){var m=p.name,y=h(p);if(c==null){var b=d.valueWayDim;v(r[m],b,y),v(i,b,y),d.valueWayDim+=y}else if(c===g)v(r[m],0,y),v(o,0,y);else{var b=d.categoryWayDim;v(r[m],b,y),v(i,b,y),d.categoryWayDim+=y}});function v(p,g,m){for(var y=0;y<m;y++)p.push(g+y)}function h(p){var g=p.dimsDef;return g?g.length:1}return o.length&&(r.itemName=o),i.length&&(r.seriesName=i),r}function _k(e,t,n){var r={},a=wk(e);if(!a)return r;var o=t.sourceFormat,i=t.dimensionsDefine,s;(o===Po||o===Wi)&&j(i,function(c,f){(Rt(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],v=0,h=Math.min(5,n);v<h;v++){var p=MG(t.data,o,t.seriesLayoutBy,i,t.startIndex,v);d.push(p);var g=p===ra.Not;if(g&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v||!g&&d[c.n]===ra.Not)&&(c.n=v),m(c)&&d[c.n]!==ra.Not)return c;g||(p===ra.Might&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v)&&(f.n=v))}function m(y){return y.v!=null&&y.n!=null}return m(c)?c:m(f)?f:null}();if(l){r.value=[l.v];var u=s??l.n;r.itemName=[u],r.seriesName=[u]}return r}function wk(e){var t=e.get("data",!0);if(!t)return Xh(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},lr).models[0]}function Ffe(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Xh(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},lr).models}function kG(e,t){return MG(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function MG(e,t,n,r,a,o){var i,s=5;if(vo(e))return ra.Not;var l,u;if(r){var c=r[o];Rt(c)?(l=c.name,u=c.type):st(c)&&(l=c)}if(u!=null)return u==="ordinal"?ra.Must:ra.Not;if(t===Qr){var f=e;if(n===kd){for(var d=f[o],v=0;v<(d||[]).length&&v<s;v++)if((i=w(d[a+v]))!=null)return i}else for(var v=0;v<f.length&&v<s;v++){var h=f[a+v];if(h&&(i=w(h[o]))!=null)return i}}else if(t===Po){var p=e;if(!l)return ra.Not;for(var v=0;v<p.length&&v<s;v++){var g=p[v];if(g&&(i=w(g[l]))!=null)return i}}else if(t===Wi){var m=e;if(!l)return ra.Not;var d=m[l];if(!d||vo(d))return ra.Not;for(var v=0;v<d.length&&v<s;v++)if((i=w(d[v]))!=null)return i}else if(t===Do)for(var y=e,v=0;v<y.length&&v<s;v++){var g=y[v],b=qh(g);if(!Ve(b))return ra.Not;if((i=w(b[o]))!=null)return i}function w(S){var x=st(S);if(S!=null&&Number.isFinite(Number(S))&&S!=="")return x?ra.Might:ra.Not;if(x&&S!=="-")return ra.Must}return ra.Not}var Ax=pt();function Hfe(e,t){Ia(Ax.get(e)==null&&t),Ax.set(e,t)}function Wfe(e,t,n){var r=Ax.get(t);if(!r)return n;var a=r(e);return a?n.concat(a):n}var ML=an(),Gfe=an(),Sk=function(){function e(){}return e.prototype.getColorFromPalette=function(t,n,r){var a=Bn(this.get("color",!0)),o=this.get("colorLayer",!0);return AG(this,ML,a,o,t,n,r)},e.prototype.clearColorPalette=function(){Kfe(this,ML)},e}();function Ex(e,t,n,r){var a=Bn(e.get(["aria","decal","decals"]));return AG(e,Gfe,a,null,t,n,r)}function Ufe(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 AG(e,t,n,r,a,o,i){o=o||e;var s=t(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=i==null||!r?n:Ufe(r,i);if(c=c||n,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function Kfe(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var ry,Dp,AL,EL="\0_ec_inner",jfe=1,EG=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,a,o,i,s){o=o||{},this.option=null,this._theme=new Tn(o),this._locale=new Tn(i),this._optionManager=s},t.prototype.setOption=function(n,r,a){var o=DL(r);this._optionManager.setOption(n,a,o),this._resetOption(null,o)},t.prototype.resetOption=function(n,r){return this._resetOption(n,DL(r))},t.prototype._resetOption=function(n,r){var a=!1,o=this._optionManager;if(!n||n==="recreate"){var i=o.mountOption(n==="recreate");!this.option||n==="recreate"?AL(this,i):(this.restoreData(),this._mergeOption(i,r)),a=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=o.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!n||n==="recreate"||n==="media"){var l=o.getMediaOption(this);l.length&&j(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,r){var a=this.option,o=this._componentsMap,i=this._componentsCount,s=[],l=pt(),u=r&&r.replaceMergeMainTypeMap;zfe(this),j(n,function(f,d){f!=null&&(mn.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?Mt(f):Zt(a[d],f,!0))}),u&&u.each(function(f,d){mn.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),mn.topologicalTravel(s,mn.getAllClassMainTypes(),c,this);function c(f){var d=Wfe(this,f,Bn(n[f])),v=o.get(f),h=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=YH(v,d,h);Zle(p,f,mn),a[f]=null,o.set(f,null),i.set(f,0);var g=[],m=[],y=0,b;j(p,function(w,S){var x=w.existing,C=w.newOption;if(!C)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=f==="series",M=mn.getClass(f,w.keyInfo.subType,!T);if(!M)return;if(f==="tooltip"){if(b)return;b=!0}if(x&&x.constructor===M)x.name=w.keyInfo.name,x.mergeOption(C,this),x.optionUpdated(C,!1);else{var k=Pe({componentIndex:S},w.keyInfo);x=new M(C,this,this,k),Pe(x,k),w.brandNew&&(x.__requireNewView=!0),x.init(C,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),m.push(x),y++):(g.push(void 0),m.push(void 0))},this),a[f]=g,o.set(f,m),i.set(f,y),f==="series"&&ry(this)}this._seriesIndices||ry(this)},t.prototype.getOption=function(){var n=Mt(this.option);return j(n,function(r,a){if(mn.hasClass(a)){for(var o=Bn(r),i=o.length,s=!1,l=i-1;l>=0;l--)o[l]&&!bg(o[l])?s=!0:(o[l]=null,!s&&i--);o.length=i,n[a]=o}}),delete n[EL],n},t.prototype.setTheme=function(n){this._theme=new Tn(n),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var a=this._componentsMap.get(n);if(a){var o=a[r||0];if(o)return o;if(r==null){for(var i=0;i<a.length;i++)if(a[i])return a[i]}}},t.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var a=n.index,o=n.id,i=n.name,s=this._componentsMap.get(r);if(!s||!s.length)return[];var l;return a!=null?(l=[],j(Bn(a),function(u){s[u]&&l.push(s[u])})):o!=null?l=IL("id",o,s):i!=null?l=IL("name",i,s):l=In(s,function(u){return!!u}),LL(l,n)},t.prototype.findComponents=function(n){var r=n.query,a=n.mainType,o=s(r),i=o?this.queryComponents(o):In(this._componentsMap.get(a),function(u){return!!u});return l(LL(i,n));function s(u){var c=a+"Index",f=a+"Id",d=a+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:a,index:u[c],id:u[f],name:u[d]}:null}function l(u){return n.filter?In(u,n.filter):u}},t.prototype.eachComponent=function(n,r,a){var o=this._componentsMap;if(kt(n)){var i=r,s=n;o.each(function(f,d){for(var v=0;f&&v<f.length;v++){var h=f[v];h&&s.call(i,d,h,h.componentIndex)}})}else for(var l=st(n)?o.get(n):Rt(n)?this.findComponents(n):null,u=0;l&&u<l.length;u++){var c=l[u];c&&r.call(a,c,c.componentIndex)}},t.prototype.getSeriesByName=function(n){var r=Pr(n,null);return In(this._componentsMap.get("series"),function(a){return!!a&&r!=null&&a.name===r})},t.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},t.prototype.getSeriesByType=function(n){return In(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},t.prototype.getSeries=function(){return In(this._componentsMap.get("series"),function(n){return!!n})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(n,r){Dp(this),j(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];n.call(r,o,a)},this)},t.prototype.eachRawSeries=function(n,r){j(this._componentsMap.get("series"),function(a){a&&n.call(r,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(n,r,a){Dp(this),j(this._seriesIndices,function(o){var i=this._componentsMap.get("series")[o];i.subType===n&&r.call(a,i,o)},this)},t.prototype.eachRawSeriesByType=function(n,r,a){return j(this.getSeriesByType(n),r,a)},t.prototype.isSeriesFiltered=function(n){return Dp(this),this._seriesIndicesMap.get(n.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(n,r){Dp(this);var a=[];j(this._seriesIndices,function(o){var i=this._componentsMap.get("series")[o];n.call(r,i,o)&&a.push(o)},this),this._seriesIndices=a,this._seriesIndicesMap=pt(a)},t.prototype.restoreData=function(n){ry(this);var r=this._componentsMap,a=[];r.each(function(o,i){mn.hasClass(i)&&a.push(i)}),mn.topologicalTravel(a,mn.getAllClassMainTypes(),function(o){j(r.get(o),function(i){i&&(o!=="series"||!Yfe(i,n))&&i.restoreData()})})},t.internalField=function(){ry=function(n){var r=n._seriesIndices=[];j(n._componentsMap.get("series"),function(a){a&&r.push(a.componentIndex)}),n._seriesIndicesMap=pt(r)},Dp=function(n){},AL=function(n,r){n.option={},n.option[EL]=jfe,n._componentsMap=pt({series:[]}),n._componentsCount=pt();var a=r.aria;Rt(a)&&a.enabled==null&&(a.enabled=!0),qfe(r,n._theme.option),Zt(r,$fe,!1),n._mergeOption(r,null)}}(),t}(Tn);function Yfe(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,a=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||a!=null&&e.name!==a}}function qfe(e,t){var n=e.color&&!e.colorLayer;j(t,function(r,a){a==="colorLayer"&&n||a==="color"&&e.color||mn.hasClass(a)||(typeof r=="object"?e[a]=e[a]?Zt(e[a],r,!1):Mt(r):e[a]==null&&(e[a]=r))})}function IL(e,t,n){if(Ve(t)){var r=pt();return j(t,function(o){if(o!=null){var i=Pr(o,null);i!=null&&r.set(o,!0)}}),In(n,function(o){return o&&r.get(o[e])})}else{var a=Pr(t,null);return In(n,function(o){return o&&a!=null&&o[e]===a})}}function LL(e,t){return t.hasOwnProperty("subType")?In(e,function(n){return n&&n.subType===t.subType}):e}function DL(e){var t=pt();return e&&j(Bn(e.replaceMerge),function(n){t.set(n,!0)}),{replaceMergeMainTypeMap:t}}Er(EG,Sk);const IG=EG;var Xfe=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Zfe=function(){function e(t){j(Xfe,function(n){this[n]=lt(t[n],t)},this)}return e}();const LG=Zfe;var Jfe=/^(min|max)?(.+)$/,Qfe=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,n,r){t&&(j(Bn(t.series),function(i){i&&i.data&&vo(i.data)&&xb(i.data)}),j(Bn(t.dataset),function(i){i&&i.source&&vo(i.source)&&xb(i.source)})),t=Mt(t);var a=this._optionBackup,o=ede(t,n,!a);this._newBaseOption=o.baseOption,a?(o.timelineOptions.length&&(a.timelineOptions=o.timelineOptions),o.mediaList.length&&(a.mediaList=o.mediaList),o.mediaDefault&&(a.mediaDefault=o.mediaDefault)):this._optionBackup=o},e.prototype.mountOption=function(t){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],Mt(t?n.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var n,r=this._timelineOptions;if(r.length){var a=t.getComponent("timeline");a&&(n=Mt(r[a.getCurrentIndex()]))}return n},e.prototype.getMediaOption=function(t){var n=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,o=this._mediaDefault,i=[],s=[];if(!a.length&&!o)return s;for(var l=0,u=a.length;l<u;l++)tde(a[l].query,n,r)&&i.push(l);return!i.length&&o&&(i=[-1]),i.length&&!rde(i,this._currentMediaIndices)&&(s=$e(i,function(c){return Mt(c===-1?o.option:a[c].option)})),this._currentMediaIndices=i,s},e}();function ede(e,t,n){var r=[],a,o,i=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||i&&i.timeline);i?(o=i,o.timeline||(o.timeline=s)):((f||c)&&(e.options=e.media=null),o=e),c&&Ve(u)&&j(u,function(v){v&&v.option&&(v.query?r.push(v):a||(a=v))}),d(o),j(l,function(v){return d(v)}),j(r,function(v){return d(v.option)});function d(v){j(t,function(h){h(v,n)})}return{baseOption:o,timelineOptions:l||[],mediaDefault:a,mediaList:r}}function tde(e,t,n){var r={width:t,height:n,aspectratio:t/n},a=!0;return j(e,function(o,i){var s=i.match(Jfe);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();nde(r[u],o,l)||(a=!1)}}),a}function nde(e,t,n){return n==="min"?e>=t:n==="max"?e<=t:e===t}function rde(e,t){return e.join(",")===t.join(",")}const ade=Qfe;var di=j,kg=Rt,PL=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function J3(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=PL.length;n<r;n++){var a=PL[n],o=t.normal,i=t.emphasis;o&&o[a]&&(e[a]=e[a]||{},e[a].normal?Zt(e[a].normal,o[a]):e[a].normal=o[a],o[a]=null),i&&i[a]&&(e[a]=e[a]||{},e[a].emphasis?Zt(e[a].emphasis,i[a]):e[a].emphasis=i[a],i[a]=null)}}function ba(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,a=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,Pt(e[t],r)):e[t]=r),a&&(e.emphasis=e.emphasis||{},e.emphasis[t]=a,a.focus&&(e.emphasis.focus=a.focus),a.blurScope&&(e.emphasis.blurScope=a.blurScope))}}function b0(e){ba(e,"itemStyle"),ba(e,"lineStyle"),ba(e,"areaStyle"),ba(e,"label"),ba(e,"labelLine"),ba(e,"upperLabel"),ba(e,"edgeLabel")}function Sr(e,t){var n=kg(e)&&e[t],r=kg(n)&&n.textStyle;if(r)for(var a=0,o=NI.length;a<o;a++){var i=NI[a];r.hasOwnProperty(i)&&(n[i]=r[i])}}function Ho(e){e&&(b0(e),Sr(e,"label"),e.emphasis&&Sr(e.emphasis,"label"))}function ode(e){if(kg(e)){J3(e),b0(e),Sr(e,"label"),Sr(e,"upperLabel"),Sr(e,"edgeLabel"),e.emphasis&&(Sr(e.emphasis,"label"),Sr(e.emphasis,"upperLabel"),Sr(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(J3(t),Ho(t));var n=e.markLine;n&&(J3(n),Ho(n));var r=e.markArea;r&&Ho(r);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var o=e.links||e.edges;if(o&&!vo(o))for(var i=0;i<o.length;i++)Ho(o[i]);j(e.categories,function(u){b0(u)})}if(a&&!vo(a))for(var i=0;i<a.length;i++)Ho(a[i]);if(t=e.markPoint,t&&t.data)for(var s=t.data,i=0;i<s.length;i++)Ho(s[i]);if(n=e.markLine,n&&n.data)for(var l=n.data,i=0;i<l.length;i++)Ve(l[i])?(Ho(l[i][0]),Ho(l[i][1])):Ho(l[i]);e.type==="gauge"?(Sr(e,"axisLabel"),Sr(e,"title"),Sr(e,"detail")):e.type==="treemap"?(ba(e.breadcrumb,"itemStyle"),j(e.levels,function(u){b0(u)})):e.type==="tree"&&b0(e.leaves)}}function cl(e){return Ve(e)?e:e?[e]:[]}function RL(e){return(Ve(e)?e[0]:e)||{}}function ide(e,t){di(cl(e.series),function(r){kg(r)&&ode(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),di(n,function(r){di(cl(e[r]),function(a){a&&(Sr(a,"axisLabel"),Sr(a.axisPointer,"label"))})}),di(cl(e.parallel),function(r){var a=r&&r.parallelAxisDefault;Sr(a,"axisLabel"),Sr(a&&a.axisPointer,"label")}),di(cl(e.calendar),function(r){ba(r,"itemStyle"),Sr(r,"dayLabel"),Sr(r,"monthLabel"),Sr(r,"yearLabel")}),di(cl(e.radar),function(r){Sr(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap)}),di(cl(e.geo),function(r){kg(r)&&(Ho(r),di(cl(r.regions),function(a){Ho(a)}))}),di(cl(e.timeline),function(r){Ho(r),ba(r,"label"),ba(r,"itemStyle"),ba(r,"controlStyle",!0);var a=r.data;Ve(a)&&j(a,function(o){Rt(o)&&(ba(o,"label"),ba(o,"itemStyle"))})}),di(cl(e.toolbox),function(r){ba(r,"iconStyle"),di(r.feature,function(a){ba(a,"iconStyle")})}),Sr(RL(e.axisPointer),"label"),Sr(RL(e.tooltip).axisPointer,"label")}function sde(e,t){for(var n=t.split(","),r=e,a=0;a<n.length&&(r=r&&r[n[a]],r!=null);a++);return r}function lde(e,t,n,r){for(var a=t.split(","),o=e,i,s=0;s<a.length-1;s++)i=a[s],o[i]==null&&(o[i]={}),o=o[i];(r||o[a[s]]==null)&&(o[a[s]]=n)}function OL(e){e&&j(ude,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var ude=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],cde=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Q3=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Pp(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Q3.length;n++){var r=Q3[n][1],a=Q3[n][0];t[r]!=null&&(t[a]=t[r])}}function NL(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function BL(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function fde(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function DG(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&DG(e[n].children,t)}function PG(e,t){ide(e,t),e.series=Bn(e.series),j(e.series,function(n){if(Rt(n)){var r=n.type;if(r==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow);else if(r==="pie"||r==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise),NL(n.label);var a=n.data;if(a&&!vo(a))for(var o=0;o<a.length;o++)NL(a[o]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var i=sde(n,"pointer.color");i!=null&&lde(n,"itemStyle.color",i)}else if(r==="bar"){Pp(n),Pp(n.backgroundStyle),Pp(n.emphasis);var a=n.data;if(a&&!vo(a))for(var o=0;o<a.length;o++)typeof a[o]=="object"&&(Pp(a[o]),Pp(a[o]&&a[o].emphasis))}else if(r==="sunburst"){var s=n.highlightPolicy;s&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=s)),BL(n),DG(n.data,BL)}else r==="graph"||r==="sankey"?fde(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&Pt(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),OL(n)}}),e.dataRange&&(e.visualMap=e.dataRange),j(cde,function(n){var r=e[n];r&&(Ve(r)||(r=[r]),j(r,function(a){OL(a)}))})}function dde(e){var t=pt();e.eachSeries(function(n){var r=n.get("stack");if(r){var a=t.get(r)||t.set(r,[]),o=n.getData(),i={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:n};if(!i.stackedDimension||!(i.isStackedByIndex||i.stackedByDimension))return;a.push(i)}}),t.each(function(n){if(n.length!==0){var r=n[0].seriesModel,a=r.get("stackOrder")||"seriesAsc";a==="seriesDesc"&&n.reverse(),j(n,function(o,i){o.data.setCalculationInfo("stackedOnSeries",i>0?n[i-1].seriesModel:null)}),vde(n)}})}function vde(e){j(e,function(t,n){var r=[],a=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],i=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";i.modify(o,function(u,c,f){var d=i.get(t.stackedDimension,f);if(isNaN(d))return a;var v,h;s?h=i.getRawIndex(f):v=i.get(t.stackedByDimension,f);for(var p=NaN,g=n-1;g>=0;g--){var m=e[g];if(s||(h=m.data.rawIndexOf(m.stackedByDimension,v)),h>=0){var y=m.data.getByRawIndex(m.stackResultDimension,h);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&d>=0&&y>0||l==="samesign"&&d<=0&&y<0){d=Ble(d,y),p=y;break}}}return r[0]=d,r[1]=p,r})})}var jw=function(){function e(t){this.data=t.data||(t.sourceFormat===Wi?{}:[]),this.sourceFormat=t.sourceFormat||xG,this.seriesLayoutBy=t.seriesLayoutBy||Ti,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var r=0;r<n.length;r++){var a=n[r];a.type==null&&kG(this,r)===ra.Must&&(a.type="ordinal")}}return e}();function xk(e){return e instanceof jw}function Ix(e,t,n){n=n||RG(e);var r=t.seriesLayoutBy,a=pde(e,n,r,t.sourceHeader,t.dimensions),o=new jw({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:Mt(t)});return o}function Ck(e){return new jw({data:e,sourceFormat:vo(e)?Xu:Do})}function hde(e){return new jw({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Mt(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function RG(e){var t=xG;if(vo(e))t=Xu;else if(Ve(e)){e.length===0&&(t=Qr);for(var n=0,r=e.length;n<r;n++){var a=e[n];if(a!=null){if(Ve(a)||vo(a)){t=Qr;break}else if(Rt(a)){t=Po;break}}}}else if(Rt(e)){for(var o in e)if(ft(e,o)&&Ea(e[o])){t=Wi;break}}return t}function pde(e,t,n,r,a){var o,i;if(!e)return{dimensionsDefine:VL(a),startIndex:i,dimensionsDetectedCount:o};if(t===Qr){var s=e;r==="auto"||r==null?$L(function(u){u!=null&&u!=="-"&&(st(u)?i==null&&(i=1):i=0)},n,s,10):i=gn(r)?r:r?1:0,!a&&i===1&&(a=[],$L(function(u,c){a[c]=u!=null?u+"":""},n,s,1/0)),o=a?a.length:n===kd?s.length:s[0]?s[0].length:null}else if(t===Po)a||(a=gde(e));else if(t===Wi)a||(a=[],j(e,function(u,c){a.push(c)}));else if(t===Do){var l=qh(e[0]);o=Ve(l)&&l.length||1}return{startIndex:i,dimensionsDefine:VL(a),dimensionsDetectedCount:o}}function gde(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return dn(n)}function VL(e){if(e){var t=pt();return $e(e,function(n,r){n=Rt(n)?n:{name:n};var a={name:n.name,displayName:n.displayName,type:n.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var o=t.get(a.name);return o?a.name+="-"+o.count++:t.set(a.name,{count:1}),a})}}function $L(e,t,n,r){if(t===kd)for(var a=0;a<n.length&&a<r;a++)e(n[a]?n[a][0]:null,a);else for(var o=n[0]||[],a=0;a<o.length&&a<r;a++)e(o[a],a)}function OG(e){var t=e.sourceFormat;return t===Po||t===Wi}var Uc,Kc,jc,Yc,zL,FL,NG=function(){function e(t,n){var r=xk(t)?t:Ck(t);this._source=r;var a=this._data=r.data,o=r.sourceFormat;r.seriesLayoutBy,o===Xu&&(this._offset=0,this._dimSize=n,this._data=a),FL(this,a,r)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,n){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;FL=function(i,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,v=zL[Tk(u,c)];if(Pe(i,v),u===Xu)i.getItem=n,i.count=a,i.fillStorage=r;else{var h=BG(u,c);i.getItem=lt(h,null,s,f,d);var p=VG(u,c);i.count=lt(p,null,s,f,d)}};var n=function(i,s){i=i-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*i,f=0;f<u;f++)s[f]=l[c+f];return s},r=function(i,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var v=u[d],h=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],g=s-i,m=l[d],y=0;y<g;y++){var b=c[y*f+d];m[i+y]=b,b<h&&(h=b),b>p&&(p=b)}v[0]=h,v[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};zL=(t={},t[Qr+"_"+Ti]={pure:!0,appendData:o},t[Qr+"_"+kd]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Po]={pure:!0,appendData:o},t[Wi]={pure:!0,appendData:function(i){var s=this._data;j(i,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Do]={appendData:o},t[Xu]={persistent:!1,pure:!0,appendData:function(i){this._data=i},clean:function(){this._offset+=this.count(),this._data=null}},t);function o(i){for(var s=0;s<i.length;s++)this._data.push(i[s])}}(),e}(),ay=function(e){Ve(e)||UH("series.data or dataset.source must be an array.")};Uc={},Uc[Qr+"_"+Ti]=ay,Uc[Qr+"_"+kd]=ay,Uc[Po]=ay,Uc[Wi]=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].name;r==null&&UH("dimension name must not be null/undefined.")}},Uc[Do]=ay;var HL=function(e,t,n,r){return e[r]},mde=(Kc={},Kc[Qr+"_"+Ti]=function(e,t,n,r){return e[r+t]},Kc[Qr+"_"+kd]=function(e,t,n,r,a){r+=t;for(var o=a||[],i=e,s=0;s<i.length;s++){var l=i[s];o[s]=l?l[r]:null}return o},Kc[Po]=HL,Kc[Wi]=function(e,t,n,r,a){for(var o=a||[],i=0;i<n.length;i++){var s=n[i].name,l=s!=null?e[s]:null;o[i]=l?l[r]:null}return o},Kc[Do]=HL,Kc);function BG(e,t){var n=mde[Tk(e,t)];return n}var WL=function(e,t,n){return e.length},yde=(jc={},jc[Qr+"_"+Ti]=function(e,t,n){return Math.max(0,e.length-t)},jc[Qr+"_"+kd]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},jc[Po]=WL,jc[Wi]=function(e,t,n){var r=n[0].name,a=r!=null?e[r]:null;return a?a.length:0},jc[Do]=WL,jc);function VG(e,t){var n=yde[Tk(e,t)];return n}var e6=function(e,t,n){return e[t]},bde=(Yc={},Yc[Qr]=e6,Yc[Po]=function(e,t,n){return e[n]},Yc[Wi]=e6,Yc[Do]=function(e,t,n){var r=qh(e);return r instanceof Array?r[t]:r},Yc[Xu]=e6,Yc);function $G(e){var t=bde[e];return t}function Tk(e,t){return e===Qr?e+"_"+t:e}function gh(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var a=e.getStore(),o=a.getSource().sourceFormat;if(n!=null){var i=e.getDimensionIndex(n),s=a.getDimensionProperty(i);return $G(o)(r,i,s)}else{var l=r;return o===Do&&(l=qh(r)),l}}}}var _de=/\{@(.+?)\}/g,Yw=function(){function e(){}return e.prototype.getDataParams=function(t,n){var r=this.getData(n),a=this.getRawValue(t,n),o=r.getRawIndex(t),i=r.getName(t),s=r.getRawDataItem(t),l=r.getItemVisual(t,"style"),u=l&&l[r.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",v=r.userOutput&&r.userOutput.get();return{componentType:f,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:i,dataIndex:o,data:s,dataType:n,value:a,color:u,borderColor:c,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,n,r,a,o,i){n=n||"normal";var s=this.getData(r),l=this.getDataParams(t,r);if(i&&(l.value=i.interpolatedValue),a!=null&&Ve(l.value)&&(l.value=l.value[a]),!o){var u=s.getItemModel(t);o=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(kt(o))return l.status=n,l.dimensionIndex=a,o(l);if(st(o)){var c=fG(o,l);return c.replace(_de,function(f,d){var v=d.length,h=d;h.charAt(0)==="["&&h.charAt(v-1)==="]"&&(h=+h.slice(1,v-1));var p=gh(s,t,h);if(i&&Ve(i.interpolatedValue)){var g=s.getDimensionIndex(h);g>=0&&(p=i.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,n){return gh(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e}();function GL(e){var t,n;return Rt(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function U0(e){return new wde(e)}var wde=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!r&&(o=this._plan(this.context));var i=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(i!==l||s!==u)&&(o="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||o==="reset")&&(this._dirty=!1,f=this._doReset(r)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,h=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||v<h)){var p=this._progress;if(Ve(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],v,h,l,u);else this._doProgress(p,v,h,l,u)}this._dueIndex=h;var m=this._settedOutputEnd!=null?this._settedOutputEnd:h;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,n,r,a,o){UL.reset(n,r,a,o),this._callingProgress=t,this._callingProgress({start:n,end:r,count:r-n,next:UL.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,r;!t&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),Ve(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),r},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),UL=function(){var e,t,n,r,a,o={reset:function(l,u,c,f){t=l,e=u,n=c,r=f,a=Math.ceil(r/n),o.next=n>1&&r>0?s:i}};return o;function i(){return t<e?t++:null}function s(){var l=t%a*n+Math.ceil(t/a),u=t>=e?null:l<r?l:t;return t++,u}}();function Zu(e,t){var n=t&&t.type;return n==="ordinal"?e:(n==="time"&&!gn(e)&&e!=null&&e!=="-"&&(e=+Sd(e)),e==null||e===""?NaN:Number(e))}var Sde=pt({number:function(e){return parseFloat(e)},time:function(e){return+Sd(e)},trim:function(e){return st(e)?Xo(e):e}});function zG(e){return Sde.get(e)}var FG={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}},xde=function(){function e(t,n){if(!gn(n)){var r="";An(r)}this._opFn=FG[t],this._rvalFloat=$l(n)}return e.prototype.evaluate=function(t){return gn(t)?this._opFn(t,this._rvalFloat):this._opFn($l(t),this._rvalFloat)},e}(),HG=function(){function e(t,n){var r=t==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,n){var r=gn(t)?t:$l(t),a=gn(n)?n:$l(n),o=isNaN(r),i=isNaN(a);if(o&&(r=this._incomparable),i&&(a=this._incomparable),o&&i){var s=st(t),l=st(n);s&&(r=l?t:0),l&&(a=s?n:0)}return r<a?this._resultLT:r>a?-this._resultLT:0},e}(),Cde=function(){function e(t,n){this._rval=n,this._isEQ=t,this._rvalTypeof=typeof n,this._rvalFloat=$l(n)}return e.prototype.evaluate=function(t){var n=t===this._rval;if(!n){var r=typeof t;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(n=$l(t)===this._rvalFloat)}return this._isEQ?n:!n},e}();function Tde(e,t){return e==="eq"||e==="ne"?new Cde(e==="eq",t):ft(FG,e)?new xde(e,t):null}var kde=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,n){},e.prototype.retrieveValueFromItem=function(t,n){},e.prototype.convertValue=function(t,n){return Zu(t,n)},e}();function Mde(e,t){var n=new kde,r=e.data,a=n.sourceFormat=e.sourceFormat,o=e.startIndex,i="";e.seriesLayoutBy!==Ti&&An(i);var s=[],l={},u=e.dimensionsDefine;if(u)j(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var b="";ft(l,m)&&An(b),l[m]=y}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=BG(a,Ti);t.__isBuiltIn&&(n.getRawDataItem=function(p){return f(r,o,s,p)},n.getRawData=lt(Ade,null,e)),n.cloneRawData=lt(Ede,null,e);var d=VG(a,Ti);n.count=lt(d,null,r,o,s);var v=$G(a);n.retrieveValue=function(p,g){var m=f(r,o,s,p);return h(m,g)};var h=n.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return v(p,g,m.name)}};return n.getDimensionInfo=lt(Ide,null,s,l),n.cloneAllDimensionInfo=lt(Lde,null,s),n}function Ade(e){var t=e.sourceFormat;if(!kk(t)){var n="";An(n)}return e.data}function Ede(e){var t=e.sourceFormat,n=e.data;if(!kk(t)){var r="";An(r)}if(t===Qr){for(var a=[],o=0,i=n.length;o<i;o++)a.push(n[o].slice());return a}else if(t===Po){for(var a=[],o=0,i=n.length;o<i;o++)a.push(Pe({},n[o]));return a}}function Ide(e,t,n){if(n!=null){if(gn(n)||!isNaN(n)&&!ft(t,n))return e[n];if(ft(t,n))return t[n]}}function Lde(e){return Mt(e)}var WG=pt();function Dde(e){e=Mt(e);var t=e.type,n="";t||An(n);var r=t.split(":");r.length!==2&&An(n);var a=!1;r[0]==="echarts"&&(t=r[1],a=!0),e.__isBuiltIn=a,WG.set(t,e)}function Pde(e,t,n){var r=Bn(e),a=r.length,o="";a||An(o);for(var i=0,s=a;i<s;i++){var l=r[i];t=Rde(l,t),i!==s-1&&(t.length=Math.max(t.length,1))}return t}function Rde(e,t,n,r){var a="";t.length||An(a),Rt(e)||An(a);var o=e.type,i=WG.get(o);i||An(a);var s=$e(t,function(u){return Mde(u,i)}),l=Bn(i.transform({upstream:s[0],upstreamList:s,config:Mt(e.config)}));return $e(l,function(u,c){var f="";Rt(u)||An(f),u.data||An(f);var d=RG(u.data);kk(d)||An(f);var v,h=t[0];if(h&&c===0&&!u.dimensions){var p=h.startIndex;p&&(u.data=h.data.slice(0,p).concat(u.data)),v={seriesLayoutBy:Ti,sourceHeader:p,dimensions:h.metaRawOption.dimensions}}else v={seriesLayoutBy:Ti,sourceHeader:0,dimensions:u.dimensions};return Ix(u.data,v,null)})}function kk(e){return e===Qr||e===Po}var qw="undefined",Ode=typeof Uint32Array===qw?Array:Uint32Array,Nde=typeof Uint16Array===qw?Array:Uint16Array,GG=typeof Int32Array===qw?Array:Int32Array,KL=typeof Float64Array===qw?Array:Float64Array,UG={float:KL,int:GG,ordinal:Array,number:Array,time:KL},t6;function qd(e){return e>65535?Ode:Nde}function Xd(){return[1/0,-1/0]}function Bde(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function jL(e,t,n,r,a){var o=UG[n||"float"];if(a){var i=e[t],s=i&&i.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=i[u];e[t]=l}}else e[t]=new o(r)}var Lx=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=pt()}return e.prototype.initData=function(t,n,r){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),o=this.defaultDimValueGetter=t6[a.sourceFormat];this._dimValueGetter=r||o,this._rawExtent=[],OG(a),this._dimensions=$e(n,function(i){return{type:i.type,property:i.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,n){var r=this._calcDimNameToIdx,a=this._dimensions,o=r.get(t);if(o!=null){if(a[o].type===n)return o}else o=a.length;return a[o]={type:n},r.set(t,o),this._chunks[o]=new UG[n||"float"](this._rawCount),this._rawExtent[o]=Xd(),o},e.prototype.collectOrdinalMeta=function(t,n){var r=this._chunks[t],a=this._dimensions[t],o=this._rawExtent,i=a.ordinalOffset||0,s=r.length;i===0&&(o[t]=Xd());for(var l=o[t],u=i;u<s;u++){var c=r[u]=n.parseAndCollect(r[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}a.ordinalMeta=n,a.ordinalOffset=s,a.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var n=this._dimensions[t],r=n.ordinalMeta;return r},e.prototype.getDimensionProperty=function(t){var n=this._dimensions[t];return n&&n.property},e.prototype.appendData=function(t){var n=this._provider,r=this.count();n.appendData(t);var a=n.count();return n.persistent||(a+=r),r<a&&this._initDataFromProvider(r,a,!0),[r,a]},e.prototype.appendValues=function(t,n){for(var r=this._chunks,a=this._dimensions,o=a.length,i=this._rawExtent,s=this.count(),l=s+Math.max(t.length,n||0),u=0;u<o;u++){var c=a[u];jL(r,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var v=d-s,h=0;h<o;h++){var c=a[h],p=t6.arrayRows.call(this,t[v]||f,c.property,v,h);r[h][d]=p;var g=i[h];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,n,r){for(var a=this._provider,o=this._chunks,i=this._dimensions,s=i.length,l=this._rawExtent,u=$e(i,function(y){return y.property}),c=0;c<s;c++){var f=i[c];l[c]||(l[c]=Xd()),jL(o,c,f.type,n,r)}if(a.fillStorage)a.fillStorage(t,n,o,l);else for(var d=[],v=t;v<n;v++){d=a.getItem(v,d);for(var h=0;h<s;h++){var p=o[h],g=this._dimValueGetter(d,u[h],v,h);p[v]=g;var m=l[h];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n<this._count))return NaN;var r=this._chunks[t];return r?r[this.getRawIndex(n)]:NaN},e.prototype.getValues=function(t,n){var r=[],a=[];if(n==null){n=t,t=[];for(var o=0;o<this._dimensions.length;o++)a.push(o)}else a=t;for(var o=0,i=a.length;o<i;o++)r.push(this.get(a[o],n));return r},e.prototype.getByRawIndex=function(t,n){if(!(n>=0&&n<this._rawCount))return NaN;var r=this._chunks[t];return r?r[n]:NaN},e.prototype.getSum=function(t){var n=this._chunks[t],r=0;if(n)for(var a=0,o=this.count();a<o;a++){var i=this.get(t,a);isNaN(i)||(r+=i)}return r},e.prototype.getMedian=function(t){var n=[];this.each([t],function(o){isNaN(o)||n.push(o)});var r=n.sort(function(o,i){return o-i}),a=this.count();return a===0?0:a%2===1?r[(a-1)/2]:(r[a/2]+r[a/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&r<this._count&&r===t)return t;for(var a=0,o=this._count-1;a<=o;){var i=(a+o)/2|0;if(n[i]<t)a=i+1;else if(n[i]>t)o=i-1;else return i}return-1},e.prototype.getIndices=function(){var t,n=this._indices;if(n){var r=n.constructor,a=this._count;if(r===Array){t=new r(a);for(var o=0;o<a;o++)t[o]=n[o]}else t=new r(n.buffer,0,a)}else{var r=qd(this._rawCount);t=new r(this.count());for(var o=0;o<t.length;o++)t[o]=o}return t},e.prototype.filter=function(t,n){if(!this._count)return this;for(var r=this.clone(),a=r.count(),o=qd(r._rawCount),i=new o(a),s=[],l=t.length,u=0,c=t[0],f=r._chunks,d=0;d<a;d++){var v=void 0,h=r.getRawIndex(d);if(l===0)v=n(d);else if(l===1){var p=f[c][h];v=n(p,d)}else{for(var g=0;g<l;g++)s[g]=f[t[g]][h];s[g]=d,v=n.apply(null,s)}v&&(i[u++]=h)}return u<a&&(r._indices=i),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.selectRange=function(t){var n=this.clone(),r=n._count;if(!r)return this;var a=dn(t),o=a.length;if(!o)return this;var i=n.count(),s=qd(n._rawCount),l=new s(i),u=0,c=a[0],f=t[c][0],d=t[c][1],v=n._chunks,h=!1;if(!n._indices){var p=0;if(o===1){for(var g=v[a[0]],m=0;m<r;m++){var y=g[m];(y>=f&&y<=d||isNaN(y))&&(l[u++]=p),p++}h=!0}else if(o===2){for(var g=v[a[0]],b=v[a[1]],w=t[a[1]][0],S=t[a[1]][1],m=0;m<r;m++){var y=g[m],x=b[m];(y>=f&&y<=d||isNaN(y))&&(x>=w&&x<=S||isNaN(x))&&(l[u++]=p),p++}h=!0}}if(!h)if(o===1)for(var m=0;m<i;m++){var C=n.getRawIndex(m),y=v[a[0]][C];(y>=f&&y<=d||isNaN(y))&&(l[u++]=C)}else for(var m=0;m<i;m++){for(var T=!0,C=n.getRawIndex(m),M=0;M<o;M++){var k=a[M],y=v[k][C];(y<t[k][0]||y>t[k][1])&&(T=!1)}T&&(l[u++]=n.getRawIndex(m))}return u<i&&(n._indices=l),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.map=function(t,n){var r=this.clone(t);return this._updateDims(r,t,n),r},e.prototype.modify=function(t,n){this._updateDims(this,t,n)},e.prototype._updateDims=function(t,n,r){for(var a=t._chunks,o=[],i=n.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<n.length;c++)u[n[c]]=Xd();for(var f=0;f<s;f++){for(var d=t.getRawIndex(f),v=0;v<i;v++)l[v]=a[n[v]][d];l[i]=f;var h=r&&r.apply(null,l);if(h!=null){typeof h!="object"&&(o[0]=h,h=o);for(var c=0;c<h.length;c++){var p=n[c],g=h[c],m=u[p],y=a[p];y&&(y[d]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(t,n){var r=this.clone([t],!0),a=r._chunks,o=a[t],i=this.count(),s=0,l=Math.floor(1/n),u=this.getRawIndex(0),c,f,d,v=new(qd(this._rawCount))(Math.min((Math.ceil(i/l)+2)*2,i));v[s++]=u;for(var h=1;h<i-1;h+=l){for(var p=Math.min(h+l,i-1),g=Math.min(h+l*2,i),m=(g+p)/2,y=0,b=p;b<g;b++){var w=this.getRawIndex(b),S=o[w];isNaN(S)||(y+=S)}y/=g-p;var x=h,C=Math.min(h+l,i),T=h-1,M=o[u];c=-1,d=x;for(var k=-1,E=0,b=x;b<C;b++){var w=this.getRawIndex(b),S=o[w];if(isNaN(S)){E++,k<0&&(k=w);continue}f=Math.abs((T-m)*(S-M)-(T-b)*(y-M)),f>c&&(c=f,d=w)}E>0&&E<C-x&&(v[s++]=Math.min(k,d),d=Math.max(k,d)),v[s++]=d,u=d}return v[s++]=this.getRawIndex(i-1),r._count=s,r._indices=v,r.getRawIndex=this._getRawIdx,r},e.prototype.minmaxDownSample=function(t,n){for(var r=this.clone([t],!0),a=r._chunks,o=Math.floor(1/n),i=a[t],s=this.count(),l=new(qd(this._rawCount))(Math.ceil(s/o)*2),u=0,c=0;c<s;c+=o){var f=c,d=i[this.getRawIndex(f)],v=c,h=i[this.getRawIndex(v)],p=o;c+o>s&&(p=s-c);for(var g=0;g<p;g++){var m=this.getRawIndex(c+g),y=i[m];y<d&&(d=y,f=c+g),y>h&&(h=y,v=c+g)}var b=this.getRawIndex(f),w=this.getRawIndex(v);f<v?(l[u++]=b,l[u++]=w):(l[u++]=w,l[u++]=b)}return r._count=u,r._indices=l,r._updateGetRawIdx(),r},e.prototype.downSample=function(t,n,r,a){for(var o=this.clone([t],!0),i=o._chunks,s=[],l=Math.floor(1/n),u=i[t],c=this.count(),f=o._rawExtent[t]=Xd(),d=new(qd(this._rawCount))(Math.ceil(c/l)),v=0,h=0;h<c;h+=l){l>c-h&&(l=c-h,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(h+p);s[p]=u[g]}var m=r(s),y=this.getRawIndex(Math.min(h+a(s,m)||0,c-1));u[y]=m,m<f[0]&&(f[0]=m),m>f[1]&&(f[1]=m),d[v++]=y}return o._count=v,o._indices=d,o._updateGetRawIdx(),o},e.prototype.each=function(t,n){if(this._count)for(var r=t.length,a=this._chunks,o=0,i=this.count();o<i;o++){var s=this.getRawIndex(o);switch(r){case 0:n(o);break;case 1:n(a[t[0]][s],o);break;case 2:n(a[t[0]][s],a[t[1]][s],o);break;default:for(var l=0,u=[];l<r;l++)u[l]=a[t[l]][s];u[l]=o,n.apply(null,u)}}},e.prototype.getDataExtent=function(t){var n=this._chunks[t],r=Xd();if(!n)return r;var a=this.count(),o=!this._indices,i;if(o)return this._rawExtent[t].slice();if(i=this._extent[t],i)return i.slice();i=r;for(var s=i[0],l=i[1],u=0;u<a;u++){var c=this.getRawIndex(u),f=n[c];f<s&&(s=f),f>l&&(l=f)}return i=[s,l],this._extent[t]=i,i},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],a=this._chunks,o=0;o<a.length;o++)r.push(a[o][n]);return r},e.prototype.clone=function(t,n){var r=new e,a=this._chunks,o=t&&Fs(t,function(s,l){return s[l]=!0,s},{});if(o)for(var i=0;i<a.length;i++)r._chunks[i]=o[i]?Bde(a[i]):a[i];else r._chunks=a;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Mt(this._extent),t._rawExtent=Mt(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,n=void 0;if(t===Array){var r=this._indices.length;n=new t(r);for(var a=0;a<r;a++)n[a]=this._indices[a]}else n=new t(this._indices);return n}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(n,r,a,o){return Zu(n[o],this._dimensions[o])}t6={arrayRows:t,objectRows:function(n,r,a,o){return Zu(n[r],this._dimensions[o])},keyedColumns:t,original:function(n,r,a,o){var i=n&&(n.value==null?n:n.value);return Zu(i instanceof Array?i[o]:i,this._dimensions[o])},typedArray:function(n,r,a,o){return n[o]}}}(),e}(),KG=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,n){this._sourceList=t,this._upstreamSignList=n,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 t=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,a,o;if(oy(t)){var i=t,s=void 0,l=void 0,u=void 0;if(r){var c=n[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,o=[c._getVersionSign()]}else s=i.get("data",!0),l=vo(s)?Xu:Do,o=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},v=yt(f.seriesLayoutBy,d.seriesLayoutBy)||null,h=yt(f.sourceHeader,d.sourceHeader),p=yt(f.dimensions,d.dimensions),g=v!==d.seriesLayoutBy||!!h!=!!d.sourceHeader||p;a=g?[Ix(s,{seriesLayoutBy:v,sourceHeader:h,dimensions:p},l)]:[]}else{var m=t;if(r){var y=this._applyTransform(n);a=y.sourceList,o=y.upstreamSignList}else{var b=m.get("source",!0);a=[Ix(b,this._getSourceMetaRawOption(),null)],o=[]}}this._setLocalSource(a,o)},e.prototype._applyTransform=function(t){var n=this._sourceHost,r=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(a!=null){var o="";t.length!==1&&qL(o)}var i,s=[],l=[];return j(t,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&qL(f),s.push(c),l.push(u._getVersionSign())}),r?i=Pde(r,s,{datasetIndex:n.componentIndex}):a!=null&&(i=[hde(s[0])]),{sourceList:i,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n<t.length;n++){var r=t[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var n=this._sourceList[t];if(!n){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(t)}return n},e.prototype.getSharedDataStore=function(t){var n=t.makeStoreSchema();return this._innerGetDataStore(n.dimensions,t.source,n.hash)},e.prototype._innerGetDataStore=function(t,n,r){var a=0,o=this._storeList,i=o[a];i||(i=o[a]={});var s=i[r];if(!s){var l=this._getUpstreamSourceManagers()[0];oy(this._sourceHost)&&l?s=l._innerGetDataStore(t,n,r):(s=new Lx,s.initData(new NG(n,t.length),t)),i[r]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(oy(t)){var n=wk(t);return n?[n.getSourceManager()]:[]}else return $e(Ffe(t),function(r){return r.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,n,r,a;if(oy(t))n=t.get("seriesLayoutBy",!0),r=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=t;n=o.get("seriesLayoutBy",!0),r=o.get("sourceHeader",!0),a=o.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:r,dimensions:a}},e}();function YL(e){var t=e.option.transform;t&&xb(e.option.transform)}function oy(e){return e.mainType==="series"}function qL(e){throw new Error(e)}var Vde="line-height:1";function jG(e){var t=e.lineHeight;return t==null?Vde:"line-height:"+wa(t+"")+"px"}function YG(e,t){var n=e.color||Se.color.tertiary,r=e.fontSize||12,a=e.fontWeight||"400",o=e.color||Se.color.secondary,i=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+wa(r+"")+"px;color:"+wa(n)+";font-weight:"+wa(a+""),valueStyle:"font-size:"+wa(i+"")+"px;color:"+wa(o)+";font-weight:"+wa(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:a},valueStyle:{fontSize:i,fill:o,fontWeight:s}}}var $de=[0,10,20,30],zde=["",`
|
||
`,`
|
||
|
||
`,`
|
||
|
||
|
||
`];function Mr(e,t){return t.type=e,t}function Dx(e){return e.type==="section"}function qG(e){return Dx(e)?Fde:Hde}function XG(e){if(Dx(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return j(e.blocks,function(a){var o=XG(a);o>=t&&(t=o+ +(r&&(!o||Dx(a)&&!a.noHeader)))}),t}return 0}function Fde(e,t,n,r){var a=t.noHeader,o=Wde(XG(t)),i=[],s=t.blocks||[];Ia(!s||Ve(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ft(u,l)){var c=new HG(u[l],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}j(s,function(p,g){var m=t.valueFormatter,y=qG(p)(m?Pe(Pe({},e),{valueFormatter:m}):e,p,g>0?o.html:0,r);y!=null&&i.push(y)});var f=e.renderMode==="richText"?i.join(o.richText):Px(r,i.join(""),a?n:o.html);if(a)return f;var d=kx(t.header,"ordinal",e.useUTC),v=YG(r,e.renderMode).nameStyle,h=jG(r);return e.renderMode==="richText"?ZG(e,d,v)+o.richText+f:Px(r,'<div style="'+v+";"+h+';">'+wa(d)+"</div>"+f,n)}function Hde(e,t,n,r){var a=e.renderMode,o=t.noName,i=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(w){return w=Ve(w)?w:[w],$e(w,function(S,x){return kx(S,Ve(v)?v[x]:v,u)})};if(!(o&&i)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Se.color.secondary,a),d=o?"":kx(l,"ordinal",u),v=t.valueType,h=i?[]:c(t.value,t.dataIndex),p=!s||!o,g=!s&&o,m=YG(r,a),y=m.nameStyle,b=m.valueStyle;return a==="richText"?(s?"":f)+(o?"":ZG(e,d,y))+(i?"":Kde(e,h,p,g,b)):Px(r,(s?"":f)+(o?"":Gde(d,!s,y))+(i?"":Ude(h,p,g,b)),n)}}function XL(e,t,n,r,a,o){if(e){var i=qG(e),s={useUTC:a,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return i(s,e,0,o)}}function Wde(e){return{html:$de[e],richText:zde[e]}}function Px(e,t,n){var r='<div style="clear:both"></div>',a="margin: "+n+"px 0 0",o=jG(e);return'<div style="'+a+";"+o+';">'+t+r+"</div>"}function Gde(e,t,n){var r=t?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+wa(e)+"</span>"}function Ude(e,t,n,r){var a=n?"10px":"20px",o=t?"float:right;margin-left:"+a:"";return e=Ve(e)?e:[e],'<span style="'+o+";"+r+'">'+$e(e,function(i){return wa(i)}).join(" ")+"</span>"}function ZG(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Kde(e,t,n,r,a){var o=[a],i=r?10:20;return n&&o.push({padding:[0,0,0,i],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Ve(t)?t.join(" "):t,o)}function JG(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return sd(r)}function QG(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var n6=function(){function e(){this.richTextStyles={},this._nextStyleNameId=WH()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,n,r){var a=r==="richText"?this._generateStyleName():null,o=Ife({color:n,type:t,renderMode:r,markerId:a});return st(o)?o:(this.richTextStyles[a]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};Ve(n)?j(n,function(o){return Pe(r,o)}):Pe(r,n);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+t+"}"},e}();function eU(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,a=t.getData(),o=a.mapDimensionsAll("defaultedTooltip"),i=o.length,s=t.getRawValue(n),l=Ve(s),u=JG(t,n),c,f,d,v;if(i>1||l&&!i){var h=jde(s,t,n,o,u);c=h.inlineValues,f=h.inlineValueTypes,d=h.blocks,v=h.inlineValues[0]}else if(i){var p=a.getDimensionInfo(o[0]);v=c=gh(a,n,o[0]),f=p.type}else v=c=l?s[0]:s;var g=U5(t),m=g&&t.name||"",y=a.getName(n),b=r?m:y;return Mr("section",{header:m,noHeader:r||!g,sortParam:v,blocks:[Mr("nameValue",{markerType:"item",markerColor:u,name:b,noName:!Xo(b),value:c,valueType:f,dataIndex:n})].concat(d||[])})}function jde(e,t,n,r,a){var o=t.getData(),i=Fs(e,function(f,d,v){var h=o.getDimensionInfo(v);return f=f||h&&h.tooltip!==!1&&h.displayName!=null},!1),s=[],l=[],u=[];r.length?j(r,function(f){c(gh(o,n,f),f)}):j(e,c);function c(f,d){var v=o.getDimensionInfo(d);!v||v.otherDims.tooltip===!1||(i?u.push(Mr("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var cu=an();function iy(e,t){return e.getName(t)||e.getId(t)}var B2="__universalTransitionEnabled",Xw=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return t.prototype.init=function(n,r,a){this.seriesIndex=this.componentIndex,this.dataTask=U0({count:qde,reset:Xde}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,a);var o=cu(this).sourceManager=new KG(this);o.prepareSource();var i=this.getInitialData(n,a);JL(i,this),this.dataTask.context.data=i,cu(this).dataBeforeProcessed=i,ZL(this),this._initSelectedMapFromData(i)},t.prototype.mergeDefaultAndTheme=function(n,r){var a=Tg(this),o=a?Td(n):{},i=this.subType;mn.hasClass(i)&&(i+="Series"),Zt(n,r.getTheme().get(this.subType)),Zt(n,this.getDefaultOption()),td(n,"label",["show"]),this.fillDataTextStyle(n.data),a&&Us(n,o,a)},t.prototype.mergeOption=function(n,r){n=Zt(this.option,n,!0),this.fillDataTextStyle(n.data);var a=Tg(this);a&&Us(this.option,n,a);var o=cu(this).sourceManager;o.dirty(),o.prepareSource();var i=this.getInitialData(n,r);JL(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,cu(this).dataBeforeProcessed=i,ZL(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(n){if(n&&!vo(n))for(var r=["show"],a=0;a<n.length;a++)n[a]&&n[a].label&&td(n[a],"label",r)},t.prototype.getInitialData=function(n,r){},t.prototype.appendData=function(n){var r=this.getRawData();r.appendData(n.data)},t.prototype.getData=function(n){var r=Rx(this);if(r){var a=r.context.data;return n==null||!a.getLinkedData?a:a.getLinkedData(n)}else return cu(this).data},t.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},t.prototype.setData=function(n){var r=Rx(this);if(r){var a=r.context;a.outputData=n,r!==this.dataTask&&(a.data=n)}cu(this).data=n},t.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return pt(n)},t.prototype.getSourceManager=function(){return cu(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return cu(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},t.prototype.indicesOfNearest=function(n,r,a,o){var i=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(n);if(!s||!l)return[];var u=l.dataToCoord(a);o==null&&(o=1/0);var c=[],f=1/0,d=-1,v=0;return i.each(r,function(h,p){var g=l.dataToCoord(h),m=u-g,y=Math.abs(m);y<=o&&((y<f||y===f&&m>=0&&d<0)&&(f=y,d=m,v=0),m===d&&(c[v++]=p))}),c.length=v,c},t.prototype.formatTooltip=function(n,r,a){return eU({series:this,dataIndex:n,multipleSeries:r})},t.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(kn.node&&!(n&&n.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,a){var o=this.ecModel,i=Sk.prototype.getColorFromPalette.call(this,n,r,a);return i||(i=o.getColorFromPalette(n,r,a)),i},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},t.prototype.unselect=function(n,r){var a=this.option.selectedMap;if(a){var o=this.option.selectedMode,i=this.getData(r);if(o==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<n.length;s++){var l=n[s],u=iy(i,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(n,r){for(var a=[],o=0;o<n.length;o++)a[0]=n[o],this.isSelected(n[o],r)?this.unselect(a,r):this.select(a,r)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,r=dn(n),a=[],o=0;o<r.length;o++){var i=n[r[o]];i>=0&&a.push(i)}return a},t.prototype.isSelected=function(n,r){var a=this.option.selectedMap;if(!a)return!1;var o=this.getData(r);return(a==="all"||a[iy(o,n)])&&!o.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[B2])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},t.prototype._innerSelect=function(n,r){var a,o,i=this.option,s=i.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")i.selectedMap="all";else if(s==="multiple"){Rt(i.selectedMap)||(i.selectedMap={});for(var u=i.selectedMap,c=0;c<l;c++){var f=r[c],d=iy(n,f);u[d]=!0,this._selectedDataIndicesMap[d]=n.getRawIndex(f)}}else if(s==="single"||s===!0){var v=r[l-1],d=iy(n,v);i.selectedMap=(a={},a[d]=!0,a),this._selectedDataIndicesMap=(o={},o[d]=n.getRawIndex(v),o)}}},t.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var r=[];n.hasItemOption&&n.each(function(a){var o=n.getRawDataItem(a);o&&o.selected&&r.push(a)}),r.length>0&&this._innerSelect(n,r)}},t.registerClass=function(n){return mn.registerClass(n)},t.protoInitialize=function(){var n=t.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),t}(mn);Er(Xw,Yw);Er(Xw,Sk);QH(Xw,mn);function ZL(e){var t=e.name;U5(e)||(e.name=Yde(e)||t)}function Yde(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return j(n,function(a){var o=t.getDimensionInfo(a);o.displayName&&r.push(o.displayName)}),r.join(" ")}function qde(e){return e.model.getRawData().count()}function Xde(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Zde}function Zde(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function JL(e,t){j(hg(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Yt(Jde,t))})}function Jde(e,t){var n=Rx(e);return n&&n.setOutputEnd((t||this).count()),t}function Rx(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(e.uid))}return r}}const er=Xw;var Mk=function(){function e(){this.group=new At,this.uid=tp("viewComponent")}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,a){},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,a){},e.prototype.updateLayout=function(t,n,r,a){},e.prototype.updateVisual=function(t,n,r,a){},e.prototype.toggleBlurSeries=function(t,n,r){},e.prototype.eachRendered=function(t){var n=this.group;n&&n.traverse(t)},e}();j5(Mk);Lw(Mk);const or=Mk;function rp(){var e=an();return function(t){var n=e(t),r=t.pipelineContext,a=!!n.large,o=!!n.progressiveRender,i=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(a!==i||o!==s)&&"reset"}}var tU=an(),Qde=rp(),Ak=function(){function e(){this.group=new At,this.uid=tp("viewChart"),this.renderTask=U0({plan:eve,reset:tve}),this.renderTask.context={view:this}}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,a){},e.prototype.highlight=function(t,n,r,a){var o=t.getData(a&&a.dataType);o&&eD(o,a,"emphasis")},e.prototype.downplay=function(t,n,r,a){var o=t.getData(a&&a.dataType);o&&eD(o,a,"normal")},e.prototype.remove=function(t,n){this.group.removeAll()},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,a){this.render(t,n,r,a)},e.prototype.updateLayout=function(t,n,r,a){this.render(t,n,r,a)},e.prototype.updateVisual=function(t,n,r,a){this.render(t,n,r,a)},e.prototype.eachRendered=function(t){_c(this.group,t)},e.markUpdateMethod=function(t,n){tU(t).updateMethod=n},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function QL(e,t,n){e&&Sg(e)&&(t==="emphasis"?zl:Fl)(e,n)}function eD(e,t,n){var r=nd(e,t),a=t&&t.highlightKey!=null?gce(t.highlightKey):null;r!=null?j(Bn(r),function(o){QL(e.getItemGraphicEl(o),n,a)}):e.eachItemGraphicEl(function(o){QL(o,n,a)})}j5(Ak);Lw(Ak);function eve(e){return Qde(e.model)}function tve(e){var t=e.model,n=e.ecModel,r=e.api,a=e.payload,o=t.pipelineContext.progressiveRender,i=e.view,s=a&&tU(a).updateMethod,l=o?"incrementalPrepareRender":s&&i[s]?s:"render";return l!=="render"&&i[l](t,n,r,a),nve[l]}var nve={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)}}};const Fn=Ak;var Hb="\0__throttleOriginMethod",tD="\0__throttleRate",nD="\0__throttleType";function Ek(e,t,n){var r,a=0,o=0,i=null,s,l,u,c;t=t||0;function f(){o=new Date().getTime(),i=null,e.apply(l,u||[])}var d=function(){for(var v=[],h=0;h<arguments.length;h++)v[h]=arguments[h];r=new Date().getTime(),l=this,u=v;var p=c||t,g=c||n;c=null,s=r-(g?a:o)-p,clearTimeout(i),g?i=setTimeout(f,p):s>=0?f():i=setTimeout(f,-s),a=r};return d.clear=function(){i&&(clearTimeout(i),i=null)},d.debounceNextCall=function(v){c=v},d}function ap(e,t,n,r){var a=e[t];if(a){var o=a[Hb]||a,i=a[nD],s=a[tD];if(s!==n||i!==r){if(n==null||!r)return e[t]=o;a=e[t]=Ek(o,n,r==="debounce"),a[Hb]=o,a[nD]=r,a[tD]=n}return a}}function Mg(e,t){var n=e[t];n&&n[Hb]&&(n.clear&&n.clear(),e[t]=n[Hb])}var rD=an(),aD={itemStyle:rd(QW,!0),lineStyle:rd(JW,!0)},rve={lineStyle:"stroke",itemStyle:"fill"};function nU(e,t){var n=e.visualStyleMapper||aD[t];return n||(console.warn("Unknown style type '"+t+"'."),aD.itemStyle)}function rU(e,t){var n=e.visualDrawType||rve[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var ave={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",a=e.getModel(r),o=nU(e,r),i=o(a),s=a.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=rU(e,r),u=i[l],c=kt(u)?u:null,f=i.fill==="auto"||i.stroke==="auto";if(!i[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());i[l]||(i[l]=d,n.setVisual("colorFromPalette",!0)),i.fill=i.fill==="auto"||kt(i.fill)?d:i.fill,i.stroke=i.stroke==="auto"||kt(i.stroke)?d:i.stroke}if(n.setVisual("style",i),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(v,h){var p=e.getDataParams(h),g=Pe({},i);g[l]=c(p),v.setItemVisual(h,"style",g)}}}},Rp=new Tn,ove={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",a=nU(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(i,s){var l=i.getRawDataItem(s);if(l&&l[r]){Rp.option=l[r];var u=a(Rp),c=i.ensureUniqueItemVisual(s,"style");Pe(c,u),Rp.option.decal&&(i.setItemVisual(s,"decal",Rp.option.decal),Rp.option.decal.dirty=!0),o in u&&i.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},ive={performRawSeries:!0,overallReset:function(e){var t=pt();e.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var a=n.type+"-"+r,o=t.get(a);o||(o={},t.set(a,o)),rD(n).scope=o}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),a={},o=n.getData(),i=rD(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=rU(n,s);o.each(function(u){var c=o.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],f=o.getItemVisual(c,"colorFromPalette");if(f){var d=o.ensureUniqueItemVisual(c,"style"),v=r.getName(u)||u+"",h=r.count();d[l]=n.getColorFromPalette(v,i,h)}})}})}},sy=Math.PI;function sve(e,t){t=t||{},Pt(t,{text:"loading",textColor:Se.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Se.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new At,r=new rn({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var a=new _n({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new rn({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(o);var i;return t.showSpinner&&(i=new ak({shape:{startAngle:-sy/2,endAngle:-sy/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:sy*3/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:sy*3/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&i.setShape({cx:u,cy:c}),o.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var lve=function(){function e(t,n,r,a){this._stageTaskMap=pt(),this.ecInstance=t,this.api=n,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return e.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},e.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),a=r.context,o=!n&&r.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>r.blockIndex,i=o?r.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/i):null;return{step:i,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,n){var r=this._pipelineMap.get(t.uid),a=t.getData(),o=a.count(),i=r.progressiveEnabled&&n.incrementalPrepareRender&&o>=r.threshold,s=t.get("large")&&o>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?o:null;t.pipelineContext=r.context={progressiveRender:i,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var n=this,r=n._pipelineMap=pt();t.eachSeries(function(a){var o=a.getProgressive(),i=a.uid;r.set(i,{id:i,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),r=this.api;j(this._allHandlers,function(a){var o=t.get(a.uid)||t.set(a.uid,{}),i="";Ia(!(a.reset&&a.overallReset),i),a.reset&&this._createSeriesStageTask(a,o,n,r),a.overallReset&&this._createOverallStageTask(a,o,n,r)},this)},e.prototype.prepareView=function(t,n,r,a){var o=t.renderTask,i=o.context;i.model=n,i.ecModel=r,i.api=a,o.__block=!t.incrementalPrepareRender,this._pipe(n,o)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,r){this._performStageTasks(this._visualHandlers,t,n,r)},e.prototype._performStageTasks=function(t,n,r,a){a=a||{};var o=!1,i=this;j(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=i._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var v,h=d.agentStubMap;h.each(function(g){s(a,g)&&(g.dirty(),v=!0)}),v&&d.dirty(),i.updatePayload(d,r);var p=i.getPerformArgs(d,a.block);h.each(function(g){g.perform(p)}),d.perform(p)&&(o=!0)}else f&&f.each(function(g,m){s(a,g)&&g.dirty();var y=i.getPerformArgs(g,a.block);y.skip=!l.performRawSeries&&n.isSeriesFiltered(g.context.model),i.updatePayload(g,r),g.perform(y)&&(o=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=o||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,r,a){var o=this,i=n.seriesTaskMap,s=n.seriesTaskMap=pt(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,a).each(c);function c(f){var d=f.uid,v=s.set(d,i&&i.get(d)||U0({plan:vve,reset:hve,count:gve}));v.context={model:f,ecModel:r,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(f,v)}},e.prototype._createOverallStageTask=function(t,n,r,a){var o=this,i=n.overallTask=n.overallTask||U0({reset:uve});i.context={ecModel:r,api:a,overallReset:t.overallReset,scheduler:o};var s=i.agentStubMap,l=i.agentStubMap=pt(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,v="";Ia(!t.createOnAllSeries,v),u?r.eachRawSeriesByType(u,h):c?c(r,a).each(h):(f=!1,j(r.getSeries(),h));function h(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(d=!0,U0({reset:cve,onDirty:dve})));m.context={model:p,overallProgress:f},m.agent=i,m.__block=f,o._pipe(p,m)}d&&i.dirty()},e.prototype._pipe=function(t,n){var r=t.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=n),a.tail&&a.tail.pipe(n),a.tail=n,n.__idxInPipeline=a.count++,n.__pipeline=a},e.wrapStageHandler=function(t,n){return kt(t)&&(t={overallReset:t,seriesType:mve(t)}),t.uid=tp("stageHandler"),n&&(t.visualType=n),t},e}();function uve(e){e.overallReset(e.ecModel,e.api,e.payload)}function cve(e){return e.overallProgress&&fve}function fve(){this.agent.dirty(),this.getDownstream().dirty()}function dve(){this.agent&&this.agent.dirty()}function vve(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function hve(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Bn(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?$e(t,function(n,r){return aU(r)}):pve}var pve=aU(0);function aU(e){return function(t,n){var r=n.data,a=n.resetDefines[e];if(a&&a.dataEach)for(var o=t.start;o<t.end;o++)a.dataEach(r,o);else a&&a.progress&&a.progress(t,r)}}function gve(e){return e.data.count()}function mve(e){Wb=null;try{e(Ag,oU)}catch{}return Wb}var Ag={},oU={},Wb;iU(Ag,IG);iU(oU,LG);Ag.eachSeriesByType=Ag.eachRawSeriesByType=function(e){Wb=e};Ag.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Wb=e.subType)};function iU(e,t){for(var n in t.prototype)e[n]=br}const sU=lve;var Lt=Se.darkColor,yve=Lt.background,Op=function(){return{axisLine:{lineStyle:{color:Lt.axisLine}},splitLine:{lineStyle:{color:Lt.axisSplitLine}},splitArea:{areaStyle:{color:[Lt.backgroundTint,Lt.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Lt.axisMinorSplitLine}},axisLabel:{color:Lt.axisLabel},axisName:{}}},oD={label:{color:Lt.secondary},itemStyle:{borderColor:Lt.borderTint},dividerLineStyle:{color:Lt.border}},lU={darkMode:!0,color:Lt.theme,backgroundColor:yve,axisPointer:{lineStyle:{color:Lt.border},crossStyle:{color:Lt.borderShade},label:{color:Lt.tertiary}},legend:{textStyle:{color:Lt.secondary},pageTextStyle:{color:Lt.tertiary}},textStyle:{color:Lt.secondary},title:{textStyle:{color:Lt.primary},subtextStyle:{color:Lt.quaternary}},toolbox:{iconStyle:{borderColor:Lt.accent50}},tooltip:{backgroundColor:Lt.neutral20,defaultBorderColor:Lt.border,textStyle:{color:Lt.tertiary}},dataZoom:{borderColor:Lt.accent10,textStyle:{color:Lt.tertiary},brushStyle:{color:Lt.backgroundTint},handleStyle:{color:Lt.neutral00,borderColor:Lt.accent20},moveHandleStyle:{color:Lt.accent40},emphasis:{handleStyle:{borderColor:Lt.accent50}},dataBackground:{lineStyle:{color:Lt.accent30},areaStyle:{color:Lt.accent20}},selectedDataBackground:{lineStyle:{color:Lt.accent50},areaStyle:{color:Lt.accent30}}},visualMap:{textStyle:{color:Lt.secondary},handleStyle:{borderColor:Lt.neutral30}},timeline:{lineStyle:{color:Lt.accent10},label:{color:Lt.tertiary},controlStyle:{color:Lt.accent30,borderColor:Lt.accent30}},calendar:{itemStyle:{color:Lt.neutral00,borderColor:Lt.neutral20},dayLabel:{color:Lt.tertiary},monthLabel:{color:Lt.secondary},yearLabel:{color:Lt.secondary}},matrix:{x:oD,y:oD,backgroundColor:{borderColor:Lt.axisLine},body:{itemStyle:{borderColor:Lt.borderTint}}},timeAxis:Op(),logAxis:Op(),valueAxis:Op(),categoryAxis:Op(),line:{symbol:"circle"},graph:{color:Lt.theme},gauge:{title:{color:Lt.secondary},axisLine:{lineStyle:{color:[[1,Lt.neutral05]]}},axisLabel:{color:Lt.axisLabel},detail:{color:Lt.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:Lt.background}},radar:function(){var e=Op();return e.axisName={color:Lt.axisLabel},e.axisLine.lineStyle.color=Lt.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:Lt.neutral20,textStyle:{color:Lt.secondary}},emphasis:{itemStyle:{color:Lt.neutral30}}}},sunburst:{itemStyle:{borderColor:Lt.background}},map:{itemStyle:{borderColor:Lt.border,areaColor:Lt.neutral10},label:{color:Lt.tertiary},emphasis:{label:{color:Lt.primary},itemStyle:{areaColor:Lt.highlight}},select:{label:{color:Lt.primary},itemStyle:{areaColor:Lt.highlight}}},geo:{itemStyle:{borderColor:Lt.border,areaColor:Lt.neutral10},emphasis:{label:{color:Lt.primary},itemStyle:{areaColor:Lt.highlight}},select:{label:{color:Lt.primary},itemStyle:{color:Lt.highlight}}}};lU.categoryAxis.splitLine.show=!1;const bve=lU;var _ve=function(){function e(){}return e.prototype.normalizeQuery=function(t){var n={},r={},a={};if(st(t)){var o=bs(t);n.mainType=o.main||null,n.subType=o.sub||null}else{var i=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};j(t,function(l,u){for(var c=!1,f=0;f<i.length;f++){var d=i[f],v=u.lastIndexOf(d);if(v>0&&v===u.length-d.length){var h=u.slice(0,v);h!=="data"&&(n.mainType=h,n[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:a}},e.prototype.filter=function(t,n){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,o=r.packedEvent,i=r.model,s=r.view;if(!i||!s)return!0;var l=n.cptQuery,u=n.dataQuery;return c(l,i,"mainType")&&c(l,i,"subType")&&c(l,i,"index","componentIndex")&&c(l,i,"name")&&c(l,i,"id")&&c(u,o,"name")&&c(u,o,"dataIndex")&&c(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,n.otherQuery,a,o));function c(f,d,v,h){return f[v]==null||d[h||v]===f[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Ox=["symbol","symbolSize","symbolRotate","symbolOffset"],iD=Ox.concat(["symbolKeepAspect"]),wve={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={},a={},o=!1,i=0;i<Ox.length;i++){var s=Ox[i],l=e.get(s);kt(l)?(o=!0,a[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(Pe({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),t.isSeriesFiltered(e))return;var u=dn(a);function c(f,d){for(var v=e.getRawValue(d),h=e.getDataParams(d),p=0;p<u.length;p++){var g=u[p];f.setItemVisual(d,g,a[g](v,h))}}return{dataEach:o?c:null}}},Sve={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(a,o){for(var i=a.getItemModel(o),s=0;s<iD.length;s++){var l=iD[s],u=i.getShallow(l,!0);u!=null&&a.setItemVisual(o,l,u)}}return{dataEach:n.hasItemOption?r:null}}};function Ik(e,t,n){switch(n){case"color":var r=e.getItemVisual(t,"style");return r[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n)}}function Bm(e,t){switch(t){case"color":var n=e.getVisual("style");return n[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function uU(e,t,n,r){switch(n){case"color":var a=e.ensureUniqueItemVisual(t,"style");a[e.getVisual("drawType")]=r,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,r);break}}function cU(e,t){function n(r,a){var o=[];return r.eachComponent({mainType:"series",subType:e,query:a},function(i){o.push(i.seriesIndex)}),o}j([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(r){t(r[0],function(a,o,i){a=Pe({},a),i.dispatchAction(Pe(a,{type:r[1],seriesIndex:n(o,a)}))})})}function Zd(e,t,n,r,a){var o=e+t;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},function(i){for(var s=i.seriesIndex,l=i.option.selectedMap,u=a.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=i.getData(),d=nd(f,a.fromActionPayload);n.trigger(o,{type:o,seriesId:i.id,name:Ve(d)?f.getName(d[0]):f.getName(d),selected:st(l)?l:Pe({},l)})}})}function xve(e,t,n){e.on("selectchanged",function(r){var a=n.getModel();r.isFromClick?(Zd("map","selectchanged",t,a,r),Zd("pie","selectchanged",t,a,r)):r.fromAction==="select"?(Zd("map","selected",t,a,r),Zd("pie","selected",t,a,r)):r.fromAction==="unselect"&&(Zd("map","unselected",t,a,r),Zd("pie","unselected",t,a,r))})}function Tf(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var Cve=Math.round(Math.random()*9),Tve=typeof Object.defineProperty=="function",kve=function(){function e(){this._id="__ec_inner_"+Cve++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,n){var r=this._guard(t);return Tve?Object.defineProperty(r,this._id,{value:n,enumerable:!1,configurable:!0}):r[this._id]=n,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}();const Mve=kve;var Ave=ln.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,a=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+a,r+o),e.lineTo(n-a,r+o),e.closePath()}}),Eve=ln.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,a=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+a,r),e.lineTo(n,r+o),e.lineTo(n-a,r),e.closePath()}}),Ive=ln.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,a=t.width/5*3,o=Math.max(a,t.height),i=a/2,s=i*i/(o-i),l=r-o+i+s,u=Math.asin(s/i),c=Math.cos(u)*i,f=Math.sin(u),d=Math.cos(u),v=i*.6,h=i*.7;e.moveTo(n-c,l+s),e.arc(n,l,i,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(n+c-f*v,l+s+d*v,n,r-h,n,r),e.bezierCurveTo(n,r-h,n-c+f*v,l+s+d*v,n-c,l+s),e.closePath()}}),Lve=ln.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,a=t.x,o=t.y,i=r/3*2;e.moveTo(a,o),e.lineTo(a+i,o+n),e.lineTo(a,o+n/4*3),e.lineTo(a-i,o+n),e.lineTo(a,o),e.closePath()}}),Dve={line:Rr,rect:rn,roundRect:rn,square:rn,circle:bc,diamond:Eve,pin:Ive,arrow:Lve,triangle:Ave},Pve={line:function(e,t,n,r,a){a.x1=e,a.y1=t+r/2,a.x2=e+n,a.y2=t+r/2},rect:function(e,t,n,r,a){a.x=e,a.y=t,a.width=n,a.height=r},roundRect:function(e,t,n,r,a){a.x=e,a.y=t,a.width=n,a.height=r,a.r=Math.min(n,r)/4},square:function(e,t,n,r,a){var o=Math.min(n,r);a.x=e,a.y=t,a.width=o,a.height=o},circle:function(e,t,n,r,a){a.cx=e+n/2,a.cy=t+r/2,a.r=Math.min(n,r)/2},diamond:function(e,t,n,r,a){a.cx=e+n/2,a.cy=t+r/2,a.width=n,a.height=r},pin:function(e,t,n,r,a){a.x=e+n/2,a.y=t+r/2,a.width=n,a.height=r},arrow:function(e,t,n,r,a){a.x=e+n/2,a.y=t+r/2,a.width=n,a.height=r},triangle:function(e,t,n,r,a){a.cx=e+n/2,a.cy=t+r/2,a.width=n,a.height=r}},Gb={};j(Dve,function(e,t){Gb[t]=new e});var Rve=ln.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Db(e,t,n),a=this.shape;return a&&a.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 a=Gb[r];a||(r="rect",a=Gb[r]),Pve[r](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,n)}}});function Ove(e,t){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||Se.color.neutral00,n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=e:n.fill=e,this.markRedraw()}}function Ar(e,t,n,r,a,o,i){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=HW(e.slice(8),new Ot(t,n,r,a),i?"center":"cover"):e.indexOf("path://")===0?l=xg(e.slice(7),{},new Ot(t,n,r,a),i?"center":"cover"):l=new Rve({shape:{symbolType:e,x:t,y:n,width:r,height:a}}),l.__isEmptyBrush=s,l.setColor=Ove,o&&l.setColor(o),l}function op(e){return Ve(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Md(e,t){if(e!=null)return Ve(e)||(e=[e,e]),[at(e[0],t[0])||0,at(yt(e[1],e[0]),t[1])||0]}function kf(e){return isFinite(e)}function Nve(e,t,n){var r=t.x==null?0:t.x,a=t.x2==null?1:t.x2,o=t.y==null?0:t.y,i=t.y2==null?0:t.y2;t.global||(r=r*n.width+n.x,a=a*n.width+n.x,o=o*n.height+n.y,i=i*n.height+n.y),r=kf(r)?r:0,a=kf(a)?a:1,o=kf(o)?o:0,i=kf(i)?i:0;var s=e.createLinearGradient(r,o,a,i);return s}function Bve(e,t,n){var r=n.width,a=n.height,o=Math.min(r,a),i=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(i=i*r+n.x,s=s*a+n.y,l=l*o),i=kf(i)?i:.5,s=kf(s)?s:.5,l=l>=0&&kf(l)?l:.5;var u=e.createRadialGradient(i,s,0,i,s,l);return u}function Nx(e,t,n){for(var r=t.type==="radial"?Bve(e,t,n):Nve(e,t,n),a=t.colorStops,o=0;o<a.length;o++)r.addColorStop(a[o].offset,a[o].color);return r}function Vve(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 ly(e){return parseInt(e,10)}function Pv(e,t,n){var r=["width","height"][t],a=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],i=["paddingRight","paddingBottom"][t];if(n[r]!=null&&n[r]!=="auto")return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[a]||ly(s[r])||ly(e.style[r]))-(ly(s[o])||0)-(ly(s[i])||0)|0}function $ve(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:gn(e)?[e]:Ve(e)?e:null}function Lk(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&$ve(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(n=$e(n,function(o){return o/a}),r/=a)}return[n,r]}var zve=new Gs(!0);function Ub(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function sD(e){return typeof e=="string"&&e!=="none"}function Kb(e){var t=e.fill;return t!=null&&t!=="none"}function lD(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 uD(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 Bx(e,t,n){var r=Y5(t.image,t.__image,n);if(Dw(r)){var a=e.createPattern(r,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*S2),o.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(o)}return a}}function Fve(e,t,n,r){var a,o=Ub(n),i=Kb(n),s=n.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||zve,f=t.__dirty;if(!r){var d=n.fill,v=n.stroke,h=i&&!!d.colorStops,p=o&&!!v.colorStops,g=i&&!!d.image,m=o&&!!v.image,y=void 0,b=void 0,w=void 0,S=void 0,x=void 0;(h||p)&&(x=t.getBoundingRect()),h&&(y=f?Nx(e,d,x):t.__canvasFillGradient,t.__canvasFillGradient=y),p&&(b=f?Nx(e,v,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),g&&(w=f||!t.__canvasFillPattern?Bx(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=w),m&&(S=f||!t.__canvasStrokePattern?Bx(e,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:g&&(w?e.fillStyle=w:i=!1),p?e.strokeStyle=b:m&&(S?e.strokeStyle=S:o=!1)}var C=t.getGlobalScale();c.setScale(C[0],C[1],t.segmentIgnoreThreshold);var T,M;e.setLineDash&&n.lineDash&&(a=Lk(t),T=a[0],M=a[1]);var k=!0;(u||f&wv)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),k=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),k&&c.rebuildPath(e,l?s:1),T&&(e.setLineDash(T),e.lineDashOffset=M),r||(n.strokeFirst?(o&&uD(e,n),i&&lD(e,n)):(i&&lD(e,n),o&&uD(e,n))),T&&e.setLineDash([])}function Hve(e,t,n){var r=t.__image=Y5(n.image,t.__image,t,t.onload);if(!(!r||!Dw(r))){var a=n.x||0,o=n.y||0,i=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(i==null&&s!=null?i=s*l:s==null&&i!=null?s=i/l:i==null&&s==null&&(i=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,a,o,i,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,f=i-u,d=s-c;e.drawImage(r,u,c,f,d,a,o,i,s)}else e.drawImage(r,a,o,i,s)}}function Wve(e,t,n){var r,a=n.text;if(a!=null&&(a+=""),a){e.font=n.font||Bl,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,i=void 0;e.setLineDash&&n.lineDash&&(r=Lk(t),o=r[0],i=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=i),n.strokeFirst?(Ub(n)&&e.strokeText(a,n.x,n.y),Kb(n)&&e.fillText(a,n.x,n.y)):(Kb(n)&&e.fillText(a,n.x,n.y),Ub(n)&&e.strokeText(a,n.x,n.y)),o&&e.setLineDash([])}}var cD=["shadowBlur","shadowOffsetX","shadowOffsetY"],fD=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function fU(e,t,n,r,a){var o=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){ao(e,a),o=!0;var i=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(i)?zf.opacity:i}(r||t.blend!==n.blend)&&(o||(ao(e,a),o=!0),e.globalCompositeOperation=t.blend||zf.blend);for(var s=0;s<cD.length;s++){var l=cD[s];(r||t[l]!==n[l])&&(o||(ao(e,a),o=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(o||(ao(e,a),o=!0),e.shadowColor=t.shadowColor||zf.shadowColor),o}function dD(e,t,n,r,a){var o=Eg(t,a.inHover),i=r?null:n&&Eg(n,a.inHover)||{};if(o===i)return!1;var s=fU(e,o,i,r,a);if((r||o.fill!==i.fill)&&(s||(ao(e,a),s=!0),sD(o.fill)&&(e.fillStyle=o.fill)),(r||o.stroke!==i.stroke)&&(s||(ao(e,a),s=!0),sD(o.stroke)&&(e.strokeStyle=o.stroke)),(r||o.opacity!==i.opacity)&&(s||(ao(e,a),s=!0),e.globalAlpha=o.opacity==null?1:o.opacity),t.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(ao(e,a),s=!0),e.lineWidth=u)}for(var c=0;c<fD.length;c++){var f=fD[c],d=f[0];(r||o[d]!==i[d])&&(s||(ao(e,a),s=!0),e[d]=o[d]||f[1])}return s}function Gve(e,t,n,r,a){return fU(e,Eg(t,a.inHover),n&&Eg(n,a.inHover),r,a)}function dU(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 Uve(e,t,n){for(var r=!1,a=0;a<e.length;a++){var o=e[a];r=r||o.isZeroArea(),dU(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=r}function Kve(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 vD=1,hD=2,pD=3,gD=4;function jve(e){var t=Kb(e),n=Ub(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 ao(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Eg(e,t){return t&&e.__hoverStyle||e.style}function vU(e,t){Mf(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Mf(e,t,n,r){var a=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=~_o,t.__isRendered=!1;return}var o=t.__clipPaths,i=n.prevElClipPaths,s=!1,l=!1;if((!i||Vve(o,i))&&(i&&i.length&&(ao(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(ao(e,n),e.save(),Uve(o,e,n),s=!0),n.prevElClipPaths=o),n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=t instanceof ln&&t.autoBatch&&jve(t.style);s||Kve(a,u.transform)?(ao(e,n),dU(e,t)):c||ao(e,n);var f=Eg(t,n.inHover);t instanceof ln?(n.lastDrawType!==vD&&(l=!0,n.lastDrawType=vD),dD(e,t,u,l,n),(!c||!n.batchFill&&!n.batchStroke)&&e.beginPath(),Fve(e,t,f,c),c&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):t instanceof _g?(n.lastDrawType!==pD&&(l=!0,n.lastDrawType=pD),dD(e,t,u,l,n),Wve(e,t,f)):t instanceof da?(n.lastDrawType!==hD&&(l=!0,n.lastDrawType=hD),Gve(e,t,u,l,n),Hve(e,t,f)):t.getTemporalDisplayables&&(n.lastDrawType!==gD&&(l=!0,n.lastDrawType=gD),Yve(e,t,n)),c&&r&&ao(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Yve(e,t,n){var r=t.getDisplayables(),a=t.getTemporalDisplayables();e.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},i,s;for(i=t.getCursor(),s=r.length;i<s;i++){var l=r[i];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Mf(e,l,o,i===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}for(var u=0,c=a.length;u<c;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Mf(e,l,o,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var r6=new Mve,mD=new vh(100),yD=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function mh(e,t){if(e==="none")return null;var n=t.getDevicePixelRatio(),r=t.getZr(),a=r.painter.type==="svg";e.dirty&&r6.delete(e);var o=r6.get(e);if(o)return o;var i=Pt(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});i.backgroundColor==="none"&&(i.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=i.rotation,s.scaleX=s.scaleY=a?1:1/n,r6.set(e,s),e.dirty=!1,s;function l(u){for(var c=[n],f=!0,d=0;d<yD.length;++d){var v=i[yD[d]];if(v!=null&&!Ve(v)&&!st(v)&&!gn(v)&&typeof v!="boolean"){f=!1;break}c.push(v)}var h;if(f){h=c.join(",")+(a?"-svg":"");var p=mD.get(h);p&&(a?u.svgElement=p:u.image=p)}var g=pU(i.dashArrayX),m=qve(i.dashArrayY),y=hU(i.symbol),b=Xve(g),w=gU(m),S=!a&&Di.createCanvas(),x=a&&{tag:"g",attrs:{},key:"dcl",children:[]},C=M(),T;S&&(S.width=C.width*n,S.height=C.height*n,T=S.getContext("2d")),k(),f&&mD.put(h,S||x),u.image=S,u.svgElement=x,u.svgWidth=C.width,u.svgHeight=C.height;function M(){for(var E=1,A=0,I=b.length;A<I;++A)E=PI(E,b[A]);for(var O=1,A=0,I=y.length;A<I;++A)O=PI(O,y[A].length);E*=O;var z=w*b.length*y.length;return{width:Math.max(1,Math.min(E,i.maxTileWidth)),height:Math.max(1,Math.min(z,i.maxTileHeight))}}function k(){T&&(T.clearRect(0,0,S.width,S.height),i.backgroundColor&&(T.fillStyle=i.backgroundColor,T.fillRect(0,0,S.width,S.height)));for(var E=0,A=0;A<m.length;++A)E+=m[A];if(E<=0)return;for(var I=-w,O=0,z=0,$=0;I<C.height;){if(O%2===0){for(var P=z/2%y.length,L=0,V=0,B=0;L<C.width*2;){for(var F=0,A=0;A<g[$].length;++A)F+=g[$][A];if(F<=0)break;if(V%2===0){var U=(1-i.symbolSize)*.5,G=L+g[$][V]*U,Y=I+m[O]*U,X=g[$][V]*i.symbolSize,te=m[O]*i.symbolSize,oe=B/2%y[P].length;re(G,Y,X,te,y[P][oe])}L+=g[$][V],++B,++V,V===g[$].length&&(V=0)}++$,$===g.length&&($=0)}I+=m[O],++z,++O,O===m.length&&(O=0)}function re(ce,ie,Z,se,J){var ae=a?1:n,fe=Ar(J,ce*ae,ie*ae,Z*ae,se*ae,i.color,i.symbolKeepAspect);if(a){var ve=r.painter.renderOneToVNode(fe);ve&&x.children.push(ve)}else vU(T,fe)}}}}function hU(e){if(!e||e.length===0)return[["rect"]];if(st(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!st(e[n])){t=!1;break}if(t)return hU([e]);for(var r=[],n=0;n<e.length;++n)st(e[n])?r.push([e[n]]):r.push(e[n]);return r}function pU(e){if(!e||e.length===0)return[[0,0]];if(gn(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!gn(e[r])){n=!1;break}if(n)return pU([e]);for(var a=[],r=0;r<e.length;++r)if(gn(e[r])){var t=Math.ceil(e[r]);a.push([t,t])}else{var t=$e(e[r],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function qve(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(gn(e)){var t=Math.ceil(e);return[t,t]}var n=$e(e,function(r){return Math.ceil(r)});return e.length%2?n.concat(n):n}function Xve(e){return $e(e,function(t){return gU(t)})}function gU(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?t*2:t}function Zve(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(i){var s=r.getItemVisual(i,"decal");if(s){var l=r.ensureUniqueItemVisual(i,"style");l.decal=mh(s,t)}});var a=r.getVisual("decal");if(a){var o=r.getVisual("style");o.decal=mh(a,t)}}})}var Jve=new ci;const gi=Jve;var mU={};function Qve(e,t){mU[e]=t}function ehe(e){return mU[e]}var yU={};function the(e,t){yU[e]=t}function nhe(e){return yU[e]}var rhe=1,ahe=800,ohe=900,ihe=1e3,she=2e3,lhe=5e3,bU=1e3,uhe=1100,Dk=2e3,_U=3e3,che=4e3,Zw=4500,fhe=4600,dhe=5e3,vhe=6e3,wU=7e3,hhe={PROCESSOR:{FILTER:ihe,SERIES_FILTER:ahe,STATISTIC:lhe},VISUAL:{LAYOUT:bU,PROGRESSIVE_LAYOUT:uhe,GLOBAL:Dk,CHART:_U,POST_CHART_LAYOUT:fhe,COMPONENT:che,BRUSH:dhe,CHART_ITEM:Zw,ARIA:vhe,DECAL:wU}},Ir="__flagInMainProcess",uy="__mainProcessVersion",qr="__pendingUpdate",a6="__needsUpdateStatus",bD=/^[a-zA-Z0-9_]+$/,o6="__connectUpdateStatus",_D=0,phe=1,ghe=2;function SU(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){this.id;return}return CU(this,e,t)}}function xU(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return CU(this,e,t)}}function CU(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),ci.prototype[t].apply(e,n)}var TU=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ci),kU=TU.prototype;kU.on=xU("on");kU.off=xU("off");var qc,i6,cy,fl,fy,s6,l6,Jd,Qd,wD,SD,u6,xD,dy,CD,MU,Bo,TD,ev,AU=function(e){ye(t,e);function t(n,r,a){var o=e.call(this,new _ve)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],a=a||{},o._dom=n;var i="canvas",s="auto",l=!1;o[uy]=1,a.ssr&&Dle(function(d){var v=Vt(d),h=v.dataIndex;if(h!=null){var p=pt();return p.set("series_index",v.seriesIndex),p.set("data_index",h),v.ssrType&&p.set("ssr_type",v.ssrType),p}});var u=o._zr=EI(n,{renderer:a.renderer||i,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:yt(a.useDirtyRect,l),useCoarsePointer:yt(a.useCoarsePointer,s),pointerSize:a.pointerSize});o._ssr=a.ssr,o._throttledZrFlush=Ek(lt(u.flush,u),17),o._updateTheme(r),o._locale=mfe(a.locale||eG),o._coordSysMgr=new Om;var c=o._api=CD(o);function f(d,v){return d.__prio-v.__prio}return T2(Yb,f),T2(zx,f),o._scheduler=new sU(o,c,zx,Yb),o._messageCenter=new TU,o._initEvents(),o.resize=lt(o.resize,o),u.animation.on("frame",o._onframe,o),wD(u,o),SD(u,o),xb(o),o}return t.prototype._onframe=function(){if(!this._disposed){TD(this);var n=this._scheduler;if(this[qr]){var r=this[qr].silent;this[Ir]=!0,ev(this);try{qc(this),fl.update.call(this,null,this[qr].updateParams)}catch(l){throw this[Ir]=!1,this[qr]=null,l}this._zr.flush(),this[Ir]=!1,this[qr]=null,Jd.call(this,r),Qd.call(this,r)}else if(n.unfinished){var a=rhe,o=this._model,i=this._api;n.unfinished=!1;do{var s=+new Date;n.performSeriesTasks(o),n.performDataProcessorTasks(o),s6(this,o),n.performVisualTasks(o),dy(this,this._model,i,"remain",{}),a-=+new Date-s}while(a>0&&n.unfinished);n.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(n,r,a){if(!this[Ir]){if(this._disposed){this.id;return}var o,i,s;if(Rt(r)&&(a=r.lazyUpdate,o=r.silent,i=r.replaceMerge,s=r.transition,r=r.notMerge),this[Ir]=!0,ev(this),!this._model||r){var l=new ade(this._api),u=this._theme,c=this._model=new IG;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:i},Fx);var f={seriesTransition:s,optionChanged:!0};if(a)this[qr]={silent:o,updateParams:f},this[Ir]=!1,this.getZr().wakeUp();else{try{qc(this),fl.update.call(this,null,f)}catch(d){throw this[qr]=null,this[Ir]=!1,d}this._ssr||this._zr.flush(),this[qr]=null,this[Ir]=!1,Jd.call(this,o),Qd.call(this,o)}}},t.prototype.setTheme=function(n,r){if(!this[Ir]){if(this._disposed){this.id;return}var a=this._model;if(a){var o=r&&r.silent,i=null;this[qr]&&(o==null&&(o=this[qr].silent),i=this[qr].updateParams,this[qr]=null),this[Ir]=!0,ev(this);try{this._updateTheme(n),a.setTheme(this._theme),qc(this),fl.update.call(this,{type:"setTheme"},i)}catch(s){throw this[Ir]=!1,s}this[Ir]=!1,Jd.call(this,o),Qd.call(this,o)}}},t.prototype._updateTheme=function(n){st(n)&&(n=EU[n]),n&&(n=Mt(n),n&&PG(n,!0),this._theme=n)},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||kn.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){var n=this._zr,r=n.storage.getDisplayList();return j(r,function(a){a.stopAnimation(null,!0)}),n.painter.toDataURL()},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,a=this._model,o=[],i=this;j(r,function(l){a.eachComponent({mainType:l},function(u){var c=i._componentsMap[u.__viewId];c.group.ignore||(o.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return j(o,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",a=this.group,o=Math.min,i=Math.max,s=1/0;if(kD[a]){var l=s,u=s,c=-s,f=-s,d=[],v=n&&n.pixelRatio||this.getDevicePixelRatio();j(K0,function(b,w){if(b.group===a){var S=r?b.getZr().painter.getSvgDom().innerHTML:b.renderToCanvas(Mt(n)),x=b.getDom().getBoundingClientRect();l=o(x.left,l),u=o(x.top,u),c=i(x.right,c),f=i(x.bottom,f),d.push({dom:S,left:x.left,top:x.top})}}),l*=v,u*=v,c*=v,f*=v;var h=c-l,p=f-u,g=Di.createCanvas(),m=EI(g,{renderer:r?"svg":"canvas"});if(m.resize({width:h,height:p}),r){var y="";return j(d,function(b){var w=b.left-l,S=b.top-u;y+='<g transform="translate('+w+","+S+')">'+b.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,n.connectedBackgroundColor&&m.painter.setBackgroundColor(n.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return n.connectedBackgroundColor&&m.add(new rn({shape:{x:0,y:0,width:h,height:p},style:{fill:n.connectedBackgroundColor}})),j(d,function(b){var w=new da({style:{x:b.left*v-l,y:b.top*v-u,image:b.dom}});m.add(w)}),m.refreshImmediately(),g.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r,a){return fy(this,"convertToPixel",n,r,a)},t.prototype.convertToLayout=function(n,r,a){return fy(this,"convertToLayout",n,r,a)},t.prototype.convertFromPixel=function(n,r,a){return fy(this,"convertFromPixel",n,r,a)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var a=this._model,o,i=jv(a,n);return j(i,function(s,l){l.indexOf("Models")>=0&&j(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)o=o||!!c.containPoint(r);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(o=o||f.containPoint(r,u))}},this)},this),!!o},t.prototype.getVisual=function(n,r){var a=this._model,o=jv(a,n,{defaultMainType:"series"}),i=o.seriesModel,s=i.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return l!=null?Ik(s,l,r):Bm(s,r)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;j(mhe,function(a){var o=function(i){var s=n.getModel(),l=i.target,u,c=a==="globalout";if(c?u={}:l&&Tf(l,function(p){var g=Vt(p);if(g&&g.dataIndex!=null){var m=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=m&&m.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=Pe({},g.eventData),!0},!0),u){var f=u.componentType,d=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",d=u.seriesIndex);var v=f&&d!=null&&s.getComponent(f,d),h=v&&n[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];u.event=i,u.type=a,n._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:v,view:h},n.trigger(a,u)}};o.zrEventfulCallAtLast=!0,n._zr.on(a,o,n)});var r=this._messageCenter;j($x,function(a,o){r.on(o,function(i){n.trigger(o,i)})}),xve(r,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;var n=this.getDom();n&&XH(this.getDom(),Rk,"");var r=this,a=r._api,o=r._model;j(r._componentsViews,function(i){i.dispose(o,a)}),j(r._chartsViews,function(i){i.dispose(o,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete K0[r.id]},t.prototype.resize=function(n){if(!this[Ir]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),o=n&&n.silent;this[qr]&&(o==null&&(o=this[qr].silent),a=!0,this[qr]=null),this[Ir]=!0,ev(this);try{a&&qc(this),fl.update.call(this,{type:"resize",animation:Pe({duration:0},n&&n.animation)})}catch(i){throw this[Ir]=!1,i}this[Ir]=!1,Jd.call(this,o),Qd.call(this,o)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(Rt(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!Hx[n]){var a=Hx[n](this._api,r),o=this._zr;this._loadingFX=a,o.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(n){var r=Pe({},n);return r.type=Vx[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Rt(r)||(r={silent:!!r}),!!jb[n.type]&&this._model){if(this[Ir]){this._pendingActions.push(n);return}var a=r.silent;l6.call(this,n,a);var o=r.flush;o?this._zr.flush():o!==!1&&kn.browser.weChat&&this._throttledZrFlush(),Jd.call(this,a),Qd.call(this,a)}},t.prototype.updateLabelLayout=function(){gi.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,a=this.getModel(),o=a.getSeriesByIndex(r);o.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){qc=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),i6(f,!0),i6(f,!1),d.plan()},i6=function(f,d){for(var v=f._model,h=f._scheduler,p=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,b=0;b<p.length;b++)p[b].__alive=!1;d?v.eachComponent(function(x,C){x!=="series"&&w(C)}):v.eachSeries(w);function w(x){var C=x.__requireNewView;x.__requireNewView=!1;var T="_ec_"+x.id+"_"+x.type,M=!C&&g[T];if(!M){var k=bs(x.type),E=d?or.getClass(k.main,k.sub):Fn.getClass(k.sub);M=new E,M.init(v,y),g[T]=M,p.push(M),m.add(M.group)}x.__viewId=M.__id=T,M.__alive=!0,M.__model=x,M.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!d&&h.prepareView(M,x,v,y)}for(var b=0;b<p.length;){var S=p[b];S.__alive?b++:(!d&&S.renderTask.dispose(),m.remove(S.group),S.dispose(v,y),p.splice(b,1),g[S.__id]===S&&delete g[S.__id],S.__id=S.group.__ecComponentInfo=null)}},cy=function(f,d,v,h,p){var g=f._model;if(g.setUpdatePayload(v),!h){j([].concat(f._componentsViews).concat(f._chartsViews),S);return}var m={};m[h+"Id"]=v[h+"Id"],m[h+"Index"]=v[h+"Index"],m[h+"Name"]=v[h+"Name"];var y={mainType:h,query:m};p&&(y.subType=p);var b=v.excludeSeriesId,w;b!=null&&(w=pt(),j(Bn(b),function(x){var C=Pr(x,null);C!=null&&w.set(C,!0)})),g&&g.eachComponent(y,function(x){var C=w&&w.get(x.id)!=null;if(!C)if(uL(v))if(x instanceof er)v.type===Ff&&!v.notBlur&&!x.get(["emphasis","disabled"])&&lce(x,v,f._api);else{var T=tk(x.mainType,x.componentIndex,v.name,f._api),M=T.focusSelf,k=T.dispatchers;v.type===Ff&&M&&!v.notBlur&&px(x.mainType,x.componentIndex,f._api),k&&j(k,function(E){v.type===Ff?zl(E):Fl(E)})}else mx(v)&&x instanceof er&&(fce(x,v,f._api),sL(x),Bo(f))},f),g&&g.eachComponent(y,function(x){var C=w&&w.get(x.id)!=null;C||S(f[h==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},f);function S(x){x&&x.__alive&&x[d]&&x[d](x.__model,g,f._api,v)}},fl={prepareAndUpdate:function(f){qc(this),fl.update.call(this,f,f&&{optionChanged:f.newOption!=null})},update:function(f,d){var v=this._model,h=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(v){v.setUpdatePayload(f),m.restoreData(v,f),m.performSeriesTasks(v),g.create(v,h),m.performDataProcessorTasks(v,f),s6(this,v),g.update(v,h),r(v),m.performVisualTasks(v,f);var y=v.get("backgroundColor")||"transparent";p.setBackgroundColor(y);var b=v.get("darkMode");b!=null&&b!=="auto"&&p.setDarkMode(b),u6(this,v,h,f,d),gi.trigger("afterupdate",v,h)}},updateTransform:function(f){var d=this,v=this._model,h=this._api;if(v){v.setUpdatePayload(f);var p=[];v.eachComponent(function(m,y){if(m!=="series"){var b=d.getViewOfComponentModel(y);if(b&&b.__alive)if(b.updateTransform){var w=b.updateTransform(y,v,h,f);w&&w.update&&p.push(b)}else p.push(b)}});var g=pt();v.eachSeries(function(m){var y=d._chartsMap[m.__viewId];if(y.updateTransform){var b=y.updateTransform(m,v,h,f);b&&b.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),r(v),this._scheduler.performVisualTasks(v,f,{setDirty:!0,dirtyMap:g}),dy(this,v,h,f,{},g),gi.trigger("afterupdate",v,h)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),Fn.markUpdateMethod(f,"updateView"),r(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),u6(this,d,this._api,f,{}),gi.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,v=this._model;v&&(v.setUpdatePayload(f),v.eachSeries(function(h){h.getData().clearAllVisual()}),Fn.markUpdateMethod(f,"updateVisual"),r(v),this._scheduler.performVisualTasks(v,f,{visualType:"visual",setDirty:!0}),v.eachComponent(function(h,p){if(h!=="series"){var g=d.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,v,d._api,f)}}),v.eachSeries(function(h){var p=d._chartsMap[h.__viewId];p.updateVisual(h,v,d._api,f)}),gi.trigger("afterupdate",v,this._api))},updateLayout:function(f){fl.update.call(this,f)}};function n(f,d,v,h,p){if(f._disposed){f.id;return}for(var g=f._model,m=f._coordSysMgr.getCoordinateSystems(),y,b=jv(g,v),w=0;w<m.length;w++){var S=m[w];if(S[d]&&(y=S[d](g,b,h,p))!=null)return y}}fy=n,s6=function(f,d){var v=f._chartsMap,h=f._scheduler;d.eachSeries(function(p){h.updateStreamModes(p,v[p.__viewId])})},l6=function(f,d){var v=this,h=this.getModel(),p=f.type,g=f.escapeConnect,m=jb[p],y=(m.update||"update").split(":"),b=y.pop(),w=y[0]!=null&&bs(y[0]);this[Ir]=!0,ev(this);var S=[f],x=!1;f.batch&&(x=!0,S=$e(f.batch,function($){return $=Pt(Pe({},$),f),$.batch=null,$}));var C=[],T,M=[],k=m.nonRefinedEventType,E=mx(f),A=uL(f);if(A&&wW(this._api),j(S,function($){var P=m.action($,h,v._api);if(m.refineEvent?M.push(P):T=P,T=T||Pe({},$),T.type=k,C.push(T),A){var L=K5(f),V=L.queryOptionMap,B=L.mainTypeSpecified,F=B?V.keys()[0]:"series";cy(v,b,$,F),Bo(v)}else E?(cy(v,b,$,"series"),Bo(v)):w&&cy(v,b,$,w.main,w.sub)}),b!=="none"&&!A&&!E&&!w)try{this[qr]?(qc(this),fl.update.call(this,f),this[qr]=null):fl[b].call(this,f)}catch($){throw this[Ir]=!1,$}if(x?T={type:k,escapeConnect:g,batch:C}:T=C[0],this[Ir]=!1,!d){var I=void 0;if(m.refineEvent){var O=m.refineEvent(M,f,h,this._api).eventContent;Ia(Rt(O)),I=Pt({type:m.refinedEventType},O),I.fromAction=f.type,I.fromActionPayload=f,I.escapeConnect=!0}var z=this._messageCenter;z.trigger(T.type,T),I&&z.trigger(I.type,I)}},Jd=function(f){for(var d=this._pendingActions;d.length;){var v=d.shift();l6.call(this,v,f)}},Qd=function(f){!f&&this.trigger("updated")},wD=function(f,d){f.on("rendered",function(v){d.trigger("rendered",v),f.animation.isFinished()&&!d[qr]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},SD=function(f,d){f.on("mouseover",function(v){var h=v.target,p=Tf(h,Sg);p&&(uce(p,v,d._api),Bo(d))}).on("mouseout",function(v){var h=v.target,p=Tf(h,Sg);p&&(cce(p,v,d._api),Bo(d))}).on("click",function(v){var h=v.target,p=Tf(h,function(y){return Vt(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=Vt(p);d._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function r(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function a(f){var d=[],v=[],h=!1;if(f.eachComponent(function(y,b){var w=b.get("zlevel")||0,S=b.get("z")||0,x=b.getZLevelKey();h=h||!!x,(y==="series"?v:d).push({zlevel:w,z:S,idx:b.componentIndex,type:y,key:x})}),h){var p=d.concat(v),g,m;T2(p,function(y,b){return y.zlevel===b.zlevel?y.z-b.z:y.zlevel-b.zlevel}),j(p,function(y){var b=f.getComponent(y.type,y.idx),w=y.zlevel,S=y.key;g!=null&&(w=Math.max(g,w)),S?(w===g&&S!==m&&w++,m=S):m&&(w===g&&w++,m=""),g=w,b.setZLevel(w)})}}u6=function(f,d,v,h,p){a(d),xD(f,d,v,h,p),j(f._chartsViews,function(g){g.__alive=!1}),dy(f,d,v,h,p),j(f._chartsViews,function(g){g.__alive||g.remove(d,v)})},xD=function(f,d,v,h,p,g){j(g||f._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,d,v,h),l(y,m),c(y,m)})},dy=function(f,d,v,h,p,g){var m=f._scheduler;p=Pe(p||{},{updatedSeries:d.getSeries()}),gi.trigger("series:beforeupdate",d,v,p);var y=!1;d.eachSeries(function(b){var w=f._chartsMap[b.__viewId];w.__alive=!0;var S=w.renderTask;m.updatePayload(S,h),u(b,w),g&&g.get(b.uid)&&S.dirty(),S.perform(m.getPerformArgs(S))&&(y=!0),w.group.silent=!!b.get("silent"),s(b,w),sL(b)}),m.unfinished=y||m.unfinished,gi.trigger("series:layoutlabels",d,v,p),gi.trigger("series:transition",d,v,p),d.eachSeries(function(b){var w=f._chartsMap[b.__viewId];l(b,w),c(b,w)}),i(f,d),gi.trigger("series:afterupdate",d,v,p)},Bo=function(f){f[a6]=!0,f.getZr().wakeUp()},ev=function(f){f[uy]=(f[uy]+1)%1e3},TD=function(f){f[a6]&&(f.getZr().storage.traverse(function(d){Yv(d)||o(d)}),f[a6]=!1)};function o(f){for(var d=[],v=f.currentStates,h=0;h<v.length;h++){var p=v[h];p==="emphasis"||p==="blur"||p==="select"||d.push(p)}f.selected&&f.states.select&&d.push("select"),f.hoverState===Bw&&f.states.emphasis?d.push("emphasis"):f.hoverState===Lm&&f.states.blur&&d.push("blur"),f.useStates(d)}function i(f,d){var v=f._zr,h=v.storage,p=0;h.traverse(function(g){g.isGroup||p++}),p>d.get("hoverLayerThreshold")&&!kn.node&&!kn.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function s(f,d){var v=f.get("blendMode")||null;d.eachRendered(function(h){h.isGroup||(h.style.blend=v)})}function l(f,d){if(!f.preventAutoZ){var v=id(f);d.eachRendered(function(h){return Ww(h,v.z,v.zlevel),!0})}}function u(f,d){d.eachRendered(function(v){if(!Yv(v)){var h=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),h&&h.stateTransition&&(h.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function c(f,d){var v=f.getModel("stateAnimation"),h=f.isAnimationEnabled(),p=v.get("duration"),g=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Yv(m))return;if(m instanceof ln&&mce(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(h){m.stateTransition=g;var b=m.getTextContent(),w=m.getTextGuideLine();b&&(b.stateTransition=g),w&&(w.stateTransition=g)}m.__dirty&&o(m)}})}CD=function(f){return new(function(d){ye(v,d);function v(){return d!==null&&d.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(h){for(;h;){var p=h.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);h=h.parent}},v.prototype.enterEmphasis=function(h,p){zl(h,p),Bo(f)},v.prototype.leaveEmphasis=function(h,p){Fl(h,p),Bo(f)},v.prototype.enterBlur=function(h){mW(h),Bo(f)},v.prototype.leaveBlur=function(h){ek(h),Bo(f)},v.prototype.enterSelect=function(h){yW(h),Bo(f)},v.prototype.leaveSelect=function(h){bW(h),Bo(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(h){return f.getViewOfComponentModel(h)},v.prototype.getViewOfSeriesModel=function(h){return f.getViewOfSeriesModel(h)},v.prototype.getMainProcessVersion=function(){return f[uy]},v}(LG))(f)},MU=function(f){function d(v,h){for(var p=0;p<v.length;p++){var g=v[p];g[o6]=h}}j(Vx,function(v,h){f._messageCenter.on(h,function(p){if(kD[f.group]&&f[o6]!==_D){if(p&&p.escapeConnect)return;var g=f.makeActionFromEvent(p),m=[];j(K0,function(y){y!==f&&y.group===f.group&&m.push(y)}),d(m,_D),j(m,function(y){y[o6]!==phe&&y.dispatchAction(g)}),d(m,ghe)}})})}}(),t}(ci),Pk=AU.prototype;Pk.on=SU("on");Pk.off=SU("off");Pk.one=function(e,t,n){var r=this;function a(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];t&&t.apply&&t.apply(this,o),r.off(e,a)}this.on.call(this,e,a,n)};var mhe=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],jb={},Vx={},$x={},zx=[],Fx=[],Yb=[],EU={},Hx={},K0={},kD={},yhe=+new Date-0,Rk="_echarts_instance_";function bhe(e,t,n){var r=!(n&&n.ssr);if(r){var a=Wx(e);if(a)return a}var o=new AU(e,t,n);return o.id="ec_"+yhe++,K0[o.id]=o,r&&XH(e,Rk,o.id),MU(o),gi.trigger("afterinit",o),o}function Wx(e){return K0[nue(e,Rk)]}function IU(e,t){EU[e]=t}function LU(e){Xt(Fx,e)<0&&Fx.push(e)}function DU(e,t){Nk(zx,e,t,she)}function _he(e){Ok("afterinit",e)}function whe(e){Ok("afterupdate",e)}function Ok(e,t){gi.on(e,t)}function tl(e,t,n){var r,a,o,i,s;kt(t)&&(n=t,t=""),Rt(e)?(r=e.type,a=e.event,i=e.update,s=e.publishNonRefinedEvent,n||(n=e.action),o=e.refineEvent):(r=e,a=t);function l(c){return c.toLowerCase()}a=l(a||r);var u=o?l(r):a;jb[r]||(Ia(bD.test(r)&&bD.test(a)),o&&Ia(a!==r),jb[r]={actionType:r,refinedEventType:a,nonRefinedEventType:u,update:i,action:n,refineEvent:o},$x[a]=1,o&&s&&($x[u]=1),Vx[u]=r)}function She(e,t){Om.register(e,t)}function xhe(e,t){Nk(Yb,e,t,bU,"layout")}function Ad(e,t){Nk(Yb,e,t,_U,"visual")}var MD=[];function Nk(e,t,n,r,a){if((kt(t)||Rt(t))&&(n=t,t=r),!(Xt(MD,n)>=0)){MD.push(n);var o=sU.wrapStageHandler(n,a);o.__prio=t,o.__raw=n,e.push(o)}}function PU(e,t){Hx[e]=t}function Che(e,t,n){var r=ehe("registerMap");r&&r(e,t,n)}var The=Dde;Ad(Dk,ave);Ad(Zw,ove);Ad(Zw,ive);Ad(Dk,wve);Ad(Zw,Sve);Ad(wU,Zve);LU(PG);DU(ohe,dde);PU("default",sve);tl({type:Ff,event:Ff,update:Ff},br);tl({type:L2,event:L2,update:L2},br);tl({type:Ob,event:J5,update:Ob,action:br,refineEvent:Bk,publishNonRefinedEvent:!0});tl({type:vx,event:J5,update:vx,action:br,refineEvent:Bk,publishNonRefinedEvent:!0});tl({type:Nb,event:J5,update:Nb,action:br,refineEvent:Bk,publishNonRefinedEvent:!0});function Bk(e,t,n,r){return{eventContent:{selected:dce(n),isFromClick:t.isFromClick||!1}}}IU("default",{});IU("dark",bve);var AD=[],khe={registerPreprocessor:LU,registerProcessor:DU,registerPostInit:_he,registerPostUpdate:whe,registerUpdateLifecycle:Ok,registerAction:tl,registerCoordinateSystem:She,registerLayout:xhe,registerVisual:Ad,registerTransform:The,registerLoading:PU,registerMap:Che,registerImpl:Qve,PRIORITY:hhe,ComponentModel:mn,ComponentView:or,SeriesModel:er,ChartView:Fn,registerComponentModel:function(e){mn.registerClass(e)},registerComponentView:function(e){or.registerClass(e)},registerSeriesModel:function(e){er.registerClass(e)},registerChartView:function(e){Fn.registerClass(e)},registerCustomSeries:function(e,t){the(e,t)},registerSubTypeDefaulter:function(e,t){mn.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Ile(e,t)}};function Qt(e){if(Ve(e)){j(e,function(t){Qt(t)});return}Xt(AD,e)>=0||(AD.push(e),kt(e)&&(e={install:e}),e.install(khe))}function Np(e){return e==null?0:e.length||1}function ED(e){return e}var Mhe=function(){function e(t,n,r,a,o,i){this._old=t,this._new=n,this._oldKeyGetter=r||ED,this._newKeyGetter=a||ED,this.context=o,this._diffModeMultiple=i==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,n=this._new,r={},a=new Array(t.length),o=new Array(n.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(n,r,o,"_newKeyGetter");for(var i=0;i<t.length;i++){var s=a[i],l=r[s],u=Np(l);if(u>1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,i)}else u===1?(r[s]=null,this._update&&this._update(l,i)):this._remove&&this._remove(i)}this._performRestAdd(o,r)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,r={},a={},o=[],i=[];this._initIndexMap(t,r,o,"_oldKeyGetter"),this._initIndexMap(n,a,i,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],u=r[l],c=a[l],f=Np(u),d=Np(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var v=0;v<f;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(i,a)},e.prototype._performRestAdd=function(t,n){for(var r=0;r<t.length;r++){var a=t[r],o=n[a],i=Np(o);if(i>1)for(var s=0;s<i;s++)this._add&&this._add(o[s]);else i===1&&this._add&&this._add(o);n[a]=null}},e.prototype._initIndexMap=function(t,n,r,a){for(var o=this._diffModeMultiple,i=0;i<t.length;i++){var s="_ec_"+this[a](t[i],i);if(o||(r[i]=s),!!n){var l=n[s],u=Np(l);u===0?(n[s]=i,o&&r.push(s)):u===1?n[s]=[l,i]:l.push(i)}}},e}();const Hl=Mhe;var Ahe=function(){function e(t,n){this._encode=t,this._schema=n}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function Ehe(e,t){var n={},r=n.encode={},a=pt(),o=[],i=[],s={};j(e.dimensions,function(d){var v=e.getDimensionInfo(d),h=v.coordDim;if(h){var p=v.coordDimIndex;c6(r,h)[p]=d,v.isExtraCoord||(a.set(h,1),Ihe(v.type)&&(o[0]=d),c6(s,h)[p]=e.getDimensionIndex(v.name)),v.defaultTooltip&&i.push(d)}SG.each(function(g,m){var y=c6(r,m),b=v.otherDims[m];b!=null&&b!==!1&&(y[b]=v.name)})});var l=[],u={};a.each(function(d,v){var h=r[v];u[v]=h[0],l=l.concat(h)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=$e(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var f=r.tooltip;return f&&f.length?i=f.slice():i.length||(i=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=i,n.userOutput=new Ahe(s,t),n}function c6(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function qb(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function Ihe(e){return!(e==="ordinal"||e==="time")}var Lhe=function(){function e(t){this.otherDims={},t!=null&&Pe(this,t)}return e}();const V2=Lhe;var Dhe=an(),Phe={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},RU=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=BU(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return yt(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var n=this.source.dimensionsDefine;if(n)return n[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,n=OG(this.source),r=!VU(t),a="",o=[],i=0,s=0;i<t;i++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===i)l=n?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(i);d&&(l=n?d.name:null,u=d.type)}o.push({property:l,type:u,ordinalMeta:c}),n&&l!=null&&(!f||!f.isCalculationCoord)&&(a+=r?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=Phe[u]||"f",c&&(a+=c.uid),a+="$"}var v=this.source,h=[v.seriesLayoutBy,v.startIndex,a].join("$$");return{dimensions:o,hash:h}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],n=0,r=0;n<this._fullDimCount;n++){var a=void 0,o=this.dimensions[r];if(o&&o.storeDimIndex===n)o.isCalculationCoord||(a=o.name),r++;else{var i=this.getSourceDimension(n);i&&(a=i.name)}t.push(a)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function OU(e){return e instanceof RU}function NU(e){for(var t=pt(),n=0;n<(e||[]).length;n++){var r=e[n],a=Rt(r)?r.name:r;a!=null&&t.get(a)==null&&t.set(a,n)}return t}function BU(e){var t=Dhe(e);return t.dimNameMap||(t.dimNameMap=NU(e.dimensionsDefine))}function VU(e){return e>30}var Bp=Rt,fu=$e,Rhe=typeof Int32Array>"u"?Array:Int32Array,Ohe="e\0\0",ID=-1,Nhe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Bhe=["_approximateExtent"],LD,vy,Vp,$p,f6,zp,d6,Vhe=function(){function e(t,n){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 r,a=!1;OU(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,r=t),r=r||["x","y"];for(var o={},i=[],s={},l=!1,u={},c=0;c<r.length;c++){var f=r[c],d=st(f)?new V2({name:f}):f instanceof V2?f:new V2(f),v=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=v,d.coordDimIndex=0);var h=d.otherDims=d.otherDims||{};i.push(v),o[v]=d,u[v]!=null&&(l=!0),d.createInvertedIndices&&(s[v]=[]);var p=c;gn(d.storeDimIndex)&&(p=d.storeDimIndex),h.itemName===0&&(this._nameDimIdx=p),h.itemId===0&&(this._idDimIdx=p),a&&(d.storeDimIndex=c)}if(this.dimensions=i,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=n,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=pt();j(i,function(m){g.set(o[m].storeDimIndex,m)})}}return e.prototype.getDimension=function(t){var n=this._recognizeDimIndex(t);if(n==null)return t;if(n=t,!this._dimOmitted)return this.dimensions[n];var r=this._dimIdxToName.get(n);if(r!=null)return r;var a=this._schema.getSourceDimension(n);if(a)return a.name},e.prototype.getDimensionIndex=function(t){var n=this._recognizeDimIndex(t);if(n!=null)return n;if(t==null)return-1;var r=this._getDimInfo(t);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(gn(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var n=this.getDimensionIndex(t);return n},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var n=this._dimInfos;this._getDimInfo=t?function(r){return n.hasOwnProperty(r)?n[r]:void 0}:function(r){return n[r]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,n){var r=this._dimSummary;if(n==null)return r.encodeFirstDimNotExtra[t];var a=r.encode[t];return a?a[n]:null},e.prototype.mapDimensionsAll=function(t){var n=this._dimSummary,r=n.encode[t];return(r||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,n,r){var a=this,o;if(t instanceof Lx&&(o=t),!o){var i=this.dimensions,s=xk(t)||Ea(t)?new NG(t,i.length):t;o=new Lx;var l=fu(i,function(u){return{type:a._dimInfos[u].type,property:u}});o.initData(s,l,r)}this._store=o,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=Ehe(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var n=this._store.appendData(t);this._doInit(n[0],n[1])},e.prototype.appendValues=function(t,n){var r=this._store.appendValues(t,n&&n.length),a=r.start,o=r.end,i=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var s=a;s<o;s++){var l=s-a;this._nameList[s]=n[l],i&&d6(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,n=this.dimensions,r=0;r<n.length;r++){var a=this._dimInfos[n[r]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Xu&&!t.fillStorage},e.prototype._doInit=function(t,n){if(!(t>=n)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var o=this._nameList,i=this._idList,s=a.getSource().sourceFormat,l=s===Do;if(l&&!a.pure)for(var u=[],c=t;c<n;c++){var f=a.getItem(c,u);if(!this.hasItemOption&&Wle(f)&&(this.hasItemOption=!0),f){var d=f.name;o[c]==null&&d!=null&&(o[c]=Pr(d,null));var v=f.id;i[c]==null&&v!=null&&(i[c]=Pr(v,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<n;c++)d6(this,c);LD(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,n){n=this.getDimension(n),this._approximateExtent[n]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,n){Bp(t)?Pe(this._calculationInfo,t):this._calculationInfo[t]=n},e.prototype.getName=function(t){var n=this.getRawIndex(t),r=this._nameList[n];return r==null&&this._nameDimIdx!=null&&(r=Vp(this,this._nameDimIdx,n)),r==null&&(r=""),r},e.prototype._getCategory=function(t,n){var r=this._store.get(t,n),a=this._store.getOrdinalMeta(t);return a?a.categories[r]:r},e.prototype.getId=function(t){return vy(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,n){var r=this._store,a=this._dimInfos[t];if(a)return r.get(a.storeDimIndex,n)},e.prototype.getByRawIndex=function(t,n){var r=this._store,a=this._dimInfos[t];if(a)return r.getByRawIndex(a.storeDimIndex,n)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,n){var r=this,a=this._store;return Ve(t)?a.getValues(fu(t,function(o){return r._getStoreDimIndex(o)}),n):a.getValues(t)},e.prototype.hasValue=function(t){for(var n=this._dimSummary.dataDimIndicesOnCoord,r=0,a=n.length;r<a;r++)if(isNaN(this._store.get(n[r],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var n=0,r=this._store.count();n<r;n++)if(this.getName(n)===t)return n;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,n){var r=t&&this._invertedIndicesMap[t],a=r&&r[n];return a==null||isNaN(a)?ID:a},e.prototype.each=function(t,n,r){kt(t)&&(r=n,n=t,t=[]);var a=r||this,o=fu($p(t),this._getStoreDimIndex,this);this._store.each(o,a?lt(n,a):n)},e.prototype.filterSelf=function(t,n,r){kt(t)&&(r=n,n=t,t=[]);var a=r||this,o=fu($p(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,a?lt(n,a):n),this},e.prototype.selectRange=function(t){var n=this,r={},a=dn(t);return j(a,function(o){var i=n._getStoreDimIndex(o);r[i]=t[o]}),this._store=this._store.selectRange(r),this},e.prototype.mapArray=function(t,n,r){kt(t)&&(r=n,n=t,t=[]),r=r||this;var a=[];return this.each(t,function(){a.push(n&&n.apply(this,arguments))},r),a},e.prototype.map=function(t,n,r,a){var o=r||a||this,i=fu($p(t),this._getStoreDimIndex,this),s=zp(this);return s._store=this._store.map(i,o?lt(n,o):n),s},e.prototype.modify=function(t,n,r,a){var o=r||a||this,i=fu($p(t),this._getStoreDimIndex,this);this._store.modify(i,o?lt(n,o):n)},e.prototype.downSample=function(t,n,r,a){var o=zp(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),n,r,a),o},e.prototype.minmaxDownSample=function(t,n){var r=zp(this);return r._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),n),r},e.prototype.lttbDownSample=function(t,n){var r=zp(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(t),n),r},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var n=this.hostModel,r=this.getRawDataItem(t);return new Tn(r,n,n&&n.ecModel)},e.prototype.diff=function(t){var n=this;return new Hl(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(r){return vy(t,r)},function(r){return vy(n,r)})},e.prototype.getVisual=function(t){var n=this._visual;return n&&n[t]},e.prototype.setVisual=function(t,n){this._visual=this._visual||{},Bp(t)?Pe(this._visual,t):this._visual[t]=n},e.prototype.getItemVisual=function(t,n){var r=this._itemVisuals[t],a=r&&r[n];return a??this.getVisual(n)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,n){var r=this._itemVisuals,a=r[t];a||(a=r[t]={});var o=a[n];return o==null&&(o=this.getVisual(n),Ve(o)?o=o.slice():Bp(o)&&(o=Pe({},o)),a[n]=o),o},e.prototype.setItemVisual=function(t,n,r){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Bp(n)?Pe(a,n):a[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){Bp(t)?Pe(this._layout,t):this._layout[t]=n},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,n,r){this._itemLayouts[t]=r?Pe(this._itemLayouts[t]||{},n):n},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,n){var r=this.hostModel&&this.hostModel.seriesIndex;dx(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){j(this._graphicEls,function(r,a){r&&t&&t.call(n,r,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:fu(this.dimensions,this._getDimInfo,this),this.hostModel)),f6(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];kt(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=r.apply(this,arguments);return n.apply(this,[a].concat(O5(arguments)))})},e.internalField=function(){LD=function(t){var n=t._invertedIndicesMap;j(n,function(r,a){var o=t._dimInfos[a],i=o.ordinalMeta,s=t._store;if(i){r=n[a]=new Rhe(i.categories.length);for(var l=0;l<r.length;l++)r[l]=ID;for(var l=0;l<s.count();l++)r[s.get(o.storeDimIndex,l)]=l}})},Vp=function(t,n,r){return Pr(t._getCategory(n,r),null)},vy=function(t,n){var r=t._idList[n];return r==null&&t._idDimIdx!=null&&(r=Vp(t,t._idDimIdx,n)),r==null&&(r=Ohe+n),r},$p=function(t){return Ve(t)||(t=t!=null?[t]:[]),t},zp=function(t){var n=new e(t._schema?t._schema:fu(t.dimensions,t._getDimInfo,t),t.hostModel);return f6(n,t),n},f6=function(t,n){j(Nhe.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(t[r]=n[r])}),t.__wrappedMethods=n.__wrappedMethods,j(Bhe,function(r){t[r]=Mt(n[r])}),t._calculationInfo=Pe({},n._calculationInfo)},d6=function(t,n){var r=t._nameList,a=t._idList,o=t._nameDimIdx,i=t._idDimIdx,s=r[n],l=a[n];if(s==null&&o!=null&&(r[n]=s=Vp(t,o,n)),l==null&&i!=null&&(a[n]=l=Vp(t,i,n)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),a[n]=l}}}(),e}();const Wa=Vhe;function Vm(e,t){xk(e)||(e=Ck(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],a=pt(),o=[],i=zhe(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&VU(i),l=r===e.dimensionsDefine,u=l?BU(e):NU(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,i));for(var f=pt(c),d=new GG(i),v=0;v<d.length;v++)d[v]=-1;function h(M){var k=d[M];if(k<0){var E=r[M],A=Rt(E)?E:{name:E},I=new V2,O=A.name;O!=null&&u.get(O)!=null&&(I.name=I.displayName=O),A.type!=null&&(I.type=A.type),A.displayName!=null&&(I.displayName=A.displayName);var z=o.length;return d[M]=z,I.storeDimIndex=M,o.push(I),I}return o[k]}if(!s)for(var v=0;v<i;v++)h(v);f.each(function(M,k){var E=Bn(M).slice();if(E.length===1&&!st(E[0])&&E[0]<0){f.set(k,!1);return}var A=f.set(k,[]);j(E,function(I,O){var z=st(I)?u.get(I):I;z!=null&&z<i&&(A[O]=z,g(h(z),k,O))})});var p=0;j(n,function(M){var k,E,A,I;if(st(M))k=M,I={};else{I=M,k=I.name;var O=I.ordinalMeta;I.ordinalMeta=null,I=Pe({},I),I.ordinalMeta=O,E=I.dimsDef,A=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var z=f.get(k);if(z!==!1){if(z=Bn(z),!z.length)for(var $=0;$<(E&&E.length||1);$++){for(;p<i&&h(p).coordDim!=null;)p++;p<i&&z.push(p++)}j(z,function(P,L){var V=h(P);if(l&&I.type!=null&&(V.type=I.type),g(Pt(V,I),k,L),V.name==null&&E){var B=E[L];!Rt(B)&&(B={name:B}),V.name=V.displayName=B.name,V.defaultTooltip=B.defaultTooltip}A&&Pt(V.otherDims,A)})}});function g(M,k,E){SG.get(k)!=null?M.otherDims[k]=E:(M.coordDim=k,M.coordDimIndex=E,a.set(k,!0))}var m=t.generateCoord,y=t.generateCoordCount,b=y!=null;y=m?y||1:0;var w=m||"value";function S(M){M.name==null&&(M.name=M.coordDim)}if(s)j(o,function(M){S(M)}),o.sort(function(M,k){return M.storeDimIndex-k.storeDimIndex});else for(var x=0;x<i;x++){var C=h(x),T=C.coordDim;T==null&&(C.coordDim=Fhe(w,a,b),C.coordDimIndex=0,(!m||y<=0)&&(C.isExtraCoord=!0),y--),S(C),C.type==null&&(kG(e,x)===ra.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type="ordinal")}return $he(o),new RU({source:e,dimensions:o,fullDimensionCount:i,dimensionOmitted:s})}function $he(e){for(var t=pt(),n=0;n<e.length;n++){var r=e[n],a=r.name,o=t.get(a)||0;o>0&&(r.name=a+(o-1)),o++,t.set(a,o)}}function zhe(e,t,n,r){var a=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return j(t,function(o){var i;Rt(o)&&(i=o.dimsDef)&&(a=Math.max(a,i.length))}),a}function Fhe(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 Hhe=function(){function e(t){this.coordSysDims=[],this.axisMap=pt(),this.categoryAxisMap=pt(),this.coordSysName=t}return e}();function Whe(e){var t=e.get("coordinateSystem"),n=new Hhe(t),r=Ghe[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var Ghe={cartesian2d:function(e,t,n,r){var a=e.getReferringComponents("xAxis",lr).models[0],o=e.getReferringComponents("yAxis",lr).models[0];t.coordSysDims=["x","y"],n.set("x",a),n.set("y",o),tv(a)&&(r.set("x",a),t.firstCategoryDimIndex=0),tv(o)&&(r.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var a=e.getReferringComponents("singleAxis",lr).models[0];t.coordSysDims=["single"],n.set("single",a),tv(a)&&(r.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var a=e.getReferringComponents("polar",lr).models[0],o=a.findAxisModel("radiusAxis"),i=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",i),tv(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),tv(i)&&(r.set("angle",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var a=e.ecModel,o=a.getComponent("parallel",e.get("parallelIndex")),i=t.coordSysDims=o.dimensions.slice();j(o.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=i[l];n.set(c,u),tv(u)&&(r.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(e,t,n,r){var a=e.getReferringComponents("matrix",lr).models[0];t.coordSysDims=["x","y"];var o=a.getDimensionModel("x"),i=a.getDimensionModel("y");n.set("x",o),n.set("y",i),r.set("x",o),r.set("y",i)}};function tv(e){return e.get("type")==="category"}function Uhe(e,t,n){n=n||{};var r=n.byIndex,a=n.stackedCoordDimension,o,i,s;Khe(t)?o=t:(i=t.schema,o=i.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(j(o,function(y,b){st(y)&&(o[b]=y={name:y}),l&&!y.isExtraCoord&&(!r&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(c=y))}),c&&!r&&!u&&(r=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,h=c.type,p=0;j(o,function(y){y.coordDim===v&&p++});var g={name:f,coordDim:v,coordDimIndex:p,type:h,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},m={name:d,coordDim:d,coordDimIndex:p+1,type:h,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};i?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,h),m.storeDimIndex=s.ensureCalculationDimension(f,h)),i.appendCalculationDimension(g),i.appendCalculationDimension(m)):(o.push(g),o.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:d,stackResultDimension:f}}function Khe(e){return!OU(e.schema)}function lc(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function $U(e,t){return lc(e,t)?e.getCalculationInfo("stackResultDimension"):t}function jhe(e,t){var n=e.get("coordinateSystem"),r=Om.get(n),a;return t&&t.coordSysDims&&(a=$e(t.coordSysDims,function(o){var i={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");i.type=qb(l)}return i})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function Yhe(e,t,n){var r,a;return n&&j(e,function(o,i){var s=o.coordDim,l=n.categoryAxisMap.get(s);l&&(r==null&&(r=i),o.ordinalMeta=l.getOrdinalMeta(),t&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(e[r].otherDims.itemName=0),r}function tu(e,t,n){n=n||{};var r=t.getSourceManager(),a,o=!1;e?(o=!0,a=Ck(e)):(a=r.getSource(),o=a.sourceFormat===Do);var i=Whe(t),s=jhe(t,i),l=n.useEncodeDefaulter,u=kt(l)?l:l?Yt(TG,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},f=Vm(a,c),d=Yhe(f.dimensions,n.createInvertedIndices,i),v=o?null:r.getSharedDataStore(f),h=Uhe(t,{schema:f,store:v}),p=new Wa(f,t);p.setCalculationInfo(h);var g=d!=null&&qhe(a)?function(m,y,b,w){return w===d?b:this.defaultDimValueGetter(m,y,b,w)}:null;return p.hasItemOption=!1,p.initData(o?a:v,null,g),p}function qhe(e){if(e.sourceFormat===Do){var t=Xhe(e.data||[]);return!Ve(qh(t))}}function Xhe(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}function Gx(e){return e.type==="interval"||e.type==="log"}function Zhe(e,t,n,r,a){var o={},i=o.interval=FH(t/n,!0);r!=null&&i<r&&(i=o.interval=r),a!=null&&i>a&&(i=o.interval=a);var s=o.intervalPrecision=Ig(i),l=o.niceTickExtent=[xr(Math.ceil(e[0]/i)*i,s),xr(Math.floor(e[1]/i)*i,s)];return Jhe(l,e),o}function v6(e){var t=Math.pow(10,G5(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,xr(n*t)}function Ig(e){return ys(e)+2}function DD(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Jhe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),DD(e,0,t),DD(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Vk(e,t){return e>=t[0]&&e<=t[1]}var Qhe=function(){function e(){this.normalize=PD,this.scale=RD}return e.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=lt(t.normalize,t),this.scale=lt(t.scale,t)):(this.normalize=PD,this.scale=RD)},e}();function PD(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function RD(e,t){return e*(t[1]-t[0])+t[0]}function Ux(e,t,n){var r=Math.log(e);return[Math.log(n?t[0]:Math.max(0,t[0]))/r,Math.log(n?t[1]:Math.max(0,t[1]))/r]}var zU=function(){function e(t){this._calculator=new Qhe,this._setting=t||{},this._extent=[1/0,-1/0];var n=Cr();n&&(this._brkCtx=n.createScaleBreakContext(),this._brkCtx.update(this._extent))}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype._innerUnionExtent=function(t){var n=this._extent;this._innerSetExtent(t[0]<n[0]?t[0]:n[0],t[1]>n[1]?t[1]:n[1])},e.prototype.unionExtentFromData=function(t,n){this._innerUnionExtent(t.getApproximateExtent(n))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){this._innerSetExtent(t,n)},e.prototype._innerSetExtent=function(t,n){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(n)||(r[1]=n),this._brkCtx&&this._brkCtx.update(r)},e.prototype.setBreaksFromOption=function(t){var n=Cr();n&&this._innerSetBreak(n.parseAxisBreakOption(t,lt(this.parse,this)))},e.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},e.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},e.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();Lw(zU);const Ed=zU;var epe=0,tpe=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++epe,this._onCollect=t.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,a=r&&$e(r,npe);return new e({categories:a,needCollect:!a,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var n,r=this._needCollect;if(!st(t)&&!r)return t;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,this._onCollect&&this._onCollect(t,n),n;var a=this._getOrCreateMap();return n=a.get(t),n==null&&(r?(n=this.categories.length,this.categories[n]=t,a.set(t,n),this._onCollect&&this._onCollect(t,n)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=pt(this.categories))},e}();function npe(e){return Rt(e)&&e.value!=null?e.value:e+""}const Lg=tpe;var FU=function(e){ye(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new Lg({})),Ve(a)&&(a=new Lg({categories:$e(a,function(o){return Rt(o)?o.value:o})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return t.prototype.parse=function(n){return n==null?NaN:st(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return Vk(n,this._extent)&&n>=0&&n<this._ordinalMeta.categories.length},t.prototype.normalize=function(n){return n=this._getTickNumber(n),this._calculator.normalize(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(this._calculator.scale(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],r=this._extent,a=r[0];a<=r[1];)n.push({value:a}),a++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,a=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],i=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);i<l;++i){var u=r[i];a[i]=u,o[u]=i}for(var c=0;i<s;++i){for(;o[c]!=null;)c++;a.push(c),o[c]=i}},t.prototype._getTickNumber=function(n){var r=this._ticksByOrdinalNumber;return r&&n>=0&&n<r.length?r[n]:n},t.prototype.getRawOrdinalNumber=function(n){var r=this._ordinalNumbersByTick;return r&&n>=0&&n<r.length?r[n]:n},t.prototype.getLabel=function(n){if(!this.isBlank()){var r=this.getRawOrdinalNumber(n.value),a=this._ordinalMeta.categories[r];return a==null?"":a+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Ed);Ed.registerClass(FU);const Dg=FU;var du=xr,HU=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return t.prototype.parse=function(n){return n==null||n===""?NaN:Number(n)},t.prototype.contain=function(n){return Vk(n,this._extent)},t.prototype.normalize=function(n){return this._calculator.normalize(n,this._extent)},t.prototype.scale=function(n){return this._calculator.scale(n,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=Ig(n)},t.prototype.getTicks=function(n){n=n||{};var r=this._interval,a=this._extent,o=this._niceExtent,i=this._intervalPrecision,s=Cr(),l=[];if(!r)return l;if(n.breakTicks==="only_break"&&s)return s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l;var u=1e4;a[0]<o[0]&&(n.expandToNicedExtent?l.push({value:du(o[0]-r,i)}):l.push({value:a[0]}));for(var c=function(h,p){return Math.round((p-h)/r)},f=o[0];f<=o[1];){if(l.push({value:f}),f=du(f+r,i),this._brkCtx){var d=this._brkCtx.calcNiceTickMultiple(f,c);d>=0&&(f=du(f+d*r,i))}if(l.length>0&&f===l[l.length-1].value)break;if(l.length>u)return[]}var v=l.length?l[l.length-1].value:o[1];return a[1]>v&&(n.expandToNicedExtent?l.push({value:du(v+r,i)}):l.push({value:a[1]})),s&&s.pruneTicksByBreak(n.pruneByBreak,l,this._brkCtx.breaks,function(h){return h.value},this._interval,this._extent),n.breakTicks!=="none"&&s&&s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l},t.prototype.getMinorTicks=function(n){for(var r=this.getTicks({expandToNicedExtent:!0}),a=[],o=this.getExtent(),i=1;i<r.length;i++){var s=r[i],l=r[i-1];if(!(l.break||s.break)){for(var u=0,c=[],f=s.value-l.value,d=f/n,v=Ig(d);u<n-1;){var h=du(l.value+(u+1)*d,v);h>o[0]&&h<o[1]&&c.push(h),u++}var p=Cr();p&&p.pruneTicksByBreak("auto",c,this._getNonTransBreaks(),function(g){return g},this._interval,o),a.push(c)}}return a},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(n,r){if(n==null)return"";var a=r&&r.precision;a==null?a=ys(n.value)||0:a==="auto"&&(a=this._intervalPrecision);var o=du(n.value,a,!0);return uG(o)},t.prototype.calcNiceTicks=function(n,r,a){n=n||5;var o=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(isFinite(i)){i<0&&(i=-i,o.reverse(),this._innerSetExtent(o[0],o[1]),o=this._extent.slice());var s=Zhe(o,i,n,r,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(n){var r=this._extent.slice();if(r[0]===r[1])if(r[0]!==0){var a=Math.abs(r[0]);n.fixMax||(r[1]+=a/2),r[0]-=a/2}else r[1]=1;var o=r[1]-r[0];isFinite(o)||(r[0]=0,r[1]=1),this._innerSetExtent(r[0],r[1]),r=this._extent.slice(),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var i=this._interval,s=this._intervalPrecision;n.fixMin||(r[0]=du(Math.floor(r[0]/i)*i,s)),n.fixMax||(r[1]=du(Math.ceil(r[1]/i)*i,s)),this._innerSetExtent(r[0],r[1])},t.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},t.type="interval",t}(Ed);Ed.registerClass(HU);const uc=HU;var WU=typeof Float32Array<"u",rpe=WU?Float32Array:Array;function _s(e){return Ve(e)?WU?new Float32Array(e):e:new rpe(e)}var Kx="__ec_stack_";function $k(e){return e.get("stack")||Kx+e.seriesIndex}function zk(e){return e.dim+e.index}function ape(e){var t=[],n=e.axis,r="axis0";if(n.type==="category"){for(var a=n.getBandWidth(),o=0;o<e.count;o++)t.push(Pt({bandWidth:a,axisKey:r,stackId:Kx+o},e));for(var i=KU(t),s=[],o=0;o<e.count;o++){var l=i[r][Kx+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function GU(e,t){var n=[];return t.eachSeriesByType(e,function(r){qU(r)&&n.push(r)}),n}function ope(e){var t={};j(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,v=f.getDimensionIndex(f.mapDimension(c.dim)),h=f.getStore(),p=0,g=h.count();p<g;++p){var m=h.get(v,p);t[d]?t[d].push(m):t[d]=[m]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var a=t[r];if(a){a.sort(function(l,u){return l-u});for(var o=null,i=1;i<a.length;++i){var s=a[i]-a[i-1];s>0&&(o=o===null?s:Math.min(o,s))}n[r]=o}}return n}function UU(e){var t=ope(e),n=[];return j(e,function(r){var a=r.coordinateSystem,o=a.getBaseAxis(),i=o.getExtent(),s;if(o.type==="category")s=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var l=o.dim+"_"+o.index,u=t[l],c=Math.abs(i[1]-i[0]),f=o.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var v=r.getData();s=Math.abs(i[1]-i[0])/v.count()}var h=at(r.get("barWidth"),s),p=at(r.get("barMaxWidth"),s),g=at(r.get("barMinWidth")||(XU(r)?.5:1),s),m=r.get("barGap"),y=r.get("barCategoryGap"),b=r.get("defaultBarGap");n.push({bandWidth:s,barWidth:h,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,defaultBarGap:b,axisKey:zk(o),stackId:$k(r)})}),KU(n)}function KU(e){var t={};j(e,function(r,a){var o=r.axisKey,i=r.bandWidth,s=t[o]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:r.defaultBarGap||0,stacks:{}},l=s.stacks;t[o]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=r.barMaxWidth;f&&(l[u].maxWidth=f);var d=r.barMinWidth;d&&(l[u].minWidth=d);var v=r.barGap;v!=null&&(s.gap=v);var h=r.barCategoryGap;h!=null&&(s.categoryGap=h)});var n={};return j(t,function(r,a){n[a]={};var o=r.stacks,i=r.bandWidth,s=r.categoryGap;if(s==null){var l=dn(o).length;s=Math.max(35-l*4,15)+"%"}var u=at(s,i),c=at(r.gap,1),f=r.remainedWidth,d=r.autoWidthCount,v=(f-u)/(d+(d-1)*c);v=Math.max(v,0),j(o,function(m){var y=m.maxWidth,b=m.minWidth;if(m.width){var w=m.width;y&&(w=Math.min(w,y)),b&&(w=Math.max(w,b)),m.width=w,f-=w+c*w,d--}else{var w=v;y&&y<w&&(w=Math.min(y,f)),b&&b>w&&(w=b),w!==v&&(m.width=w,f-=w+c*w,d--)}}),v=(f-u)/(d+(d-1)*c),v=Math.max(v,0);var h=0,p;j(o,function(m,y){m.width||(m.width=v),p=m,h+=m.width*(1+c)}),p&&(h-=p.width*c);var g=-h/2;j(o,function(m,y){n[a][y]=n[a][y]||{bandWidth:i,offset:g,width:m.width},g+=m.width*(1+c)})}),n}function ipe(e,t,n){if(e&&t){var r=e[zk(t)];return r!=null&&n!=null?r[$k(n)]:r}}function jU(e,t){var n=GU(e,t),r=UU(n);j(n,function(a){var o=a.getData(),i=a.coordinateSystem,s=i.getBaseAxis(),l=$k(a),u=r[zk(s)][l],c=u.offset,f=u.width;o.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function YU(e){return{seriesType:e,plan:rp(),reset:function(t){if(qU(t)){var n=t.getData(),r=t.coordinateSystem,a=r.getBaseAxis(),o=r.getOtherAxis(a),i=n.getDimensionIndex(n.mapDimension(o.dim)),s=n.getDimensionIndex(n.mapDimension(a.dim)),l=t.get("showBackground",!0),u=n.mapDimension(o.dim),c=n.getCalculationInfo("stackResultDimension"),f=lc(n,u)&&!!n.getCalculationInfo("stackedOnSeries"),d=o.isHorizontal(),v=spe(a,o),h=XU(t),p=t.get("barMinHeight")||0,g=c&&n.getDimensionIndex(c),m=n.getLayout("size"),y=n.getLayout("offset");return{progress:function(b,w){for(var S=b.count,x=h&&_s(S*3),C=h&&l&&_s(S*3),T=h&&_s(S),M=r.master.getRect(),k=d?M.width:M.height,E,A=w.getStore(),I=0;(E=b.next())!=null;){var O=A.get(f?g:i,E),z=A.get(s,E),$=v,P=void 0;f&&(P=+O-A.get(i,E));var L=void 0,V=void 0,B=void 0,F=void 0;if(d){var U=r.dataToPoint([O,z]);if(f){var G=r.dataToPoint([P,z]);$=G[0]}L=$,V=U[1]+y,B=U[0]-$,F=m,Math.abs(B)<p&&(B=(B<0?-1:1)*p)}else{var U=r.dataToPoint([z,O]);if(f){var G=r.dataToPoint([z,P]);$=G[1]}L=U[0]+y,V=$,B=m,F=U[1]-$,Math.abs(F)<p&&(F=(F<=0?-1:1)*p)}h?(x[I]=L,x[I+1]=V,x[I+2]=d?B:F,C&&(C[I]=d?M.x:L,C[I+1]=d?V:M.y,C[I+2]=k),T[E]=E):w.setItemLayout(E,{x:L,y:V,width:B,height:F}),I+=3}h&&w.setLayout({largePoints:x,largeDataIndices:T,largeBackgroundPoints:C,valueAxisHorizontal:d})}}}}}}function qU(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function XU(e){return e.pipelineContext&&e.pipelineContext.large}function spe(e,t){var n=t.model.get("startValue");return n||(n=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?n>0?n:1:n))}var lpe=function(e,t,n,r){for(;n<r;){var a=n+r>>>1;e[a][1]<t?n=a+1:r=a}return n},ZU=function(e){ye(t,e);function t(n){var r=e.call(this,n)||this;return r.type="time",r}return t.prototype.getLabel=function(n){var r=this.getSetting("useUTC");return Uw(n.value,CL[kfe(G0(this._minLevelUnit))]||CL.second,r,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(n,r,a){var o=this.getSetting("useUTC"),i=this.getSetting("locale");return Mfe(n,r,a,i,o)},t.prototype.getTicks=function(n){n=n||{};var r=this._interval,a=this._extent,o=Cr(),i=[];if(!r)return i;var s=this.getSetting("useUTC");if(o&&n.breakTicks==="only_break")return Cr().addBreaksToTicks(i,this._brkCtx.breaks,this._extent),i;var l=Dv(a[1],s);i.push({value:a[0],time:{level:0,upperTimeUnit:l,lowerTimeUnit:l}});var u=ppe(this._minLevelUnit,this._approxInterval,s,a,this._getExtentSpanWithBreaks(),this._brkCtx);i=i.concat(u);var c=Dv(a[1],s);i.push({value:a[1],time:{level:0,upperTimeUnit:c,lowerTimeUnit:c}});var f=this.getSetting("useUTC"),d=mo.length-1,v=0;return j(i,function(h){d=Math.min(d,Xt(mo,h.time.upperTimeUnit)),v=Math.max(v,h.time.level)}),o&&Cr().pruneTicksByBreak(n.pruneByBreak,i,this._brkCtx.breaks,function(h){return h.value},this._approxInterval,this._extent),o&&n.breakTicks!=="none"&&Cr().addBreaksToTicks(i,this._brkCtx.breaks,this._extent,function(h){for(var p=Math.max(Xt(mo,Dv(h.vmin,f)),Xt(mo,Dv(h.vmax,f))),g=0,m=0;m<mo.length;m++)if(!JU(mo[m],h.vmin,h.vmax,f)){g=m;break}var y=Math.min(g,d),b=Math.max(y,p);return{level:v,lowerTimeUnit:mo[b],upperTimeUnit:mo[y]}}),i},t.prototype.calcNiceExtent=function(n){var r=this.getExtent();if(r[0]===r[1]&&(r[0]-=qo,r[1]+=qo),r[1]===-1/0&&r[0]===1/0){var a=new Date;r[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),r[0]=r[1]-qo}this._innerSetExtent(r[0],r[1]),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},t.prototype.calcNiceTicks=function(n,r,a){n=n||10;var o=this._getExtentSpanWithBreaks();this._approxInterval=o/n,r!=null&&this._approxInterval<r&&(this._approxInterval=r),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var i=hy.length,s=Math.min(lpe(hy,this._approxInterval,0,i),i-1);this._interval=hy[s][1],this._intervalPrecision=Ig(this._interval),this._minLevelUnit=hy[Math.max(s-1,0)][0]},t.prototype.parse=function(n){return gn(n)?n:+Sd(n)},t.prototype.contain=function(n){return Vk(n,this._extent)},t.prototype.normalize=function(n){return this._calculator.normalize(n,this._extent)},t.prototype.scale=function(n){return this._calculator.scale(n,this._extent)},t.type="time",t}(uc),hy=[["second",fk],["minute",dk],["hour",W0],["quarter-day",W0*6],["half-day",W0*12],["day",qo*1.2],["half-week",qo*3.5],["week",qo*7],["month",qo*31],["quarter",qo*95],["half-year",xL/2],["year",xL]];function JU(e,t,n,r){return Tx(new Date(t),e,r).getTime()===Tx(new Date(n),e,r).getTime()}function upe(e,t){return e/=qo,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function cpe(e){var t=30*qo;return e/=t,e>6?6:e>3?3:e>2?2:1}function fpe(e){return e/=W0,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function OD(e,t){return e/=t?dk:fk,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function dpe(e){return FH(e,!0)}function vpe(e,t,n){var r=Math.max(0,Xt(mo,t)-1);return Tx(new Date(e),mo[r],n).getTime()}function hpe(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var a=n.getTime()-r;return function(o,i){return Math.max(0,Math.round((i-o)/a))}}function ppe(e,t,n,r,a,o){var i=1e4,s=Sfe,l=0;function u(I,O,z,$,P,L,V){for(var B=hpe(P,I),F=O,U=new Date(F);F<z&&F<=r[1]&&(V.push({value:F}),!(l++>i));)if(U[P](U[$]()+I),F=U.getTime(),o){var G=o.calcNiceTickMultiple(F,B);G>0&&(U[P](U[$]()+G*I),F=U.getTime())}V.push({value:F,notAdd:!0})}function c(I,O,z){var $=[],P=!O.length;if(!JU(G0(I),r[0],r[1],n)){P&&(O=[{value:vpe(r[0],I,n)},{value:r[1]}]);for(var L=0;L<O.length-1;L++){var V=O[L].value,B=O[L+1].value;if(V!==B){var F=void 0,U=void 0,G=void 0,Y=!1;switch(I){case"year":F=Math.max(1,Math.round(t/qo/365)),U=nG(n),G=Afe(n);break;case"half-year":case"quarter":case"month":F=cpe(t),U=vk(n),G=rG(n);break;case"week":case"half-week":case"day":F=upe(t),U=hk(n),G=aG(n),Y=!0;break;case"half-day":case"quarter-day":case"hour":F=fpe(t),U=pk(n),G=oG(n);break;case"minute":F=OD(t,!0),U=gk(n),G=iG(n);break;case"second":F=OD(t,!1),U=mk(n),G=sG(n);break;case"millisecond":F=dpe(t),U=yk(n),G=lG(n);break}B>=r[0]&&V<=r[1]&&u(F,V,B,U,G,Y,$),I==="year"&&z.length>1&&L===0&&z.unshift({value:z[0].value-F})}}for(var L=0;L<$.length;L++)z.push($[L])}}for(var f=[],d=[],v=0,h=0,p=0;p<s.length;++p){var g=G0(s[p]);if(Tfe(s[p])){c(s[p],f[f.length-1]||[],d);var m=s[p+1]?G0(s[p+1]):null;if(g!==m){if(d.length){h=v,d.sort(function(I,O){return I.value-O.value});for(var y=[],b=0;b<d.length;++b){var w=d[b].value;(b===0||d[b-1].value!==w)&&(y.push(d[b]),w>=r[0]&&w<=r[1]&&v++)}var S=a/t;if(v>S*1.5&&h>S/1.5||(f.push(y),v>S||e===s[p]))break}d=[]}}}for(var x=In($e(f,function(I){return In(I,function(O){return O.value>=r[0]&&O.value<=r[1]&&!O.notAdd})}),function(I){return I.length>0}),C=[],T=x.length-1,p=0;p<x.length;++p)for(var M=x[p],k=0;k<M.length;++k){var E=Dv(M[k].value,n);C.push({value:M[k].value,time:{level:T-p,upperTimeUnit:E,lowerTimeUnit:E}})}C.sort(function(I,O){return I.value-O.value});for(var A=[],p=0;p<C.length;++p)(p===0||C[p].value!==C[p-1].value)&&A.push(C[p]);return A}Ed.registerClass(ZU);const QU=ZU;var jx=xr,gpe=Math.floor,mpe=Math.ceil,py=Math.pow,gy=Math.log,eK=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new uc,n}return t.prototype.getTicks=function(n){n=n||{};var r=this._extent.slice(),a=this._originalScale.getExtent(),o=e.prototype.getTicks.call(this,n),i=this.base,s=this._originalScale._innerGetBreaks(),l=Cr();return $e(o,function(u){var c=u.value,f=null,d=py(i,c);c===r[0]&&this._fixMin?f=a[0]:c===r[1]&&this._fixMax&&(f=a[1]);var v;if(l){var h=l.getTicksLogTransformBreak(u,i,s,my);v=h.vBreak,f==null&&(f=h.brkRoundingCriterion)}return f!=null&&(d=my(d,f)),{value:d,break:v}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(n,r){this._originalScale.setExtent(n,r);var a=Ux(this.base,[n,r]);e.prototype.setExtent.call(this,a[0],a[1])},t.prototype.getExtent=function(){var n=this.base,r=e.prototype.getExtent.call(this);r[0]=py(n,r[0]),r[1]=py(n,r[1]);var a=this._originalScale.getExtent();return this._fixMin&&(r[0]=my(r[0],a[0])),this._fixMax&&(r[1]=my(r[1],a[1])),r},t.prototype.unionExtentFromData=function(n,r){this._originalScale.unionExtentFromData(n,r);var a=Ux(this.base,n.getApproximateExtent(r),!0);this._innerUnionExtent(a)},t.prototype.calcNiceTicks=function(n){n=n||10;var r=this._extent.slice(),a=this._getExtentSpanWithBreaks();if(!(!isFinite(a)||a<=0)){var o=$le(a),i=n/a*o;for(i<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var s=[jx(mpe(r[0]/o)*o),jx(gpe(r[1]/o)*o)];this._interval=o,this._intervalPrecision=Ig(o),this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){e.prototype.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},t.prototype.contain=function(n){return n=gy(n)/gy(this.base),e.prototype.contain.call(this,n)},t.prototype.normalize=function(n){return n=gy(n)/gy(this.base),e.prototype.normalize.call(this,n)},t.prototype.scale=function(n){return n=e.prototype.scale.call(this,n),py(this.base,n)},t.prototype.setBreaksFromOption=function(n){var r=Cr();if(r){var a=r.logarithmicParseBreaksFromOption(n,this.base,lt(this.parse,this)),o=a.parsedOriginal,i=a.parsedLogged;this._originalScale._innerSetBreak(o),this._innerSetBreak(i)}},t.type="log",t}(uc);function my(e,t){return jx(e,ys(t))}Ed.registerClass(eK);const ype=eK;var bpe=function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var a=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var o=n.get("min",!0);o==null&&(o=n.get("startValue",!0));var i=this._modelMinRaw=o;kt(i)?this._modelMinNum=yy(t,i({min:r[0],max:r[1]})):i!=="dataMin"&&(this._modelMinNum=yy(t,i));var s=this._modelMaxRaw=n.get("max",!0);if(kt(s)?this._modelMaxNum=yy(t,s({min:r[0],max:r[1]})):s!=="dataMax"&&(this._modelMaxNum=yy(t,s)),a)this._axisDataLen=n.getCategories().length;else{var l=n.get("boundaryGap"),u=Ve(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Ri(u[0],1),Ri(u[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,n=this._dataMin,r=this._dataMax,a=this._axisDataLen,o=this._boundaryGapInner,i=t?null:r-n||Math.abs(n),s=this._modelMinRaw==="dataMin"?n:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?a?0:NaN:n-o[0]*i),l==null&&(l=t?a?a-1:NaN:r+o[1]*i),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=Ma(s)||Ma(l)||t&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,v=this._determinedMax;return d!=null&&(s=d,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,n){this[wpe[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=_pe[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e}(),_pe={min:"_determinedMin",max:"_determinedMax"},wpe={min:"_dataMin",max:"_dataMax"};function tK(e,t,n){var r=e.rawExtentInfo;return r||(r=new bpe(e,t,n),e.rawExtentInfo=r,r)}function yy(e,t){return t==null?null:Ma(t)?NaN:e.parse(t)}function nK(e,t){var n=e.type,r=tK(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var a=r.min,o=r.max,i=t.ecModel;if(i&&n==="time"){var s=GU("bar",i),l=!1;if(j(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=UU(s),c=Spe(a,o,t,u);a=c.min,o=c.max}}return{extent:[a,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function Spe(e,t,n,r){var a=n.axis.getExtent(),o=Math.abs(a[1]-a[0]),i=ipe(r,n.axis);if(i===void 0)return{min:e,max:t};var s=1/0;j(i,function(v){s=Math.min(v.offset,s)});var l=-1/0;j(i,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/o,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function yh(e,t){var n=t,r=nK(e,n),a=r.extent,o=n.get("splitNumber");e instanceof ype&&(e.base=n.get("logBase"));var i=e.type,s=n.get("interval"),l=i==="interval"||i==="time";e.setBreaksFromOption(aK(n)),e.setExtent(a[0],a[1]),e.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function Jw(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Dg({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new QU({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Ed.getClass(t)||uc)}}function xpe(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function ip(e){var t=e.getLabelModel().get("formatter");if(e.type==="time"){var n=xfe(t);return function(a,o){return e.scale.getFormattedLabel(a,o,n)}}else{if(st(t))return function(a){var o=e.scale.getLabel(a),i=t.replace("{value}",o??"");return i};if(kt(t)){if(e.type==="category")return function(a,o){return t(Xb(e,a),a.value-e.scale.getExtent()[0],null)};var r=Cr();return function(a,o){var i=null;return r&&(i=r.makeAxisLabelFormatterParamBreak(i,a.break)),t(Xb(e,a),o,i)}}else return function(a){return e.scale.getLabel(a)}}}function Xb(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Fk(e){var t=e.get("interval");return t??"auto"}function rK(e){return e.type==="category"&&Fk(e.getLabelModel())===0}function Zb(e,t){var n={};return j(e.mapDimensionsAll(t),function(r){n[$U(e,r)]=!0}),dn(n)}function Cpe(e,t,n){t&&j(Zb(t,n),function(r){var a=t.getApproximateExtent(r);a[0]<e[0]&&(e[0]=a[0]),a[1]>e[1]&&(e[1]=a[1])})}function bh(e){return e==="middle"||e==="center"}function Pg(e){return e.getShallow("show")}function aK(e){var t=e.get("breaks",!0);if(t!=null)return!Cr()||!Tpe(e.axis)?void 0:t}function Tpe(e){return(e.dim==="x"||e.dim==="y"||e.dim==="z"||e.dim==="single")&&e.type!=="category"}var $m=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),kpe=1e-8;function ND(e,t){return Math.abs(e-t)<kpe}function df(e,t,n){var r=0,a=e[0];if(!a)return!1;for(var o=1;o<e.length;o++){var i=e[o];r+=ml(a[0],a[1],i[0],i[1],t,n),a=i}var s=e[0];return(!ND(a[0],s[0])||!ND(a[1],s[1]))&&(r+=ml(a[0],a[1],s[0],s[1],t,n)),r!==0}var Mpe=[];function h6(e,t){for(var n=0;n<e.length;n++)_r(e[n],e[n],t)}function BD(e,t,n,r){for(var a=0;a<e.length;a++){var o=e[a];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(Ru(t,t,o),Ou(n,n,o))}}function Ape(e){for(var t=0,n=0,r=0,a=e.length,o=e[a-1][0],i=e[a-1][1],s=0;s<a;s++){var l=e[s][0],u=e[s][1],c=o*u-l*i;t+=c,n+=(o+l)*c,r+=(i+u)*c,o=l,i=u}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}var oK=function(){function e(t){this.name=t}return e.prototype.setCenter=function(t){this._center=t},e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},e}(),VD=function(){function e(t,n){this.type="polygon",this.exterior=t,this.interiors=n}return e}(),$D=function(){function e(t){this.type="linestring",this.points=t}return e}(),iK=function(e){ye(t,e);function t(n,r,a){var o=e.call(this,n)||this;return o.type="geoJSON",o.geometries=r,o._center=a&&[a[0],a[1]],o}return t.prototype.calcCenter=function(){for(var n=this.geometries,r,a=0,o=0;o<n.length;o++){var i=n[o],s=i.exterior,l=s&&s.length;l>a&&(r=i,a=l)}if(r)return Ape(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(n){var r=this._rect;if(r&&!n)return r;var a=[1/0,1/0],o=[-1/0,-1/0],i=this.geometries;return j(i,function(s){s.type==="polygon"?BD(s.exterior,a,o,n):j(s.points,function(l){BD(l,a,o,n)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(o[0])&&isFinite(o[1])||(a[0]=a[1]=o[0]=o[1]=0),r=new Ot(a[0],a[1],o[0]-a[0],o[1]-a[1]),n||(this._rect=r),r},t.prototype.contain=function(n){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(n[0],n[1]))return!1;e:for(var o=0,i=a.length;o<i;o++){var s=a[o];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(df(l,n[0],n[1])){for(var c=0;c<(u?u.length:0);c++)if(df(u[c],n[0],n[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(n,r,a,o){var i=this.getBoundingRect(),s=i.width/i.height;a?o||(o=a/s):a=s*o;for(var l=new Ot(n,r,a,o),u=i.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var d=c[f];d.type==="polygon"?(h6(d.exterior,u),j(d.interiors,function(v){h6(v,u)})):j(d.points,function(v){h6(v,u)})}i=this._rect,i.copy(l),this._center=[i.x+i.width/2,i.y+i.height/2]},t.prototype.cloneShallow=function(n){n==null&&(n=this.name);var r=new t(n,this.geometries,this._center);return r._rect=this._rect,r.transformTo=null,r},t}(oK),Epe=function(e){ye(t,e);function t(n,r){var a=e.call(this,n)||this;return a.type="geoSVG",a._elOnlyForCalculate=r,a}return t.prototype.calcCenter=function(){for(var n=this._elOnlyForCalculate,r=n.getBoundingRect(),a=[r.x+r.width/2,r.y+r.height/2],o=Mw(Mpe),i=n;i&&!i.isGeoSVGGraphicRoot;)As(o,i.getLocalTransform(),o),i=i.parent;return Pi(o,o),_r(a,a,o),a},t}(oK);function Ipe(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n==null&&(n=1024);var r=t.features;return j(r,function(a){var o=a.geometry,i=o.encodeOffsets,s=o.coordinates;if(i)switch(o.type){case"LineString":o.coordinates=sK(s,i,n);break;case"Polygon":p6(s,i,n);break;case"MultiLineString":p6(s,i,n);break;case"MultiPolygon":j(s,function(l,u){return p6(l,i[u],n)})}}),t.UTF8Encoding=!1,t}function p6(e,t,n){for(var r=0;r<e.length;r++)e[r]=sK(e[r],t[r],n)}function sK(e,t,n){for(var r=[],a=t[0],o=t[1],i=0;i<e.length;i+=2){var s=e.charCodeAt(i)-64,l=e.charCodeAt(i+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=o,a=s,o=l,r.push([s/n,l/n])}return r}function Lpe(e,t){return e=Ipe(e),$e(In(e.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var r=n.properties,a=n.geometry,o=[];switch(a.type){case"Polygon":var i=a.coordinates;o.push(new VD(i[0],i.slice(1)));break;case"MultiPolygon":j(a.coordinates,function(l){l[0]&&o.push(new VD(l[0],l.slice(1)))});break;case"LineString":o.push(new $D([a.coordinates]));break;case"MultiLineString":o.push(new $D(a.coordinates))}var s=new iK(r[t||"name"],o,r.cp);return s.properties=r,s})}var Dpe=an(),j0=an(),Oi={estimate:1,determine:2};function Jb(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function lK(e,t){var n=$e(t,function(r){return e.scale.parse(r)});return e.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function Ppe(e,t){var n=e.getLabelModel().get("customValues");if(n){var r=ip(e),a=e.scale.getExtent(),o=lK(e,n),i=In(o,function(s){return s>=a[0]&&s<=a[1]});return{labels:$e(i,function(s){var l={value:s};return{formattedLabel:r(l),rawLabel:e.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return e.type==="category"?Ope(e,t):Bpe(e)}function Rpe(e,t,n){var r=e.getTickModel().get("customValues");if(r){var a=e.scale.getExtent(),o=lK(e,r);return{ticks:In(o,function(i){return i>=a[0]&&i<=a[1]})}}return e.type==="category"?Npe(e,t):{ticks:$e(e.scale.getTicks(n),function(i){return i.value})}}function Ope(e,t){var n=e.getLabelModel(),r=uK(e,n,t);return!n.get("show")||e.scale.isBlank()?{labels:[]}:r}function uK(e,t,n){var r=$pe(e),a=Fk(t),o=n.kind===Oi.estimate;if(!o){var i=fK(r,a);if(i)return i}var s,l;kt(a)?s=hK(e,a):(l=a==="auto"?zpe(e,n):a,s=vK(e,l));var u={labels:s,labelCategoryInterval:l};return o?n.out.noPxChangeTryDetermine.push(function(){return Yx(r,a,u),!0}):Yx(r,a,u),u}function Npe(e,t){var n=Vpe(e),r=Fk(t),a=fK(n,r);if(a)return a;var o,i;if((!t.get("show")||e.scale.isBlank())&&(o=[]),kt(r))o=hK(e,r,!0);else if(r==="auto"){var s=uK(e,e.getLabelModel(),Jb(Oi.determine));i=s.labelCategoryInterval,o=$e(s.labels,function(l){return l.tickValue})}else i=r,o=vK(e,i,!0);return Yx(n,r,{ticks:o,tickCategoryInterval:i})}function Bpe(e){var t=e.scale.getTicks(),n=ip(e);return{labels:$e(t,function(r,a){return{formattedLabel:n(r,a),rawLabel:e.scale.getLabel(r),tickValue:r.value,time:r.time,break:r.break}})}}var Vpe=cK("axisTick"),$pe=cK("axisLabel");function cK(e){return function(n){return j0(n)[e]||(j0(n)[e]={list:[]})}}function fK(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function Yx(e,t,n){return e.list.push({key:t,value:n}),n}function zpe(e,t){if(t.kind===Oi.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return j0(e).autoInterval=n,!0}),n}var r=j0(e).autoInterval;return r??(j0(e).autoInterval=e.calculateCategoryInterval(t))}function Fpe(e,t){var n=t.kind,r=Wpe(e),a=ip(e),o=(r.axisRotate-r.labelRotate)/180*Math.PI,i=e.scale,s=i.getExtent(),l=i.count();if(s[1]-s[0]<1)return 0;var u=1,c=40;l>c&&(u=Math.max(1,Math.floor(l/c)));for(var f=s[0],d=e.dataToCoord(f+1)-e.dataToCoord(f),v=Math.abs(d*Math.cos(o)),h=Math.abs(d*Math.sin(o)),p=0,g=0;f<=s[1];f+=u){var m=0,y=0,b=Iw(a({value:f}),r.font,"center","top");m=b.width*1.3,y=b.height*1.3,p=Math.max(p,m,7),g=Math.max(g,y,7)}var w=p/v,S=g/h;isNaN(w)&&(w=1/0),isNaN(S)&&(S=1/0);var x=Math.max(0,Math.floor(Math.min(w,S)));if(n===Oi.estimate)return t.out.noPxChangeTryDetermine.push(lt(Hpe,null,e,x,l)),x;var C=dK(e,x,l);return C??x}function Hpe(e,t,n){return dK(e,t,n)==null}function dK(e,t,n){var r=Dpe(e.model),a=e.getExtent(),o=r.lastAutoInterval,i=r.lastTickCount;if(o!=null&&i!=null&&Math.abs(o-t)<=1&&Math.abs(i-n)<=1&&o>t&&r.axisExtent0===a[0]&&r.axisExtent1===a[1])return o;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=a[0],r.axisExtent1=a[1]}function Wpe(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 vK(e,t,n){var r=ip(e),a=e.scale,o=a.getExtent(),i=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=rK(e),d=i.get("showMinLabel")||f,v=i.get("showMaxLabel")||f;d&&u!==o[0]&&p(o[0]);for(var h=u;h<=o[1];h+=l)p(h);v&&h-l!==o[1]&&p(o[1]);function p(g){var m={value:g};s.push(n?g:{formattedLabel:r(m),rawLabel:a.getLabel(m),tickValue:g,time:void 0,break:void 0})}return s}function hK(e,t,n){var r=e.scale,a=ip(e),o=[];return j(r.getTicks(),function(i){var s=r.getLabel(i),l=i.value;t(i.value,s)&&o.push(n?l:{formattedLabel:a(i),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),o}var zD=[0,1],Gpe=function(){function e(t,n,r){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=n,this._extent=r||[0,0]}return e.prototype.contain=function(t){var n=this._extent,r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return t>=r&&t<=a},e.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return $H(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,n){var r=this._extent;r[0]=t,r[1]=n},e.prototype.dataToCoord=function(t,n){var r=this._extent,a=this.scale;return t=a.normalize(a.parse(t)),this.onBand&&a.type==="ordinal"&&(r=r.slice(),FD(r,a.count())),En(t,zD,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),FD(r,a.count()));var o=En(t,r,zD,n);return this.scale.scale(o)},e.prototype.pointToData=function(t,n){},e.prototype.getTicksCoords=function(t){t=t||{};var n=t.tickModel||this.getTickModel(),r=Rpe(this,n,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),a=r.ticks,o=$e(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),i=n.get("alignWithLabel");return Upe(this,o,i,t.clamp),o},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),a=$e(r,function(o){return $e(o,function(i){return{coord:this.dataToCoord(i),tickValue:i}},this)},this);return a},e.prototype.getViewLabels=function(t){return t=t||Jb(Oi.determine),Ppe(this,t).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/r},e.prototype.calculateCategoryInterval=function(t){return t=t||Jb(Oi.determine),Fpe(this,t)},e}();function FD(e,t){var n=e[1]-e[0],r=t,a=n/r/2;e[0]+=a,e[1]-=a}function Upe(e,t,n,r){var a=t.length;if(!e.onBand||n||!a)return;var o=e.getExtent(),i,s;if(a===1)t[0].coord=o[0],t[0].onBand=!0,i=t[1]={coord:o[1],tickValue:t[0].tickValue,onBand:!0};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;j(t,function(v){v.coord-=u/2,v.onBand=!0});var c=e.scale.getExtent();s=1+c[1]-t[a-1].tickValue,i={coord:t[a-1].coord+u*s,tickValue:c[1]+1,onBand:!0},t.push(i)}var f=o[0]>o[1];d(t[0].coord,o[0])&&(r?t[0].coord=o[0]:t.shift()),r&&d(o[0],t[0].coord)&&t.unshift({coord:o[0],onBand:!0}),d(o[1],i.coord)&&(r?i.coord=o[1]:t.pop()),r&&d(i.coord,o[1])&&t.push({coord:o[1],onBand:!0});function d(v,h){return v=xr(v),h=xr(h),f?v>h:v<h}}const Gi=Gpe;var Fp=Math.PI*2,Xc=Gs.CMD,Kpe=["top","right","bottom","left"];function jpe(e,t,n,r,a){var o=n.width,i=n.height;switch(e){case"top":r.set(n.x+o/2,n.y-t),a.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+i+t),a.set(0,1);break;case"left":r.set(n.x-t,n.y+i/2),a.set(-1,0);break;case"right":r.set(n.x+o+t,n.y+i/2),a.set(1,0);break}}function Ype(e,t,n,r,a,o,i,s,l){i-=e,s-=t;var u=Math.sqrt(i*i+s*s);i/=u,s/=u;var c=i*n+e,f=s*n+t;if(Math.abs(r-a)%Fp<1e-4)return l[0]=c,l[1]=f,u-n;if(o){var d=r;r=wo(a),a=wo(d)}else r=wo(r),a=wo(a);r>a&&(a+=Fp);var v=Math.atan2(s,i);if(v<0&&(v+=Fp),v>=r&&v<=a||v+Fp>=r&&v+Fp<=a)return l[0]=c,l[1]=f,u-n;var h=n*Math.cos(r)+e,p=n*Math.sin(r)+t,g=n*Math.cos(a)+e,m=n*Math.sin(a)+t,y=(h-i)*(h-i)+(p-s)*(p-s),b=(g-i)*(g-i)+(m-s)*(m-s);return y<b?(l[0]=h,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(b))}function Qb(e,t,n,r,a,o,i,s){var l=a-e,u=o-t,c=n-e,f=r-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var v=l*c+u*f,h=v/d;s&&(h=Math.min(Math.max(h,0),1)),h*=d;var p=i[0]=e+h*c,g=i[1]=t+h*f;return Math.sqrt((p-a)*(p-a)+(g-o)*(g-o))}function pK(e,t,n,r,a,o,i){n<0&&(e=e+n,n=-n),r<0&&(t=t+r,r=-r);var s=e+n,l=t+r,u=i[0]=Math.min(Math.max(a,e),s),c=i[1]=Math.min(Math.max(o,t),l);return Math.sqrt((u-a)*(u-a)+(c-o)*(c-o))}var mi=[];function qpe(e,t,n){var r=pK(t.x,t.y,t.width,t.height,e.x,e.y,mi);return n.set(mi[0],mi[1]),r}function Xpe(e,t,n){for(var r=0,a=0,o=0,i=0,s,l,u=1/0,c=t.data,f=e.x,d=e.y,v=0;v<c.length;){var h=c[v++];v===1&&(r=c[v],a=c[v+1],o=r,i=a);var p=u;switch(h){case Xc.M:o=c[v++],i=c[v++],r=o,a=i;break;case Xc.L:p=Qb(r,a,c[v],c[v+1],f,d,mi,!0),r=c[v++],a=c[v++];break;case Xc.C:p=bH(r,a,c[v++],c[v++],c[v++],c[v++],c[v],c[v+1],f,d,mi),r=c[v++],a=c[v++];break;case Xc.Q:p=wH(r,a,c[v++],c[v++],c[v],c[v+1],f,d,mi),r=c[v++],a=c[v++];break;case Xc.A:var g=c[v++],m=c[v++],y=c[v++],b=c[v++],w=c[v++],S=c[v++];v+=1;var x=!!(1-c[v++]);s=Math.cos(w)*y+g,l=Math.sin(w)*b+m,v<=1&&(o=s,i=l);var C=(f-g)*b/y+g;p=Ype(g,m,b,w,w+S,x,C,d,mi),r=Math.cos(w+S)*y+g,a=Math.sin(w+S)*b+m;break;case Xc.R:o=r=c[v++],i=a=c[v++];var T=c[v++],M=c[v++];p=pK(o,i,T,M,f,d,mi);break;case Xc.Z:p=Qb(r,a,o,i,f,d,mi,!0),r=o,a=i;break}p<u&&(u=p,n.set(mi[0],mi[1]))}return u}var bi=new Dt,Hn=new Dt,gr=new Dt,ws=new Dt,gs=new Dt;function HD(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var a=e.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],i=a.candidates||Kpe,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=a.anchor,c=e.getComputedTransform(),f=c&&Pi([],c),d=t.get("length2")||0;u&&gr.copy(u);for(var v=0;v<i.length;v++){var h=i[v];jpe(h,0,s,bi,ws),Dt.scaleAndAdd(Hn,bi,ws,d),Hn.transform(f);var p=e.getBoundingRect(),g=u?u.distance(Hn):e instanceof ln?Xpe(Hn,e.path,gr):qpe(Hn,p,gr);g<l&&(l=g,Hn.transform(c),gr.transform(c),gr.toArray(o[0]),Hn.toArray(o[1]),bi.toArray(o[2]))}gK(o,t.get("minTurnAngle")),n.setShape({points:o})}}}var e_=[],$a=new Dt;function gK(e,t){if(t<=180&&t>0){t=t/180*Math.PI,bi.fromArray(e[0]),Hn.fromArray(e[1]),gr.fromArray(e[2]),Dt.sub(ws,bi,Hn),Dt.sub(gs,gr,Hn);var n=ws.len(),r=gs.len();if(!(n<.001||r<.001)){ws.scale(1/n),gs.scale(1/r);var a=ws.dot(gs),o=Math.cos(t);if(o<a){var i=Qb(Hn.x,Hn.y,gr.x,gr.y,bi.x,bi.y,e_,!1);$a.fromArray(e_),$a.scaleAndAdd(gs,i/Math.tan(Math.PI-t));var s=gr.x!==Hn.x?($a.x-Hn.x)/(gr.x-Hn.x):($a.y-Hn.y)/(gr.y-Hn.y);if(isNaN(s))return;s<0?Dt.copy($a,Hn):s>1&&Dt.copy($a,gr),$a.toArray(e[1])}}}}function Zpe(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,bi.fromArray(e[0]),Hn.fromArray(e[1]),gr.fromArray(e[2]),Dt.sub(ws,Hn,bi),Dt.sub(gs,gr,Hn);var r=ws.len(),a=gs.len();if(!(r<.001||a<.001)){ws.scale(1/r),gs.scale(1/a);var o=ws.dot(t),i=Math.cos(n);if(o<i){var s=Qb(Hn.x,Hn.y,gr.x,gr.y,bi.x,bi.y,e_,!1);$a.fromArray(e_);var l=Math.PI/2,u=Math.acos(gs.dot(t)),c=l+u-n;if(c>=l)Dt.copy($a,gr);else{$a.scaleAndAdd(gs,s/Math.tan(Math.PI/2-c));var f=gr.x!==Hn.x?($a.x-Hn.x)/(gr.x-Hn.x):($a.y-Hn.y)/(gr.y-Hn.y);if(isNaN(f))return;f<0?Dt.copy($a,Hn):f>1&&Dt.copy($a,gr)}$a.toArray(e[1])}}}}function g6(e,t,n,r){var a=n==="normal",o=a?e:e.ensureState(n);o.ignore=t;var i=r.get("smooth");i&&i===!0&&(i=.3),o.shape=o.shape||{},i>0&&(o.shape.smooth=i);var s=r.getModel("lineStyle").getLineStyle();a?e.useStyle(s):o.style=s}function Jpe(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var a=Pu(r[0],r[1]),o=Pu(r[1],r[2]);if(!a||!o){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var i=Math.min(a,o)*n,s=C2([],r[1],r[0],i/a),l=C2([],r[1],r[2],i/o),u=C2([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)e.lineTo(r[c][0],r[c][1])}function Hk(e,t,n){var r=e.getTextGuideLine(),a=e.getTextContent();if(!a){r&&e.removeTextGuideLine();return}for(var o=t.normal,i=o.get("show"),s=a.ignore,l=0;l<wg.length;l++){var u=wg[l],c=t[u],f=u==="normal";if(c){var d=c.get("show"),v=f?s:yt(a.states[u]&&a.states[u].ignore,s);if(v||!yt(d,i)){var h=f?r:r&&r.states[u];h&&(h.ignore=!0),r&&g6(r,!0,u,c);continue}r||(r=new La,e.setTextGuideLine(r),!f&&(s||!i)&&g6(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),g6(r,!1,u,c)}}if(r){Pt(r.style,n),r.style.fill=null;var p=o.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=p||!1,r.buildPath=Jpe}}function Wk(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<Ka.length;r++){var a=Ka[r];n[a]=e.getModel([a,t])}return n}var WD=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],Qpe=1,t_=2,mK=Qpe|t_;function n_(e,t,n){n=n||mK,t?e.dirty|=n:e.dirty&=~n}function yK(e,t){return t=t||mK,e.dirty==null||!!(e.dirty&t)}function Ks(e){if(e)return yK(e)&&bK(e,e.label,e),e}function bK(e,t,n){var r=t.getComputedTransform();e.transform=sk(e.transform,r);var a=e.localRect=Cg(e.localRect,t.getBoundingRect()),o=t.style,i=o.margin,s=n&&n.marginForce,l=n&&n.minMarginForce,u=n&&n.marginDefault,c=o.__marginType;c==null&&u&&(i=u,c=Lv.textMargin);for(var f=0;f<4;f++)m6[f]=c===Lv.minMargin&&l&&l[f]!=null?l[f]:s&&s[f]!=null?s[f]:i?i[f]:0;c===Lv.textMargin&&od(a,m6,!1,!1);var d=e.rect=Cg(e.rect,a);return r&&d.applyTransform(r),c===Lv.minMargin&&od(d,m6,!1,!1),e.axisAligned=ik(r),(e.label=e.label||{}).ignore=t.ignore,n_(e,!1),n_(e,!0,t_),e}var m6=[0,0,0,0];function e0e(e,t,n){return e.transform=sk(e.transform,n),e.localRect=Cg(e.localRect,t),e.rect=Cg(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=ik(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function qx(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 a=e.obb;a&&a.fromBoundingRect(e.localRect,n)}}function Xx(e,t){for(var n=0;n<WD.length;n++){var r=WD[n];e[r]==null&&(e[r]=t[r])}return Ks(e)}function GD(e){var t=e.obb;return(!t||yK(e,t_))&&(e.obb=t=t||new zW,t.fromBoundingRect(e.localRect,e.transform),n_(e,!1,t_)),t}function Zx(e,t,n,r,a){var o=e.length,i=Gt[t],s=Tr[t];if(o<2)return!1;e.sort(function(M,k){return M.rect[i]-k.rect[i]});for(var l=0,u,c=!1,f=0,d=0;d<o;d++){var v=e[d],h=v.rect;u=h[i]-l,u<0&&(h[i]-=u,v.label[i]-=u,c=!0);var p=Math.max(-u,0);f+=p,l=h[i]+h[s]}f>0&&a&&x(-f/o,0,o);var g=e[0],m=e[o-1],y,b;w(),y<0&&C(-y,.8),b<0&&C(b,.8),w(),S(y,b,1),S(b,y,-1),w(),y<0&&T(-y),b<0&&T(b);function w(){y=g.rect[i]-n,b=r-m.rect[i]-m.rect[s]}function S(M,k,E){if(M<0){var A=Math.min(k,-M);if(A>0){x(A*E,0,o);var I=A+M;I<0&&C(-I*E,1)}else C(-M*E,1)}}function x(M,k,E){M!==0&&(c=!0);for(var A=k;A<E;A++){var I=e[A],O=I.rect;O[i]+=M,I.label[i]+=M}}function C(M,k){for(var E=[],A=0,I=1;I<o;I++){var O=e[I-1].rect,z=Math.max(e[I].rect[i]-O[i]-O[s],0);E.push(z),A+=z}if(A){var $=Math.min(Math.abs(M)/A,k);if(M>0)for(var I=0;I<o-1;I++){var P=E[I]*$;x(P,0,I+1)}else for(var I=o-1;I>0;I--){var P=E[I-1]*$;x(-P,I,o)}}}function T(M){var k=M<0?-1:1;M=Math.abs(M);for(var E=Math.ceil(M/(o-1)),A=0;A<o-1;A++)if(k>0?x(E,0,A+1):x(-E,o-A-1,o),M-=E,M<=0)return}return c}function t0e(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.defaultAttr,a=n.labelLine;n.label.attr("ignore",r.ignore),a&&a.attr("ignore",r.labelGuideIgnore)}}function _K(e){var t=[];e.sort(function(u,c){return(c.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||c.priority-u.priority});function n(u){if(!u.ignore){var c=u.ensureState("emphasis");c.ignore==null&&(c.ignore=!1)}u.ignore=!0}for(var r=0;r<e.length;r++){var a=Ks(e[r]);if(!a.label.ignore){for(var o=a.label,i=a.labelLine,s=!1,l=0;l<t.length;l++)if(Qw(a,t[l],null,{touchThreshold:.05})){s=!0;break}s?(n(o),i&&n(i)):t.push(a)}}}function Qw(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:GD(e).intersect(GD(t),n,r)}function n0e(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function r0e(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:n0e(r&&r.shape.points)}}var UD=["align","verticalAlign","width","height","fontSize"],Ra=new kl,y6=an(),a0e=an();function by(e,t,n){for(var r=0;r<n.length;r++){var a=n[r];t[a]!=null&&(e[a]=t[a])}}var _y=["x","y","rotation"],o0e=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,n,r,a,o){var i=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),c=a.getBoundingRect().plain();Ot.applyTransform(c,c,u),u?Ra.setLocalTransform(u):(Ra.x=Ra.y=Ra.rotation=Ra.originX=Ra.originY=0,Ra.scaleX=Ra.scaleY=1),Ra.rotation=wo(Ra.rotation);var f=a.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var v=f.getComputedTransform();Ot.applyTransform(d,d,v)}var h=d&&f.getTextGuideLine();this._labelList.push({label:a,labelLine:h,seriesModel:r,dataIndex:t,dataType:n,layoutOptionOrCb:o,layoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:h&&h.ignore,x:Ra.x,y:Ra.y,scaleX:Ra.scaleX,scaleY:Ra.scaleY,rotation:Ra.rotation,style:{x:i.x,y:i.y,align:i.align,verticalAlign:i.verticalAlign,width:i.width,height:i.height,fontSize:i.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var n=this;this._chartViewList.push(t);var r=t.__model,a=r.get("labelLayout");(kt(a)||dn(a).length)&&t.group.traverse(function(o){if(o.ignore)return!0;var i=o.getTextContent(),s=Vt(o);i&&!i.disableLabelLayout&&n._addLabel(s.dataIndex,s.dataType,r,i,a)})},e.prototype.updateLayoutConfig=function(t){var n=t.getWidth(),r=t.getHeight();function a(b,w){return function(){HD(b,w)}}for(var o=0;o<this._labelList.length;o++){var i=this._labelList[o],s=i.label,l=s.__hostTarget,u=i.defaultAttr,c=void 0;kt(i.layoutOptionOrCb)?c=i.layoutOptionOrCb(r0e(i,l)):c=i.layoutOptionOrCb,c=c||{},i.layoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(c.x!=null?(s.x=at(c.x,n),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=at(c.y,r),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:c.labelLinePoints}),d=!1)}var h=y6(s);h.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<UD.length;p++){var g=UD[p];s.setStyle(g,c[g]!=null?c[g]:u.style[g])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var m=i.seriesModel;if(i.dataIndex!=null){var y=i.seriesModel.getData(i.dataType);m=y.getItemModel(i.dataIndex)}s.on("drag",a(l,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var n=t.getWidth(),r=t.getHeight(),a=[];j(this._labelList,function(l){l.defaultAttr.ignore||a.push(Xx({},l))});var o=In(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),i=In(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});Zx(o,0,0,n),Zx(i,1,0,r);var s=In(a,function(l){return l.layoutOption.hideOverlap});t0e(s),_K(s)},e.prototype.processLabelsOverall=function(){var t=this;j(this._chartViewList,function(n){var r=n.__model,a=n.ignoreLabelLineUpdate,o=r.isAnimationEnabled();n.group.traverse(function(i){if(i.ignore&&!i.forceLabelAnimation)return!0;var s=!a,l=i.getTextContent();!s&&l&&(s=y6(l).needsUpdateLabelLine),s&&t._updateLabelLine(i,r),o&&t._animateLabels(i,r)})})},e.prototype._updateLabelLine=function(t,n){var r=t.getTextContent(),a=Vt(t),o=a.dataIndex;if(r&&o!=null){var i=n.getData(a.dataType),s=i.getItemModel(o),l={},u=i.getItemVisual(o,"style");if(u){var c=i.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");Hk(t,Wk(s),l),HD(t,f)}},e.prototype._animateLabels=function(t,n){var r=t.getTextContent(),a=t.getTextGuideLine();if(r&&(t.forceLabelAnimation||!r.ignore&&!r.invisible&&!t.disableLabelAnimation&&!Yv(t))){var o=y6(r),i=o.oldLayout,s=Vt(t),l=s.dataIndex,u={x:r.x,y:r.y,rotation:r.rotation},c=n.getData(s.dataType);if(i){r.attr(i);var d=t.prevStates;d&&(Xt(d,"select")>=0&&r.attr(o.oldLayoutSelect),Xt(d,"emphasis")>=0&&r.attr(o.oldLayoutEmphasis)),Sn(r,u,n,l)}else if(r.attr(u),!ep(r).valueAnimation){var f=yt(r.style.opacity,1);r.style.opacity=0,Xn(r,{style:{opacity:f}},n,l)}if(o.oldLayout=u,r.states.select){var v=o.oldLayoutSelect={};by(v,u,_y),by(v,r.states.select,_y)}if(r.states.emphasis){var h=o.oldLayoutEmphasis={};by(h,u,_y),by(h,r.states.emphasis,_y)}ZW(r,l,c,n,n)}if(a&&!a.ignore&&!a.invisible){var o=a0e(a),i=o.oldLayout,p={points:a.shape.points};i?(a.attr({shape:i}),Sn(a,{shape:p},n)):(a.setShape(p),a.style.strokePercent=0,Xn(a,{style:{strokePercent:1}},n)),o.oldLayout=p}},e}();const i0e=o0e;var b6=an();function s0e(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){var a=b6(n).labelManager;a||(a=b6(n).labelManager=new i0e),a.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,n,r){var a=b6(n).labelManager;r.updatedSeries.forEach(function(o){a.addLabelsOfSeries(n.getViewOfSeriesModel(o))}),a.updateLayoutConfig(n),a.layout(n),a.processLabelsOverall()})}var _6=Math.sin,w6=Math.cos,wK=Math.PI,Zc=Math.PI*2,l0e=180/wK,u0e=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,n){this._add("M",t,n)},e.prototype.lineTo=function(t,n){this._add("L",t,n)},e.prototype.bezierCurveTo=function(t,n,r,a,o,i){this._add("C",t,n,r,a,o,i)},e.prototype.quadraticCurveTo=function(t,n,r,a){this._add("Q",t,n,r,a)},e.prototype.arc=function(t,n,r,a,o,i){this.ellipse(t,n,r,r,0,a,o,i)},e.prototype.ellipse=function(t,n,r,a,o,i,s,l){var u=s-i,c=!l,f=Math.abs(u),d=Vu(f-Zc)||(c?u>=Zc:-u>=Zc),v=u>0?u%Zc:u%Zc+Zc,h=!1;d?h=!0:Vu(f)?h=!1:h=v>=wK==!!c;var p=t+r*w6(i),g=n+a*_6(i);this._start&&this._add("M",p,g);var m=Math.round(o*l0e);if(d){var y=1/this._p,b=(c?1:-1)*(Zc-y);this._add("A",r,a,m,1,+c,t+r*w6(i+b),n+a*_6(i+b)),y>.01&&this._add("A",r,a,m,0,+c,p,g)}else{var w=t+r*w6(s),S=n+a*_6(s);this._add("A",r,a,m,+h,+c,w,S)}},e.prototype.rect=function(t,n,r,a){this._add("M",t,n),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,n,r,a,o,i,s,l,u){for(var c=[],f=this._p,d=1;d<arguments.length;d++){var v=arguments[d];if(isNaN(v)){this._invalid=!0;return}c.push(Math.round(v*f)/f)}this._d.push(t+c.join(" ")),this._start=t==="Z"},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}();const SK=u0e;var Y0="none",c0e=Math.round;function f0e(e){var t=e.fill;return t!=null&&t!==Y0}function d0e(e){var t=e.stroke;return t!=null&&t!==Y0}var Jx=["lineCap","miterLimit","lineJoin"],v0e=$e(Jx,function(e){return"stroke-"+e.toLowerCase()});function h0e(e,t,n,r){var a=t.opacity==null?1:t.opacity;if(n instanceof da){e("opacity",a);return}if(f0e(t)){var o=mg(t.fill);e("fill",o.color);var i=t.fillOpacity!=null?t.fillOpacity*o.opacity*a:o.opacity*a;(r||i<1)&&e("fill-opacity",i)}else e("fill",Y0);if(d0e(t)){var s=mg(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?n.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*a:s.opacity*a,f=t.strokeFirst;if((r||u!==1)&&e("stroke-width",u),(r||f)&&e("paint-order",f?"stroke":"fill"),(r||c<1)&&e("stroke-opacity",c),t.lineDash){var d=Lk(n),v=d[0],h=d[1];v&&(h=c0e(h||0),e("stroke-dasharray",v.join(",")),(h||r)&&e("stroke-dashoffset",h))}else r&&e("stroke-dasharray",Y0);for(var p=0;p<Jx.length;p++){var g=Jx[p];if(r||t[g]!==Rb[g]){var m=t[g]||Rb[g];m&&e(v0e[p],m)}}}else r&&e("stroke",Y0)}var xK="http://www.w3.org/2000/svg",CK="http://www.w3.org/1999/xlink",p0e="http://www.w3.org/2000/xmlns/",g0e="http://www.w3.org/XML/1998/namespace",KD="ecmeta_";function TK(e){return document.createElementNS(xK,e)}function Wr(e,t,n,r,a){return{tag:e,attrs:n||{},children:r,text:a,key:t}}function m0e(e,t){var n=[];if(t)for(var r in t){var a=t[r],o=r;a!==!1&&(a!==!0&&a!=null&&(o+='="'+a+'"'),n.push(o))}return"<"+e+" "+n.join(" ")+">"}function y0e(e){return"</"+e+">"}function Gk(e,t){t=t||{};var n=t.newline?`
|
||
`:"";function r(a){var o=a.children,i=a.tag,s=a.attrs,l=a.text;return m0e(i,s)+(i!=="style"?wa(l):l||"")+(o?""+n+$e(o,function(u){return r(u)}).join(n)+n:"")+y0e(i)}return r(e)}function b0e(e,t,n){n=n||{};var r=n.newline?`
|
||
`:"",a=" {"+r,o=r+"}",i=$e(dn(e),function(l){return l+a+$e(dn(e[l]),function(u){return u+":"+e[l][u]+";"}).join(r)+o}).join(r),s=$e(dn(t),function(l){return"@keyframes "+l+a+$e(dn(t[l]),function(u){return u+a+$e(dn(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(r)+o}).join(r)+o}).join(r);return!i&&!s?"":["<![CDATA[",i,s,"]]>"].join(r)}function Qx(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function jD(e,t,n,r){return Wr("svg","root",{width:e,height:t,xmlns:xK,"xmlns:xlink":CK,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+e+" "+t:!1},n)}var _0e=0;function kK(){return _0e++}var YD={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},tf="transform-origin";function w0e(e,t,n){var r=Pe({},e.shape);Pe(r,t),e.buildPath(n,r);var a=new SK;return a.reset(AH(e)),n.rebuildPath(a,1),a.generateStr(),a.getStr()}function S0e(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[tf]=n+"px "+r+"px")}var x0e={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function MK(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function C0e(e,t,n){var r=e.shape.paths,a={},o,i;if(j(r,function(l){var u=Qx(n.zrId);u.animation=!0,e4(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=dn(c),v=d.length;if(v){i=d[v-1];var h=c[i];for(var p in h){var g=h[p];a[p]=a[p]||{d:""},a[p].d+=g.d||""}for(var m in f){var y=f[m].animation;y.indexOf(i)>=0&&(o=y)}}}),!!o){t.d=!1;var s=MK(a,n);return o.replace(i,s)}}function qD(e){return st(e)?YD[e]?"cubic-bezier("+YD[e]+")":z5(e)?e:"":""}function e4(e,t,n,r){var a=e.animators,o=a.length,i=[];if(e instanceof Fw){var s=C0e(e,t,n);if(s)i.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var c=a[u],f=[c.getMaxTime()/1e3+"s"],d=qD(c.getClip().easing),v=c.getDelay();d?f.push(d):f.push("linear"),v&&f.push(v/1e3+"s"),c.getLoop()&&f.push("infinite");var h=f.join(" ");l[h]=l[h]||[h,[]],l[h][1].push(c)}function p(y){var b=y[1],w=b.length,S={},x={},C={},T="animation-timing-function";function M(re,ce,ie){for(var Z=re.getTracks(),se=re.getMaxTime(),J=0;J<Z.length;J++){var ae=Z[J];if(ae.needsAnimate()){var fe=ae.keyframes,ve=ae.propName;if(ie&&(ve=ie(ve)),ve)for(var me=0;me<fe.length;me++){var pe=fe[me],Ne=Math.round(pe.time/se*100)+"%",Ee=qD(pe.easing),_e=pe.rawValue;(st(_e)||gn(_e))&&(ce[Ne]=ce[Ne]||{},ce[Ne][ve]=pe.rawValue,Ee&&(ce[Ne][T]=Ee))}}}}for(var k=0;k<w;k++){var E=b[k],A=E.targetName;A?A==="shape"&&M(E,x):!r&&M(E,S)}for(var I in S){var O={};Lb(O,e),Pe(O,S[I]);var z=EH(O),$=S[I][T];C[I]=z?{transform:z}:{},S0e(C[I],O),$&&(C[I][T]=$)}var P,L=!0;for(var I in x){C[I]=C[I]||{};var V=!P,$=x[I][T];V&&(P=new Gs);var B=P.len();P.reset(),C[I].d=w0e(e,x[I],P);var F=P.len();if(!V&&B!==F){L=!1;break}$&&(C[I][T]=$)}if(!L)for(var I in C)delete C[I].d;if(!r)for(var k=0;k<w;k++){var E=b[k],A=E.targetName;A==="style"&&M(E,C,function(Z){return x0e[Z]})}for(var U=dn(C),G=!0,Y,k=1;k<U.length;k++){var X=U[k-1],te=U[k];if(C[X][tf]!==C[te][tf]){G=!1;break}Y=C[X][tf]}if(G&&Y){for(var I in C)C[I][tf]&&delete C[I][tf];t[tf]=Y}if(In(U,function(re){return dn(C[re]).length>0}).length){var oe=MK(C,n);return oe+" "+y[0]+" both"}}for(var g in l){var s=p(l[g]);s&&i.push(s)}if(i.length){var m=n.zrId+"-cls-"+kK();n.cssNodes["."+m]={animation:i.join(",")},t.class=m}}function T0e(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":"none"};XD(r,t,n,!0)}else{var a=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},o=a.fill;if(!o){var i=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||i;l&&(o=X8(l))}var u=a.lineWidth;if(u){var c=!a.strokeNoScale&&e.transform?e.transform[0]:1;u=u/c}var r={cursor:"pointer"};o&&(r.fill=o),a.stroke&&(r.stroke=a.stroke),u&&(r["stroke-width"]=u),XD(r,t,n,!0)}}function XD(e,t,n,r){var a=JSON.stringify(e),o=n.cssStyleCache[a];o||(o=n.zrId+"-cls-"+kK(),n.cssStyleCache[a]=o,n.cssNodes["."+o+(r?":hover":"")]=e),t.class=t.class?t.class+" "+o:o}var Rg=Math.round;function AK(e){return e&&st(e.src)}function EK(e){return e&&kt(e.toDataURL)}function Uk(e,t,n,r){h0e(function(a,o){var i=a==="fill"||a==="stroke";i&&MH(o)?LK(t,e,a,r):i&&F5(o)?DK(n,e,a,r):e[a]=o,i&&r.ssr&&o==="none"&&(e["pointer-events"]="visible")},t,n,!1),D0e(n,e,r)}function Kk(e,t){var n=Lle(t);n&&(n.each(function(r,a){r!=null&&(e[(KD+a).toLowerCase()]=r+"")}),t.isSilent()&&(e[KD+"silent"]="true"))}function ZD(e){return Vu(e[0]-1)&&Vu(e[1])&&Vu(e[2])&&Vu(e[3]-1)}function k0e(e){return Vu(e[4])&&Vu(e[5])}function jk(e,t,n){if(t&&!(k0e(t)&&ZD(t))){var r=n?10:1e4;e.transform=ZD(t)?"translate("+Rg(t[4]*r)/r+" "+Rg(t[5]*r)/r+")":Xse(t)}}function JD(e,t,n){for(var r=e.points,a=[],o=0;o<r.length;o++)a.push(Rg(r[o][0]*n)/n),a.push(Rg(r[o][1]*n)/n);t.points=a.join(" ")}function QD(e){return!e.smooth}function M0e(e){var t=$e(e,function(n){return typeof n=="string"?[n,n]:n});return function(n,r,a){for(var o=0;o<t.length;o++){var i=t[o],s=n[i[0]];s!=null&&(r[i[1]]=Rg(s*a)/a)}}}var A0e={circle:[M0e(["cx","cy","r"])],polyline:[JD,QD],polygon:[JD,QD]};function E0e(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName==="shape")return!0;return!1}function IK(e,t){var n=e.style,r=e.shape,a=A0e[e.type],o={},i=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&AH(e)||4;if(a&&!t.willUpdate&&!(a[1]&&!a[1](r))&&!(i&&E0e(e))&&!(l<1)){s=e.type;var c=Math.pow(10,u);a[0](r,o,c)}else{var f=!e.path||e.shapeChanged();e.path||e.createPathProxy();var d=e.path;f&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var v=d.getVersion(),h=e,p=h.__svgPathBuilder;(h.__svgPathVersion!==v||!p||l!==h.__svgPathStrokePercent)&&(p||(p=h.__svgPathBuilder=new SK),p.reset(u),d.rebuildPath(p,l),p.generateStr(),h.__svgPathVersion=v,h.__svgPathStrokePercent=l),o.d=p.getStr()}return jk(o,e.transform),Uk(o,n,e,t),Kk(o,e),t.animation&&e4(e,o,t),t.emphasis&&T0e(e,o,t),Wr(s,e.id+"",o)}function I0e(e,t){var n=e.style,r=n.image;if(r&&!st(r)&&(AK(r)?r=r.src:EK(r)&&(r=r.toDataURL())),!!r){var a=n.x||0,o=n.y||0,i=n.width,s=n.height,l={href:r,width:i,height:s};return a&&(l.x=a),o&&(l.y=o),jk(l,e.transform),Uk(l,n,e,t),Kk(l,e),t.animation&&e4(e,l,t),Wr("image",e.id+"",l)}}function L0e(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=""),!(!r||isNaN(n.x)||isNaN(n.y))){var a=n.font||Bl,o=n.x||0,i=Jse(n.y||0,Im(a),n.textBaseline),s=Zse[n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(dW(n)){var u="",c=n.fontStyle,f=fW(n.fontSize);if(!parseFloat(f))return;var d=n.fontFamily||tH,v=n.fontWeight;u+="font-size:"+f+";font-family:"+d+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),v&&v!=="normal"&&(u+="font-weight:"+v+";"),l.style=u}else l.style="font: "+a;return r.match(/\s/)&&(l["xml:space"]="preserve"),o&&(l.x=o),i&&(l.y=i),jk(l,e.transform),Uk(l,n,e,t),Kk(l,e),t.animation&&e4(e,l,t),Wr("text",e.id+"",l,void 0,r)}}function eP(e,t){if(e instanceof ln)return IK(e,t);if(e instanceof da)return I0e(e,t);if(e instanceof _g)return L0e(e,t)}function D0e(e,t,n){var r=e.style;if(Qse(r)){var a=ele(e),o=n.shadowCache,i=o[a];if(!i){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=r.shadowOffsetX||0,f=r.shadowOffsetY||0,d=r.shadowBlur,v=mg(r.shadowColor),h=v.opacity,p=v.color,g=d/2/l,m=d/2/u,y=g+" "+m;i=n.zrId+"-s"+n.shadowIdx++,n.defs[i]=Wr("filter",i,{id:i,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Wr("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:y,"flood-color":p,"flood-opacity":h})]),o[a]=i}t.filter=Ew(i)}}function LK(e,t,n,r){var a=e[n],o,i={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(TH(a))o="linearGradient",i.x1=a.x,i.y1=a.y,i.x2=a.x2,i.y2=a.y2;else if(kH(a))o="radialGradient",i.cx=yt(a.x,.5),i.cy=yt(a.y,.5),i.r=yt(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=Z8(s[u].offset)*100+"%",d=s[u].color,v=mg(d),h=v.color,p=v.opacity,g={offset:f};g["stop-color"]=h,p<1&&(g["stop-opacity"]=p),l.push(Wr("stop",u+"",g))}var m=Wr(o,"",i,l),y=Gk(m),b=r.gradientCache,w=b[y];w||(w=r.zrId+"-g"+r.gradientIdx++,b[y]=w,i.id=w,r.defs[w]=Wr(o,w,i,l)),t[n]=Ew(w)}function DK(e,t,n,r){var a=e.style[n],o=e.getBoundingRect(),i={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(CH(a)){var d=a.imageWidth,v=a.imageHeight,h=void 0,p=a.image;if(st(p)?h=p:AK(p)?h=p.src:EK(p)&&(h=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Ia(d,g),Ia(v,g)}else if(d==null||v==null){var m=function(k,E){if(k){var A=k.elm,I=d||E.width,O=v||E.height;k.tag==="pattern"&&(u?(O=1,I/=o.width):c&&(I=1,O/=o.height)),k.attrs.width=I,k.attrs.height=O,A&&(A.setAttribute("width",I),A.setAttribute("height",O))}},y=Y5(h,null,e,function(k){l||m(x,k),m(f,k)});y&&y.width&&y.height&&(d=d||y.width,v=v||y.height)}f=Wr("image","img",{href:h,width:d,height:v}),i.width=d,i.height=v}else a.svgElement&&(f=Mt(a.svgElement),i.width=a.svgWidth,i.height=a.svgHeight);if(f){var b,w;l?b=w=1:u?(w=1,b=i.width/o.width):c?(b=1,w=i.height/o.height):i.patternUnits="userSpaceOnUse",b!=null&&!isNaN(b)&&(i.width=b),w!=null&&!isNaN(w)&&(i.height=w);var S=EH(a);S&&(i.patternTransform=S);var x=Wr("pattern","",i,[f]),C=Gk(x),T=r.patternCache,M=T[C];M||(M=r.zrId+"-p"+r.patternIdx++,T[C]=M,i.id=M,x=r.defs[M]=Wr("pattern",M,i,[f])),t[n]=Ew(M)}}function P0e(e,t,n){var r=n.clipPathCache,a=n.defs,o=r[e.id];if(!o){o=n.zrId+"-c"+n.clipPathIdx++;var i={id:o};r[e.id]=o,a[o]=Wr("clipPath",o,i,[IK(e,n)])}t["clip-path"]=Ew(o)}function tP(e){return document.createTextNode(e)}function vf(e,t,n){e.insertBefore(t,n)}function nP(e,t){e.removeChild(t)}function rP(e,t){e.appendChild(t)}function PK(e){return e.parentNode}function RK(e){return e.nextSibling}function S6(e,t){e.textContent=t}var aP=58,R0e=120,O0e=Wr("","");function eC(e){return e===void 0}function vs(e){return e!==void 0}function N0e(e,t,n){for(var r={},a=t;a<=n;++a){var o=e[a].key;o!==void 0&&(r[o]=a)}return r}function _0(e,t){var n=e.key===t.key,r=e.tag===t.tag;return r&&n}function Og(e){var t,n=e.children,r=e.tag;if(vs(r)){var a=e.elm=TK(r);if(Yk(O0e,e),Ve(n))for(t=0;t<n.length;++t){var o=n[t];o!=null&&rP(a,Og(o))}else vs(e.text)&&!Rt(e.text)&&rP(a,tP(e.text))}else e.elm=tP(e.text);return e.elm}function OK(e,t,n,r,a){for(;r<=a;++r){var o=n[r];o!=null&&vf(e,Og(o),t)}}function r_(e,t,n,r){for(;n<=r;++n){var a=t[n];if(a!=null)if(vs(a.tag)){var o=PK(a.elm);nP(o,a.elm)}else nP(e,a.elm)}}function Yk(e,t){var n,r=t.elm,a=e&&e.attrs||{},o=t.attrs||{};if(a!==o){for(n in o){var i=o[n],s=a[n];s!==i&&(i===!0?r.setAttribute(n,""):i===!1?r.removeAttribute(n):n==="style"?r.style.cssText=i:n.charCodeAt(0)!==R0e?r.setAttribute(n,i):n==="xmlns:xlink"||n==="xmlns"?r.setAttributeNS(p0e,n,i):n.charCodeAt(3)===aP?r.setAttributeNS(g0e,n,i):n.charCodeAt(5)===aP?r.setAttributeNS(CK,n,i):r.setAttribute(n,i))}for(n in a)n in o||r.removeAttribute(n)}}function B0e(e,t,n){for(var r=0,a=0,o=t.length-1,i=t[0],s=t[o],l=n.length-1,u=n[0],c=n[l],f,d,v,h;r<=o&&a<=l;)i==null?i=t[++r]:s==null?s=t[--o]:u==null?u=n[++a]:c==null?c=n[--l]:_0(i,u)?(Sv(i,u),i=t[++r],u=n[++a]):_0(s,c)?(Sv(s,c),s=t[--o],c=n[--l]):_0(i,c)?(Sv(i,c),vf(e,i.elm,RK(s.elm)),i=t[++r],c=n[--l]):_0(s,u)?(Sv(s,u),vf(e,s.elm,i.elm),s=t[--o],u=n[++a]):(eC(f)&&(f=N0e(t,r,o)),d=f[u.key],eC(d)?vf(e,Og(u),i.elm):(v=t[d],v.tag!==u.tag?vf(e,Og(u),i.elm):(Sv(v,u),t[d]=void 0,vf(e,v.elm,i.elm))),u=n[++a]);(r<=o||a<=l)&&(r>o?(h=n[l+1]==null?null:n[l+1].elm,OK(e,h,n,a,l)):r_(e,t,r,o))}function Sv(e,t){var n=t.elm=e.elm,r=e.children,a=t.children;e!==t&&(Yk(e,t),eC(t.text)?vs(r)&&vs(a)?r!==a&&B0e(n,r,a):vs(a)?(vs(e.text)&&S6(n,""),OK(n,null,a,0,a.length-1)):vs(r)?r_(n,r,0,r.length-1):vs(e.text)&&S6(n,""):e.text!==t.text&&(vs(r)&&r_(n,r,0,r.length-1),S6(n,t.text)))}function V0e(e,t){if(_0(e,t))Sv(e,t);else{var n=e.elm,r=PK(n);Og(t),r!==null&&(vf(r,t.elm,RK(n)),r_(r,[e],0,0))}return t}var $0e=0,z0e=function(){function e(t,n,r){if(this.type="svg",this.refreshHover=oP(),this.configLayer=oP(),this.storage=n,this._opts=r=Pe({},r),this.root=t,this._id="zr"+$0e++,this._oldVNode=jD(r.width,r.height),t&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var o=this._svgDom=this._oldVNode.elm=TK("svg");Yk(null,this._oldVNode),a.appendChild(o),t.appendChild(a)}this.resize(r.width,r.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",V0e(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return eP(t,Qx(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var n=this.storage.getDisplayList(!0),r=this._width,a=this._height,o=Qx(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress,o.emphasis=t.emphasis,o.ssr=this._opts.ssr;var i=[],s=this._bgVNode=F0e(r,a,this._backgroundColor,o);s&&i.push(s);var l=t.compress?null:this._mainVNode=Wr("g","main",{},[]);this._paintList(n,o,l?l.children:i),l&&i.push(l);var u=$e(dn(o.defs),function(d){return o.defs[d]});if(u.length&&i.push(Wr("defs","defs",{},u)),t.animation){var c=b0e(o.cssNodes,o.cssAnims,{newline:!0});if(c){var f=Wr("style","stl",{},[],c);i.push(f)}}return jD(r,a,i,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},Gk(this.renderToVNode({animation:yt(t.cssAnimation,!0),emphasis:yt(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:yt(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,n,r){for(var a=t.length,o=[],i=0,s,l,u=0,c=0;c<a;c++){var f=t[c];if(!f.invisible){var d=f.__clipPaths,v=d&&d.length||0,h=l&&l.length||0,p=void 0;for(p=Math.max(v-1,h-1);p>=0&&!(d&&l&&d[p]===l[p]);p--);for(var g=h-1;g>p;g--)i--,s=o[i-1];for(var m=p+1;m<v;m++){var y={};P0e(d[m],y,n);var b=Wr("g","clip-g-"+u++,y,[]);(s?s.children:r).push(b),o[i++]=b,s=b}l=d;var w=eP(f,n);w&&(s?s.children:r).push(w)}}},e.prototype.resize=function(t,n){var r=this._opts,a=this.root,o=this._viewport;if(t!=null&&(r.width=t),n!=null&&(r.height=n),a&&o&&(o.style.display="none",t=Pv(a,0,r),n=Pv(a,1,r),o.style.display=""),this._width!==t||this._height!==n){if(this._width=t,this._height=n,o){var i=o.style;i.width=t+"px",i.height=n+"px"}if(F5(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",n));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",n))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(t){var n=this.renderToString(),r="data:image/svg+xml;";return t?(n=nle(n),n&&r+"base64,"+n):r+"charset=UTF-8,"+encodeURIComponent(n)},e}();function oP(e){return function(){}}function F0e(e,t,n,r){var a;if(n&&n!=="none")if(a=Wr("rect","bg",{width:e,height:t,x:"0",y:"0"}),MH(n))LK({fill:n},a.attrs,"fill",r);else if(F5(n))DK({style:{fill:n},dirty:br,getBoundingRect:function(){return{width:e,height:t}}},a.attrs,"fill",r);else{var o=mg(n),i=o.color,s=o.opacity;a.attrs.fill=i,s<1&&(a.attrs["fill-opacity"]=s)}return a}const H0e=z0e;function W0e(e){e.registerPainter("svg",H0e)}function iP(e,t,n){var r=Di.createCanvas(),a=t.getWidth(),o=t.getHeight(),i=r.style;return i&&(i.position="absolute",i.left="0",i.top="0",i.width=a+"px",i.height=o+"px",r.setAttribute("data-zr-dom-id",e)),r.width=a*n,r.height=o*n,r}var G0e=function(e){ye(t,e);function t(n,r,a){var o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null;var i;a=a||Ib,typeof n=="string"?i=iP(n,r,a):Rt(n)&&(i=n,n=i.id),o.id=n,o.dom=i;var s=i.style;return s&&(sH(i),i.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=r,o.dpr=a,o}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},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 n=this.dpr;this.domBack=iP("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},t.prototype.createRepaintRects=function(n,r,a,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],s=this.maxRepaintRectCount,l=!1,u=new Ot(0,0,0,0);function c(y){if(!(!y.isFinite()||y.isZero()))if(i.length===0){var b=new Ot(0,0,0,0);b.copy(y),i.push(b)}else{for(var w=!1,S=1/0,x=0,C=0;C<i.length;++C){var T=i[C];if(T.intersect(y)){var M=new Ot(0,0,0,0);M.copy(T),M.union(y),i[C]=M,w=!0;break}else if(l){u.copy(y),u.union(T);var k=y.width*y.height,E=T.width*T.height,A=u.width*u.height,I=A-k-E;I<S&&(S=I,x=C)}}if(l&&(i[x].union(y),w=!0),!w){var b=new Ot(0,0,0,0);b.copy(y),i.push(b)}l||(l=i.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=n[f];if(d){var v=d.shouldBePainted(a,o,!0,!0),h=d.__isRendered&&(d.__dirty&_o||!v)?d.getPrevPaintRect():null;h&&c(h);var p=v&&(d.__dirty&_o||!d.__isRendered)?d.getPaintRect():null;p&&c(p)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=r[f],v=d&&d.shouldBePainted(a,o,!0,!0);if(d&&(!v||!d.__zr)&&d.__isRendered){var h=d.getPrevPaintRect();h&&c(h)}}var g;do{g=!1;for(var f=0;f<i.length;){if(i[f].isZero()){i.splice(f,1);continue}for(var m=f+1;m<i.length;)i[f].intersect(i[m])?(g=!0,i[f].union(i[m]),i.splice(m,1)):m++;f++}}while(g);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(n,r){var a=this.dpr,o=this.dom,i=o.style,s=this.domBack;i&&(i.width=n+"px",i.height=r+"px"),o.width=n*a,o.height=r*a,s&&(s.width=n*a,s.height=r*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(n,r,a){var o=this.dom,i=this.ctx,s=o.width,l=o.height;r=r||this.clearColor;var u=this.motionBlur&&!n,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/f,l/f));var v=this.domBack;function h(p,g,m,y){if(i.clearRect(p,g,m,y),r&&r!=="transparent"){var b=void 0;if(Cw(r)){var w=r.global||r.__width===m&&r.__height===y;b=w&&r.__canvasGradient||Nx(i,r,{x:0,y:0,width:m,height:y}),r.__canvasGradient=b,r.__width=m,r.__height=y}else ese(r)&&(r.scaleX=r.scaleX||f,r.scaleY=r.scaleY||f,b=Bx(i,r,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));i.save(),i.fillStyle=b||r,i.fillRect(p,g,m,y),i.restore()}u&&(i.save(),i.globalAlpha=c,i.drawImage(v,p,g,m,y),i.restore())}!a||u?h(0,0,s,l):a.length&&j(a,function(p){h(p.x*f,p.y*f,p.width*f,p.height*f)})},t}(ci);const x6=G0e;var sP=1e5,Jc=314159,wy=.01,U0e=.001;function K0e(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function j0e(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}var Y0e=function(){function e(t,n,r,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=r=Pe({},r||{}),this.dpr=r.devicePixelRatio||Ib,this._singleCanvas=o,this.root=t;var i=t.style;i&&(sH(t),t.innerHTML=""),this.storage=n;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){var c=t,f=c.width,d=c.height;r.width!=null&&(f=r.width),r.height!=null&&(d=r.height),this.dpr=r.devicePixelRatio||1,c.width=f*this.dpr,c.height=d*this.dpr,this._width=f,this._height=d;var v=new x6(c,this,this.dpr);v.__builtin__=!0,v.initContext(),l[Jc]=v,v.zlevel=Jc,s.push(Jc),this._domRoot=t}else{this._width=Pv(t,0,r),this._height=Pv(t,1,r);var u=this._domRoot=j0e(this._width,this._height);t.appendChild(u)}}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 t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var n=this.storage.getDisplayList(!0),r=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,r,t,this._redrawId);for(var o=0;o<a.length;o++){var i=a[o],s=this._layers[i];if(!s.__builtin__&&s.refresh){var l=o===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var n=t.length,r=this._hoverlayer;if(r&&r.clear(),!!n){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},o,i=0;i<n;i++){var s=t[i];s.__inHover&&(r||(r=this._hoverlayer=this.getLayer(sP)),o||(o=r.ctx,o.save()),Mf(o,s,a,i===n-1))}o&&o.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(sP)},e.prototype.paintOne=function(t,n){vU(t,n)},e.prototype._paintList=function(t,n,r,a){if(this._redrawId===a){r=r||!1,this._updateLayerStatus(t);var o=this._doPaintList(t,n,r),i=o.finished,s=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),i)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;U8(function(){l._paintList(t,n,r,a)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(Jc).ctx,n=this._domRoot.width,r=this._domRoot.height;t.clearRect(0,0,n,r),this.eachBuiltinLayer(function(a){a.virtual&&t.drawImage(a.dom,0,0,n,r)})},e.prototype._doPaintList=function(t,n,r){for(var a=this,o=[],i=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||r)&&o.push(u)}for(var c=!0,f=!1,d=function(p){var g=o[p],m=g.ctx,y=i&&g.createRepaintRects(t,n,v._width,v._height),b=r?g.__startIndex:g.__drawIndex,w=!r&&g.incremental&&Date.now,S=w&&Date.now(),x=g.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,x,y);else if(b===g.__startIndex){var C=t[b];(!C.incremental||!C.notClear||r)&&g.clear(!1,x,y)}b===-1&&(console.error("For some unknown reason. drawIndex is -1"),b=g.__startIndex);var T,M=function(I){var O={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(T=b;T<g.__endIndex;T++){var z=t[T];if(z.__inHover&&(f=!0),a._doPaintEl(z,g,i,I,O,T===g.__endIndex-1),w){var $=Date.now()-S;if($>15)break}}O.prevElClipPaths&&m.restore()};if(y)if(y.length===0)T=g.__endIndex;else for(var k=v.dpr,E=0;E<y.length;++E){var A=y[E];m.save(),m.beginPath(),m.rect(A.x*k,A.y*k,A.width*k,A.height*k),m.clip(),M(A),m.restore()}else m.save(),M(),m.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(c=!1)},v=this,h=0;h<o.length;h++)d(h);return kn.wxa&&j(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:c,needsRefreshHover:f}},e.prototype._doPaintEl=function(t,n,r,a,o,i){var s=n.ctx;if(r){var l=t.getPaintRect();(!a||l&&l.intersect(a))&&(Mf(s,t,o,i),t.setPrevPaintRect(l))}else Mf(s,t,o,i)},e.prototype.getLayer=function(t,n){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Jc);var r=this._layers[t];return r||(r=new x6("zr_"+t,this,this.dpr),r.zlevel=t,r.__builtin__=!0,this._layerConfig[t]?Zt(r,this._layerConfig[t],!0):this._layerConfig[t-wy]&&Zt(r,this._layerConfig[t-wy],!0),n&&(r.virtual=n),this.insertLayer(t,r),r.initContext()),r},e.prototype.insertLayer=function(t,n){var r=this._layers,a=this._zlevelList,o=a.length,i=this._domRoot,s=null,l=-1;if(!r[t]&&K0e(n)){if(o>0&&t>a[0]){for(l=0;l<o-1&&!(a[l]<t&&a[l+1]>t);l++);s=r[a[l]]}if(a.splice(l+1,0,t),r[t]=n,!n.virtual)if(s){var u=s.dom;u.nextSibling?i.insertBefore(n.dom,u.nextSibling):i.appendChild(n.dom)}else i.firstChild?i.insertBefore(n.dom,i.firstChild):i.appendChild(n.dom);n.painter||(n.painter=this)}},e.prototype.eachLayer=function(t,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var o=r[a];t.call(n,this._layers[o],o)}},e.prototype.eachBuiltinLayer=function(t,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var o=r[a],i=this._layers[o];i.__builtin__&&t.call(n,i,o)}},e.prototype.eachOtherLayer=function(t,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var o=r[a],i=this._layers[o];i.__builtin__||t.call(n,i,o)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(f,d){f.__dirty=f.__used=!1});function n(f){o&&(o.__endIndex!==f&&(o.__dirty=!0),o.__endIndex=f)}if(this._singleCanvas)for(var r=1;r<t.length;r++){var a=t[r];if(a.zlevel!==t[r-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var o=null,i=0,s,l;for(l=0;l<t.length;l++){var a=t[l],u=a.zlevel,c=void 0;s!==u&&(s=u,i=0),a.incremental?(c=this.getLayer(u+U0e,this._needsManuallyCompositing),c.incremental=!0,i=1):c=this.getLayer(u+(i>0?wy:0),this._needsManuallyCompositing),c.__builtin__||P5("ZLevel "+u+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,n(l),o=c),a.__dirty&_o&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,j(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?Zt(r[t],n,!0):r[t]=n;for(var a=0;a<this._zlevelList.length;a++){var o=this._zlevelList[a];if(o===t||o===t+wy){var i=this._layers[o];Zt(i,r[t],!0)}}}},e.prototype.delLayer=function(t){var n=this._layers,r=this._zlevelList,a=n[t];a&&(a.dom.parentNode.removeChild(a.dom),delete n[t],r.splice(Xt(r,t),1))},e.prototype.resize=function(t,n){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var a=this._opts,o=this.root;if(t!=null&&(a.width=t),n!=null&&(a.height=n),t=Pv(o,0,a),n=Pv(o,1,a),r.style.display="",this._width!==t||n!==this._height){r.style.width=t+"px",r.style.height=n+"px";for(var i in this._layers)this._layers.hasOwnProperty(i)&&this._layers[i].resize(t,n);this.refresh(!0)}this._width=t,this._height=n}else{if(t==null||n==null)return;this._width=t,this._height=n,this.getLayer(Jc).resize(t,n)}return this},e.prototype.clearLayer=function(t){var n=this._layers[t];n&&n.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Jc].dom;var n=new x6("image",this,t.pixelRatio||this.dpr);n.initContext(),n.clear(!1,t.backgroundColor||this._backgroundColor);var r=n.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var a=n.dom.width,o=n.dom.height;this.eachLayer(function(f){f.__builtin__?r.drawImage(f.dom,0,0,a,o):f.renderToCanvas&&(r.save(),f.renderToCanvas(r),r.restore())})}else for(var i={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Mf(r,c,i,l===u-1)}return n.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const q0e=Y0e;function X0e(e){e.registerPainter("canvas",q0e)}var Z0e=function(e){ye(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(n){return tu(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var r=new At,a=Ar("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);r.add(a),a.setStyle(n.lineStyle);var o=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),s=o==="none"?"circle":o,l=n.itemHeight*.8,u=Ar(s,(n.itemWidth-l)/2,(n.itemHeight-l)/2,l,l,n.itemStyle.fill);r.add(u),u.setStyle(n.itemStyle);var c=n.iconRotate==="inherit"?i:n.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([n.itemWidth/2,n.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=Se.color.neutral00,u.style.lineWidth=2),r},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},t}(er);const J0e=Z0e;function _h(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var a=gh(e,t,n[0]);return a!=null?a+"":null}else if(r){for(var o=[],i=0;i<n.length;i++)o.push(gh(e,t,n[i]));return o.join(" ")}}function NK(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!Ve(t))return t+"";for(var r=[],a=0;a<n.length;a++){var o=e.getDimensionIndex(n[a]);o>=0&&r.push(t[o])}return r.join(" ")}var Q0e=function(e){ye(t,e);function t(n,r,a,o){var i=e.call(this)||this;return i.updateData(n,r,a,o),i}return t.prototype._createSymbol=function(n,r,a,o,i,s){this.removeAll();var l=Ar(n,-1,-1,2,2,null,s);l.attr({z2:yt(i,100),culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),l.drift=ege,this._symbolType=n,this.add(l)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){zl(this.childAt(0))},t.prototype.downplay=function(){Fl(this.childAt(0))},t.prototype.setZ=function(n,r){var a=this.childAt(0);a.zlevel=n,a.z=r},t.prototype.setDraggable=function(n,r){var a=this.childAt(0);a.draggable=n,a.cursor=!r&&n?"move":a.cursor},t.prototype.updateData=function(n,r,a,o){this.silent=!1;var i=n.getItemVisual(r,"symbol")||"circle",s=n.hostModel,l=t.getSymbolSize(n,r),u=t.getSymbolZ2(n,r),c=i!==this._symbolType,f=o&&o.disableAnimation;if(c){var d=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(i,n,r,l,u,d)}else{var v=this.childAt(0);v.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(h):Sn(v,h,s,r),oi(v)}if(this._updateCommon(n,r,l,a,o),c){var v=this.childAt(0);if(!f){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Xn(v,h,s,r)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,r,a,o,i){var s=this.childAt(0),l=n.hostModel,u,c,f,d,v,h,p,g,m;if(o&&(u=o.emphasisItemStyle,c=o.blurItemStyle,f=o.selectItemStyle,d=o.focus,v=o.blurScope,p=o.labelStatesModels,g=o.hoverScale,m=o.cursorStyle,h=o.emphasisDisabled),!o||n.hasItemOption){var y=o&&o.itemModel?o.itemModel:n.getItemModel(r),b=y.getModel("emphasis");u=b.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),d=b.get("focus"),v=b.get("blurScope"),h=b.get("disabled"),p=Vr(y),g=b.getShallow("scale"),m=y.getShallow("cursor")}var w=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var S=Md(n.getItemVisual(r,"symbolOffset"),a);S&&(s.x=S[0],s.y=S[1]),m&&s.attr("cursor",m);var x=n.getItemVisual(r,"style"),C=x.fill;if(s instanceof da){var T=s.style;s.useStyle(Pe({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(Pe({},x)):s.useStyle(x),s.style.decal=null,s.setColor(C,i&&i.symbolInnerColor),s.style.strokeNoScale=!0;var M=n.getItemVisual(r,"liftZ"),k=this._z2;M!=null?k==null&&(this._z2=s.z2,s.z2+=M):k!=null&&(s.z2=k,this._z2=null);var E=i&&i.useNameLabel;Kr(s,p,{labelFetcher:l,labelDataIndex:r,defaultText:A,inheritColor:C,defaultOpacity:x.opacity});function A(z){return E?n.getName(z):_h(n,z)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var O=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*O,I.scaleY=this._sizeY*O,this.setSymbolScale(1),Jn(this,d,v,h)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,a){var o=this.childAt(0),i=Vt(this).dataIndex,s=a&&a.animation;if(this.silent=o.silent=!0,a&&a.fadeLabel){var l=o.getTextContent();l&&sc(l,{style:{opacity:0}},r,{dataIndex:i,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();sc(o,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:i,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return op(n.getItemVisual(r,"symbolSize"))},t.getSymbolZ2=function(n,r){return n.getItemVisual(r,"z2")},t}(At);function ege(e,t){this.parent.drift(e,t)}const zm=Q0e;function C6(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,"symbol")!=="none"}function lP(e){return e!=null&&!Rt(e)&&(e={isIgnore:e}),e||{}}function uP(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:Vr(t),cursorStyle:t.get("cursor")}}var tge=function(){function e(t){this.group=new At,this._SymbolCtor=t||zm}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=lP(n);var r=this.group,a=t.hostModel,o=this._data,i=this._SymbolCtor,s=n.disableAnimation,l=uP(t),u={disableAnimation:s},c=n.getSymbolPoint||function(f){return t.getItemLayout(f)};o||r.removeAll(),t.diff(o).add(function(f){var d=c(f);if(C6(t,d,f,n)){var v=new i(t,f,l,u);v.setPosition(d),t.setItemGraphicEl(f,v),r.add(v)}}).update(function(f,d){var v=o.getItemGraphicEl(d),h=c(f);if(!C6(t,h,f,n)){r.remove(v);return}var p=t.getItemVisual(f,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)r.remove(v),v=new i(t,f,l,u),v.setPosition(h);else{v.updateData(t,f,l,u);var m={x:h[0],y:h[1]};s?v.attr(m):Sn(v,m,a)}r.add(v),t.setItemGraphicEl(f,v)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&d.fadeOut(function(){r.remove(d)},a)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,n=this._data;n&&n.eachItemGraphicEl(function(r,a){var o=t._getSymbolPoint(a);r.setPosition(o),r.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=uP(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=lP(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=t.start;o<t.end;o++){var i=n.getItemLayout(o);if(C6(n,i,o,r)){var s=new this._SymbolCtor(n,o,this._seriesScope);s.traverse(a),s.setPosition(i),this.group.add(s),n.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){_c(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var n=this.group,r=this._data;r&&t?r.eachItemGraphicEl(function(a){a.fadeOut(function(){n.remove(a)},r.hostModel)}):n.removeAll()},e}();const Fm=tge;function BK(e,t,n){var r=e.getBaseAxis(),a=e.getOtherAxis(r),o=nge(a,n),i=r.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(i),c=s==="x"||s==="radius"?1:0,f=$e(e.dimensions,function(h){return t.mapDimension(h)}),d=!1,v=t.getCalculationInfo("stackResultDimension");return lc(t,f[0])&&(d=!0,f[0]=v),lc(t,f[1])&&(d=!0,f[1]=v),{dataDimsForPoint:f,valueStart:o,valueAxisDim:s,baseAxisDim:i,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function nge(e,t){var n=0,r=e.scale.getExtent();return t==="start"?n=r[0]:t==="end"?n=r[1]:gn(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function VK(e,t,n,r){var a=NaN;e.stacked&&(a=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=e.valueStart);var o=e.baseDataOffset,i=[];return i[o]=n.get(e.baseDim,r),i[1-o]=a,t.dataToPoint(i)}function rge(e,t){var n=[];return t.diff(e).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,a){n.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function age(e,t,n,r,a,o,i,s){for(var l=rge(e,t),u=[],c=[],f=[],d=[],v=[],h=[],p=[],g=BK(a,t,i),m=e.getLayout("points")||[],y=t.getLayout("points")||[],b=0;b<l.length;b++){var w=l[b],S=!0,x=void 0,C=void 0;switch(w.cmd){case"=":x=w.idx*2,C=w.idx1*2;var T=m[x],M=m[x+1],k=y[C],E=y[C+1];(isNaN(T)||isNaN(M))&&(T=k,M=E),u.push(T,M),c.push(k,E),f.push(n[x],n[x+1]),d.push(r[C],r[C+1]),p.push(t.getRawIndex(w.idx1));break;case"+":var A=w.idx,I=g.dataDimsForPoint,O=a.dataToPoint([t.get(I[0],A),t.get(I[1],A)]);C=A*2,u.push(O[0],O[1]),c.push(y[C],y[C+1]);var z=VK(g,a,t,A);f.push(z[0],z[1]),d.push(r[C],r[C+1]),p.push(t.getRawIndex(A));break;case"-":S=!1}S&&(v.push(w),h.push(h.length))}h.sort(function(X,te){return p[X]-p[te]});for(var $=u.length,P=_s($),L=_s($),V=_s($),B=_s($),F=[],b=0;b<h.length;b++){var U=h[b],G=b*2,Y=U*2;P[G]=u[Y],P[G+1]=u[Y+1],L[G]=c[Y],L[G+1]=c[Y+1],V[G]=f[Y],V[G+1]=f[Y+1],B[G]=d[Y],B[G+1]=d[Y+1],F[b]=v[U]}return{current:P,next:L,stackedOnCurrent:V,stackedOnNext:B,status:F}}var vu=Math.min,hu=Math.max;function Uf(e,t){return isNaN(e)||isNaN(t)}function tC(e,t,n,r,a,o,i,s,l){for(var u,c,f,d,v,h,p=n,g=0;g<r;g++){var m=t[p*2],y=t[p*2+1];if(p>=a||p<0)break;if(Uf(m,y)){if(l){p+=o;continue}break}if(p===n)e[o>0?"moveTo":"lineTo"](m,y),f=m,d=y;else{var b=m-u,w=y-c;if(b*b+w*w<.5){p+=o;continue}if(i>0){for(var S=p+o,x=t[S*2],C=t[S*2+1];x===m&&C===y&&g<r;)g++,S+=o,p+=o,x=t[S*2],C=t[S*2+1],m=t[p*2],y=t[p*2+1],b=m-u,w=y-c;var T=g+1;if(l)for(;Uf(x,C)&&T<r;)T++,S+=o,x=t[S*2],C=t[S*2+1];var M=.5,k=0,E=0,A=void 0,I=void 0;if(T>=r||Uf(x,C))v=m,h=y;else{k=x-u,E=C-c;var O=m-u,z=x-m,$=y-c,P=C-y,L=void 0,V=void 0;if(s==="x"){L=Math.abs(O),V=Math.abs(z);var B=k>0?1:-1;v=m-B*L*i,h=y,A=m+B*V*i,I=y}else if(s==="y"){L=Math.abs($),V=Math.abs(P);var F=E>0?1:-1;v=m,h=y-F*L*i,A=m,I=y+F*V*i}else L=Math.sqrt(O*O+$*$),V=Math.sqrt(z*z+P*P),M=V/(V+L),v=m-k*i*(1-M),h=y-E*i*(1-M),A=m+k*i*M,I=y+E*i*M,A=vu(A,hu(x,m)),I=vu(I,hu(C,y)),A=hu(A,vu(x,m)),I=hu(I,vu(C,y)),k=A-m,E=I-y,v=m-k*L/V,h=y-E*L/V,v=vu(v,hu(u,m)),h=vu(h,hu(c,y)),v=hu(v,vu(u,m)),h=hu(h,vu(c,y)),k=m-v,E=y-h,A=m+k*V/L,I=y+E*V/L}e.bezierCurveTo(f,d,v,h,m,y),f=A,d=I}else e.lineTo(m,y)}u=m,c=y,p+=o}return g}var $K=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),oge=function(e){ye(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polyline",r}return t.prototype.getDefaultStyle=function(){return{stroke:Se.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new $K},t.prototype.buildPath=function(n,r){var a=r.points,o=0,i=a.length/2;if(r.connectNulls){for(;i>0&&Uf(a[i*2-2],a[i*2-1]);i--);for(;o<i&&Uf(a[o*2],a[o*2+1]);o++);}for(;o<i;)o+=tC(n,a,o,i,i,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},t.prototype.getPointOn=function(n,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,o=a.data,i=Gs.CMD,s,l,u=r==="x",c=[],f=0;f<o.length;){var d=o[f++],v=void 0,h=void 0,p=void 0,g=void 0,m=void 0,y=void 0,b=void 0;switch(d){case i.M:s=o[f++],l=o[f++];break;case i.L:if(v=o[f++],h=o[f++],b=u?(n-s)/(v-s):(n-l)/(h-l),b<=1&&b>=0){var w=u?(h-l)*b+l:(v-s)*b+s;return u?[n,w]:[w,n]}s=v,l=h;break;case i.C:v=o[f++],h=o[f++],p=o[f++],g=o[f++],m=o[f++],y=o[f++];var S=u?kb(s,v,p,m,n,c):kb(l,h,g,y,n,c);if(S>0)for(var x=0;x<S;x++){var C=c[x];if(C<=1&&C>=0){var w=u?Fr(l,h,g,y,C):Fr(s,v,p,m,C);return u?[n,w]:[w,n]}}s=m,l=y;break}}},t}(ln),ige=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}($K),zK=function(e){ye(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polygon",r}return t.prototype.getDefaultShape=function(){return new ige},t.prototype.buildPath=function(n,r){var a=r.points,o=r.stackedOnPoints,i=0,s=a.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&Uf(a[s*2-2],a[s*2-1]);s--);for(;i<s&&Uf(a[i*2],a[i*2+1]);i++);}for(;i<s;){var u=tC(n,a,i,s,s,1,r.smooth,l,r.connectNulls);tC(n,o,i+u-1,u,s,-1,r.stackedOnSmooth,l,r.connectNulls),i+=u+1,n.closePath()}},t}(ln);function FK(e,t,n,r,a){var o=e.getArea(),i=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||0;i-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),i!==Math.floor(i)&&(i=Math.floor(i),l++);var f=new rn({shape:{x:i,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),v=d.isHorizontal(),h=d.inverse;v?(h&&(f.shape.x+=l),f.shape.width=0):(h||(f.shape.y+=u),f.shape.height=0);var p=kt(a)?function(g){a(g,f)}:null;Xn(f,{shape:{width:l,height:u,x:i,y:s}},n,null,r,p)}return f}function HK(e,t,n){var r=e.getArea(),a=xr(r.r0,1),o=xr(r.r,1),i=new ja({shape:{cx:xr(e.cx,1),cy:xr(e.cy,1),r0:a,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?i.shape.endAngle=r.startAngle:i.shape.r=a,Xn(i,{shape:{endAngle:r.endAngle,r:o}},n)}return i}function Hm(e,t,n,r,a){if(e){if(e.type==="polar")return HK(e,t,n);if(e.type==="cartesian2d")return FK(e,t,n,r,a)}else return null;return null}function cc(e,t){return e.type===t}function cP(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function fP(e){for(var t=1/0,n=1/0,r=-1/0,a=-1/0,o=0;o<e.length;){var i=e[o++],s=e[o++];isNaN(i)||(t=Math.min(i,t),r=Math.max(i,r)),isNaN(s)||(n=Math.min(s,n),a=Math.max(s,a))}return[[t,n],[r,a]]}function dP(e,t){var n=fP(e),r=n[0],a=n[1],o=fP(t),i=o[0],s=o[1];return Math.max(Math.abs(r[0]-i[0]),Math.abs(r[1]-i[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function vP(e){return gn(e)?e:e?.5:0}function sge(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),a=_s(r*2),o=0;o<r;o++){var i=VK(n,e,t,o);a[o*2]=i[0],a[o*2+1]=i[1]}return a}function pu(e,t,n,r,a){var o=n.getBaseAxis(),i=o.dim==="x"||o.dim==="radius"?0:1,s=[],l=0,u=[],c=[],f=[],d=[];if(a){for(l=0;l<e.length;l+=2){var v=t||e;!isNaN(v[l])&&!isNaN(v[l+1])&&d.push(e[l],e[l+1])}e=d}for(l=0;l<e.length-2;l+=2)switch(f[0]=e[l+2],f[1]=e[l+3],c[0]=e[l],c[1]=e[l+1],s.push(c[0],c[1]),r){case"end":u[i]=f[i],u[1-i]=c[1-i],s.push(u[0],u[1]);break;case"middle":var h=(c[i]+f[i])/2,p=[];u[i]=p[i]=h,u[1-i]=c[1-i],p[1-i]=f[1-i],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[i]=c[i],u[1-i]=f[1-i],s.push(u[0],u[1])}return s.push(e[l++],e[l++]),s}function lge(e,t){var n=[],r=e.length,a,o;function i(c,f,d){var v=c.coord,h=(d-v)/(f.coord-v),p=qse(h,[c.color,f.color]);return{coord:d,color:p}}for(var s=0;s<r;s++){var l=e[s],u=l.coord;if(u<0)a=l;else if(u>t){o?n.push(i(o,l,t)):a&&n.push(i(a,l,0),i(a,l,t));break}else a&&(n.push(i(a,l,0)),a=null),n.push(l),o=l}return n}function uge(e,t,n){var r=e.getVisual("visualMeta");if(!(!r||!r.length||!e.count())&&t.type==="cartesian2d"){for(var a,o,i=r.length-1;i>=0;i--){var s=e.getDimensionInfo(r[i].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){o=r[i];break}}if(o){var l=t.getAxis(a),u=$e(o.stops,function(b){return{coord:l.toGlobalCoord(l.dataToCoord(b.value)),color:b.color}}),c=u.length,f=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=lge(u,a==="x"?n.getWidth():n.getHeight()),v=d.length;if(!v&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var h=10,p=d[0].coord-h,g=d[v-1].coord+h,m=g-p;if(m<.001)return"transparent";j(d,function(b){b.offset=(b.coord-p)/m}),d.push({offset:v?d[v-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:v?d[0].offset:.5,color:f[0]||"transparent"});var y=new Jh(0,0,0,0,d,!0);return y[a]=p,y[a+"2"]=g,y}}}function cge(e,t,n){var r=e.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var o=n.getAxesByScale("ordinal")[0];if(o&&!(a&&fge(o,t))){var i=t.mapDimension(o.dim),s={};return j(o.getViewLabels(),function(l){var u=o.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(i,l))}}}}function fge(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var a=t.count(),o=Math.max(1,Math.round(a/5)),i=0;i<a;i+=o)if(zm.getSymbolSize(t,i)[e.isHorizontal()?1:0]*1.5>r)return!1;return!0}function dge(e,t){return isNaN(e)||isNaN(t)}function vge(e){for(var t=e.length/2;t>0&&dge(e[t*2-2],e[t*2-1]);t--);return t-1}function hP(e,t){return[e[t*2],e[t*2+1]]}function hge(e,t,n){for(var r=e.length/2,a=n==="x"?0:1,o,i,s=0,l=-1,u=0;u<r;u++)if(i=e[u*2+a],!(isNaN(i)||isNaN(e[u*2+1-a]))){if(u===0){o=i;continue}if(o<=t&&i>=t||o>=t&&i<=t){l=u;break}s=u,o=i}return{range:[s,l],t:(t-o)/(i-o)}}function WK(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<Ka.length;t++)if(e.get([Ka[t],"endLabel","show"]))return!0;return!1}function T6(e,t,n,r){if(cc(t,"cartesian2d")){var a=r.getModel("endLabel"),o=a.get("valueAnimation"),i=r.getData(),s={lastFrameIndex:0},l=WK(r)?function(v,h){e._endLabelOnDuring(v,h,i,s,o,a,t)}:null,u=t.getBaseAxis().isHorizontal(),c=FK(t,n,r,function(){var v=e._endLabel;v&&n&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return l&&l(1,c),c}else return HK(t,n,r)}function pge(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),a=n.inverse,o=r?a?"right":"left":"center",i=r?"middle":a?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||i}}}var gge=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var n=new At,r=new Fm;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=n,this._changePolyState=lt(this._changePolyState,this)},t.prototype.render=function(n,r,a){var o=n.coordinateSystem,i=this.group,s=n.getData(),l=n.getModel("lineStyle"),u=n.getModel("areaStyle"),c=s.getLayout("points")||[],f=o.type==="polar",d=this._coordSys,v=this._symbolDraw,h=this._polyline,p=this._polygon,g=this._lineGroup,m=!r.ssr&&n.get("animation"),y=!u.isEmpty(),b=u.get("origin"),w=BK(o,s,b),S=y&&sge(o,s,w),x=n.get("showSymbol"),C=n.get("connectNulls"),T=x&&!f&&cge(n,s,o),M=this._data;M&&M.eachItemGraphicEl(function(X,te){X.__temp&&(i.remove(X),M.setItemGraphicEl(te,null))}),x||v.remove(),i.add(g);var k=f?!1:n.get("step"),E;o&&o.getArea&&n.get("clip",!0)&&(E=o.getArea(),E.width!=null?(E.x-=.1,E.y-=.1,E.width+=.2,E.height+=.2):E.r0&&(E.r0-=.5,E.r+=.5)),this._clipShapeForSymbol=E;var A=uge(s,o,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(h&&d.type===o.type&&k===this._step))x&&v.updateData(s,{isIgnore:T,clipShape:E,disableAnimation:!0,getSymbolPoint:function(X){return[c[X*2],c[X*2+1]]}}),m&&this._initSymbolLabelAnimation(s,o,E),k&&(S&&(S=pu(S,c,o,k,C)),c=pu(c,null,o,k,C)),h=this._newPolyline(c),y?p=this._newPolygon(c,S):p&&(g.remove(p),p=this._polygon=null),f||this._initOrUpdateEndLabel(n,o,sd(A)),g.setClipPath(T6(this,o,!0,n));else{y&&!p?p=this._newPolygon(c,S):p&&!y&&(g.remove(p),p=this._polygon=null),f||this._initOrUpdateEndLabel(n,o,sd(A));var I=g.getClipPath();if(I){var O=T6(this,o,!1,n);Xn(I,{shape:O.shape},n)}else g.setClipPath(T6(this,o,!0,n));x&&v.updateData(s,{isIgnore:T,clipShape:E,disableAnimation:!0,getSymbolPoint:function(X){return[c[X*2],c[X*2+1]]}}),(!cP(this._stackedOnPoints,S)||!cP(this._points,c))&&(m?this._doUpdateAnimation(s,S,o,a,k,b,C):(k&&(S&&(S=pu(S,c,o,k,C)),c=pu(c,null,o,k,C)),h.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:S})))}var z=n.getModel("emphasis"),$=z.get("focus"),P=z.get("blurScope"),L=z.get("disabled");if(h.useStyle(Pt(l.getLineStyle(),{fill:"none",stroke:A,lineJoin:"bevel"})),Br(h,n,"lineStyle"),h.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var V=h.getState("emphasis").style;V.lineWidth=+h.style.lineWidth+1}Vt(h).seriesIndex=n.seriesIndex,Jn(h,$,P,L);var B=vP(n.get("smooth")),F=n.get("smoothMonotone");if(h.setShape({smooth:B,smoothMonotone:F,connectNulls:C}),p){var U=s.getCalculationInfo("stackedOnSeries"),G=0;p.useStyle(Pt(u.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),U&&(G=vP(U.get("smooth"))),p.setShape({smooth:B,stackedOnSmooth:G,smoothMonotone:F,connectNulls:C}),Br(p,n,"areaStyle"),Vt(p).seriesIndex=n.seriesIndex,Jn(p,$,P,L)}var Y=this._changePolyState;s.eachItemGraphicEl(function(X){X&&(X.onHoverStateChange=Y)}),this._polyline.onHoverStateChange=Y,this._data=s,this._coordSys=o,this._stackedOnPoints=S,this._points=c,this._step=k,this._valueOrigin=b,n.get("triggerLineEvent")&&(this.packEventData(n,h),p&&this.packEventData(n,p))},t.prototype.packEventData=function(n,r){Vt(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},t.prototype.highlight=function(n,r,a,o){var i=n.getData(),s=nd(i,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=i.getLayout("points"),u=i.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=n.get("zlevel")||0,v=n.get("z")||0;u=new zm(i,s),u.x=c,u.y=f,u.setZ(d,v);var h=u.getSymbolPath().getTextContent();h&&(h.zlevel=d,h.z=v,h.z2=this._polyline.z2+1),u.__temp=!0,i.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Fn.prototype.highlight.call(this,n,r,a,o)},t.prototype.downplay=function(n,r,a,o){var i=n.getData(),s=nd(i,o);if(this._changePolyState("normal"),s!=null&&s>=0){var l=i.getItemGraphicEl(s);l&&(l.__temp?(i.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Fn.prototype.downplay.call(this,n,r,a,o)},t.prototype._changePolyState=function(n){var r=this._polygon;Bb(this._polyline,n),r&&Bb(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new oge({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(n,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new zK({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(n,r,a){var o,i,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(o=s.isHorizontal(),i=!1):r.type==="polar"&&(o=s.dim==="angle",i=!0);var u=n.hostModel,c=u.get("animationDuration");kt(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=kt(f)?f(null):f;n.eachItemGraphicEl(function(v,h){var p=v;if(p){var g=[v.x,v.y],m=void 0,y=void 0,b=void 0;if(a)if(i){var w=a,S=r.pointToCoord(g);o?(m=w.startAngle,y=w.endAngle,b=-S[1]/180*Math.PI):(m=w.r0,y=w.r,b=S[0])}else{var x=a;o?(m=x.x,y=x.x+x.width,b=v.x):(m=x.y+x.height,y=x.y,b=v.y)}var C=y===m?0:(b-m)/(y-m);l&&(C=1-C);var T=kt(f)?f(h):c*C+d,M=p.getSymbolPath(),k=M.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),k&&k.animateFrom({style:{opacity:0}},{duration:300,delay:T}),M.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,a){var o=n.getModel("endLabel");if(WK(n)){var i=n.getData(),s=this._polyline,l=i.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new _n({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=vge(l);c>=0&&(Kr(s,Vr(n,"endLabel"),{inheritColor:a,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,v){return v!=null?NK(i,v):_h(i,f)},enableTextSetter:!0},pge(o,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,r,a,o,i,s,l){var u=this._endLabel,c=this._polyline;if(u){n<1&&o.originalX==null&&(o.originalX=u.x,o.originalY=u.y);var f=a.getLayout("points"),d=a.hostModel,v=d.get("connectNulls"),h=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,b=r.shape,w=y?m?b.x:b.y+b.height:m?b.x+b.width:b.y,S=(m?p:0)*(y?-1:1),x=(m?0:-p)*(y?-1:1),C=m?"x":"y",T=hge(f,w,C),M=T.range,k=M[1]-M[0],E=void 0;if(k>=1){if(k>1&&!v){var A=hP(f,M[0]);u.attr({x:A[0]+S,y:A[1]+x}),i&&(E=d.getRawValue(M[0]))}else{var A=c.getPointOn(w,C);A&&u.attr({x:A[0]+S,y:A[1]+x});var I=d.getRawValue(M[0]),O=d.getRawValue(M[1]);i&&(E=ZH(a,h,I,O,T.t))}o.lastFrameIndex=M[0]}else{var z=n===1||o.lastFrameIndex>0?M[0]:0,A=hP(f,z);i&&(E=d.getRawValue(z)),u.attr({x:A[0]+S,y:A[1]+x})}if(i){var $=ep(u);typeof $.setLabelText=="function"&&$.setLabelText(E)}}},t.prototype._doUpdateAnimation=function(n,r,a,o,i,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=age(this._data,n,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),v=d.current,h=d.stackedOnCurrent,p=d.next,g=d.stackedOnNext;if(i&&(h=pu(d.stackedOnCurrent,d.current,a,i,l),v=pu(d.current,null,a,i,l),g=pu(d.stackedOnNext,d.next,a,i,l),p=pu(d.next,null,a,i,l)),dP(v,p)>3e3||c&&dP(h,g)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=v;var m={shape:{points:p}};d.current!==v&&(m.shape.__points=d.next),u.stopAnimation(),Sn(u,m,f),c&&(c.setShape({points:v,stackedOnPoints:h}),c.stopAnimation(),Sn(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],b=d.status,w=0;w<b.length;w++){var S=b[w].cmd;if(S==="="){var x=n.getItemGraphicEl(b[w].idx1);x&&y.push({el:x,ptIdx:w})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var C=u.shape.__points,T=0;T<y.length;T++){var M=y[T].el,k=y[T].ptIdx*2;M.x=C[k],M.y=C[k+1],M.markRedraw()}})},t.prototype.remove=function(n){var r=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(o,i){o.__temp&&(r.remove(o),a.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Fn);const mge=gge;function Wm(e,t){return{seriesType:e,plan:rp(),reset:function(n){var r=n.getData(),a=n.coordinateSystem,o=n.pipelineContext,i=t||o.large;if(a){var s=$e(a.dimensions,function(v){return r.mapDimension(v)}).slice(0,2),l=s.length,u=r.getCalculationInfo("stackResultDimension");lc(r,s[0])&&(s[0]=u),lc(r,s[1])&&(s[1]=u);var c=r.getStore(),f=r.getDimensionIndex(s[0]),d=r.getDimensionIndex(s[1]);return l&&{progress:function(v,h){for(var p=v.end-v.start,g=i&&_s(p*l),m=[],y=[],b=v.start,w=0;b<v.end;b++){var S=void 0;if(l===1){var x=c.get(f,b);S=a.dataToPoint(x,null,y)}else m[0]=c.get(f,b),m[1]=c.get(d,b),S=a.dataToPoint(m,null,y);i?(g[w++]=S[0],g[w++]=S[1]):h.setItemLayout(b,S.slice())}i&&h.setLayout("points",g)}}}}}}var yge={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]}},bge=function(e){return Math.round(e.length/2)};function GK(e){return{seriesType:e,reset:function(t,n,r){var a=t.getData(),o=t.get("sampling"),i=t.coordinateSystem,s=a.count();if(s>10&&i.type==="cartesian2d"&&o){var l=i.getBaseAxis(),u=i.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/d);if(isFinite(v)&&v>1){o==="lttb"?t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v)):o==="minmax"&&t.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/v));var h=void 0;st(o)?h=yge[o]:kt(o)&&(h=o),h&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,h,bge))}}}}}function _ge(e){e.registerChartView(mge),e.registerSeriesModel(J0e),e.registerLayout(Wm("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var n=t.getData(),r=t.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,GK("line"))}var UK=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return tu(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(n,r,a){var o=this.coordinateSystem;if(o&&o.clampData){var i=o.clampData(n),s=o.dataToPoint(i);if(a)j(o.getAxes(),function(d,v){if(d.type==="category"&&r!=null){var h=d.getTicksCoords(),p=d.getTickModel().get("alignWithLabel"),g=i[v],m=r[v]==="x1"||r[v]==="y1";if(m&&!p&&(g+=1),h.length<2)return;if(h.length===2){s[v]=d.toGlobalCoord(d.getExtent()[m?1:0]);return}for(var y=void 0,b=void 0,w=1,S=0;S<h.length;S++){var x=h[S].coord,C=S===h.length-1?h[S-1].tickValue+w:h[S].tickValue;if(C===g){b=x;break}else if(C<g)y=x;else if(y!=null&&C>g){b=(x+y)/2;break}S===1&&(w=C-h[0].tickValue)}b==null&&(y?y&&(b=h[h.length-1].coord):b=h[0].coord),s[v]=d.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=o.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},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}(er);er.registerClass(UK);const a_=UK;var wge=function(e){ye(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 tu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},t.prototype.brushSelector=function(n,r,a){return a.rect(r.getItemLayout(n))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=wc(a_.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:Se.color.primary,borderWidth:2}},realtimeSort:!1}),t}(a_);const Sge=wge;var xge=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}(),Cge=function(e){ye(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new xge},t.prototype.buildPath=function(n,r){var a=r.cx,o=r.cy,i=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-i)*.5,u=i+l,c=r.startAngle,f=r.endAngle,d=r.clockwise,v=Math.PI*2,h=d?f-c<v:c-f<v;h||(c=f-(d?v:-v));var p=Math.cos(c),g=Math.sin(c),m=Math.cos(f),y=Math.sin(f);h?(n.moveTo(p*i+a,g*i+o),n.arc(p*u+a,g*u+o,l,-Math.PI+c,c,!d)):n.moveTo(p*s+a,g*s+o),n.arc(a,o,s,c,f,!d),n.arc(m*u+a,y*u+o,l,f-Math.PI*2,f-Math.PI,!d),i!==0&&n.arc(a,o,i,f,c,d)},t}(ln);const o_=Cge;function Tge(e,t){t=t||{};var n=t.isRoundCap;return function(r,a,o){var i=a.position;if(!i||i instanceof Array)return Db(r,a,o);var s=e(i),l=a.distance!=null?a.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,v=u.r0,h=(d+v)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,y=n?Math.abs(d-v)/2:0,b=Math.cos,w=Math.sin,S=c+d*b(p),x=f+d*w(p),C="left",T="top";switch(s){case"startArc":S=c+(v-l)*b(m),x=f+(v-l)*w(m),C="center",T="top";break;case"insideStartArc":S=c+(v+l)*b(m),x=f+(v+l)*w(m),C="center",T="bottom";break;case"startAngle":S=c+h*b(p)+Sy(p,l+y,!1),x=f+h*w(p)+xy(p,l+y,!1),C="right",T="middle";break;case"insideStartAngle":S=c+h*b(p)+Sy(p,-l+y,!1),x=f+h*w(p)+xy(p,-l+y,!1),C="left",T="middle";break;case"middle":S=c+h*b(m),x=f+h*w(m),C="center",T="middle";break;case"endArc":S=c+(d+l)*b(m),x=f+(d+l)*w(m),C="center",T="bottom";break;case"insideEndArc":S=c+(d-l)*b(m),x=f+(d-l)*w(m),C="center",T="top";break;case"endAngle":S=c+h*b(g)+Sy(g,l+y,!0),x=f+h*w(g)+xy(g,l+y,!0),C="left",T="middle";break;case"insideEndAngle":S=c+h*b(g)+Sy(g,-l+y,!0),x=f+h*w(g)+xy(g,-l+y,!0),C="right",T="middle";break;default:return Db(r,a,o)}return r=r||{},r.x=S,r.y=x,r.align=C,r.verticalAlign=T,r}}function kge(e,t,n,r){if(gn(r)){e.setTextConfig({rotation:r});return}else if(Ve(t)){e.setTextConfig({rotation:0});return}var a=e.shape,o=a.clockwise?a.startAngle:a.endAngle,i=a.clockwise?a.endAngle:a.startAngle,s=(o+i)/2,l,u=n(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=o;break;case"endAngle":case"insideEndAngle":l=i;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function Sy(e,t,n){return t*Math.sin(e)*(n?-1:1)}function xy(e,t,n){return t*Math.cos(e)*(n?1:-1)}function Ss(e,t,n){var r=e.get("borderRadius");if(r==null)return n?{cornerRadius:0}:null;Ve(r)||(r=[r,r,r,r]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:$e(r,function(o){return Ri(o,a)})}}var k6=Math.max,M6=Math.min;function Mge(e,t){var n=e.getArea&&e.getArea();if(cc(e,"cartesian2d")){var r=e.getBaseAxis();if(r.type!=="category"||!r.onBand){var a=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=a,n.width+=a*2):(n.y-=a,n.height+=a*2)}}return n}var Age=function(e){ye(t,e);function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return t.prototype.render=function(n,r,a,o){this._model=n,this._removeOnRenderedListener(a),this._updateDrawMode(n);var i=n.get("coordinateSystem");(i==="cartesian2d"||i==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(n,r,a):this._renderNormal(n,r,a,o))},t.prototype.incrementalPrepareRender=function(n){this._clear(),this._updateDrawMode(n),this._updateLargeClip(n)},t.prototype.incrementalRender=function(n,r){this._progressiveEls=[],this._incrementalRenderLarge(n,r)},t.prototype.eachRendered=function(n){_c(this._progressiveEls||this.group,n)},t.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},t.prototype._renderNormal=function(n,r,a,o){var i=this.group,s=n.getData(),l=this._data,u=n.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=n.isAnimationEnabled()?n:null,v=Ege(n,u);v&&this._enableRealtimeSort(v,s,a);var h=n.get("clip",!0)||v,p=Mge(u,s);i.removeClipPath();var g=n.get("roundCap",!0),m=n.get("showBackground",!0),y=n.getModel("backgroundStyle"),b=y.get("borderRadius")||0,w=[],S=this._backgroundEls,x=o&&o.isInitSort,C=o&&o.type==="changeAxisOrder";function T(E){var A=Cy[u.type](s,E);if(!A)return null;var I=Nge(u,f,A);return I.useStyle(y.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",b):I.setShape("cornerRadius",b),w[E]=I,I}s.diff(l).add(function(E){var A=s.getItemModel(E),I=Cy[u.type](s,E,A);if(I&&(m&&T(E),!(!s.hasValue(E)||!bP[u.type](I)))){var O=!1;h&&(O=pP[u.type](p,I));var z=gP[u.type](n,s,E,I,f,d,c.model,!1,g);v&&(z.forceLabelAnimation=!0),_P(z,s,E,A,I,n,f,u.type==="polar"),x?z.attr({shape:I}):v?mP(v,d,z,I,E,f,!1,!1):Xn(z,{shape:I},n,E),s.setItemGraphicEl(E,z),i.add(z),z.ignore=O}}).update(function(E,A){var I=s.getItemModel(E),O=Cy[u.type](s,E,I);if(O){if(m){var z=void 0;S.length===0?z=T(A):(z=S[A],z.useStyle(y.getItemStyle()),u.type==="cartesian2d"?z.setShape("r",b):z.setShape("cornerRadius",b),w[E]=z);var $=Cy[u.type](s,E),P=jK(f,$,u);Sn(z,{shape:P},d,E)}var L=l.getItemGraphicEl(A);if(!s.hasValue(E)||!bP[u.type](O)){i.remove(L);return}var V=!1;h&&(V=pP[u.type](p,O),V&&i.remove(L));var B=L&&(L.type==="sector"&&g||L.type==="sausage"&&!g);if(B&&(L&&Ll(L,n,A),L=null),L?oi(L):L=gP[u.type](n,s,E,O,f,d,c.model,!0,g),v&&(L.forceLabelAnimation=!0),C){var F=L.getTextContent();if(F){var U=ep(F);U.prevValue!=null&&(U.prevValue=U.value)}}else _P(L,s,E,I,O,n,f,u.type==="polar");x?L.attr({shape:O}):v?mP(v,d,L,O,E,f,!0,C):Sn(L,{shape:O},n,E,null),s.setItemGraphicEl(E,L),L.ignore=V,i.add(L)}}).remove(function(E){var A=l.getItemGraphicEl(E);A&&Ll(A,n,E)}).execute();var M=this._backgroundGroup||(this._backgroundGroup=new At);M.removeAll();for(var k=0;k<w.length;++k)M.add(w[k]);i.add(M),this._backgroundEls=w,this._data=s},t.prototype._renderLarge=function(n,r,a){this._clear(),SP(n,this.group),this._updateLargeClip(n)},t.prototype._incrementalRenderLarge=function(n,r){this._removeBackground(),SP(r,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(n){var r=n.get("clip",!0)&&Hm(n.coordinateSystem,!1,n),a=this.group;r?a.setClipPath(r):a.removeClipPath()},t.prototype._enableRealtimeSort=function(n,r,a){var o=this;if(r.count()){var i=n.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,n,a),this._isFirstFrame=!1;else{var s=function(l){var u=r.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(i.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){o._updateSortWithinSameData(r,s,i,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(n,r,a){var o=[];return n.each(n.mapDimension(r.dim),function(i,s){var l=a(s);l=l??NaN,o.push({dataIndex:s,mappedValue:l,ordinalNumber:i})}),o.sort(function(i,s){return s.mappedValue-i.mappedValue}),{ordinalNumbers:$e(o,function(i){return i.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(n,r,a){for(var o=a.scale,i=n.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=o.getOrdinalMeta().categories.length;l<u;++l){var c=n.rawIndexOf(i,o.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:r(n.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(n,r){for(var a=r.scale,o=a.getExtent(),i=Math.max(0,o[0]),s=Math.min(o[1],a.getOrdinalMeta().categories.length-1);i<=s;++i)if(n.ordinalNumbers[i]!==a.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(n,r,a,o){if(this._isOrderChangedWithinSameData(n,r,a)){var i=this._dataSort(n,a,r);this._isOrderDifferentInView(i,a)&&(this._removeOnRenderedListener(o),o.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(n,r,a){var o=r.baseAxis,i=this._dataSort(n,o,function(s){return n.get(n.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",isInitSort:!0,axisId:o.index,sortInfo:i})},t.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},t.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},t.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(n){var r=this.group,a=this._data;n&&n.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(o){Ll(o,n,Vt(o).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Fn),pP={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 a=e.x+e.width,o=e.y+e.height,i=k6(t.x,e.x),s=M6(t.x+t.width,a),l=k6(t.y,e.y),u=M6(t.y+t.height,o),c=s<i,f=u<l;return t.x=c&&i>a?s:i,t.y=f&&l>o?u:l,t.width=c?0:s-i,t.height=f?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),c||f},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 a=M6(t.r,e.r),o=k6(t.r0,e.r0);t.r=a,t.r0=o;var i=a-o<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return i}},gP={cartesian2d:function(e,t,n,r,a,o,i,s,l){var u=new rn({shape:Pe({},r),z2:1});if(u.__dataIndex=n,u.name="item",o){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(e,t,n,r,a,o,i,s,l){var u=!a&&l?o_:ja,c=new u({shape:r,z2:1});c.name="item";var f=KK(a);if(c.calculateTextPosition=Tge(f,{isRoundCap:u===o_}),o){var d=c.shape,v=a?"r":"endAngle",h={};d[v]=a?r.r0:r.startAngle,h[v]=r[v],(s?Sn:Xn)(c,{shape:h},o)}return c}};function Ege(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 mP(e,t,n,r,a,o,i,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(i?Sn:Xn)(n,{shape:l},t,a,null);var c=t?e.baseAxis.model:null;(i?Sn:Xn)(n,{shape:u},c,a)}function yP(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var Ige=["x","y","width","height"],Lge=["cx","cy","r","startAngle","endAngle"],bP={cartesian2d:function(e){return!yP(e,Ige)},polar:function(e){return!yP(e,Lge)}},Cy={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var a=n?Pge(n,r):0,o=r.width>0?1:-1,i=r.height>0?1:-1;return{x:r.x+o*a/2,y:r.y+i*a/2,width:r.width-o*a,height:r.height-i*a}},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 Dge(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function KK(e){return function(t){var n=t?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}}(e)}function _P(e,t,n,r,a,o,i,s){var l=t.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var c=e.shape,f=Ss(r.getModel("itemStyle"),c,!0);Pe(c,f),e.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=r.getShallow("cursor");d&&e.attr("cursor",d);var v=s?i?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":i?a.height>=0?"bottom":"top":a.width>=0?"right":"left",h=Vr(r);Kr(e,h,{labelFetcher:o,labelDataIndex:n,defaultText:_h(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=e.getTextContent();if(s&&p){var g=r.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,kge(e,g==="outside"?v:g,KK(i),r.get(["label","rotate"]))}XW(p,h,o.getRawValue(n),function(y){return NK(t,y)});var m=r.getModel(["emphasis"]);Jn(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),Br(e,r),Dge(a)&&(e.style.fill="none",e.style.stroke="none",j(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function Pge(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=e.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,a,o)}var Rge=function(){function e(){}return e}(),wP=function(e){ye(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new Rge},t.prototype.buildPath=function(n,r){for(var a=r.points,o=this.baseDimIdx,i=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<a.length;c+=3)l[o]=u,l[i]=a[c+2],s[o]=a[c+o],s[i]=a[c+i],n.rect(s[0],s[1],l[0],l[1])},t}(ln);function SP(e,t,n,r){var a=e.getData(),o=a.getLayout("valueAxisHorizontal")?1:0,i=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=e.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var c=new wP({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=i,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),n&&n.push(c)}var f=new wP({shape:{points:a.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=o,f.largeDataIndices=i,f.barWidth=s,t.add(f),f.useStyle(a.getVisual("style")),f.style.stroke=null,Vt(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",xP),f.on("mousemove",xP)),n&&n.push(f)}var xP=Ek(function(e){var t=this,n=Oge(t,e.offsetX,e.offsetY);Vt(t).dataIndex=n>=0?n:null},30,!1);function Oge(e,t,n){for(var r=e.baseDimIdx,a=1-r,o=e.shape.points,i=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=o.length/3;c<f;c++){var d=c*3;if(l[r]=u,l[a]=o[d+2],s[r]=o[d+r],s[a]=o[d+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return i[c]}return-1}function jK(e,t,n){if(cc(n,"cartesian2d")){var r=t,a=n.getArea();return{x:e?r.x:a.x,y:e?a.y:r.y,width:e?r.width:a.width,height:e?a.height:r.height}}else{var a=n.getArea(),o=t;return{cx:a.cx,cy:a.cy,r0:e?a.r0:o.r0,r:e?a.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:Math.PI*2}}}function Nge(e,t,n){var r=e.type==="polar"?ja:rn;return new r({shape:jK(t,n,e),silent:!0,z2:0})}const Bge=Age;function Vge(e){e.registerChartView(Bge),e.registerSeriesModel(Sge),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Yt(jU,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,YU("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,GK("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,n){var r=t.componentType||"series";n.eachComponent({mainType:r,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var CP=Math.PI*2,Ty=Math.PI/180;function $ge(e,t,n){t.eachSeriesByType(e,function(r){var a=r.getData(),o=a.mapDimension("value"),i=mG(r,n),s=i.cx,l=i.cy,u=i.r,c=i.r0,f=i.viewRect,d=-r.get("startAngle")*Ty,v=r.get("endAngle"),h=r.get("padAngle")*Ty;v=v==="auto"?d-CP:-v*Ty;var p=r.get("minAngle")*Ty,g=p+h,m=0;a.each(o,function(P){!isNaN(P)&&m++});var y=a.getSum(o),b=Math.PI/(y||m)*2,w=r.get("clockwise"),S=r.get("roseType"),x=r.get("stillShowZeroSum"),C=a.getDataExtent(o);C[0]=0;var T=w?1:-1,M=[d,v],k=T*h/2;Ow(M,!w),d=M[0],v=M[1];var E=YK(r);E.startAngle=d,E.endAngle=v,E.clockwise=w,E.cx=s,E.cy=l,E.r=u,E.r0=c;var A=Math.abs(v-d),I=A,O=0,z=d;if(a.setLayout({viewRect:f,r:u}),a.each(o,function(P,L){var V;if(isNaN(P)){a.setItemLayout(L,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:s,cy:l,r0:c,r:S?NaN:u});return}S!=="area"?V=y===0&&x?b:P*b:V=A/m,V<g?(V=g,I-=g):O+=P;var B=z+T*V,F=0,U=0;h>V?(F=z+T*V/2,U=F):(F=z+k,U=B-k),a.setItemLayout(L,{angle:V,startAngle:F,endAngle:U,clockwise:w,cx:s,cy:l,r0:c,r:S?En(P,C,[c,u]):u}),z=B}),I<CP&&m)if(I<=.001){var $=A/m;a.each(o,function(P,L){if(!isNaN(P)){var V=a.getItemLayout(L);V.angle=$;var B=0,F=0;$<h?(B=d+T*(L+1/2)*$,F=B):(B=d+T*L*$+k,F=d+T*(L+1)*$-k),V.startAngle=B,V.endAngle=F}})}else b=I/O,z=d,a.each(o,function(P,L){if(!isNaN(P)){var V=a.getItemLayout(L),B=V.angle===g?g:P*b,F=0,U=0;B<h?(F=z+T*B/2,U=F):(F=z+k,U=z+T*B-k),V.startAngle=F,V.endAngle=U,z+=T*B}})})}var YK=an();function sp(e){return{seriesType:e,reset:function(t,n){var r=n.findComponents({mainType:"legend"});if(!(!r||!r.length)){var a=t.getData();a.filterSelf(function(o){for(var i=a.getName(o),s=0;s<r.length;s++)if(!r[s].isSelected(i))return!1;return!0})}}}}var zge=Math.PI/180;function TP(e,t,n,r,a,o,i,s,l,u){if(e.length<2)return;function c(p){for(var g=p.rB,m=g*g,y=0;y<p.list.length;y++){var b=p.list[y],w=Math.abs(b.label.y-n),S=r+b.len,x=S*S,C=Math.sqrt(Math.abs((1-w*w/m)*x)),T=t+(C+b.len2)*a,M=T-b.label.x,k=b.targetTextWidth-M*a;qK(b,k,!0),b.label.x=T}}function f(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var b=p[y],w=b.label.y>n?m:g,S=Math.abs(b.label.y-n);if(S>=w.maxY){var x=b.label.x-t-b.len2*a,C=r+b.len,T=Math.abs(x)<C?Math.sqrt(S*S/(1-x*x/C/C)):C;w.rB=T,w.maxY=S}w.list.push(b)}c(g),c(m)}for(var d=e.length,v=0;v<d;v++)if(e[v].position==="outer"&&e[v].labelAlignTo==="labelLine"){var h=e[v].label.x-u;e[v].linePoints[1][0]+=h,e[v].label.x=u}Zx(e,1,l,l+i)&&f(e)}function Fge(e,t,n,r,a,o,i,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<e.length;d++){var v=e[d].label;A6(e[d])||(v.x<t?(c=Math.min(c,v.x),l.push(e[d])):(f=Math.max(f,v.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var h=e[d];if(!A6(h)&&h.linePoints){if(h.labelStyleWidth!=null)continue;var v=h.label,p=h.linePoints,g=void 0;h.labelAlignTo==="edge"?v.x<t?g=p[2][0]-h.labelDistance-i-h.edgeDistance:g=i+a-h.edgeDistance-p[2][0]-h.labelDistance:h.labelAlignTo==="labelLine"?v.x<t?g=c-i-h.bleedMargin:g=i+a-f-h.bleedMargin:v.x<t?g=v.x-i-h.bleedMargin:g=i+a-v.x-h.bleedMargin,h.targetTextWidth=g,qK(h,g,!1)}}TP(u,t,n,r,1,a,o,i,s,f),TP(l,t,n,r,-1,a,o,i,s,c);for(var d=0;d<e.length;d++){var h=e[d];if(!A6(h)&&h.linePoints){var v=h.label,p=h.linePoints,m=h.labelAlignTo==="edge",y=v.style.padding,b=y?y[1]+y[3]:0,w=v.style.backgroundColor?0:b,S=h.rect.width+w,x=p[1][0]-p[2][0];m?v.x<t?p[2][0]=i+h.edgeDistance+S+h.labelDistance:p[2][0]=i+a-h.edgeDistance-S-h.labelDistance:(v.x<t?p[2][0]=v.x+h.labelDistance:p[2][0]=v.x-h.labelDistance,p[1][0]=p[2][0]+x),p[1][1]=p[2][1]=v.y}}}function qK(e,t,n){if(e.labelStyleWidth==null){var r=e.label,a=r.style,o=e.rect,i=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,c=o.width+(i?0:l);if(t<c||n){if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",t-l);var f=r.getBoundingRect();r.setStyle("width",Math.ceil(f.width)),r.setStyle("backgroundColor",i)}else{var d=t-l,v=t<c?d:n?d>e.unconstrainedWidth?null:d:null;r.setStyle("width",v)}XK(o,r)}}}function XK(e,t){kP.rect=e,bK(kP,t,Hge)}var Hge={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},kP={};function A6(e){return e.position==="center"}function Wge(e){var t=e.getData(),n=[],r,a,o=!1,i=(e.get("minShowLabelAngle")||0)*zge,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function v(x){x.ignore=!0}function h(x){if(!x.ignore)return!0;for(var C in x.states)if(x.states[C].ignore===!1)return!0;return!1}t.each(function(x){var C=t.getItemGraphicEl(x),T=C.shape,M=C.getTextContent(),k=C.getTextGuideLine(),E=t.getItemModel(x),A=E.getModel("label"),I=A.get("position")||E.get(["emphasis","label","position"]),O=A.get("distanceToLabelLine"),z=A.get("alignTo"),$=at(A.get("edgeDistance"),u),P=A.get("bleedMargin");P==null&&(P=Math.min(u,d)>200?10:2);var L=E.getModel("labelLine"),V=L.get("length");V=at(V,u);var B=L.get("length2");if(B=at(B,u),Math.abs(T.endAngle-T.startAngle)<i){j(M.states,v),M.ignore=!0,k&&(j(k.states,v),k.ignore=!0);return}if(h(M)){var F=(T.startAngle+T.endAngle)/2,U=Math.cos(F),G=Math.sin(F),Y,X,te,oe;r=T.cx,a=T.cy;var re=I==="inside"||I==="inner";if(I==="center")Y=T.cx,X=T.cy,oe="center";else{var ce=(re?(T.r+T.r0)/2*U:T.r*U)+r,ie=(re?(T.r+T.r0)/2*G:T.r*G)+a;if(Y=ce+U*3,X=ie+G*3,!re){var Z=ce+U*(V+l-T.r),se=ie+G*(V+l-T.r),J=Z+(U<0?-1:1)*B,ae=se;z==="edge"?Y=U<0?c+$:c+u-$:Y=J+(U<0?-O:O),X=ae,te=[[ce,ie],[Z,se],[J,ae]]}oe=re?"center":z==="edge"?U>0?"right":"left":U>0?"left":"right"}var fe=Math.PI,ve=0,me=A.get("rotate");if(gn(me))ve=me*(fe/180);else if(I==="center")ve=0;else if(me==="radial"||me===!0){var pe=U<0?-F+fe:-F;ve=pe}else if(me==="tangential"&&I!=="outside"&&I!=="outer"){var Ne=Math.atan2(U,G);Ne<0&&(Ne=fe*2+Ne);var Ee=G>0;Ee&&(Ne=fe+Ne),ve=Ne-fe}if(o=!!ve,M.x=Y,M.y=X,M.rotation=ve,M.setStyle({verticalAlign:"middle"}),re){M.setStyle({align:oe});var be=M.states.select;be&&(be.x+=M.x,be.y+=M.y)}else{var _e=new Ot(0,0,0,0);XK(_e,M),n.push({label:M,labelLine:k,position:I,len:V,len2:B,minTurnAngle:L.get("minTurnAngle"),maxSurfaceAngle:L.get("maxSurfaceAngle"),surfaceNormal:new Dt(U,G),linePoints:te,textAlign:oe,labelDistance:O,labelAlignTo:z,edgeDistance:$,bleedMargin:P,rect:_e,unconstrainedWidth:_e.width,labelStyleWidth:M.style.width})}C.setTextConfig({inside:re})}}),!o&&e.get("avoidLabelOverlap")&&Fge(n,r,a,l,u,d,c,f);for(var p=0;p<n.length;p++){var g=n[p],m=g.label,y=g.labelLine,b=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),b&&(j(m.states,v),m.ignore=!0);var w=m.states.select;w&&(w.x+=m.x,w.y+=m.y)}if(y){var S=g.linePoints;b||!S?(j(y.states,v),y.ignore=!0):(gK(S,g.minTurnAngle),Zpe(S,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:S}),m.__hostTarget.textGuideLineConfig={anchor:new Dt(S[0][0],S[0][1])})}}}var Gge=function(e){ye(t,e);function t(n,r,a){var o=e.call(this)||this;o.z2=2;var i=new _n;return o.setTextContent(i),o.updateData(n,r,a,!0),o}return t.prototype.updateData=function(n,r,a,o){var i=this,s=n.hostModel,l=n.getItemModel(r),u=l.getModel("emphasis"),c=n.getItemLayout(r),f=Pe(Ss(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){i.setShape(f);return}if(o){i.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?(Xn(i,{scaleX:0,scaleY:0},s,{dataIndex:r,isFrom:!0}),i.originX=f.cx,i.originY=f.cy):d==="scale"?(i.shape.r=c.r0,Xn(i,{shape:{r:c.r}},s,r)):a!=null?(i.setShape({startAngle:a,endAngle:a}),Xn(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,r)):(i.shape.endAngle=c.startAngle,Sn(i,{shape:{endAngle:c.endAngle}},s,r))}else oi(i),Sn(i,{shape:f},s,r);i.useStyle(n.getItemVisual(r,"style")),Br(i,l);var v=(c.startAngle+c.endAngle)/2,h=s.get("selectedOffset"),p=Math.cos(v)*h,g=Math.sin(v)*h,m=l.getShallow("cursor");m&&i.attr("cursor",m),this._updateLabel(s,n,r),i.ensureState("emphasis").shape=Pe({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Ss(u.getModel("itemStyle"),c)),Pe(i.ensureState("select"),{x:p,y:g,shape:Ss(l.getModel(["select","itemStyle"]),c)}),Pe(i.ensureState("blur"),{shape:Ss(l.getModel(["blur","itemStyle"]),c)});var y=i.getTextGuideLine(),b=i.getTextContent();y&&Pe(y.ensureState("select"),{x:p,y:g}),Pe(b.ensureState("select"),{x:p,y:g}),Jn(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(n,r,a){var o=this,i=r.getItemModel(a),s=i.getModel("labelLine"),l=r.getItemVisual(a,"style"),u=l&&l.fill,c=l&&l.opacity;Kr(o,Vr(i),{labelFetcher:r.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:c,defaultText:n.getFormattedLabel(a,"normal")||r.getName(a)});var f=o.getTextContent();o.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=i.get(["label","position"]);if(d!=="outside"&&d!=="outer")o.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new La,this.setTextGuideLine(v)),Hk(this,Wk(i),{stroke:u,opacity:Mo(s.get(["lineStyle","opacity"]),c,1)})}},t}(ja),Uge=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ignoreLabelLineUpdate=!0,n}return t.prototype.render=function(n,r,a,o){var i=n.getData(),s=this._data,l=this.group,u;if(!s&&i.count()>0){for(var c=i.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<i.count();++f)c=i.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),i.count()===0&&n.get("showEmptyCircle")){var d=YK(n),v=new ja({shape:Mt(d)});v.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}i.diff(s).add(function(h){var p=new Gge(i,h,u);i.setItemGraphicEl(h,p),l.add(p)}).update(function(h,p){var g=s.getItemGraphicEl(p);g.updateData(i,h,u),g.off("click"),l.add(g),i.setItemGraphicEl(h,g)}).remove(function(h){var p=s.getItemGraphicEl(h);Ll(p,n,h)}).execute(),Wge(n),n.get("animationTypeUpdate")!=="expansion"&&(this._data=i)},t.prototype.dispose=function(){},t.prototype.containPoint=function(n,r){var a=r.getData(),o=a.getItemLayout(0);if(o){var i=n[0]-o.cx,s=n[1]-o.cy,l=Math.sqrt(i*i+s*s);return l<=o.r&&l>=o.r0}},t.type="pie",t}(Fn);const Kge=Uge;function lp(e,t,n){t=Ve(t)&&{coordDimensions:t}||Pe({encodeDefine:e.getEncode()},t);var r=e.getSource(),a=Vm(r,t).dimensions,o=new Wa(a,e);return o.initData(r,n),o}var jge=function(){function e(t,n){this._getDataWithEncodedVisual=t,this._getRawData=n}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var n=this._getRawData();return n.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var n=this._getDataWithEncodedVisual();return n.indexOfName(t)},e.prototype.getItemVisual=function(t,n){var r=this._getDataWithEncodedVisual();return r.getItemVisual(t,n)},e}();const up=jge;var Yge=an(),ZK=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new up(lt(this.getData,this),lt(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return lp(this,{coordDimensions:["value"],encodeDefaulter:Yt(_k,this)})},t.prototype.getDataParams=function(n){var r=this.getData(),a=Yge(r),o=a.seats;if(!o){var i=[];r.each(r.mapDimension("value"),function(l){i.push(l)}),o=a.seats=Nle(i,r.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,n);return s.percent=o[n]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(n){td(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(er);Dfe({fullType:ZK.type,getCoord2:function(e){return e.getShallow("center")}});const qge=ZK;function Xge(e){return{seriesType:e,reset:function(t,n){var r=t.getData();r.filterSelf(function(a){var o=r.mapDimension("value"),i=r.get(o,a);return!(gn(i)&&!isNaN(i)&&i<0)})}}}function Zge(e){e.registerChartView(Kge),e.registerSeriesModel(qge),cU("pie",e.registerAction),e.registerLayout(Yt($ge,"pie")),e.registerProcessor(sp("pie")),e.registerProcessor(Xge("pie"))}var Jge=function(e){ye(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(n,r){return tu(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(n,r,a){return a.point(r.getItemLayout(n))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:Se.color.primary}},universalTransition:{divideShape:"clone"}},t}(er);const Qge=Jge;var JK=4,eme=function(){function e(){}return e}(),tme=function(e){ye(t,e);function t(n){var r=e.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.getDefaultShape=function(){return new eme},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(n,r){var a=r.points,o=r.size,i=this.symbolProxy,s=i.shape,l=n.getContext?n.getContext():n,u=l&&o[0]<JK,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<a.length;){var d=a[f++],v=a[f++];isNaN(d)||isNaN(v)||c&&!c.contain(d,v)||(s.x=d-o[0]/2,s.y=v-o[1]/2,s.width=o[0],s.height=o[1],i.buildPath(n,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},t.prototype.afterBrush=function(){var n=this.shape,r=n.points,a=n.size,o=this._ctx,i=this.softClipShape,s;if(o){for(s=this._off;s<r.length;){var l=r[s++],u=r[s++];isNaN(l)||isNaN(u)||i&&!i.contain(l,u)||o.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(n,r){for(var a=this.shape,o=a.points,i=a.size,s=Math.max(i[0],4),l=Math.max(i[1],4),u=o.length/2-1;u>=0;u--){var c=u*2,f=o[c]-s/2,d=o[c+1]-l/2;if(n>=f&&r>=d&&n<=f+s&&r<=d+l)return u}return-1},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),o=this.getBoundingRect();if(n=a[0],r=a[1],o.contain(n,r)){var i=this.hoverDataIdx=this.findDataIndex(n,r);return i>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,a=r.points,o=r.size,i=o[0],s=o[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d<a.length;){var v=a[d++],h=a[d++];l=Math.min(v,l),c=Math.max(v,c),u=Math.min(h,u),f=Math.max(h,f)}n=this._rect=new Ot(l-i/2,u-s/2,c-l+i,f-u+s)}return n},t}(ln),nme=function(){function e(){this.group=new At}return e.prototype.updateData=function(t,n){this._clear();var r=this._create();r.setShape({points:t.getLayout("points")}),this._setCommon(r,t,n)},e.prototype.updateLayout=function(t){var n=t.getLayout("points");this.group.eachChild(function(r){if(r.startIndex!=null){var a=(r.endIndex-r.startIndex)*2,o=r.startIndex*4*2;n=new Float32Array(n.buffer,o,a)}r.setShape("points",n),r.reset()})},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,n,r){var a=this._newAdded[0],o=n.getLayout("points"),i=a&&a.shape.points;if(i&&i.length<2e4){var s=i.length,l=new Float32Array(s+o.length);l.set(i),l.set(o,s),a.endIndex=t.end,a.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:o}),this._setCommon(u,n,r)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new tme({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,n,r){var a=n.hostModel;r=r||{};var o=n.getVisual("symbolSize");t.setShape("size",o instanceof Array?o:[o,o]),t.softClipShape=r.clipShape||null,t.symbolProxy=Ar(n.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var i=t.shape.size[0]<JK;t.useStyle(a.getModel("itemStyle").getItemStyle(i?["color","shadowBlur","shadowColor"]:["color"]));var s=n.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=Vt(t);u.seriesIndex=a.seriesIndex,t.on("mousemove",function(c){u.dataIndex=null;var f=t.hoverDataIdx;f>=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const rme=nme;var ame=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var o=n.getData(),i=this._updateSymbolDraw(o,n);i.updateData(o,{clipShape:this._getClipShape(n)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(n,r,a){var o=n.getData(),i=this._updateSymbolDraw(o,n);i.incrementalPrepareUpdate(o),this._finished=!1},t.prototype.incrementalRender=function(n,r,a){this._symbolDraw.incrementalUpdate(n,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=n.end===r.getData().count()},t.prototype.updateTransform=function(n,r,a){var o=n.getData();if(this.group.dirty(),!this._finished||o.count()>1e4)return{update:!0};var i=Wm("").reset(n,r,a);i.progress&&i.progress({start:0,end:o.count(),count:o.count()},o),this._symbolDraw.updateLayout(o)},t.prototype.eachRendered=function(n){this._symbolDraw&&this._symbolDraw.eachRendered(n)},t.prototype._getClipShape=function(n){if(n.get("clip",!0)){var r=n.coordinateSystem;return r&&r.getArea&&r.getArea(.1)}},t.prototype._updateSymbolDraw=function(n,r){var a=this._symbolDraw,o=r.pipelineContext,i=o.large;return(!a||i!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=i?new rme:new Fm,this._isLargeDraw=i,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Fn);const ome=ame;var QK={left:0,right:0,top:0,bottom:0},i_=["25%","25%"],ime=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(n,r){var a=Td(n.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),a&&n.outerBounds&&Us(n.outerBounds,a)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&n.outerBounds&&Us(this.option.outerBounds,n.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:QK,outerBoundsContain:"all",outerBoundsClampWidth:i_[0],outerBoundsClampHeight:i_[1],backgroundColor:Se.color.transparent,borderWidth:1,borderColor:Se.color.neutral30},t}(mn);const sme=ime;var nC=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",lr).models[0]},t.type="cartesian2dAxis",t}(mn);Er(nC,$m);var ej={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:!0,onZeroAxisIndex:null,lineStyle:{color:Se.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:Se.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Se.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[Se.color.backgroundTint,Se.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Se.color.neutral00,borderColor:Se.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},lme=Zt({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},ej),qk=Zt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Se.color.axisMinorSplitLine,width:1}}},ej),ume=Zt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},qk),cme=Pt({logBase:10},qk);const tj={category:lme,value:qk,time:ume,log:cme};var fme={value:1,category:1,time:1,log:1},rC=null;function dme(e){rC||(rC=e)}function Gm(){return rC}function wh(e,t,n,r){j(fme,function(a,o){var i=Zt(Zt({},tj[o],!0),r,!0),s=function(l){ye(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+o,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=Tg(this),v=d?Td(c):{},h=f.getTheme();Zt(c,h.get(o+"Axis")),Zt(c,this.getDefaultOption()),c.type=MP(c),d&&Us(c,v,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=Lg.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(c){var f=Gm();return f?f.updateModelAxisBreak(this,c):{breaks:[]}},u.type=t+"Axis."+o,u.defaultOption=i,u}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",MP)}function MP(e){return e.type||(e.data?"category":"value")}var vme=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return $e(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),In(this.getAxes(),function(n){return n.scale.type===t})},e.prototype.addAxis=function(t){var n=t.dim;this._axes[n]=t,this._dimList.push(n)},e}();const hme=vme;var aC=["x","y"];function AP(e){return(e.type==="interval"||e.type==="time")&&!e.hasBreaks()}var pme=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=aC,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!AP(n)||!AP(r))){var a=n.getExtent(),o=r.getExtent(),i=this.dataToPoint([a[0],o[0]]),s=this.dataToPoint([a[1],o[1]]),l=a[1]-a[0],u=o[1]-o[0];if(!(!l||!u)){var c=(s[0]-i[0])/l,f=(s[1]-i[1])/u,d=i[0]-a[0]*c,v=i[1]-o[0]*f,h=this._transform=[c,0,0,f,d,v];this._invTransform=Pi([],h)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(n){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&a.contain(a.toLocalCoord(n[1]))},t.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},t.prototype.containZone=function(n,r){var a=this.dataToPoint(n),o=this.dataToPoint(r),i=this.getArea(),s=new Ot(a[0],a[1],o[0]-a[0],o[1]-a[1]);return i.intersect(s)},t.prototype.dataToPoint=function(n,r,a){a=a||[];var o=n[0],i=n[1];if(this._transform&&o!=null&&isFinite(o)&&i!=null&&isFinite(i))return _r(a,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(o,r)),a[1]=l.toGlobalCoord(l.dataToCoord(i,r)),a},t.prototype.clampData=function(n,r){var a=this.getAxis("x").scale,o=this.getAxis("y").scale,i=a.getExtent(),s=o.getExtent(),l=a.parse(n[0]),u=o.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(i[0],i[1]),l),Math.max(i[0],i[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},t.prototype.pointToData=function(n,r,a){if(a=a||[],this._invTransform)return _r(a,n,this._invTransform);var o=this.getAxis("x"),i=this.getAxis("y");return a[0]=o.coordToData(o.toLocalCoord(n[0]),r),a[1]=i.coordToData(i.toLocalCoord(n[1]),r),a},t.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},t.prototype.getArea=function(n){n=n||0;var r=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),o=Math.min(r[0],r[1])-n,i=Math.min(a[0],a[1])-n,s=Math.max(r[0],r[1])-o+n,l=Math.max(a[0],a[1])-i+n;return new Ot(o,i,s,l)},t}(hme),gme=function(e){ye(t,e);function t(n,r,a,o,i){var s=e.call(this,n,r,a)||this;return s.index=0,s.type=o||"value",s.position=i||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},t.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t}(Gi);const nj=gme;var t4="expandAxisBreak",rj="collapseAxisBreak",aj="toggleAxisBreak",Xk="axisbreakchanged",mme={type:t4,event:Xk,update:"update",refineEvent:Zk},yme={type:rj,event:Xk,update:"update",refineEvent:Zk},bme={type:aj,event:Xk,update:"update",refineEvent:Zk};function Zk(e,t,n,r){var a=[];return j(e,function(o){a=a.concat(o.eventBreaks)}),{eventContent:{breaks:a}}}function _me(e){e.registerAction(mme,t),e.registerAction(yme,t),e.registerAction(bme,t);function t(n,r){var a=[],o=jv(r,n);function i(s,l){j(o[s],function(u){var c=u.updateAxisBreaks(n);j(c.breaks,function(f){var d;a.push(Pt((d={},d[l]=u.componentIndex,d),f))})})}return i("xAxisModels","xAxisIndex"),i("yAxisModels","yAxisIndex"),i("singleAxisModels","singleAxisIndex"),{eventBreaks:a}}}var $u=Math.PI,wme=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],Sme=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Sh=an(),oj=an(),ij=function(){function e(t){this.recordMap={},this.resolveAxisNameOverlap=t}return e.prototype.ensureRecord=function(t){var n=t.axis.dim,r=t.componentIndex,a=this.recordMap,o=a[n]||(a[n]=[]);return o[r]||(o[r]={ready:{}})},e}();function xme(e,t,n,r){var a=n.axis,o=t.ensureRecord(n),i=[],s,l=Jk(e.axisName)&&bh(e.nameLocation);j(r,function(h){var p=Ks(h);if(!(!p||p.label.ignore)){i.push(p);var g=o.transGroup;l&&(g.transform?Pi(Hp,g.transform):Mw(Hp),p.transform&&As(Hp,Hp,p.transform),Ot.copy(ky,p.localRect),ky.applyTransform(Hp),s?s.union(ky):Ot.copy(s=new Ot(0,0,0,0),ky))}});var u=Math.abs(o.dirVec.x)>.1?"x":"y",c=o.transGroup[u];if(i.sort(function(h,p){return Math.abs(h.label[u]-c)-Math.abs(p.label[u]-c)}),l&&s){var f=a.getExtent(),d=Math.min(f[0],f[1]),v=Math.max(f[0],f[1])-d;s.union(new Ot(d,0,v,1))}o.stOccupiedRect=s,o.labelInfoList=i}var Hp=Jr(),ky=new Ot(0,0,0,0),sj=function(e,t,n,r,a,o){if(bh(e.nameLocation)){var i=o.stOccupiedRect;i&&lj(e0e({},i,o.transGroup.transform),r,a)}else uj(o.labelInfoList,o.dirVec,r,a)};function lj(e,t,n){var r=new Dt;Qw(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&qx(t,r)}function uj(e,t,n,r){for(var a=Dt.dot(r,t)>=0,o=0,i=e.length;o<i;o++){var s=e[a?o:i-1-o];s.label.ignore||lj(s,n,r)}}var Kf=function(){function e(t,n,r,a){this.group=new At,this._axisModel=t,this._api=n,this._local={},this._shared=a||new ij(sj),this._resetCfgDetermined(r)}return e.prototype.updateCfg=function(t){var n=this._cfg.raw;n.position=t.position,n.labelOffset=t.labelOffset,this._resetCfgDetermined(n)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(t){var n=this._axisModel,r=n.getDefaultOption?n.getDefaultOption():{},a=yt(t.axisName,n.get("name")),o=n.get("nameMoveOverlap");(o==null||o==="auto")&&(o=yt(t.defaultNameMoveOverlap,!0));var i={raw:t,position:t.position,rotation:t.rotation,nameDirection:yt(t.nameDirection,1),tickDirection:yt(t.tickDirection,1),labelDirection:yt(t.labelDirection,1),labelOffset:yt(t.labelOffset,0),silent:yt(t.silent,!0),axisName:a,nameLocation:Mo(n.get("nameLocation"),r.nameLocation,"end"),shouldNameMoveOverlap:Jk(a)&&o,optionHideOverlap:n.get(["axisLabel","hideOverlap"]),showMinorTicks:n.get(["minorTick","show"])};this._cfg=i;var s=new At({x:i.position[0],y:i.position[1],rotation:i.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(n);l.transGroup=this._transformGroup,l.dirVec=new Dt(Math.cos(-i.rotation),Math.sin(-i.rotation))},e.prototype.build=function(t,n){var r=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),j(Cme,function(a){t[a]&&Tme[a](r._cfg,r._local,r._shared,r._axisModel,r.group,r._transformGroup,r._api,n||{})}),this},e.innerTextLayout=function(t,n,r){var a=zH(n-t),o,i;return yg(a)?(i=r>0?"top":"bottom",o="center"):yg(a-$u)?(i=r>0?"bottom":"top",o="center"):(i="middle",a>0&&a<$u?o=r>0?"right":"left":o=r>0?"left":"right"),{rotation:a,textAlign:o,textVerticalAlign:i}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e}(),Cme=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],Tme={axisLine:function(e,t,n,r,a,o,i){var s=r.get(["axisLine","show"]);if(s==="auto"&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),!!s){var l=r.axis.getExtent(),u=o.transform,c=[l[0],0],f=[l[1],0],d=c[0]>f[0];u&&(_r(c,c,u),_r(f,f,u));var v=Pe({lineCap:"round"},r.getModel(["axisLine","lineStyle"]).getLineStyle()),h={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(r.get(["axisLine","breakLine"])&&r.axis.scale.hasBreaks())Gm().buildAxisBreakLine(r,a,o,h);else{var p=new Rr(Pe({shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]}},h));ph(p.shape,p.style.lineWidth),p.anid="line",a.add(p)}var g=r.get(["axisLine","symbol"]);if(g!=null){var m=r.get(["axisLine","symbolSize"]);st(g)&&(g=[g,g]),(st(m)||gn(m))&&(m=[m,m]);var y=Md(r.get(["axisLine","symbolOffset"])||0,m),b=m[0],w=m[1];j([{rotate:e.rotation+Math.PI/2,offset:y[0],r:0},{rotate:e.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((c[0]-f[0])*(c[0]-f[0])+(c[1]-f[1])*(c[1]-f[1]))}],function(S,x){if(g[x]!=="none"&&g[x]!=null){var C=Ar(g[x],-b/2,-w/2,b,w,v.stroke,!0),T=S.r+S.offset,M=d?f:c;C.attr({rotation:S.rotate,x:M[0]+T*Math.cos(e.rotation),y:M[1]-T*Math.sin(e.rotation),silent:!0,z2:11}),a.add(C)}})}}},axisTickLabelEstimate:function(e,t,n,r,a,o,i,s){var l=IP(t,a,s);l&&EP(e,t,n,r,a,o,i,Oi.estimate)},axisTickLabelDetermine:function(e,t,n,r,a,o,i,s){var l=IP(t,a,s);l&&EP(e,t,n,r,a,o,i,Oi.determine);var u=Eme(e,a,o,r);Ame(e,t.labelLayoutList,u),Ime(e,a,o,r,e.tickDirection)},axisName:function(e,t,n,r,a,o,i,s){var l=n.ensureRecord(r);t.nameEl&&(a.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=e.axisName;if(Jk(u)){var c=e.nameLocation,f=e.nameDirection,d=r.getModel("nameTextStyle"),v=r.get("nameGap")||0,h=r.axis.getExtent(),p=r.axis.inverse?-1:1,g=new Dt(0,0),m=new Dt(0,0);c==="start"?(g.x=h[0]-p*v,m.x=-p):c==="end"?(g.x=h[1]+p*v,m.x=p):(g.x=(h[0]+h[1])/2,g.y=e.labelOffset+f*v,m.y=f);var y=Jr();m.transform(yc(y,y,e.rotation));var b=r.get("nameRotate");b!=null&&(b=b*$u/180);var w,S;bh(c)?w=Kf.innerTextLayout(e.rotation,b??e.rotation,f):(w=kme(e.rotation,c,b||0,h),S=e.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(w.rotation)),!isFinite(S)&&(S=null)));var x=d.getFont(),C=r.get("nameTruncate",!0)||{},T=C.ellipsis,M=la(e.raw.nameTruncateMaxWidth,C.maxWidth,S),k=s.nameMarginLevel||0,E=new _n({x:g.x,y:g.y,rotation:w.rotation,silent:Kf.isLabelSilent(r),style:zn(d,{text:u,font:x,overflow:"truncate",width:M,ellipsis:T,fill:d.getTextColor()||r.get(["axisLine","lineStyle","color"]),align:d.get("align")||w.textAlign,verticalAlign:d.get("verticalAlign")||w.textVerticalAlign}),z2:1});if(eu({el:E,componentModel:r,itemName:u}),E.__fullText=u,E.anid="name",r.get("triggerEvent")){var A=Kf.makeAxisEventDataBase(r);A.targetType="axisName",A.name=u,Vt(E).eventData=A}o.add(E),E.updateTransform(),t.nameEl=E;var I=l.nameLayout=Ks({label:E,priority:E.z2,defaultAttr:{ignore:E.ignore},marginDefault:bh(c)?wme[k]:Sme[k]});if(l.nameLocation=c,a.add(E),E.decomposeTransform(),e.shouldNameMoveOverlap&&I){var O=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,I,m,O)}}}};function EP(e,t,n,r,a,o,i,s){fj(t)||Lme(e,t,a,s,r,i);var l=t.labelLayoutList;Dme(e,r,l,o),Ome(r,e.rotation,l);var u=e.optionHideOverlap;Mme(r,l,u),u&&_K(In(l,function(c){return c&&!c.label.ignore})),xme(e,n,r,l)}function kme(e,t,n,r){var a=zH(n-e),o,i,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return yg(a-$u/2)?(i=l?"bottom":"top",o="center"):yg(a-$u*1.5)?(i=l?"top":"bottom",o="center"):(i="middle",a<$u*1.5&&a>$u/2?o=l?"left":"right":o=l?"right":"left"),{rotation:a,textAlign:o,textVerticalAlign:i}}function Mme(e,t,n){if(rK(e.axis))return;function r(s,l,u){var c=Ks(t[l]),f=Ks(t[u]);if(!(!c||!f)){if(s===!1||c.suggestIgnore){w0(c.label);return}if(f.suggestIgnore){w0(f.label);return}var d=.1;if(!n){var v=[0,0,0,0];c=Xx({marginForce:v},c),f=Xx({marginForce:v},f)}Qw(c,f,null,{touchThreshold:d})&&w0(s?f.label:c.label)}}var a=e.get(["axisLabel","showMinLabel"]),o=e.get(["axisLabel","showMaxLabel"]),i=t.length;r(a,0,1),r(o,i-1,i-2)}function Ame(e,t,n){e.showMinorTicks||j(t,function(r){if(r&&r.label.ignore)for(var a=0;a<n.length;a++){var o=n[a],i=oj(o),s=Sh(r.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===s.tickValue){w0(o);return}}})}function w0(e){e&&(e.ignore=!0)}function cj(e,t,n,r,a){for(var o=[],i=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;i[0]=u,i[1]=0,s[0]=u,s[1]=n,t&&(_r(i,i,t),_r(s,s,t));var c=new Rr({shape:{x1:i[0],y1:i[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});ph(c.shape,c.style.lineWidth),c.anid=a+"_"+e[l].tickValue,o.push(c);var f=oj(c);f.onBand=!!e[l].onBand,f.tickValue=e[l].tickValue}return o}function Eme(e,t,n,r){var a=r.axis,o=r.getModel("axisTick"),i=o.get("show");if(i==="auto"&&(i=!0,e.raw.axisTickAutoShow!=null&&(i=!!e.raw.axisTickAutoShow)),!i||a.scale.isBlank())return[];for(var s=o.getModel("lineStyle"),l=e.tickDirection*o.get("length"),u=a.getTicksCoords(),c=cj(u,n.transform,l,Pt(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)t.add(c[f]);return c}function Ime(e,t,n,r,a){var o=r.axis,i=r.getModel("minorTick");if(!(!e.showMinorTicks||o.scale.isBlank())){var s=o.getMinorTicksCoords();if(s.length)for(var l=i.getModel("lineStyle"),u=a*i.get("length"),c=Pt(l.getLineStyle(),Pt(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<s.length;f++)for(var d=cj(s[f],n.transform,u,c,"minorticks_"+f),v=0;v<d.length;v++)t.add(d[v])}}function IP(e,t,n){if(fj(e)){var r=e.axisLabelsCreationContext,a=r.out.noPxChangeTryDetermine;if(n.noPxChange){for(var o=!0,i=0;i<a.length;i++)o=o&&a[i]();if(o)return!1}a.length&&(t.remove(e.labelGroup),oC(e,null,null,null))}return!0}function Lme(e,t,n,r,a,o){var i=a.axis,s=la(e.raw.axisLabelShow,a.get(["axisLabel","show"])),l=new At;n.add(l);var u=Jb(r);if(!s||i.scale.isBlank()){oC(t,[],l,u);return}var c=a.getModel("axisLabel"),f=i.getViewLabels(u),d=(la(e.raw.labelRotate,c.get("rotate"))||0)*$u/180,v=Kf.innerTextLayout(e.rotation,d,e.labelDirection),h=a.getCategories&&a.getCategories(!0),p=[],g=a.get("triggerEvent"),m=1/0,y=-1/0;j(f,function(w,S){var x,C=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(w.tickValue):w.tickValue,T=w.formattedLabel,M=w.rawLabel,k=c;if(h&&h[C]){var E=h[C];Rt(E)&&E.textStyle&&(k=new Tn(E.textStyle,c,a.ecModel))}var A=k.getTextColor()||a.get(["axisLine","lineStyle","color"]),I=k.getShallow("align",!0)||v.textAlign,O=yt(k.getShallow("alignMinLabel",!0),I),z=yt(k.getShallow("alignMaxLabel",!0),I),$=k.getShallow("verticalAlign",!0)||k.getShallow("baseline",!0)||v.textVerticalAlign,P=yt(k.getShallow("verticalAlignMinLabel",!0),$),L=yt(k.getShallow("verticalAlignMaxLabel",!0),$),V=10+(((x=w.time)===null||x===void 0?void 0:x.level)||0);m=Math.min(m,V),y=Math.max(y,V);var B=new _n({x:0,y:0,rotation:0,silent:Kf.isLabelSilent(a),z2:V,style:zn(k,{text:T,align:S===0?O:S===f.length-1?z:I,verticalAlign:S===0?P:S===f.length-1?L:$,fill:kt(A)?A(i.type==="category"?M:i.type==="value"?C+"":C,S):A})});B.anid="label_"+C;var F=Sh(B);if(F.break=w.break,F.tickValue=C,F.layoutRotation=v.rotation,eu({el:B,componentModel:a,itemName:T,formatterParamsExtra:{isTruncated:function(){return B.isTruncated},value:M,tickIndex:S}}),g){var U=Kf.makeAxisEventDataBase(a);U.targetType="axisLabel",U.value=M,U.tickIndex=S,w.break&&(U.break={start:w.break.parsedBreak.vmin,end:w.break.parsedBreak.vmax}),i.type==="category"&&(U.dataIndex=C),Vt(B).eventData=U,w.break&&Rme(a,o,B,w.break)}p.push(B),l.add(B)});var b=$e(p,function(w){return{label:w,priority:Sh(w).break?w.z2+(y-m+1):w.z2,defaultAttr:{ignore:w.ignore}}});oC(t,b,l,u)}function fj(e){return!!e.labelLayoutList}function oC(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function Dme(e,t,n,r){var a=t.get(["axisLabel","margin"]);j(n,function(o,i){var s=Ks(o);if(s){var l=s.label,u=Sh(l);s.suggestIgnore=l.ignore,l.ignore=!1,Lb(dl,Pme),dl.x=t.axis.dataToCoord(u.tickValue),dl.y=e.labelOffset+e.labelDirection*a,dl.rotation=u.layoutRotation,r.add(dl),dl.updateTransform(),r.remove(dl),dl.decomposeTransform(),Lb(l,dl),l.markRedraw(),n_(s,!0),Ks(s)}})}var dl=new rn,Pme=new rn;function Jk(e){return!!e}function Rme(e,t,n,r){n.on("click",function(a){var o={type:t4,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};o[e.axis.dim+"AxisIndex"]=e.componentIndex,t.dispatchAction(o)})}function Ome(e,t,n){var r=Cr();if(r){var a=r.retrieveAxisBreakPairs(n,function(i){return i&&Sh(i.label).break},!0),o=e.get(["breakLabelLayout","moveOverlap"],!0);(o===!0||o==="auto")&&j(a,function(i){Gm().adjustBreakLabelPair(e.axis.inverse,t,[Ks(n[i[0]]),Ks(n[i[1]])])})}}const Wl=Kf;function s_(e,t,n){n=n||{};var r=t.axis,a={},o=r.getAxesOnZeroOf()[0],i=r.position,s=o?"onZero":i,l=r.dim,u=[e.x,e.x+e.width,e.y,e.y+e.height],c={left:0,right:1,top:0,bottom:1,onZero:2},f=t.get("offset")||0,d=l==="x"?[u[2]-f,u[3]+f]:[u[0]-f,u[1]+f];if(o){var v=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(v,d[1]),d[0])}a.position=[l==="y"?d[c[s]]:u[0],l==="x"?d[c[s]]:u[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var h={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=h[i],a.labelOffset=o?d[c[i]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),la(n.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var p=t.get(["axisLabel","rotate"]);return a.labelRotate=s==="top"?-p:p,a.z2=1,a}function Nme(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function LP(e){var t={xAxisModel:null,yAxisModel:null};return j(t,function(n,r){var a=r.replace(/Model$/,""),o=e.getReferringComponents(a,lr).models[0];t[r]=o}),t}function Bme(e,t,n,r,a,o){for(var i=s_(e,n),s=!1,l=!1,u=0;u<t.length;u++)Gx(t[u].getOtherAxis(n.axis).scale)&&(s=l=!0,n.axis.type==="category"&&n.axis.onBand&&(l=!1));return i.axisLineAutoShow=s,i.axisTickAutoShow=l,i.defaultNameMoveOverlap=o,new Wl(n,r,i,a)}function Vme(e,t,n){var r=s_(t,n);e.updateCfg(r)}function dj(e,t,n){var r=uc.prototype,a=r.getTicks.call(n),o=r.getTicks.call(n,{expandToNicedExtent:!0}),i=a.length-1,s=r.getInterval.call(n),l=nK(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;e.type==="log"&&(u=Ux(e.base,u,!0)),e.setBreaksFromOption(aK(t)),e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:i,fixMin:c,fixMax:f});var d=r.getExtent.call(e);c&&(u[0]=d[0]),f&&(u[1]=d[1]);var v=r.getInterval.call(e),h=u[0],p=u[1];if(c&&f)v=(p-h)/i;else if(c)for(p=u[0]+v*i;p<u[1]&&isFinite(p)&&isFinite(u[1]);)v=v6(v),p=u[0]+v*i;else if(f)for(h=u[1]-v*i;h>u[0]&&isFinite(h)&&isFinite(u[0]);)v=v6(v),h=u[1]-v*i;else{var g=e.getTicks().length-1;g>i&&(v=v6(v));var m=v*i;p=Math.ceil(u[1]/v)*v,h=xr(p-m),h<0&&u[0]>=0?(h=0,p=xr(m)):p>0&&u[1]<=0&&(p=0,h=-xr(m))}var y=(a[0].value-o[0].value)/s,b=(a[i].value-o[i].value)/s;r.setExtent.call(e,h+v*y,p+v*b),r.setInterval.call(e,v),(y||b)&&r.setNiceExtent.call(e,h+v,p-v)}var DP=[[3,1],[0,2]],$me=function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=aC,this._initCartesian(t,n,r),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,n){var r=this._axesMap;this._updateScale(t,this.model);function a(i){var s,l=dn(i),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],v=i[d],h=v.model,p=v.scale;Gx(p)&&h.get("alignTicks")&&h.get("interval")==null?c.push(v):(yh(p,h),Gx(p)&&(s=v))}c.length&&(s||(s=c.pop(),yh(s.scale,s.model)),j(c,function(g){dj(g.scale,g.model,s.scale)}))}}a(r.x),a(r.y);var o={};j(r.x,function(i){PP(r,"y",i,o)}),j(r.y,function(i){PP(r,"x",i,o)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,r){var a=$r(t,n),o=this._rect=Qn(t.getBoxLayoutParams(),a.refContainer),i=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(iC(i,o),!r){var u=Hme(o,s,i,l,n),c=void 0;if(l)sC?(sC(this._axesList,o),iC(i,o)):c=NP(o.clone(),"axisLabel",null,o,i,u,a);else{var f=Wme(t,o,a),d=f.outerBoundsRect,v=f.parsedOuterBoundsContain,h=f.outerBoundsClamp;d&&(c=NP(d,v,h,o,i,u,a))}vj(o,i,Oi.determine,null,c,a)}j(this._coordsList,function(p){p.calcAffineTransform()})},e.prototype.getAxis=function(t,n){var r=this._axesMap[t];if(r!=null)return r[n||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,n){if(t!=null&&n!=null){var r="x"+t+"y"+n;return this._coordsMap[r]}Rt(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,o=this._coordsList;a<o.length;a++)if(o[a].getAxis("x").index===t||o[a].getAxis("y").index===n)return o[a]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,n,r){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.dataToPoint(r):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(r)):null},e.prototype.convertFromPixel=function(t,n,r){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.pointToData(r):a.axis?a.axis.coordToData(a.axis.toLocalCoord(r)):null},e.prototype._findConvertTarget=function(t){var n=t.seriesModel,r=t.xAxisModel||n&&n.getReferringComponents("xAxis",lr).models[0],a=t.yAxisModel||n&&n.getReferringComponents("yAxis",lr).models[0],o=t.gridModel,i=this._coordsList,s,l;if(n)s=n.coordinateSystem,Xt(i,s)<0&&(s=null);else if(r&&a)s=this.getCartesian(r.componentIndex,a.componentIndex);else if(r)l=this.getAxis("x",r.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(o){var u=o.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var n=this._coordsList[0];if(n)return n.containPoint(t)},e.prototype._initCartesian=function(t,n,r){var a=this,o=this,i={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(n.eachComponent("xAxis",u("x"),this),n.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,j(s.x,function(c,f){j(s.y,function(d,v){var h="x"+f+"y"+v,p=new pme(h);p.master=a,p.model=t,a._coordsMap[h]=p,a._coordsList.push(p),p.addAxis(c),p.addAxis(d)})});function u(c){return function(f,d){if(E6(f,t)){var v=f.get("position");c==="x"?v!=="top"&&v!=="bottom"&&(v=i.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=i.left?"right":"left"),i[v]=!0;var h=new nj(c,Jw(f),[0,0],f.get("type"),v),p=h.type==="category";h.onBand=p&&f.get("boundaryGap"),h.inverse=f.get("inverse"),f.axis=h,h.model=f,h.grid=o,h.index=d,o._axesList.push(h),s[c][d]=h,l[c]++}}}},e.prototype._updateScale=function(t,n){j(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var o=a.model.get("categorySortInfo");a.scale.setSortInfo(o)}}),t.eachSeries(function(a){if(Nme(a)){var o=LP(a),i=o.xAxisModel,s=o.yAxisModel;if(!E6(i,n)||!E6(s,n))return;var l=this.getCartesian(i.componentIndex,s.componentIndex),u=a.getData(),c=l.getAxis("x"),f=l.getAxis("y");r(u,c),r(u,f)}},this);function r(a,o){j(Zb(a,o.dim),function(i){o.scale.unionExtentFromData(a,i)})}},e.prototype.getTooltipAxes=function(t){var n=[],r=[];return j(this.getCartesians(),function(a){var o=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),i=a.getOtherAxis(o);Xt(n,o)<0&&n.push(o),Xt(r,i)<0&&r.push(i)}),{baseAxes:n,otherAxes:r}},e.create=function(t,n){var r=[];return t.eachComponent("grid",function(a,o){var i=new e(a,t,n);i.name="grid_"+o,i.resize(a,n,!0),a.coordinateSystem=i,r.push(i)}),t.eachSeries(function(a){Nm({targetModel:a,coordSysType:"cartesian2d",coordSysProvider:o});function o(){var i=LP(a),s=i.xAxisModel,l=i.yAxisModel,u=s.getCoordSysModel(),c=u.coordinateSystem;return c.getCartesian(s.componentIndex,l.componentIndex)}}),r},e.dimensions=aC,e}();function E6(e,t){return e.getCoordSysModel()===t}function PP(e,t,n,r){n.getAxesOnZeroOf=function(){return o?[o]:[]};var a=e[t],o,i=n.model,s=i.get(["axisLine","onZero"]),l=i.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)RP(a[l])&&(o=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&RP(a[u])&&!r[c(a[u])]){o=a[u];break}o&&(r[c(o)]=!0);function c(f){return f.dim+"_"+f.index}}function RP(e){return e&&e.type!=="category"&&e.type!=="time"&&xpe(e)}function zme(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim==="x"?function(a){return a+t}:function(a){return r-a+t},e.toLocalCoord=e.dim==="x"?function(a){return a-t}:function(a){return r-a+t}}function iC(e,t){j(e.x,function(n){return OP(n,t.x,t.width)}),j(e.y,function(n){return OP(n,t.y,t.height)})}function OP(e,t,n){var r=[0,n],a=e.inverse?1:0;e.setExtent(r[a],r[1-a]),zme(e,t)}var sC;function Fme(e){sC=e}function NP(e,t,n,r,a,o,i){vj(r,a,Oi.estimate,t,!1,i);var s=[0,0,0,0];u(0),u(1),c(r,0,NaN),c(r,1,NaN);var l=_d(s,function(d){return d>0})==null;return od(r,s,!0,!0,n),iC(a,r),l;function u(d){j(a[Gt[d]],function(v){if(Pg(v.model)){var h=o.ensureRecord(v.model),p=h.labelInfoList;if(p)for(var g=0;g<p.length;g++){var m=p[g],y=v.scale.normalize(Sh(m.label).tickValue);y=d===1?1-y:y,c(m.rect,d,y),c(m.rect,1-d,NaN)}var b=h.nameLayout;if(b){var y=bh(h.nameLocation)?.5:NaN;c(b.rect,d,y),c(b.rect,1-d,NaN)}}})}function c(d,v,h){var p=e[Gt[v]]-d[Gt[v]],g=d[Tr[v]]+d[Gt[v]]-(e[Tr[v]]+e[Gt[v]]);p=f(p,1-h),g=f(g,h);var m=DP[v][0],y=DP[v][1];s[m]=mr(s[m],p),s[y]=mr(s[y],g)}function f(d,v){return d>0&&!Ma(v)&&v>1e-4&&(d/=v),d}}function Hme(e,t,n,r,a){var o=new ij(Gme);return j(n,function(i){return j(i,function(s){if(Pg(s.model)){var l=!r;s.axisBuilder=Bme(e,t,s.model,a,o,l)}})}),o}function vj(e,t,n,r,a,o){var i=n===Oi.determine;j(t,function(u){return j(u,function(c){Pg(c.model)&&(Vme(c.axisBuilder,e,c.model),c.axisBuilder.build(i?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:a}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Gt[1-u]]=e[Tr[u]]<=o.refContainer[Tr[u]]*.5?0:1-u===1?2:1}j(t,function(u,c){return j(u,function(f){Pg(f.model)&&((r==="all"||i)&&f.axisBuilder.build({axisName:!0},{nameMarginLevel:s[c]}),i&&f.axisBuilder.build({axisLine:!0}))})})}function Wme(e,t,n){var r,a=e.get("outerBoundsMode",!0);a==="same"?r=t.clone():(a==null||a==="auto")&&(r=Qn(e.get("outerBounds",!0)||QK,n.refContainer));var o=e.get("outerBoundsContain",!0),i;o==null||o==="auto"||Xt(["all","axisLabel"],o)<0?i="all":i=o;var s=[Pb(yt(e.get("outerBoundsClampWidth",!0),i_[0]),t.width),Pb(yt(e.get("outerBoundsClampHeight",!0),i_[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:i,outerBoundsClamp:s}}var Gme=function(e,t,n,r,a,o){var i=n.axis.dim==="x"?"y":"x";sj(e,t,n,r,a,o),bh(e.nameLocation)||j(t.recordMap[i],function(s){s&&s.labelInfoList&&s.dirVec&&uj(s.labelInfoList,s.dirVec,r,a)})};const Ume=$me;function Kme(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return jme(n,e,t),n.seriesInvolved&&qme(n,e),n}function jme(e,t,n){var r=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),o=a.get("link",!0)||[],i=[];j(n.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Ng(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",r);if(j(s.getAxes(),Yt(p,!1,null)),s.getTooltipAxes&&r&&f.get("show")){var d=f.get("trigger")==="axis",v=f.get(["axisPointer","type"])==="cross",h=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||v)&&j(h.baseAxes,Yt(p,v?"cross":!0,d)),v&&j(h.otherAxes,Yt(p,"cross",!1))}function p(g,m,y){var b=y.model.getModel("axisPointer",a),w=b.get("show");if(!(!w||w==="auto"&&!g&&!lC(b))){m==null&&(m=b.get("triggerTooltip")),b=g?Yme(y,f,a,t,g,m):b;var S=b.get("snap"),x=b.get("triggerEmphasis"),C=Ng(y.model),T=m||S||y.type==="category",M=e.axesInfo[C]={key:C,axis:y,coordSys:s,axisPointerModel:b,triggerTooltip:m,triggerEmphasis:x,involveSeries:T,snap:S,useHandle:lC(b),seriesModels:[],linkGroup:null};u[C]=M,e.seriesInvolved=e.seriesInvolved||T;var k=Xme(o,y);if(k!=null){var E=i[k]||(i[k]={axesInfo:{}});E.axesInfo[C]=M,E.mapper=o[k].mapper,M.linkGroup=E}}}})}function Yme(e,t,n,r,a,o){var i=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};j(s,function(d){l[d]=Mt(i.get(d))}),l.snap=e.type!=="category"&&!!o,i.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var c=i.get(["label","show"]);if(u.show=c??!0,!o){var f=l.lineStyle=i.get("crossStyle");f&&Pt(u,f.textStyle)}}return e.model.getModel("axisPointer",new Tn(l,n,r))}function qme(e,t){t.eachSeries(function(n){var r=n.coordinateSystem,a=n.get(["tooltip","trigger"],!0),o=n.get(["tooltip","show"],!0);!r||!r.model||a==="none"||a===!1||a==="item"||o===!1||n.get(["axisPointer","show"],!0)===!1||j(e.coordSysAxesInfo[Ng(r.model)],function(i){var s=i.axis;r.getAxis(s.dim)===s&&(i.seriesModels.push(n),i.seriesDataCount==null&&(i.seriesDataCount=0),i.seriesDataCount+=n.getData().count())})})}function Xme(e,t){for(var n=t.model,r=t.dim,a=0;a<e.length;a++){var o=e[a]||{};if(I6(o[r+"AxisId"],n.id)||I6(o[r+"AxisIndex"],n.componentIndex)||I6(o[r+"AxisName"],n.name))return a}}function I6(e,t){return e==="all"||Ve(e)&&Xt(e,t)>=0||e===t}function Zme(e){var t=Qk(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,a=n.option,o=n.get("status"),i=n.get("value");i!=null&&(i=r.parse(i));var s=lC(n);o==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(i==null||i>l[1])&&(i=l[1]),i<l[0]&&(i=l[0]),a.value=i,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function Qk(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Ng(e)]}function Jme(e){var t=Qk(e);return t&&t.axisPointerModel}function lC(e){return!!e.get(["handle","show"])}function Ng(e){return e.type+"||"+e.id}var BP={},Qme=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a,o){this.axisPointerClass&&Zme(n),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,a,!0)},t.prototype.updateAxisPointer=function(n,r,a,o){this._doUpdateAxisPointerClass(n,a,!1)},t.prototype.remove=function(n,r){var a=this._axisPointer;a&&a.remove(r)},t.prototype.dispose=function(n,r){this._disposeAxisPointer(r),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(n,r,a){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var i=Jme(n);i?(this._axisPointer||(this._axisPointer=new o)).render(n,i,r,a):this._disposeAxisPointer(r)}},t.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},t.registerAxisPointerClass=function(n,r){BP[n]=r},t.getAxisPointerClass=function(n){return n&&BP[n]},t.type="axis",t}(or);const Id=Qme;var uC=an();function hj(e,t,n,r){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel("splitArea"),i=o.getModel("areaStyle"),s=i.get("color"),l=r.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:o,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var c=s.length,f=uC(e).splitAreaColors,d=pt(),v=0;if(f)for(var h=0;h<u.length;h++){var p=f.get(u[h].tickValue);if(p!=null){v=(p+(c-1)*h)%c;break}}var g=a.toGlobalCoord(u[0].coord),m=i.getAreaStyle();s=Ve(s)?s:[s];for(var h=1;h<u.length;h++){var y=a.toGlobalCoord(u[h].coord),b=void 0,w=void 0,S=void 0,x=void 0;a.isHorizontal()?(b=g,w=l.y,S=y-b,x=l.height,g=b+S):(b=l.x,w=g,S=l.width,x=y-w,g=w+x);var C=u[h-1].tickValue;C!=null&&d.set(C,v),t.add(new rn({anid:C!=null?"area_"+C:null,shape:{x:b,y:w,width:S,height:x},style:Pt({fill:s[v]},m),autoBatch:!0,silent:!0})),v=(v+1)%c}uC(e).splitAreaColors=d}}}function pj(e){uC(e).splitAreaColors=null}var e1e=["splitArea","splitLine","minorSplitLine","breakArea"],gj=function(e){ye(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(n,r,a,o){this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new At,this.group.add(this._axisGroup),!!Pg(n)){this._axisGroup.add(n.axis.axisBuilder.group),j(e1e,function(l){n.get([l,"show"])&&t1e[l](this,this._axisGroup,n,n.getCoordSysModel(),a)},this);var s=o&&o.type==="changeAxisOrder"&&o.isInitSort;s||Dm(i,this._axisGroup,n),e.prototype.render.call(this,n,r,a,o)}},t.prototype.remove=function(){pj(this)},t.type="cartesianAxis",t}(Id),t1e={splitLine:function(e,t,n,r,a){var o=n.axis;if(!o.scale.isBlank()){var i=n.getModel("splitLine"),s=i.getModel("lineStyle"),l=s.get("color"),u=i.get("showMinLine")!==!1,c=i.get("showMaxLine")!==!1;l=Ve(l)?l:[l];for(var f=r.coordinateSystem.getRect(),d=o.isHorizontal(),v=0,h=o.getTicksCoords({tickModel:i,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],m=s.getLineStyle(),y=0;y<h.length;y++){var b=o.toGlobalCoord(h[y].coord);if(!(y===0&&!u||y===h.length-1&&!c)){var w=h[y].tickValue;d?(p[0]=b,p[1]=f.y,g[0]=b,g[1]=f.y+f.height):(p[0]=f.x,p[1]=b,g[0]=f.x+f.width,g[1]=b);var S=v++%l.length,x=new Rr({anid:w!=null?"line_"+w:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:Pt({stroke:l[S]},m),silent:!0});ph(x.shape,m.lineWidth),t.add(x)}}}},minorSplitLine:function(e,t,n,r,a){var o=n.axis,i=n.getModel("minorSplitLine"),s=i.getModel("lineStyle"),l=r.coordinateSystem.getRect(),u=o.isHorizontal(),c=o.getMinorTicksCoords();if(c.length)for(var f=[],d=[],v=s.getLineStyle(),h=0;h<c.length;h++)for(var p=0;p<c[h].length;p++){var g=o.toGlobalCoord(c[h][p].coord);u?(f[0]=g,f[1]=l.y,d[0]=g,d[1]=l.y+l.height):(f[0]=l.x,f[1]=g,d[0]=l.x+l.width,d[1]=g);var m=new Rr({anid:"minor_line_"+c[h][p].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:d[0],y2:d[1]},style:v,silent:!0});ph(m.shape,v.lineWidth),t.add(m)}},splitArea:function(e,t,n,r,a){hj(e,t,n,r)},breakArea:function(e,t,n,r,a){var o=Gm(),i=n.axis.scale;o&&i.type!=="ordinal"&&o.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),a)}},mj=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="xAxis",t}(gj),n1e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=mj.type,n}return t.type="yAxis",t}(gj),r1e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="grid",n}return t.prototype.render=function(n,r){this.group.removeAll(),n.get("show")&&this.group.add(new rn({shape:n.coordinateSystem.getRect(),style:Pt({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(or),VP={offset:0};function yj(e){e.registerComponentView(r1e),e.registerComponentModel(sme),e.registerCoordinateSystem("cartesian2d",Ume),wh(e,"x",nC,VP),wh(e,"y",nC,VP),e.registerComponentView(mj),e.registerComponentView(n1e),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function a1e(e,t){var n=e.coordinateSystem,r=n&&n.type,a=n&&n.getBaseAxis&&n.getBaseAxis(),o=a&&a.scale&&a.scale.type,i=r==="cartesian2d"&&o==="ordinal"||r==="single",s=t.model.get("jitter")>0;return i&&s}var o1e=an();function $P(e,t,n,r){if(e instanceof nj){var a=e.scale.type;if(a!=="category"&&a!=="ordinal")return n}var o=e.model,i=o.get("jitter"),s=o.get("jitterOverlap"),l=o.get("jitterMargin")||0,u=e.scale.type==="ordinal"?e.getBandWidth():null;return i>0?s?bj(n,i,u,r):i1e(e,t,n,r,i,l):n}function bj(e,t,n,r){if(n===null)return e+(Math.random()-.5)*t;var a=n-r*2,o=Math.min(Math.max(0,t),a);return e+(Math.random()-.5)*o}function i1e(e,t,n,r,a,o){var i=o1e(e);i.items||(i.items=[]);var s=i.items,l=zP(s,t,n,r,a,o,1),u=zP(s,t,n,r,a,o,-1),c=Math.abs(l-n)<Math.abs(u-n)?l:u,f=e.scale.type==="ordinal"?e.getBandWidth():null,d=Math.abs(c-n);return d>a/2||f&&d>f/2-r?bj(n,a,f,r):(s.push({fixedCoord:t,floatCoord:c,r}),c)}function zP(e,t,n,r,a,o,i){for(var s=n,l=0;l<e.length;l++){var u=e[l],c=t-u.fixedCoord,f=s-u.floatCoord,d=c*c+f*f,v=r+u.r+o;if(d<v*v){var h=u.floatCoord+Math.sqrt(v*v-c*c)*i;if(Math.abs(h-n)>a/2)return Number.MAX_VALUE;if(i===1&&h>s||i===-1&&h<s){s=h,l=-1;continue}}}return s}function s1e(e){e.eachSeriesByType("scatter",function(t){var n=t.coordinateSystem;if(n&&(n.type==="cartesian2d"||n.type==="single")){var r=n.getBaseAxis?n.getBaseAxis():null,a=r&&a1e(t,r);if(a){var o=t.getData();o.each(function(i){var s=r.dim,l=r.orient,u=l==="horizontal"&&r.type!=="category"||l==="vertical"&&r.type==="category",c=o.getItemLayout(i),f=o.getItemVisual(i,"symbolSize"),d=f instanceof Array?(f[1]+f[0])/2:f;if(s==="y"||s==="single"&&u){var v=$P(r,c[0],c[1],d/2);o.setItemLayout(i,[c[0],v])}else if(s==="x"||s==="single"&&!u){var v=$P(r,c[1],c[0],d/2);o.setItemLayout(i,[v,c[1]])}})}}})}function l1e(e){Qt(yj),e.registerSeriesModel(Qge),e.registerChartView(ome),e.registerLayout(Wm("scatter"))}function u1e(e){e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,s1e)}function c1e(e){e.eachSeriesByType("radar",function(t){var n=t.getData(),r=[],a=t.coordinateSystem;if(a){var o=a.getIndicatorAxes();j(o,function(i,s){n.each(n.mapDimension(o[s].dim),function(l,u){r[u]=r[u]||[];var c=a.dataToPoint(l,s);r[u][s]=FP(c)?c:HP(a)})}),n.each(function(i){var s=_d(r[i],function(l){return FP(l)})||HP(a);r[i].push(s.slice()),n.setItemLayout(i,r[i])})}})}function FP(e){return!isNaN(e[0])&&!isNaN(e[1])}function HP(e){return[e.cx,e.cy]}function f1e(e){var t=e.polar;if(t){Ve(t)||(t=[t]);var n=[];j(t,function(r,a){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),e.radar=e.radar||[],Ve(e.radar)||(e.radar=[e.radar]),e.radar.push(r)):n.push(r)}),e.polar=n}j(e.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var d1e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var o=n.coordinateSystem,i=this.group,s=n.getData(),l=this._data;function u(d,v){var h=d.getItemVisual(v,"symbol")||"circle";if(h!=="none"){var p=op(d.getItemVisual(v,"symbolSize")),g=Ar(h,-1,-1,2,2),m=d.getItemVisual(v,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:m*Math.PI/180||0}),g}}function c(d,v,h,p,g,m){h.removeAll();for(var y=0;y<v.length-1;y++){var b=u(p,g);b&&(b.__dimIdx=y,d[y]?(b.setPosition(d[y]),xd[m?"initProps":"updateProps"](b,{x:v[y][0],y:v[y][1]},n,g)):b.setPosition(v[y]),h.add(b))}}function f(d){return $e(d,function(v){return[o.cx,o.cy]})}s.diff(l).add(function(d){var v=s.getItemLayout(d);if(v){var h=new Ya,p=new La,g={shape:{points:v}};h.shape.points=f(v),p.shape.points=f(v),Xn(h,g,n,d),Xn(p,g,n,d);var m=new At,y=new At;m.add(p),m.add(h),m.add(y),c(p.shape.points,v,y,s,d,!0),s.setItemGraphicEl(d,m)}}).update(function(d,v){var h=l.getItemGraphicEl(v),p=h.childAt(0),g=h.childAt(1),m=h.childAt(2),y={shape:{points:s.getItemLayout(d)}};y.shape.points&&(c(p.shape.points,y.shape.points,m,s,d,!1),oi(g),oi(p),Sn(p,y,n),Sn(g,y,n),s.setItemGraphicEl(d,h))}).remove(function(d){i.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,v){var h=s.getItemModel(v),p=d.childAt(0),g=d.childAt(1),m=d.childAt(2),y=s.getItemVisual(v,"style"),b=y.fill;i.add(d),p.useStyle(Pt(h.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:b})),Br(p,h,"lineStyle"),Br(g,h,"areaStyle");var w=h.getModel("areaStyle"),S=w.isEmpty()&&w.parentModel.isEmpty();g.ignore=S,j(["emphasis","select","blur"],function(C){var T=h.getModel([C,"areaStyle"]),M=T.isEmpty()&&T.parentModel.isEmpty();g.ensureState(C).ignore=M&&S;var k=h.getModel([C,"lineStyle"]).getLineStyle();p.ensureState(C).style=k;var E=T.getAreaStyle();g.ensureState(C).style=E;var A=h.getModel([C,"itemStyle"]).getItemStyle();m.eachChild(function(I){I.ensureState(C).style=Mt(A)})}),g.useStyle(Pt(h.getModel("areaStyle").getAreaStyle(),{fill:b,opacity:.7,decal:y.decal}));var x=h.getModel("emphasis");m.eachChild(function(C){if(C instanceof da){var T=C.style;C.useStyle(Pe({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},y))}else C.useStyle(y),C.setColor(b),C.style.strokeNoScale=!0;var M=s.getStore().get(s.getDimensionIndex(C.__dimIdx),v);(M==null||isNaN(M))&&(M=""),Kr(C,Vr(h),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:C.__dimIdx,defaultText:M,inheritColor:b,defaultOpacity:y.opacity})}),Jn(d,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(Fn);const v1e=d1e;var h1e=function(e){ye(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.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new up(lt(this.getData,this),lt(this.getRawData,this))},t.prototype.getInitialData=function(n,r){return lp(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(n,r,a){var o=this.getData(),i=this.coordinateSystem,s=i.getIndicatorAxes(),l=this.getData().getName(n),u=l===""?this.name:l,c=JG(this,n);return Mr("section",{header:u,sortBlocks:!0,blocks:$e(s,function(f){var d=o.get(o.mapDimension(f.dim),n);return Mr("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:d,sortParam:d})})})},t.prototype.getTooltipPosition=function(n){if(n!=null){for(var r=this.getData(),a=this.coordinateSystem,o=r.getValues($e(a.dimensions,function(u){return r.mapDimension(u)}),n),i=0,s=o.length;i<s;i++)if(!isNaN(o[i])){var l=a.getIndicatorAxes();return a.coordToPoint(l[i].dataToCoord(o[i]),i)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(er);const p1e=h1e;var Wp=tj.value;function My(e,t){return Pt({show:t},e)}var g1e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){var n=this.get("boundaryGap"),r=this.get("splitNumber"),a=this.get("scale"),o=this.get("axisLine"),i=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),d=this.get("triggerEvent"),v=$e(this.get("indicator")||[],function(h){h.max!=null&&h.max>0&&!h.min?h.min=0:h.min!=null&&h.min<0&&!h.max&&(h.max=0);var p=l;h.color!=null&&(p=Pt({color:h.color},l));var g=Zt(Mt(h),{boundaryGap:n,splitNumber:r,scale:a,axisLine:o,axisTick:i,axisLabel:s,name:h.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:p,triggerEvent:d},!1);if(st(c)){var m=g.name;g.name=c.replace("{value}",m??"")}else kt(c)&&(g.name=c(g.name,g));var y=new Tn(g,null,this.ecModel);return Er(y,$m.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=v},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:Se.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Zt({lineStyle:{color:Se.color.neutral20}},Wp.axisLine),axisLabel:My(Wp.axisLabel,!1),axisTick:My(Wp.axisTick,!1),splitLine:My(Wp.splitLine,!0),splitArea:My(Wp.splitArea,!0),indicator:[]},t}(mn);const m1e=g1e;var y1e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var o=this.group;o.removeAll(),this._buildAxes(n,a),this._buildSplitLineAndArea(n)},t.prototype._buildAxes=function(n,r){var a=n.coordinateSystem,o=a.getIndicatorAxes(),i=$e(o,function(s){var l=s.model.get("showName")?s.name:"",u=new Wl(s.model,r,{axisName:l,position:[a.cx,a.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});j(i,function(s){s.build(),this.group.add(s.group)},this)},t.prototype._buildSplitLineAndArea=function(n){var r=n.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var o=n.get("shape"),i=n.getModel("splitLine"),s=n.getModel("splitArea"),l=i.getModel("lineStyle"),u=s.getModel("areaStyle"),c=i.get("show"),f=s.get("show"),d=l.get("color"),v=u.get("color"),h=Ve(d)?d:[d],p=Ve(v)?v:[v],g=[],m=[];function y(z,$,P){var L=P%$.length;return z[L]=z[L]||[],L}if(o==="circle")for(var b=a[0].getTicksCoords(),w=r.cx,S=r.cy,x=0;x<b.length;x++){if(c){var C=y(g,h,x);g[C].push(new bc({shape:{cx:w,cy:S,r:b[x].coord}}))}if(f&&x<b.length-1){var C=y(m,p,x);m[C].push(new $w({shape:{cx:w,cy:S,r0:b[x].coord,r:b[x+1].coord}}))}}else for(var T,M=$e(a,function(z,$){var P=z.getTicksCoords();return T=T==null?P.length-1:Math.min(P.length-1,T),$e(P,function(L){return r.coordToPoint(L.coord,$)})}),k=[],x=0;x<=T;x++){for(var E=[],A=0;A<a.length;A++)E.push(M[A][x]);if(E[0]&&E.push(E[0].slice()),c){var C=y(g,h,x);g[C].push(new La({shape:{points:E}}))}if(f&&k){var C=y(m,p,x-1);m[C].push(new Ya({shape:{points:E.concat(k)}}))}k=E.slice().reverse()}var I=l.getLineStyle(),O=u.getAreaStyle();j(m,function(z,$){this.group.add(Yo(z,{style:Pt({stroke:"none",fill:p[$%p.length]},O),silent:!0}))},this),j(g,function(z,$){this.group.add(Yo(z,{style:Pt({fill:"none",stroke:h[$%h.length]},I),silent:!0}))},this)},t.type="radar",t}(or);const b1e=y1e;var _1e=function(e){ye(t,e);function t(n,r,a){var o=e.call(this,n,r,a)||this;return o.type="value",o.angle=0,o.name="",o}return t}(Gi);const w1e=_1e;var S1e=function(){function e(t,n,r){this.dimensions=[],this._model=t,this._indicatorAxes=$e(t.getIndicatorModels(),function(a,o){var i="indicator_"+o,s=new w1e(i,new uc);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(i),s},this),this.resize(t,r)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(t,n){var r=this._indicatorAxes[n];return this.coordToPoint(r.dataToCoord(t),n)},e.prototype.coordToPoint=function(t,n){var r=this._indicatorAxes[n],a=r.angle,o=this.cx+t*Math.cos(a),i=this.cy-t*Math.sin(a);return[o,i]},e.prototype.pointToData=function(t){var n=t[0]-this.cx,r=t[1]-this.cy,a=Math.sqrt(n*n+r*r);n/=a,r/=a;for(var o=Math.atan2(-r,n),i=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(o-c.angle);f<i&&(s=c,l=u,i=f)}return[l,+(s&&s.coordToData(a))]},e.prototype.resize=function(t,n){var r=$r(t,n).refContainer,a=t.get("center"),o=Math.min(r.width,r.height)/2;this.cx=at(a[0],r.width)+r.x,this.cy=at(a[1],r.height)+r.y,this.startAngle=t.get("startAngle")*Math.PI/180;var i=t.get("radius");(st(i)||gn(i))&&(i=[0,i]),this.r0=at(i[0],o),this.r=at(i[1],o),j(this._indicatorAxes,function(s,l){s.setExtent(this.r0,this.r);var u=this.startAngle+l*Math.PI*2/this._indicatorAxes.length;u=Math.atan2(Math.sin(u),Math.cos(u)),s.angle=u},this)},e.prototype.update=function(t,n){var r=this._indicatorAxes,a=this._model;j(r,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==a)){var u=s.getData();j(r,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var o=a.get("splitNumber"),i=new uc;i.setExtent(0,o),i.setInterval(1),j(r,function(s,l){dj(s.scale,s.model,i)})},e.prototype.convertToPixel=function(t,n,r){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(t,n,r){return console.warn("Not implemented."),null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.create=function(t,n){var r=[];return t.eachComponent("radar",function(a){var o=new e(a,t,n);r.push(o),a.coordinateSystem=o}),t.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=r[a.get("radarIndex")||0])}),r},e.dimensions=[],e}();const x1e=S1e;function C1e(e){e.registerCoordinateSystem("radar",x1e),e.registerComponentModel(m1e),e.registerComponentView(b1e),e.registerVisual({seriesType:"radar",reset:function(t){var n=t.getData();n.each(function(r){n.setItemVisual(r,"legendIcon","roundRect")}),n.setVisual("legendIcon","roundRect")}})}function T1e(e){Qt(C1e),e.registerChartView(v1e),e.registerSeriesModel(p1e),e.registerLayout(c1e),e.registerProcessor(sp("radar")),e.registerPreprocessor(f1e)}var eM=an();function k1e(e,t,n){eM(e)[t]=n}function M1e(e,t,n){var r=eM(e),a=r[t];a===n&&(r[t]=null)}function WP(e,t){return!!eM(e)[t]}tl({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},br);var A1e={axisPointer:1,tooltip:1,brush:1};function _j(e,t,n){var r=t.getComponentByElement(e.topTarget);if(!r||r===n||A1e.hasOwnProperty(r.mainType))return!1;var a=r.coordinateSystem;if(!a||a.model===n)return!1;var o=id(r),i=id(n);return!((o.zlevel-i.zlevel||o.z-i.z)<=0)}var E1e=function(e){ye(t,e);function t(n){var r=e.call(this)||this;r._zr=n;var a=lt(r._mousedownHandler,r),o=lt(r._mousemoveHandler,r),i=lt(r._mouseupHandler,r),s=lt(r._mousewheelHandler,r),l=lt(r._pinchHandler,r);return r.enable=function(u,c){var f=c.zInfo,d=id(f.component),v=d.z,h=d.zlevel,p={component:f.component,z:v,zlevel:h,z2:yt(f.z2,-1/0)},g=Pe({},c.triggerInfo);this._opt=Pt(Pe({},c),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:p,triggerInfo:g}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this._enabled=!0,this.disable(),(u===!0||u==="move"||u==="pan")&&(Up(n,"mousedown",a,p),Up(n,"mousemove",o,p),Up(n,"mouseup",i,p)),(u===!0||u==="scale"||u==="zoom")&&(Up(n,"mousewheel",s,p),Up(n,"pinch",l,p)))},r.disable=function(){this._enabled=!1,Kp(n,"mousedown",a),Kp(n,"mousemove",o),Kp(n,"mouseup",i),Kp(n,"mousewheel",s),Kp(n,"pinch",l)},r}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(n,r,a){var o=this._opt,i=o.zInfoParsed;if(_j(n,o.api,i.component))return!1;var s=o.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(n,r,a)),u&&s.isInClip&&!s.isInClip(n,r,a)&&(u=!1),u},t.prototype._decideCursorStyle=function(n,r,a,o){var i=n.target;if(!i&&this._checkPointer(n,r,a))return"grab";if(o)return i&&i.cursor||"default"},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(n){if(!(oI(n)||Gp(n))){for(var r=n.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var a=n.offsetX,o=n.offsetY;this._checkPointer(n,a,o)&&(this._x=a,this._y=o,this._dragging=!0)}},t.prototype._mousemoveHandler=function(n){var r=this._zr;if(!(n.gestureEvent==="pinch"||WP(r,"globalPan")||Gp(n))){var a=n.offsetX,o=n.offsetY;if(!this._dragging||!$2("moveOnMouseMove",n,this._opt)){var i=this._decideCursorStyle(n,a,o,!1);i&&r.setCursorStyle(i);return}r.setCursorStyle("grabbing");var s=this._x,l=this._y,u=a-s,c=o-l;this._x=a,this._y=o,this._opt.preventDefaultMouseMove&&Vl(n.event),n.__ecRoamConsumed=!0,GP(this,"pan","moveOnMouseMove",n,{dx:u,dy:c,oldX:s,oldY:l,newX:a,newY:o,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(n){if(!Gp(n)){var r=this._zr;if(!oI(n)){this._dragging=!1;var a=this._decideCursorStyle(n,n.offsetX,n.offsetY,!0);a&&r.setCursorStyle(a)}}},t.prototype._mousewheelHandler=function(n){if(!Gp(n)){var r=$2("zoomOnMouseWheel",n,this._opt),a=$2("moveOnMouseWheel",n,this._opt),o=n.wheelDelta,i=Math.abs(o),s=n.offsetX,l=n.offsetY;if(!(o===0||!r&&!a)){if(r){var u=i>3?1.4:i>1?1.2:1.1,c=o>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",n,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var f=Math.abs(o),d=(o>0?1:-1)*(f>3?.4:f>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(n){if(!(WP(this._zr,"globalPan")||Gp(n))){var r=n.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(n,r,a,o,i){n._checkPointer(o,i.originX,i.originY)&&(Vl(o.event),o.__ecRoamConsumed=!0,GP(n,r,a,o,i))},t}(ci);function Gp(e){return e.__ecRoamConsumed}var I1e=an();function n4(e){var t=I1e(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function Up(e,t,n,r){for(var a=n4(e),o=a.roam,i=o[t]=o[t]||[],s=0;s<i.length;s++){var l=i[s].zInfoParsed;if((l.zlevel-r.zlevel||l.z-r.z||l.z2-r.z2)<=0)break}i.splice(s,0,{listener:n,zInfoParsed:r}),L1e(e,t)}function Kp(e,t,n){for(var r=n4(e),a=r.roam[t]||[],o=0;o<a.length;o++)if(a[o].listener===n){a.splice(o,1),a.length||D1e(e,t);return}}function L1e(e,t){var n=n4(e);n.uniform[t]||e.on(t,n.uniform[t]=function(r){var a=n.roam[t];if(a)for(var o=0;o<a.length;o++)a[o].listener(r)})}function D1e(e,t){var n=n4(e),r=n.uniform;r[t]&&(e.off(t,r[t]),r[t]=null)}function GP(e,t,n,r,a){a.isAvailableBehavior=lt($2,null,n,r),e.trigger(t,a)}function $2(e,t,n){var r=n[e];return!e||r&&(!st(r)||t.event[r+"Key"])}const Ld=E1e;function tM(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function nM(e,t,n,r){var a=e.target,o=e.zoomLimit,i=e.zoom=e.zoom||1;i*=t,i=rM(i,o);var s=i/e.zoom;e.zoom=i,Sj(a,n,r,s),a.dirty()}function wj(e,t,n,r,a,o){var i=new Ot(0,0,0,0);r.enable(e.get("roam"),{api:t,zInfo:{component:e},triggerInfo:{roamTrigger:e.get("roamTrigger"),isInSelf:function(u,c,f){return i.copy(n.getBoundingRect()),i.applyTransform(n.getComputedTransform()),i.contain(c,f)},isInClip:function(u,c,f){return!o||o.contain(c,f)}}}),a.zoomLimit=e.get("scaleLimit");var s=e.coordinateSystem;a.zoom=s?s.getZoom():1;var l=e.subType+"Roam";r.off("pan").off("zoom").on("pan",function(u){tM(a,u.dx,u.dy),t.dispatchAction({seriesId:e.id,type:l,dx:u.dx,dy:u.dy})}).on("zoom",function(u){nM(a,u.scale,u.originX,u.originY),t.dispatchAction({seriesId:e.id,type:l,zoom:u.scale,originX:u.originX,originY:u.originY}),t.updateLabelLayout()})}function UP(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function r4(e,t,n){var r=e.getZoom(),a=e.getCenter(),o=t.zoom,i=e.projectedToPoint?e.projectedToPoint(a):e.dataToPoint(a);return t.dx!=null&&t.dy!=null&&(i[0]-=t.dx,i[1]-=t.dy,e.setCenter(UP(e,i))),o!=null&&(o=rM(r*o,n)/r,Sj(e,t.originX,t.originY,o),e.updateTransform(),e.setCenter(UP(e,i)),e.setZoom(o*r)),{center:e.getCenter(),zoom:e.getZoom()}}function Sj(e,t,n,r){e.x-=(t-e.x)*(r-1),e.y-=(n-e.y)*(r-1),e.scaleX*=r,e.scaleY*=r}function rM(e,t){if(t){var n=t.min||0,r=t.max||1/0;e=Math.max(Math.min(r,e),n)}return e}function xj(e){if(st(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;for(n.nodeType===9&&(n=n.firstChild);n.nodeName.toLowerCase()!=="svg"||n.nodeType!==1;)n=n.nextSibling;return n}var L6,l_={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},KP=dn(l_),u_={"alignment-baseline":"textBaseline","stop-color":"stopColor"},jP=dn(u_),P1e=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,n){n=n||{};var r=xj(t);this._defsUsePending=[];var a=new At;this._root=a;var o=[],i=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||n.width),l=parseFloat(r.getAttribute("height")||n.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),po(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,o,null,!1,!1),u=u.nextSibling;N1e(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(i){var d=a4(i);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&s!=null&&l!=null&&(f=Tj(c,{x:0,y:0,width:s,height:l}),!n.ignoreViewBox)){var v=a;a=new At,a.add(v),v.scaleX=v.scaleY=f.scale,v.x=f.x,v.y=f.y}return!n.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new rn({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:o}},e.prototype._parseNode=function(t,n,r,a,o,i){var s=t.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(o=!0),s==="text"&&(i=!0),s==="defs"||s==="switch")l=n;else{if(!o){var c=L6[s];if(c&&ft(L6,s)){l=c.call(this,t,n);var f=t.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};r.push(d),s==="g"&&(u=d)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});n.add(l)}}var v=YP[s];if(v&&ft(YP,s)){var h=v.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=h)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,r,u,o,i):g.nodeType===3&&i&&this._parseText(g,l),g=g.nextSibling},e.prototype._parseText=function(t,n){var r=new _g({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Vo(n,r),po(t,r,this._defsUsePending,!1,!1),R1e(r,n);var a=r.style,o=a.fontSize;o&&o<9&&(a.fontSize=9,r.scaleX*=o/9,r.scaleY*=o/9);var i=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=i;var s=r.getBoundingRect();return this._textX+=s.width,n.add(r),r},e.internalField=function(){L6={g:function(t,n){var r=new At;return Vo(n,r),po(t,r,this._defsUsePending,!1,!1),r},rect:function(t,n){var r=new rn;return Vo(n,r),po(t,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(t,n){var r=new bc;return Vo(n,r),po(t,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),r.silent=!0,r},line:function(t,n){var r=new Rr;return Vo(n,r),po(t,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(t,n){var r=new rk;return Vo(n,r),po(t,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(t,n){var r=t.getAttribute("points"),a;r&&(a=ZP(r));var o=new Ya({shape:{points:a||[]},silent:!0});return Vo(n,o),po(t,o,this._defsUsePending,!1,!1),o},polyline:function(t,n){var r=t.getAttribute("points"),a;r&&(a=ZP(r));var o=new La({shape:{points:a||[]},silent:!0});return Vo(n,o),po(t,o,this._defsUsePending,!1,!1),o},image:function(t,n){var r=new da;return Vo(n,r),po(t,r,this._defsUsePending,!1,!1),r.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),r.silent=!0,r},text:function(t,n){var r=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",o=t.getAttribute("dx")||"0",i=t.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(o),this._textY=parseFloat(a)+parseFloat(i);var s=new At;return Vo(n,s),po(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,n){var r=t.getAttribute("x"),a=t.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var o=t.getAttribute("dx")||"0",i=t.getAttribute("dy")||"0",s=new At;return Vo(n,s),po(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(i),s},path:function(t,n){var r=t.getAttribute("d")||"",a=kW(r);return Vo(n,a),po(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),e}(),YP={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),a=parseInt(e.getAttribute("y2")||"0",10),o=new Jh(t,n,r,a);return qP(e,o),XP(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),a=new $W(t,n,r);return qP(e,a),XP(e,a),a}};function qP(e,t){var n=e.getAttribute("gradientUnits");n==="userSpaceOnUse"&&(t.global=!0)}function XP(e,t){for(var n=e.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()==="stop"){var r=n.getAttribute("offset"),a=void 0;r&&r.indexOf("%")>0?a=parseInt(r,10)/100:r?a=parseFloat(r):a=0;var o={};Cj(n,o,o);var i=o.stopColor||n.getAttribute("stop-color")||"#000000",s=o.stopOpacity||n.getAttribute("stop-opacity");if(s){var l=uo(i),u=l&&l[3];u&&(l[3]*=ju(s),i=Es(l,"rgba"))}t.colorStops.push({offset:a,color:i})}n=n.nextSibling}}function Vo(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Pt(t.__inheritedStyle,e.__inheritedStyle))}function ZP(e){for(var t=a4(e),n=[],r=0;r<t.length;r+=2){var a=parseFloat(t[r]),o=parseFloat(t[r+1]);n.push([a,o])}return n}function po(e,t,n,r,a){var o=t,i=o.__inheritedStyle=o.__inheritedStyle||{},s={};e.nodeType===1&&($1e(e,t),Cj(e,i,s),r||z1e(e,i,s)),o.style=o.style||{},i.fill!=null&&(o.style.fill=JP(o,"fill",i.fill,n)),i.stroke!=null&&(o.style.stroke=JP(o,"stroke",i.stroke,n)),j(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){i[l]!=null&&(o.style[l]=parseFloat(i[l]))}),j(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){i[l]!=null&&(o.style[l]=i[l])}),a&&(o.__selfStyle=s),i.lineDash&&(o.style.lineDash=$e(a4(i.lineDash),function(l){return parseFloat(l)})),(i.visibility==="hidden"||i.visibility==="collapse")&&(o.invisible=!0),i.display==="none"&&(o.ignore=!0)}function R1e(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,a=r;!r||r==="auto"||r==="baseline"?a="alphabetic":r==="before-edge"||r==="text-before-edge"?a="top":r==="after-edge"||r==="text-after-edge"?a="bottom":(r==="central"||r==="mathematical")&&(a="middle"),e.style.textBaseline=a}var o=t.__inheritedStyle;if(o){var i=o.textAlign,s=i;i&&(i==="middle"&&(s="center"),e.style.textAlign=s)}}var O1e=/^url\(\s*#(.*?)\)/;function JP(e,t,n,r){var a=n&&n.match(O1e);if(a){var o=Xo(a[1]);r.push([e,t,o]);return}return n==="none"&&(n=null),n}function N1e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}var B1e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function a4(e){return e.match(B1e)||[]}var V1e=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,D6=Math.PI/180;function $1e(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],a=null;n.replace(V1e,function(f,d,v){return r.push(d,v),""});for(var o=r.length-1;o>0;o-=2){var i=r[o],s=r[o-1],l=a4(i);switch(a=a||Jr(),s){case"translate":Hs(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":V5(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":yc(a,a,-parseFloat(l[0])*D6,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*D6);As(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*D6);As(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}t.setLocalTransform(a)}}var QP=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Cj(e,t,n){var r=e.getAttribute("style");if(r){QP.lastIndex=0;for(var a;(a=QP.exec(r))!=null;){var o=a[1],i=ft(l_,o)?l_[o]:null;i&&(t[i]=a[2]);var s=ft(u_,o)?u_[o]:null;s&&(n[s]=a[2])}}}function z1e(e,t,n){for(var r=0;r<KP.length;r++){var a=KP[r],o=e.getAttribute(a);o!=null&&(t[l_[a]]=o)}for(var r=0;r<jP.length;r++){var a=jP[r],o=e.getAttribute(a);o!=null&&(n[u_[a]]=o)}}function Tj(e,t){var n=t.width/e.width,r=t.height/e.height,a=Math.min(n,r);return{scale:a,x:-(e.x+e.width/2)*a+(t.x+t.width/2),y:-(e.y+e.height/2)*a+(t.y+t.height/2)}}function F1e(e,t){var n=new P1e;return n.parse(e,t)}var H1e=pt(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),W1e=function(){function e(t,n){this.type="geoSVG",this._usedGraphicMap=pt(),this._freedGraphics=[],this._mapName=t,this._parsedXML=xj(n)}return e.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var n=U1e(t.named),r=n.regions,a=n.regionsMap;this._regions=r,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(t){var n,r;try{n=t&&F1e(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=n.root,Ia(r!=null)}catch(g){throw new Error(`Invalid svg format
|
||
`+g.message)}var a=new At;a.add(r),a.isGeoSVGGraphicRoot=!0;var o=n.width,i=n.height,s=n.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,d=void 0;if(o!=null?(u=0,f=o):s&&(u=s.x,f=s.width),i!=null?(c=0,d=i):s&&(c=s.y,d=s.height),u==null||c==null){var v=r.getBoundingRect();u==null&&(u=v.x,f=v.width),c==null&&(c=v.y,d=v.height)}l=this._boundingRect=new Ot(u,c,f,d)}if(s){var h=Tj(s,l);r.scaleX=r.scaleY=h.scale,r.x=h.x,r.y=h.y}a.setClipPath(new rn({shape:l.plain()}));var p=[];return j(n.named,function(g){H1e.get(g.svgNodeTagLower)!=null&&(p.push(g),G1e(g.el))}),{root:a,boundingRect:l,named:p}},e.prototype.useGraphic=function(t){var n=this._usedGraphicMap,r=n.get(t);return r||(r=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),n.set(t,r),r)},e.prototype.freeGraphic=function(t){var n=this._usedGraphicMap,r=n.get(t);r&&(n.removeKey(t),this._freedGraphics.push(r))},e}();function G1e(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function U1e(e){var t=[],n=pt();return j(e,function(r){if(r.namedFrom==null){var a=new Epe(r.name,r.el);t.push(a),n.set(r.name,a)}}),{regions:t,regionsMap:n}}var cC=[126,25],eR="南海诸岛",nf=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Qc=0;Qc<nf.length;Qc++)for(var nv=0;nv<nf[Qc].length;nv++)nf[Qc][nv][0]/=10.5,nf[Qc][nv][1]/=-10.5/.75,nf[Qc][nv][0]+=cC[0],nf[Qc][nv][1]+=cC[1];function K1e(e,t){if(e==="china"){for(var n=0;n<t.length;n++)if(t[n].name===eR)return;t.push(new iK(eR,$e(nf,function(r){return{type:"polygon",exterior:r}}),cC))}}var j1e={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function Y1e(e,t){if(e==="china"){var n=j1e[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/(10.5/.75),t.setCenter(r)}}}var q1e=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function X1e(e,t){e==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:q1e[0]})}var Z1e="name",J1e=function(){function e(t,n,r){this.type="geoJSON",this._parsedMap=pt(),this._mapName=t,this._specialAreas=r,this._geoJSON=eye(n)}return e.prototype.load=function(t,n){n=n||Z1e;var r=this._parsedMap.get(n);if(!r){var a=this._parseToRegions(n);r=this._parsedMap.set(n,{regions:a,boundingRect:Q1e(a)})}var o=pt(),i=[];return j(r.regions,function(s){var l=s.name;t&&ft(t,l)&&(s=s.cloneShallow(l=t[l])),i.push(s),o.set(l,s)}),{regions:i,boundingRect:r.boundingRect||new Ot(0,0,0,0),regionsMap:o}},e.prototype._parseToRegions=function(t){var n=this._mapName,r=this._geoJSON,a;try{a=r?Lpe(r,t):[]}catch(o){throw new Error(`Invalid geoJson format
|
||
`+o.message)}return K1e(n,a),j(a,function(o){var i=o.name;Y1e(n,o),X1e(n,o);var s=this._specialAreas&&this._specialAreas[i];s&&o.transformTo(s.left,s.top,s.width,s.height)},this),a},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function Q1e(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();t=t||r.clone(),t.union(r)}return t}function eye(e){return st(e)?typeof JSON<"u"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var jp=pt();const Gl={registerMap:function(e,t,n){if(t.svg){var r=new W1e(e,t.svg);jp.set(e,r)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?n=t.specialAreas:a=t;var r=new J1e(e,a,n);jp.set(e,r)}},getGeoResource:function(e){return jp.get(e)},getMapForUser:function(e){var t=jp.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,n){var r=jp.get(e);if(r)return r.load(t,n)}};var aM=["rect","circle","line","ellipse","polygon","polyline","path"],tye=pt(aM),nye=pt(aM.concat(["g"])),rye=pt(aM.concat(["g"])),kj=an();function Ay(e){var t=e.getItemStyle(),n=e.get("areaColor");return n!=null&&(t.fill=n),t}function tR(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var aye=function(){function e(t){var n=this.group=new At,r=this._transformGroup=new At;n.add(r),this.uid=tp("ec_map_draw"),this._controller=new Ld(t.getZr()),this._controllerHost={target:r},r.add(this._regionsGroup=new At),r.add(this._svgGroup=new At)}return e.prototype.draw=function(t,n,r,a,o){var i=t.mainType==="geo",s=t.getData&&t.getData();i&&n.eachComponent({mainType:"series",subType:"map"},function(b){!s&&b.getHostGeoModel()===t&&(s=b.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this._transformGroup,f=l.getTransformInfo(),d=f.raw,v=f.roam,h=!u.childAt(0)||o,p=t.getShallow("clip",!0),g;p?(g=l.getViewRect().clone(),this.group.setClipPath(new rn({shape:g.clone()}))):this.group.removeClipPath(),h?(c.x=v.x,c.y=v.y,c.scaleX=v.scaleX,c.scaleY=v.scaleY,c.dirty()):Sn(c,v,t);var m=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,y={api:r,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:m,isGeo:i,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(y):l.resourceType==="geoSVG"&&this._buildSVG(y),this._updateController(t,g,n,r),this._updateMapSelectHandler(t,u,r,a)},e.prototype._buildGeoJSON=function(t){var n=this._regionsGroupByName=pt(),r=pt(),a=this._regionsGroup,o=t.transformInfoRaw,i=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(v,h){return h&&(v=h(v)),v&&[v[0]*o.scaleX+o.x,v[1]*o.scaleY+o.y]}function f(v){for(var h=[],p=!u&&l&&l.project,g=0;g<v.length;++g){var m=c(v[g],p);m&&h.push(m)}return h}function d(v){return{shape:{points:f(v)}}}a.removeAll(),j(t.geo.regions,function(v){var h=v.name,p=n.get(h),g=r.get(h)||{},m=g.dataIdx,y=g.regionModel;if(!p){p=n.set(h,new At),a.add(p),m=s?s.indexOfName(h):null,y=t.isGeo?i.getRegionModel(h):s?s.getItemModel(m):null;var b=y.get("silent",!0);b!=null&&(p.silent=b),r.set(h,{dataIdx:m,regionModel:y})}var w=[],S=[];j(v.geometries,function(T){if(T.type==="polygon"){var M=[T.exterior].concat(T.interiors||[]);u&&(M=sR(M,u)),j(M,function(E){w.push(new Ya(d(E)))})}else{var k=T.points;u&&(k=sR(k,u,!0)),j(k,function(E){S.push(new La(d(E)))})}});var x=c(v.getCenter(),l&&l.project);function C(T,M){if(T.length){var k=new Fw({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});p.add(k),nR(t,k,m,y),rR(t,k,h,y,i,m,x),M&&(tR(k),j(k.states,tR))}}C(w),C(S,!0)}),n.each(function(v,h){var p=r.get(h),g=p.dataIdx,m=p.regionModel;aR(t,v,h,m,i,g),oR(t,v,h,m,i),iR(t,v,h,m,i)},this)},e.prototype._buildSVG=function(t){var n=t.geo.map,r=t.transformInfoRaw;this._svgGroup.x=r.x,this._svgGroup.y=r.y,this._svgGroup.scaleX=r.scaleX,this._svgGroup.scaleY=r.scaleY,this._svgResourceChanged(n)&&(this._freeSVG(),this._useSVG(n));var a=this._svgDispatcherMap=pt(),o=!1;j(this._svgGraphicRecord.named,function(i){var s=i.name,l=t.mapOrGeoModel,u=t.data,c=i.svgNodeTagLower,f=i.el,d=u?u.indexOfName(s):null,v=l.getRegionModel(s);tye.get(c)!=null&&f instanceof ai&&nR(t,f,d,v),f instanceof ai&&(f.culling=!0);var h=v.get("silent",!0);if(h!=null&&(f.silent=h),f.z2EmphasisLift=0,!i.namedFrom&&(rye.get(c)!=null&&rR(t,f,s,v,l,d,null),aR(t,f,s,v,l,d),oR(t,f,s,v,l),nye.get(c)!=null)){var p=iR(t,f,s,v,l);p==="self"&&(o=!0);var g=a.get(s)||a.set(s,[]);g.push(f)}},this),this._enableBlurEntireSVG(o,t)},e.prototype._enableBlurEntireSVG=function(t,n){if(t&&n.isGeo){var r=n.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=r.opacity;this._svgGraphicRecord.root.traverse(function(o){if(!o.isGroup){ad(o);var i=o.ensureState("blur").style||{};i.opacity==null&&a!=null&&(i.opacity=a),o.ensureState("emphasis")}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(t,n){if(t==null)return[];var r=n.coordinateSystem;if(r.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var o=a.get(t);return o?[o]:[]}}else if(r.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},e.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},e.prototype._useSVG=function(t){var n=Gl.getGeoResource(t);if(n&&n.type==="geoSVG"){var r=n.useGraphic(this.uid);this._svgGroup.add(r.root),this._svgGraphicRecord=r,this._svgMapName=t}},e.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var n=Gl.getGeoResource(t);n&&n.type==="geoSVG"&&n.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(t,n,r,a){var o=t.coordinateSystem,i=this._controller,s=this._controllerHost;s.zoomLimit=t.get("scaleLimit"),s.zoom=o.getZoom(),i.enable(t.get("roam")||!1,{api:a,zInfo:{component:t},triggerInfo:{roamTrigger:t.get("roamTrigger"),isInSelf:function(c,f,d){return o.containPoint([f,d])},isInClip:function(c,f,d){return!n||n.contain(f,d)}}});var l=t.mainType;function u(){var c={type:"geoRoam",componentType:l};return c[l+"Id"]=t.id,c}i.off("pan").on("pan",function(c){this._mouseDownFlag=!1,tM(s,c.dx,c.dy),a.dispatchAction(Pe(u(),{dx:c.dx,dy:c.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(c){this._mouseDownFlag=!1,nM(s,c.scale,c.originX,c.originY),a.dispatchAction(Pe(u(),{totalZoom:s.zoom,zoom:c.scale,originX:c.originX,originY:c.originY,animation:{duration:0}}))},this)},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var n=t.getTextContent();n&&(n.ignore=kj(n).ignore)})},e.prototype._updateMapSelectHandler=function(t,n,r,a){var o=this;n.off("mousedown"),n.off("click"),t.get("selectedMode")&&(n.on("mousedown",function(){o._mouseDownFlag=!0}),n.on("click",function(i){o._mouseDownFlag&&(o._mouseDownFlag=!1)}))},e}();function nR(e,t,n,r){var a=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),i=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=Ay(a),u=Ay(o),c=Ay(s),f=Ay(i),d=e.data;if(d){var v=d.getItemVisual(n,"style"),h=d.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&v.fill&&(l.fill=v.fill),h&&(l.decal=mh(h,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=f,ad(t)}function rR(e,t,n,r,a,o,i){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var f=l?n:o,d=void 0;(!s||o>=0)&&(d=a);var v=i?{normal:{align:"center",verticalAlign:"middle"}}:null;Kr(t,Vr(r),{labelFetcher:d,labelDataIndex:f,defaultText:n},v);var h=t.getTextContent();if(h&&(kj(h).ignore=h.ignore,t.textConfig&&i)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(i[0]-p.x)/p.width*100+"%",(i[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function aR(e,t,n,r,a,o){e.data?e.data.setItemGraphicEl(o,t):Vt(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:n,region:r&&r.option||{}}}function oR(e,t,n,r,a){e.data||eu({el:t,componentModel:a,itemName:n,itemTooltipOption:r.get("tooltip")})}function iR(e,t,n,r,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var o=r.getModel("emphasis"),i=o.get("focus");return Jn(t,i,o.get("blurScope"),o.get("disabled")),e.isGeo&&pce(t,a,n),i}function sR(e,t,n){var r=[],a;function o(){a=[]}function i(){a.length&&(r.push(a),a=[])}var s=t({polygonStart:o,polygonEnd:i,lineStart:o,lineEnd:i,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!n&&s.polygonStart(),j(e,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!n&&s.polygonEnd(),r}const Mj=aye;var oye=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a,o){if(!(o&&o.type==="mapToggleSelect"&&o.from===this.uid)){var i=this.group;if(i.removeAll(),!n.getHostGeoModel()){if(this._mapDraw&&o&&o.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),o&&o.type==="geoRoam"&&o.componentType==="series"&&o.seriesId===n.id){var s=this._mapDraw;s&&i.add(s.group)}else if(n.needsDrawMap){var s=this._mapDraw||new Mj(a);i.add(s.group),s.draw(n,r,a,this,o),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;n.get("showLegendSymbol")&&r.getComponent("legend")&&this._renderSymbols(n,r,a)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(n,r,a){var o=n.originalData,i=this.group;o.each(o.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=o.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,f=u.offset,d=new bc({style:{fill:n.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:Zh+1)});if(!f){var v=n.mainSeries.getData(),h=o.getName(l),p=v.indexOfName(h),g=o.getItemModel(l),m=g.getModel("label"),y=v.getItemGraphicEl(p);Kr(d,Vr(g),{labelFetcher:{getFormattedLabel:function(b,w){return n.getFormattedLabel(p,w)}},defaultText:h}),d.disableLabelAnimation=!0,m.get("position")||d.setTextConfig({position:"bottom"}),y.onHoverStateChange=function(b){Bb(d,b)}}i.add(d)}}})},t.type="map",t}(Fn);const iye=oye;var sye=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(r){if(r!=null){var a=this.getData().getName(r),o=this.coordinateSystem,i=o.getRegion(a);return i&&o.dataToPoint(i.getCenter())}},n}return t.prototype.getInitialData=function(n){for(var r=lp(this,{coordDimensions:["value"],encodeDefaulter:Yt(_k,this)}),a=pt(),o=[],i=0,s=r.count();i<s;i++){var l=r.getName(i);a.set(l,i)}var u=Gl.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return j(u.regions,function(c){var f=c.name,d=a.get(f),v=c.properties&&c.properties.echartsStyle,h;d==null?(h={name:f},o.push(h)):h=r.getRawDataItem(d),v&&Zt(h,v)}),r.appendData(o),r},t.prototype.getHostGeoModel=function(){if(vG(this).kind!==ps.boxCoordSys)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(n){var r=this.getData();return r.get(r.mapDimension("value"),n)},t.prototype.getRegionModel=function(n){var r=this.getData();return r.getItemModel(r.indexOfName(n))},t.prototype.formatTooltip=function(n,r,a){for(var o=this.getData(),i=this.getRawValue(n),s=o.getName(n),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var f=l[c].originalData.indexOfName(s),d=o.mapDimension("value");isNaN(l[c].originalData.get(d,f))||u.push(l[c].name)}return Mr("section",{header:u.join(", "),noHeader:!u.length,blocks:[Mr("nameValue",{name:s,value:i})]})},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.getLegendIcon=function(n){var r=n.icon||"roundRect",a=Ar(r,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill);return a.setStyle(n.itemStyle),a.style.stroke="none",r.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill=Se.color.neutral00,a.style.lineWidth=2),a},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:Se.color.tertiary},itemStyle:{borderWidth:.5,borderColor:Se.color.border,areaColor:Se.color.background},emphasis:{label:{show:!0,color:Se.color.primary},itemStyle:{areaColor:Se.color.highlight}},select:{label:{show:!0,color:Se.color.primary},itemStyle:{color:Se.color.highlight}},nameProperty:"name"},t}(er);const lye=sye;function uye(e,t){var n={};return j(e,function(r){r.each(r.mapDimension("value"),function(a,o){var i="ec-"+r.getName(o);n[i]=n[i]||[],isNaN(a)||n[i].push(a)})}),e[0].map(e[0].mapDimension("value"),function(r,a){for(var o="ec-"+e[0].getName(a),i=0,s=1/0,l=-1/0,u=n[o].length,c=0;c<u;c++)s=Math.min(s,n[o][c]),l=Math.max(l,n[o][c]),i+=n[o][c];var f;return t==="min"?f=s:t==="max"?f=l:t==="average"?f=i/u:f=i,u===0?NaN:f})}function cye(e){var t={};e.eachSeriesByType("map",function(n){var r=n.getHostGeoModel(),a=r?"o"+r.id:"i"+n.getMapType();(t[a]=t[a]||[]).push(n)}),j(t,function(n,r){for(var a=uye($e(n,function(i){return i.getData()}),n[0].get("mapValueCalculation")),o=0;o<n.length;o++)n[o].originalData=n[o].getData();for(var o=0;o<n.length;o++)n[o].seriesGroup=n,n[o].needsDrawMap=o===0&&!n[o].getHostGeoModel(),n[o].setData(a.cloneShallow()),n[o].mainSeries=n[0]})}function fye(e){var t={};e.eachSeriesByType("map",function(n){var r=n.getMapType();if(!(n.getHostGeoModel()||t[r])){var a={};j(n.seriesGroup,function(i){var s=i.coordinateSystem,l=i.originalData;i.get("showLegendSymbol")&&e.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var f=l.getName(c),d=s.getRegion(f);if(!(!d||isNaN(u))){var v=a[f]||0,h=s.dataToPoint(d.getCenter());a[f]=v+1,l.setItemLayout(c,{point:h,offset:v})}})});var o=n.getData();o.each(function(i){var s=o.getName(i),l=o.getItemLayout(i)||{};l.showLabel=!a[s],o.setItemLayout(i,l)}),t[r]=!0}})}var lR=_r,dye=function(e){ye(t,e);function t(n,r){var a=e.call(this)||this;return a.type="view",a.dimensions=["x","y"],a._roamTransformable=new kl,a._rawTransformable=new kl,a.name=n,a._opt=r,a}return t.prototype.setBoundingRect=function(n,r,a,o){return this._rect=new Ot(n,r,a,o),this._updateCenterAndZoom(),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(n,r,a,o){this._transformTo(n,r,a,o),this._viewRect=new Ot(n,r,a,o)},t.prototype._transformTo=function(n,r,a,o){var i=this.getBoundingRect(),s=this._rawTransformable;s.transform=i.calculateTransform(new Ot(n,r,a,o));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(n){var r=this._opt;r&&r.api&&r.ecModel&&r.ecModel.getShallow("legacyViewCoordSysCenterBase")&&n&&(n=[at(n[0],r.api.getWidth()),at(n[1],r.api.getWidth())]),this._centerOption=Mt(n),this._updateCenterAndZoom()},t.prototype.setZoom=function(n){this._zoom=rM(n||1,this.zoomLimit),this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var n=this.getBoundingRect(),r=n.x+n.width/2,a=n.y+n.height/2;return[r,a]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var n=this._centerOption,r=this._rect;n&&r&&(this._center=[at(n[0],r.width,r.x),at(n[1],r.height,r.y)]);var a=this._rawTransformable.getLocalTransform(),o=this._roamTransformable,i=this.getDefaultCenter(),s=this.getCenter(),l=this.getZoom();s=_r([],s,a),i=_r([],i,a),o.originX=s[0],o.originY=s[1],o.x=i[0]-s[0],o.y=i[1]-s[1],o.scaleX=o.scaleY=l,this._updateTransform()},t.prototype._updateTransform=function(){var n=this._roamTransformable,r=this._rawTransformable;r.parent=n,n.updateTransform(),r.updateTransform(),Aw(this.transform||(this.transform=[]),r.transform||Jr()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],Pi(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var n=this._rawTransformable,r=this._roamTransformable,a=new kl;return a.transform=r.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var n=this.getBoundingRect().clone();return n.applyTransform(this.transform),n},t.prototype.dataToPoint=function(n,r,a){var o=r?this._rawTransform:this.transform;return a=a||[],o?lR(a,n,o):Ba(a,n)},t.prototype.pointToData=function(n,r,a){a=a||[];var o=this.invTransform;return o?lR(a,n,o):(a[0]=n[0],a[1]=n[1],a)},t.prototype.convertToPixel=function(n,r,a){var o=uR(r);return o===this?o.dataToPoint(a):null},t.prototype.convertFromPixel=function(n,r,a){var o=uR(r);return o===this?o.pointToData(a):null},t.prototype.containPoint=function(n){return this.getViewRectAfterRoam().contain(n[0],n[1])},t.dimensions=["x","y"],t}(kl);function uR(e){var t=e.seriesModel;return t?t.coordinateSystem:null}const Dd=dye;var vye={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Aj=["lng","lat"],Ej=function(e){ye(t,e);function t(n,r,a){var o=e.call(this,n,{api:a.api,ecModel:a.ecModel})||this;o.dimensions=Aj,o.type="geo",o._nameCoordMap=pt(),o.map=r;var i=a.projection,s=Gl.load(r,a.nameMap,a.nameProperty),l=Gl.getGeoResource(r);o.resourceType=l?l.type:null;var u=o.regions=s.regions,c=vye[l.type];o._regionsMap=s.regionsMap,o.regions=s.regions,o.projection=i;var f;if(i)for(var d=0;d<u.length;d++){var v=u[d].getBoundingRect(i);f=f||v.clone(),f.union(v)}else f=s.boundingRect;return o.setBoundingRect(f.x,f.y,f.width,f.height),o.aspectScale=i?1:yt(a.aspectScale,c.aspectScale),o._invertLongitute=i?!1:c.invertLongitute,o}return t.prototype._transformTo=function(n,r,a,o){var i=this.getBoundingRect(),s=this._invertLongitute;i=i.clone(),s&&(i.y=-i.y-i.height);var l=this._rawTransformable;l.transform=i.calculateTransform(new Ot(n,r,a,o));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(n){return this._regionsMap.get(n)},t.prototype.getRegionByCoord=function(n){for(var r=this.regions,a=0;a<r.length;a++){var o=r[a];if(o.type==="geoJSON"&&o.contain(n))return r[a]}},t.prototype.addGeoCoord=function(n,r){this._nameCoordMap.set(n,r)},t.prototype.getGeoCoord=function(n){var r=this._regionsMap.get(n);return this._nameCoordMap.get(n)||r&&r.getCenter()},t.prototype.dataToPoint=function(n,r,a){if(st(n)&&(n=this.getGeoCoord(n)),n){var o=this.projection;return o&&(n=o.project(n)),n&&this.projectedToPoint(n,r,a)}},t.prototype.pointToData=function(n,r,a){var o=this.projection;return o&&(n=o.unproject(n)),n&&this.pointToProjected(n,a)},t.prototype.pointToProjected=function(n,r){return e.prototype.pointToData.call(this,n,0,r)},t.prototype.projectedToPoint=function(n,r,a){return e.prototype.dataToPoint.call(this,n,r,a)},t.prototype.convertToPixel=function(n,r,a){var o=cR(r);return o===this?o.dataToPoint(a):null},t.prototype.convertFromPixel=function(n,r,a){var o=cR(r);return o===this?o.pointToData(a):null},t}(Dd);Er(Ej,Dd);function cR(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",lr).models[0]||{}).coordinateSystem:null}const fR=Ej;function dR(e,t){var n=e.get("boundingCoords");if(n!=null){var r=n[0],a=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(a[0])&&isFinite(a[1])){var o=this.projection;if(o){var i=r[0],s=r[1],l=a[0],u=a[1];r=[1/0,1/0],a=[-1/0,-1/0];var c=function(S,x,C,T){for(var M=C-S,k=T-x,E=0;E<=100;E++){var A=E/100,I=o.project([S+M*A,x+k*A]);Ru(r,r,I),Ou(a,a,I)}};c(i,s,l,s),c(l,s,l,u),c(l,u,i,u),c(i,u,l,s)}this.setBoundingRect(r[0],r[1],a[0]-r[0],a[1]-r[1])}}var f=this.getBoundingRect(),d=e.get("layoutCenter"),v=e.get("layoutSize"),h=$r(e,t).refContainer,p=f.width/f.height*this.aspectScale,g=!1,m,y;d&&v&&(m=[at(d[0],h.width)+h.x,at(d[1],h.height)+h.y],y=at(v,Math.min(h.width,h.height)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(y)&&(g=!0));var b;if(g)b={},p>1?(b.width=y,b.height=y/p):(b.height=y,b.width=y*p),b.y=m[1]-b.height/2,b.x=m[0]-b.width/2;else{var w=e.getBoxLayoutParams();w.aspect=p,b=Qn(w,h),b=yG(e,b,p)}this.setViewRect(b.x,b.y,b.width,b.height),this.setCenter(e.get("center")),this.setZoom(e.get("zoom"))}function hye(e,t){j(t.get("geoCoord"),function(n,r){e.addGeoCoord(r,n)})}var pye=function(){function e(){this.dimensions=Aj}return e.prototype.create=function(t,n){var r=[];function a(i){return{nameProperty:i.get("nameProperty"),aspectScale:i.get("aspectScale"),projection:i.get("projection")}}t.eachComponent("geo",function(i,s){var l=i.get("map"),u=new fR(l+s,l,Pe({nameMap:i.get("nameMap"),api:n,ecModel:t},a(i)));u.zoomLimit=i.get("scaleLimit"),r.push(u),i.coordinateSystem=u,u.model=i,u.resize=dR,u.resize(i,n)}),t.eachSeries(function(i){Nm({targetModel:i,coordSysType:"geo",coordSysProvider:function(){var s=i.subType==="map"?i.getHostGeoModel():i.getReferringComponents("geo",lr).models[0];return s&&s.coordinateSystem},allowNotFound:!0})});var o={};return t.eachSeriesByType("map",function(i){if(!i.getHostGeoModel()){var s=i.getMapType();o[s]=o[s]||[],o[s].push(i)}}),j(o,function(i,s){var l=$e(i,function(c){return c.get("nameMap")}),u=new fR(s,s,Pe({nameMap:R5(l),api:n,ecModel:t},a(i[0])));u.zoomLimit=la.apply(null,$e(i,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=dR,u.resize(i[0],n),j(i,function(c){c.coordinateSystem=u,hye(u,c)})}),r},e.prototype.getFilledRegions=function(t,n,r,a){for(var o=(t||[]).slice(),i=pt(),s=0;s<o.length;s++)i.set(o[s].name,o[s]);var l=Gl.load(n,r,a);return j(l.regions,function(u){var c=u.name,f=i.get(c),d=u.properties&&u.properties.echartsStyle;f||(f={name:c},o.push(f)),d&&Zt(f,d)}),o},e}(),gye=new pye;const Ij=gye;var mye=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a);var o=Gl.getGeoResource(n.map);if(o&&o.type==="geoJSON"){var i=n.itemStyle=n.itemStyle||{};"color"in i||(i.color=n.defaultItemStyleColor||Se.color.backgroundTint)}td(n,"label",["show"])},t.prototype.optionUpdated=function(){var n=this,r=this.option;r.regions=Ij.getFilledRegions(r.regions,r.map,r.nameMap,r.nameProperty);var a={};this._optionModelMap=Fs(r.regions||[],function(o,i){var s=i.name;return s&&(o.set(s,new Tn(i,n,n.ecModel)),i.selected&&(a[s]=!0)),o},pt()),r.selectedMap||(r.selectedMap=a)},t.prototype.getRegionModel=function(n){return this._optionModelMap.get(n)||new Tn(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(n,r){var a=this.getRegionModel(n),o=r==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),i={name:n};if(kt(o))return i.status=r,o(i);if(st(o))return o.replace("{a}",n??"")},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.select=function(n){var r=this.option,a=r.selectedMode;if(a){a!=="multiple"&&(r.selectedMap=null);var o=r.selectedMap||(r.selectedMap={});o[n]=!0}},t.prototype.unSelect=function(n){var r=this.option.selectedMap;r&&(r[n]=!1)},t.prototype.toggleSelected=function(n){this[this.isSelected(n)?"unSelect":"select"](n)},t.prototype.isSelected=function(n){var r=this.option.selectedMap;return!!(r&&r[n])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:Se.color.tertiary},itemStyle:{borderWidth:.5,borderColor:Se.color.border},emphasis:{label:{show:!0,color:Se.color.primary},itemStyle:{color:Se.color.highlight}},select:{label:{show:!0,color:Se.color.primary},itemStyle:{color:Se.color.highlight}},regions:[]},t}(mn);const yye=mye;var bye=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return t.prototype.init=function(n,r){this._api=r},t.prototype.render=function(n,r,a,o){if(this._model=n,!n.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new Mj(a));var i=this._mapDraw;i.draw(n,r,a,this,o),i.group.on("click",this._handleRegionClick,this),i.group.silent=n.get("silent"),this.group.add(i.group),this.updateSelectStatus(n,r,a)},t.prototype._handleRegionClick=function(n){var r;Tf(n.target,function(a){return(r=Vt(a).eventData)!=null},!0),r&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:r.name})},t.prototype.updateSelectStatus=function(n,r,a){var o=this;this._mapDraw.group.traverse(function(i){var s=Vt(i).eventData;if(s)return o._model.isSelected(s.name)?a.enterSelect(i):a.leaveSelect(i),!0})},t.prototype.findHighDownDispatchers=function(n){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(n,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(or);const _ye=bye;function wye(e,t,n){Gl.registerMap(e,t,n)}function Lj(e){e.registerCoordinateSystem("geo",Ij),e.registerComponentModel(yye),e.registerComponentView(_ye),e.registerImpl("registerMap",wye),e.registerImpl("getMap",function(n){return Gl.getMapForUser(n)});function t(n,r){r.update="geo:updateSelectStatus",e.registerAction(r,function(a,o){var i={},s=[];return o.eachComponent({mainType:"geo",query:a},function(l){l[n](a.name);var u=l.coordinateSystem;j(u.regions,function(f){i[f.name]=l.isSelected(f.name)||!1});var c=[];j(i,function(f,d){i[d]&&c.push(d)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:i,allSelected:s,name:a.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(n,r,a){var o=n.componentType;o||(n.geoId!=null?o="geo":n.seriesId!=null&&(o="series")),o||(o="series"),r.eachComponent({mainType:o,query:n},function(i){var s=i.coordinateSystem;if(s.type==="geo"){var l=r4(s,n,i.get("scaleLimit"));i.setCenter&&i.setCenter(l.center),i.setZoom&&i.setZoom(l.zoom),o==="series"&&j(i.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function Sye(e){Qt(Lj),e.registerChartView(iye),e.registerSeriesModel(lye),e.registerLayout(fye),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,cye),cU("map",e.registerAction)}function xye(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n=[t],r,a;r=n.pop();)if(a=r.children,r.isExpand&&a.length)for(var o=a.length,i=o-1;i>=0;i--){var s=a[i];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i,thread:null},n.push(s)}}function Cye(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,a=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){kye(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;a?(e.hierNode.prelim=a.hierNode.prelim+t(e,a),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else a&&(e.hierNode.prelim=a.hierNode.prelim+t(e,a));e.parentNode.hierNode.defaultAncestor=Mye(e,a,e.parentNode.hierNode.defaultAncestor||r[0],t)}function Tye(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function vR(e){return arguments.length?e:Iye}function S0(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function kye(e){for(var t=e.children,n=t.length,r=0,a=0;--n>=0;){var o=t[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,a+=o.hierNode.change,r+=o.hierNode.shift+a}}function Mye(e,t,n,r){if(t){for(var a=e,o=e,i=o.parentNode.children[0],s=t,l=a.hierNode.modifier,u=o.hierNode.modifier,c=i.hierNode.modifier,f=s.hierNode.modifier;s=P6(s),o=R6(o),s&&o;){a=P6(a),i=R6(i),a.hierNode.ancestor=e;var d=s.hierNode.prelim+f-o.hierNode.prelim-u+r(s,o);d>0&&(Eye(Aye(s,e,n),e,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=a.hierNode.modifier,c+=i.hierNode.modifier}s&&!P6(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=f-l),o&&!R6(i)&&(i.hierNode.thread=o,i.hierNode.modifier+=u-c,n=e)}return n}function P6(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function R6(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function Aye(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function Eye(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function Iye(e,t){return e.parentNode===t.parentNode?1:2}var Lye=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),Dye=function(e){ye(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:Se.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new Lye},t.prototype.buildPath=function(n,r){var a=r.childPoints,o=a.length,i=r.parentPoint,s=a[0],l=a[o-1];if(o===1){n.moveTo(i[0],i[1]),n.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=at(r.forkPosition,1),v=[];v[c]=i[c],v[f]=i[f]+(l[f]-i[f])*d,n.moveTo(i[0],i[1]),n.lineTo(v[0],v[1]),n.moveTo(s[0],s[1]),v[c]=s[c],n.lineTo(v[0],v[1]),v[c]=l[c],n.lineTo(v[0],v[1]),n.lineTo(l[0],l[1]);for(var h=1;h<o-1;h++){var p=a[h];n.moveTo(p[0],p[1]),v[c]=p[c],n.lineTo(v[0],v[1])}},t}(ln),Pye=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new At,n}return t.prototype.init=function(n,r){this._controller=new Ld(r.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(n,r,a){var o=n.getData(),i=n.layoutInfo,s=this._mainGroup,l=n.get("layout");l==="radial"?(s.x=i.x+i.width/2,s.y=i.y+i.height/2):(s.x=i.x,s.y=i.y),this._updateViewCoordSys(n,a),this._updateController(n,null,r,a);var u=this._data;o.diff(u).add(function(c){hR(o,c)&&pR(o,c,null,s,n)}).update(function(c,f){var d=u.getItemGraphicEl(f);if(!hR(o,c)){d&&mR(u,f,d,s,n);return}pR(o,c,d,s,n)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&mR(u,c,f,s,n)}).execute(),this._nodeScaleRatio=n.get("nodeScaleRatio"),this._updateNodeAndLinkScale(n),n.get("expandAndCollapse")===!0&&o.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:n.id,dataIndex:f})})}),this._data=o},t.prototype._updateViewCoordSys=function(n,r){var a=n.getData(),o=[];a.each(function(f){var d=a.getItemLayout(f);d&&!isNaN(d.x)&&!isNaN(d.y)&&o.push([+d.x,+d.y])});var i=[],s=[];Rw(o,i,s);var l=this._min,u=this._max;s[0]-i[0]===0&&(i[0]=l?l[0]:i[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-i[1]===0&&(i[1]=l?l[1]:i[1]-1,s[1]=u?u[1]:s[1]+1);var c=n.coordinateSystem=new Dd(null,{api:r,ecModel:n.ecModel});c.zoomLimit=n.get("scaleLimit"),c.setBoundingRect(i[0],i[1],s[0]-i[0],s[1]-i[1]),c.setCenter(n.get("center")),c.setZoom(n.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=i,this._max=s},t.prototype._updateController=function(n,r,a,o){var i=this;wj(n,o,this.group,this._controller,this._controllerHost,r),this._controller.on("zoom",function(s){i._updateNodeAndLinkScale(n)})},t.prototype._updateNodeAndLinkScale=function(n){var r=n.getData(),a=this._getNodeGlobalScale(n);r.eachItemGraphicEl(function(o,i){o.setSymbolScale(a)})},t.prototype._getNodeGlobalScale=function(n){var r=n.coordinateSystem;if(r.type!=="view")return 1;var a=this._nodeScaleRatio,o=r.scaleX||1,i=r.getZoom(),s=(i-1)*a+1;return s/o},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(Fn);function hR(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function pR(e,t,n,r,a){var o=!n,i=e.tree.getNodeByDataIndex(t),s=i.getModel(),l=i.getVisual("style").fill,u=i.isExpand===!1&&i.children.length!==0?l:Se.color.neutral00,c=e.tree.root,f=i.parentNode===c?i:i.parentNode||i,d=e.getItemGraphicEl(f.dataIndex),v=f.getLayout(),h=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:v,p=i.getLayout();o?(n=new zm(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=h.x,n.y=h.y):n.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=p.rawX,n.__radialRawY=p.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,Sn(n,{x:p.x,y:p.y},a);var g=n.getSymbolPath();if(a.get("layout")==="radial"){var m=c.children[0],y=m.getLayout(),b=m.children.length,w=void 0,S=void 0;if(p.x===y.x&&i.isExpand===!0&&m.children.length){var x={x:(m.children[0].getLayout().x+m.children[b-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[b-1].getLayout().y)/2};w=Math.atan2(x.y-y.y,x.x-y.x),w<0&&(w=Math.PI*2+w),S=x.x<y.x,S&&(w=w-Math.PI)}else w=Math.atan2(p.y-y.y,p.x-y.x),w<0&&(w=Math.PI*2+w),i.children.length===0||i.children.length!==0&&i.isExpand===!1?(S=p.x<y.x,S&&(w=w-Math.PI)):(S=p.x>y.x,S||(w=w-Math.PI));var C=S?"left":"right",T=s.getModel("label"),M=T.get("rotate"),k=M*(Math.PI/180),E=g.getTextContent();E&&(g.setTextConfig({position:T.get("position")||C,rotation:M==null?-w:k,origin:"center"}),E.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),I=A==="relative"?hg(i.getAncestorsIndices(),i.getDescendantIndices()):A==="ancestor"?i.getAncestorsIndices():A==="descendant"?i.getDescendantIndices():null;I&&(Vt(n).focus=I),Rye(a,i,c,n,h,v,p,r),n.__edge&&(n.onHoverStateChange=function(O){if(O!=="blur"){var z=i.parentNode&&e.getItemGraphicEl(i.parentNode.dataIndex);z&&z.hoverState===Lm||Bb(n.__edge,O)}})}function Rye(e,t,n,r,a,o,i,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),d=e.get(["lineStyle","curveness"]),v=e.get("edgeForkPosition"),h=l.getModel("lineStyle").getLineStyle(),p=r.__edge;if(u==="curve")t.parentNode&&t.parentNode!==n&&(p||(p=r.__edge=new zw({shape:fC(c,f,d,a,a)})),Sn(p,{shape:fC(c,f,d,o,i)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==n&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,m=[],y=0;y<g.length;y++){var b=g[y].getLayout();m.push([b.x,b.y])}p||(p=r.__edge=new Dye({shape:{parentPoint:[i.x,i.y],childPoints:[[i.x,i.y]],orient:f,forkPosition:v}})),Sn(p,{shape:{parentPoint:[i.x,i.y],childPoints:m}},e)}p&&!(u==="polyline"&&!t.isExpand)&&(p.useStyle(Pt({strokeNoScale:!0,fill:null},h)),Br(p,l,"lineStyle"),ad(p),s.add(p))}function gR(e,t,n,r,a){var o=t.tree.root,i=Dj(o,e),s=i.source,l=i.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),f=c.__edge,d=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),v=r.get("edgeShape"),h=r.get("layout"),p=r.get("orient"),g=r.get(["lineStyle","curveness"]);d&&(v==="curve"?sc(d,{shape:fC(h,p,g,l,l),style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:a}):v==="polyline"&&r.get("layout")==="orthogonal"&&sc(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:a}))}}function Dj(e,t){for(var n=t.parentNode===e?t:t.parentNode||t,r;r=n.getLayout(),r==null;)n=n.parentNode===e?n:n.parentNode||n;return{source:n,sourceLayout:r}}function mR(e,t,n,r,a){var o=e.tree.getNodeByDataIndex(t),i=e.tree.root,s=Dj(i,o).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};sc(n,{x:s.x+1,y:s.y+1},a,{cb:function(){r.remove(n),e.setItemGraphicEl(t,null)},removeOpt:l}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),o.children.forEach(function(u){gR(u,e,r,a,l)}),gR(o,e,r,a,l)}function fC(e,t,n,r,a){var o,i,s,l,u,c,f,d;if(e==="radial"){u=r.rawX,f=r.rawY,c=a.rawX,d=a.rawY;var v=S0(u,f),h=S0(u,f+(d-f)*n),p=S0(c,d+(f-d)*n),g=S0(c,d);return{x1:v.x||0,y1:v.y||0,x2:g.x||0,y2:g.y||0,cpx1:h.x||0,cpy1:h.y||0,cpx2:p.x||0,cpy2:p.y||0}}else u=r.x,f=r.y,c=a.x,d=a.y,(t==="LR"||t==="RL")&&(o=u+(c-u)*n,i=f,s=c+(u-c)*n,l=d),(t==="TB"||t==="BT")&&(o=u,i=f+(d-f)*n,s=c,l=d+(f-d)*n);return{x1:u,y1:f,x2:c,y2:d,cpx1:o,cpy1:i,cpx2:s,cpy2:l}}const Oye=Pye;var ti=an();function Pj(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,Rj(t,n,e),j(n,function(r){j(t.TRANSFERABLE_METHODS,function(a){r.wrapMethod(a,Yt(Nye,e))})}),t.wrapMethod("cloneShallow",Yt(Vye,e)),j(t.CHANGABLE_METHODS,function(r){t.wrapMethod(r,Yt(Bye,e))}),Ia(n[t.dataType]===t)}function Nye(e,t){if(Fye(this)){var n=Pe({},ti(this).datas);n[this.dataType]=t,Rj(t,n,e)}else oM(t,this.dataType,ti(this).mainData,e);return t}function Bye(e,t){return e.struct&&e.struct.update(),t}function Vye(e,t){return j(ti(t).datas,function(n,r){n!==t&&oM(n.cloneShallow(),r,t,e)}),t}function $ye(e){var t=ti(this).mainData;return e==null||t==null?t:ti(t).datas[e]}function zye(){var e=ti(this).mainData;return e==null?[{data:e}]:$e(dn(ti(e).datas),function(t){return{type:t,data:ti(e).datas[t]}})}function Fye(e){return ti(e).mainData===e}function Rj(e,t,n){ti(e).datas={},j(t,function(r,a){oM(r,a,e,n)})}function oM(e,t,n,r){ti(n).datas[t]=e,ti(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=$ye,e.getLinkedDataAll=zye}var Hye=function(){function e(t,n){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=n}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(t,n,r){kt(t)&&(r=n,n=t,t=null),t=t||{},st(t)&&(t={order:t});var a=t.order||"preorder",o=this[t.attr||"children"],i;a==="preorder"&&(i=n.call(r,this));for(var s=0;!i&&s<o.length;s++)o[s].eachNode(t,n,r);a==="postorder"&&n.call(r,this)},e.prototype.updateDepthAndHeight=function(t){var n=0;this.depth=t;for(var r=0;r<this.children.length;r++){var a=this.children[r];a.updateDepthAndHeight(t+1),a.height>n&&(n=a.height)}this.height=n+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var n=0,r=this.children,a=r.length;n<a;n++){var o=r[n].getNodeById(t);if(o)return o}},e.prototype.contains=function(t){if(t===this)return!0;for(var n=0,r=this.children,a=r.length;n<a;n++){var o=r[n].contains(t);if(o)return o}},e.prototype.getAncestors=function(t){for(var n=[],r=t?this:this.parentNode;r;)n.push(r),r=r.parentNode;return n.reverse(),n},e.prototype.getAncestorsIndices=function(){for(var t=[],n=this;n;)t.push(n.dataIndex),n=n.parentNode;return t.reverse(),t},e.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(n){t.push(n.dataIndex)}),t},e.prototype.getValue=function(t){var n=this.hostTree.data;return n.getStore().get(n.getDimensionIndex(t||"value"),this.dataIndex)},e.prototype.setLayout=function(t,n){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,n)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var n=this.hostTree,r=n.data.getItemModel(this.dataIndex);return r.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,n){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,n)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,n=0;n<t.length;++n)if(t[n]===this)return n;return-1}return-1},e.prototype.isAncestorOf=function(t){for(var n=t.parentNode;n;){if(n===this)return!0;n=n.parentNode}return!1},e.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},e}(),Wye=function(){function e(t){this.type="tree",this._nodes=[],this.hostModel=t}return e.prototype.eachNode=function(t,n,r){this.root.eachNode(t,n,r)},e.prototype.getNodeByDataIndex=function(t){var n=this.data.getRawIndex(t);return this._nodes[n]},e.prototype.getNodeById=function(t){return this.root.getNodeById(t)},e.prototype.update=function(){for(var t=this.data,n=this._nodes,r=0,a=n.length;r<a;r++)n[r].dataIndex=-1;for(var r=0,a=t.count();r<a;r++)n[t.getRawIndex(r)].dataIndex=r},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var a=new e(n),o=[],i=1;s(t);function s(c,f){var d=c.value;i=Math.max(i,Ve(d)?d.length:1),o.push(c);var v=new Hye(Pr(c.name,""),a);f?Gye(v,f):a.root=v,a._nodes.push(v);var h=c.children;if(h)for(var p=0;p<h.length;p++)s(h[p],v)}a.root.updateDepthAndHeight(0);var l=Vm(o,{coordDimensions:["value"],dimensionsCount:i}).dimensions,u=new Wa(l,n);return u.initData(o),r&&r(u),Pj({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},e}();function Gye(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}const iM=Wye;function Bg(e,t,n){if(e&&Xt(t,e.type)>=0){var r=n.getData().tree.root,a=e.targetNode;if(st(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var o=e.targetNodeId;if(o!=null&&(a=r.getNodeById(o)))return{node:a}}}function Oj(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function sM(e,t){var n=Oj(e);return Xt(n,t)>=0}function o4(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var Uye=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(n){var r={name:n.name,children:n.data},a=n.leaves||{},o=new Tn(a,this,this.ecModel),i=iM.createTree(r,this,s);function s(f){f.wrapMethod("getItemModel",function(d,v){var h=i.getNodeByDataIndex(v);return h&&h.children.length&&h.isExpand||(d.parentModel=o),d})}var l=0;i.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=n.expandAndCollapse,c=u&&n.initialTreeDepth>=0?n.initialTreeDepth:l;return i.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),i.data},t.prototype.getOrient=function(){var n=this.get("orient");return n==="horizontal"?n="LR":n==="vertical"&&(n="TB"),n},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.formatTooltip=function(n,r,a){for(var o=this.getData().tree,i=o.root.children[0],s=o.getNodeByDataIndex(n),l=s.getValue(),u=s.name;s&&s!==i;)u=s.parentNode.name+"."+u,s=s.parentNode;return Mr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=o4(a,this),r.collapsed=!a.isExpand,r},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:Se.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(er);const Kye=Uye;function jye(e,t,n){for(var r=[e],a=[],o;o=r.pop();)if(a.push(o),o.isExpand){var i=o.children;if(i.length)for(var s=0;s<i.length;s++)r.push(i[s])}for(;o=a.pop();)t(o,n)}function Yp(e,t){for(var n=[e],r;r=n.pop();)if(t(r),r.isExpand){var a=r.children;if(a.length)for(var o=a.length-1;o>=0;o--)n.push(a[o])}}function Yye(e,t){e.eachSeriesByType("tree",function(n){qye(n,t)})}function qye(e,t){var n=$r(e,t).refContainer,r=Qn(e.getBoxLayoutParams(),n);e.layoutInfo=r;var a=e.get("layout"),o=0,i=0,s=null;a==="radial"?(o=2*Math.PI,i=Math.min(r.height,r.width)/2,s=vR(function(w,S){return(w.parentNode===S.parentNode?1:2)/w.depth})):(o=r.width,i=r.height,s=vR());var l=e.getData().tree.root,u=l.children[0];if(u){xye(l),jye(u,Cye,s),l.hierNode.modifier=-u.hierNode.prelim,Yp(u,Tye);var c=u,f=u,d=u;Yp(u,function(w){var S=w.getLayout().x;S<c.getLayout().x&&(c=w),S>f.getLayout().x&&(f=w),w.depth>d.depth&&(d=w)});var v=c===f?1:s(c,f)/2,h=v-c.getLayout().x,p=0,g=0,m=0,y=0;if(a==="radial")p=o/(f.getLayout().x+v+h),g=i/(d.depth-1||1),Yp(u,function(w){m=(w.getLayout().x+h)*p,y=(w.depth-1)*g;var S=S0(m,y);w.setLayout({x:S.x,y:S.y,rawX:m,rawY:y},!0)});else{var b=e.getOrient();b==="RL"||b==="LR"?(g=i/(f.getLayout().x+v+h),p=o/(d.depth-1||1),Yp(u,function(w){y=(w.getLayout().x+h)*g,m=b==="LR"?(w.depth-1)*p:o-(w.depth-1)*p,w.setLayout({x:m,y},!0)})):(b==="TB"||b==="BT")&&(p=o/(f.getLayout().x+v+h),g=i/(d.depth-1||1),Yp(u,function(w){m=(w.getLayout().x+h)*p,y=b==="TB"?(w.depth-1)*g:i-(w.depth-1)*g,w.setLayout({x:m,y},!0)}))}}}function Xye(e){e.eachSeriesByType("tree",function(t){var n=t.getData(),r=n.tree;r.eachNode(function(a){var o=a.getModel(),i=o.getModel("itemStyle").getItemStyle(),s=n.ensureUniqueItemVisual(a.dataIndex,"style");Pe(s,i)})})}function Zye(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,n){n.eachComponent({mainType:"series",subType:"tree",query:t},function(r){var a=t.dataIndex,o=r.getData().tree,i=o.getNodeByDataIndex(a);i.isExpand=!i.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,n,r){n.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var o=a.coordinateSystem,i=r4(o,t,a.get("scaleLimit"));a.setCenter(i.center),a.setZoom(i.zoom)})})}function Jye(e){e.registerChartView(Oye),e.registerSeriesModel(Kye),e.registerLayout(Yye),e.registerVisual(Xye),Zye(e)}var yR=["treemapZoomToNode","treemapRender","treemapMove"];function Qye(e){for(var t=0;t<yR.length;t++)e.registerAction({type:yR[t],update:"updateView"},br);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(n,r){r.eachComponent({mainType:"series",subType:"treemap",query:n},a);function a(o,i){var s=["treemapZoomToNode","treemapRootToNode"],l=Bg(n,s,o);if(l){var u=o.getViewRoot();u&&(n.direction=sM(u,l.node)?"rollUp":"drillDown"),o.resetViewRoot(l.node)}}})}function Nj(e){var t=e.getData(),n=t.tree,r={};n.eachNode(function(a){for(var o=a;o&&o.depth>1;)o=o.parentNode;var i=Ex(e.ecModel,o.name||o.dataIndex+"",r);a.setVisual("decal",i)})}var e2e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return t.prototype.getInitialData=function(n,r){var a={name:n.name,children:n.data};Bj(a);var o=n.levels||[],i=this.designatedVisualItemStyle={},s=new Tn({itemStyle:i},this,r);o=n.levels=t2e(o,r);var l=$e(o||[],function(f){return new Tn(f,s,r)},this),u=iM.createTree(a,this,c);function c(f){f.wrapMethod("getItemModel",function(d,v){var h=u.getNodeByDataIndex(v),p=h?l[h.depth]:null;return d.parentModel=p||s,d})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(n,r,a){var o=this.getData(),i=this.getRawValue(n),s=o.getName(n);return Mr("nameValue",{name:s,value:i})},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=o4(a,this),r.treePathInfo=r.treeAncestors,r},t.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},Pe(this.layoutInfo,n)},t.prototype.mapIdToIndex=function(n){var r=this._idIndexMap;r||(r=this._idIndexMap=pt(),this._idIndexMapCount=0);var a=r.get(n);return a==null&&r.set(n,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},t.prototype.enableAriaDecal=function(){Nj(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,coordinateSystemUsage:"box",left:Se.size.l,top:Se.size.xxxl,right:Se.size.l,bottom:Se.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:Se.size.m,emptyItemWidth:25,itemStyle:{color:Se.color.backgroundShade,textStyle:{color:Se.color.secondary}},emphasis:{itemStyle:{color:Se.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:Se.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:Se.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(er);function Bj(e){var t=0;j(e.children,function(r){Bj(r);var a=r.value;Ve(a)&&(a=a[0]),t+=a});var n=e.value;Ve(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),Ve(e.value)?e.value[0]=n:e.value=n}function t2e(e,t){var n=Bn(t.get("color")),r=Bn(t.get(["aria","decal","decals"]));if(n){e=e||[];var a,o;j(e,function(s){var l=new Tn(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(o=!0)});var i=e[0]||(e[0]={});return a||(i.color=n.slice()),!o&&r&&(i.decal=r.slice()),e}}const n2e=e2e;var r2e=8,bR=8,O6=5,a2e=function(){function e(t){this.group=new At,t.add(this.group)}return e.prototype.render=function(t,n,r,a){var o=t.getModel("breadcrumb"),i=this.group;if(i.removeAll(),!(!o.get("show")||!r)){var s=o.getModel("itemStyle"),l=o.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f=$r(t,n).refContainer,d={left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},v={emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]},h=Qn(d,f);this._prepare(r,v,u),this._renderContent(t,v,h,s,l,u,c,a),Kw(i,d,f)}},e.prototype._prepare=function(t,n,r){for(var a=t;a;a=a.parentNode){var o=Pr(a.getModel().get("name"),""),i=r.getTextRect(o),s=Math.max(i.width+r2e*2,n.emptyItemWidth);n.totalWidth+=s+bR,n.renderList.push({node:a,text:o,width:s})}},e.prototype._renderContent=function(t,n,r,a,o,i,s,l){for(var u=0,c=n.emptyItemWidth,f=t.get(["breadcrumb","height"]),d=n.totalWidth,v=n.renderList,h=o.getModel("itemStyle").getItemStyle(),p=v.length-1;p>=0;p--){var g=v[p],m=g.node,y=g.width,b=g.text;d>r.width&&(d-=y-c,y=c,b=null);var w=new Ya({shape:{points:o2e(u,0,y,f,p===v.length-1,p===0)},style:Pt(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new _n({style:zn(i,{text:b})}),textConfig:{position:"inside"},z2:Zh*1e4,onclick:Yt(l,m)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=zn(s,{text:b}),w.ensureState("emphasis").style=h,Jn(w,o.get("focus"),o.get("blurScope"),o.get("disabled")),this.group.add(w),i2e(w,t,m),u+=y+bR}},e.prototype.remove=function(){this.group.removeAll()},e}();function o2e(e,t,n,r,a,o){var i=[[a?e:e-O6,t],[e+n,t],[e+n,t+r],[a?e:e-O6,t+r]];return!o&&i.splice(2,0,[e+n+O6,t+r/2]),!a&&i.push([e,t+r/2]),i}function i2e(e,t,n){Vt(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&o4(n,t)}}const s2e=a2e;var l2e=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,n,r,a,o){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:n,duration:r,delay:a,easing:o}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,n=this._storage.length,r=function(){n--,n<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},a=0,o=this._storage.length;a<o;a++){var i=this._storage[a];i.el.animateTo(i.target,{duration:i.duration,delay:i.delay,easing:i.easing,setToFinal:!0,done:r,aborted:r})}return this},e}();function u2e(){return new l2e}var dC=At,_R=rn,wR=3,SR="label",xR="upperLabel",c2e=Zh*10,f2e=Zh*2,d2e=Zh*3,rf=rd([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),CR=function(e){var t=rf(e);return t.stroke=t.fill=t.lineWidth=null,t},c_=an(),v2e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=qp(),n}return t.prototype.render=function(n,r,a,o){var i=r.findComponents({mainType:"series",subType:"treemap",query:o});if(!(Xt(i,n)<0)){this.seriesModel=n,this.api=a,this.ecModel=r;var s=["treemapZoomToNode","treemapRootToNode"],l=Bg(o,s,n),u=o&&o.type,c=n.layoutInfo,f=!this._oldTree,d=this._storage,v=u==="treemapRootToNode"&&l&&d?{rootNodeGroup:d.nodeGroup[l.node.getRawIndex()],direction:o.direction}:null,h=this._giveContainerGroup(c),p=n.get("animation"),g=this._doRender(h,n,v);p&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(h,g,n,v):g.renderFinally(),this._resetController(a),this._renderBreadcrumb(n,a,l)}},t.prototype._giveContainerGroup=function(n){var r=this._containerGroup;return r||(r=this._containerGroup=new dC,this._initEvents(r),this.group.add(r)),r.x=n.x,r.y=n.y,r},t.prototype._doRender=function(n,r,a){var o=r.getData().tree,i=this._oldTree,s=qp(),l=qp(),u=this._storage,c=[];function f(y,b,w,S){return h2e(r,l,u,a,s,c,y,b,w,S)}p(o.root?[o.root]:[],i&&i.root?[i.root]:[],n,o===i||!i,0);var d=g(u);if(this._oldTree=o,this._storage=l,this._controllerHost){var v=this.seriesModel.layoutInfo,h=o.root.getLayout();h.width===v.width&&h.height===v.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:d,renderFinally:m};function p(y,b,w,S,x){S?(b=y,j(y,function(M,k){!M.isRemoved()&&T(k,k)})):new Hl(b,y,C,C).add(T).update(T).remove(Yt(T,null)).execute();function C(M){return M.getId()}function T(M,k){var E=M!=null?y[M]:null,A=k!=null?b[k]:null,I=f(E,A,w,x);I&&p(E&&E.viewChildren||[],A&&A.viewChildren||[],I,S,x+1)}}function g(y){var b=qp();return y&&j(y,function(w,S){var x=b[S];j(w,function(C){C&&(x.push(C),c_(C).willDelete=!0)})}),b}function m(){j(d,function(y){j(y,function(b){b.parent&&b.parent.remove(b)})}),j(c,function(y){y.invisible=!0,y.dirty()})}},t.prototype._doAnimation=function(n,r,a,o){var i=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(kt(i)?0:i)||0,u=(kt(s)?null:s)||"cubicOut",c=u2e();j(r.willDeleteEls,function(f,d){j(f,function(v,h){if(!v.invisible){var p=v.parent,g,m=c_(p);if(o&&o.direction==="drillDown")g=p===o.rootNodeGroup?{shape:{x:0,y:0,width:m.nodeWidth,height:m.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var y=0,b=0;m.willDelete||(y=m.nodeWidth/2,b=m.nodeHeight/2),g=d==="nodeGroup"?{x:y,y:b,style:{opacity:0}}:{shape:{x:y,y:b,width:0,height:0},style:{opacity:0}}}g&&c.add(v,g,l,0,u)}})}),j(this._storage,function(f,d){j(f,function(v,h){var p=r.lastsForAnimation[d][h],g={};p&&(v instanceof At?p.oldX!=null&&(g.x=v.x,g.y=v.y,v.x=p.oldX,v.y=p.oldY):(p.oldShape&&(g.shape=Pe({},v.shape),v.setShape(p.oldShape)),p.fadein?(v.setStyle("opacity",0),g.style={opacity:1}):v.style.opacity!==1&&(g.style={opacity:1})),c.add(v,g,l,0,u))})},this),this._state="animating",c.finished(lt(function(){this._state="ready",r.renderFinally()},this)).start()},t.prototype._resetController=function(n){var r=this,a=this._controller,o=this._controllerHost;o||(this._controllerHost={target:this.group},o=this._controllerHost);var i=this.seriesModel;a||(a=this._controller=new Ld(n.getZr()),a.on("pan",lt(this._onPan,this)),a.on("zoom",lt(this._onZoom,this))),a.enable(i.get("roam"),{api:n,zInfo:{component:i},triggerInfo:{roamTrigger:i.get("roamTrigger"),isInSelf:function(s,l,u){var c=r._containerGroup;return c?c.getBoundingRect().contain(l-c.x,u-c.y):!1}}}),o.zoomLimit=i.get("scaleLimit"),o.zoom=i.get("zoom")},t.prototype._clearController=function(){var n=this._controller;this._controllerHost=null,n&&(n.dispose(),n=null)},t.prototype._onPan=function(n){if(this._state!=="animating"&&(Math.abs(n.dx)>wR||Math.abs(n.dy)>wR)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+n.dx,y:a.y+n.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(n){var r=n.originX,a=n.originY,o=n.scale;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var s=i.getLayout();if(!s)return;var l=new Ot(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var f=c.zoom=c.zoom||1;if(f*=o,u){var d=u.min||0,v=u.max||1/0;f=Math.max(Math.min(v,f),d)}var h=f/c.zoom;c.zoom=f;var p=this.seriesModel.layoutInfo;r-=p.x,a-=p.y;var g=Jr();Hs(g,g,[-r,-a]),V5(g,g,[h,h]),Hs(g,g,[r,a]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(n){var r=this;n.on("click",function(a){if(r._state==="ready"){var o=r.seriesModel.get("nodeClick",!0);if(o){var i=r.findTarget(a.offsetX,a.offsetY);if(i){var s=i.node;if(s.getLayout().isLeafRoot)r._rootToNode(i);else if(o==="zoomToNode")r._zoomToNode(i);else if(o==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&Fb(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(n,r,a){var o=this;a||(a=n.get("leafDepth",!0)!=null?{node:n.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),a||(a={node:n.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new s2e(this.group))).render(n,r,a.node,function(i){o._state!=="animating"&&(sM(n.getViewRoot(),i)?o._rootToNode({node:i}):o._zoomToNode({node:i}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=qp(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(n){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},t.prototype._rootToNode=function(n){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},t.prototype.findTarget=function(n,r){var a,o=this.seriesModel.getViewRoot();return o.eachNode({attr:"viewChildren",order:"preorder"},function(i){var s=this._storage.background[i.getRawIndex()];if(s){var l=s.transformCoordToLocal(n,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:i,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},t.type="treemap",t}(Fn);function qp(){return{nodeGroup:[],background:[],content:[]}}function h2e(e,t,n,r,a,o,i,s,l,u){if(!i)return;var c=i.getLayout(),f=e.getData(),d=i.getModel();if(f.setItemGraphicEl(i.dataIndex,null),!c||!c.isInView)return;var v=c.width,h=c.height,p=c.borderWidth,g=c.invisible,m=i.getRawIndex(),y=s&&s.getRawIndex(),b=i.viewChildren,w=c.upperHeight,S=b&&b.length,x=d.getModel("itemStyle"),C=d.getModel(["emphasis","itemStyle"]),T=d.getModel(["blur","itemStyle"]),M=d.getModel(["select","itemStyle"]),k=x.get("borderRadius")||0,E=X("nodeGroup",dC);if(!E)return;if(l.add(E),E.x=c.x||0,E.y=c.y||0,E.markRedraw(),c_(E).nodeWidth=v,c_(E).nodeHeight=h,c.isAboveViewRoot)return E;var A=X("background",_R,u,f2e);A&&B(E,A,S&&c.upperLabelHeight);var I=d.getModel("emphasis"),O=I.get("focus"),z=I.get("blurScope"),$=I.get("disabled"),P=O==="ancestor"?i.getAncestorsIndices():O==="descendant"?i.getDescendantIndices():O;if(S)Sg(E)&&Sf(E,!1),A&&(Sf(A,!$),f.setItemGraphicEl(i.dataIndex,A),gx(A,P,z));else{var L=X("content",_R,u,d2e);L&&F(E,L),A.disableMorphing=!0,A&&Sg(A)&&Sf(A,!1),Sf(E,!$),f.setItemGraphicEl(i.dataIndex,E);var V=d.getShallow("cursor");V&&L.attr("cursor",V),gx(E,P,z)}return E;function B(re,ce,ie){var Z=Vt(ce);if(Z.dataIndex=i.dataIndex,Z.seriesIndex=e.seriesIndex,ce.setShape({x:0,y:0,width:v,height:h,r:k}),g)U(ce);else{ce.invisible=!1;var se=i.getVisual("style"),J=se.stroke,ae=CR(x);ae.fill=J;var fe=rf(C);fe.fill=C.get("borderColor");var ve=rf(T);ve.fill=T.get("borderColor");var me=rf(M);if(me.fill=M.get("borderColor"),ie){var pe=v-2*p;G(ce,J,se.opacity,{x:p,y:0,width:pe,height:w})}else ce.removeTextContent();ce.setStyle(ae),ce.ensureState("emphasis").style=fe,ce.ensureState("blur").style=ve,ce.ensureState("select").style=me,ad(ce)}re.add(ce)}function F(re,ce){var ie=Vt(ce);ie.dataIndex=i.dataIndex,ie.seriesIndex=e.seriesIndex;var Z=Math.max(v-2*p,0),se=Math.max(h-2*p,0);if(ce.culling=!0,ce.setShape({x:p,y:p,width:Z,height:se,r:k}),g)U(ce);else{ce.invisible=!1;var J=i.getVisual("style"),ae=J.fill,fe=CR(x);fe.fill=ae,fe.decal=J.decal;var ve=rf(C),me=rf(T),pe=rf(M);G(ce,ae,J.opacity,null),ce.setStyle(fe),ce.ensureState("emphasis").style=ve,ce.ensureState("blur").style=me,ce.ensureState("select").style=pe,ad(ce)}re.add(ce)}function U(re){!re.invisible&&o.push(re)}function G(re,ce,ie,Z){var se=d.getModel(Z?xR:SR),J=Pr(d.get("name"),null),ae=se.getShallow("show");Kr(re,Vr(d,Z?xR:SR),{defaultText:ae?J:null,inheritColor:ce,defaultOpacity:ie,labelFetcher:e,labelDataIndex:i.dataIndex});var fe=re.getTextContent();if(fe){var ve=fe.style,me=Tw(ve.padding||0);Z&&(re.setTextConfig({layoutRect:Z}),fe.disableLabelLayout=!0),fe.beforeUpdate=function(){var Ne=Math.max((Z?Z.width:re.shape.width)-me[1]-me[3],0),Ee=Math.max((Z?Z.height:re.shape.height)-me[0]-me[2],0);(ve.width!==Ne||ve.height!==Ee)&&fe.setStyle({width:Ne,height:Ee})},ve.truncateMinChar=2,ve.lineOverflow="truncate",Y(ve,Z,c);var pe=fe.getState("emphasis");Y(pe?pe.style:null,Z,c)}}function Y(re,ce,ie){var Z=re?re.text:null;if(!ce&&ie.isLeafRoot&&Z!=null){var se=e.get("drillDownIcon",!0);re.text=se?se+" "+Z:Z}}function X(re,ce,ie,Z){var se=y!=null&&n[re][y],J=a[re];return se?(n[re][y]=null,te(J,se)):g||(se=new ce,se instanceof ai&&(se.z2=p2e(ie,Z)),oe(J,se)),t[re][m]=se}function te(re,ce){var ie=re[m]={};ce instanceof dC?(ie.oldX=ce.x,ie.oldY=ce.y):ie.oldShape=Pe({},ce.shape)}function oe(re,ce){var ie=re[m]={},Z=i.parentNode,se=ce instanceof At;if(Z&&(!r||r.direction==="drillDown")){var J=0,ae=0,fe=a.background[Z.getRawIndex()];!r&&fe&&fe.oldShape&&(J=fe.oldShape.width,ae=fe.oldShape.height),se?(ie.oldX=0,ie.oldY=ae):ie.oldShape={x:J,y:ae,width:0,height:0}}ie.fadein=!se}}function p2e(e,t){return e*c2e+t}const g2e=v2e;var Vg=j,m2e=Rt,f_=-1,lM=function(){function e(t){var n=t.mappingMethod,r=t.type,a=this.option=Mt(t);this.type=r,this.mappingMethod=n,this._normalizeData=_2e[n];var o=e.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],n==="piecewise"?(N6(a),y2e(a)):n==="category"?a.categories?b2e(a):N6(a,!0):(Ia(n!=="linear"||a.dataExtent),N6(a))}return e.prototype.mapValueToVisual=function(t){var n=this._normalizeData(t);return this._normalizedToVisual(n,t)},e.prototype.getNormalizer=function(){return lt(this._normalizeData,this)},e.listVisualTypes=function(){return dn(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,n,r){Rt(t)?j(t,n,r):n.call(r,t)},e.mapVisual=function(t,n,r){var a,o=Ve(t)?[]:Rt(t)?{}:(a=!0,null);return e.eachVisual(t,function(i,s){var l=n.call(r,i,s);a?o=l:o[s]=l}),o},e.retrieveVisuals=function(t){var n={},r;return t&&Vg(e.visualHandlers,function(a,o){t.hasOwnProperty(o)&&(n[o]=t[o],r=!0)}),r?n:null},e.prepareVisualTypes=function(t){if(Ve(t))t=t.slice();else if(m2e(t)){var n=[];Vg(t,function(r,a){n.push(a)}),t=n}else return[];return t.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,n){return n==="color"?!!(t&&t.indexOf(n)===0):t===n},e.findPieceIndex=function(t,n,r){for(var a,o=1/0,i=0,s=n.length;i<s;i++){var l=n[i].value;if(l!=null){if(l===t||st(l)&&l===t+"")return i;r&&d(l,i)}}for(var i=0,s=n.length;i<s;i++){var u=n[i],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(Iy(f[1],t,c[1]))return i}else if(c[1]===1/0){if(Iy(f[0],c[0],t))return i}else if(Iy(f[0],c[0],t)&&Iy(f[1],t,c[1]))return i;r&&d(c[0],i),r&&d(c[1],i)}}if(r)return t===1/0?n.length-1:t===-1/0?0:a;function d(v,h){var p=Math.abs(v-t);p<o&&(o=p,a=h)}},e.visualHandlers={color:{applyVisual:Xp("color"),getColorMapper:function(){var t=this.option;return lt(t.mappingMethod==="category"?function(n,r){return!r&&(n=this._normalizeData(n)),x0.call(this,n)}:function(n,r,a){var o=!!a;return!r&&(n=this._normalizeData(n)),a=g3(n,t.parsedVisual,a),o?a:Es(a,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Es(g3(t,this.option.parsedVisual),"rgba")},category:x0,piecewise:function(t,n){var r=hC.call(this,n);return r==null&&(r=Es(g3(t,this.option.parsedVisual),"rgba")),r},fixed:af}},colorHue:Ey(function(t,n){return Yu(t,n)}),colorSaturation:Ey(function(t,n){return Yu(t,null,n)}),colorLightness:Ey(function(t,n){return Yu(t,null,null,n)}),colorAlpha:Ey(function(t,n){return Mb(t,n)}),decal:{applyVisual:Xp("decal"),_normalizedToVisual:{linear:null,category:x0,piecewise:null,fixed:null}},opacity:{applyVisual:Xp("opacity"),_normalizedToVisual:vC([0,1])},liftZ:{applyVisual:Xp("liftZ"),_normalizedToVisual:{linear:af,category:af,piecewise:af,fixed:af}},symbol:{applyVisual:function(t,n,r){var a=this.mapValueToVisual(t);r("symbol",a)},_normalizedToVisual:{linear:TR,category:x0,piecewise:function(t,n){var r=hC.call(this,n);return r==null&&(r=TR.call(this,t)),r},fixed:af}},symbolSize:{applyVisual:Xp("symbolSize"),_normalizedToVisual:vC([0,1])}},e}();function y2e(e){var t=e.pieceList;e.hasSpecialVisual=!1,j(t,function(n,r){n.originIndex=r,n.visual!=null&&(e.hasSpecialVisual=!0)})}function b2e(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(Vg(t,function(i,s){n[i]=s}),!Ve(r)){var a=[];Rt(r)?Vg(r,function(i,s){var l=n[s];a[l??f_]=i}):a[f_]=r,r=Vj(e,a)}for(var o=t.length-1;o>=0;o--)r[o]==null&&(delete n[t[o]],t.pop())}function N6(e,t){var n=e.visual,r=[];Rt(n)?Vg(n,function(o){r.push(o)}):n!=null&&r.push(n);var a={color:1,symbol:1};!t&&r.length===1&&!a.hasOwnProperty(e.type)&&(r[1]=r[0]),Vj(e,r)}function Ey(e){return{applyVisual:function(t,n,r){var a=this.mapValueToVisual(t);r("color",e(n("color"),a))},_normalizedToVisual:vC([0,1])}}function TR(e){var t=this.option.visual;return t[Math.round(En(e,[0,1],[0,t.length-1],!0))]||{}}function Xp(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function x0(e){var t=this.option.visual;return t[this.option.loop&&e!==f_?e%t.length:e]}function af(){return this.option.visual[0]}function vC(e){return{linear:function(t){return En(t,e,this.option.visual,!0)},category:x0,piecewise:function(t,n){var r=hC.call(this,n);return r==null&&(r=En(t,e,this.option.visual,!0)),r},fixed:af}}function hC(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=lM.findPieceIndex(e,n),a=n[r];if(a&&a.visual)return a.visual[this.type]}}function Vj(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=$e(t,function(n){var r=uo(n);return r||[0,0,0,1]})),t}var _2e={linear:function(e){return En(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=lM.findPieceIndex(e,t,!0);if(n!=null)return En(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??f_},fixed:br};function Iy(e,t,n){return e?t<=n:t<n}const ua=lM;var w2e="itemStyle",$j=an();const S2e={seriesType:"treemap",reset:function(e){var t=e.getData().tree,n=t.root;n.isRemoved()||zj(n,{},e.getViewRoot().getAncestors(),e)}};function zj(e,t,n,r){var a=e.getModel(),o=e.getLayout(),i=e.hostTree.data;if(!(!o||o.invisible||!o.isInView)){var s=a.getModel(w2e),l=x2e(s,t,r),u=i.ensureUniqueItemVisual(e.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),d;f!=null&&(d=kR(l),c=C2e(f,d)),u.stroke=c;var v=e.viewChildren;if(!v||!v.length)d=kR(l),u.fill=d;else{var h=T2e(e,a,o,s,l,v);j(v,function(p,g){if(p.depth>=n.length||p===n[p.depth]){var m=k2e(a,l,p,g,h,r);zj(p,m,n,r)}})}}}function x2e(e,t,n){var r=Pe({},t),a=n.designatedVisualItemStyle;return j(["color","colorAlpha","colorSaturation"],function(o){a[o]=t[o];var i=e.get(o);a[o]=null,i!=null&&(r[o]=i)}),r}function kR(e){var t=B6(e,"color");if(t){var n=B6(e,"colorAlpha"),r=B6(e,"colorSaturation");return r&&(t=Yu(t,null,null,r)),n&&(t=Mb(t,n)),t}}function C2e(e,t){return t!=null?Yu(t,null,null,e):null}function B6(e,t){var n=e[t];if(n!=null&&n!=="none")return n}function T2e(e,t,n,r,a,o){if(!(!o||!o.length)){var i=V6(t,"color")||a.color!=null&&a.color!=="none"&&(V6(t,"colorAlpha")||V6(t,"colorSaturation"));if(i){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:i.name,dataExtent:u,visual:i.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new ua(f);return $j(d).drColorMappingBy=c,d}}}function V6(e,t){var n=e.get(t);return Ve(n)&&n.length?{name:t,range:n}:null}function k2e(e,t,n,r,a,o){var i=Pe({},t);if(a){var s=a.type,l=s==="color"&&$j(a).drColorMappingBy,u=l==="index"?r:l==="id"?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));i[s]=a.mapValueToVisual(u)}return i}var $g=Math.max,d_=Math.min,MR=la,uM=j,Fj=["itemStyle","borderWidth"],M2e=["itemStyle","gapWidth"],A2e=["upperLabel","show"],E2e=["upperLabel","height"];const I2e={seriesType:"treemap",reset:function(e,t,n,r){var a=e.option,o=$r(e,n).refContainer,i=Qn(e.getBoxLayoutParams(),o),s=a.size||[],l=at(MR(i.width,s[0]),o.width),u=at(MR(i.height,s[1]),o.height),c=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],d=Bg(r,f,e),v=c==="treemapRender"||c==="treemapMove"?r.rootRect:null,h=e.getViewRoot(),p=Oj(h);if(c!=="treemapMove"){var g=c==="treemapZoomToNode"?N2e(e,d,h,l,u):v?[v.width,v.height]:[l,u],m=a.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var y={squareRatio:a.squareRatio,sort:m,leafDepth:a.leafDepth};h.hostTree.clearLayouts();var b={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};h.setLayout(b),Hj(h,y,!1,0),b=h.getLayout(),uM(p,function(S,x){var C=(p[x+1]||h).getValue();S.setLayout(Pe({dataExtent:[C,C],borderWidth:0,upperHeight:0},b))})}var w=e.getData().tree.root;w.setLayout(B2e(i,v,d),!0),e.setLayoutInfo(i),Wj(w,new Ot(-i.x,-i.y,n.getWidth(),n.getHeight()),p,h,0)}};function Hj(e,t,n,r){var a,o;if(!e.isRemoved()){var i=e.getLayout();a=i.width,o=i.height;var s=e.getModel(),l=s.get(Fj),u=s.get(M2e)/2,c=Gj(s),f=Math.max(l,c),d=l-u,v=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),a=$g(a-2*d,0),o=$g(o-d-v,0);var h=a*o,p=L2e(e,s,h,t,n,r);if(p.length){var g={x:d,y:v,width:a,height:o},m=d_(a,o),y=1/0,b=[];b.area=0;for(var w=0,S=p.length;w<S;){var x=p[w];b.push(x),b.area+=x.getLayout().area;var C=O2e(b,m,t.squareRatio);C<=y?(w++,y=C):(b.area-=b.pop().getLayout().area,AR(b,m,g,u,!1),m=d_(g.width,g.height),b.length=b.area=0,y=1/0)}if(b.length&&AR(b,m,g,u,!0),!n){var T=s.get("childrenVisibleMin");T!=null&&h<T&&(n=!0)}for(var w=0,S=p.length;w<S;w++)Hj(p[w],t,n,r+1)}}}function L2e(e,t,n,r,a,o){var i=e.children||[],s=r.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=r.leafDepth!=null&&r.leafDepth<=o;if(a&&!l)return e.viewChildren=[];i=In(i,function(v){return!v.isRemoved()}),P2e(i,s);var u=R2e(t,i,s);if(u.sum===0)return e.viewChildren=[];if(u.sum=D2e(t,n,u.sum,s,i),u.sum===0)return e.viewChildren=[];for(var c=0,f=i.length;c<f;c++){var d=i[c].getValue()/u.sum*n;i[c].setLayout({area:d})}return l&&(i.length&&e.setLayout({isLeafRoot:!0},!0),i.length=0),e.viewChildren=i,e.setLayout({dataExtent:u.dataExtent},!0),i}function D2e(e,t,n,r,a){if(!r)return n;for(var o=e.get("visibleMin"),i=a.length,s=i,l=i-1;l>=0;l--){var u=a[r==="asc"?i-l-1:l].getValue();u/n*t<o&&(s=l,n-=u)}return r==="asc"?a.splice(0,i-s):a.splice(s,i-s),n}function P2e(e,t){return t&&e.sort(function(n,r){var a=t==="asc"?n.getValue()-r.getValue():r.getValue()-n.getValue();return a===0?t==="asc"?n.dataIndex-r.dataIndex:r.dataIndex-n.dataIndex:a}),e}function R2e(e,t,n){for(var r=0,a=0,o=t.length;a<o;a++)r+=t[a].getValue();var i=e.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:i==="value"&&n?(s=[t[t.length-1].getValue(),t[0].getValue()],n==="asc"&&s.reverse()):(s=[1/0,-1/0],uM(t,function(l){var u=l.getValue(i);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function O2e(e,t,n){for(var r=0,a=1/0,o=0,i=void 0,s=e.length;o<s;o++)i=e[o].getLayout().area,i&&(i<a&&(a=i),i>r&&(r=i));var l=e.area*e.area,u=t*t*n;return l?$g(u*r/l,l/(u*a)):1/0}function AR(e,t,n,r,a){var o=t===n.width?0:1,i=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=t?e.area/t:0;(a||c>n[l[i]])&&(c=n[l[i]]);for(var f=0,d=e.length;f<d;f++){var v=e[f],h={},p=c?v.getLayout().area/c:0,g=h[l[i]]=$g(c-2*r,0),m=n[s[o]]+n[l[o]]-u,y=f===d-1||m<p?m:p,b=h[l[o]]=$g(y-2*r,0);h[s[i]]=n[s[i]]+d_(r,g/2),h[s[o]]=u+d_(r,b/2),u+=y,v.setLayout(h,!0)}n[s[i]]+=c,n[l[i]]-=c}function N2e(e,t,n,r,a){var o=(t||{}).node,i=[r,a];if(!o||o===n)return i;for(var s,l=r*a,u=l*e.option.zoomToNodeRatio;s=o.parentNode;){for(var c=0,f=s.children,d=0,v=f.length;d<v;d++)c+=f[d].getValue();var h=o.getValue();if(h===0)return i;u*=c/h;var p=s.getModel(),g=p.get(Fj),m=Math.max(g,Gj(p));u+=4*g*g+(3*g+m)*Math.pow(u,.5),u>LI&&(u=LI),o=s}u<l&&(u=l);var y=Math.pow(u/l,.5);return[r*y,a*y]}function B2e(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var a=n.node,o=a.getLayout();if(!o)return r;for(var i=[o.width/2,o.height/2],s=a;s;){var l=s.getLayout();i[0]+=l.x,i[1]+=l.y,s=s.parentNode}return{x:e.width/2-i[0],y:e.height/2-i[1]}}function Wj(e,t,n,r,a){var o=e.getLayout(),i=n[a],s=i&&i===e;if(!(i&&!s||a===n.length&&e!==r)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(o),isAboveViewRoot:s},!0);var l=new Ot(t.x-o.x,t.y-o.y,t.width,t.height);uM(e.viewChildren||[],function(u){Wj(u,l,n,r,a+1)})}}function Gj(e){return e.get(A2e)?e.get(E2e):0}function V2e(e){e.registerSeriesModel(n2e),e.registerChartView(g2e),e.registerVisual(S2e),e.registerLayout(I2e),Qye(e)}function $2e(e){var t=e.findComponents({mainType:"legend"});!t||!t.length||e.eachSeriesByType("graph",function(n){var r=n.getCategoriesData(),a=n.getGraph(),o=a.data,i=r.mapArray(r.getName);o.filterSelf(function(s){var l=o.getItemModel(s),u=l.getShallow("category");if(u!=null){gn(u)&&(u=i[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}function z2e(e){var t={};e.eachSeriesByType("graph",function(n){var r=n.getCategoriesData(),a=n.getData(),o={};r.each(function(i){var s=r.getName(i);o["ec-"+s]=i;var l=r.getItemModel(i),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=n.getColorFromPalette(s,t)),r.setItemVisual(i,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++){var d=l.getShallow(c[f],!0);d!=null&&r.setItemVisual(i,c[f],d)}}),r.count()&&a.each(function(i){var s=a.getItemModel(i),l=s.getShallow("category");if(l!=null){st(l)&&(l=o["ec-"+l]);var u=r.getItemVisual(l,"style"),c=a.ensureUniqueItemVisual(i,"style");Pe(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],d=0;d<f.length;d++)a.setItemVisual(i,f[d],r.getItemVisual(l,f[d]))}})})}function Ly(e){return e instanceof Array||(e=[e,e]),e}function F2e(e){e.eachSeriesByType("graph",function(t){var n=t.getGraph(),r=t.getEdgeData(),a=Ly(t.get("edgeSymbol")),o=Ly(t.get("edgeSymbolSize"));r.setVisual("fromSymbol",a&&a[0]),r.setVisual("toSymbol",a&&a[1]),r.setVisual("fromSymbolSize",o&&o[0]),r.setVisual("toSymbolSize",o&&o[1]),r.setVisual("style",t.getModel("lineStyle").getLineStyle()),r.each(function(i){var s=r.getItemModel(i),l=n.getEdgeByIndex(i),u=Ly(s.getShallow("symbol",!0)),c=Ly(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),d=r.ensureUniqueItemVisual(i,"style");switch(Pe(d,f),d.stroke){case"source":{var v=l.node1.getVisual("style");d.stroke=v&&v.fill;break}case"target":{var v=l.node2.getVisual("style");d.stroke=v&&v.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var pC="-->",i4=function(e){return e.get("autoCurveness")||null},Uj=function(e,t){var n=i4(e),r=20,a=[];if(gn(n))r=n;else if(Ve(n)){e.__curvenessList=n;return}t>r&&(r=t);var o=r%2?r+2:r+3;a=[];for(var i=0;i<o;i++)a.push((i%2?i+1:i)/10*(i%2?-1:1));e.__curvenessList=a},zg=function(e,t,n){var r=[e.id,e.dataIndex].join("."),a=[t.id,t.dataIndex].join(".");return[n.uid,r,a].join(pC)},Kj=function(e){var t=e.split(pC);return[t[0],t[2],t[1]].join(pC)},H2e=function(e,t){var n=zg(e.node1,e.node2,t);return t.__edgeMap[n]},W2e=function(e,t){var n=gC(zg(e.node1,e.node2,t),t),r=gC(zg(e.node2,e.node1,t),t);return n+r},gC=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function G2e(e){i4(e)&&(e.__curvenessList=[],e.__edgeMap={},Uj(e))}function U2e(e,t,n,r){if(i4(n)){var a=zg(e,t,n),o=n.__edgeMap,i=o[Kj(a)];o[a]&&!i?o[a].isForward=!0:i&&o[a]&&(i.isForward=!0,o[a].isForward=!1),o[a]=o[a]||[],o[a].push(r)}}function cM(e,t,n,r){var a=i4(t),o=Ve(a);if(!a)return null;var i=H2e(e,t);if(!i)return null;for(var s=-1,l=0;l<i.length;l++)if(i[l]===n){s=l;break}var u=W2e(e,t);Uj(t,u),e.lineStyle=e.lineStyle||{};var c=zg(e.node1,e.node2,t),f=t.__curvenessList,d=o||u%2?0:1;if(i.isForward)return f[d+s];var v=Kj(c),h=gC(v,t),p=f[s+h+d];return r?o?a&&a[0]===0?(h+d)%2?p:-p:((h%2?0:1)+d)%2?p:-p:(h+d)%2?p:-p:f[s+h+d]}function jj(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view")){var n=e.getGraph();n.eachNode(function(r){var a=r.getModel();r.setLayout([+a.get("x"),+a.get("y")])}),fM(n,e)}}function fM(e,t){e.eachEdge(function(n,r){var a=Mo(n.getModel().get(["lineStyle","curveness"]),-cM(n,t,r,!0),0),o=Il(n.node1.getLayout()),i=Il(n.node2.getLayout()),s=[o,i];+a&&s.push([(o[0]+i[0])/2-(o[1]-i[1])*a,(o[1]+i[1])/2-(i[0]-o[0])*a]),n.setLayout(s)})}function K2e(e,t){e.eachSeriesByType("graph",function(n){var r=n.get("layout"),a=n.coordinateSystem;if(a&&a.type!=="view"){var o=n.getData(),i=[];j(a.dimensions,function(d){i=i.concat(o.mapDimensionsAll(d))});for(var s=0;s<o.count();s++){for(var l=[],u=!1,c=0;c<i.length;c++){var f=o.get(i[c],s);isNaN(f)||(u=!0),l.push(f)}u?o.setItemLayout(s,a.dataToPoint(l)):o.setItemLayout(s,[NaN,NaN])}fM(o.graph,n)}else(!r||r==="none")&&jj(n)})}function C0(e){var t=e.coordinateSystem;if(t.type!=="view")return 1;var n=e.option.nodeScaleRatio,r=t.scaleX,a=t.getZoom(),o=(a-1)*n+1;return o/r}function T0(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var ER=Math.PI,$6=[];function dM(e,t,n,r){var a=e.coordinateSystem;if(!(a&&a.type!=="view")){var o=a.getBoundingRect(),i=e.getData(),s=i.graph,l=o.width/2+o.x,u=o.height/2+o.y,c=Math.min(o.width,o.height)/2,f=i.count();if(i.setLayout({cx:l,cy:u}),!!f){if(n){var d=a.pointToData(r),v=d[0],h=d[1],p=[v-l,h-u];Yh(p,p),x2(p,p,c),n.setLayout([l+p[0],u+p[1]],!0);var g=e.get(["circular","rotateLabel"]);Yj(n,g,l,u)}j2e[t](e,s,i,c,l,u,f),s.eachEdge(function(m,y){var b=Mo(m.getModel().get(["lineStyle","curveness"]),cM(m,e,y),0),w=Il(m.node1.getLayout()),S=Il(m.node2.getLayout()),x,C=(w[0]+S[0])/2,T=(w[1]+S[1])/2;+b&&(b*=3,x=[l*b+C*(1-b),u*b+T*(1-b)]),m.setLayout([w,S,x])})}}}var j2e={value:function(e,t,n,r,a,o,i){var s=0,l=n.getSum("value"),u=Math.PI*2/(l||i);t.eachNode(function(c){var f=c.getValue("value"),d=u*(l?f:1)/2;s+=d,c.setLayout([r*Math.cos(s)+a,r*Math.sin(s)+o]),s+=d})},symbolSize:function(e,t,n,r,a,o,i){var s=0;$6.length=i;var l=C0(e);t.eachNode(function(f){var d=T0(f);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var v=Math.asin(d/2/r);isNaN(v)&&(v=ER/2),$6[f.dataIndex]=v,s+=v*2});var u=(2*ER-s)/i/2,c=0;t.eachNode(function(f){var d=u+$6[f.dataIndex];c+=d,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([r*Math.cos(c)+a,r*Math.sin(c)+o]),c+=d})}};function Yj(e,t,n,r){var a=e.getGraphicEl();if(a){var o=e.getModel(),i=o.get(["label","rotate"])||0,s=a.getSymbolPath();if(t){var l=e.getLayout(),u=Math.atan2(l[1]-r,l[0]-n);u<0&&(u=Math.PI*2+u);var c=l[0]<n;c&&(u=u-Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var d=s.ensureState("emphasis");Pe(d.textConfig||(d.textConfig={}),{position:f})}else s.setTextConfig({rotation:i*=Math.PI/180})}}function Y2e(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&dM(t,"symbolSize")})}var rv=N8;function q2e(e,t,n){for(var r=e,a=t,o=n.rect,i=o.width,s=o.height,l=[o.x+i/2,o.y+s/2],u=n.gravity==null?.1:n.gravity,c=0;c<r.length;c++){var f=r[c];f.p||(f.p=wd(i*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=Il(f.p),f.edges=null}var d=n.friction==null?.6:n.friction,v=d,h,p;return{warmUp:function(){v=d*.8},setFixed:function(g){r[g].fixed=!0},setUnfixed:function(g){r[g].fixed=!1},beforeStep:function(g){h=g},afterStep:function(g){p=g},step:function(g){h&&h(r,a);for(var m=[],y=r.length,b=0;b<a.length;b++){var w=a[b];if(!w.ignoreForceLayout){var S=w.n1,x=w.n2;_f(m,x.p,S.p);var C=B8(m)-w.d,T=x.w/(S.w+x.w);isNaN(T)&&(T=0),Yh(m,m),!S.fixed&&rv(S.p,S.p,m,T*C*v),!x.fixed&&rv(x.p,x.p,m,-(1-T)*C*v)}}for(var b=0;b<y;b++){var M=r[b];M.fixed||(_f(m,l,M.p),rv(M.p,M.p,m,u*v))}for(var b=0;b<y;b++)for(var S=r[b],k=b+1;k<y;k++){var x=r[k];_f(m,x.p,S.p);var C=B8(m);C===0&&(N5(m,Math.random()-.5,Math.random()-.5),C=1);var E=(S.rep+x.rep)/C/C;!S.fixed&&rv(S.pp,S.pp,m,E),!x.fixed&&rv(x.pp,x.pp,m,-E)}for(var A=[],b=0;b<y;b++){var M=r[b];M.fixed||(_f(A,M.p,M.pp),rv(M.p,M.p,A,v),Ba(M.pp,M.p))}v=v*.992;var I=v<.01;p&&p(r,a,I),g&&g(I)}}}function X2e(e){e.eachSeriesByType("graph",function(t){var n=t.coordinateSystem;if(!(n&&n.type!=="view"))if(t.get("layout")==="force"){var r=t.preservedPoints||{},a=t.getGraph(),o=a.data,i=a.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?o.each(function(b){var w=o.getId(b);o.setItemLayout(b,r[w]||[NaN,NaN])}):!l||l==="none"?jj(t):l==="circular"&&dM(t,"value");var u=o.getDataExtent("value"),c=i.getDataExtent("value"),f=s.get("repulsion"),d=s.get("edgeLength"),v=Ve(f)?f:[f,f],h=Ve(d)?d:[d,d];h=[h[1],h[0]];var p=o.mapArray("value",function(b,w){var S=o.getItemLayout(w),x=En(b,u,v);return isNaN(x)&&(x=(v[0]+v[1])/2),{w:x,rep:x,fixed:o.getItemModel(w).get("fixed"),p:!S||isNaN(S[0])||isNaN(S[1])?null:S}}),g=i.mapArray("value",function(b,w){var S=a.getEdgeByIndex(w),x=En(b,c,h);isNaN(x)&&(x=(h[0]+h[1])/2);var C=S.getModel(),T=Mo(S.getModel().get(["lineStyle","curveness"]),-cM(S,t,w,!0),0);return{n1:p[S.node1.dataIndex],n2:p[S.node2.dataIndex],d:x,curveness:T,ignoreForceLayout:C.get("ignoreForceLayout")}}),m=n.getBoundingRect(),y=q2e(p,g,{rect:m,gravity:s.get("gravity"),friction:s.get("friction")});y.beforeStep(function(b,w){for(var S=0,x=b.length;S<x;S++)b[S].fixed&&Ba(b[S].p,a.getNodeByIndex(S).getLayout())}),y.afterStep(function(b,w,S){for(var x=0,C=b.length;x<C;x++)b[x].fixed||a.getNodeByIndex(x).setLayout(b[x].p),r[o.getId(x)]=b[x].p;for(var x=0,C=w.length;x<C;x++){var T=w[x],M=a.getEdgeByIndex(x),k=T.n1.p,E=T.n2.p,A=M.getLayout();A=A?A.slice():[],A[0]=A[0]||[],A[1]=A[1]||[],Ba(A[0],k),Ba(A[1],E),+T.curveness&&(A[2]=[(k[0]+E[0])/2-(k[1]-E[1])*T.curveness,(k[1]+E[1])/2-(E[0]-k[0])*T.curveness]),M.setLayout(A)}}),t.forceLayout=y,t.preservedPoints=r,y.step()}else t.forceLayout=null})}function Z2e(e,t,n){var r=$r(e,t),a=Pe(e.getBoxLayoutParams(),{aspect:n}),o=Qn(a,r.refContainer);return yG(e,o,n)}function J2e(e,t){var n=[];return e.eachSeriesByType("graph",function(r){Nm({targetModel:r,coordSysType:"view",coordSysProvider:a,isDefaultDataCoordSys:!0});function a(){var o=r.getData(),i=o.mapArray(function(h){var p=o.getItemModel(h);return[+p.get("x"),+p.get("y")]}),s=[],l=[];Rw(i,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=Z2e(r,t,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var f=l[0]-s[0],d=l[1]-s[1],v=new Dd(null,{api:t,ecModel:e});return v.zoomLimit=r.get("scaleLimit"),v.setBoundingRect(s[0],s[1],f,d),v.setViewRect(c.x,c.y,c.width,c.height),v.setCenter(r.get("center")),v.setZoom(r.get("zoom")),n.push(v),v}}),n}var IR=Rr.prototype,z6=zw.prototype,qj=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(qj);function F6(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var Q2e=function(e){ye(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-line",r}return t.prototype.getDefaultStyle=function(){return{stroke:Se.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new qj},t.prototype.buildPath=function(n,r){F6(r)?IR.buildPath.call(this,n,r):z6.buildPath.call(this,n,r)},t.prototype.pointAt=function(n){return F6(this.shape)?IR.pointAt.call(this,n):z6.pointAt.call(this,n)},t.prototype.tangentAt=function(n){var r=this.shape,a=F6(r)?[r.x2-r.x1,r.y2-r.y1]:z6.tangentAt.call(this,n);return Yh(a,a)},t}(ln);const Xj=Q2e;var H6=["fromSymbol","toSymbol"];function LR(e){return"_"+e+"Type"}function DR(e,t,n){var r=t.getItemVisual(n,e);if(!r||r==="none")return r;var a=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),i=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=op(a),u=Md(i||0,l);return r+l+u+(o||"")+(s||"")}function PR(e,t,n){var r=t.getItemVisual(n,e);if(!(!r||r==="none")){var a=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),i=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=op(a),u=Md(i||0,l),c=Ar(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=o==null||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=e,c}}function ebe(e){var t=new Xj({name:"line",subPixelOptimize:!0});return mC(t.shape,e),t}function mC(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var tbe=function(e){ye(t,e);function t(n,r,a){var o=e.call(this)||this;return o._createLine(n,r,a),o}return t.prototype._createLine=function(n,r,a){var o=n.hostModel,i=n.getItemLayout(r),s=n.getItemVisual(r,"z2"),l=ebe(i);l.shape.percent=0,Xn(l,{z2:yt(s,0),shape:{percent:1}},o,r),this.add(l),j(H6,function(u){var c=PR(u,n,r);this.add(c),this[LR(u)]=DR(u,n,r)},this),this._updateCommonStl(n,r,a)},t.prototype.updateData=function(n,r,a){var o=n.hostModel,i=this.childOfName("line"),s=n.getItemLayout(r),l={shape:{}};mC(l.shape,s),Sn(i,l,o,r),j(H6,function(u){var c=DR(u,n,r),f=LR(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=PR(u,n,r);this.add(d)}this[f]=c},this),this._updateCommonStl(n,r,a)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(n,r,a){var o=n.hostModel,i=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,c=a&&a.labelStatesModels,f=a&&a.emphasisDisabled,d=a&&a.focus,v=a&&a.blurScope;if(!a||n.hasItemOption){var h=n.getItemModel(r),p=h.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=h.getModel(["blur","lineStyle"]).getLineStyle(),u=h.getModel(["select","lineStyle"]).getLineStyle(),f=p.get("disabled"),d=p.get("focus"),v=p.get("blurScope"),c=Vr(h)}var g=n.getItemVisual(r,"style"),m=g.stroke;i.useStyle(g),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=s,i.ensureState("blur").style=l,i.ensureState("select").style=u,j(H6,function(x){var C=this.childOfName(x);if(C){C.setColor(m),C.style.opacity=g.opacity;for(var T=0;T<Ka.length;T++){var M=Ka[T],k=i.getState(M);if(k){var E=k.style||{},A=C.ensureState(M),I=A.style||(A.style={});E.stroke!=null&&(I[C.__isEmptyBrush?"stroke":"fill"]=E.stroke),E.opacity!=null&&(I.opacity=E.opacity)}}C.markRedraw()}},this);var y=o.getRawValue(r);Kr(this,c,{labelDataIndex:r,labelFetcher:{getFormattedLabel:function(x,C){return o.getFormattedLabel(x,C,n.dataType)}},inheritColor:m||Se.color.neutral99,defaultOpacity:g.opacity,defaultText:(y==null?n.getName(r):isFinite(y)?xr(y):y)+""});var b=this.getTextContent();if(b){var w=c.normal;b.__align=b.style.align,b.__verticalAlign=b.style.verticalAlign,b.__position=w.get("position")||"middle";var S=w.get("distance");Ve(S)||(S=[S,S]),b.__labelDistance=S}this.setTextConfig({position:null,local:!0,inside:!1}),Jn(this,d,v,f)},t.prototype.highlight=function(){zl(this)},t.prototype.downplay=function(){Fl(this)},t.prototype.updateLayout=function(n,r){this.setLinePoints(n.getItemLayout(r))},t.prototype.setLinePoints=function(n){var r=this.childOfName("line");mC(r.shape,n),r.dirty()},t.prototype.beforeUpdate=function(){var n=this,r=n.childOfName("fromSymbol"),a=n.childOfName("toSymbol"),o=n.getTextContent();if(!r&&!a&&(!o||o.ignore))return;for(var i=1,s=this.parent;s;)s.scaleX&&(i/=s.scaleX),s=s.parent;var l=n.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),d=_f([],f,c);Yh(d,d);function v(k,E){var A=k.__specifiedRotation;if(A==null){var I=l.tangentAt(E);k.attr("rotation",(E===1?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else k.attr("rotation",A)}if(r&&(r.setPosition(c),v(r,0),r.scaleX=r.scaleY=i*u,r.markRedraw()),a&&(a.setPosition(f),v(a,1),a.scaleX=a.scaleY=i*u,a.markRedraw()),o&&!o.ignore){o.x=o.y=0,o.originX=o.originY=0;var h=void 0,p=void 0,g=o.__labelDistance,m=g[0]*i,y=g[1]*i,b=u/2,w=l.tangentAt(b),S=[w[1],-w[0]],x=l.pointAt(b);S[1]>0&&(S[0]=-S[0],S[1]=-S[1]);var C=w[0]<0?-1:1;if(o.__position!=="start"&&o.__position!=="end"){var T=-Math.atan2(w[1],w[0]);f[0]<c[0]&&(T=Math.PI+T),o.rotation=T}var M=void 0;switch(o.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":M=-y,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":M=y,p="top";break;default:M=0,p="middle"}switch(o.__position){case"end":o.x=d[0]*m+f[0],o.y=d[1]*y+f[1],h=d[0]>.8?"left":d[0]<-.8?"right":"center",p=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":o.x=-d[0]*m+c[0],o.y=-d[1]*y+c[1],h=d[0]>.8?"right":d[0]<-.8?"left":"center",p=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":o.x=m*C+c[0],o.y=c[1]+M,h=w[0]<0?"right":"left",o.originX=-m*C,o.originY=-M;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":o.x=x[0],o.y=x[1]+M,h="center",o.originY=-M;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":o.x=-m*C+f[0],o.y=f[1]+M,h=w[0]>=0?"right":"left",o.originX=m*C,o.originY=-M;break}o.scaleX=o.scaleY=i,o.setStyle({verticalAlign:o.__verticalAlign||p,align:o.__align||h})}},t}(At);const vM=tbe;var nbe=function(){function e(t){this.group=new At,this._LineCtor=t||vM}return e.prototype.updateData=function(t){var n=this;this._progressiveEls=null;var r=this,a=r.group,o=r._lineData;r._lineData=t,o||a.removeAll();var i=RR(t);t.diff(o).add(function(s){n._doAdd(t,s,i)}).update(function(s,l){n._doUpdate(o,t,l,s,i)}).remove(function(s){a.remove(o.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(n,r){n.updateLayout(t,r)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=RR(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n){this._progressiveEls=[];function r(s){!s.isGroup&&!rbe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=n.getItemLayout(a);if(W6(o)){var i=new this._LineCtor(n,a,this._seriesScope);i.traverse(r),this.group.add(i),n.setItemGraphicEl(a,i),this._progressiveEls.push(i)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){_c(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,n,r){var a=t.getItemLayout(n);if(W6(a)){var o=new this._LineCtor(t,n,r);t.setItemGraphicEl(n,o),this.group.add(o)}},e.prototype._doUpdate=function(t,n,r,a,o){var i=t.getItemGraphicEl(r);if(!W6(n.getItemLayout(a))){this.group.remove(i);return}i?i.updateData(n,a,o):i=new this._LineCtor(n,a,o),n.setItemGraphicEl(a,i),this.group.add(i)},e}();function rbe(e){return e.animators&&e.animators.length>0}function RR(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Vr(t)}}function OR(e){return isNaN(e[0])||isNaN(e[1])}function W6(e){return e&&!OR(e[0])&&!OR(e[1])}const hM=nbe;var G6=[],U6=[],K6=[],av=Zr,j6=Vf,NR=Math.abs;function BR(e,t,n){for(var r=e[0],a=e[1],o=e[2],i=1/0,s,l=n*n,u=.1,c=.1;c<=.9;c+=.1){G6[0]=av(r[0],a[0],o[0],c),G6[1]=av(r[1],a[1],o[1],c);var f=NR(j6(G6,t)-l);f<i&&(i=f,s=c)}for(var d=0;d<32;d++){var v=s+u;U6[0]=av(r[0],a[0],o[0],s),U6[1]=av(r[1],a[1],o[1],s),K6[0]=av(r[0],a[0],o[0],v),K6[1]=av(r[1],a[1],o[1],v);var f=j6(U6,t)-l;if(NR(f)<.01)break;var h=j6(K6,t)-l;u/=2,f<0?h>=0?s=s+u:s=s-u:h>=0?s=s-u:s=s+u}return s}function Y6(e,t){var n=[],r=pg,a=[[],[],[]],o=[[],[]],i=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[Il(u[0]),Il(u[1])],u[2]&&u.__original.push(Il(u[2])));var d=u.__original;if(u[2]!=null){if(Ba(a[0],d[0]),Ba(a[1],d[2]),Ba(a[2],d[1]),c&&c!=="none"){var v=T0(s.node1),h=BR(a,d[0],v*t);r(a[0][0],a[1][0],a[2][0],h,n),a[0][0]=n[3],a[1][0]=n[4],r(a[0][1],a[1][1],a[2][1],h,n),a[0][1]=n[3],a[1][1]=n[4]}if(f&&f!=="none"){var v=T0(s.node2),h=BR(a,d[1],v*t);r(a[0][0],a[1][0],a[2][0],h,n),a[1][0]=n[1],a[2][0]=n[2],r(a[0][1],a[1][1],a[2][1],h,n),a[1][1]=n[1],a[2][1]=n[2]}Ba(u[0],a[0]),Ba(u[1],a[2]),Ba(u[2],a[1])}else{if(Ba(o[0],d[0]),Ba(o[1],d[1]),_f(i,o[1],o[0]),Yh(i,i),c&&c!=="none"){var v=T0(s.node1);N8(o[0],o[0],i,v*t)}if(f&&f!=="none"){var v=T0(s.node2);N8(o[1],o[1],i,-v*t)}Ba(u[0],o[0]),Ba(u[1],o[1])}})}var Zj=an();function abe(e){if(e)return Zj(e).bridge}function VR(e,t){e&&(Zj(e).bridge=t)}function $R(e){return e.type==="view"}var obe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){var a=new Fm,o=new hM,i=this.group,s=new At;this._controller=new Ld(r.getZr()),this._controllerHost={target:s},s.add(a.group),s.add(o.group),i.add(s),this._symbolDraw=a,this._lineDraw=o,this._mainGroup=s,this._firstRender=!0},t.prototype.render=function(n,r,a){var o=this,i=n.coordinateSystem,s=!1;this._model=n,this._api=a,this._active=!0;var l=this._getThumbnailInfo();l&&l.bridge.reset(a);var u=this._symbolDraw,c=this._lineDraw;if($R(i)){var f={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?this._mainGroup.attr(f):Sn(this._mainGroup,f,n)}Y6(n.getGraph(),C0(n));var d=n.getData();u.updateData(d);var v=n.getEdgeData();c.updateData(v),this._updateNodeAndLinkScale(),this._updateController(null,n,a),clearTimeout(this._layoutTimeout);var h=n.forceLayout,p=n.get(["force","layoutAnimation"]);h&&(s=!0,this._startForceLayoutIteration(h,a,p));var g=n.get("layout");d.graph.eachNode(function(w){var S=w.dataIndex,x=w.getGraphicEl(),C=w.getModel();if(x){x.off("drag").off("dragend");var T=C.get("draggable");T&&x.on("drag",function(k){switch(g){case"force":h.warmUp(),!o._layouting&&o._startForceLayoutIteration(h,a,p),h.setFixed(S),d.setItemLayout(S,[x.x,x.y]);break;case"circular":d.setItemLayout(S,[x.x,x.y]),w.setLayout({fixed:!0},!0),dM(n,"symbolSize",w,[k.offsetX,k.offsetY]),o.updateLayout(n);break;case"none":default:d.setItemLayout(S,[x.x,x.y]),fM(n.getGraph(),n),o.updateLayout(n);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),x.setDraggable(T,!!C.get("cursor"));var M=C.get(["emphasis","focus"]);M==="adjacency"&&(Vt(x).focus=w.getAdjacentDataIndices())}}),d.graph.eachEdge(function(w){var S=w.getGraphicEl(),x=w.getModel().get(["emphasis","focus"]);S&&x==="adjacency"&&(Vt(S).focus={edge:[w.dataIndex],node:[w.node1.dataIndex,w.node2.dataIndex]})});var m=n.get("layout")==="circular"&&n.get(["circular","rotateLabel"]),y=d.getLayout("cx"),b=d.getLayout("cy");d.graph.eachNode(function(w){Yj(w,m,y,b)}),this._firstRender=!1,s||this._renderThumbnail(n,a,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(n,r,a){var o=this,i=!1;(function s(){n.step(function(l){o.updateLayout(o._model),(l||!i)&&(i=!0,o._renderThumbnail(o._model,r,o._symbolDraw,o._lineDraw)),(o._layouting=!l)&&(a?o._layoutTimeout=setTimeout(s,16):s())})})()},t.prototype._updateController=function(n,r,a){var o=this._controller,i=this._controllerHost,s=r.coordinateSystem;if(!$R(s)){o.disable();return}o.enable(r.get("roam"),{api:a,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:function(l,u,c){return s.containPoint([u,c])},isInClip:function(l,u,c){return!n||n.contain(u,c)}}}),i.zoomLimit=r.get("scaleLimit"),i.zoom=s.getZoom(),o.off("pan").off("zoom").on("pan",function(l){a.dispatchAction({seriesId:r.id,type:"graphRoam",dx:l.dx,dy:l.dy})}).on("zoom",function(l){a.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:l.scale,originX:l.originX,originY:l.originY})})},t.prototype.updateViewOnPan=function(n,r,a){this._active&&(tM(this._controllerHost,a.dx,a.dy),this._updateThumbnailWindow())},t.prototype.updateViewOnZoom=function(n,r,a){this._active&&(nM(this._controllerHost,a.zoom,a.originX,a.originY),this._updateNodeAndLinkScale(),Y6(n.getGraph(),C0(n)),this._lineDraw.updateLayout(),r.updateLabelLayout(),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var n=this._model,r=n.getData(),a=C0(n);r.eachItemGraphicEl(function(o,i){o&&o.setSymbolScale(a)})},t.prototype.updateLayout=function(n){this._active&&(Y6(n.getGraph(),C0(n)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var n=this._model,r=n.coordinateSystem;if(r.type==="view"){var a=abe(n);if(a)return{bridge:a,coordSys:r}}},t.prototype._updateThumbnailWindow=function(){var n=this._getThumbnailInfo();n&&n.bridge.updateWindow(n.coordSys.transform,this._api)},t.prototype._renderThumbnail=function(n,r,a,o){var i=this._getThumbnailInfo();if(i){var s=new At,l=a.group.children(),u=o.group.children(),c=new At,f=new At;s.add(f),s.add(c);for(var d=0;d<l.length;d++){var v=l[d],h=v.children()[0],p=v.x,g=v.y,m=Mt(h.shape),y=Pe(m,{width:h.scaleX,height:h.scaleY,x:p-h.scaleX/2,y:g-h.scaleY/2}),b=Mt(h.style),w=new h.constructor({shape:y,style:b,z2:151});f.add(w)}for(var d=0;d<u.length;d++){var v=u[d],S=v.children()[0],b=Mt(S.style),y=Mt(S.shape),x=new Xj({style:b,shape:y,z2:151});c.add(x)}i.bridge.renderContent({api:r,roamType:n.get("roam"),viewportRect:null,group:s,targetTrans:i.coordSys.transform})}},t.type="graph",t}(Fn);const ibe=obe;function ov(e){return"_EC_"+e}var sbe=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,n){t=t==null?""+n:""+t;var r=this._nodesMap;if(!r[ov(t)]){var a=new of(t,n);return a.hostGraph=this,this.nodes.push(a),r[ov(t)]=a,a}},e.prototype.getNodeByIndex=function(t){var n=this.data.getRawIndex(t);return this.nodes[n]},e.prototype.getNodeById=function(t){return this._nodesMap[ov(t)]},e.prototype.addEdge=function(t,n,r){var a=this._nodesMap,o=this._edgesMap;if(gn(t)&&(t=this.nodes[t]),gn(n)&&(n=this.nodes[n]),t instanceof of||(t=a[ov(t)]),n instanceof of||(n=a[ov(n)]),!(!t||!n)){var i=t.id+"-"+n.id,s=new Jj(t,n,r);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),n.inEdges.push(s)),t.edges.push(s),t!==n&&n.edges.push(s),this.edges.push(s),o[i]=s,s}},e.prototype.getEdgeByIndex=function(t){var n=this.edgeData.getRawIndex(t);return this.edges[n]},e.prototype.getEdge=function(t,n){t instanceof of&&(t=t.id),n instanceof of&&(n=n.id);var r=this._edgesMap;return this._directed?r[t+"-"+n]:r[t+"-"+n]||r[n+"-"+t]},e.prototype.eachNode=function(t,n){for(var r=this.nodes,a=r.length,o=0;o<a;o++)r[o].dataIndex>=0&&t.call(n,r[o],o)},e.prototype.eachEdge=function(t,n){for(var r=this.edges,a=r.length,o=0;o<a;o++)r[o].dataIndex>=0&&r[o].node1.dataIndex>=0&&r[o].node2.dataIndex>=0&&t.call(n,r[o],o)},e.prototype.breadthFirstTraverse=function(t,n,r,a){if(n instanceof of||(n=this._nodesMap[ov(n)]),!!n){for(var o=r==="out"?"outEdges":r==="in"?"inEdges":"edges",i=0;i<this.nodes.length;i++)this.nodes[i].__visited=!1;if(!t.call(a,n,null))for(var s=[n];s.length;)for(var l=s.shift(),u=l[o],i=0;i<u.length;i++){var c=u[i],f=c.node1===l?c.node2:c.node1;if(!f.__visited){if(t.call(a,f,l))return;s.push(f),f.__visited=!0}}}},e.prototype.update=function(){for(var t=this.data,n=this.edgeData,r=this.nodes,a=this.edges,o=0,i=r.length;o<i;o++)r[o].dataIndex=-1;for(var o=0,i=t.count();o<i;o++)r[t.getRawIndex(o)].dataIndex=o;n.filterSelf(function(s){var l=a[n.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var o=0,i=a.length;o<i;o++)a[o].dataIndex=-1;for(var o=0,i=n.count();o<i;o++)a[n.getRawIndex(o)].dataIndex=o},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,a=0;a<n.length;a++)t.addNode(n[a].id,n[a].dataIndex);for(var a=0;a<r.length;a++){var o=r[a];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t},e}(),of=function(){function e(t,n){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=n??-1}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var n=this.hostGraph,r=n.data.getItemModel(this.dataIndex);return r.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},n=0;n<this.edges.length;n++){var r=this.edges[n];r.dataIndex<0||(t.edge.push(r.dataIndex),t.node.push(r.node1.dataIndex,r.node2.dataIndex))}return t},e.prototype.getTrajectoryDataIndices=function(){for(var t=pt(),n=pt(),r=0,a=this.edges.length;r<a;r++){var o=this.edges[r];if(!(o.dataIndex<0)){t.set(o.dataIndex,!0);for(var i=[o.node1],s=[o.node2],l=0;l<i.length;){var u=i[l];l++,n.set(u.dataIndex,!0);for(var c=u.inEdges,f=0,d=c.length,v=void 0,h=void 0;f<d;f++)v=c[f],h=v.dataIndex,h>=0&&!t.hasKey(h)&&(t.set(h,!0),i.push(v.node1))}for(l=0;l<s.length;){var p=s[l];l++,n.set(p.dataIndex,!0);for(var g=p.outEdges,f=0,m=g.length,y=void 0,b=void 0;f<m;f++)y=g[f],b=y.dataIndex,b>=0&&!t.hasKey(b)&&(t.set(b,!0),s.push(y.node2))}}}return{edge:t.keys(),node:n.keys()}},e}(),Jj=function(){function e(t,n,r){this.dataIndex=-1,this.node1=t,this.node2=n,this.dataIndex=r??-1}return e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var n=this.hostGraph,r=n.edgeData.getItemModel(this.dataIndex);return r.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var t=pt(),n=pt();t.set(this.dataIndex,!0);for(var r=[this.node1],a=[this.node2],o=0;o<r.length;){var i=r[o];o++,n.set(i.dataIndex,!0);for(var s=i.inEdges,l=0,u=s.length,c=void 0,f=void 0;l<u;l++)c=i.inEdges[l],f=c.dataIndex,f>=0&&!t.hasKey(f)&&(t.set(f,!0),r.push(c.node1))}for(o=0;o<a.length;){var d=a[o];o++,n.set(d.dataIndex,!0);for(var v=d.outEdges,l=0,u=v.length,h=void 0,p=void 0;l<u;l++)h=d.outEdges[l],p=h.dataIndex,p>=0&&!t.hasKey(p)&&(t.set(p,!0),a.push(h.node2))}return{edge:t.keys(),node:n.keys()}},e}();function Qj(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}Er(of,Qj("hostGraph","data"));Er(Jj,Qj("hostGraph","edgeData"));const lbe=sbe;function pM(e,t,n,r,a){for(var o=new lbe(r),i=0;i<e.length;i++)o.addNode(la(e[i].id,e[i].name,i),i);for(var s=[],l=[],u=0,i=0;i<t.length;i++){var c=t[i],f=c.source,d=c.target;o.addEdge(f,d,u)&&(l.push(c),s.push(la(Pr(c.id,null),f+" > "+d)),u++)}var v=n.get("coordinateSystem"),h;if(v==="cartesian2d"||v==="polar"||v==="matrix")h=tu(e,n);else{var p=Om.get(v),g=p?p.dimensions||[]:[];Xt(g,"value")<0&&g.concat(["value"]);var m=Vm(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;h=new Wa(m,n),h.initData(e)}var y=new Wa(["value"],n);return y.initData(l,s),a&&a(h,y),Pj({mainData:h,struct:o,structAttr:"graph",datas:{node:h,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var ube=function(e){ye(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.init=function(n){e.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new up(a,a),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(n){e.prototype.mergeDefaultAndTheme.apply(this,arguments),td(n,"edgeLabel",["show"])},t.prototype.getInitialData=function(n,r){var a=n.edges||n.links||[],o=n.data||n.nodes||[],i=this;if(o&&a){G2e(this);var s=pM(o,a,this,!0,l);return j(s.edges,function(u){U2e(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(h){var p=i._categoriesModels,g=h.getShallow("category"),m=p[g];return m&&(m.parentModel=h.parentModel,h.parentModel=m),h});var f=Tn.prototype.getModel;function d(h,p){var g=f.call(this,h,p);return g.resolveParentPath=v,g}c.wrapMethod("getItemModel",function(h){return h.resolveParentPath=v,h.getModel=d,h});function v(h){if(h&&(h[0]==="label"||h[1]==="label")){var p=h.slice();return h[0]==="label"?p[0]="edgeLabel":h[1]==="label"&&(p[1]="edgeLabel"),p}return h}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(n,r,a){if(a==="edge"){var o=this.getData(),i=this.getDataParams(n,a),s=o.graph.getEdgeByIndex(n),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Mr("nameValue",{name:c.join(" > "),value:i.value,noValue:i.value==null})}var f=eU({series:this,dataIndex:n,multipleSeries:r});return f},t.prototype._updateCategoriesData=function(){var n=$e(this.option.categories||[],function(a){return a.value!=null?a:Pe({value:0},a)}),r=new Wa(["value"],this);r.initData(n),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:Se.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:Se.color.primary}}},t}(er);const cbe=ube;function fbe(e){e.registerChartView(ibe),e.registerSeriesModel(cbe),e.registerProcessor($2e),e.registerVisual(z2e),e.registerVisual(F2e),e.registerLayout(K2e),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,Y2e),e.registerLayout(X2e),e.registerCoordinateSystem("graphView",{dimensions:Dd.dimensions,create:J2e}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},br),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},br),e.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(t,n,r){n.eachComponent({mainType:"series",query:t},function(a){var o=r.getViewOfSeriesModel(a);o&&(t.dx!=null&&t.dy!=null&&o.updateViewOnPan(a,r,t),t.zoom!=null&&t.originX!=null&&t.originY!=null&&o.updateViewOnZoom(a,r,t));var i=a.coordinateSystem,s=r4(i,t,a.get("scaleLimit"));a.setCenter&&a.setCenter(s.center),a.setZoom&&a.setZoom(s.zoom)})})}var dbe=function(e){ye(t,e);function t(n,r,a){var o=e.call(this)||this;Vt(o).dataType="node",o.z2=2;var i=new _n;return o.setTextContent(i),o.updateData(n,r,a,!0),o}return t.prototype.updateData=function(n,r,a,o){var i=this,s=n.graph.getNodeByIndex(r),l=n.hostModel,u=s.getModel(),c=u.getModel("emphasis"),f=n.getItemLayout(r),d=Pe(Ss(u.getModel("itemStyle"),f,!0),f),v=this;if(isNaN(d.startAngle)){v.setShape(d);return}o?v.setShape(d):Sn(v,{shape:d},l,r);var h=Pe(Ss(u.getModel("itemStyle"),f,!0),f);i.setShape(h),i.useStyle(n.getItemVisual(r,"style")),Br(i,u),this._updateLabel(l,u,s),n.setItemGraphicEl(r,v),Br(v,u,"itemStyle");var p=c.get("focus");Jn(this,p==="adjacency"?s.getAdjacentDataIndices():p,c.get("blurScope"),c.get("disabled"))},t.prototype._updateLabel=function(n,r,a){var o=this.getTextContent(),i=a.getLayout(),s=(i.startAngle+i.endAngle)/2,l=Math.cos(s),u=Math.sin(s),c=r.getModel("label");o.ignore=!c.get("show");var f=Vr(r),d=a.getVisual("style");Kr(o,f,{labelFetcher:{getFormattedLabel:function(y,b,w,S,x,C){return n.getFormattedLabel(y,b,"node",S,Mo(x,f.normal&&f.normal.get("formatter"),r.get("name")),C)}},labelDataIndex:a.dataIndex,defaultText:a.dataIndex+"",inheritColor:d.fill,defaultOpacity:d.opacity,defaultOutsidePosition:"startArc"});var v=c.get("position")||"outside",h=c.get("distance")||0,p;v==="outside"?p=i.r+h:p=(i.r+i.r0)/2,this.textConfig={inside:v!=="outside"};var g=v!=="outside"?c.get("align")||"center":l>0?"left":"right",m=v!=="outside"?c.get("verticalAlign")||"middle":u>0?"top":"bottom";o.attr({x:l*p+i.cx,y:u*p+i.cy,rotation:0,style:{align:g,verticalAlign:m}})},t}(ja);const zR=dbe;var vbe=function(e){ye(t,e);function t(n,r,a,o){var i=e.call(this)||this;return Vt(i).dataType="edge",i.updateData(n,r,a,o,!0),i}return t.prototype.buildPath=function(n,r){n.moveTo(r.s1[0],r.s1[1]);var a=.7,o=r.clockwise;n.arc(r.cx,r.cy,r.r,r.sStartAngle,r.sEndAngle,!o),n.bezierCurveTo((r.cx-r.s2[0])*a+r.s2[0],(r.cy-r.s2[1])*a+r.s2[1],(r.cx-r.t1[0])*a+r.t1[0],(r.cy-r.t1[1])*a+r.t1[1],r.t1[0],r.t1[1]),n.arc(r.cx,r.cy,r.r,r.tStartAngle,r.tEndAngle,!o),n.bezierCurveTo((r.cx-r.t2[0])*a+r.t2[0],(r.cy-r.t2[1])*a+r.t2[1],(r.cx-r.s1[0])*a+r.s1[0],(r.cy-r.s1[1])*a+r.s1[1],r.s1[0],r.s1[1]),n.closePath()},t.prototype.updateData=function(n,r,a,o,i){var s=n.hostModel,l=r.graph.getEdgeByIndex(a),u=l.getLayout(),c=l.node1.getModel(),f=r.getItemModel(l.dataIndex),d=f.getModel("lineStyle"),v=f.getModel("emphasis"),h=v.get("focus"),p=Pe(Ss(c.getModel("itemStyle"),u,!0),u),g=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){g.setShape(p);return}i?(g.setShape(p),FR(g,l,n,d)):(oi(g),FR(g,l,n,d),Sn(g,{shape:p},s,a)),Jn(this,h==="adjacency"?l.getAdjacentDataIndices():h,v.get("blurScope"),v.get("disabled")),Br(g,f,"lineStyle"),r.setItemGraphicEl(l.dataIndex,g)},t}(ln);function FR(e,t,n,r){var a=t.node1,o=t.node2,i=e.style;e.setStyle(r.getLineStyle());var s=r.get("color");switch(s){case"source":i.fill=n.getItemVisual(a.dataIndex,"style").fill,i.decal=a.getVisual("style").decal;break;case"target":i.fill=n.getItemVisual(o.dataIndex,"style").fill,i.decal=o.getVisual("style").decal;break;case"gradient":var l=n.getItemVisual(a.dataIndex,"style").fill,u=n.getItemVisual(o.dataIndex,"style").fill;if(st(l)&&st(u)){var c=e.shape,f=(c.s1[0]+c.s2[0])/2,d=(c.s1[1]+c.s2[1])/2,v=(c.t1[0]+c.t2[0])/2,h=(c.t1[1]+c.t2[1])/2;i.fill=new Jh(f,d,v,h,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var hbe=Math.PI/180,pbe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){},t.prototype.render=function(n,r,a){var o=n.getData(),i=this._data,s=this.group,l=-n.get("startAngle")*hbe;if(o.diff(i).add(function(c){var f=o.getItemLayout(c);if(f){var d=new zR(o,c,l);Vt(d).dataIndex=c,s.add(d)}}).update(function(c,f){var d=i.getItemGraphicEl(f),v=o.getItemLayout(c);if(!v){d&&Ll(d,n,f);return}d?d.updateData(o,c,l):d=new zR(o,c,l),s.add(d)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&Ll(f,n,c)}).execute(),!i){var u=n.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=at(u[0],a.getWidth()),this.group.originY=at(u[1],a.getHeight()),Xn(this.group,{scaleX:1,scaleY:1},n)}this._data=o,this.renderEdges(n,l)},t.prototype.renderEdges=function(n,r){var a=n.getData(),o=n.getEdgeData(),i=this._edgeData,s=this.group;o.diff(i).add(function(l){var u=new vbe(a,o,l,r);Vt(u).dataIndex=l,s.add(u)}).update(function(l,u){var c=i.getItemGraphicEl(u);c.updateData(a,o,l,r),s.add(c)}).remove(function(l){var u=i.getItemGraphicEl(l);u&&Ll(u,n,l)}).execute(),this._edgeData=o},t.prototype.dispose=function(){},t.type="chord",t}(Fn);const gbe=pbe;var mbe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.fillDataTextStyle(n.edges||n.links),this.legendVisualProvider=new up(lt(this.getData,this),lt(this.getRawData,this))},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(n.edges||n.links)},t.prototype.getInitialData=function(n,r){var a=n.edges||n.links||[],o=n.data||n.nodes||[];if(o&&a){var i=pM(o,a,this,!0,s);return i.data}function s(l,u){var c=Tn.prototype.getModel;function f(v,h){var p=c.call(this,v,h);return p.resolveParentPath=d,p}u.wrapMethod("getItemModel",function(v){return v.resolveParentPath=d,v.getModel=f,v});function d(v){if(v&&(v[0]==="label"||v[1]==="label")){var h=v.slice();return v[0]==="label"?h[0]="edgeLabel":v[1]==="label"&&(h[1]="edgeLabel"),h}return v}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(n,r,a){var o=this.getDataParams(n,a);if(a==="edge"){var i=this.getData(),s=i.graph.getEdgeByIndex(n),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Mr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}return Mr("nameValue",{name:o.name,value:o.value,noValue:o.value==null})},t.prototype.getDataParams=function(n,r){var a=e.prototype.getDataParams.call(this,n,r);if(r==="node"){var o=this.getData(),i=this.getGraph().getNodeByIndex(n);if(a.name==null&&(a.name=o.getName(n)),a.value==null){var s=i.getLayout().value;a.value=s}}return a},t.type="series.chord",t.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},t}(er);const ybe=mbe;var q6=Math.PI/180;function bbe(e,t){e.eachSeriesByType("chord",function(n){_be(n,t)})}function _be(e,t){var n=e.getData(),r=n.graph,a=e.getEdgeData(),o=a.count();if(o){var i=mG(e,t),s=i.cx,l=i.cy,u=i.r,c=i.r0,f=Math.max((e.get("padAngle")||0)*q6,0),d=Math.max((e.get("minAngle")||0)*q6,0),v=-e.get("startAngle")*q6,h=v+Math.PI*2,p=e.get("clockwise"),g=p?1:-1,m=[v,h];Ow(m,!p);var y=m[0],b=m[1],w=b-y,S=n.getSum("value")===0&&a.getSum("value")===0,x=[],C=0;r.eachEdge(function(L){var V=S?1:L.getValue("value");S&&(V>0||d)&&(C+=2);var B=L.node1.dataIndex,F=L.node2.dataIndex;x[B]=(x[B]||0)+V,x[F]=(x[F]||0)+V});var T=0;if(r.eachNode(function(L){var V=L.getValue("value");isNaN(V)||(x[L.dataIndex]=Math.max(V,x[L.dataIndex]||0)),!S&&(x[L.dataIndex]>0||d)&&C++,T+=x[L.dataIndex]||0}),!(C===0||T===0)){f*C>=Math.abs(w)&&(f=Math.max(0,(Math.abs(w)-d*C)/C)),(f+d)*C>=Math.abs(w)&&(d=(Math.abs(w)-f*C)/C);var M=(w-f*C*g)/T,k=0,E=0,A=0;r.eachNode(function(L){var V=x[L.dataIndex]||0,B=M*(T?V:1)*g;Math.abs(B)<d?k+=d-Math.abs(B):(E+=Math.abs(B)-d,A+=Math.abs(B)),L.setLayout({angle:B,value:V})});var I=!1;if(k>E){var O=k/E;r.eachNode(function(L){var V=L.getLayout().angle;Math.abs(V)>=d?L.setLayout({angle:V*O,ratio:O},!0):L.setLayout({angle:d,ratio:d===0?1:V/d},!0)})}else r.eachNode(function(L){if(!I){var V=L.getLayout().angle,B=Math.min(V/A,1),F=B*k;V-F<d&&(I=!0)}});var z=k;r.eachNode(function(L){if(!(z<=0)){var V=L.getLayout().angle;if(V>d&&d>0){var B=I?1:Math.min(V/A,1),F=V-d,U=Math.min(F,Math.min(z,k*B));z-=U,L.setLayout({angle:V-U,ratio:(V-U)/V},!0)}else d>0&&L.setLayout({angle:d,ratio:V===0?1:d/V},!0)}});var $=y,P=[];r.eachNode(function(L){var V=Math.max(L.getLayout().angle,d);L.setLayout({cx:s,cy:l,r0:c,r:u,startAngle:$,endAngle:$+V*g,clockwise:p},!0),P[L.dataIndex]=$,$+=(V+f)*g}),r.eachEdge(function(L){var V=S?1:L.getValue("value"),B=M*(T?V:1)*g,F=L.node1.dataIndex,U=P[F]||0,G=Math.abs((L.node1.getLayout().ratio||1)*B),Y=U+G*g,X=[s+c*Math.cos(U),l+c*Math.sin(U)],te=[s+c*Math.cos(Y),l+c*Math.sin(Y)],oe=L.node2.dataIndex,re=P[oe]||0,ce=Math.abs((L.node2.getLayout().ratio||1)*B),ie=re+ce*g,Z=[s+c*Math.cos(re),l+c*Math.sin(re)],se=[s+c*Math.cos(ie),l+c*Math.sin(ie)];L.setLayout({s1:X,s2:te,sStartAngle:U,sEndAngle:Y,t1:Z,t2:se,tStartAngle:re,tEndAngle:ie,cx:s,cy:l,r:c,value:V,clockwise:p}),P[F]=Y,P[oe]=ie})}}}function wbe(e){e.registerChartView(gbe),e.registerSeriesModel(ybe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,bbe),e.registerProcessor(sp("chord"))}var Sbe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),xbe=function(e){ye(t,e);function t(n){var r=e.call(this,n)||this;return r.type="pointer",r}return t.prototype.getDefaultShape=function(){return new Sbe},t.prototype.buildPath=function(n,r){var a=Math.cos,o=Math.sin,i=r.r,s=r.width,l=r.angle,u=r.x-a(l)*s*(s>=i/3?1:2),c=r.y-o(l)*s*(s>=i/3?1:2);l=r.angle-Math.PI/2,n.moveTo(u,c),n.lineTo(r.x+a(l)*s,r.y+o(l)*s),n.lineTo(r.x+a(r.angle)*i,r.y+o(r.angle)*i),n.lineTo(r.x-a(l)*s,r.y-o(l)*s),n.lineTo(u,c)},t}(ln);const Cbe=xbe;function Tbe(e,t){var n=e.get("center"),r=t.getWidth(),a=t.getHeight(),o=Math.min(r,a),i=at(n[0],t.getWidth()),s=at(n[1],t.getHeight()),l=at(e.get("radius"),o/2);return{cx:i,cy:s,r:l}}function Dy(e,t){var n=e==null?"":e+"";return t&&(st(t)?n=t.replace("{value}",n):kt(t)&&(n=t(e))),n}var kbe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){this.group.removeAll();var o=n.get(["axisLine","lineStyle","color"]),i=Tbe(n,a);this._renderMain(n,r,a,o,i),this._data=n.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(n,r,a,o,i){var s=this.group,l=n.get("clockwise"),u=-n.get("startAngle")/180*Math.PI,c=-n.get("endAngle")/180*Math.PI,f=n.getModel("axisLine"),d=f.get("roundCap"),v=d?o_:ja,h=f.get("show"),p=f.getModel("lineStyle"),g=p.get("width"),m=[u,c];Ow(m,!l),u=m[0],c=m[1];for(var y=c-u,b=u,w=[],S=0;h&&S<o.length;S++){var x=Math.min(Math.max(o[S][0],0),1);c=u+y*x;var C=new v({shape:{startAngle:b,endAngle:c,cx:i.cx,cy:i.cy,clockwise:l,r0:i.r-g,r:i.r},silent:!0});C.setStyle({fill:o[S][1]}),C.setStyle(p.getLineStyle(["color","width"])),w.push(C),b=c}w.reverse(),j(w,function(M){return s.add(M)});var T=function(M){if(M<=0)return o[0][1];var k;for(k=0;k<o.length;k++)if(o[k][0]>=M&&(k===0?0:o[k-1][0])<M)return o[k][1];return o[k-1][1]};this._renderTicks(n,r,a,T,i,u,c,l,g),this._renderTitleAndDetail(n,r,a,T,i),this._renderAnchor(n,i),this._renderPointer(n,r,a,T,i,u,c,l,g)},t.prototype._renderTicks=function(n,r,a,o,i,s,l,u,c){for(var f=this.group,d=i.cx,v=i.cy,h=i.r,p=+n.get("min"),g=+n.get("max"),m=n.getModel("splitLine"),y=n.getModel("axisTick"),b=n.getModel("axisLabel"),w=n.get("splitNumber"),S=y.get("splitNumber"),x=at(m.get("length"),h),C=at(y.get("length"),h),T=s,M=(l-s)/w,k=M/S,E=m.getModel("lineStyle").getLineStyle(),A=y.getModel("lineStyle").getLineStyle(),I=m.get("distance"),O,z,$=0;$<=w;$++){if(O=Math.cos(T),z=Math.sin(T),m.get("show")){var P=I?I+c:c,L=new Rr({shape:{x1:O*(h-P)+d,y1:z*(h-P)+v,x2:O*(h-x-P)+d,y2:z*(h-x-P)+v},style:E,silent:!0});E.stroke==="auto"&&L.setStyle({stroke:o($/w)}),f.add(L)}if(b.get("show")){var P=b.get("distance")+I,V=Dy(xr($/w*(g-p)+p),b.get("formatter")),B=o($/w),F=O*(h-x-P)+d,U=z*(h-x-P)+v,G=b.get("rotate"),Y=0;G==="radial"?(Y=-T+2*Math.PI,Y>Math.PI/2&&(Y+=Math.PI)):G==="tangential"?Y=-T-Math.PI/2:gn(G)&&(Y=G*Math.PI/180),Y===0?f.add(new _n({style:zn(b,{text:V,x:F,y:U,verticalAlign:z<-.8?"top":z>.8?"bottom":"middle",align:O<-.4?"left":O>.4?"right":"center"},{inheritColor:B}),silent:!0})):f.add(new _n({style:zn(b,{text:V,x:F,y:U,verticalAlign:"middle",align:"center"},{inheritColor:B}),silent:!0,originX:F,originY:U,rotation:Y}))}if(y.get("show")&&$!==w){var P=y.get("distance");P=P?P+c:c;for(var X=0;X<=S;X++){O=Math.cos(T),z=Math.sin(T);var te=new Rr({shape:{x1:O*(h-P)+d,y1:z*(h-P)+v,x2:O*(h-C-P)+d,y2:z*(h-C-P)+v},silent:!0,style:A});A.stroke==="auto"&&te.setStyle({stroke:o(($+X/S)/w)}),f.add(te),T+=k}T-=k}else T+=M}},t.prototype._renderPointer=function(n,r,a,o,i,s,l,u,c){var f=this.group,d=this._data,v=this._progressEls,h=[],p=n.get(["pointer","show"]),g=n.getModel("progress"),m=g.get("show"),y=n.getData(),b=y.mapDimension("value"),w=+n.get("min"),S=+n.get("max"),x=[w,S],C=[s,l];function T(k,E){var A=y.getItemModel(k),I=A.getModel("pointer"),O=at(I.get("width"),i.r),z=at(I.get("length"),i.r),$=n.get(["pointer","icon"]),P=I.get("offsetCenter"),L=at(P[0],i.r),V=at(P[1],i.r),B=I.get("keepAspect"),F;return $?F=Ar($,L-O/2,V-z,O,z,null,B):F=new Cbe({shape:{angle:-Math.PI/2,width:O,r:z,x:L,y:V}}),F.rotation=-(E+Math.PI/2),F.x=i.cx,F.y=i.cy,F}function M(k,E){var A=g.get("roundCap"),I=A?o_:ja,O=g.get("overlap"),z=O?g.get("width"):c/y.count(),$=O?i.r-z:i.r-(k+1)*z,P=O?i.r:i.r-k*z,L=new I({shape:{startAngle:s,endAngle:E,cx:i.cx,cy:i.cy,clockwise:u,r0:$,r:P}});return O&&(L.z2=En(y.get(b,k),[w,S],[100,0],!0)),L}(m||p)&&(y.diff(d).add(function(k){var E=y.get(b,k);if(p){var A=T(k,s);Xn(A,{rotation:-((isNaN(+E)?C[0]:En(E,x,C,!0))+Math.PI/2)},n),f.add(A),y.setItemGraphicEl(k,A)}if(m){var I=M(k,s),O=g.get("clip");Xn(I,{shape:{endAngle:En(E,x,C,O)}},n),f.add(I),dx(n.seriesIndex,y.dataType,k,I),h[k]=I}}).update(function(k,E){var A=y.get(b,k);if(p){var I=d.getItemGraphicEl(E),O=I?I.rotation:s,z=T(k,O);z.rotation=O,Sn(z,{rotation:-((isNaN(+A)?C[0]:En(A,x,C,!0))+Math.PI/2)},n),f.add(z),y.setItemGraphicEl(k,z)}if(m){var $=v[E],P=$?$.shape.endAngle:s,L=M(k,P),V=g.get("clip");Sn(L,{shape:{endAngle:En(A,x,C,V)}},n),f.add(L),dx(n.seriesIndex,y.dataType,k,L),h[k]=L}}).execute(),y.each(function(k){var E=y.getItemModel(k),A=E.getModel("emphasis"),I=A.get("focus"),O=A.get("blurScope"),z=A.get("disabled");if(p){var $=y.getItemGraphicEl(k),P=y.getItemVisual(k,"style"),L=P.fill;if($ instanceof da){var V=$.style;$.useStyle(Pe({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},P))}else $.useStyle(P),$.type!=="pointer"&&$.setColor(L);$.setStyle(E.getModel(["pointer","itemStyle"]).getItemStyle()),$.style.fill==="auto"&&$.setStyle("fill",o(En(y.get(b,k),x,[0,1],!0))),$.z2EmphasisLift=0,Br($,E),Jn($,I,O,z)}if(m){var B=h[k];B.useStyle(y.getItemVisual(k,"style")),B.setStyle(E.getModel(["progress","itemStyle"]).getItemStyle()),B.z2EmphasisLift=0,Br(B,E),Jn(B,I,O,z)}}),this._progressEls=h)},t.prototype._renderAnchor=function(n,r){var a=n.getModel("anchor"),o=a.get("show");if(o){var i=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=Ar(s,r.cx-i/2+at(l[0],r.r),r.cy-i/2+at(l[1],r.r),i,i,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(n,r,a,o,i){var s=this,l=n.getData(),u=l.mapDimension("value"),c=+n.get("min"),f=+n.get("max"),d=new At,v=[],h=[],p=n.isAnimationEnabled(),g=n.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){v[m]=new _n({silent:!0}),h[m]=new _n({silent:!0})}).update(function(m,y){v[m]=s._titleEls[y],h[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),b=l.get(u,m),w=new At,S=o(En(b,[c,f],[0,1],!0)),x=y.getModel("title");if(x.get("show")){var C=x.get("offsetCenter"),T=i.cx+at(C[0],i.r),M=i.cy+at(C[1],i.r),k=v[m];k.attr({z2:g?0:2,style:zn(x,{x:T,y:M,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:S})}),w.add(k)}var E=y.getModel("detail");if(E.get("show")){var A=E.get("offsetCenter"),I=i.cx+at(A[0],i.r),O=i.cy+at(A[1],i.r),z=at(E.get("width"),i.r),$=at(E.get("height"),i.r),P=n.get(["progress","show"])?l.getItemVisual(m,"style").fill:S,k=h[m],L=E.get("formatter");k.attr({z2:g?0:2,style:zn(E,{x:I,y:O,text:Dy(b,L),width:isNaN(z)?null:z,height:isNaN($)?null:$,align:"center",verticalAlign:"middle"},{inheritColor:P})}),XW(k,{normal:E},b,function(B){return Dy(B,L)}),p&&ZW(k,m,l,n,{getFormattedLabel:function(B,F,U,G,Y,X){return Dy(X?X.interpolatedValue:b,L)}}),w.add(k)}d.add(w)}),this.group.add(d),this._titleEls=v,this._detailEls=h},t.type="gauge",t}(Fn);const Mbe=kbe;var Abe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return t.prototype.getInitialData=function(n,r){return lp(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,Se.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:Se.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:Se.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:Se.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:Se.color.neutral00,borderWidth:0,borderColor:Se.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:Se.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:Se.color.transparent,borderWidth:0,borderColor:Se.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:Se.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(er);const Ebe=Abe;function Ibe(e){e.registerChartView(Mbe),e.registerSeriesModel(Ebe)}var Lbe=["itemStyle","opacity"],Dbe=function(e){ye(t,e);function t(n,r){var a=e.call(this)||this,o=a,i=new La,s=new _n;return o.setTextContent(s),a.setTextGuideLine(i),a.updateData(n,r,!0),a}return t.prototype.updateData=function(n,r,a){var o=this,i=n.hostModel,s=n.getItemModel(r),l=n.getItemLayout(r),u=s.getModel("emphasis"),c=s.get(Lbe);c=c??1,a||oi(o),o.useStyle(n.getItemVisual(r,"style")),o.style.lineJoin="round",a?(o.setShape({points:l.points}),o.style.opacity=0,Xn(o,{style:{opacity:c}},i,r)):Sn(o,{style:{opacity:c},shape:{points:l.points}},i,r),Br(o,s),this._updateLabel(n,r),Jn(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(n,r){var a=this,o=this.getTextGuideLine(),i=a.getTextContent(),s=n.hostModel,l=n.getItemModel(r),u=n.getItemLayout(r),c=u.label,f=n.getItemVisual(r,"style"),d=f.fill;Kr(i,Vr(l),{labelFetcher:n.hostModel,labelDataIndex:r,defaultOpacity:f.opacity,defaultText:n.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}});var v=l.getModel("label"),h=v.get("color"),p=h==="inherit"?d:null;a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:p,outsideFill:p});var g=c.linePoints;o.setShape({points:g}),a.textGuideLineConfig={anchor:g?new Dt(g[0][0],g[0][1]):null},Sn(i,{style:{x:c.x,y:c.y}},s,r),i.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),Hk(a,Wk(l),{stroke:d})},t}(Ya),Pbe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return t.prototype.render=function(n,r,a){var o=n.getData(),i=this._data,s=this.group;o.diff(i).add(function(l){var u=new Dbe(o,l);o.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=i.getItemGraphicEl(u);c.updateData(o,l),s.add(c),o.setItemGraphicEl(l,c)}).remove(function(l){var u=i.getItemGraphicEl(l);Ll(u,n,l)}).execute(),this._data=o},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Fn);const Rbe=Pbe;var Obe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new up(lt(this.getData,this),lt(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.getInitialData=function(n,r){return lp(this,{coordDimensions:["value"],encodeDefaulter:Yt(_k,this)})},t.prototype._defaultLabelLine=function(n){td(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.emphasis.label.show},t.prototype.getDataParams=function(n){var r=this.getData(),a=e.prototype.getDataParams.call(this,n),o=r.mapDimension("value"),i=r.getSum(o);return a.percent=i?+(r.get(o,n)/i*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series.funnel",t.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:Se.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:Se.color.primary}}},t}(er);const Nbe=Obe;function Bbe(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,function(l){return l}),a=[],o=t==="ascending",i=0,s=e.count();i<s;i++)a[i]=i;return kt(t)?a.sort(t):t!=="none"&&a.sort(function(l,u){return o?r[l]-r[u]:r[u]-r[l]}),a}function Vbe(e){var t=e.hostModel,n=t.get("orient");e.each(function(r){var a=e.getItemModel(r),o=a.getModel("label"),i=o.get("position"),s=a.getModel("labelLine"),l=e.getItemLayout(r),u=l.points,c=i==="inner"||i==="inside"||i==="center"||i==="insideLeft"||i==="insideRight",f,d,v,h;if(c)i==="insideLeft"?(d=(u[0][0]+u[3][0])/2+5,v=(u[0][1]+u[3][1])/2,f="left"):i==="insideRight"?(d=(u[1][0]+u[2][0])/2-5,v=(u[1][1]+u[2][1])/2,f="right"):(d=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,v=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),h=[[d,v],[d,v]];else{var p=void 0,g=void 0,m=void 0,y=void 0,b=s.get("length");i==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=p-b,d=m-5,f="right"):i==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=p+b,d=m+5,f="left"):i==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=g-b,v=y-5,f="center"):i==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=g+b,v=y+5,f="center"):i==="rightTop"?(p=n==="horizontal"?u[3][0]:u[1][0],g=n==="horizontal"?u[3][1]:u[1][1],n==="horizontal"?(y=g-b,v=y-5,f="center"):(m=p+b,d=m+5,f="top")):i==="rightBottom"?(p=u[2][0],g=u[2][1],n==="horizontal"?(y=g+b,v=y+5,f="center"):(m=p+b,d=m+5,f="bottom")):i==="leftTop"?(p=u[0][0],g=n==="horizontal"?u[0][1]:u[1][1],n==="horizontal"?(y=g-b,v=y-5,f="center"):(m=p-b,d=m-5,f="right")):i==="leftBottom"?(p=n==="horizontal"?u[1][0]:u[3][0],g=n==="horizontal"?u[1][1]:u[2][1],n==="horizontal"?(y=g+b,v=y+5,f="center"):(m=p-b,d=m-5,f="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,n==="horizontal"?(y=g+b,v=y+5,f="center"):(m=p+b,d=m+5,f="left")),n==="horizontal"?(m=p,d=m):(y=g,v=y),h=[[p,g],[m,y]]}l.label={linePoints:h,x:d,y:v,verticalAlign:"middle",textAlign:f,inside:c}})}function $be(e,t){e.eachSeriesByType("funnel",function(n){var r=n.getData(),a=r.mapDimension("value"),o=n.get("sort"),i=$r(n,t),s=Qn(n.getBoxLayoutParams(),i.refContainer),l=n.get("orient"),u=s.width,c=s.height,f=Bbe(r,o),d=s.x,v=s.y,h=l==="horizontal"?[at(n.get("minSize"),c),at(n.get("maxSize"),c)]:[at(n.get("minSize"),u),at(n.get("maxSize"),u)],p=r.getDataExtent(a),g=n.get("min"),m=n.get("max");g==null&&(g=Math.min(p[0],0)),m==null&&(m=p[1]);var y=n.get("funnelAlign"),b=n.get("gap"),w=l==="horizontal"?u:c,S=(w-b*(r.count()-1))/r.count(),x=function(z,$){if(l==="horizontal"){var P=r.get(a,z)||0,L=En(P,[g,m],h,!0),V=void 0;switch(y){case"top":V=v;break;case"center":V=v+(c-L)/2;break;case"bottom":V=v+(c-L);break}return[[$,V],[$,V+L]]}var B=r.get(a,z)||0,F=En(B,[g,m],h,!0),U;switch(y){case"left":U=d;break;case"center":U=d+(u-F)/2;break;case"right":U=d+u-F;break}return[[U,$],[U+F,$]]};o==="ascending"&&(S=-S,b=-b,l==="horizontal"?d+=u:v+=c,f=f.reverse());for(var C=0;C<f.length;C++){var T=f[C],M=f[C+1],k=r.getItemModel(T);if(l==="horizontal"){var E=k.get(["itemStyle","width"]);E==null?E=S:(E=at(E,u),o==="ascending"&&(E=-E));var A=x(T,d),I=x(M,d+E);d+=E+b,r.setItemLayout(T,{points:A.concat(I.slice().reverse())})}else{var O=k.get(["itemStyle","height"]);O==null?O=S:(O=at(O,c),o==="ascending"&&(O=-O));var A=x(T,v),I=x(M,v+O);v+=O+b,r.setItemLayout(T,{points:A.concat(I.slice().reverse())})}}Vbe(r)})}function zbe(e){e.registerChartView(Rbe),e.registerSeriesModel(Nbe),e.registerLayout($be),e.registerProcessor(sp("funnel"))}var Fbe=.3,Hbe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new At,n._initialized=!1,n}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(n,r,a,o){this._progressiveEls=null;var i=this._dataGroup,s=n.getData(),l=this._data,u=n.coordinateSystem,c=u.dimensions,f=WR(n);s.diff(l).add(d).update(v).remove(h).execute();function d(g){var m=HR(s,i,g,c,u);X6(m,s,g,f)}function v(g,m){var y=l.getItemGraphicEl(m),b=eY(s,g,c,u);s.setItemGraphicEl(g,y),Sn(y,{shape:{points:b}},n,g),oi(y),X6(y,s,g,f)}function h(g){var m=l.getItemGraphicEl(g);i.remove(m)}if(!this._initialized){this._initialized=!0;var p=Wbe(u,n,function(){setTimeout(function(){i.removeClipPath()})});i.setClipPath(p)}this._data=s},t.prototype.incrementalPrepareRender=function(n,r,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(n,r,a){for(var o=r.getData(),i=r.coordinateSystem,s=i.dimensions,l=WR(r),u=this._progressiveEls=[],c=n.start;c<n.end;c++){var f=HR(o,this._dataGroup,c,s,i);f.incremental=!0,X6(f,o,c,l),u.push(f)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(Fn);function Wbe(e,t,n){var r=e.model,a=e.getRect(),o=new rn({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),i=r.get("layout")==="horizontal"?"width":"height";return o.setShape(i,0),Xn(o,{shape:{width:a.width,height:a.height}},t,n),o}function eY(e,t,n,r){for(var a=[],o=0;o<n.length;o++){var i=n[o],s=e.get(e.mapDimension(i),t);Gbe(s,r.getAxis(i).type)||a.push(r.dataToPoint(s,i))}return a}function HR(e,t,n,r,a){var o=eY(e,n,r,a),i=new La({shape:{points:o},z2:10});return t.add(i),e.setItemGraphicEl(n,i),i}function WR(e){var t=e.get("smooth",!0);return t===!0&&(t=Fbe),t=$l(t),Ma(t)&&(t=0),{smooth:t}}function X6(e,t,n,r){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",r.smooth);var a=t.getItemModel(n),o=a.getModel("emphasis");Br(e,a,"lineStyle"),Jn(e,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function Gbe(e,t){return t==="category"?e==null:e==null||isNaN(e)}const Ube=Hbe;var Kbe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return t.prototype.getInitialData=function(n,r){return tu(null,this,{useEncodeDefaulter:lt(jbe,null,this)})},t.prototype.getRawIndicesByActiveState=function(n){var r=this.coordinateSystem,a=this.getData(),o=[];return r.eachActiveState(a,function(i,s){n===i&&o.push(a.getRawIndex(s))}),o},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(er);function jbe(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return j(t.dimensions,function(r){var a=Ybe(r);n[r]=a}),n}}function Ybe(e){return+e.replace("dim","")}const qbe=Kbe;var Xbe=["lineStyle","opacity"],Zbe={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,r={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(a,o){n.eachActiveState(o,function(i,s){var l=r[i];if(i==="normal"&&o.hasItemOption){var u=o.getItemModel(s).get(Xbe,!0);u!=null&&(l=u)}var c=o.ensureUniqueItemVisual(s,"style");c.opacity=l},a.start,a.end)}}}};const Jbe=Zbe;function Qbe(e){e_e(e),t_e(e)}function e_e(e){if(!e.parallel){var t=!1;j(e.series,function(n){n&&n.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function t_e(e){var t=Bn(e.parallelAxis);j(t,function(n){if(Rt(n)){var r=n.parallelIndex||0,a=Bn(e.parallel)[r];a&&a.parallelAxisDefault&&Zt(n,a.parallelAxisDefault,!1)}})}var n_e=5,r_e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){this._model=n,this._api=a,this._handlers||(this._handlers={},j(a_e,function(o,i){a.getZr().on(i,this._handlers[i]=lt(o,this))},this)),ap(this,"_throttledDispatchExpand",n.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(n,r){Mg(this,"_throttledDispatchExpand"),j(this._handlers,function(a,o){r.getZr().off(o,a)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(n){this._dispatchExpand(n)},t.prototype._dispatchExpand=function(n){n&&this._api.dispatchAction(Pe({type:"parallelAxisExpand"},n))},t.type="parallel",t}(or),a_e={mousedown:function(e){Z6(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(Z6(this,"click")&&t){var n=[e.offsetX,e.offsetY],r=Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2);if(r>n_e)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!Z6(this,"mousemove"))){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:n.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function Z6(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}const o_e=r_e;var i_e=function(e){ye(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.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(n){var r=this.option;n&&Zt(r,n,!0),this._initDimensions()},t.prototype.contains=function(n,r){var a=n.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(n){j(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){n.hasOwnProperty(r)&&(this.option[r]=n[r])},this)},t.prototype._initDimensions=function(){var n=this.dimensions=[],r=this.parallelAxisIndex=[],a=In(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(o){return(o.get("parallelIndex")||0)===this.componentIndex},this);j(a,function(o){n.push("dim"+o.get("dim")),r.push(o.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(mn);const s_e=i_e;var l_e=function(e){ye(t,e);function t(n,r,a,o,i){var s=e.call(this,n,r,a)||this;return s.type=o||"value",s.axisIndex=i,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Gi);const u_e=l_e;function fc(e,t,n,r,a,o){e=e||0;var i=n[1]-n[0];if(a!=null&&(a=iv(a,[0,i])),o!=null&&(o=Math.max(o,a??0)),r==="all"){var s=Math.abs(t[1]-t[0]);s=iv(s,[0,i]),a=o=iv(s,[a,o]),r=0}t[0]=iv(t[0],n),t[1]=iv(t[1],n);var l=J6(t,r);t[r]+=e;var u=a||0,c=n.slice();l.sign<0?c[0]+=u:c[1]-=u,t[r]=iv(t[r],c);var f;return f=J6(t,r),a!=null&&(f.sign!==l.sign||f.span<a)&&(t[1-r]=t[r]+l.sign*a),f=J6(t,r),o!=null&&f.span>o&&(t[1-r]=t[r]+f.sign*o),t}function J6(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function iv(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var Q6=j,tY=Math.min,nY=Math.max,GR=Math.floor,c_e=Math.ceil,UR=xr,f_e=Math.PI,d_e=function(){function e(t,n,r){this.type="parallel",this._axesMap=pt(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,n,r)}return e.prototype._init=function(t,n,r){var a=t.dimensions,o=t.parallelAxisIndex;Q6(a,function(i,s){var l=o[s],u=n.getComponent("parallelAxis",l),c=this._axesMap.set(i,new u_e(i,Jw(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,n){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var n=this._makeLayoutInfo(),r=n.axisBase,a=n.layoutBase,o=n.pixelDimIndex,i=t[1-o],s=t[o];return i>=r&&i<=r+n.axisLength&&s>=a&&s<=a+n.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,n){n.eachSeries(function(r){if(t.contains(r,n)){var a=r.getData();Q6(this.dimensions,function(o){var i=this._axesMap.get(o);i.scale.unionExtentFromData(a,a.mapDimension(o)),yh(i.scale,i.model)},this)}},this)},e.prototype.resize=function(t,n){var r=$r(t,n).refContainer;this._rect=Qn(t.getBoxLayoutParams(),r),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,n=this._rect,r=["x","y"],a=["width","height"],o=t.get("layout"),i=o==="horizontal"?0:1,s=n[a[i]],l=[0,s],u=this.dimensions.length,c=Py(t.get("axisExpandWidth"),l),f=Py(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,v=t.get("axisExpandWindow"),h;if(v)h=Py(v[1]-v[0],l),v[1]=v[0]+h;else{h=Py(c*(f-1),l);var p=t.get("axisExpandCenter")||GR(u/2);v=[c*p-h/2],v[1]=v[0]+h}var g=(s-h)/(u-f);g<3&&(g=0);var m=[GR(UR(v[0]/c,1))+1,c_e(UR(v[1]/c,1))-1],y=g/c*v[0];return{layout:o,pixelDimIndex:i,layoutBase:n[r[i]],layoutLength:s,axisBase:n[r[1-i]],axisLength:n[a[1-i]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:v,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:y}},e.prototype._layoutAxes=function(){var t=this._rect,n=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),o=a.layout;n.each(function(i){var s=[0,a.axisLength],l=i.inverse?1:0;i.setExtent(s[l],s[1-l])}),Q6(r,function(i,s){var l=(a.axisExpandable?h_e:v_e)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:f_e/2,vertical:0},f=[u[o].x+t.x,u[o].y+t.y],d=c[o],v=Jr();yc(v,v,d),Hs(v,v,f),this._axesLayout[i]={position:f,rotation:d,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,n){return this.axisCoordToPoint(this._axesMap.get(n).dataToCoord(t),n)},e.prototype.eachActiveState=function(t,n,r,a){r==null&&(r=0),a==null&&(a=t.count());var o=this._axesMap,i=this.dimensions,s=[],l=[];j(i,function(g){s.push(t.mapDimension(g)),l.push(o.get(g).model)});for(var u=this.hasAxisBrushed(),c=r;c<a;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var d=t.getValues(s,c),v=0,h=i.length;v<h;v++){var p=l[v].getActiveState(d[v]);if(p==="inactive"){f="inactive";break}}}n(f,c)}},e.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,n=this._axesMap,r=!1,a=0,o=t.length;a<o;a++)n.get(t[a]).model.getActiveState()!=="normal"&&(r=!0);return r},e.prototype.axisCoordToPoint=function(t,n){var r=this._axesLayout[n];return Ci([t,0],r.transform)},e.prototype.getAxisLayout=function(t){return Mt(this._axesLayout[t])},e.prototype.getSlidedAxisExpandWindow=function(t){var n=this._makeLayoutInfo(),r=n.pixelDimIndex,a=n.axisExpandWindow.slice(),o=a[1]-a[0],i=[0,n.axisExpandWidth*(n.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:a};var s=t[r]-n.layoutBase-n.axisExpandWindow0Pos,l,u="slide",c=n.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),d=f[0]!=null;if(c)d&&c&&s<o*f[0]?(u="jump",l=s-o*f[2]):d&&c&&s>o*(1-f[0])?(u="jump",l=s-o*(1-f[2])):(l=s-o*f[1])>=0&&(l=s-o*(1-f[1]))<=0&&(l=0),l*=n.axisExpandWidth/c,l?fc(l,a,i,"all"):u="none";else{var v=a[1]-a[0],h=i[1]*s/v;a=[nY(0,h-v/2)],a[1]=tY(i[1],a[0]+v),a[0]=a[1]-v}return{axisExpandWindow:a,behavior:u}},e}();function Py(e,t){return tY(nY(e,t[0]),t[1])}function v_e(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function h_e(e,t){var n=t.layoutLength,r=t.axisExpandWidth,a=t.axisCount,o=t.axisCollapseWidth,i=t.winInnerIndices,s,l=o,u=!1,c;return e<i[0]?(s=e*o,c=o):e<=i[1]?(s=t.axisExpandWindow0Pos+e*r-t.axisExpandWindow[0],l=r,u=!0):(s=n-(a-1-e)*o,c=o),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}const p_e=d_e;function g_e(e,t){var n=[];return e.eachComponent("parallel",function(r,a){var o=new p_e(r,e,t);o.name="parallel_"+a,o.resize(r,t),r.coordinateSystem=o,o.model=r,n.push(o)}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="parallel"){var a=r.getReferringComponents("parallel",lr).models[0];r.coordinateSystem=a.coordinateSystem}}),n}var m_e={create:g_e};const y_e=m_e;var rY=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return t.prototype.getAreaSelectStyle=function(){return rd([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(n){var r=this.activeIntervals=Mt(n);if(r)for(var a=r.length-1;a>=0;a--)Zo(r[a])},t.prototype.getActiveState=function(n){var r=this.activeIntervals;if(!r.length)return"normal";if(n==null||isNaN(+n))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=n&&n<=a[1])return"active"}else for(var o=0,i=r.length;o<i;o++)if(r[o][0]<=n&&n<=r[o][1])return"active";return"inactive"},t}(mn);Er(rY,$m);const KR=rY;var ld=!0,Fg=Math.min,xh=Math.max,b_e=Math.pow,__e=1e4,w_e=6,S_e=6,jR="globalPan",x_e={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},C_e={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},YR={brushStyle:{lineWidth:2,stroke:Se.color.backgroundTint,fill:Se.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},T_e=0,k_e=function(e){ye(t,e);function t(n){var r=e.call(this)||this;return r._track=[],r._covers=[],r._handlers={},r._zr=n,r.group=new At,r._uid="brushController_"+T_e++,j(P_e,function(a,o){this._handlers[o]=lt(a,this)},r),r}return t.prototype.enableBrush=function(n){return this._brushType&&this._doDisableBrush(),n.brushType&&this._doEnableBrush(n),this},t.prototype._doEnableBrush=function(n){var r=this._zr;this._enableGlobalPan||k1e(r,jR,this._uid),j(this._handlers,function(a,o){r.on(o,a)}),this._brushType=n.brushType,this._brushOption=Zt(Mt(YR),n,!0)},t.prototype._doDisableBrush=function(){var n=this._zr;M1e(n,jR,this._uid),j(this._handlers,function(r,a){n.off(a,r)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(n){if(n&&n.length){var r=this._panels={};j(n,function(a){r[a.panelId]=Mt(a)})}else this._panels=null;return this},t.prototype.mount=function(n){n=n||{},this._enableGlobalPan=n.enableGlobalPan;var r=this.group;return this._zr.add(r),r.attr({x:n.x||0,y:n.y||0,rotation:n.rotation||0,scaleX:n.scaleX||1,scaleY:n.scaleY||1}),this._transform=r.getLocalTransform(),this},t.prototype.updateCovers=function(n){n=$e(n,function(d){return Zt(Mt(YR),d,!0)});var r="\0-brush-index-",a=this._covers,o=this._covers=[],i=this,s=this._creatingCover;return new Hl(a,n,u,l).add(c).update(c).remove(f).execute(),this;function l(d,v){return(d.id!=null?d.id:r+v)+"-"+d.brushType}function u(d,v){return l(d.__brushOption,v)}function c(d,v){var h=n[d];if(v!=null&&a[v]===s)o[d]=a[v];else{var p=o[d]=v!=null?(a[v].__brushOption=h,a[v]):oY(i,aY(i,h));gM(i,p)}}function f(d){a[d]!==s&&i.group.remove(a[d])}},t.prototype.unmount=function(){return this.enableBrush(!1),yC(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(ci);function aY(e,t){var n=s4[t.brushType].createCover(e,t);return n.__brushOption=t,sY(n,t),e.group.add(n),n}function oY(e,t){var n=mM(t);return n.endCreating&&(n.endCreating(e,t),sY(t,t.__brushOption)),t}function iY(e,t){var n=t.__brushOption;mM(t).updateCoverShape(e,t,n.range,n)}function sY(e,t){var n=t.z;n==null&&(n=__e),e.traverse(function(r){r.z=n,r.z2=n})}function gM(e,t){mM(t).updateCommon(e,t),iY(e,t)}function mM(e){return s4[e.__brushOption.brushType]}function yM(e,t,n){var r=e._panels;if(!r)return ld;var a,o=e._transform;return j(r,function(i){i.isTargetByCursor(t,n,o)&&(a=i)}),a}function lY(e,t){var n=e._panels;if(!n)return ld;var r=t.__brushOption.panelId;return r!=null?n[r]:ld}function yC(e){var t=e._covers,n=t.length;return j(t,function(r){e.group.remove(r)},e),t.length=0,!!n}function ud(e,t){var n=$e(e._covers,function(r){var a=r.__brushOption,o=Mt(a.range);return{brushType:a.brushType,panelId:a.panelId,range:o}});e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function M_e(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],a=n[0]-r[0],o=n[1]-r[1],i=b_e(a*a+o*o,.5);return i>w_e}function uY(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function cY(e,t,n,r){var a=new At;return a.add(new rn({name:"main",style:bM(n),silent:!0,draggable:!0,cursor:"move",drift:Yt(qR,e,t,a,["n","s","w","e"]),ondragend:Yt(ud,t,{isEnd:!0})})),j(r,function(o){a.add(new rn({name:o.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Yt(qR,e,t,a,o),ondragend:Yt(ud,t,{isEnd:!0})}))}),a}function fY(e,t,n,r){var a=r.brushStyle.lineWidth||0,o=xh(a,S_e),i=n[0][0],s=n[1][0],l=i-a/2,u=s-a/2,c=n[0][1],f=n[1][1],d=c-o+a/2,v=f-o+a/2,h=c-i,p=f-s,g=h+a,m=p+a;vl(e,t,"main",i,s,h,p),r.transformable&&(vl(e,t,"w",l,u,o,m),vl(e,t,"e",d,u,o,m),vl(e,t,"n",l,u,g,o),vl(e,t,"s",l,v,g,o),vl(e,t,"nw",l,u,o,o),vl(e,t,"ne",d,u,o,o),vl(e,t,"sw",l,v,o,o),vl(e,t,"se",d,v,o,o))}function bC(e,t){var n=t.__brushOption,r=n.transformable,a=t.childAt(0);a.useStyle(bM(n)),a.attr({silent:!r,cursor:r?"move":"default"}),j([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(o){var i=t.childOfName(o.join("")),s=o.length===1?_C(e,o[0]):E_e(e,o);i&&i.attr({silent:!r,invisible:!r,cursor:r?C_e[s]+"-resize":null})})}function vl(e,t,n,r,a,o,i){var s=t.childOfName(n);s&&s.setShape(L_e(_M(e,t,[[r,a],[r+o,a+i]])))}function bM(e){return Pt({strokeNoScale:!0},e.brushStyle)}function dY(e,t,n,r){var a=[Fg(e,n),Fg(t,r)],o=[xh(e,n),xh(t,r)];return[[a[0],o[0]],[a[1],o[1]]]}function A_e(e){return Wf(e.group)}function _C(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=Hw(n[t],A_e(e));return r[a]}function E_e(e,t){var n=[_C(e,t[0]),_C(e,t[1])];return(n[0]==="e"||n[0]==="w")&&n.reverse(),n.join("")}function qR(e,t,n,r,a,o){var i=n.__brushOption,s=e.toRectRange(i.range),l=vY(t,a,o);j(r,function(u){var c=x_e[u];s[c[0]][c[1]]+=l[c[0]]}),i.range=e.fromRectRange(dY(s[0][0],s[1][0],s[0][1],s[1][1])),gM(t,n),ud(t,{isEnd:!1})}function I_e(e,t,n,r){var a=t.__brushOption.range,o=vY(e,n,r);j(a,function(i){i[0]+=o[0],i[1]+=o[1]}),gM(e,t),ud(e,{isEnd:!1})}function vY(e,t,n){var r=e.group,a=r.transformCoordToLocal(t,n),o=r.transformCoordToLocal(0,0);return[a[0]-o[0],a[1]-o[1]]}function _M(e,t,n){var r=lY(e,t);return r&&r!==ld?r.clipPath(n,e._transform):Mt(n)}function L_e(e){var t=Fg(e[0][0],e[1][0]),n=Fg(e[0][1],e[1][1]),r=xh(e[0][0],e[1][0]),a=xh(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:a-n}}function D_e(e,t,n){if(!(!e._brushType||R_e(e,t.offsetX,t.offsetY))){var r=e._zr,a=e._covers,o=yM(e,t,n);if(!e._dragging)for(var i=0;i<a.length;i++){var s=a[i].__brushOption;if(o&&(o===ld||s.panelId===o.panelId)&&s4[s.brushType].contain(a[i],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}function wC(e){var t=e.event;t.preventDefault&&t.preventDefault()}function SC(e,t,n){return e.childOfName("main").contain(t,n)}function hY(e,t,n,r){var a=e._creatingCover,o=e._creatingPanel,i=e._brushOption,s;if(e._track.push(n.slice()),M_e(e)||a){if(o&&!a){i.brushMode==="single"&&yC(e);var l=Mt(i);l.brushType=XR(l.brushType,o),l.panelId=o===ld?null:o.panelId,a=e._creatingCover=aY(e,l),e._covers.push(a)}if(a){var u=s4[XR(e._brushType,o)],c=a.__brushOption;c.range=u.getCreatingRange(_M(e,a,e._track)),r&&(oY(e,a),u.updateCommon(e,a)),iY(e,a),s={isEnd:r}}}else r&&i.brushMode==="single"&&i.removeOnClick&&yM(e,t,n)&&yC(e)&&(s={isEnd:r,removeOnClick:!0});return s}function XR(e,t){return e==="auto"?t.defaultBrushType:e}var P_e={mousedown:function(e){if(this._dragging)ZR(this,e);else if(!e.target||!e.target.draggable){wC(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=yM(this,e,t);n&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(D_e(this,e,r),this._dragging){wC(e);var a=hY(this,e,r,!1);a&&ud(this,a)}},mouseup:function(e){ZR(this,e)}};function ZR(e,t){if(e._dragging){wC(t);var n=t.offsetX,r=t.offsetY,a=e.group.transformCoordToLocal(n,r),o=hY(e,t,a,!0);e._dragging=!1,e._track=[],e._creatingCover=null,o&&ud(e,o)}}function R_e(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var s4={lineX:JR(0),lineY:JR(1),rect:{createCover:function(e,t){function n(r){return r}return cY({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=uY(e);return dY(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){fY(e,t,n,r)},updateCommon:bC,contain:SC},polygon:{createCover:function(e,t){var n=new At;return n.add(new La({name:"main",style:bM(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Ya({name:"main",draggable:!0,drift:Yt(I_e,e,t),ondragend:Yt(ud,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:_M(e,t,n)})},updateCommon:bC,contain:SC}};function JR(e){return{createCover:function(t,n){return cY({toRectRange:function(r){var a=[r,[0,100]];return e&&a.reverse(),a},fromRectRange:function(r){return r[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=uY(t),r=Fg(n[0][e],n[1][e]),a=xh(n[0][e],n[1][e]);return[r,a]},updateCoverShape:function(t,n,r,a){var o,i=lY(t,n);if(i!==ld&&i.getLinearBrushOtherExtent)o=i.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,o];e&&l.reverse(),fY(t,n,l,a)},updateCommon:bC,contain:SC}}const wM=k_e;function pY(e){return e=SM(e),function(t){return UW(t,e)}}function gY(e,t){return e=SM(e),function(n){var r=t??n,a=r?e.width:e.height,o=r?e.x:e.y;return[o,o+(a||0)]}}function mY(e,t,n){var r=SM(e);return function(a,o){return r.contain(o[0],o[1])&&!_j(a,t,n)}}function SM(e){return Ot.create(e)}var O_e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){e.prototype.init.apply(this,arguments),(this._brushController=new wM(r.getZr())).on("brush",lt(this._onBrush,this))},t.prototype.render=function(n,r,a,o){if(!N_e(n,r,o)){this.axisModel=n,this.api=a,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new At,this.group.add(this._axisGroup),!!n.get("show")){var s=V_e(n,r),l=s.coordinateSystem,u=n.getAreaSelectStyle(),c=u.width,f=n.axis.dim,d=l.getAxisLayout(f),v=Pe({strokeContainThreshold:c},d),h=new Wl(n,a,v);h.build(),this._axisGroup.add(h.group),this._refreshBrushController(v,u,n,s,c,a),Dm(i,this._axisGroup,n)}}},t.prototype._refreshBrushController=function(n,r,a,o,i,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=Ot.create({x:l[0],y:-i/2,width:u,height:i});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:n.rotation,x:n.position[0],y:n.position[1]}).setPanels([{panelId:"pl",clipPath:pY(f),isTargetByCursor:mY(f,s,o),getLinearBrushOtherExtent:gY(f,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(B_e(a))},t.prototype._onBrush=function(n){var r=n.areas,a=this.axisModel,o=a.axis,i=$e(r,function(s){return[o.coordToData(s.range[0],!0),o.coordToData(s.range[1],!0)]});(!a.option.realtime===n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(or);function N_e(e,t,n){return n&&n.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function B_e(e){var t=e.axis;return $e(e.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(n[0],!0),t.dataToCoord(n[1],!0)]}})}function V_e(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const $_e=O_e;var z_e={type:"axisAreaSelect",event:"axisAreaSelected"};function F_e(e){e.registerAction(z_e,function(t,n){n.eachComponent({mainType:"parallelAxis",query:t},function(r){r.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,n){n.eachComponent({mainType:"parallel",query:t},function(r){r.setAxisExpand(t)})})}var H_e={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function yY(e){e.registerComponentView(o_e),e.registerComponentModel(s_e),e.registerCoordinateSystem("parallel",y_e),e.registerPreprocessor(Qbe),e.registerComponentModel(KR),e.registerComponentView($_e),wh(e,"parallel",KR,H_e),F_e(e)}function W_e(e){Qt(yY),e.registerChartView(Ube),e.registerSeriesModel(qbe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Jbe)}var G_e=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),U_e=function(e){ye(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new G_e},t.prototype.buildPath=function(n,r){var a=r.extent;n.moveTo(r.x1,r.y1),n.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(n.lineTo(r.x2+a,r.y2),n.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(n.lineTo(r.x2,r.y2+a),n.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),n.closePath()},t.prototype.highlight=function(){zl(this)},t.prototype.downplay=function(){Fl(this)},t}(ln),K_e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new At,n._focusAdjacencyDisabled=!1,n}return t.prototype.init=function(n,r){this._controller=new Ld(r.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(n,r,a){var o=this,i=n.getGraph(),s=this._mainGroup,l=n.layoutInfo,u=l.width,c=l.height,f=n.getData(),d=n.getData("edge"),v=n.get("orient");this._model=n,s.removeAll(),s.x=l.x,s.y=l.y,this._updateViewCoordSys(n,a),wj(n,a,s,this._controller,this._controllerHost,null),i.eachEdge(function(h){var p=new U_e,g=Vt(p);g.dataIndex=h.dataIndex,g.seriesIndex=n.seriesIndex,g.dataType="edge";var m=h.getModel(),y=m.getModel("lineStyle"),b=y.get("curveness"),w=h.node1.getLayout(),S=h.node1.getModel(),x=S.get("localX"),C=S.get("localY"),T=h.node2.getLayout(),M=h.node2.getModel(),k=M.get("localX"),E=M.get("localY"),A=h.getLayout(),I,O,z,$,P,L,V,B;p.shape.extent=Math.max(1,A.dy),p.shape.orient=v,v==="vertical"?(I=(x!=null?x*u:w.x)+A.sy,O=(C!=null?C*c:w.y)+w.dy,z=(k!=null?k*u:T.x)+A.ty,$=E!=null?E*c:T.y,P=I,L=O*(1-b)+$*b,V=z,B=O*b+$*(1-b)):(I=(x!=null?x*u:w.x)+w.dx,O=(C!=null?C*c:w.y)+A.sy,z=k!=null?k*u:T.x,$=(E!=null?E*c:T.y)+A.ty,P=I*(1-b)+z*b,L=O,V=I*b+z*(1-b),B=$),p.setShape({x1:I,y1:O,x2:z,y2:$,cpx1:P,cpy1:L,cpx2:V,cpy2:B}),p.useStyle(y.getItemStyle()),QR(p.style,v,h);var F=""+m.get("value"),U=Vr(m,"edgeLabel");Kr(p,U,{labelFetcher:{getFormattedLabel:function(X,te,oe,re,ce,ie){return n.getFormattedLabel(X,te,"edge",re,Mo(ce,U.normal&&U.normal.get("formatter"),F),ie)}},labelDataIndex:h.dataIndex,defaultText:F}),p.setTextConfig({position:"inside"});var G=m.getModel("emphasis");Br(p,m,"lineStyle",function(X){var te=X.getItemStyle();return QR(te,v,h),te}),s.add(p),d.setItemGraphicEl(h.dataIndex,p);var Y=G.get("focus");Jn(p,Y==="adjacency"?h.getAdjacentDataIndices():Y==="trajectory"?h.getTrajectoryDataIndices():Y,G.get("blurScope"),G.get("disabled"))}),i.eachNode(function(h){var p=h.getLayout(),g=h.getModel(),m=g.get("localX"),y=g.get("localY"),b=g.getModel("emphasis"),w=g.get(["itemStyle","borderRadius"])||0,S=new rn({shape:{x:m!=null?m*u:p.x,y:y!=null?y*c:p.y,width:p.dx,height:p.dy,r:w},style:g.getModel("itemStyle").getItemStyle(),z2:10});Kr(S,Vr(g),{labelFetcher:{getFormattedLabel:function(C,T){return n.getFormattedLabel(C,T,"node")}},labelDataIndex:h.dataIndex,defaultText:h.id}),S.disableLabelAnimation=!0,S.setStyle("fill",h.getVisual("color")),S.setStyle("decal",h.getVisual("style").decal),Br(S,g),s.add(S),f.setItemGraphicEl(h.dataIndex,S),Vt(S).dataType="node";var x=b.get("focus");Jn(S,x==="adjacency"?h.getAdjacentDataIndices():x==="trajectory"?h.getTrajectoryDataIndices():x,b.get("blurScope"),b.get("disabled"))}),f.eachItemGraphicEl(function(h,p){var g=f.getItemModel(p);g.get("draggable")&&(h.drift=function(m,y){o._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:n.id,dataIndex:f.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/c})},h.ondragend=function(){o._focusAdjacencyDisabled=!1},h.draggable=!0,h.cursor="move")}),!this._data&&n.isAnimationEnabled()&&s.setClipPath(j_e(s.getBoundingRect(),n,function(){s.removeClipPath()})),this._data=n.getData()},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._updateViewCoordSys=function(n,r){var a=n.layoutInfo,o=a.width,i=a.height,s=n.coordinateSystem=new Dd(null,{api:r,ecModel:n.ecModel});s.zoomLimit=n.get("scaleLimit"),s.setBoundingRect(0,0,o,i),s.setCenter(n.get("center")),s.setZoom(n.get("zoom")),this._controllerHost.target.attr({x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY})},t.type="sankey",t}(Fn);function QR(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),a=n.node2.getVisual("color");st(r)&&st(a)&&(e.fill=new Jh(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function j_e(e,t,n){var r=new rn({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Xn(r,{shape:{width:e.width+20}},t,n),r}const Y_e=K_e;var q_e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){var a=n.edges||n.links||[],o=n.data||n.nodes||[],i=n.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<i.length;l++)i[l].depth!=null&&i[l].depth>=0&&(s[i[l].depth]=new Tn(i[l],this,r));var u=pM(o,a,this,!0,c);return u.data;function c(f,d){f.wrapMethod("getItemModel",function(v,h){var p=v.parentModel,g=p.getData().getItemLayout(h);if(g){var m=g.depth,y=p.levelModels[m];y&&(v.parentModel=y)}return v}),d.wrapMethod("getItemModel",function(v,h){var p=v.parentModel,g=p.getGraph().getEdgeByIndex(h),m=g.node1.getLayout();if(m){var y=m.depth,b=p.levelModels[y];b&&(v.parentModel=b)}return v})}},t.prototype.setNodePosition=function(n,r){var a=this.option.data||this.option.nodes,o=a[n];o.localX=r[0],o.localY=r[1]},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(n,r,a){function o(v){return isNaN(v)||v==null}if(a==="edge"){var i=this.getDataParams(n,a),s=i.data,l=i.value,u=s.source+" -- "+s.target;return Mr("nameValue",{name:u,value:l,noValue:o(l)})}else{var c=this.getGraph().getNodeByIndex(n),f=c.getLayout().value,d=this.getDataParams(n,a).data.name;return Mr("nameValue",{name:d!=null?d+"":null,value:f,noValue:o(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(n,r){var a=e.prototype.getDataParams.call(this,n,r);if(a.value==null&&r==="node"){var o=this.getGraph().getNodeByIndex(n),i=o.getLayout().value;a.value=i}return a},t.type="series.sankey",t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:Se.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:Se.color.primary}},animationEasing:"linear",animationDuration:1e3},t}(er);const X_e=q_e;function Z_e(e,t){e.eachSeriesByType("sankey",function(n){var r=n.get("nodeWidth"),a=n.get("nodeGap"),o=$r(n,t).refContainer,i=Qn(n.getBoxLayoutParams(),o);n.layoutInfo=i;var s=i.width,l=i.height,u=n.getGraph(),c=u.nodes,f=u.edges;Q_e(c);var d=In(c,function(g){return g.getLayout().value===0}),v=d.length!==0?0:n.get("layoutIterations"),h=n.get("orient"),p=n.get("nodeAlign");J_e(c,f,r,a,s,l,v,h,p)})}function J_e(e,t,n,r,a,o,i,s,l){ewe(e,t,n,a,o,s,l),awe(e,t,o,a,r,i,s),vwe(e,s)}function Q_e(e){j(e,function(t){var n=Ju(t.outEdges,v_),r=Ju(t.inEdges,v_),a=t.getValue()||0,o=Math.max(n,r,a);t.setLayout({value:o},!0)})}function ewe(e,t,n,r,a,o,i){for(var s=[],l=[],u=[],c=[],f=0,d=0;d<t.length;d++)s[d]=1;for(var d=0;d<e.length;d++)l[d]=e[d].inEdges.length,l[d]===0&&u.push(e[d]);for(var v=-1;u.length;){for(var h=0;h<u.length;h++){var p=u[h],g=p.hostGraph.data.getRawDataItem(p.dataIndex),m=g.depth!=null&&g.depth>=0;m&&g.depth>v&&(v=g.depth),p.setLayout({depth:m?g.depth:f},!0),o==="vertical"?p.setLayout({dy:n},!0):p.setLayout({dx:n},!0);for(var y=0;y<p.outEdges.length;y++){var b=p.outEdges[y],w=t.indexOf(b);s[w]=0;var S=b.node2,x=e.indexOf(S);--l[x]===0&&c.indexOf(S)<0&&c.push(S)}}++f,u=c,c=[]}for(var d=0;d<s.length;d++)if(s[d]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var C=v>f-1?v:f-1;i&&i!=="left"&&twe(e,i,o,C);var T=o==="vertical"?(a-n)/C:(r-n)/C;rwe(e,T,o)}function bY(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function twe(e,t,n,r){if(t==="right"){for(var a=[],o=e,i=0;o.length;){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:i},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];a.indexOf(c.node1)<0&&a.push(c.node1)}}o=a,a=[],++i}j(e,function(f){bY(f)||f.setLayout({depth:Math.max(0,r-f.getLayout().skNodeHeight)},!0)})}else t==="justify"&&nwe(e,r)}function nwe(e,t){j(e,function(n){!bY(n)&&!n.outEdges.length&&n.setLayout({depth:t},!0)})}function rwe(e,t,n){j(e,function(r){var a=r.getLayout().depth*t;n==="vertical"?r.setLayout({y:a},!0):r.setLayout({x:a},!0)})}function awe(e,t,n,r,a,o,i){var s=owe(e,i);iwe(s,t,n,r,a,i),eS(s,a,n,r,i);for(var l=1;o>0;o--)l*=.99,swe(s,l,i),eS(s,a,n,r,i),dwe(s,l,i),eS(s,a,n,r,i)}function owe(e,t){var n=[],r=t==="vertical"?"y":"x",a=sx(e,function(o){return o.getLayout()[r]});return a.keys.sort(function(o,i){return o-i}),j(a.keys,function(o){n.push(a.buckets.get(o))}),n}function iwe(e,t,n,r,a,o){var i=1/0;j(e,function(s){var l=s.length,u=0;j(s,function(f){u+=f.getLayout().value});var c=o==="vertical"?(r-(l-1)*a)/u:(n-(l-1)*a)/u;c<i&&(i=c)}),j(e,function(s){j(s,function(l,u){var c=l.getLayout().value*i;o==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),j(t,function(s){var l=+s.getValue()*i;s.setLayout({dy:l},!0)})}function eS(e,t,n,r,a){var o=a==="vertical"?"x":"y";j(e,function(i){i.sort(function(p,g){return p.getLayout()[o]-g.getLayout()[o]});for(var s,l,u,c=0,f=i.length,d=a==="vertical"?"dx":"dy",v=0;v<f;v++)l=i[v],u=c-l.getLayout()[o],u>0&&(s=l.getLayout()[o]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[o]+l.getLayout()[d]+t;var h=a==="vertical"?r:n;if(u=c-t-h,u>0){s=l.getLayout()[o]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var v=f-2;v>=0;--v)l=i[v],u=l.getLayout()[o]+l.getLayout()[d]+t-c,u>0&&(s=l.getLayout()[o]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[o]}})}function swe(e,t,n){j(e.slice().reverse(),function(r){j(r,function(a){if(a.outEdges.length){var o=Ju(a.outEdges,lwe,n)/Ju(a.outEdges,v_);if(isNaN(o)){var i=a.outEdges.length;o=i?Ju(a.outEdges,uwe,n)/i:0}if(n==="vertical"){var s=a.getLayout().x+(o-dc(a,n))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(o-dc(a,n))*t;a.setLayout({y:l},!0)}}})})}function lwe(e,t){return dc(e.node2,t)*e.getValue()}function uwe(e,t){return dc(e.node2,t)}function cwe(e,t){return dc(e.node1,t)*e.getValue()}function fwe(e,t){return dc(e.node1,t)}function dc(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function v_(e){return e.getValue()}function Ju(e,t,n){for(var r=0,a=e.length,o=-1;++o<a;){var i=+t(e[o],n);isNaN(i)||(r+=i)}return r}function dwe(e,t,n){j(e,function(r){j(r,function(a){if(a.inEdges.length){var o=Ju(a.inEdges,cwe,n)/Ju(a.inEdges,v_);if(isNaN(o)){var i=a.inEdges.length;o=i?Ju(a.inEdges,fwe,n)/i:0}if(n==="vertical"){var s=a.getLayout().x+(o-dc(a,n))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(o-dc(a,n))*t;a.setLayout({y:l},!0)}}})})}function vwe(e,t){var n=t==="vertical"?"x":"y";j(e,function(r){r.outEdges.sort(function(a,o){return a.node2.getLayout()[n]-o.node2.getLayout()[n]}),r.inEdges.sort(function(a,o){return a.node1.getLayout()[n]-o.node1.getLayout()[n]})}),j(e,function(r){var a=0,o=0;j(r.outEdges,function(i){i.setLayout({sy:a},!0),a+=i.getLayout().dy}),j(r.inEdges,function(i){i.setLayout({ty:o},!0),o+=i.getLayout().dy})})}function hwe(e){e.eachSeriesByType("sankey",function(t){var n=t.getGraph(),r=n.nodes,a=n.edges;if(r.length){var o=1/0,i=-1/0;j(r,function(s){var l=s.getLayout().value;l<o&&(o=l),l>i&&(i=l)}),j(r,function(s){var l=new ua({type:"color",mappingMethod:"linear",dataExtent:[o,i],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&j(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function pwe(e){e.registerChartView(Y_e),e.registerSeriesModel(X_e),e.registerLayout(Z_e),e.registerVisual(hwe),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,n){n.eachComponent({mainType:"series",subType:"sankey",query:t},function(r){r.setNodePosition(t.dataIndex,[t.localX,t.localY])})}),e.registerAction({type:"sankeyRoam",event:"sankeyRoam",update:"none"},function(t,n,r){n.eachComponent({mainType:"series",subType:"sankey",query:t},function(a){var o=a.coordinateSystem,i=r4(o,t,a.get("scaleLimit"));a.setCenter(i.center),a.setZoom(i.zoom)})})}var _Y=function(){function e(){}return e.prototype._hasEncodeRule=function(t){var n=this.getEncode();return n&&n.get(t)!=null},e.prototype.getInitialData=function(t,n){var r,a=n.getComponent("xAxis",this.get("xAxisIndex")),o=n.getComponent("yAxis",this.get("yAxisIndex")),i=a.get("type"),s=o.get("type"),l;i==="category"?(t.layout="horizontal",r=a.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",r=o.getOrdinalMeta(),l=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],v=[a,o],h=v[c].get("type"),p=v[1-c].get("type"),g=t.data;if(g&&l){var m=[];j(g,function(w,S){var x;Ve(w)?(x=w.slice(),w.unshift(S)):Ve(w.value)?(x=Pe({},w),x.value=x.value.slice(),w.value.unshift(S)):x=w,m.push(x)}),t.data=m}var y=this.defaultValueDimensions,b=[{name:f,type:qb(h),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:qb(p),dimsDef:y.slice()}];return lp(this,{coordDimensions:b,dimensionsCount:y.length+1,encodeDefaulter:Yt(TG,b,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),wY=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:Se.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:Se.color.shadow}},animationDuration:800},t}(er);Er(wY,_Y,!0);const gwe=wY;var mwe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var o=n.getData(),i=this.group,s=this._data;this._data||i.removeAll();var l=n.get("layout")==="horizontal"?1:0;o.diff(s).add(function(u){if(o.hasValue(u)){var c=o.getItemLayout(u),f=eO(c,o,u,l,!0);o.setItemGraphicEl(u,f),i.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!o.hasValue(u)){i.remove(f);return}var d=o.getItemLayout(u);f?(oi(f),SY(d,f,o,u)):f=eO(d,o,u,l),i.add(f),o.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&i.remove(c)}).execute(),this._data=o},t.prototype.remove=function(n){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(o){o&&r.remove(o)})},t.type="boxplot",t}(Fn),ywe=function(){function e(){}return e}(),bwe=function(e){ye(t,e);function t(n){var r=e.call(this,n)||this;return r.type="boxplotBoxPath",r}return t.prototype.getDefaultShape=function(){return new ywe},t.prototype.buildPath=function(n,r){var a=r.points,o=0;for(n.moveTo(a[o][0],a[o][1]),o++;o<4;o++)n.lineTo(a[o][0],a[o][1]);for(n.closePath();o<a.length;o++)n.moveTo(a[o][0],a[o][1]),o++,n.lineTo(a[o][0],a[o][1])},t}(ln);function eO(e,t,n,r,a){var o=e.ends,i=new bwe({shape:{points:a?_we(o,r,e):o}});return SY(e,i,t,n,a),i}function SY(e,t,n,r,a){var o=n.hostModel,i=xd[a?"initProps":"updateProps"];i(t,{shape:{points:e.ends}},o,r),t.useStyle(n.getItemVisual(r,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=n.getItemModel(r),l=s.getModel("emphasis");Br(t,s),Jn(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function _we(e,t,n){return $e(e,function(r){return r=r.slice(),r[t]=n.initBaseline,r})}const wwe=mwe;var q0=j;function Swe(e){var t=xwe(e);q0(t,function(n){var r=n.seriesModels;r.length&&(Cwe(n),q0(r,function(a,o){Twe(a,n.boxOffsetList[o],n.boxWidthList[o])}))})}function xwe(e){var t=[],n=[];return e.eachSeriesByType("boxplot",function(r){var a=r.getBaseAxis(),o=Xt(n,a);o<0&&(o=n.length,n[o]=a,t[o]={axis:a,seriesModels:[]}),t[o].seriesModels.push(r)}),t}function Cwe(e){var t=e.axis,n=e.seriesModels,r=n.length,a=e.boxWidthList=[],o=e.boxOffsetList=[],i=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;q0(n,function(h){l=Math.max(l,h.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}q0(n,function(h){var p=h.get("boxWidth");Ve(p)||(p=[p,p]),i.push([at(p[0],s)||0,at(p[1],s)||0])});var c=s*.8-2,f=c/r*.3,d=(c-f*(r-1))/r,v=d/2-c/2;q0(n,function(h,p){o.push(v),v+=f+d,a.push(Math.min(Math.max(d,i[p][0]),i[p][1]))})}function Twe(e,t,n){var r=e.coordinateSystem,a=e.getData(),o=n/2,i=e.get("layout")==="horizontal"?0:1,s=1-i,l=["x","y"],u=a.mapDimension(l[i]),c=a.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var f=0;f<a.count();f++){var d=a.get(u,f),v=b(d,c[2],f),h=b(d,c[0],f),p=b(d,c[1],f),g=b(d,c[3],f),m=b(d,c[4],f),y=[];w(y,p,!1),w(y,g,!0),y.push(h,p,m,g),S(y,h),S(y,m),S(y,v),a.setItemLayout(f,{initBaseline:v[s],ends:y})}function b(x,C,T){var M=a.get(C,T),k=[];k[i]=x,k[s]=M;var E;return isNaN(x)||isNaN(M)?E=[NaN,NaN]:(E=r.dataToPoint(k),E[i]+=t),E}function w(x,C,T){var M=C.slice(),k=C.slice();M[i]+=o,k[i]-=o,T?x.push(M,k):x.push(k,M)}function S(x,C){var T=C.slice(),M=C.slice();T[i]-=o,M[i]+=o,x.push(T,M)}}function kwe(e,t){t=t||{};for(var n=[],r=[],a=t.boundIQR,o=a==="none"||a===0,i=0;i<e.length;i++){var s=Zo(e[i].slice()),l=E3(s,.25),u=E3(s,.5),c=E3(s,.75),f=s[0],d=s[s.length-1],v=(a??1.5)*(c-l),h=o?f:Math.max(f,l-v),p=o?d:Math.min(d,c+v),g=t.itemNameFormatter,m=kt(g)?g({value:i}):st(g)?g.replace("{value}",i+""):i+"";n.push([m,h,l,u,c,p]);for(var y=0;y<s.length;y++){var b=s[y];if(b<h||b>p){var w=[m,b];r.push(w)}}}return{boxData:n,outliers:r}}var Mwe={type:"echarts:boxplot",transform:function(t){var n=t.upstream;if(n.sourceFormat!==Qr){var r="";An(r)}var a=kwe(n.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function Awe(e){e.registerSeriesModel(gwe),e.registerChartView(wwe),e.registerLayout(Swe),e.registerTransform(Mwe)}var Ewe=["itemStyle","borderColor"],Iwe=["itemStyle","borderColor0"],Lwe=["itemStyle","borderColorDoji"],Dwe=["itemStyle","color"],Pwe=["itemStyle","color0"];function xM(e,t){return t.get(e>0?Dwe:Pwe)}function CM(e,t){return t.get(e===0?Lwe:e>0?Ewe:Iwe)}var Rwe={seriesType:"candlestick",plan:rp(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e)){var n=e.pipelineContext.large;return!n&&{progress:function(r,a){for(var o;(o=r.next())!=null;){var i=a.getItemModel(o),s=a.getItemLayout(o).sign,l=i.getItemStyle();l.fill=xM(s,i),l.stroke=CM(s,i)||l.fill;var u=a.ensureUniqueItemVisual(o,"style");Pe(u,l)}}}}}};const Owe=Rwe;var Nwe=["color","borderColor"],Bwe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(n),this._isLargeDraw?this._renderLarge(n):this._renderNormal(n)},t.prototype.incrementalPrepareRender=function(n,r,a){this._clear(),this._updateDrawMode(n)},t.prototype.incrementalRender=function(n,r,a,o){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(n,r):this._incrementalRenderNormal(n,r)},t.prototype.eachRendered=function(n){_c(this._progressiveEls||this.group,n)},t.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},t.prototype._renderNormal=function(n){var r=n.getData(),a=this._data,o=this.group,i=r.getLayout("isSimpleBox"),s=n.get("clip",!0),l=n.coordinateSystem,u=l.getArea&&l.getArea();this._data||o.removeAll(),r.diff(a).add(function(c){if(r.hasValue(c)){var f=r.getItemLayout(c);if(s&&tO(u,f))return;var d=tS(f,c,!0);Xn(d,{shape:{points:f.ends}},n,c),nS(d,r,c,i),o.add(d),r.setItemGraphicEl(c,d)}}).update(function(c,f){var d=a.getItemGraphicEl(f);if(!r.hasValue(c)){o.remove(d);return}var v=r.getItemLayout(c);if(s&&tO(u,v)){o.remove(d);return}d?(Sn(d,{shape:{points:v.ends}},n,c),oi(d)):d=tS(v),nS(d,r,c,i),o.add(d),r.setItemGraphicEl(c,d)}).remove(function(c){var f=a.getItemGraphicEl(c);f&&o.remove(f)}).execute(),this._data=r},t.prototype._renderLarge=function(n){this._clear(),nO(n,this.group);var r=n.get("clip",!0)?Hm(n.coordinateSystem,!1,n):null;r?this.group.setClipPath(r):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(n,r){for(var a=r.getData(),o=a.getLayout("isSimpleBox"),i;(i=n.next())!=null;){var s=a.getItemLayout(i),l=tS(s);nS(l,a,i,o),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(n,r){nO(r,this.group,this._progressiveEls,!0)},t.prototype.remove=function(n){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Fn),Vwe=function(){function e(){}return e}(),$we=function(e){ye(t,e);function t(n){var r=e.call(this,n)||this;return r.type="normalCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new Vwe},t.prototype.buildPath=function(n,r){var a=r.points;this.__simpleBox?(n.moveTo(a[4][0],a[4][1]),n.lineTo(a[6][0],a[6][1])):(n.moveTo(a[0][0],a[0][1]),n.lineTo(a[1][0],a[1][1]),n.lineTo(a[2][0],a[2][1]),n.lineTo(a[3][0],a[3][1]),n.closePath(),n.moveTo(a[4][0],a[4][1]),n.lineTo(a[5][0],a[5][1]),n.moveTo(a[6][0],a[6][1]),n.lineTo(a[7][0],a[7][1]))},t}(ln);function tS(e,t,n){var r=e.ends;return new $we({shape:{points:n?zwe(r,e):r},z2:100})}function tO(e,t){for(var n=!0,r=0;r<t.ends.length;r++)if(e.contain(t.ends[r][0],t.ends[r][1])){n=!1;break}return n}function nS(e,t,n,r){var a=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=r,Br(e,a);var o=t.getItemLayout(n).sign;j(e.states,function(s,l){var u=a.getModel(l),c=xM(o,u),f=CM(o,u)||c,d=s.style||(s.style={});c&&(d.fill=c),f&&(d.stroke=f)});var i=a.getModel("emphasis");Jn(e,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function zwe(e,t){return $e(e,function(n){return n=n.slice(),n[1]=t.initBaseline,n})}var Fwe=function(){function e(){}return e}(),rS=function(e){ye(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new Fwe},t.prototype.buildPath=function(n,r){for(var a=r.points,o=0;o<a.length;)if(this.__sign===a[o++]){var i=a[o++];n.moveTo(i,a[o++]),n.lineTo(i,a[o++])}else o+=3},t}(ln);function nO(e,t,n,r){var a=e.getData(),o=a.getLayout("largePoints"),i=new rS({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});t.add(i);var s=new rS({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new rS({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});t.add(l),aS(1,i,e),aS(-1,s,e),aS(0,l,e),r&&(i.incremental=!0,s.incremental=!0),n&&n.push(i,s)}function aS(e,t,n,r){var a=CM(e,n)||xM(e,n),o=n.getModel("itemStyle").getItemStyle(Nwe);t.useStyle(o),t.style.fill=null,t.style.stroke=a}const Hwe=Bwe;var xY=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(n,r,a){var o=r.getItemLayout(n);return o&&a.rect(o.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(er);Er(xY,_Y,!0);const Wwe=xY;function Gwe(e){!e||!Ve(e.series)||j(e.series,function(t){Rt(t)&&t.type==="k"&&(t.type="candlestick")})}var Uwe={seriesType:"candlestick",plan:rp(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=Kwe(e,n),a=0,o=1,i=["x","y"],s=n.getDimensionIndex(n.mapDimension(i[a])),l=$e(n.mapDimensionsAll(i[o]),n.getDimensionIndex,n),u=l[0],c=l[1],f=l[2],d=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?h:v};function v(p,g){for(var m,y=g.getStore();(m=p.next())!=null;){var b=y.get(s,m),w=y.get(u,m),S=y.get(c,m),x=y.get(f,m),C=y.get(d,m),T=Math.min(w,S),M=Math.max(w,S),k=P(T,b),E=P(M,b),A=P(x,b),I=P(C,b),O=[];L(O,E,0),L(O,k,1),O.push(B(I),B(E),B(A),B(k));var z=g.getItemModel(m),$=!!z.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:rO(y,m,w,S,c,$),initBaseline:w>S?E[o]:k[o],ends:O,brushRect:V(x,C,b)})}function P(F,U){var G=[];return G[a]=U,G[o]=F,isNaN(U)||isNaN(F)?[NaN,NaN]:t.dataToPoint(G)}function L(F,U,G){var Y=U.slice(),X=U.slice();Y[a]=D2(Y[a]+r/2,1,!1),X[a]=D2(X[a]-r/2,1,!0),G?F.push(Y,X):F.push(X,Y)}function V(F,U,G){var Y=P(F,G),X=P(U,G);return Y[a]-=r/2,X[a]-=r/2,{x:Y[0],y:Y[1],width:r,height:X[1]-Y[1]}}function B(F){return F[a]=D2(F[a],1),F}}function h(p,g){for(var m=_s(p.count*4),y=0,b,w=[],S=[],x,C=g.getStore(),T=!!e.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var M=C.get(s,x),k=C.get(u,x),E=C.get(c,x),A=C.get(f,x),I=C.get(d,x);if(isNaN(M)||isNaN(A)||isNaN(I)){m[y++]=NaN,y+=3;continue}m[y++]=rO(C,x,k,E,c,T),w[a]=M,w[o]=A,b=t.dataToPoint(w,null,S),m[y++]=b?b[0]:NaN,m[y++]=b?b[1]:NaN,w[o]=I,b=t.dataToPoint(w,null,S),m[y++]=b?b[1]:NaN}g.setLayout("largePoints",m)}}};function rO(e,t,n,r,a,o){var i;return n>r?i=-1:n<r?i=1:i=o?0:t>0?e.get(a,t-1)<=r?1:-1:1,i}function Kwe(e,t){var n=e.getBaseAxis(),r,a=n.type==="category"?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/t.count()),o=at(yt(e.get("barMaxWidth"),a),a),i=at(yt(e.get("barMinWidth"),1),a),s=e.get("barWidth");return s!=null?at(s,a):Math.max(Math.min(a/2,o),i)}const jwe=Uwe;function Ywe(e){e.registerChartView(Hwe),e.registerSeriesModel(Wwe),e.registerPreprocessor(Gwe),e.registerVisual(Owe),e.registerLayout(jwe)}function aO(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(r){r.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?n:null,fill:t.brushType==="fill"?n:null}})})}var qwe=function(e){ye(t,e);function t(n,r){var a=e.call(this)||this,o=new zm(n,r),i=new At;return a.add(o),a.add(i),a.updateData(n,r),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(n){for(var r=n.symbolType,a=n.color,o=n.rippleNumber,i=this.childAt(1),s=0;s<o;s++){var l=Ar(r,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/o*n.period+n.effectOffset;l.animate("",!0).when(n.period,{scaleX:n.rippleScale/2,scaleY:n.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(n.period,{opacity:0}).delay(u).start(),i.add(l)}aO(i,n)},t.prototype.updateEffectAnimation=function(n){for(var r=this._effectCfg,a=this.childAt(1),o=["symbolType","period","rippleScale","rippleNumber"],i=0;i<o.length;i++){var s=o[i];if(r[s]!==n[s]){this.stopEffectAnimation(),this.startEffectAnimation(n);return}}aO(a,n)},t.prototype.highlight=function(){zl(this)},t.prototype.downplay=function(){Fl(this)},t.prototype.getSymbolType=function(){var n=this.childAt(0);return n&&n.getSymbolType()},t.prototype.updateData=function(n,r){var a=this,o=n.hostModel;this.childAt(0).updateData(n,r);var i=this.childAt(1),s=n.getItemModel(r),l=n.getItemVisual(r,"symbol"),u=op(n.getItemVisual(r,"symbolSize")),c=n.getItemVisual(r,"style"),f=c&&c.fill,d=s.getModel("emphasis");i.setScale(u),i.traverse(function(g){g.setStyle("fill",f)});var v=Md(n.getItemVisual(r,"symbolOffset"),u);v&&(i.x=v[0],i.y=v[1]);var h=n.getItemVisual(r,"symbolRotate");i.rotation=(h||0)*Math.PI/180||0;var p={};p.showEffectOn=o.get("showEffectOn"),p.rippleScale=s.get(["rippleEffect","scale"]),p.brushType=s.get(["rippleEffect","brushType"]),p.period=s.get(["rippleEffect","period"])*1e3,p.effectOffset=r/n.count(),p.z=o.getShallow("z")||0,p.zlevel=o.getShallow("zlevel")||0,p.symbolType=l,p.color=f,p.rippleEffectColor=s.get(["rippleEffect","color"]),p.rippleNumber=s.get(["rippleEffect","number"]),p.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?p.showEffectOn!=="render"&&a.startEffectAnimation(p):g==="normal"&&p.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=p,Jn(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},t.prototype.fadeOut=function(n){n&&n()},t}(At);const Xwe=qwe;var Zwe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._symbolDraw=new Fm(Xwe)},t.prototype.render=function(n,r,a){var o=n.getData(),i=this._symbolDraw;i.updateData(o,{clipShape:this._getClipShape(n)}),this.group.add(i.group)},t.prototype._getClipShape=function(n){var r=n.coordinateSystem,a=r&&r.getArea&&r.getArea();return n.get("clip",!0)?a:null},t.prototype.updateTransform=function(n,r,a){var o=n.getData();this.group.dirty();var i=Wm("").reset(n,r,a);i.progress&&i.progress({start:0,end:o.count(),count:o.count()},o),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(n){var r=n.coordinateSystem;r&&r.getRoamTransform&&(this.group.transform=xse(r.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(Fn);const Jwe=Zwe;var Qwe=function(e){ye(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(n,r){return tu(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(n,r,a){return a.point(r.getItemLayout(n))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(er);const e4e=Qwe;function t4e(e){e.registerChartView(Jwe),e.registerSeriesModel(e4e),e.registerLayout(Wm("effectScatter"))}var n4e=function(e){ye(t,e);function t(n,r,a){var o=e.call(this)||this;return o.add(o.createLine(n,r,a)),o._updateEffectSymbol(n,r),o}return t.prototype.createLine=function(n,r,a){return new vM(n,r,a)},t.prototype._updateEffectSymbol=function(n,r){var a=n.getItemModel(r),o=a.getModel("effect"),i=o.get("symbolSize"),s=o.get("symbol");Ve(i)||(i=[i,i]);var l=n.getItemVisual(r,"style"),u=o.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=Ar(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(o.getItemStyle(["color"])),c.scaleX=i[0],c.scaleY=i[1],c.setColor(u),this._symbolType=s,this._symbolScale=i,this._updateEffectAnimation(n,o,r))},t.prototype._updateEffectAnimation=function(n,r,a){var o=this.childAt(1);if(o){var i=n.getItemLayout(a),s=r.get("period")*1e3,l=r.get("loop"),u=r.get("roundTrip"),c=r.get("constantSpeed"),f=la(r.get("delay"),function(v){return v/n.count()*s/3});if(o.ignore=!0,this._updateAnimationPoints(o,i),c>0&&(s=this._getLineLength(o)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){o.stopAnimation();var d=void 0;kt(f)?d=f(a):d=f,o.__t>0&&(d=-s*o.__t),this._animateSymbol(o,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(n,r,a,o,i){if(r>0){n.__t=0;var s=this,l=n.animate("",o).when(i?r*2:r,{__t:i?2:1}).delay(a).during(function(){s._updateSymbolPosition(n)});o||l.done(function(){s.remove(n)}),l.start()}},t.prototype._getLineLength=function(n){return Pu(n.__p1,n.__cp1)+Pu(n.__cp1,n.__p2)},t.prototype._updateAnimationPoints=function(n,r){n.__p1=r[0],n.__p2=r[1],n.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},t.prototype.updateData=function(n,r,a){this.childAt(0).updateData(n,r,a),this._updateEffectSymbol(n,r)},t.prototype._updateSymbolPosition=function(n){var r=n.__p1,a=n.__p2,o=n.__cp1,i=n.__t<1?n.__t:2-n.__t,s=[n.x,n.y],l=s.slice(),u=Zr,c=K8;s[0]=u(r[0],o[0],a[0],i),s[1]=u(r[1],o[1],a[1],i);var f=n.__t<1?c(r[0],o[0],a[0],i):c(a[0],o[0],r[0],1-i),d=n.__t<1?c(r[1],o[1],a[1],i):c(a[1],o[1],r[1],1-i);n.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(n.__lastT!==void 0&&n.__lastT<n.__t?(n.scaleY=Pu(l,s)*1.05,i===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):n.__lastT===1?n.scaleY=2*Pu(r,s):n.scaleY=this._symbolScale[1]),n.__lastT=n.__t,n.ignore=!1,n.x=s[0],n.y=s[1]},t.prototype.updateLayout=function(n,r){this.childAt(0).updateLayout(n,r);var a=n.getItemModel(r).getModel("effect");this._updateEffectAnimation(n,a,r)},t}(At);const CY=n4e;var r4e=function(e){ye(t,e);function t(n,r,a){var o=e.call(this)||this;return o._createPolyline(n,r,a),o}return t.prototype._createPolyline=function(n,r,a){var o=n.getItemLayout(r),i=new La({shape:{points:o}});this.add(i),this._updateCommonStl(n,r,a)},t.prototype.updateData=function(n,r,a){var o=n.hostModel,i=this.childAt(0),s={shape:{points:n.getItemLayout(r)}};Sn(i,s,o,r),this._updateCommonStl(n,r,a)},t.prototype._updateCommonStl=function(n,r,a){var o=this.childAt(0),i=n.getItemModel(r),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,c=a&&a.emphasisDisabled;if(!a||n.hasItemOption){var f=i.getModel("emphasis");s=f.getModel("lineStyle").getLineStyle(),c=f.get("disabled"),l=f.get("focus"),u=f.get("blurScope")}o.useStyle(n.getItemVisual(r,"style")),o.style.fill=null,o.style.strokeNoScale=!0;var d=o.ensureState("emphasis");d.style=s,Jn(this,l,u,c)},t.prototype.updateLayout=function(n,r){var a=this.childAt(0);a.setShape("points",n.getItemLayout(r))},t}(At);const TY=r4e;var a4e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._lastFrame=0,n._lastFramePercent=0,n}return t.prototype.createLine=function(n,r,a){return new TY(n,r,a)},t.prototype._updateAnimationPoints=function(n,r){this._points=r;for(var a=[0],o=0,i=1;i<r.length;i++){var s=r[i-1],l=r[i];o+=Pu(s,l),a.push(o)}if(o===0){this._length=0;return}for(var i=0;i<a.length;i++)a[i]/=o;this._offsets=a,this._length=o},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(n){var r=n.__t<1?n.__t:2-n.__t,a=this._points,o=this._offsets,i=a.length;if(o){var s=this._lastFrame,l;if(r<this._lastFramePercent){var u=Math.min(s+1,i-1);for(l=u;l>=0&&!(o[l]<=r);l--);l=Math.min(l,i-2)}else{for(l=s;l<i&&!(o[l]>r);l++);l=Math.min(l-1,i-2)}var c=(r-o[l])/(o[l+1]-o[l]),f=a[l],d=a[l+1];n.x=f[0]*(1-c)+c*d[0],n.y=f[1]*(1-c)+c*d[1];var v=n.__t<1?d[0]-f[0]:f[0]-d[0],h=n.__t<1?d[1]-f[1]:f[1]-d[1];n.rotation=-Math.atan2(h,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,n.ignore=!1}},t}(CY);const o4e=a4e;var i4e=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),s4e=function(e){ye(t,e);function t(n){var r=e.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:Se.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new i4e},t.prototype.buildPath=function(n,r){var a=r.segs,o=r.curveness,i;if(r.polyline)for(i=this._off;i<a.length;){var s=a[i++];if(s>0){n.moveTo(a[i++],a[i++]);for(var l=1;l<s;l++)n.lineTo(a[i++],a[i++])}}else for(i=this._off;i<a.length;){var u=a[i++],c=a[i++],f=a[i++],d=a[i++];if(n.moveTo(u,c),o>0){var v=(u+f)/2-(c-d)*o,h=(c+d)/2-(f-u)*o;n.quadraticCurveTo(v,h,f,d)}else n.lineTo(f,d)}this.incremental&&(this._off=i,this.notClear=!0)},t.prototype.findDataIndex=function(n,r){var a=this.shape,o=a.segs,i=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<o.length;){var c=o[u++];if(c>0)for(var f=o[u++],d=o[u++],v=1;v<c;v++){var h=o[u++],p=o[u++];if(Eu(f,d,h,p,s,n,r))return l}l++}else for(var l=0,u=0;u<o.length;){var f=o[u++],d=o[u++],h=o[u++],p=o[u++];if(i>0){var g=(f+h)/2-(d-p)*i,m=(d+p)/2-(h-f)*i;if(aW(f,d,g,m,h,p,s,n,r))return l}else if(Eu(f,d,h,p,s,n,r))return l;l++}return-1},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),o=this.getBoundingRect();if(n=a[0],r=a[1],o.contain(n,r)){var i=this.hoverDataIdx=this.findDataIndex(n,r);return i>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,a=r.segs,o=1/0,i=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var c=a[u++],f=a[u++];o=Math.min(c,o),s=Math.max(c,s),i=Math.min(f,i),l=Math.max(f,l)}n=this._rect=new Ot(o,i,s,l)}return n},t}(ln),l4e=function(){function e(){this.group=new At}return e.prototype.updateData=function(t){this._clear();var n=this._create();n.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(n,t)},e.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(t,n){var r=this._newAdded[0],a=n.getLayout("linesPoints"),o=r&&r.shape.segs;if(o&&o.length<2e4){var i=o.length,s=new Float32Array(i+a.length);s.set(o),s.set(a,i),r.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:a}),this._setCommon(l,n),l.__startIndex=t.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new s4e({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},e.prototype._setCommon=function(t,n,r){var a=n.hostModel;t.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),t.useStyle(a.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var o=n.getVisual("style");o&&o.stroke&&t.setStyle("stroke",o.stroke),t.setStyle("fill",null);var i=Vt(t);i.seriesIndex=a.seriesIndex,t.on("mousemove",function(s){i.dataIndex=null;var l=t.hoverDataIdx;l>0&&(i.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const u4e=l4e;var c4e={seriesType:"lines",plan:rp(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(a,o){var i=[];if(r){var s=void 0,l=a.end-a.start;if(n){for(var u=0,c=a.start;c<a.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var f=0,d=[],c=a.start;c<a.end;c++){var v=e.getLineCoords(c,i);n&&(s[f++]=v);for(var h=0;h<v;h++)d=t.dataToPoint(i[h],!1,d),s[f++]=d[0],s[f++]=d[1]}o.setLayout("linesPoints",s)}else for(var c=a.start;c<a.end;c++){var p=o.getItemModel(c),v=e.getLineCoords(c,i),g=[];if(n)for(var m=0;m<v;m++)g.push(t.dataToPoint(i[m]));else{g[0]=t.dataToPoint(i[0]),g[1]=t.dataToPoint(i[1]);var y=p.get(["lineStyle","curveness"]);+y&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*y,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*y])}o.setItemLayout(c,g)}}}}}};const kY=c4e;var f4e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var o=n.getData(),i=this._updateLineDraw(o,n),s=n.get("zlevel"),l=n.get(["effect","trailLength"]),u=a.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(n)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),i.updateData(o);var f=n.get("clip",!0)&&Hm(n.coordinateSystem,!1,n);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(n,r,a){var o=n.getData(),i=this._updateLineDraw(o,n);i.incrementalPrepareUpdate(o),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(n,r,a){this._lineDraw.incrementalUpdate(n,r.getData()),this._finished=n.end===r.getData().count()},t.prototype.eachRendered=function(n){this._lineDraw&&this._lineDraw.eachRendered(n)},t.prototype.updateTransform=function(n,r,a){var o=n.getData(),i=n.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var s=kY.reset(n,r,a);s.progress&&s.progress({start:0,end:o.count(),count:o.count()},o),this._lineDraw.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(n,r){var a=this._lineDraw,o=this._showEffect(r),i=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!a||o!==this._hasEffet||i!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new u4e:new hM(i?o?o4e:TY:o?CY:vM),this._hasEffet=o,this._isPolyline=i,this._isLargeDraw=l),this.group.add(a.group),a},t.prototype._showEffect=function(n){return!!n.get(["effect","show"])},t.prototype._clearLayer=function(n){var r=n.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(n,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},t.prototype.dispose=function(n,r){this.remove(n,r)},t.type="lines",t}(Fn);const d4e=f4e;var v4e=typeof Uint32Array>"u"?Array:Uint32Array,h4e=typeof Float64Array>"u"?Array:Float64Array;function oO(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=$e(t,function(n){var r=[n[0].coord,n[1].coord],a={coords:r};return n[0].name&&(a.fromName=n[0].name),n[1].name&&(a.toName=n[1].name),R5([a,n[0],n[1]])}))}var p4e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return t.prototype.init=function(n){n.data=n.data||[],oO(n);var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(n){if(oO(n),n.data){var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(n){var r=this._processFlatCoordsArray(n.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=hg(this._flatCoords,r.flatCoords),this._flatCoordsOffset=hg(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),n.data=new Float32Array(r.count)),this.getRawData().appendData(n.data)},t.prototype._getCoordsFromItemModel=function(n){var r=this.getData().getItemModel(n),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},t.prototype.getLineCoordsCount=function(n){return this._flatCoordsOffset?this._flatCoordsOffset[n*2+1]:this._getCoordsFromItemModel(n).length},t.prototype.getLineCoords=function(n,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[n*2],o=this._flatCoordsOffset[n*2+1],i=0;i<o;i++)r[i]=r[i]||[],r[i][0]=this._flatCoords[a+i*2],r[i][1]=this._flatCoords[a+i*2+1];return o}else{for(var s=this._getCoordsFromItemModel(n),i=0;i<s.length;i++)r[i]=r[i]||[],r[i][0]=s[i][0],r[i][1]=s[i][1];return s.length}},t.prototype._processFlatCoordsArray=function(n){var r=0;if(this._flatCoords&&(r=this._flatCoords.length),gn(n[0])){for(var a=n.length,o=new v4e(a),i=new h4e(a),s=0,l=0,u=0,c=0;c<a;){u++;var f=n[c++];o[l++]=s+r,o[l++]=f;for(var d=0;d<f;d++){var v=n[c++],h=n[c++];i[s++]=v,i[s++]=h}}return{flatCoordsOffset:new Uint32Array(o.buffer,0,l),flatCoords:i,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:n.length}},t.prototype.getInitialData=function(n,r){var a=new Wa(["value"],this);return a.hasItemOption=!1,a.initData(n.data,[],function(o,i,s,l){if(o instanceof Array)return NaN;a.hasItemOption=!0;var u=o.value;if(u!=null)return u instanceof Array?u[l]:u}),a},t.prototype.formatTooltip=function(n,r,a){var o=this.getData(),i=o.getItemModel(n),s=i.get("name");if(s)return s;var l=i.get("fromName"),u=i.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Mr("nameValue",{name:c.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var n=this.getModel("effect"),r=n.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:n.get("show")&&r>0?r+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(er);const g4e=p4e;function Ry(e){return e instanceof Array||(e=[e,e]),e}var m4e={seriesType:"lines",reset:function(e){var t=Ry(e.get("symbol")),n=Ry(e.get("symbolSize")),r=e.getData();r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]);function a(o,i){var s=o.getItemModel(i),l=Ry(s.getShallow("symbol",!0)),u=Ry(s.getShallow("symbolSize",!0));l[0]&&o.setItemVisual(i,"fromSymbol",l[0]),l[1]&&o.setItemVisual(i,"toSymbol",l[1]),u[0]&&o.setItemVisual(i,"fromSymbolSize",u[0]),u[1]&&o.setItemVisual(i,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?a:null}}};const y4e=m4e;function b4e(e){e.registerChartView(d4e),e.registerSeriesModel(g4e),e.registerLayout(kY),e.registerVisual(y4e)}var _4e=256,w4e=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Di.createCanvas();this.canvas=t}return e.prototype.update=function(t,n,r,a,o,i){var s=this._getBrush(),l=this._getGradient(o,"inRange"),u=this._getGradient(o,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),v=t.length;f.width=n,f.height=r;for(var h=0;h<v;++h){var p=t[h],g=p[0],m=p[1],y=p[2],b=a(y);d.globalAlpha=b,d.drawImage(s,g-c,m-c)}if(!f.width||!f.height)return f;for(var w=d.getImageData(0,0,f.width,f.height),S=w.data,x=0,C=S.length,T=this.minOpacity,M=this.maxOpacity,k=M-T;x<C;){var b=S[x+3]/256,E=Math.floor(b*(_4e-1))*4;if(b>0){var A=i(b)?l:u;b>0&&(b=b*k+T),S[x++]=A[E],S[x++]=A[E+1],S[x++]=A[E+2],S[x++]=A[E+3]*b*256}else x+=4}return d.putImageData(w,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Di.createCanvas()),n=this.pointSize+this.blurSize,r=n*2;t.width=r,t.height=r;var a=t.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor=Se.color.neutral99,a.beginPath(),a.arc(-n,n,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},e.prototype._getGradient=function(t,n){for(var r=this._gradientPixels,a=r[n]||(r[n]=new Uint8ClampedArray(256*4)),o=[0,0,0,0],i=0,s=0;s<256;s++)t[n](s/255,!0,o),a[i++]=o[0],a[i++]=o[1],a[i++]=o[2],a[i++]=o[3];return a},e}();const S4e=w4e;function x4e(e,t,n){var r=e[1]-e[0];t=$e(t,function(i){return{interval:[(i.interval[0]-e[0])/r,(i.interval[1]-e[0])/r]}});var a=t.length,o=0;return function(i){var s;for(s=o;s<a;s++){var l=t[s].interval;if(l[0]<=i&&i<=l[1]){o=s;break}}if(s===a)for(s=o-1;s>=0;s--){var l=t[s].interval;if(l[0]<=i&&i<=l[1]){o=s;break}}return s>=0&&s<a&&n[s]}}function C4e(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(r){return r>=t[0]&&r<=t[1]}}function iO(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var T4e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var o;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===n&&(o=s)})}),this._progressiveEls=null,this.group.removeAll();var i=n.coordinateSystem;i.type==="cartesian2d"||i.type==="calendar"||i.type==="matrix"?this._renderOnGridLike(n,a,0,n.getData().count()):iO(i)&&this._renderOnGeo(i,n,o,a)},t.prototype.incrementalPrepareRender=function(n,r,a){this.group.removeAll()},t.prototype.incrementalRender=function(n,r,a,o){var i=r.coordinateSystem;i&&(iO(i)?this.render(r,a,o):(this._progressiveEls=[],this._renderOnGridLike(r,o,n.start,n.end,!0)))},t.prototype.eachRendered=function(n){_c(this._progressiveEls||this.group,n)},t.prototype._renderOnGridLike=function(n,r,a,o,i){var s=n.coordinateSystem,l=cc(s,"cartesian2d"),u=cc(s,"matrix"),c,f,d,v;if(l){var h=s.getAxis("x"),p=s.getAxis("y");c=h.getBandWidth()+.5,f=p.getBandWidth()+.5,d=h.scale.getExtent(),v=p.scale.getExtent()}for(var g=this.group,m=n.getData(),y=n.getModel(["emphasis","itemStyle"]).getItemStyle(),b=n.getModel(["blur","itemStyle"]).getItemStyle(),w=n.getModel(["select","itemStyle"]).getItemStyle(),S=n.get(["itemStyle","borderRadius"]),x=Vr(n),C=n.getModel("emphasis"),T=C.get("focus"),M=C.get("blurScope"),k=C.get("disabled"),E=l||u?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],A=a;A<o;A++){var I=void 0,O=m.getItemVisual(A,"style");if(l){var z=m.get(E[0],A),$=m.get(E[1],A);if(isNaN(m.get(E[2],A))||isNaN(z)||isNaN($)||z<d[0]||z>d[1]||$<v[0]||$>v[1])continue;var P=s.dataToPoint([z,$]);I=new rn({shape:{x:P[0]-c/2,y:P[1]-f/2,width:c,height:f},style:O})}else if(u){var L=s.dataToLayout([m.get(E[0],A),m.get(E[1],A)]).rect;if(Ma(L.x))continue;I=new rn({z2:1,shape:L,style:O})}else{if(isNaN(m.get(E[1],A)))continue;var V=s.dataToLayout([m.get(E[0],A)]),L=V.contentRect||V.rect;if(Ma(L.x)||Ma(L.y))continue;I=new rn({z2:1,shape:L,style:O})}if(m.hasItemOption){var B=m.getItemModel(A),F=B.getModel("emphasis");y=F.getModel("itemStyle").getItemStyle(),b=B.getModel(["blur","itemStyle"]).getItemStyle(),w=B.getModel(["select","itemStyle"]).getItemStyle(),S=B.get(["itemStyle","borderRadius"]),T=F.get("focus"),M=F.get("blurScope"),k=F.get("disabled"),x=Vr(B)}I.shape.r=S;var U=n.getRawValue(A),G="-";U&&U[2]!=null&&(G=U[2]+""),Kr(I,x,{labelFetcher:n,labelDataIndex:A,defaultOpacity:O.opacity,defaultText:G}),I.ensureState("emphasis").style=y,I.ensureState("blur").style=b,I.ensureState("select").style=w,Jn(I,T,M,k),I.incremental=i,i&&(I.states.emphasis.hoverLayer=!0),g.add(I),m.setItemGraphicEl(A,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(n,r,a,o){var i=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new S4e;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=n.getViewRect().clone(),f=n.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),v=Math.max(c.y,0),h=Math.min(c.width+c.x,o.getWidth()),p=Math.min(c.height+c.y,o.getHeight()),g=h-d,m=p-v,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],b=l.mapArray(y,function(C,T,M){var k=n.dataToPoint([C,T]);return k[0]-=d,k[1]-=v,k.push(M),k}),w=a.getExtent(),S=a.type==="visualMap.continuous"?C4e(w,a.option.range):x4e(w,a.getPieceList(),a.option.selected);u.update(b,g,m,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:s.color.getColorMapper()},S);var x=new da({style:{width:g,height:m,x:d,y:v,image:u.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t}(Fn);const k4e=T4e;var M4e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return tu(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var n=Om.get(this.get("coordinateSystem"));if(n&&n.dimensions)return n.dimensions[0]==="lng"&&n.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:Se.color.primary}}},t}(er);const A4e=M4e;function E4e(e){e.registerChartView(k4e),e.registerSeriesModel(A4e)}var I4e=["itemStyle","borderWidth"],sO=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],oS=new bc,L4e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var o=this.group,i=n.getData(),s=this._data,l=n.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:n,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:sO[+c],categoryDim:sO[1-+c]};i.diff(s).add(function(h){if(i.hasValue(h)){var p=uO(i,h),g=lO(i,h,p,d),m=cO(i,d,g);i.setItemGraphicEl(h,m),o.add(m),dO(m,d,g)}}).update(function(h,p){var g=s.getItemGraphicEl(p);if(!i.hasValue(h)){o.remove(g);return}var m=uO(i,h),y=lO(i,h,m,d),b=DY(i,y);g&&b!==g.__pictorialShapeStr&&(o.remove(g),i.setItemGraphicEl(h,null),g=null),g?V4e(g,d,y):g=cO(i,d,y,!0),i.setItemGraphicEl(h,g),g.__pictorialSymbolMeta=y,o.add(g),dO(g,d,y)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&fO(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute();var v=n.get("clip",!0)?Hm(n.coordinateSystem,!1,n):null;return v?o.setClipPath(v):o.removeClipPath(),this._data=i,this.group},t.prototype.remove=function(n,r){var a=this.group,o=this._data;n.get("animation")?o&&o.eachItemGraphicEl(function(i){fO(o,Vt(i).dataIndex,n,i)}):a.removeAll()},t.type="pictorialBar",t}(Fn);function lO(e,t,n,r){var a=e.getItemLayout(t),o=n.get("symbolRepeat"),i=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,f=n.isAnimationEnabled(),d={dataIndex:t,layout:a,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:i,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?n:null,hoverScale:f&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};D4e(n,o,a,r,d),P4e(e,t,a,o,i,d.boundingLength,d.pxSign,c,r,d),R4e(n,d.symbolScale,u,r,d);var v=d.symbolSize,h=Md(n.get("symbolOffset"),v);return O4e(n,v,a,o,i,h,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function D4e(e,t,n,r,a){var o=r.valueDim,i=e.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(n[o.wh]<=0),c;if(Ve(i)){var f=[iS(s,i[0])-l,iS(s,i[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else i!=null?c=iS(s,i)-l:t?c=r.coordSysExtent[o.index][u]-l:c=n[o.wh];a.boundingLength=c,t&&(a.repeatCutLength=n[o.wh]);var d=o.xy==="x",v=s.inverse;a.pxSign=d&&!v||!d&&v?c>=0?1:-1:c>0?1:-1}function iS(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function P4e(e,t,n,r,a,o,i,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(n[f.wh]),v=e.getItemVisual(t,"symbolSize"),h;Ve(v)?h=v.slice():v==null?h=["100%","100%"]:h=[v,v],h[f.index]=at(h[f.index],d),h[c.index]=at(h[c.index],r?d:Math.abs(o)),u.symbolSize=h;var p=u.symbolScale=[h[0]/s,h[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*i}function R4e(e,t,n,r,a){var o=e.get(I4e)||0;o&&(oS.attr({scaleX:t[0],scaleY:t[1],rotation:n}),oS.updateTransform(),o/=oS.getLineScale(),o*=t[r.valueDim.index]),a.valueLineWidth=o||0}function O4e(e,t,n,r,a,o,i,s,l,u,c,f){var d=c.categoryDim,v=c.valueDim,h=f.pxSign,p=Math.max(t[v.index]+s,0),g=p;if(r){var m=Math.abs(l),y=la(e.get("symbolMargin"),"15%")+"",b=!1;y.lastIndexOf("!")===y.length-1&&(b=!0,y=y.slice(0,y.length-1));var w=at(y,t[v.index]),S=Math.max(p+w*2,0),x=b?0:w*2,C=HH(r),T=C?r:vO((m+x)/S),M=m-T*p;w=M/2/(b?T:Math.max(T-1,1)),S=p+w*2,x=b?0:w*2,!C&&r!=="fixed"&&(T=u?vO((Math.abs(u)+x)/S):0),g=T*S-x,f.repeatTimes=T,f.symbolMargin=w}var k=h*(g/2),E=f.pathPosition=[];E[d.index]=n[d.wh]/2,E[v.index]=i==="start"?k:i==="end"?l-k:l/2,o&&(E[0]+=o[0],E[1]+=o[1]);var A=f.bundlePosition=[];A[d.index]=n[d.xy],A[v.index]=n[v.xy];var I=f.barRectShape=Pe({},n);I[v.wh]=h*Math.max(Math.abs(n[v.wh]),Math.abs(E[v.index]+k)),I[d.wh]=n[d.wh];var O=f.clipShape={};O[d.xy]=-n[d.xy],O[d.wh]=c.ecSize[d.wh],O[v.xy]=0,O[v.wh]=n[v.wh]}function MY(e){var t=e.symbolPatternSize,n=Ar(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!=="image"&&n.setStyle({strokeNoScale:!0}),n}function AY(e,t,n,r){var a=e.__pictorialBundle,o=n.symbolSize,i=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,f=o[t.valueDim.index]+i+n.symbolMargin*2;for(TM(e,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c<u?Xv(p,null,h(c),n,r):Xv(p,null,{scaleX:0,scaleY:0},n,r,function(){a.remove(p)}),c++});c<u;c++){var d=MY(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,a.add(d);var v=h(c);Xv(d,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},n,r)}function h(p){var g=s.slice(),m=n.pxSign,y=p;return(n.symbolRepeatDirection==="start"?m>0:m<0)&&(y=u-1-p),g[l.index]=f*(y-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function EY(e,t,n,r){var a=e.__pictorialBundle,o=e.__pictorialMainPath;o?Xv(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(o=e.__pictorialMainPath=MY(n),a.add(o),Xv(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function IY(e,t,n){var r=Pe({},t.barRectShape),a=e.__pictorialBarRect;a?Xv(a,null,{shape:r},t,n):(a=e.__pictorialBarRect=new rn({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,e.add(a))}function LY(e,t,n,r){if(n.symbolClip){var a=e.__pictorialClipPath,o=Pe({},n.clipShape),i=t.valueDim,s=n.animationModel,l=n.dataIndex;if(a)Sn(a,{shape:o},s,l);else{o[i.wh]=0,a=new rn({shape:o}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var u={};u[i.wh]=n.clipShape[i.wh],xd[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function uO(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=N4e,n.isAnimationEnabled=B4e,n}function N4e(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function B4e(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function cO(e,t,n,r){var a=new At,o=new At;return a.add(o),a.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?AY(a,t,n):EY(a,t,n),IY(a,n,r),LY(a,t,n,r),a.__pictorialShapeStr=DY(e,n),a.__pictorialSymbolMeta=n,a}function V4e(e,t,n){var r=n.animationModel,a=n.dataIndex,o=e.__pictorialBundle;Sn(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,a),n.symbolRepeat?AY(e,t,n,!0):EY(e,t,n,!0),IY(e,n,!0),LY(e,t,n,!0)}function fO(e,t,n,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var o=[];TM(r,function(i){o.push(i)}),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),j(o,function(i){sc(i,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function DY(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function TM(e,t,n){j(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function Xv(e,t,n,r,a,o){t&&e.attr(t),r.symbolClip&&!a?n&&e.attr(n):n&&xd[a?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,o)}function dO(e,t,n){var r=n.dataIndex,a=n.itemModel,o=a.getModel("emphasis"),i=o.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=o.get("focus"),f=o.get("blurScope"),d=o.get("scale");TM(e,function(p){if(p instanceof da){var g=p.style;p.useStyle(Pe({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},n.style))}else p.useStyle(n.style);var m=p.ensureState("emphasis");m.style=i,d&&(m.scaleX=p.scaleX*1.1,m.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=n.z2});var v=t.valueDim.posDesc[+(n.boundingLength>0)],h=e.__pictorialBarRect;h.ignoreClip=!0,Kr(h,Vr(a),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:_h(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:v}),Jn(e,c,f,o.get("disabled"))}function vO(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const $4e=L4e;var z4e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return t.prototype.getInitialData=function(n){return n.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=wc(a_.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:Se.color.primary}}}),t}(a_);const F4e=z4e;function H4e(e){e.registerChartView($4e),e.registerSeriesModel(F4e),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Yt(jU,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,YU("pictorialBar"))}var W4e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return t.prototype.render=function(n,r,a){var o=n.getData(),i=this,s=this.group,l=n.getLayerSeries(),u=o.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(g){return g.name}var v=new Hl(this._layersSeries||[],l,d,d),h=[];v.add(lt(p,this,"add")).update(lt(p,this,"update")).remove(lt(p,this,"remove")).execute();function p(g,m,y){var b=i._layers;if(g==="remove"){s.remove(b[m]);return}for(var w=[],S=[],x,C=l[m].indices,T=0;T<C.length;T++){var M=o.getItemLayout(C[T]),k=M.x,E=M.y0,A=M.y;w.push(k,E),S.push(k,E+A),x=o.getItemVisual(C[T],"style")}var I,O=o.getItemLayout(C[0]),z=n.getModel("label"),$=z.get("margin"),P=n.getModel("emphasis");if(g==="add"){var L=h[m]=new At;I=new zK({shape:{points:w,stackedOnPoints:S,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),L.add(I),s.add(L),n.isAnimationEnabled()&&I.setClipPath(G4e(I.getBoundingRect(),n,function(){I.removeClipPath()}))}else{var L=b[y];I=L.childAt(0),s.add(L),h[m]=L,Sn(I,{shape:{points:w,stackedOnPoints:S}},n),oi(I)}Kr(I,Vr(n),{labelDataIndex:C[T-1],defaultText:o.getName(C[T-1]),inheritColor:x.fill},{normal:{verticalAlign:"middle"}}),I.setTextConfig({position:null,local:!0});var V=I.getTextContent();V&&(V.x=O.x-$,V.y=O.y0+O.y/2),I.useStyle(x),o.setItemGraphicEl(m,I),Br(I,n),Jn(I,P.get("focus"),P.get("blurScope"),P.get("disabled"))}this._layersSeries=l,this._layers=h},t.type="themeRiver",t}(Fn);function G4e(e,t,n){var r=new rn({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Xn(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}const U4e=W4e;var sS=2,K4e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new up(lt(this.getData,this),lt(this.getRawData,this))},t.prototype.fixData=function(n){var r=n.length,a={},o=sx(n,function(d){return a.hasOwnProperty(d[0]+"")||(a[d[0]+""]=-1),d[2]}),i=[];o.buckets.each(function(d,v){i.push({name:v,dataList:d})});for(var s=i.length,l=0;l<s;++l){for(var u=i[l].name,c=0;c<i[l].dataList.length;++c){var f=i[l].dataList[c][0]+"";a[f]=l}for(var f in a)a.hasOwnProperty(f)&&a[f]!==l&&(a[f]=l,n[r]=[f,0,u],r++)}return n},t.prototype.getInitialData=function(n,r){for(var a=this.getReferringComponents("singleAxis",lr).models[0],o=a.get("type"),i=In(n.data,function(h){return h[2]!==void 0}),s=this.fixData(i||[]),l=[],u=this.nameMap=pt(),c=0,f=0;f<s.length;++f)l.push(s[f][sS]),u.get(s[f][sS])||(u.set(s[f][sS],c),c++);var d=Vm(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:qb(o)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,v=new Wa(d,this);return v.initData(s),v},t.prototype.getLayerSeries=function(){for(var n=this.getData(),r=n.count(),a=[],o=0;o<r;++o)a[o]=o;var i=n.mapDimension("single"),s=sx(a,function(u){return n.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,d){return n.get(i,f)-n.get(i,d)}),l.push({name:c,indices:u})}),l},t.prototype.getAxisTooltipData=function(n,r,a){Ve(n)||(n=n?[n]:[]);for(var o=this.getData(),i=this.getLayerSeries(),s=[],l=i.length,u,c=0;c<l;++c){for(var f=Number.MAX_VALUE,d=-1,v=i[c].indices.length,h=0;h<v;++h){var p=o.get(n[0],i[c].indices[h]),g=Math.abs(p-r);g<=f&&(u=p,f=g,d=i[c].indices[h])}s.push(d)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(n,r,a){var o=this.getData(),i=o.getName(n),s=o.get(o.mapDimension("value"),n);return Mr("nameValue",{name:i,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(er);const j4e=K4e;function Y4e(e,t){e.eachSeriesByType("themeRiver",function(n){var r=n.getData(),a=n.coordinateSystem,o={},i=a.getRect();o.rect=i;var s=n.get("boundaryGap"),l=a.getAxis();if(o.boundaryGap=s,l.orient==="horizontal"){s[0]=at(s[0],i.height),s[1]=at(s[1],i.height);var u=i.height-s[0]-s[1];hO(r,n,u)}else{s[0]=at(s[0],i.width),s[1]=at(s[1],i.width);var c=i.width-s[0]-s[1];hO(r,n,c)}r.setLayout("layoutInfo",o)})}function hO(e,t,n){if(e.count())for(var r=t.coordinateSystem,a=t.getLayerSeries(),o=e.mapDimension("single"),i=e.mapDimension("value"),s=$e(a,function(g){return $e(g.indices,function(m){var y=r.dataToPoint(e.get(o,m));return y[1]=e.get(i,m),y})}),l=q4e(s),u=l.y0,c=n/l.max,f=a.length,d=a[0].indices.length,v,h=0;h<d;++h){v=u[h]*c,e.setItemLayout(a[0].indices[h],{layerIndex:0,x:s[0][h][0],y0:v,y:s[0][h][1]*c});for(var p=1;p<f;++p)v+=s[p-1][h][1]*c,e.setItemLayout(a[p].indices[h],{layerIndex:p,x:s[p][h][0],y0:v,y:s[p][h][1]*c})}}function q4e(e){for(var t=e.length,n=e[0].length,r=[],a=[],o=0,i=0;i<n;++i){for(var s=0,l=0;l<t;++l)s+=e[l][i][1];s>o&&(o=s),r.push(s)}for(var u=0;u<n;++u)a[u]=(o-r[u])/2;o=0;for(var c=0;c<n;++c){var f=r[c]+a[c];f>o&&(o=f)}return{y0:a,max:o}}function X4e(e){e.registerChartView(U4e),e.registerSeriesModel(j4e),e.registerLayout(Y4e),e.registerProcessor(sp("themeRiver"))}var Z4e=2,J4e=4,Q4e=function(e){ye(t,e);function t(n,r,a,o){var i=e.call(this)||this;i.z2=Z4e,i.textConfig={inside:!0},Vt(i).seriesIndex=r.seriesIndex;var s=new _n({z2:J4e,silent:n.getModel().get(["label","silent"])});return i.setTextContent(s),i.updateData(!0,n,r,a,o),i}return t.prototype.updateData=function(n,r,a,o,i){this.node=r,r.piece=this,a=a||this._seriesModel,o=o||this._ecModel;var s=this;Vt(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),f=Pe({},c);f.label=null;var d=r.getVisual("style");d.lineJoin="bevel";var v=r.getVisual("decal");v&&(d.decal=mh(v,i));var h=Ss(l.getModel("itemStyle"),f,!0);Pe(f,h),j(Ka,function(y){var b=s.ensureState(y),w=l.getModel([y,"itemStyle"]);b.style=w.getItemStyle();var S=Ss(w,f);S&&(b.shape=S)}),n?(s.setShape(f),s.shape.r=c.r0,Xn(s,{shape:{r:c.r}},a,r.dataIndex)):(Sn(s,{shape:f},a),oi(s)),s.useStyle(d),this._updateLabel(a);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=a||this._seriesModel,this._ecModel=o||this._ecModel;var g=u.get("focus"),m=g==="relative"?hg(r.getAncestorsIndices(),r.getDescendantIndices()):g==="ancestor"?r.getAncestorsIndices():g==="descendant"?r.getDescendantIndices():g;Jn(this,m,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(n){var r=this,a=this.node.getModel(),o=a.getModel("label"),i=this.node.getLayout(),s=i.endAngle-i.startAngle,l=(i.startAngle+i.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),v=this.node.dataIndex,h=o.get("minAngle")/180*Math.PI,p=o.get("show")&&!(h!=null&&Math.abs(s)<h);d.ignore=!p,j(wg,function(m){var y=m==="normal"?a.getModel("label"):a.getModel([m,"label"]),b=m==="normal",w=b?d:d.ensureState(m),S=n.getFormattedLabel(v,m);b&&(S=S||r.node.name),w.style=zn(y,{},null,m!=="normal",!0),S&&(w.style.text=S);var x=y.get("show");x!=null&&!b&&(w.ignore=!x);var C=g(y,"position"),T=b?f:f.states[m],M=T.style.fill;T.textConfig={outsideFill:y.get("color")==="inherit"?M:null,inside:C!=="outside"};var k,E=g(y,"distance")||0,A=g(y,"align"),I=g(y,"rotate"),O=Math.PI*.5,z=Math.PI*1.5,$=wo(I==="tangential"?Math.PI/2-l:l),P=$>O&&!yg($-O)&&$<z;C==="outside"?(k=i.r+E,A=P?"right":"left"):!A||A==="center"?(s===2*Math.PI&&i.r0===0?k=0:k=(i.r+i.r0)/2,A="center"):A==="left"?(k=i.r0+E,A=P?"right":"left"):A==="right"&&(k=i.r-E,A=P?"left":"right"),w.style.align=A,w.style.verticalAlign=g(y,"verticalAlign")||"middle",w.x=k*u+i.cx,w.y=k*c+i.cy;var L=0;I==="radial"?L=wo(-l)+(P?Math.PI:0):I==="tangential"?L=wo(Math.PI/2-l)+(P?Math.PI:0):gn(I)&&(L=I*Math.PI/180),w.rotation=wo(L)});function g(m,y){var b=m.get(y);return b??o.get(y)}d.dirtyStyle()},t}(ja);const pO=Q4e;var xC="sunburstRootToNode",gO="sunburstHighlight",e3e="sunburstUnhighlight";function t3e(e){e.registerAction({type:xC,update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"sunburst",query:t},r);function r(a,o){var i=Bg(t,[xC],a);if(i){var s=a.getViewRoot();s&&(t.direction=sM(s,i.node)?"rollUp":"drillDown"),a.resetViewRoot(i.node)}}}),e.registerAction({type:gO,update:"none"},function(t,n,r){t=Pe({},t),n.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(o){var i=Bg(t,[gO],o);i&&(t.dataIndex=i.node.dataIndex)}r.dispatchAction(Pe(t,{type:"highlight"}))}),e.registerAction({type:e3e,update:"updateView"},function(t,n,r){t=Pe({},t),r.dispatchAction(Pe(t,{type:"downplay"}))})}var n3e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a,o){var i=this;this.seriesModel=n,this.api=a,this.ecModel=r;var s=n.getData(),l=s.tree.root,u=n.getViewRoot(),c=this.group,f=n.get("renderLabelForZeroData"),d=[];u.eachNode(function(y){d.push(y)});var v=this._oldChildren||[];h(d,v),m(l,u),this._initEvents(),this._oldChildren=d;function h(y,b){if(y.length===0&&b.length===0)return;new Hl(b,y,w,w).add(S).update(S).remove(Yt(S,null)).execute();function w(x){return x.getId()}function S(x,C){var T=x==null?null:y[x],M=C==null?null:b[C];p(T,M)}}function p(y,b){if(!f&&y&&!y.getValue()&&(y=null),y!==l&&b!==l){if(b&&b.piece)y?(b.piece.updateData(!1,y,n,r,a),s.setItemGraphicEl(y.dataIndex,b.piece)):g(b);else if(y){var w=new pO(y,n,r,a);c.add(w),s.setItemGraphicEl(y.dataIndex,w)}}}function g(y){y&&y.piece&&(c.remove(y.piece),y.piece=null)}function m(y,b){b.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,y,n,r,a):(i.virtualPiece=new pO(y,n,r,a),c.add(i.virtualPiece)),b.piece.off("click"),i.virtualPiece.on("click",function(w){i._rootToNode(b.parentNode)})):i.virtualPiece&&(c.remove(i.virtualPiece),i.virtualPiece=null)}},t.prototype._initEvents=function(){var n=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,o=n.seriesModel.getViewRoot();o.eachNode(function(i){if(!a&&i.piece&&i.piece===r.target){var s=i.getModel().get("nodeClick");if(s==="rootToNode")n._rootToNode(i);else if(s==="link"){var l=i.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";Fb(u,c)}}a=!0}})})},t.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:xC,from:this.uid,seriesId:this.seriesModel.id,targetNode:n})},t.prototype.containPoint=function(n,r){var a=r.getData(),o=a.getItemLayout(0);if(o){var i=n[0]-o.cx,s=n[1]-o.cy,l=Math.sqrt(i*i+s*s);return l<=o.r&&l>=o.r0}},t.type="sunburst",t}(Fn);const r3e=n3e;var a3e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(n,r){var a={name:n.name,children:n.data};PY(a);var o=this._levelModels=$e(n.levels||[],function(l){return new Tn(l,this,r)},this),i=iM.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=i.getNodeByDataIndex(c),d=o[f.depth];return d&&(u.parentModel=d),u})}return i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treePathInfo=o4(a,this),r},t.prototype.getLevelModel=function(n){return this._levelModels&&this._levelModels[n.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},t.prototype.enableAriaDecal=function(){Nj(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(er);function PY(e){var t=0;j(e.children,function(r){PY(r);var a=r.value;Ve(a)&&(a=a[0]),t+=a});var n=e.value;Ve(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),Ve(e.value)?e.value[0]=n:e.value=n}const o3e=a3e;var mO=Math.PI/180;function i3e(e,t,n){t.eachSeriesByType(e,function(r){var a=r.get("center"),o=r.get("radius");Ve(o)||(o=[0,o]),Ve(a)||(a=[a,a]);var i=n.getWidth(),s=n.getHeight(),l=Math.min(i,s),u=at(a[0],i),c=at(a[1],s),f=at(o[0],l/2),d=at(o[1],l/2),v=-r.get("startAngle")*mO,h=r.get("minAngle")*mO,p=r.getData().tree.root,g=r.getViewRoot(),m=g.depth,y=r.get("sort");y!=null&&RY(g,y);var b=0;j(g.children,function($){!isNaN($.getValue())&&b++});var w=g.getValue(),S=Math.PI/(w||b)*2,x=g.depth>0,C=g.height-(x?-1:1),T=(d-f)/(C||1),M=r.get("clockwise"),k=r.get("stillShowZeroSum"),E=M?1:-1,A=function($,P){if($){var L=P;if($!==p){var V=$.getValue(),B=w===0&&k?S:V*S;B<h&&(B=h),L=P+E*B;var F=$.depth-m-(x?-1:1),U=f+T*F,G=f+T*(F+1),Y=r.getLevelModel($);if(Y){var X=Y.get("r0",!0),te=Y.get("r",!0),oe=Y.get("radius",!0);oe!=null&&(X=oe[0],te=oe[1]),X!=null&&(U=at(X,l/2)),te!=null&&(G=at(te,l/2))}$.setLayout({angle:B,startAngle:P,endAngle:L,clockwise:M,cx:u,cy:c,r0:U,r:G})}if($.children&&$.children.length){var re=0;j($.children,function(ce){re+=A(ce,P+re)})}return L-P}};if(x){var I=f,O=f+T,z=Math.PI*2;p.setLayout({angle:z,startAngle:v,endAngle:v+z,clockwise:M,cx:u,cy:c,r0:I,r:O})}A(g,v)})}function RY(e,t){var n=e.children||[];e.children=s3e(n,t),n.length&&j(e.children,function(r){RY(r,t)})}function s3e(e,t){if(kt(t)){var n=$e(e,function(a,o){var i=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return i}},index:o}});return n.sort(function(a,o){return t(a.params,o.params)}),$e(n,function(a){return e[a.index]})}else{var r=t==="asc";return e.sort(function(a,o){var i=(a.getValue()-o.getValue())*(r?1:-1);return i===0?(a.dataIndex-o.dataIndex)*(r?-1:1):i})}}function l3e(e){var t={};function n(r,a,o){if(r.depth===0)return Se.color.neutral50;for(var i=r;i&&i.depth>1;)i=i.parentNode;var s=a.getColorFromPalette(i.name||i.dataIndex+"",t);return r.depth>1&&st(s)&&(s=q8(s,(r.depth-1)/(o-1)*.5)),s}e.eachSeriesByType("sunburst",function(r){var a=r.getData(),o=a.tree;o.eachNode(function(i){var s=i.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=n(i,r,o.root.height));var u=a.ensureUniqueItemVisual(i.dataIndex,"style");Pe(u,l)})})}function u3e(e){e.registerChartView(r3e),e.registerSeriesModel(o3e),e.registerLayout(Yt(i3e,"sunburst")),e.registerProcessor(Yt(sp,"sunburst")),e.registerVisual(l3e),t3e(e)}var yO={color:"fill",borderColor:"stroke"},c3e={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Dl=an(),f3e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(n,r){return tu(null,this)},t.prototype.getDataParams=function(n,r,a){var o=e.prototype.getDataParams.call(this,n,r);return a&&(o.info=Dl(a).info),o},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(er);const d3e=f3e;function v3e(e,t){return t=t||[0,0],$e(["x","y"],function(n,r){var a=this.getAxis(n),o=t[r],i=e[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-i)-a.dataToCoord(o+i))},this)}function h3e(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n){return e.dataToPoint(n)},size:lt(v3e,e)}}}function p3e(e,t){return t=t||[0,0],$e([0,1],function(n){var r=t[n],a=e[n]/2,o=[],i=[];return o[n]=r-a,i[n]=r+a,o[1-n]=i[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(i)[n])},this)}function g3e(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(n){return e.dataToPoint(n)},size:lt(p3e,e)}}}function m3e(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,a=(e instanceof Array?e[0]:e)/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(r-a)-n.dataToCoord(r+a))}function y3e(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n){return e.dataToPoint(n)},size:lt(m3e,e)}}}function b3e(e,t){return t=t||[0,0],$e(["Radius","Angle"],function(n,r){var a="get"+n+"Axis",o=this[a](),i=t[r],s=e[r]/2,l=o.type==="category"?o.getBandWidth():Math.abs(o.dataToCoord(i-s)-o.dataToCoord(i+s));return n==="Angle"&&(l=l*Math.PI/180),l},this)}function _3e(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(a){var o=t.dataToRadius(a[0]),i=n.dataToAngle(a[1]),s=e.coordToPoint([o,i]);return s.push(o,i*Math.PI/180),s},size:lt(b3e,e)}}}function w3e(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(r,a){return e.dataToPoint(r,a)},layout:function(r,a){return e.dataToLayout(r,a)}}}}function S3e(e){var t=e.getRect();return{coordSys:{type:"matrix",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n,r){return e.dataToPoint(n,r)},layout:function(n,r){return e.dataToLayout(n,r)}}}}function OY(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!=="tspan"&&(t==="text"||ft(e,"text")))}function NY(e,t,n){var r=e,a,o,i;if(t==="text")i=r;else{i={},ft(r,"text")&&(i.text=r.text),ft(r,"rich")&&(i.rich=r.rich),ft(r,"textFill")&&(i.fill=r.textFill),ft(r,"textStroke")&&(i.stroke=r.textStroke),ft(r,"fontFamily")&&(i.fontFamily=r.fontFamily),ft(r,"fontSize")&&(i.fontSize=r.fontSize),ft(r,"fontStyle")&&(i.fontStyle=r.fontStyle),ft(r,"fontWeight")&&(i.fontWeight=r.fontWeight),o={type:"text",style:i,silent:!0},a={};var s=ft(r,"textPosition");n?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),ft(r,"textPosition")&&(a.position=r.textPosition),ft(r,"textOffset")&&(a.offset=r.textOffset),ft(r,"textRotation")&&(a.rotation=r.textRotation),ft(r,"textDistance")&&(a.distance=r.textDistance)}return bO(i,e),j(i.rich,function(l){bO(l,l)}),{textConfig:a,textContent:o}}function bO(e,t){t&&(t.font=t.textFont||t.font,ft(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),ft(t,"textAlign")&&(e.align=t.textAlign),ft(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),ft(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),ft(t,"textWidth")&&(e.width=t.textWidth),ft(t,"textHeight")&&(e.height=t.textHeight),ft(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),ft(t,"textPadding")&&(e.padding=t.textPadding),ft(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),ft(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),ft(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),ft(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),ft(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),ft(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),ft(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function _O(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||"inside",n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var a=r.textPosition.indexOf("inside")>=0,o=e.fill||Se.color.neutral99;wO(r,t);var i=r.textFill==null;return a?i&&(r.textFill=n.insideFill||Se.color.neutral00,!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=o),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(i&&(r.textFill=e.fill||n.outsideFill||Se.color.neutral00),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,j(t.rich,function(s){wO(s,s)}),r}function wO(e,t){t&&(ft(t,"fill")&&(e.textFill=t.fill),ft(t,"stroke")&&(e.textStroke=t.fill),ft(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),ft(t,"font")&&(e.font=t.font),ft(t,"fontStyle")&&(e.fontStyle=t.fontStyle),ft(t,"fontWeight")&&(e.fontWeight=t.fontWeight),ft(t,"fontSize")&&(e.fontSize=t.fontSize),ft(t,"fontFamily")&&(e.fontFamily=t.fontFamily),ft(t,"align")&&(e.textAlign=t.align),ft(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),ft(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),ft(t,"width")&&(e.textWidth=t.width),ft(t,"height")&&(e.textHeight=t.height),ft(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),ft(t,"padding")&&(e.textPadding=t.padding),ft(t,"borderColor")&&(e.textBorderColor=t.borderColor),ft(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),ft(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),ft(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),ft(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),ft(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),ft(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),ft(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),ft(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),ft(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),ft(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var BY={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},SO=dn(BY);Fs(Ws,function(e,t){return e[t]=1,e},{});Ws.join(", ");var h_=["","style","shape","extra"],Ch=an();function kM(e,t,n,r,a){var o=e+"Animation",i=Qh(e,r,a)||{},s=Ch(t).userDuring;return i.duration>0&&(i.during=s?lt(M3e,{el:t,userDuring:s}):null,i.setToFinal=!0,i.scope=e),Pe(i,n[o]),i}function z2(e,t,n,r){r=r||{};var a=r.dataIndex,o=r.isInit,i=r.clearStyle,s=n.isAnimationEnabled(),l=Ch(e),u=t.style;l.userDuring=t.during;var c={},f={};if(E3e(e,t,f),e.type==="compound")for(var d=e.shape.paths,v=t.shape.paths,h=0;h<v.length;h++){var p=v[h];lS("shape",p,d[h])}else lS("shape",t,f),lS("extra",t,f);if(!o&&s&&(A3e(e,t,c),xO("shape",e,t,c),xO("extra",e,t,c),I3e(e,t,u,c)),f.style=u,x3e(e,f,i),T3e(e,t),s)if(o){var g={};j(h_,function(y){var b=y?t[y]:t;b&&b.enterFrom&&(y&&(g[y]=g[y]||{}),Pe(y?g[y]:g,b.enterFrom))});var m=kM("enter",e,t,n,a);m.duration>0&&e.animateFrom(g,m)}else C3e(e,t,a||0,n,c);VY(e,t),u?e.dirty():e.markRedraw()}function VY(e,t){for(var n=Ch(e).leaveToProps,r=0;r<h_.length;r++){var a=h_[r],o=a?t[a]:t;o&&o.leaveTo&&(n||(n=Ch(e).leaveToProps={}),a&&(n[a]=n[a]||{}),Pe(a?n[a]:n,o.leaveTo))}}function l4(e,t,n,r){if(e){var a=e.parent,o=Ch(e).leaveToProps;if(o){var i=kM("update",e,t,n,0);i.done=function(){a&&a.remove(e),r&&r()},e.animateTo(o,i)}else a&&a.remove(e),r&&r()}}function jf(e){return e==="all"}function x3e(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var a=e.animators,o=0;o<a.length;o++){var i=a[o];i.targetName==="style"&&i.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}function C3e(e,t,n,r,a){if(a){var o=kM("update",e,t,r,n);o.duration>0&&e.animateFrom(a,o)}}function T3e(e,t){ft(t,"silent")&&(e.silent=t.silent),ft(t,"ignore")&&(e.ignore=t.ignore),e instanceof ai&&ft(t,"invisible")&&(e.invisible=t.invisible),e instanceof ln&&ft(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var us={},k3e={setTransform:function(e,t){return us.el[e]=t,this},getTransform:function(e){return us.el[e]},setShape:function(e,t){var n=us.el,r=n.shape||(n.shape={});return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=us.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=us.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=us.el.style;if(t)return t[e]},setExtra:function(e,t){var n=us.el.extra||(us.el.extra={});return n[e]=t,this},getExtra:function(e){var t=us.el.extra;if(t)return t[e]}};function M3e(){var e=this,t=e.el;if(t){var n=Ch(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}us.el=t,r(k3e)}}function xO(e,t,n,r){var a=n[e];if(a){var o=t[e],i;if(o){var s=n.transition,l=a.transition;if(l)if(!i&&(i=r[e]={}),jf(l))Pe(i,o);else for(var u=Bn(l),c=0;c<u.length;c++){var f=u[c],d=o[f];i[f]=d}else if(jf(s)||Xt(s,e)>=0){!i&&(i=r[e]={});for(var v=dn(o),c=0;c<v.length;c++){var f=v[c],d=o[f];L3e(a[f],d)&&(i[f]=d)}}}}}function lS(e,t,n){var r=t[e];if(r)for(var a=n[e]={},o=dn(r),i=0;i<o.length;i++){var s=o[i];a[s]=z0(r[s])}}function A3e(e,t,n){for(var r=t.transition,a=jf(r)?Ws:Bn(r||[]),o=0;o<a.length;o++){var i=a[o];if(!(i==="style"||i==="shape"||i==="extra")){var s=e[i];n[i]=s}}}function E3e(e,t,n){for(var r=0;r<SO.length;r++){var a=SO[r],o=BY[a],i=t[a];i&&(n[o[0]]=i[0],n[o[1]]=i[1])}for(var r=0;r<Ws.length;r++){var s=Ws[r];t[s]!=null&&(n[s]=t[s])}}function I3e(e,t,n,r){if(n){var a=e.style,o;if(a){var i=n.transition,s=t.transition;if(i&&!jf(i)){var l=Bn(i);!o&&(o=r.style={});for(var u=0;u<l.length;u++){var c=l[u],f=a[c];o[c]=f}}else if(e.getAnimationStyleProps&&(jf(s)||jf(i)||Xt(s,"style")>=0)){var d=e.getAnimationStyleProps(),v=d?d.style:null;if(v){!o&&(o=r.style={});for(var h=dn(n),u=0;u<h.length;u++){var c=h[u];if(v[c]){var f=a[c];o[c]=f}}}}}}}function L3e(e,t){return Ea(e)?e!==t:e!=null&&isFinite(e)}var $Y=an(),D3e=["percent","easing","shape","style","extra"];function zY(e){e.stopAnimation("keyframe"),e.attr($Y(e))}function p_(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(Ve(t)){j(t,function(s){p_(e,s,n)});return}var r=t.keyframes,a=t.duration;if(n&&a==null){var o=Qh("enter",n,0);a=o&&o.duration}if(!(!r||!a)){var i=$Y(e);j(h_,function(s){if(!(s&&!e[s])){var l;r.sort(function(u,c){return u.percent-c.percent}),j(r,function(u){var c=e.animators,f=s?u[s]:u;if(f){var d=dn(f);if(s||(d=In(d,function(p){return Xt(D3e,p)<0})),!!d.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var v=0;v<c.length;v++)c[v]!==l&&c[v].targetName===l.targetName&&c[v].stopTracks(d);s&&(i[s]=i[s]||{});var h=s?i[s]:i;j(d,function(p){h[p]=((s?e[s]:e)||{})[p]}),l.whenWithKeys(a*u.percent,f,d,u.easing)}}}),l&&l.delay(t.delay||0).duration(a).start(t.easing)}})}}}var Pl="emphasis",zu="normal",MM="blur",AM="select",vc=[zu,Pl,MM,AM],uS={normal:["itemStyle"],emphasis:[Pl,"itemStyle"],blur:[MM,"itemStyle"],select:[AM,"itemStyle"]},cS={normal:["label"],emphasis:[Pl,"label"],blur:[MM,"label"],select:[AM,"label"]},P3e=["x","y"],R3e="e\0\0",$o={normal:{},emphasis:{},blur:{},select:{}},O3e={cartesian2d:h3e,geo:g3e,single:y3e,polar:_3e,calendar:w3e,matrix:S3e};function CC(e){return e instanceof ln}function TC(e){return e instanceof ai}function N3e(e,t){t.copyTransform(e),TC(t)&&TC(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,CC(t)&&CC(e)&&t.setShape(e.shape))}var B3e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a,o){this._progressiveEls=null;var i=this._data,s=n.getData(),l=this.group,u=CO(n,s,r,a);i||l.removeAll(),s.diff(i).add(function(f){fS(a,null,f,u(f,o),n,l,s)}).remove(function(f){var d=i.getItemGraphicEl(f);d&&l4(d,Dl(d).option,n)}).update(function(f,d){var v=i.getItemGraphicEl(d);fS(a,v,f,u(f,o),n,l,s)}).execute();var c=n.get("clip",!0)?Hm(n.coordinateSystem,!1,n):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(n,r,a){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(n,r,a,o,i){var s=r.getData(),l=CO(r,s,a,o),u=this._progressiveEls=[];function c(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}for(var f=n.start;f<n.end;f++){var d=fS(null,null,f,l(f,i),r,this.group,s);d&&(d.traverse(c),u.push(d))}},t.prototype.eachRendered=function(n){_c(this._progressiveEls||this.group,n)},t.prototype.filterForExposedEvent=function(n,r,a,o){var i=r.element;if(i==null||a.name===i)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===i)return!0;return!1},t.type="custom",t}(Fn);const V3e=B3e;function EM(e){var t=e.type,n;if(t==="path"){var r=e.shape,a=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,o=WY(r);n=xg(o,null,a,r.layout||"center"),Dl(n).customPathData=o}else if(t==="image")n=new da({}),Dl(n).customImagePath=e.style.image;else if(t==="text")n=new _n({});else if(t==="group")n=new At;else if(t==="compoundPath"){var r=e.shape;if(!r||!r.paths){var i="";An(i)}var s=$e(r.paths,function(c){if(c.type==="path")return xg(c.shape.pathData,c,null);var f=Vb(c.type);if(!f){var d="";An(d)}return new f});n=new Fw({shape:{paths:s}})}else{var l=Vb(t);if(!l){var i="";An(i)}n=new l}return Dl(n).customGraphicType=t,n.name=e.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function IM(e,t,n,r,a,o,i){zY(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),r&&r.transition==null&&(r.transition=P3e);var l=r&&r.style;if(l){if(t.type==="text"){var u=l;ft(u,"textFill")&&(u.fill=u.textFill),ft(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=CC(t)?l.decal:null;e&&f&&(f.dirty=!0,c=mh(f,e)),l.__decalPattern=c}if(TC(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}z2(t,r,o,{dataIndex:n,isInit:i,clearStyle:!0}),p_(t,r.keyframeAnimation,o)}function FY(e,t,n,r,a){var o=t.isGroup?null:t,i=a&&a[e].cfg;if(o){var s=o.ensureState(e);if(r===!1){var l=o.getState(e);l&&(l.style=null)}else s.style=r||null;i&&(s.textConfig=i),ad(o)}}function $3e(e,t,n){if(!e.isGroup){var r=e,a=n.currentZ,o=n.currentZLevel;r.z=a,r.zlevel=o;var i=t.z2;i!=null&&(r.z2=i||0);for(var s=0;s<vc.length;s++)z3e(r,t,vc[s])}}function z3e(e,t,n){var r=n===zu,a=r?t:g_(t,n),o=a?a.z2:null,i;o!=null&&(i=r?e:e.ensureState(n),i.z2=o||0)}function CO(e,t,n,r){var a=e.get("renderItem");if(typeof a=="string"){var o=nhe(a);o&&(a=o)}var i=e.coordinateSystem,s={};i&&(s=i.prepareCustoms?i.prepareCustoms(i):O3e[i.type](i));for(var l=Pt({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:S,style:C,ordinalRawValue:x,styleEmphasis:T,visual:E,barLayout:A,currentSeriesIndices:I,font:O},s.api||{}),u={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:F3e(e.getData()),itemPayload:e.get("itemPayload")||{}},c,f,d={},v={},h={},p={},g=0;g<vc.length;g++){var m=vc[g];h[m]=e.getModel(uS[m]),p[m]=e.getModel(cS[m])}function y(z){return z===c?f||(f=t.getItemModel(z)):t.getItemModel(z)}function b(z,$){return t.hasItemOption?z===c?d[$]||(d[$]=y(z).getModel(uS[$])):y(z).getModel(uS[$]):h[$]}function w(z,$){return t.hasItemOption?z===c?v[$]||(v[$]=y(z).getModel(cS[$])):y(z).getModel(cS[$]):p[$]}return function(z,$){return c=z,f=null,d={},v={},a&&a(Pt({dataIndexInside:z,dataIndex:t.getRawIndex(z),actionType:$?$.type:null},u),l)};function S(z,$){return $==null&&($=c),t.getStore().get(t.getDimensionIndex(z||0),$)}function x(z,$){$==null&&($=c),z=z||0;var P=t.getDimensionInfo(z);if(!P){var L=t.getDimensionIndex(z);return L>=0?t.getStore().get(L,$):void 0}var V=t.get(P.name,$),B=P&&P.ordinalMeta;return B?B.categories[V]:V}function C(z,$){$==null&&($=c);var P=t.getItemVisual($,"style"),L=P&&P.fill,V=P&&P.opacity,B=b($,zu).getItemStyle();L!=null&&(B.fill=L),V!=null&&(B.opacity=V);var F={inheritColor:st(L)?L:Se.color.neutral99},U=w($,zu),G=zn(U,null,F,!1,!0);G.text=U.getShallow("show")?yt(e.getFormattedLabel($,zu),_h(t,$)):null;var Y=$b(U,F,!1);return k(z,B),B=_O(B,G,Y),z&&M(B,z),B.legacy=!0,B}function T(z,$){$==null&&($=c);var P=b($,Pl).getItemStyle(),L=w($,Pl),V=zn(L,null,null,!0,!0);V.text=L.getShallow("show")?Mo(e.getFormattedLabel($,Pl),e.getFormattedLabel($,zu),_h(t,$)):null;var B=$b(L,null,!0);return k(z,P),P=_O(P,V,B),z&&M(P,z),P.legacy=!0,P}function M(z,$){for(var P in $)ft($,P)&&(z[P]=$[P])}function k(z,$){z&&(z.textFill&&($.textFill=z.textFill),z.textPosition&&($.textPosition=z.textPosition))}function E(z,$){if($==null&&($=c),ft(yO,z)){var P=t.getItemVisual($,"style");return P?P[yO[z]]:null}if(ft(c3e,z))return t.getItemVisual($,z)}function A(z){if(i.type==="cartesian2d"){var $=i.getBaseAxis();return ape(Pt({axis:$},z))}}function I(){return n.getCurrentSeriesIndices()}function O(z){return lk(z,n)}}function F3e(e){var t={};return j(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var a=r.coordDim,o=t[a]=t[a]||[];o[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function fS(e,t,n,r,a,o,i){if(!r){o.remove(t);return}var s=LM(e,t,n,r,a,o);return s&&i.setItemGraphicEl(n,s),s&&Jn(s,r.focus,r.blurScope,r.emphasisDisabled),s}function LM(e,t,n,r,a,o){var i=-1,s=t;t&&HY(t,r,a)&&(i=Xt(o.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=EM(r),s&&N3e(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),r.tooltipDisabled&&(u.tooltipDisabled=!0),$o.normal.cfg=$o.normal.conOpt=$o.emphasis.cfg=$o.emphasis.conOpt=$o.blur.cfg=$o.blur.conOpt=$o.select.cfg=$o.select.conOpt=null,$o.isLegacy=!1,W3e(u,n,r,a,l,$o),H3e(u,n,r,a,l),IM(e,u,n,r,$o,a,l),ft(r,"info")&&(Dl(u).info=r.info);for(var c=0;c<vc.length;c++){var f=vc[c];if(f!==zu){var d=g_(r,f),v=DM(r,d,f);FY(f,u,d,v,$o)}}return $3e(u,r,a),r.type==="group"&&G3e(e,u,n,r,a),i>=0?o.replaceAt(u,i):o.add(u),u}function HY(e,t,n){var r=Dl(e),a=t.type,o=t.shape,i=t.style;return n.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&Y3e(o)&&WY(o)!==r.customPathData||a==="image"&&ft(i,"image")&&i.image!==r.customImagePath}function H3e(e,t,n,r,a){var o=n.clipPath;if(o===!1)e&&e.getClipPath()&&e.removeClipPath();else if(o){var i=e.getClipPath();i&&HY(i,o,r)&&(i=null),i||(i=EM(o),e.setClipPath(i)),IM(null,i,t,o,null,r,a)}}function W3e(e,t,n,r,a,o){if(!(e.isGroup||e.type==="compoundPath")){TO(n,null,o),TO(n,Pl,o);var i=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(i!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(i===!1)c&&e.removeTextContent();else{i=o.normal.conOpt=i||{type:"text"},c?c.clearStates():(c=EM(i),e.setTextContent(c)),IM(null,c,t,i,null,r,a);for(var f=i&&i.style,d=0;d<vc.length;d++){var v=vc[d];if(v!==zu){var h=o[v].conOpt;FY(v,c,h,DM(i,h,v),null)}}f?c.dirty():c.markRedraw()}}}}function TO(e,t,n){var r=t?g_(e,t):e,a=t?DM(e,r,Pl):e.style,o=e.type,i=r?r.textConfig:null,s=e.textContent,l=s?t?g_(s,t):s:null;if(a&&(n.isLegacy||OY(a,o,!!i,!!l))){n.isLegacy=!0;var u=NY(a,o,!t);!i&&u.textConfig&&(i=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var f=t?n[t]:n.normal;f.cfg=i,f.conOpt=l}function g_(e,t){return t?e?e[t]:null:e}function DM(e,t,n){var r=t&&t.style;return r==null&&n===Pl&&e&&(r=e.styleEmphasis),r}function G3e(e,t,n,r,a){var o=r.children,i=o?o.length:0,s=r.$mergeChildren,l=s==="byName"||r.diffChildrenByName,u=s===!1;if(!(!i&&!l&&!u)){if(l){K3e({api:e,oldChildren:t.children()||[],newChildren:o||[],dataIndex:n,seriesModel:a,group:t});return}u&&t.removeAll();for(var c=0;c<i;c++){var f=o[c],d=t.childAt(c);f?(f.ignore==null&&(f.ignore=!1),LM(e,d,n,f,a,t)):d.ignore=!0}for(var v=t.childCount()-1;v>=c;v--){var h=t.childAt(v);U3e(t,h,a)}}}function U3e(e,t,n){t&&l4(t,Dl(e).option,n)}function K3e(e){new Hl(e.oldChildren,e.newChildren,kO,kO,e).add(MO).update(MO).remove(j3e).execute()}function kO(e,t){var n=e&&e.name;return n??R3e+t}function MO(e,t){var n=this.context,r=e!=null?n.newChildren[e]:null,a=t!=null?n.oldChildren[t]:null;LM(n.api,a,n.dataIndex,r,n.seriesModel,n.group)}function j3e(e){var t=this.context,n=t.oldChildren[e];n&&l4(n,Dl(n).option,t.seriesModel)}function WY(e){return e&&(e.pathData||e.d)}function Y3e(e){return e&&(ft(e,"pathData")||ft(e,"d"))}function q3e(e){e.registerChartView(V3e),e.registerSeriesModel(d3e)}var hf=an(),AO=Mt,dS=lt,X3e=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,n,r,a){var o=n.get("value"),i=n.get("status");if(this._axisModel=t,this._axisPointerModel=n,this._api=r,!(!a&&this._lastValue===o&&this._lastStatus===i)){this._lastValue=o,this._lastStatus=i;var s=this._group,l=this._handle;if(!i||i==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,o,t,n,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,n);if(!s)s=this._group=new At,this.createPointerEl(s,u,t,n),this.createLabelEl(s,u,t,n),r.getZr().add(s);else{var d=Yt(EO,n,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,n)}LO(s,n,!0),this._renderHandle(o)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,n){var r=n.get("animation"),a=t.axis,o=a.type==="category",i=n.get("snap");if(!i&&!o)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(o&&a.getBandWidth()>s)return!0;if(i){var l=Qk(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},e.prototype.makeElOption=function(t,n,r,a,o){},e.prototype.createPointerEl=function(t,n,r,a){var o=n.pointer;if(o){var i=hf(t).pointerEl=new xd[o.type](AO(n.pointer));t.add(i)}},e.prototype.createLabelEl=function(t,n,r,a){if(n.label){var o=hf(t).labelEl=new _n(AO(n.label));t.add(o),IO(o,a)}},e.prototype.updatePointerEl=function(t,n,r){var a=hf(t).pointerEl;a&&n.pointer&&(a.setStyle(n.pointer.style),r(a,{shape:n.pointer.shape}))},e.prototype.updateLabelEl=function(t,n,r,a){var o=hf(t).labelEl;o&&(o.setStyle(n.label.style),r(o,{x:n.label.x,y:n.label.y}),IO(o,a))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),a=this._handle,o=n.getModel("handle"),i=n.get("status");if(!o.get("show")||!i||i==="hide"){a&&r.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Pm(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Vl(u.event)},onmousedown:dS(this._onHandleDragMove,this,0,0),drift:dS(this._onHandleDragMove,this),ondragend:dS(this._onHandleDragEnd,this)}),r.add(a)),LO(a,n,!1),a.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");Ve(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,ap(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){EO(this._axisPointerModel,!n&&this._moveAnimation,this._handle,vS(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,n){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(vS(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(vS(a)),hf(r).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var n=t.getZr(),r=this._group,a=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),a&&n.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Mg(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,n,r){return r=r||0,{x:t[r],y:t[1-r],width:n[r],height:n[1-r]}},e}();function EO(e,t,n,r){GY(hf(n).lastProp,r)||(hf(n).lastProp=r,t?Sn(n,r,e):(n.stopAnimation(),n.attr(r)))}function GY(e,t){if(Rt(e)&&Rt(t)){var n=!0;return j(t,function(r,a){n=n&&GY(e[a],r)}),!!n}else return e===t}function IO(e,t){e[t.get(["label","show"])?"show":"hide"]()}function vS(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function LO(e,t,n){var r=t.get("z"),a=t.get("zlevel");e&&e.traverse(function(o){o.type!=="group"&&(r!=null&&(o.z=r),a!=null&&(o.zlevel=a),o.silent=n)})}const PM=X3e;function RM(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 UY(e,t,n,r,a){var o=n.get("value"),i=KY(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Rm(s.get("padding")||0),u=s.getFont(),c=Iw(i,u),f=a.position,d=c.width+l[1]+l[3],v=c.height+l[0]+l[2],h=a.align;h==="right"&&(f[0]-=d),h==="center"&&(f[0]-=d/2);var p=a.verticalAlign;p==="bottom"&&(f[1]-=v),p==="middle"&&(f[1]-=v/2),Z3e(f,d,v,r);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:zn(s,{text:i,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function Z3e(e,t,n,r){var a=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function KY(e,t,n,r,a){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:a.precision}),i=a.formatter;if(i){var s={value:Xb(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};j(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),st(i)?o=i.replace("{value}",o):kt(i)&&(o=i(s))}return o}function OM(e,t,n){var r=Jr();return yc(r,r,n.rotation),Hs(r,r,n.position),Ci([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function jY(e,t,n,r,a,o){var i=Wl.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get(["label","margin"]),UY(t,r,a,o,{position:OM(r.axis,e,n),align:i.textAlign,verticalAlign:i.textVerticalAlign})}function NM(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function YY(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function DO(e,t,n,r,a,o){return{cx:e,cy:t,r0:n,r,startAngle:a,endAngle:o,clockwise:!0}}var J3e=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,a,o,i){var s=a.axis,l=s.grid,u=o.get("type"),c=PO(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=RM(o),v=Q3e[u](s,f,c);v.style=d,n.graphicKey=v.type,n.pointer=v}var h=s_(l.getRect(),a);jY(r,n,h,a,o,i)},t.prototype.getHandleTransform=function(n,r,a){var o=s_(r.axis.grid.getRect(),r,{labelInside:!1});o.labelMargin=a.get(["handle","margin"]);var i=OM(r.axis,n,o);return{x:i[0],y:i[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,a,o){var i=a.axis,s=i.grid,l=i.getGlobalExtent(!0),u=PO(s,i).getOtherAxis(i).getGlobalExtent(),c=i.dim==="x"?0:1,f=[n.x,n.y];f[c]+=r[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,v=[d,d];v[c]=f[c];var h=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:v,tooltipOption:h[c]}},t}(PM);function PO(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var Q3e={line:function(e,t,n){var r=NM([t,n[0]],[t,n[1]],RO(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),a=n[1]-n[0];return{type:"Rect",shape:YY([t-r/2,n[0]],[r,a],RO(e))}}};function RO(e){return e.dim==="x"?0:1}const e6e=J3e;var t6e=function(e){ye(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:Se.color.border,width:1,type:"dashed"},shadowStyle:{color:Se.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:Se.color.neutral00,padding:[5,7,5,7],backgroundColor:Se.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:Se.color.accent40,throttle:40}},t}(mn);const n6e=t6e;var Ml=an(),r6e=j;function qY(e,t,n){if(!kn.node){var r=t.getZr();Ml(r).records||(Ml(r).records={}),a6e(r,t);var a=Ml(r).records[e]||(Ml(r).records[e]={});a.handler=n}}function a6e(e,t){if(Ml(e).initialized)return;Ml(e).initialized=!0,n("click",Yt(OO,"click")),n("mousemove",Yt(OO,"mousemove")),n("globalout",i6e);function n(r,a){e.on(r,function(o){var i=s6e(t);r6e(Ml(e).records,function(s){s&&a(s,o,i.dispatchAction)}),o6e(i.pendings,t)})}}function o6e(e,t){var n=e.showTip.length,r=e.hideTip.length,a;n?a=e.showTip[n-1]:r&&(a=e.hideTip[r-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function i6e(e,t,n){e.handler("leave",null,n)}function OO(e,t,n,r){t.handler(e,n,r)}function s6e(e){var t={showTip:[],hideTip:[]},n=function(r){var a=t[r.type];a?a.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function kC(e,t){if(!kn.node){var n=t.getZr(),r=(Ml(n).records||{})[e];r&&(Ml(n).records[e]=null)}}var l6e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var o=r.getComponent("tooltip"),i=n.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";qY("axisPointer",a,function(s,l,u){i!=="none"&&(s==="leave"||i.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(n,r){kC("axisPointer",r)},t.prototype.dispose=function(n,r){kC("axisPointer",r)},t.type="axisPointer",t}(or);const u6e=l6e;function XY(e,t){var n=[],r=e.seriesIndex,a;if(r==null||!(a=t.getSeriesByIndex(r)))return{point:[]};var o=a.getData(),i=nd(o,e);if(i==null||i<0||Ve(i))return{point:[]};var s=o.getItemGraphicEl(i),l=a.coordinateSystem;if(a.getTooltipPosition)n=a.getTooltipPosition(i)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,v=f==="x"||f==="radius"?1:0,h=o.mapDimension(d),p=[];p[v]=o.get(h,i),p[1-v]=o.get(o.getCalculationInfo("stackResultDimension"),i),n=l.dataToPoint(p)||[]}else n=l.dataToPoint(o.getValues($e(l.dimensions,function(m){return o.mapDimension(m)}),i))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),n=[g.x+g.width/2,g.y+g.height/2]}return{point:n,el:s}}var NO=an();function c6e(e,t,n){var r=e.currTrigger,a=[e.x,e.y],o=e,i=e.dispatchAction||lt(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){F2(a)&&(a=XY({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=F2(a),u=o.axesInfo,c=s.axesInfo,f=r==="leave"||F2(a),d={},v={},h={list:[],map:{}},p={showPointer:Yt(d6e,v),showTooltip:Yt(v6e,h)};j(s.coordSysMap,function(m,y){var b=l||m.containPoint(a);j(s.coordSysAxesInfo[y],function(w,S){var x=w.axis,C=m6e(u,w);if(!f&&b&&(!u||C)){var T=C&&C.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&BO(w,T,p,!1,d)}})});var g={};return j(c,function(m,y){var b=m.linkGroup;b&&!v[y]&&j(b.axesInfo,function(w,S){var x=v[S];if(w!==m&&x){var C=x.value;b.mapper&&(C=m.axis.scale.parse(b.mapper(C,VO(w),VO(m)))),g[m.key]=C}})}),j(g,function(m,y){BO(c[y],m,p,!0,d)}),h6e(v,c,d),p6e(h,a,e,i),g6e(c,i,n),d}}function BO(e,t,n,r,a){var o=e.axis;if(!(o.scale.isBlank()||!o.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var i=f6e(t,e),s=i.payloadBatch,l=i.snapToValue;s[0]&&a.seriesIndex==null&&Pe(a,s[0]),!r&&e.snap&&o.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,i,l)}}function f6e(e,t){var n=t.axis,r=n.dim,a=e,o=[],i=Number.MAX_VALUE,s=-1;return j(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,d;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,e,n);d=v.dataIndices,f=v.nestestValue}else{if(d=l.indicesOfNearest(r,c[0],e,n.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var h=e-f,p=Math.abs(h);p<=i&&((p<i||h>=0&&s<0)&&(i=p,s=h,a=f,o.length=0),j(d,function(g){o.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:o,snapToValue:a}}function d6e(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function v6e(e,t,n,r){var a=n.payloadBatch,o=t.axis,i=o.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=Ng(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:i.componentIndex,axisType:i.type,axisId:i.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function h6e(e,t,n){var r=n.axesInfo=[];j(t,function(a,o){var i=a.axisPointerModel.option,s=e[o];s?(!a.useHandle&&(i.status="show"),i.value=s.value,i.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(i.status="hide"),i.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:i.value})})}function p6e(e,t,n,r){if(F2(t)||!e.list.length){r({type:"hideTip"});return}var a=((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:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}function g6e(e,t,n){var r=n.getZr(),a="axisPointerLastHighlights",o=NO(r)[a]||{},i=NO(r)[a]={};j(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&j(f.seriesDataIndices,function(d){var v=d.seriesIndex+" | "+d.dataIndex;i[v]=d})});var s=[],l=[];j(o,function(u,c){!i[c]&&l.push(u)}),j(i,function(u,c){!o[c]&&s.push(u)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function m6e(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 VO(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 F2(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Um(e){Id.registerAxisPointerClass("CartesianAxisPointer",e6e),e.registerComponentModel(n6e),e.registerComponentView(u6e),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!Ve(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=Kme(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},c6e)}function y6e(e){Qt(yj),Qt(Um)}var b6e=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,a,o,i){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(r),d=o.get("type");if(d&&d!=="none"){var v=RM(o),h=w6e[d](s,l,f,c);h.style=v,n.graphicKey=h.type,n.pointer=h}var p=o.get(["label","margin"]),g=_6e(r,a,o,l,p);UY(n,a,o,i,g)},t}(PM);function _6e(e,t,n,r,a){var o=t.axis,i=o.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,f;if(o.dim==="radius"){var d=Jr();yc(d,d,s),Hs(d,d,[r.cx,r.cy]),u=Ci([i,-a],d);var v=t.getModel("axisLabel").get("rotate")||0,h=Wl.innerTextLayout(s,v*Math.PI/180,-1);c=h.textAlign,f=h.textVerticalAlign}else{var p=l[1];u=r.coordToPoint([p+a,i]);var g=r.cx,m=r.cy;c=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-m)/p<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var w6e={line:function(e,t,n,r){return e.dim==="angle"?{type:"Line",shape:NM(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var a=Math.max(1,e.getBandWidth()),o=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:DO(t.cx,t.cy,r[0],r[1],(-n-a/2)*o,(-n+a/2)*o)}:{type:"Sector",shape:DO(t.cx,t.cy,n-a/2,n+a/2,0,Math.PI*2)}}};const S6e=b6e;var x6e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.findAxisModel=function(n){var r,a=this.ecModel;return a.eachComponent(n,function(o){o.getCoordSysModel()===this&&(r=o)},this),r},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(mn);const C6e=x6e;var BM=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",lr).models[0]},t.type="polarAxis",t}(mn);Er(BM,$m);var T6e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="angleAxis",t}(BM),k6e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="radiusAxis",t}(BM),VM=function(e){ye(t,e);function t(n,r){return e.call(this,"radius",n,r)||this}return t.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},t}(Gi);VM.prototype.dataToRadius=Gi.prototype.dataToCoord;VM.prototype.radiusToData=Gi.prototype.coordToData;const M6e=VM;var A6e=an(),$M=function(e){ye(t,e);function t(n,r){return e.call(this,"angle",n,r||[0,360])||this}return t.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var n=this,r=n.getLabelModel(),a=n.scale,o=a.getExtent(),i=a.count();if(o[1]-o[0]<1)return 0;var s=o[0],l=n.dataToCoord(s+1)-n.dataToCoord(s),u=Math.abs(l),c=Iw(s==null?"":s+"",r.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var v=Math.max(0,Math.floor(d)),h=A6e(n.model),p=h.lastAutoInterval,g=h.lastTickCount;return p!=null&&g!=null&&Math.abs(p-v)<=1&&Math.abs(g-i)<=1&&p>v?v=p:(h.lastTickCount=i,h.lastAutoInterval=v),v},t}(Gi);$M.prototype.dataToAngle=Gi.prototype.dataToCoord;$M.prototype.angleToData=Gi.prototype.coordToData;const E6e=$M;var ZY=["radius","angle"],I6e=function(){function e(t){this.dimensions=ZY,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new M6e,this._angleAxis=new E6e,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var n=this.pointToCoord(t);return this._radiusAxis.contain(n[0])&&this._angleAxis.contain(n[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var n="_"+t+"Axis";return this[n]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var n=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===t&&n.push(r),a.scale.type===t&&n.push(a),n},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var n=this._angleAxis;return t===n?this._radiusAxis:n},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var n=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[n],otherAxes:[this.getOtherAxis(n)]}},e.prototype.dataToPoint=function(t,n,r){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],n),this._angleAxis.dataToAngle(t[1],n)],r)},e.prototype.pointToData=function(t,n,r){r=r||[];var a=this.pointToCoord(t);return r[0]=this._radiusAxis.radiusToData(a[0],n),r[1]=this._angleAxis.angleToData(a[1],n),r},e.prototype.pointToCoord=function(t){var n=t[0]-this.cx,r=t[1]-this.cy,a=this.getAngleAxis(),o=a.getExtent(),i=Math.min(o[0],o[1]),s=Math.max(o[0],o[1]);a.inverse?i=s-360:s=i+360;var l=Math.sqrt(n*n+r*r);n/=l,r/=l;for(var u=Math.atan2(-r,n)/Math.PI*180,c=u<i?1:-1;u<i||u>s;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t,n){n=n||[];var r=t[0],a=t[1]/180*Math.PI;return n[0]=Math.cos(a)*r+this.cx,n[1]=-Math.sin(a)*r+this.cy,n},e.prototype.getArea=function(){var t=this.getAngleAxis(),n=this.getRadiusAxis(),r=n.getExtent().slice();r[0]>r[1]&&r.reverse();var a=t.getExtent(),o=Math.PI/180,i=1e-4;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*o,endAngle:-a[1]*o,clockwise:t.inverse,contain:function(s,l){var u=s-this.cx,c=l-this.cy,f=u*u+c*c,d=this.r,v=this.r0;return d!==v&&f-i<=d*d&&f+i>=v*v},x:this.cx-r[1],y:this.cy-r[1],width:r[1]*2,height:r[1]*2}},e.prototype.convertToPixel=function(t,n,r){var a=$O(n);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=$O(n);return a===this?this.pointToData(r):null},e}();function $O(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}const L6e=I6e;function D6e(e,t,n){var r=t.get("center"),a=$r(t,n).refContainer;e.cx=at(r[0],a.width)+a.x,e.cy=at(r[1],a.height)+a.y;var o=e.getRadiusAxis(),i=Math.min(a.width,a.height)/2,s=t.get("radius");s==null?s=[0,"100%"]:Ve(s)||(s=[0,s]);var l=[at(s[0],i),at(s[1],i)];o.inverse?o.setExtent(l[1],l[0]):o.setExtent(l[0],l[1])}function P6e(e,t){var n=this,r=n.getAngleAxis(),a=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===n){var l=s.getData();j(Zb(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),j(Zb(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),yh(r.scale,r.model),yh(a.scale,a.model),r.type==="category"&&!r.onBand){var o=r.getExtent(),i=360/r.scale.count();r.inverse?o[1]+=i:o[1]-=i,r.setExtent(o[0],o[1])}}function R6e(e){return e.mainType==="angleAxis"}function zO(e,t){var n;if(e.type=t.get("type"),e.scale=Jw(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),R6e(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle"),a=(n=t.get("endAngle"))!==null&&n!==void 0?n:r+(e.inverse?-360:360);e.setExtent(r,a)}t.axis=e,e.model=t}var O6e={dimensions:ZY,create:function(e,t){var n=[];return e.eachComponent("polar",function(r,a){var o=new L6e(a+"");o.update=P6e;var i=o.getRadiusAxis(),s=o.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");zO(i,l),zO(s,u),D6e(o,r,t),n.push(o),r.coordinateSystem=o,o.model=r}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",lr).models[0];r.coordinateSystem=a.coordinateSystem}}),n}};const N6e=O6e;var B6e=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Oy(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),a=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function Ny(e){var t=e.getRadiusAxis();return t.inverse?0:1}function FO(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var V6e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return t.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var a=n.axis,o=a.polar,i=o.getRadiusAxis().getExtent(),s=a.getTicksCoords({breakTicks:"none"}),l=a.getMinorTicksCoords(),u=$e(a.getViewLabels(),function(c){c=Mt(c);var f=a.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(d),c});FO(u),FO(s),j(B6e,function(c){n.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&$6e[c](this.group,n,o,s,l,i,u)},this)}},t.type="angleAxis",t}(Id),$6e={axisLine:function(e,t,n,r,a,o){var i=t.getModel(["axisLine","lineStyle"]),s=n.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=Ny(n),f=c?0:1,d,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";o[f]===0?d=new xd[v]({shape:{cx:n.cx,cy:n.cy,r:o[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:i.getLineStyle(),z2:1,silent:!0}):d=new $w({shape:{cx:n.cx,cy:n.cy,r:o[c],r0:o[f]},style:i.getLineStyle(),z2:1,silent:!0}),d.style.fill=null,e.add(d)},axisTick:function(e,t,n,r,a,o){var i=t.getModel("axisTick"),s=(i.get("inside")?-1:1)*i.get("length"),l=o[Ny(n)],u=$e(r,function(c){return new Rr({shape:Oy(n,[l,l+s],c.coord)})});e.add(Yo(u,{style:Pt(i.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,a,o){if(a.length){for(var i=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(i.get("inside")?-1:1)*s.get("length"),u=o[Ny(n)],c=[],f=0;f<a.length;f++)for(var d=0;d<a[f].length;d++)c.push(new Rr({shape:Oy(n,[u,u+l],a[f][d].coord)}));e.add(Yo(c,{style:Pt(s.getModel("lineStyle").getLineStyle(),Pt(i.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,r,a,o,i){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");j(i,function(f,d){var v=l,h=f.tickValue,p=o[Ny(n)],g=n.coordToPoint([p+u,f.coord]),m=n.cx,y=n.cy,b=Math.abs(g[0]-m)/p<.3?"center":g[0]>m?"left":"right",w=Math.abs(g[1]-y)/p<.3?"middle":g[1]>y?"top":"bottom";if(s&&s[h]){var S=s[h];Rt(S)&&S.textStyle&&(v=new Tn(S.textStyle,l,l.ecModel))}var x=new _n({silent:Wl.isLabelSilent(t),style:zn(v,{x:g[0],y:g[1],fill:v.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:b,verticalAlign:w})});if(e.add(x),eu({el:x,componentModel:t,itemName:f.formattedLabel,formatterParamsExtra:{isTruncated:function(){return x.isTruncated},value:f.rawLabel,tickIndex:d}}),c){var C=Wl.makeAxisEventDataBase(t);C.targetType="axisLabel",C.value=f.rawLabel,Vt(x).eventData=C}},this)},splitLine:function(e,t,n,r,a,o){var i=t.getModel("splitLine"),s=i.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<r.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new Rr({shape:Oy(n,o,r[f].coord)}))}for(var f=0;f<c.length;f++)e.add(Yo(c[f],{style:Pt({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,r,a,o){if(a.length){for(var i=t.getModel("minorSplitLine"),s=i.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new Rr({shape:Oy(n,o,a[u][c].coord)}));e.add(Yo(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,r,a,o){if(r.length){var i=t.getModel("splitArea"),s=i.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,d=-r[0].coord*f,v=Math.min(o[0],o[1]),h=Math.max(o[0],o[1]),p=t.get("clockwise"),g=1,m=r.length;g<=m;g++){var y=g===m?r[0].coord:r[g].coord,b=u++%l.length;c[b]=c[b]||[],c[b].push(new ja({shape:{cx:n.cx,cy:n.cy,r0:v,r:h,startAngle:d,endAngle:-y*f,clockwise:p},silent:!0})),d=-y*f}for(var g=0;g<c.length;g++)e.add(Yo(c[g],{style:Pt({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const z6e=V6e;var F6e=["splitLine","splitArea","minorSplitLine"],H6e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return t.prototype.render=function(n,r,a){if(this.group.removeAll(),!!n.get("show")){var o=this._axisGroup,i=this._axisGroup=new At;this.group.add(i);var s=n.axis,l=s.polar,u=l.getAngleAxis(),c=s.getTicksCoords(),f=s.getMinorTicksCoords(),d=u.getExtent()[0],v=s.getExtent(),h=G6e(l,n,d),p=new Wl(n,a,h);p.build(),i.add(p.group),Dm(o,i,n),j(F6e,function(g){n.get([g,"show"])&&!s.scale.isBlank()&&W6e[g](this.group,n,l,d,v,c,f)},this)}},t.type="radiusAxis",t}(Id),W6e={splitLine:function(e,t,n,r,a,o){var i=t.getModel("splitLine"),s=i.getModel("lineStyle"),l=s.get("color"),u=0,c=n.getAngleAxis(),f=Math.PI/180,d=c.getExtent(),v=Math.abs(d[1]-d[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var h=[],p=0;p<o.length;p++){var g=u++%l.length;h[g]=h[g]||[],h[g].push(new xd[v]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[p].coord,0),startAngle:-d[0]*f,endAngle:-d[1]*f,clockwise:c.inverse}}))}for(var p=0;p<h.length;p++)e.add(Yo(h[p],{style:Pt({stroke:l[p%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,a,o,i){if(i.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<i.length;c++)for(var f=0;f<i[c].length;f++)u.push(new bc({shape:{cx:n.cx,cy:n.cy,r:i[c][f].coord}}));e.add(Yo(u,{style:Pt({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,a,o){if(o.length){var i=t.getModel("splitArea"),s=i.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=o[0].coord,d=1;d<o.length;d++){var v=u++%l.length;c[v]=c[v]||[],c[v].push(new ja({shape:{cx:n.cx,cy:n.cy,r0:f,r:o[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=o[d].coord}for(var d=0;d<c.length;d++)e.add(Yo(c[d],{style:Pt({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function G6e(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}const U6e=H6e;function JY(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function QY(e,t){return t.dim+e.model.componentIndex}function K6e(e,t,n){var r={},a=j6e(In(t.getSeriesByType(e),function(o){return!t.isSeriesFiltered(o)&&o.coordinateSystem&&o.coordinateSystem.type==="polar"}));t.eachSeriesByType(e,function(o){if(o.coordinateSystem.type==="polar"){var i=o.getData(),s=o.coordinateSystem,l=s.getBaseAxis(),u=QY(s,l),c=JY(o),f=a[u][c],d=f.offset,v=f.width,h=s.getOtherAxis(l),p=o.coordinateSystem.cx,g=o.coordinateSystem.cy,m=o.get("barMinHeight")||0,y=o.get("barMinAngle")||0;r[c]=r[c]||[];for(var b=i.mapDimension(h.dim),w=i.mapDimension(l.dim),S=lc(i,b),x=l.dim!=="radius"||!o.get("roundCap",!0),C=h.model,T=C.get("startValue"),M=h.dataToCoord(T||0),k=0,E=i.count();k<E;k++){var A=i.get(b,k),I=i.get(w,k),O=A>=0?"p":"n",z=M;S&&(r[c][I]||(r[c][I]={p:M,n:M}),z=r[c][I][O]);var $=void 0,P=void 0,L=void 0,V=void 0;if(h.dim==="radius"){var B=h.dataToCoord(A)-M,F=l.dataToCoord(I);Math.abs(B)<m&&(B=(B<0?-1:1)*m),$=z,P=z+B,L=F-d,V=L-v,S&&(r[c][I][O]=P)}else{var U=h.dataToCoord(A,x)-M,G=l.dataToCoord(I);Math.abs(U)<y&&(U=(U<0?-1:1)*y),$=G+d,P=$+v,L=z,V=z+U,S&&(r[c][I][O]=V)}i.setItemLayout(k,{cx:p,cy:g,r0:$,r:P,startAngle:-L*Math.PI/180,endAngle:-V*Math.PI/180,clockwise:L>=V})}}})}function j6e(e){var t={};j(e,function(r,a){var o=r.getData(),i=r.coordinateSystem,s=i.getBaseAxis(),l=QY(i,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/o.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;t[l]=f;var v=JY(r);d[v]||f.autoWidthCount++,d[v]=d[v]||{width:0,maxWidth:0};var h=at(r.get("barWidth"),c),p=at(r.get("barMaxWidth"),c),g=r.get("barGap"),m=r.get("barCategoryGap");h&&!d[v].width&&(h=Math.min(f.remainedWidth,h),d[v].width=h,f.remainedWidth-=h),p&&(d[v].maxWidth=p),g!=null&&(f.gap=g),m!=null&&(f.categoryGap=m)});var n={};return j(t,function(r,a){n[a]={};var o=r.stacks,i=r.bandWidth,s=at(r.categoryGap,i),l=at(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),j(o,function(p,g){var m=p.maxWidth;m&&m<f&&(m=Math.min(m,u),p.width&&(m=Math.min(m,p.width)),u-=m,p.width=m,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var d=0,v;j(o,function(p,g){p.width||(p.width=f),v=p,d+=p.width*(1+l)}),v&&(d-=v.width*l);var h=-d/2;j(o,function(p,g){n[a][g]=n[a][g]||{offset:h,width:p.width},h+=p.width*(1+l)})}),n}var Y6e={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},q6e={splitNumber:5},X6e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="polar",t}(or);function Z6e(e){Qt(Um),Id.registerAxisPointerClass("PolarAxisPointer",S6e),e.registerCoordinateSystem("polar",N6e),e.registerComponentModel(C6e),e.registerComponentView(X6e),wh(e,"angle",T6e,Y6e),wh(e,"radius",k6e,q6e),e.registerComponentView(z6e),e.registerComponentView(U6e),e.registerLayout(Yt(K6e,"bar"))}function MC(e,t){t=t||{};var n=e.coordinateSystem,r=e.axis,a={},o=r.position,i=r.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=[i==="vertical"?u.vertical[o]:l[0],i==="horizontal"?u.horizontal[o]:l[3]];var c={horizontal:0,vertical:1};a.rotation=Math.PI/2*c[i];var f={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=f[o],e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),la(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var d=e.get(["axisLabel","rotate"]);return a.labelRotate=o==="top"?-d:d,a.z2=1,a}var J6e=["splitArea","splitLine","breakArea"],Q6e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return t.prototype.render=function(n,r,a,o){var i=this.group;i.removeAll();var s=this._axisGroup;this._axisGroup=new At;var l=MC(n),u=new Wl(n,a,l);u.build(),i.add(this._axisGroup),i.add(u.group),j(J6e,function(c){n.get([c,"show"])&&eSe[c](this,this.group,this._axisGroup,n,a)},this),Dm(s,this._axisGroup,n),e.prototype.render.call(this,n,r,a,o)},t.prototype.remove=function(){pj(this)},t.type="singleAxis",t}(Id),eSe={splitLine:function(e,t,n,r,a){var o=r.axis;if(!o.scale.isBlank()){var i=r.getModel("splitLine"),s=i.getModel("lineStyle"),l=s.get("color");l=l instanceof Array?l:[l];for(var u=s.get("width"),c=r.coordinateSystem.getRect(),f=o.isHorizontal(),d=[],v=0,h=o.getTicksCoords({tickModel:i,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],m=0;m<h.length;++m){var y=o.toGlobalCoord(h[m].coord);f?(p[0]=y,p[1]=c.y,g[0]=y,g[1]=c.y+c.height):(p[0]=c.x,p[1]=y,g[0]=c.x+c.width,g[1]=y);var b=new Rr({shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},silent:!0});ph(b.shape,u);var w=v++%l.length;d[w]=d[w]||[],d[w].push(b)}for(var S=s.getLineStyle(["color"]),m=0;m<d.length;++m)t.add(Yo(d[m],{style:Pt({stroke:l[m%l.length]},S),silent:!0}))}},splitArea:function(e,t,n,r,a){hj(e,n,r,r)},breakArea:function(e,t,n,r,a){var o=Gm(),i=r.axis.scale;o&&i.type!=="ordinal"&&o.rectCoordBuildBreakAxis(t,e,r,r.coordinateSystem.getRect(),a)}};const tSe=Q6e;var eq=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}},jitter:0,jitterOverlap:!0,jitterMargin:2},t}(mn);Er(eq,$m.prototype);const hS=eq;var nSe=function(e){ye(t,e);function t(n,r,a,o,i){var s=e.call(this,n,r,a)||this;return s.type=o||"value",s.position=i||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.pointToData=function(n,r){return this.coordinateSystem.pointToData(n)[0]},t}(Gi);const rSe=nSe;var tq=["single"],aSe=function(){function e(t,n,r){this.type="single",this.dimension="single",this.dimensions=tq,this.axisPointerEnabled=!0,this.model=t,this._init(t,n,r)}return e.prototype._init=function(t,n,r){var a=this.dimension,o=new rSe(a,Jw(t),[0,0],t.get("type"),t.get("position")),i=o.type==="category";o.onBand=i&&t.get("boundaryGap"),o.inverse=t.get("inverse"),o.orient=t.get("orient"),t.axis=o,o.model=t,o.coordinateSystem=this,this._axis=o},e.prototype.update=function(t,n){t.eachSeries(function(r){if(r.coordinateSystem===this){var a=r.getData();j(a.mapDimensionsAll(this.dimension),function(o){this._axis.scale.unionExtentFromData(a,o)},this),yh(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(t,n){var r=$r(t,n).refContainer;this._rect=Qn(t.getBoxLayoutParams(),r),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var t=this._rect,n=this._axis,r=n.isHorizontal(),a=r?[0,t.width]:[0,t.height],o=n.inverse?1:0;n.setExtent(a[o],a[1-o]),this._updateAxisTransform(n,r?t.x:t.y)},e.prototype._updateAxisTransform=function(t,n){var r=t.getExtent(),a=r[0]+r[1],o=t.isHorizontal();t.toGlobalCoord=o?function(i){return i+n}:function(i){return a-i+n},t.toLocalCoord=o?function(i){return i-n}:function(i){return a-i+n}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(t){var n=this.getRect(),r=this.getAxis(),a=r.orient;return a==="horizontal"?r.contain(r.toLocalCoord(t[0]))&&t[1]>=n.y&&t[1]<=n.y+n.height:r.contain(r.toLocalCoord(t[1]))&&t[0]>=n.y&&t[0]<=n.y+n.height},e.prototype.pointToData=function(t,n,r){r=r||[];var a=this.getAxis();return r[0]=a.coordToData(a.toLocalCoord(t[a.orient==="horizontal"?0:1])),r},e.prototype.dataToPoint=function(t,n,r){var a=this.getAxis(),o=this.getRect();r=r||[];var i=a.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),r[i]=a.toGlobalCoord(a.dataToCoord(+t)),r[1-i]=i===0?o.y+o.height/2:o.x+o.width/2,r},e.prototype.convertToPixel=function(t,n,r){var a=HO(n);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=HO(n);return a===this?this.pointToData(r):null},e}();function HO(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function oSe(e,t){var n=[];return e.eachComponent("singleAxis",function(r,a){var o=new aSe(r,e,t);o.name="single_"+a,o.resize(r,t),r.coordinateSystem=o,n.push(o)}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",lr).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),n}var iSe={create:oSe,dimensions:tq};const sSe=iSe;var WO=["x","y"],lSe=["width","height"],uSe=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,a,o,i){var s=a.axis,l=s.coordinateSystem,u=pS(l,1-m_(s)),c=l.dataToPoint(r)[0],f=o.get("type");if(f&&f!=="none"){var d=RM(o),v=cSe[f](s,c,u);v.style=d,n.graphicKey=v.type,n.pointer=v}var h=MC(a);jY(r,n,h,a,o,i)},t.prototype.getHandleTransform=function(n,r,a){var o=MC(r,{labelInside:!1});o.labelMargin=a.get(["handle","margin"]);var i=OM(r.axis,n,o);return{x:i[0],y:i[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,a,o){var i=a.axis,s=i.coordinateSystem,l=m_(i),u=pS(s,l),c=[n.x,n.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=pS(s,1-l),d=(f[1]+f[0])/2,v=[d,d];return v[l]=c[l],{x:c[0],y:c[1],rotation:n.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},t}(PM),cSe={line:function(e,t,n){var r=NM([t,n[0]],[t,n[1]],m_(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=e.getBandWidth(),a=n[1]-n[0];return{type:"Rect",shape:YY([t-r/2,n[0]],[r,a],m_(e))}}};function m_(e){return e.isHorizontal()?0:1}function pS(e,t){var n=e.getRect();return[n[WO[t]],n[WO[t]]+n[lSe[t]]]}const fSe=uSe;var dSe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="single",t}(or);function vSe(e){Qt(Um),Id.registerAxisPointerClass("SingleAxisPointer",fSe),e.registerComponentView(dSe),e.registerComponentView(tSe),e.registerComponentModel(hS),wh(e,"single",hS,hS.defaultOption),e.registerCoordinateSystem("single",sSe)}var hSe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r,a){var o=Td(n);e.prototype.init.apply(this,arguments),GO(n,o)},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),GO(this.option,n)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.layoutMode="box",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:Se.color.axisLine,width:1,type:"solid"}},itemStyle:{color:Se.color.neutral00,borderWidth:1,borderColor:Se.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:Se.size.s,color:Se.color.secondary},monthLabel:{show:!0,position:"start",margin:Se.size.s,align:"center",formatter:null,color:Se.color.secondary},yearLabel:{show:!0,position:null,margin:Se.size.xl,formatter:null,color:Se.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(mn);function GO(e,t){var n=e.cellSize,r;Ve(n)?r=n:r=e.cellSize=[n,n],r.length===1&&(r[1]=r[0]);var a=$e([0,1],function(o){return Ofe(t,o)&&(r[o]="auto"),r[o]!=null&&r[o]!=="auto"});Us(e,t,{type:"box",ignoreSize:a})}const pSe=hSe;var gSe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var o=this.group;o.removeAll();var i=n.coordinateSystem,s=i.getRangeInfo(),l=i.getOrient(),u=r.getLocaleModel();this._renderDayRect(n,s,o),this._renderLines(n,s,l,o),this._renderYearText(n,s,l,o),this._renderMonthText(n,u,l,o),this._renderWeekText(n,u,s,l,o)},t.prototype._renderDayRect=function(n,r,a){for(var o=n.coordinateSystem,i=n.getModel("itemStyle").getItemStyle(),s=o.getCellWidth(),l=o.getCellHeight(),u=r.start.time;u<=r.end.time;u=o.getNextNDay(u,1).time){var c=o.dataToCalendarLayout([u],!1).tl,f=new rn({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:i});a.add(f)}},t.prototype._renderLines=function(n,r,a,o){var i=this,s=n.coordinateSystem,l=n.getModel(["splitLine","lineStyle"]).getLineStyle(),u=n.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=r.start,d=0;f.time<=r.end.time;d++){h(f.formatedDate),d===0&&(f=s.getDateInfo(r.start.y+"-"+r.start.m));var v=f.date;v.setMonth(v.getMonth()+1),f=s.getDateInfo(v)}h(s.getNextNDay(r.end.time,1).formatedDate);function h(p){i._firstDayOfMonth.push(s.getDateInfo(p)),i._firstDayPoints.push(s.dataToCalendarLayout([p],!1).tl);var g=i._getLinePointsOfOneWeek(n,p,a);i._tlpoints.push(g[0]),i._blpoints.push(g[g.length-1]),u&&i._drawSplitline(g,l,o)}u&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,c,a),l,o),u&&this._drawSplitline(i._getEdgesPoints(i._blpoints,c,a),l,o)},t.prototype._getEdgesPoints=function(n,r,a){var o=[n[0].slice(),n[n.length-1].slice()],i=a==="horizontal"?0:1;return o[0][i]=o[0][i]-r/2,o[1][i]=o[1][i]+r/2,o},t.prototype._drawSplitline=function(n,r,a){var o=new La({z2:20,shape:{points:n},style:r});a.add(o)},t.prototype._getLinePointsOfOneWeek=function(n,r,a){for(var o=n.coordinateSystem,i=o.getDateInfo(r),s=[],l=0;l<7;l++){var u=o.getNextNDay(i.time,l),c=o.dataToCalendarLayout([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(n,r){return st(n)&&n?Efe(n,r):kt(n)?n(r):r.nameMap},t.prototype._yearTextPositionControl=function(n,r,a,o,i){var s=r[0],l=r[1],u=["center","bottom"];o==="bottom"?(l+=i,u=["center","top"]):o==="left"?s-=i:o==="right"?(s+=i,u=["center","top"]):l-=i;var c=0;return(o==="left"||o==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(n,r,a,o){var i=n.getModel("yearLabel");if(i.get("show")){var s=i.get("margin"),l=i.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=a==="horizontal"?0:1,v={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},h=r.start.y;+r.end.y>+r.start.y&&(h=h+"-"+r.end.y);var p=i.get("formatter"),g={start:r.start.y,end:r.end.y,nameMap:h},m=this._formatterLabel(p,g),y=new _n({z2:30,style:zn(i,{text:m}),silent:i.get("silent")});y.attr(this._yearTextPositionControl(y,v[l],a,l,s)),o.add(y)}},t.prototype._monthTextPositionControl=function(n,r,a,o,i){var s="left",l="top",u=n[0],c=n[1];return a==="horizontal"?(c=c+i,r&&(s="center"),o==="start"&&(l="bottom")):(u=u+i,r&&(l="middle"),o==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(n,r,a,o){var i=n.getModel("monthLabel");if(i.get("show")){var s=i.get("nameMap"),l=i.get("margin"),u=i.get("position"),c=i.get("align"),f=[this._tlpoints,this._blpoints];(!s||st(s))&&(s&&(r=xx(s)||r),s=r.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,v=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var h=c==="center",p=i.get("silent"),g=0;g<f[d].length-1;g++){var m=f[d][g].slice(),y=this._firstDayOfMonth[g];if(h){var b=this._firstDayPoints[g];m[v]=(b[v]+f[0][g+1][v])/2}var w=i.get("formatter"),S=s[+y.m-1],x={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:S},C=this._formatterLabel(w,x),T=new _n({z2:30,style:Pe(zn(i,{text:C}),this._monthTextPositionControl(m,h,a,u,l)),silent:p});o.add(T)}}},t.prototype._weekTextPositionControl=function(n,r,a,o,i){var s="center",l="middle",u=n[0],c=n[1],f=a==="start";return r==="horizontal"?(u=u+o+(f?1:-1)*i[0]/2,s=f?"right":"left"):(c=c+o+(f?1:-1)*i[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(n,r,a,o,i){var s=n.getModel("dayLabel");if(s.get("show")){var l=n.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),d=l.getFirstDayOfWeek();if(!c||st(c)){c&&(r=xx(c)||r);var v=r.get(["time","dayOfWeekShort"]);c=v||$e(r.get(["time","dayOfWeekAbbr"]),function(x){return x[0]})}var h=l.getNextNDay(a.end.time,7-a.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];f=at(f,Math.min(p[1],p[0])),u==="start"&&(h=l.getNextNDay(a.start.time,-(7+a.fweek)).time,f=-f);for(var g=s.get("silent"),m=0;m<7;m++){var y=l.getNextNDay(h,m),b=l.dataToCalendarLayout([y.time],!1).center,w=m;w=Math.abs((m+d)%7);var S=new _n({z2:30,style:Pe(zn(s,{text:c[w]}),this._weekTextPositionControl(b,o,u,f,p)),silent:g});i.add(S)}}},t.type="calendar",t}(or);const mSe=gSe;var gS=864e5,ySe=function(){function e(t,n,r){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t,this._update(n,r)}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(t){t=Sd(t);var n=t.getFullYear(),r=t.getMonth()+1,a=r<10?"0"+r:""+r,o=t.getDate(),i=o<10?"0"+o:""+o,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:n+"",m:a,d:i,day:s,time:t.getTime(),formatedDate:n+"-"+a+"-"+i,date:t}},e.prototype.getNextNDay=function(t,n){return n=n||0,n===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+n),this.getDateInfo(t))},e.prototype._update=function(t,n){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var r=this._rangeInfo.weeks||1,a=["width","height"],o=this._model.getCellSize().slice(),i=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[r,7]:[7,r];j([0,1],function(f){c(o,f)&&(i[a[f]]=o[f]*s[f])});var l={width:n.getWidth(),height:n.getHeight()},u=this._rect=Qn(i,l);j([0,1],function(f){c(o,f)||(o[f]=u[a[f]]/s[f])});function c(f,d){return f[d]!=null&&f[d]!=="auto"}this._sw=o[0],this._sh=o[1]},e.prototype.dataToPoint=function(t,n,r){r=r||[],Ve(t)&&(t=t[0]),n==null&&(n=!0);var a=this.getDateInfo(t),o=this._rangeInfo,i=a.formatedDate;if(n&&!(a.time>=o.start.time&&a.time<o.end.time+gS))return r[0]=r[1]=NaN,r;var s=a.day,l=this._getRangeInfo([o.start.time,i]).nthWeek;return this._orient==="vertical"?(r[0]=this._rect.x+s*this._sw+this._sw/2,r[1]=this._rect.y+l*this._sh+this._sh/2):(r[0]=this._rect.x+l*this._sw+this._sw/2,r[1]=this._rect.y+s*this._sh+this._sh/2),r},e.prototype.pointToData=function(t){var n=this.pointToDate(t);return n&&n.time},e.prototype.dataToLayout=function(t,n,r){r=r||{};var a=r.rect=r.rect||{},o=r.contentRect=r.contentRect||{},i=this.dataToPoint(t,n);return a.x=i[0]-this._sw/2,a.y=i[1]-this._sh/2,a.width=this._sw,a.height=this._sh,Ot.copy(o,a),od(o,this._lineWidth/2,!0,!0),r},e.prototype.dataToCalendarLayout=function(t,n){var r=this.dataToPoint(t,n);return{center:r,tl:[r[0]-this._sw/2,r[1]-this._sh/2],tr:[r[0]+this._sw/2,r[1]-this._sh/2],br:[r[0]+this._sw/2,r[1]+this._sh/2],bl:[r[0]-this._sw/2,r[1]+this._sh/2]}},e.prototype.pointToDate=function(t){var n=Math.floor((t[0]-this._rect.x)/this._sw)+1,r=Math.floor((t[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(r,n-1,a):this._getDateByWeeksAndDay(n,r-1,a)},e.prototype.convertToPixel=function(t,n,r){var a=mS(n);return a===this?a.dataToPoint(r):null},e.prototype.convertToLayout=function(t,n,r){var a=mS(n);return a===this?a.dataToLayout(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=mS(n);return a===this?a.pointToData(r):null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var t=this._model.get("range"),n;if(Ve(t)&&t.length===1&&(t=t[0]),Ve(t))n=t;else{var r=t.toString();if(/^\d{4}$/.test(r)&&(n=[r+"-01-01",r+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(r)){var a=this.getDateInfo(r),o=a.date;o.setMonth(o.getMonth()+1);var i=this.getNextNDay(o,-1);n=[a.formatedDate,i.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(n=[r,r])}if(!n)return t;var s=this._getRangeInfo(n);return s.start.time>s.end.time&&n.reverse(),n},e.prototype._getRangeInfo=function(t){var n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],r;n[0].time>n[1].time&&(r=!0,n.reverse());var a=Math.floor(n[1].time/gS)-Math.floor(n[0].time/gS)+1,o=new Date(n[0].time),i=o.getDate(),s=n[1].date.getDate();o.setDate(i+a-1);var l=o.getDate();if(l!==s)for(var u=o.getTime()-n[1].time>0?1:-1;(l=o.getDate())!==s&&(o.getTime()-n[1].time)*u>0;)a-=u,o.setDate(l-u);var c=Math.floor((a+n[0].day+6)/7),f=r?-c+1:c-1;return r&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:a,weeks:c,nthWeek:f,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(t,n,r){var a=this._getRangeInfo(r);if(t>a.weeks||t===0&&n<a.fweek||t===a.weeks&&n>a.lweek)return null;var o=(t-1)*7-a.fweek+n,i=new Date(a.start.time);return i.setDate(+a.start.d+o),this.getDateInfo(i)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",function(a){var o=new e(a,t,n);r.push(o),a.coordinateSystem=o}),t.eachComponent(function(a,o){Nm({targetModel:o,coordSysType:"calendar",coordSysProvider:hG})}),r},e.dimensions=["time","value"],e}();function mS(e){var t=e.calendarModel,n=e.seriesModel,r=t?t.coordinateSystem:n?n.coordinateSystem:null;return r}const bSe=ySe;function _Se(e){e.registerComponentModel(pSe),e.registerComponentView(mSe),e.registerCoordinateSystem("calendar",bSe)}var xl={level:1,leaf:2,nonLeaf:3},Rl={none:0,all:1,body:2,corner:3};function AC(e,t,n){var r=t[Gt[n]].getCell(e);return!r&&gn(e)&&e<0&&(r=t[Gt[1-n]].getUnitLayoutInfo(n,Math.round(e))),r}function nq(e){var t=e||[];return t[0]=t[0]||[],t[1]=t[1]||[],t[0][0]=t[0][1]=t[1][0]=t[1][1]=NaN,t}function rq(e,t,n,r,a){UO(e[0],t,a,n,r,0),UO(e[1],t,a,n,r,1)}function UO(e,t,n,r,a,o){e[0]=1/0,e[1]=-1/0;var i=r[o],s=Ve(i)?i:[i],l=s.length,u=!!n;if(l>=1?(KO(e,t,s,u,a,o,0),l>1&&KO(e,t,s,u,a,o,l-1)):e[0]=e[1]=NaN,u){var c=-a[Gt[1-o]].getLocatorCount(o),f=a[Gt[o]].getLocatorCount(o)-1;n===Rl.body?c=mr(0,c):n===Rl.corner&&(f=Ao(-1,f)),f<c&&(c=f=NaN),Ma(e[0])&&(e[0]=c),Ma(e[1])&&(e[1]=f),e[0]=mr(Ao(e[0],f),c),e[1]=mr(Ao(e[1],f),c)}}function KO(e,t,n,r,a,o,i){var s=AC(n[i],a,o);if(!s){e[0]=e[1]=NaN;return}var l=s.id[Gt[o]],u=l,c=CSe(s);c&&(u+=c.span[Gt[o]]-1),e[0]=Ao(e[0],l,u),e[1]=mr(e[1],l,u)}function By(e,t){return Ma(e[t][0])||Ma(e[t][1])}function jO(e,t,n,r){t=t||wSe;for(var a=0;a<r;a++)t[a]=!1;for(;;){for(var o=!1,a=0;a<r;a++){var i=n[a];!t[a]&&i.cellMergeOwner&&SSe(e,i.locatorRange)&&(t[a]=!0,o=!0)}if(!o)break}}var wSe=[];function SSe(e,t){return!YO(e[0],t[0])||!YO(e[1],t[1])?!1:(e[0][0]=Ao(e[0][0],t[0][0]),e[0][1]=mr(e[0][1],t[0][1]),e[1][0]=Ao(e[1][0],t[1][0]),e[1][1]=mr(e[1][1],t[1][1]),!0)}function YO(e,t){return e[1]>=t[0]&&e[0]<=t[1]}function qO(e,t){e.id.set(t[0][0],t[1][0]),e.span.set(t[0][1]-e.id.x+1,t[1][1]-e.id.y+1)}function xSe(e,t){e[0][0]=t[0][0],e[0][1]=t[0][1],e[1][0]=t[1][0],e[1][1]=t[1][1]}function XO(e,t,n,r){var a=AC(t[r][0],n,r),o=AC(t[r][1],n,r);e[Gt[r]]=e[Tr[r]]=NaN,a&&o&&(e[Gt[r]]=a.xy,e[Tr[r]]=o.xy+o.wh-a.xy)}function Zp(e,t,n,r){return e[Gt[t]]=n,e[Gt[1-t]]=r,e}function CSe(e){return e&&(e.type===xl.leaf||e.type===xl.nonLeaf)?e:null}function y_(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var ZO=function(){function e(t,n){this._cells=[],this._levels=[],this.dim=t,this.dimIdx=t==="x"?0:1,this._model=n,this._uniqueValueGen=TSe(t);var r=n.get("data",!0);r!=null&&!Ve(r)&&(r=[]),r?this._initByDimModelData(r):this._initBySeriesData()}return e.prototype._initByDimModelData=function(t){var n=this,r=n._cells,a=n._levels,o=[],i=0;n._leavesCount=s(t,0,0),l();return;function s(u,c,f){var d=0;return u&&j(u,function(v,h){var p;st(v)?p={value:v}:Rt(v)?(p=v,v.value!=null&&!st(v.value)&&(p={value:null})):p={value:null};var g={type:xl.nonLeaf,ordinal:NaN,level:f,firstLeafLocator:c,id:new Dt,span:Zp(new Dt,n.dimIdx,1,1),option:p,xy:NaN,wh:NaN,dim:n,rect:y_()};i++,(o[c]||(o[c]=[])).push(g),a[f]||(a[f]={type:xl.level,xy:NaN,wh:NaN,option:null,id:new Dt,dim:n});var m=s(p.children,c,f+1),y=Math.max(1,m);g.span[Gt[n.dimIdx]]=y,d+=y,c+=y}),d}function l(){for(var u=[];r.length<i;)for(var c=0;c<o.length;c++){var f=o[c].pop();if(f){f.ordinal=u.length;var d=f.option.value;u.push(d),r.push(f),n._uniqueValueGen.calcDupBase(d)}}n._uniqueValueGen.ensureValueUnique(u,r);var v=n._ordinalMeta=new Lg({categories:u,needCollect:!1,deduplication:!1});n._scale=new Dg({ordinalMeta:v});for(var h=0;h<n._leavesCount;h++){var p=n._cells[h];p.type=xl.leaf,p.span[Gt[1-n.dimIdx]]=n._levels.length-p.level}n._initCellsId(),n._initLevelIdOptions()}},e.prototype._initBySeriesData=function(){var t=this;t._leavesCount=0,t._levels=[{type:xl.level,xy:NaN,wh:NaN,option:null,id:new Dt,dim:t}],t._initLevelIdOptions();var n=t._ordinalMeta=new Lg({needCollect:!0,deduplication:!0,onCollect:function(r,a){var o=t._cells[a]={type:xl.leaf,ordinal:a,level:0,firstLeafLocator:a,id:new Dt,span:Zp(new Dt,t.dimIdx,1,1),option:{value:r+""},xy:NaN,wh:NaN,dim:t,rect:y_()};t._leavesCount++,t._setCellId(o)}});t._scale=new Dg({ordinalMeta:n})},e.prototype._setCellId=function(t){var n=this._levels.length,r=this.dimIdx;Zp(t.id,r,t.firstLeafLocator,t.level-n)},e.prototype._initCellsId=function(){var t=this._levels.length,n=this.dimIdx;j(this._cells,function(r){Zp(r.id,n,r.firstLeafLocator,r.level-t)})},e.prototype._initLevelIdOptions=function(){var t=this._levels.length,n=this.dimIdx,r=this._model.get("levels",!0);r=Ve(r)?r:[],j(this._levels,function(a,o){Zp(a.id,n,0,o-t),a.option=r[o]})},e.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},e.prototype.resetLayoutIterator=function(t,n,r,a){if(t=t||new qu,n===this.dimIdx){var o=this._leavesCount,i=r!=null?Math.max(0,r):0;a=a!=null?Math.min(a,o):o,t.reset(this._cells,i,i+a)}else{var o=this._levels.length,i=r!=null?Math.max(0,r+o):0;a=a!=null?Math.min(a,o):o,t.reset(this._levels,i,i+a)}return t},e.prototype.resetCellIterator=function(t){return(t||new qu).reset(this._cells,0)},e.prototype.resetLevelIterator=function(t){return(t||new qu).reset(this._levels,0)},e.prototype.getLayout=function(t,n,r){var a=this.getUnitLayoutInfo(n,r);t[Gt[n]]=a?a.xy:NaN,t[Tr[n]]=a?a.wh:NaN},e.prototype.getUnitLayoutInfo=function(t,n){return t===this.dimIdx?n<this._leavesCount?this._cells[n]:void 0:this._levels[n+this._levels.length]},e.prototype.getCell=function(t){var n=this._scale.parse(t);return Ma(n)?void 0:this._cells[n]},e.prototype.getLocatorCount=function(t){return t===this.dimIdx?this._leavesCount:this._levels.length},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e}();function TSe(e){var t=e.toUpperCase(),n=new RegExp("^"+t+"([0-9]+)$"),r=0;function a(s){var l;s!=null&&(l=s.match(n))&&(r=mr(r,+l[1]+1))}function o(){return""+t+r++}function i(s,l){for(var u=pt(),c=0;c<s.length;c++){var f=s[c];(f==null||u.get(f)!=null)&&(s[c]=f=o(),l[c].option=Pt({value:f},l[c].option)),u.set(f,!0)}}return{calcDupBase:a,ensureValueUnique:i}}var JO=function(){function e(t,n,r){this._model=n,this._dims=r,this._kind=t,this._cellMergeOwnerList=[]}return e.prototype._ensureCellMap=function(){var t=this,n=t._cellMap;return n||(n=t._cellMap=pt(),r()),n;function r(){var o=[],i=t._model.getShallow("data");i&&!Ve(i)&&(i=null),j(i,function(h,p){if(!(!Rt(h)||!Ve(h.coord))){var g=nq([]),m=null;if(rq(g,m,h.coord,t._dims,h.coordClamp?Rl[t._kind]:Rl.none),!(By(g,0)||By(g,1))){var y=h&&h.mergeCells,b={id:new Dt,span:new Dt,locatorRange:g,option:h,cellMergeOwner:y};qO(b,g),o.push(b)}}});for(var s=[],l=0;l<o.length;l++){var u=o[l];if(u.cellMergeOwner){var c=u.locatorRange;jO(c,s,o,l);for(var f=0;f<l;f++)s[f]&&(o[f].cellMergeOwner=!1);if(c[0][0]!==u.id.x||c[1][0]!==u.id.y){u.cellMergeOwner=!1;var d=Pe({},u.option);d.coord=null;var v={id:new Dt,span:new Dt,locatorRange:c,option:d,cellMergeOwner:!0};qO(v,c),o.push(v)}}}j(o,function(h){var p=a(h.id.x,h.id.y);if(h.cellMergeOwner&&(p.cellMergeOwner=!0,p.span=h.span,p.locatorRange=h.locatorRange,p.spanRect=y_(),t._cellMergeOwnerList.push(p)),!(!h.cellMergeOwner&&!h.option))for(var g=0;g<h.span.y;g++)for(var m=0;m<h.span.x;m++){var y=a(h.id.x+m,h.id.y+g);y.option=h.option,h.cellMergeOwner&&(y.inSpanOf=p)}})}function a(o,i){var s=QO(o,i),l=n.get(s);return l||(l=n.set(s,{id:new Dt(o,i),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),l}},e.prototype.getCell=function(t){return this._ensureCellMap().get(QO(t[0],t[1]))},e.prototype.travelExistingCells=function(t){this._ensureCellMap().each(t)},e.prototype.expandRangeByCellMerge=function(t){if(!By(t,0)&&!By(t,1)&&t[0][0]===t[0][1]&&t[1][0]===t[1][1]){yS[0]=t[0][0],yS[1]=t[1][0];var n=this.getCell(yS),r=n&&n.inSpanOf;if(r){xSe(t,r.locatorRange);return}}var a=this._cellMergeOwnerList;jO(t,null,a,a.length)},e}(),yS=[];function QO(e,t){return e+"|"+t}var zM={show:!0,color:Se.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function FM(e){return{color:"none",borderWidth:1,borderColor:e?"none":Se.color.borderTint}}var e7={show:!0,label:zM,itemStyle:FM(!1),silent:void 0,dividerLineStyle:{width:1,color:Se.color.border}},kSe={label:zM,itemStyle:FM(!1),silent:void 0},MSe={label:zM,itemStyle:FM(!0),silent:void 0},ASe={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:e7,y:e7,body:kSe,corner:MSe,backgroundStyle:{color:"none",borderColor:Se.color.axisLine,borderWidth:1}},ESe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){var n=this._dimModels={x:new t7(this.get("x",!0)||{}),y:new t7(this.get("y",!0)||{})};n.x.option.type=n.y.option.type="category";var r=n.x.dim=new ZO("x",n.x),a=n.y.dim=new ZO("y",n.y),o={x:r,y:a};this._body=new JO("body",new Tn(this.getShallow("body")),o),this._corner=new JO("corner",new Tn(this.getShallow("corner")),o)},t.prototype.getDimensionModel=function(n){return this._dimModels[n]},t.prototype.getBody=function(){return this._body},t.prototype.getCorner=function(){return this._corner},t.type="matrix",t.layoutMode="box",t.defaultOption=ASe,t}(mn),t7=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},t}(Tn);const ISe=ESe;var Vy=Math.round,LSe=0,DSe=99,PSe={normal:25,special:100},RSe={normal:50,special:125},OSe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r){this.group.removeAll();var a=this.group,o=n.coordinateSystem,i=o.getRect(),s=n.getDimensionModel("x"),l=n.getDimensionModel("y"),u=s.dim,c=l.dim;NSe(a,n,r),BSe(a,n,u,c,r);var f=n.getShallow("borderZ2",!0),d=yt(f,DSe),v=d-1,h=n.getModel("backgroundStyle").getItemStyle(["borderWidth"]);h.lineWidth=0;var p=n.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);p.fill="none";var g=EC(i.clone(),h,LSe),m=EC(i.clone(),p,d);g.silent=!0,m.silent=!0,a.add(g),a.add(m);var y=u.getUnitLayoutInfo(0,0),b=c.getUnitLayoutInfo(1,0);y&&b&&(u.shouldShow()&&a.add(n7({x1:i.x,y1:b.xy,x2:i.x+i.width,y2:b.xy},s.getModel("dividerLineStyle").getLineStyle(),v)),c.shouldShow()&&a.add(n7({x1:y.xy,y1:i.y,x2:y.xy,y2:i.y+i.height},l.getModel("dividerLineStyle").getLineStyle(),v)))},t.type="matrix",t}(or);function NSe(e,t,n){r(0),r(1);function r(a){var o=t.getDimensionModel(Gt[a]),i=o.dim;if(i.shouldShow())for(var s=o.getModel("itemStyle"),l=o.getModel("label"),u=t.getShallow("tooltip",!0),c=[],f=i.resetCellIterator();f.next();){var d=f.item,v={};Ot.copy(v,d.rect),N5(c,d.id.x,d.id.y),aq(c,t,e,n,d.option,s,l,o,v,d.option.value,RSe,u)}}}function BSe(e,t,n,r,a){o("body",t.getBody(),n,r),n.shouldShow()&&r.shouldShow()&&o("corner",t.getCorner(),r,n);function o(i,s,l,u){var c=new Tn(t.getShallow(i,!0)),f=c.getModel("itemStyle"),d=c.getModel("label"),v=new qu,h=new qu,p=[],g=t.getShallow("tooltip",!0);for(u.resetLayoutIterator(h,1);h.next();)for(l.resetLayoutIterator(v,0);v.next();){var m=v.item,y=h.item;N5(p,m.id.x,y.id.y);var b=s.getCell(p);if(!(b&&b.inSpanOf&&b.inSpanOf!==b)){var w={};b&&b.span?Ot.copy(w,b.spanRect):(m.dim.getLayout(w,0,p[0]),y.dim.getLayout(w,1,p[1]));var S=b?b.option:null;aq(p,t,e,a,S,f,d,c,w,S?S.value:null,PSe,g)}}}}function aq(e,t,n,r,a,o,i,s,l,u,c,f){var d;$y.option=a?a.itemStyle:null,$y.parentModel=o,sv.option=a,sv.parentModel=s;var v=yt(sv.getShallow("z2"),a&&a.itemStyle?c.special:c.normal),h=f&&f.show,p=EC(l,$y.getItemStyle(),v);n.add(p);var g=sv.get("cursor");g!=null&&p.attr("cursor",g);var m;if(u!=null){var y=u+"";if(lv.option=a?a.label:null,lv.parentModel=i,lv.ecModel=r,Kr(p,{normal:lv},{defaultText:y,autoOverflowArea:!0,layoutRect:Mt(p.shape)}),m=p.getTextContent(),m){m.z2=v+1;var b=m.style;if(b&&b.overflow&&b.overflow!=="none"&&b.lineOverflow){var w={};Ot.copy(w,l),od(w,(((d=p.style)===null||d===void 0?void 0:d.lineWidth)||0)/2,!0,!0),p.updateInnerText(),m.getLocalTransform(zy),Pi(zy,zy),Ot.applyTransform(w,w,zy),m.setClipPath(new rn({shape:w}))}}eu({el:p,componentModel:t,itemName:y,itemTooltipOption:f,formatterParamsExtra:{xyLocator:e.slice()}})}if(m){var S=lv.get("silent");S==null&&(S=!h),m.silent=S,m.ignoreHostSilent=!0}var x=sv.get("silent");x==null&&(x=!p.style||p.style.fill==="none"||!p.style.fill),p.silent=x,I3(sv),I3($y),I3(lv)}var sv=new Tn,$y=new Tn,lv=new Tn,zy=[];function EC(e,t,n){var r=t.lineWidth;if(r){var a=e.x+e.width,o=e.y+e.height;e.x=So(e.x,r,!0),e.y=So(e.y,r,!0),e.width=So(a,r,!0)-e.x,e.height=So(o,r,!0)-e.y}return new rn({shape:e,style:t,z2:n})}function n7(e,t,n){var r=t.lineWidth;return r&&(Vy(e.x1*2)===Vy(e.x2*2)&&(e.x1=e.x2=So(e.x1,r,!0)),Vy(e.y1*2)===Vy(e.y2*2)&&(e.y1=e.y2=So(e.y1,r,!0))),new Rr({shape:e,style:t,silent:!0,z2:n})}const VSe=OSe;var $Se=function(){function e(t,n,r){this.dimensions=e.dimensions,this.type="matrix",this._model=t;var a=this._dimModels={x:t.getDimensionModel("x"),y:t.getDimensionModel("y")};this._dims={x:a.x.dim,y:a.y.dim},this._resize(t,r)}return e.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},e.create=function(t,n){var r=[];return t.eachComponent("matrix",function(a){var o=new e(a,t,n);r.push(o),a.coordinateSystem=o}),t.eachComponent(function(a,o){Nm({targetModel:o,coordSysType:"matrix",coordSysProvider:hG})}),r},e.prototype.getRect=function(){return this._rect},e.prototype._resize=function(t,n){var r=this._dims,a=this._dimModels,o=this._rect=Qn(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()});r7(a,r,o,0),r7(a,r,o,1),a7(0,r),a7(1,r),o7(this._model.getBody(),r),o7(this._model.getCorner(),r)},e.prototype.dataToPoint=function(t,n,r){return r=r||[],this.dataToLayout(t,n,Jp),r[0]=Jp.rect.x+Jp.rect.width/2,r[1]=Jp.rect.y+Jp.rect.height/2,r},e.prototype.dataToLayout=function(t,n,r){var a=this._dims;r=r||{};var o=r.rect=r.rect||{};o.x=o.y=o.width=o.height=NaN;var i=r.matrixXYLocatorRange=nq(r.matrixXYLocatorRange);return Ve(t)&&(rq(i,null,t,a,yt(n&&n.clamp,Rl.none)),(!n||!n.ignoreMergeCells)&&((!n||n.clamp!==Rl.corner)&&this._model.getBody().expandRangeByCellMerge(i),(!n||n.clamp!==Rl.body)&&this._model.getCorner().expandRangeByCellMerge(i)),XO(o,i,a,0),XO(o,i,a,1)),r},e.prototype.pointToData=function(t,n,r){var a=this._dims;return i7(is,0,a,t,n&&n.clamp),i7(is,1,a,t,n&&n.clamp),r=r||[],r[0]=r[1]=NaN,is.y===aa.inCorner&&is.x===aa.inBody?s7(is,r,0,a):is.x===aa.inCorner&&is.y===aa.inBody?s7(is,r,1,a):(l7(is,r,0,a),l7(is,r,1,a)),r},e.prototype.convertToPixel=function(t,n,r,a){var o=_S(n);return o===this?o.dataToPoint(r,a):void 0},e.prototype.convertToLayout=function(t,n,r,a){var o=_S(n);return o===this?o.dataToLayout(r,a):void 0},e.prototype.convertFromPixel=function(t,n,r,a){var o=_S(n);return o===this?o.pointToData(r,a):void 0},e.prototype.containPoint=function(t){return this._rect.contain(t[0],t[1])},e.dimensions=["x","y","value"],e}(),Jp={rect:y_()},Fy=new qu,bS=new qu;function r7(e,t,n,r){for(var a=1-r,o=t[Gt[r]],i=t[Gt[a]],s=i.shouldShow(),l=o.resetCellIterator();l.next();)l.item.wh=l.item.xy=NaN;for(var u=i.resetLayoutIterator(null,r);u.next();)u.item.wh=u.item.xy=NaN;for(var c=n[Tr[r]],f=o.getLocatorCount(r)+i.getLocatorCount(r),d=new Tn,v=i.resetLevelIterator();v.next();)d.option=v.item.option,d.parentModel=e[Gt[a]],g(v.item,s?d.get("levelSize"):0);for(var h=new Tn,p=o.resetCellIterator();p.next();)p.item.type===xl.leaf&&(h.option=p.item.option,h.parentModel=void 0,g(p.item,h.get("size")));function g(C,T){var M=zSe(T,r,n);Ma(M)||(C.wh=IC(M,c),c=IC(c-C.wh),f--)}var m=f?c/f:0,y=!f&&c>=1,b=n[Gt[r]],w=o.getLocatorCount(r)-1,S=new qu;for(i.resetLayoutIterator(S,r);S.next();)x(S.item);for(o.resetLayoutIterator(S,r);S.next();)x(S.item);function x(C){Ma(C.wh)&&(C.wh=m),C.xy=b,C.id[Gt[r]]===w&&!y&&(C.wh=n[Gt[r]]+n[Tr[r]]-C.xy),b+=C.wh}}function a7(e,t){for(var n=t[Gt[e]].resetCellIterator();n.next();){var r=n.item;b_(r.rect,e,r.id,r.span,t),b_(r.rect,1-e,r.id,r.span,t),r.type===xl.nonLeaf&&(r.xy=r.rect[Gt[e]],r.wh=r.rect[Tr[e]])}}function o7(e,t){e.travelExistingCells(function(n){var r=n.span;if(r){var a=n.spanRect,o=n.id;b_(a,0,o,r,t),b_(a,1,o,r,t)}})}function b_(e,t,n,r,a){e[Tr[t]]=0;var o=n[Gt[t]],i=o<0?a[Gt[1-t]]:a[Gt[t]],s=i.getUnitLayoutInfo(t,n[Gt[t]]);if(e[Gt[t]]=s.xy,e[Tr[t]]=s.wh,r[Gt[t]]>1){var l=i.getUnitLayoutInfo(t,n[Gt[t]]+r[Gt[t]]-1);e[Tr[t]]=l.xy+l.wh-s.xy}}function zSe(e,t,n){var r=Pb(e,n[Tr[t]]);return IC(r,n[Tr[t]])}function IC(e,t){return Math.max(Math.min(e,yt(t,1/0)),0)}function _S(e){var t=e.matrixModel,n=e.seriesModel,r=t?t.coordinateSystem:n?n.coordinateSystem:null;return r}var aa={inBody:1,inCorner:2,outside:3},is={x:null,y:null,point:[]};function i7(e,t,n,r,a){var o=n[Gt[t]],i=n[Gt[1-t]],s=o.getUnitLayoutInfo(t,o.getLocatorCount(t)-1),l=o.getUnitLayoutInfo(t,0),u=i.getUnitLayoutInfo(t,-i.getLocatorCount(t)),c=i.shouldShow()?i.getUnitLayoutInfo(t,-1):null,f=e.point[t]=r[t];if(!l&&!c){e[Gt[t]]=aa.outside;return}if(a===Rl.body){l?(e[Gt[t]]=aa.inBody,f=Ao(s.xy+s.wh,mr(l.xy,f)),e.point[t]=f):e[Gt[t]]=aa.outside;return}else if(a===Rl.corner){c?(e[Gt[t]]=aa.inCorner,f=Ao(c.xy+c.wh,mr(u.xy,f)),e.point[t]=f):e[Gt[t]]=aa.outside;return}var d=l?l.xy:c?c.xy+c.wh:NaN,v=u?u.xy:d,h=s?s.xy+s.wh:d;if(f<v){if(!a){e[Gt[t]]=aa.outside;return}f=v}else if(f>h){if(!a){e[Gt[t]]=aa.outside;return}f=h}e.point[t]=f,e[Gt[t]]=d<=f&&f<=h?aa.inBody:v<=f&&f<=d?aa.inCorner:aa.outside}function s7(e,t,n,r){var a=1-n;if(e[Gt[n]]!==aa.outside)for(r[Gt[n]].resetCellIterator(bS);bS.next();){var o=bS.item;if(u7(e.point[n],o.rect,n)&&u7(e.point[a],o.rect,a)){t[n]=o.ordinal,t[a]=o.id[Gt[a]];return}}}function l7(e,t,n,r){if(e[Gt[n]]!==aa.outside){var a=e[Gt[n]]===aa.inCorner?r[Gt[1-n]]:r[Gt[n]];for(a.resetLayoutIterator(Fy,n);Fy.next();)if(FSe(e.point[n],Fy.item)){t[n]=Fy.item.id[Gt[n]];return}}}function FSe(e,t){return t.xy<=e&&e<=t.xy+t.wh}function u7(e,t,n){return t[Gt[n]]<=e&&e<=t[Gt[n]]+t[Tr[n]]}const HSe=$Se;function WSe(e){e.registerComponentModel(ISe),e.registerComponentView(VSe),e.registerCoordinateSystem("matrix",HSe)}function GSe(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function c7(e,t){var n;return j(t,function(r){e[r]!=null&&e[r]!=="auto"&&(n=!0)}),n}function USe(e,t,n){var r=Pe({},n),a=e[t],o=n.$action||"merge";o==="merge"?a?(Zt(a,r,!0),Us(a,r,{ignoreSize:!0}),bG(n,a),Hy(n,a),Hy(n,a,"shape"),Hy(n,a,"style"),Hy(n,a,"extra"),n.clipPath=a.clipPath):e[t]=r:o==="replace"?e[t]=r:o==="remove"&&a&&(e[t]=null)}var oq=["transition","enterFrom","leaveTo"],KSe=oq.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Hy(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?oq:KSe,a=0;a<r.length;a++){var o=r[a];e[o]==null&&t[o]!=null&&(e[o]=t[o])}}function jSe(e,t){if(e&&(e.hv=t.hv=[c7(t,["left","right"]),c7(t,["top","bottom"])],e.type==="group")){var n=e,r=t;n.width==null&&(n.width=r.width=0),n.height==null&&(n.height=r.height=0)}}var YSe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.mergeOption=function(n,r){var a=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,n,r),this.option.elements=a},t.prototype.optionUpdated=function(n,r){var a=this.option,o=(r?a:n).elements,i=a.elements=r?[]:a.elements,s=[];this._flatten(o,s,null);var l=YH(i,s,"normalMerge"),u=this._elOptionsToUpdate=[];j(l,function(c,f){var d=c.newOption;d&&(u.push(d),GSe(c,d),USe(i,f,d),jSe(i[f],d))},this),a.elements=In(i,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(n,r,a){j(n,function(o){if(o){a&&(o.parentOption=a),r.push(o);var i=o.children;i&&i.length&&this._flatten(i,r,o),delete o.children}},this)},t.prototype.useElOptionsToUpdate=function(){var n=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,n},t.type="graphic",t.defaultOption={elements:[]},t}(mn),f7={path:null,compoundPath:null,group:At,image:da,text:_n},Go=an(),qSe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._elMap=pt()},t.prototype.render=function(n,r,a){n!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=n,this._updateElements(n),this._relocate(n,a)},t.prototype._updateElements=function(n){var r=n.useElOptionsToUpdate();if(r){var a=this._elMap,o=this.group,i=n.get("z"),s=n.get("zlevel");j(r,function(l){var u=Pr(l.id,null),c=u!=null?a.get(u):null,f=Pr(l.parentId,null),d=f!=null?a.get(f):o,v=l.type,h=l.style;v==="text"&&h&&l.hv&&l.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var p=l.textContent,g=l.textConfig;if(h&&OY(h,v,!!g,!!p)){var m=NY(h,v,!0);!g&&m.textConfig&&(g=l.textConfig=m.textConfig),!p&&m.textContent&&(p=m.textContent)}var y=XSe(l),b=l.$action||"merge",w=b==="merge",S=b==="replace";if(w){var x=!c,C=c;x?C=d7(u,d,l.type,a):(C&&(Go(C).isNew=!1),zY(C)),C&&(z2(C,y,n,{isInit:x}),v7(C,l,i,s))}else if(S){H2(c,l,a,n);var T=d7(u,d,l.type,a);T&&(z2(T,y,n,{isInit:!0}),v7(T,l,i,s))}else b==="remove"&&(VY(c,l),H2(c,l,a,n));var M=a.get(u);if(M&&p)if(w){var k=M.getTextContent();k?k.attr(p):M.setTextContent(new _n(p))}else S&&M.setTextContent(new _n(p));if(M){var E=l.clipPath;if(E){var A=E.type,I=void 0,x=!1;if(w){var O=M.getClipPath();x=!O||Go(O).type!==A,I=x?LC(A):O}else S&&(x=!0,I=LC(A));M.setClipPath(I),z2(I,E,n,{isInit:x}),p_(I,E.keyframeAnimation,n)}var z=Go(M);M.setTextConfig(g),z.option=l,ZSe(M,n,l),eu({el:M,componentModel:n,itemName:M.name,itemTooltipOption:l.tooltip}),p_(M,l.keyframeAnimation,n)}})}},t.prototype._relocate=function(n,r){for(var a=n.option.elements,o=this.group,i=this._elMap,s=r.getWidth(),l=r.getHeight(),u=["x","y"],c=0;c<a.length;c++){var f=a[c],d=Pr(f.id,null),v=d!=null?i.get(d):null;if(!(!v||!v.isGroup)){var h=v.parent,p=h===o,g=Go(v),m=Go(h);g.width=at(g.option.width,p?s:m.width)||0,g.height=at(g.option.height,p?l:m.height)||0}}for(var c=a.length-1;c>=0;c--){var f=a[c],d=Pr(f.id,null),v=d!=null?i.get(d):null;if(v){var h=v.parent,m=Go(h),y=h===o?{width:s,height:l}:{width:m.width,height:m.height},b={},w=Kw(v,f,y,null,{hv:f.hv,boundingMode:f.bounding},b);if(!Go(v).isNew&&w){for(var S=f.transition,x={},C=0;C<u.length;C++){var T=u[C],M=b[T];S&&(jf(S)||Xt(S,T)>=0)?x[T]=M:v[T]=M}Sn(v,x,n,0)}else v.attr(b)}}},t.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(a){H2(a,Go(a).option,r,n._lastGraphicModel)}),this._elMap=pt()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(or);function LC(e){var t=ft(f7,e)?f7[e]:Vb(e),n=new t({});return Go(n).type=e,n}function d7(e,t,n,r){var a=LC(n);return t.add(a),r.set(e,a),Go(a).id=e,Go(a).isNew=!0,a}function H2(e,t,n,r){var a=e&&e.parent;a&&(e.type==="group"&&e.traverse(function(o){H2(o,t,n,r)}),l4(e,t,r),n.removeKey(Go(e).id))}function v7(e,t,n,r){e.isGroup||j([["cursor",ai.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(a){var o=a[0];ft(t,o)?e[o]=yt(t[o],a[1]):e[o]==null&&(e[o]=a[1])}),j(dn(t),function(a){if(a.indexOf("on")===0){var o=t[a];e[a]=kt(o)?o:null}}),ft(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function XSe(e){return e=Pe({},e),j(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(pG),function(t){delete e[t]}),e}function ZSe(e,t,n){var r=Vt(e).eventData;!e.silent&&!e.ignore&&!r&&(r=Vt(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function JSe(e){e.registerComponentModel(YSe),e.registerComponentView(qSe),e.registerPreprocessor(function(t){var n=t.graphic;Ve(n)?!n[0]||!n[0].elements?t.graphic=[{elements:n}]:t.graphic=[t.graphic[0]]:n&&!n.elements&&(t.graphic=[{elements:[n]}])})}var h7=["x","y","radius","angle","single"],QSe=["cartesian2d","polar","singleAxis"];function e8e(e){var t=e.get("coordinateSystem");return Xt(QSe,t)>=0}function Fu(e){return e+"Axis"}function t8e(e,t){var n=pt(),r=[],a=pt();e.eachComponent({mainType:"dataZoom",query:t},function(c){a.get(c.uid)||s(c)});var o;do o=!1,e.eachComponent("dataZoom",i);while(o);function i(c){!a.get(c.uid)&&l(c)&&(s(c),o=!0)}function s(c){a.set(c.uid,!0),r.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,v){var h=n.get(d);h&&h[v]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(n.get(f)||n.set(f,[]))[d]=!0})}return r}function iq(e){var t=e.ecModel,n={infoList:[],infoMap:pt()};return e.eachTargetAxis(function(r,a){var o=t.getComponent(Fu(r),a);if(o){var i=o.getCoordSysModel();if(i){var s=i.uid,l=n.infoMap.get(s);l||(l={model:i,axisModels:[]},n.infoList.push(l),n.infoMap.set(s,l)),l.axisModels.push(o)}}}),n}var wS=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),n8e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return t.prototype.init=function(n,r,a){var o=p7(n);this.settledOption=o,this.mergeDefaultAndTheme(n,a),this._doInit(o)},t.prototype.mergeOption=function(n){var r=p7(n);Zt(this.option,n,!0),Zt(this.settledOption,r,!0),this._doInit(r)},t.prototype._doInit=function(n){var r=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var a=this.settledOption;j([["start","startValue"],["end","endValue"]],function(o,i){this._rangePropMode[i]==="value"&&(r[o[0]]=a[o[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var n=this.get("orient",!0),r=this._targetAxisInfoMap=pt(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(o){o.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(n){var r=!1;return j(h7,function(a){var o=this.getReferringComponents(Fu(a),tue);if(o.specified){r=!0;var i=new wS;j(o.models,function(s){i.add(s.componentIndex)}),n.set(a,i)}},this),r},t.prototype._fillAutoTargetAxisByOrient=function(n,r){var a=this.ecModel,o=!0;if(o){var i=r==="vertical"?"y":"x",s=a.findComponents({mainType:i+"Axis"});l(s,i)}if(o){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new wS;if(d.add(f.componentIndex),n.set(c,d),o=!1,c==="x"||c==="y"){var v=f.getReferringComponents("grid",lr).models[0];v&&j(u,function(h){f.componentIndex!==h.componentIndex&&v===h.getReferringComponents("grid",lr).models[0]&&d.add(h.componentIndex)})}}}o&&j(h7,function(u){if(o){var c=a.findComponents({mainType:Fu(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new wS;f.add(c[0].componentIndex),n.set(u,f),o=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(r){!n&&(n=r)},this),n==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(n){var r=this._rangePropMode,a=this.get("rangeMode");j([["start","startValue"],["end","endValue"]],function(o,i){var s=n[o[0]]!=null,l=n[o[1]]!=null;s&&!l?r[i]="percent":!s&&l?r[i]="value":a?r[i]=a[i]:s&&(r[i]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(r,a){n==null&&(n=this.ecModel.getComponent(Fu(r),a))},this),n},t.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(a,o){j(a.indexList,function(i){n.call(r,o,i)})})},t.prototype.getAxisProxy=function(n,r){var a=this.getAxisModel(n,r);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(n,r){var a=this._targetAxisInfoMap.get(n);if(a&&a.indexMap[r])return this.ecModel.getComponent(Fu(n),r)},t.prototype.setRawRange=function(n){var r=this.option,a=this.settledOption;j([["start","startValue"],["end","endValue"]],function(o){(n[o[0]]!=null||n[o[1]]!=null)&&(r[o[0]]=a[o[0]]=n[o[0]],r[o[1]]=a[o[1]]=n[o[1]])},this),this._updateRangeUse(n)},t.prototype.setCalculatedRange=function(n){var r=this.option;j(["start","startValue","end","endValue"],function(a){r[a]=n[a]})},t.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},t.prototype.getValueRange=function(n,r){if(n==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(n,r).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),o=0;o<a.length;o++)for(var i=a[o],s=this._targetAxisInfoMap.get(i),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(i,s.indexList[l]);if(u.hostedBy(this))return u;r||(r=u)}return r},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(mn);function p7(e){var t={};return j(["start","end","startValue","endValue","throttle"],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}const Hg=n8e;var r8e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.select",t}(Hg);const a8e=r8e;var o8e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a,o){this.dataZoomModel=n,this.ecModel=r,this.api=a},t.type="dataZoom",t}(or);const HM=o8e;var i8e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.select",t}(HM);const s8e=i8e;var xv=j,g7=Zo,l8e=function(){function e(t,n,r,a){this._dimName=t,this._axisIndex=n,this.ecModel=a,this._dataZoomModel=r}return e.prototype.hostedBy=function(t){return this._dataZoomModel===t},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(n){if(e8e(n)){var r=Fu(this._dimName),a=n.getReferringComponents(r,lr).models[0];a&&this._axisIndex===a.componentIndex&&t.push(n)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return Mt(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var n=this._dataExtent,r=this.getAxisModel(),a=r.axis.scale,o=this._dataZoomModel.getRangePropMode(),i=[0,100],s=[],l=[],u;xv(["start","end"],function(d,v){var h=t[d],p=t[d+"Value"];o[v]==="percent"?(h==null&&(h=i[v]),p=a.parse(En(h,i,n))):(u=!0,p=p==null?n[v]:a.parse(p),h=En(p,n,i)),l[v]=p==null||isNaN(p)?n[v]:p,s[v]=h==null||isNaN(h)?i[v]:h}),g7(l),g7(s);var c=this._minMaxSpan;u?f(l,s,n,i,!1):f(s,l,i,n,!0);function f(d,v,h,p,g){var m=g?"Span":"ValueSpan";fc(0,d,h,"all",c["min"+m],c["max"+m]);for(var y=0;y<2;y++)v[y]=En(d[y],h,p,!0),g&&(v[y]=a.parse(v[y]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var n=this.getTargetSeriesModels();this._dataExtent=u8e(this,this._dimName,n),this._updateMinMaxSpan();var r=this.calculateDataWindow(t.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(t,n){if(t!==this._dataZoomModel)return;var r=this._dimName,a=this.getTargetSeriesModels(),o=t.get("filterMode"),i=this._valueWindow;if(o==="none")return;xv(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(r);if(c.length){if(o==="weakFilter"){var f=u.getStore(),d=$e(c,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var h,p,g,m=0;m<c.length;m++){var y=f.get(d[m],v),b=!isNaN(y),w=y<i[0],S=y>i[1];if(b&&!w&&!S)return!0;b&&(g=!0),w&&(h=!0),S&&(p=!0)}return g&&h&&p})}else xv(c,function(v){if(o==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var h={};h[v]=i,u.selectRange(h)}});xv(c,function(v){u.setApproximateExtent(i,v)})}});function s(l){return l>=i[0]&&l<=i[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},n=this._dataZoomModel,r=this._dataExtent;xv(["min","max"],function(a){var o=n.get(a+"Span"),i=n.get(a+"ValueSpan");i!=null&&(i=this.getAxisModel().axis.scale.parse(i)),i!=null?o=En(r[0]+i,r,[0,100],!0):o!=null&&(i=En(o,[0,100],r,!0)-r[0]),t[a+"Span"]=o,t[a+"ValueSpan"]=i},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),n=this._percentWindow,r=this._valueWindow;if(n){var a=$H(r,[0,500]);a=Math.min(a,20);var o=t.axis.scale.rawExtentInfo;n[0]!==0&&o.setDeterminedMinMax("min",+r[0].toFixed(a)),n[1]!==100&&o.setDeterminedMinMax("max",+r[1].toFixed(a)),o.freeze()}},e}();function u8e(e,t,n){var r=[1/0,-1/0];xv(n,function(i){Cpe(r,i.getData(),t)});var a=e.getAxisModel(),o=tK(a.axis.scale,a,r).calculate();return[o.min,o.max]}const c8e=l8e;var f8e={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(i,s){var l=e.getComponent(Fu(i),s);a(i,s,l,o)})})}t(function(a,o,i,s){i.__dzAxisProxy=null});var n=[];t(function(a,o,i,s){i.__dzAxisProxy||(i.__dzAxisProxy=new c8e(a,o,s,e),n.push(i.__dzAxisProxy))});var r=pt();return j(n,function(a){j(a.getTargetSeriesModels(),function(o){r.set(o.uid,o)})}),r},overallReset:function(e,t){e.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).reset(n)}),n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).filterData(n,t)})}),e.eachComponent("dataZoom",function(n){var r=n.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),o=r.getDataValueWindow();n.setCalculatedRange({start:a[0],end:a[1],startValue:o[0],endValue:o[1]})}})}};const d8e=f8e;function v8e(e){e.registerAction("dataZoom",function(t,n){var r=t8e(n,t);j(r,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var m7=!1;function WM(e){m7||(m7=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,d8e),v8e(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function h8e(e){e.registerComponentModel(a8e),e.registerComponentView(s8e),WM(e)}var jo=function(){function e(){}return e}(),sq={};function Cv(e,t){sq[e]=t}function lq(e){return sq[e]}var p8e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;j(this.option.feature,function(r,a){var o=lq(a);o&&(o.getDefaultOption&&(o.defaultOption=o.getDefaultOption(n)),Zt(r,o.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:Se.color.border,borderRadius:0,borderWidth:0,padding:Se.size.m,itemSize:15,itemGap:Se.size.s,showTitle:!0,iconStyle:{borderColor:Se.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:Se.color.accent50}},tooltip:{show:!1,position:"bottom"}},t}(mn);const g8e=p8e;function uq(e,t){var n=Rm(t.get("padding")),r=t.getItemStyle(["color","opacity"]);r.fill=t.get("backgroundColor");var a=new rn({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});return a}var m8e=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a,o){var i=this.group;if(i.removeAll(),!n.get("show"))return;var s=+n.get("itemSize"),l=n.get("orient")==="vertical",u=n.get("feature")||{},c=this._features||(this._features={}),f=[];j(u,function(y,b){f.push(b)}),new Hl(this._featureNames||[],f).add(d).update(d).remove(Yt(d,null)).execute(),this._featureNames=f;function d(y,b){var w=f[y],S=f[b],x=u[w],C=new Tn(x,n,n.ecModel),T;if(o&&o.newTitle!=null&&o.featureName===w&&(x.title=o.newTitle),w&&!S){if(y8e(w))T={onclick:C.option.onclick,featureName:w};else{var M=lq(w);if(!M)return;T=new M}c[w]=T}else if(T=c[S],!T)return;T.uid=tp("toolbox-feature"),T.model=C,T.ecModel=r,T.api=a;var k=T instanceof jo;if(!w&&S){k&&T.dispose&&T.dispose(r,a);return}if(!C.get("show")||k&&T.unusable){k&&T.remove&&T.remove(r,a);return}v(C,T,w),C.setIconStatus=function(E,A){var I=this.option,O=this.iconPaths;I.iconStatus=I.iconStatus||{},I.iconStatus[E]=A,O[E]&&(A==="emphasis"?zl:Fl)(O[E])},T instanceof jo&&T.render&&T.render(C,r,a,o)}function v(y,b,w){var S=y.getModel("iconStyle"),x=y.getModel(["emphasis","iconStyle"]),C=b instanceof jo&&b.getIcons?b.getIcons():y.get("icon"),T=y.get("title")||{},M,k;st(C)?(M={},M[w]=C):M=C,st(T)?(k={},k[w]=T):k=T;var E=y.iconPaths={};j(M,function(A,I){var O=Pm(A,{},{x:-s/2,y:-s/2,width:s,height:s});O.setStyle(S.getItemStyle());var z=O.ensureState("emphasis");z.style=x.getItemStyle();var $=new _n({style:{text:k[I],align:x.get("textAlign"),borderRadius:x.get("textBorderRadius"),padding:x.get("textPadding"),fill:null,font:lk({fontStyle:x.get("textFontStyle"),fontFamily:x.get("textFontFamily"),fontSize:x.get("textFontSize"),fontWeight:x.get("textFontWeight")},r)},ignore:!0});O.setTextContent($),eu({el:O,componentModel:n,itemName:I,formatterParamsExtra:{title:k[I]}}),O.__title=k[I],O.on("mouseover",function(){var P=x.getItemStyle(),L=l?n.get("right")==null&&n.get("left")!=="right"?"right":"left":n.get("bottom")==null&&n.get("top")!=="bottom"?"bottom":"top";$.setStyle({fill:x.get("textFill")||P.fill||P.stroke||Se.color.neutral99,backgroundColor:x.get("textBackgroundColor")}),O.setTextConfig({position:x.get("textPosition")||L}),$.ignore=!n.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){y.get(["iconStatus",I])!=="emphasis"&&a.leaveEmphasis(this),$.hide()}),(y.get(["iconStatus",I])==="emphasis"?zl:Fl)(O),i.add(O),O.on("click",lt(b.onclick,b,r,a,I)),E[I]=O})}var h=$r(n,a).refContainer,p=n.getBoxLayoutParams(),g=n.get("padding"),m=Qn(p,h,g);Gf(n.get("orient"),i,n.get("itemGap"),m.width,m.height),Kw(i,p,h,g),i.add(uq(i.getBoundingRect(),n)),l||i.eachChild(function(y){var b=y.__title,w=y.ensureState("emphasis"),S=w.textConfig||(w.textConfig={}),x=y.getTextContent(),C=x&&x.ensureState("emphasis");if(C&&!kt(C)&&b){var T=C.style||(C.style={}),M=Iw(b,_n.makeFont(T)),k=y.x+i.x,E=y.y+i.y+s,A=!1;E+M.height>a.getHeight()&&(S.position="top",A=!0);var I=A?-5-M.height:s+10;k+M.width/2>a.getWidth()?(S.position=["100%",I],T.align="right"):k-M.width/2<0&&(S.position=[0,I],T.align="left")}})},t.prototype.updateView=function(n,r,a,o){j(this._features,function(i){i instanceof jo&&i.updateView&&i.updateView(i.model,r,a,o)})},t.prototype.remove=function(n,r){j(this._features,function(a){a instanceof jo&&a.remove&&a.remove(n,r)}),this.group.removeAll()},t.prototype.dispose=function(n,r){j(this._features,function(a){a instanceof jo&&a.dispose&&a.dispose(n,r)})},t.type="toolbox",t}(or);function y8e(e){return e.indexOf("my")===0}const b8e=m8e;var _8e=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){var a=this.model,o=a.get("name")||n.get("title.0.text")||"echarts",i=r.getZr().painter.getType()==="svg",s=i?"svg":a.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||n.get("backgroundColor")||Se.color.neutral00,connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=kn.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=o+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||i){var d=l.split(","),v=d[0].indexOf("base64")>-1,h=i?decodeURIComponent(d[1]):d[1];v&&(h=window.atob(h));var p=o+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=h.length,m=new Uint8Array(g);g--;)m[g]=h.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,p)}else{var b=document.createElement("iframe");document.body.appendChild(b);var w=b.contentWindow,S=w.document;S.open("image/svg+xml","replace"),S.write(h),S.close(),w.focus(),S.execCommand("SaveAs",!0,p),document.body.removeChild(b)}}else{var x=a.get("lang"),C='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',T=window.open();T.document.write(C),T.document.title=o}},t.getDefaultOption=function(n){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:n.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:Se.color.neutral00,name:"",excludeComponents:["toolbox"],lang:n.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},t}(jo);const w8e=_8e;var y7="__ec_magicType_stack__",S8e=[["line","bar"],["stack"]],x8e=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var n=this.model,r=n.get("icon"),a={};return j(n.get("type"),function(o){r[o]&&(a[o]=r[o])}),a},t.getDefaultOption=function(n){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:n.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},t.prototype.onclick=function(n,r,a){var o=this.model,i=o.get(["seriesIndex",a]);if(b7[a]){var s={series:[]},l=function(f){var d=f.subType,v=f.id,h=b7[a](d,v,f,o);h&&(Pt(h,f.option),s.series.push(h));var p=f.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var m=g.dim,y=m+"Axis",b=f.getReferringComponents(y,lr).models[0],w=b.componentIndex;s[y]=s[y]||[];for(var S=0;S<=w;S++)s[y][w]=s[y][w]||{};s[y][w].boundaryGap=a==="bar"}}};j(S8e,function(f){Xt(f,a)>=0&&j(f,function(d){o.setIconStatus(d,"normal")})}),o.setIconStatus(a,"emphasis"),n.eachComponent({mainType:"series",query:i==null?null:{seriesIndex:i}},l);var u,c=a;a==="stack"&&(u=Zt({stack:o.option.title.tiled,tiled:o.option.title.stack},o.option.title),o.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(jo),b7={line:function(e,t,n,r){if(e==="bar")return Zt({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if(e==="line")return Zt({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var a=n.get("stack")===y7;if(e==="line"||e==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),Zt({id:t,stack:a?"":y7},r.get(["option","stack"])||{},!0)}};tl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const C8e=x8e;var u4=new Array(60).join("-"),Th=" ";function T8e(e){var t={},n=[],r=[];return e.eachRawSeries(function(a){var o=a.coordinateSystem;if(o&&(o.type==="cartesian2d"||o.type==="polar")){var i=o.getBaseAxis();if(i.type==="category"){var s=i.dim+"_"+i.index;t[s]||(t[s]={categoryAxis:i,valueAxis:o.getOtherAxis(i),series:[]},r.push({axisDim:i.dim,axisIndex:i.index})),t[s].series.push(a)}else n.push(a)}else n.push(a)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function k8e(e){var t=[];return j(e,function(n,r){var a=n.categoryAxis,o=n.valueAxis,i=o.dim,s=[" "].concat($e(n.series,function(v){return v.name})),l=[a.model.getCategories()];j(n.series,function(v){var h=v.getRawData();l.push(v.getRawData().mapArray(h.mapDimension(i),function(p){return p}))});for(var u=[s.join(Th)],c=0;c<l[0].length;c++){for(var f=[],d=0;d<l.length;d++)f.push(l[d][c]);u.push(f.join(Th))}t.push(u.join(`
|
||
`))}),t.join(`
|
||
|
||
`+u4+`
|
||
|
||
`)}function M8e(e){return $e(e,function(t){var n=t.getRawData(),r=[t.name],a=[];return n.each(n.dimensions,function(){for(var o=arguments.length,i=arguments[o-1],s=n.getName(i),l=0;l<o-1;l++)a[l]=arguments[l];r.push((s?s+Th:"")+a.join(Th))}),r.join(`
|
||
`)}).join(`
|
||
|
||
`+u4+`
|
||
|
||
`)}function A8e(e){var t=T8e(e);return{value:In([k8e(t.seriesGroupByCategoryAxis),M8e(t.other)],function(n){return!!n.replace(/[\n\t\s]/g,"")}).join(`
|
||
|
||
`+u4+`
|
||
|
||
`),meta:t.meta}}function __(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function E8e(e){var t=e.slice(0,e.indexOf(`
|
||
`));if(t.indexOf(Th)>=0)return!0}var DC=new RegExp("["+Th+"]+","g");function I8e(e){for(var t=e.split(/\n+/g),n=__(t.shift()).split(DC),r=[],a=$e(n,function(l){return{name:l,data:[]}}),o=0;o<t.length;o++){var i=__(t[o]).split(DC);r.push(i.shift());for(var s=0;s<i.length;s++)a[s]&&(a[s].data[o]=i[s])}return{series:a,categories:r}}function L8e(e){for(var t=e.split(/\n+/g),n=__(t.shift()),r=[],a=0;a<t.length;a++){var o=__(t[a]);if(o){var i=o.split(DC),s="",l=void 0,u=!1;isNaN(i[0])?(u=!0,s=i[0],i=i.slice(1),r[a]={name:s,value:[]},l=r[a].value):l=r[a]=[];for(var c=0;c<i.length;c++)l.push(+i[c]);l.length===1&&(u?r[a].value=l[0]:r[a]=l[0])}}return{name:n,data:r}}function D8e(e,t){var n=e.split(new RegExp(`
|
||
*`+u4+`
|
||
*`,"g")),r={series:[]};return j(n,function(a,o){if(E8e(a)){var i=I8e(a),s=t[o],l=s.axisDim+"Axis";s&&(r[l]=r[l]||[],r[l][s.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{var i=L8e(a);r.series.push(i)}}),r}var P8e=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){setTimeout(function(){r.dispatchAction({type:"hideTip"})});var a=r.getDom(),o=this.model;this._dom&&a.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",i.style.backgroundColor=o.get("backgroundColor")||Se.color.neutral00;var s=document.createElement("h4"),l=o.get("lang")||[];s.innerHTML=l[0]||o.get("title"),s.style.cssText="margin:10px 20px",s.style.color=o.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=o.get("optionToContent"),d=o.get("contentToOption"),v=A8e(n);if(kt(f)){var h=f(r.getOption());st(h)?u.innerHTML=h:dh(h)&&u.appendChild(h)}else{c.readOnly=o.get("readOnly");var p=c.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=o.get("textColor"),p.borderColor=o.get("textareaBorderColor"),p.backgroundColor=o.get("textareaColor"),c.value=v.value,u.appendChild(c)}var g=v.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",b=document.createElement("div"),w=document.createElement("div");y+=";background-color:"+o.get("buttonColor"),y+=";color:"+o.get("buttonTextColor");var S=this;function x(){a.removeChild(i),S._dom=null}H8(b,"click",x),H8(w,"click",function(){if(d==null&&f!=null||d!=null&&f==null){x();return}var C;try{kt(d)?C=d(u,r.getOption()):C=D8e(c.value,g)}catch(T){throw x(),new Error("Data view format error "+T)}C&&r.dispatchAction({type:"changeDataView",newOption:C}),x()}),b.innerHTML=l[1],w.innerHTML=l[2],w.style.cssText=b.style.cssText=y,!o.get("readOnly")&&m.appendChild(w),m.appendChild(b),i.appendChild(s),i.appendChild(u),i.appendChild(m),u.style.height=a.clientHeight-80+"px",a.appendChild(i),this._dom=i},t.prototype.remove=function(n,r){this._dom&&r.getDom().removeChild(this._dom)},t.prototype.dispose=function(n,r){this.remove(n,r)},t.getDefaultOption=function(n){var r={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:n.getLocaleModel().get(["toolbox","dataView","title"]),lang:n.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:Se.color.background,textColor:Se.color.primary,textareaColor:Se.color.background,textareaBorderColor:Se.color.border,buttonColor:Se.color.accent50,buttonTextColor:Se.color.neutral00};return r},t}(jo);function R8e(e,t){return $e(e,function(n,r){var a=t&&t[r];if(Rt(a)&&!Ve(a)){var o=Rt(n)&&!Ve(n);o||(n={value:n});var i=a.name!=null&&n.name==null;return n=Pt(n,a),i&&delete n.name,n}else return n})}tl({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var n=[];j(e.newOption.series,function(r){var a=t.getSeriesByName(r.name)[0];if(!a)n.push(Pe({type:"scatter"},r));else{var o=a.get("data");n.push({name:r.name,data:R8e(r.data,o)})}}),t.mergeOption(Pt({series:n},e.newOption))});const O8e=P8e;var cq=j,fq=an();function N8e(e,t){var n=GM(e);cq(t,function(r,a){for(var o=n.length-1;o>=0;o--){var i=n[o];if(i[a])break}if(o<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();n[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),n.push(t)}function B8e(e){var t=GM(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return cq(n,function(a,o){for(var i=t.length-1;i>=0;i--)if(a=t[i][o],a){r[o]=a;break}}),r}function V8e(e){fq(e).snapshots=null}function $8e(e){return GM(e).length}function GM(e){var t=fq(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var z8e=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){V8e(n),r.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(n){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:n.getLocaleModel().get(["toolbox","restore","title"])};return r},t}(jo);tl({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const F8e=z8e;var H8e=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],W8e=function(){function e(t,n,r){var a=this;this._targetInfoList=[];var o=_7(n,t);j(G8e,function(i,s){(!r||!r.include||Xt(r.include,s)>=0)&&i(o,a._targetInfoList)})}return e.prototype.setOutputRanges=function(t,n){return this.matchOutputRanges(t,n,function(r,a,o){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var i=SS[r.brushType](0,o,a);r.__rangeOffset={offset:C7[r.brushType](i.values,r.range,[1,1]),xyMinMax:i.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,n,r){j(t,function(a){var o=this.findTargetInfo(a,n);o&&o!==!0&&j(o.coordSyses,function(i){var s=SS[a.brushType](1,i,a.range,!0);r(a,s.values,i,n)})},this)},e.prototype.setInputRanges=function(t,n){j(t,function(r){var a=this.findTargetInfo(r,n);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var o=SS[r.brushType](0,a.coordSys,r.coordRange),i=r.__rangeOffset;r.range=i?C7[r.brushType](o.values,i.offset,U8e(o.xyMinMax,i.xyMinMax)):o.values}},this)},e.prototype.makePanelOpts=function(t,n){return $e(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:n?n(r):null,clipPath:pY(a),isTargetByCursor:mY(a,t,r.coordSysModel),getLinearBrushOtherExtent:gY(a)}})},e.prototype.controlSeries=function(t,n,r){var a=this.findTargetInfo(t,r);return a===!0||a&&Xt(a.coordSyses,n.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,n){for(var r=this._targetInfoList,a=_7(n,t),o=0;o<r.length;o++){var i=r[o],s=t.panelId;if(s){if(i.panelId===s)return i}else for(var l=0;l<w7.length;l++)if(w7[l](a,i))return i}return!0},e}();function PC(e){return e[0]>e[1]&&e.reverse(),e}function _7(e,t){return jv(e,t,{includeMainTypes:H8e})}var G8e={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,a=e.gridModels,o=pt(),i={},s={};!n&&!r&&!a||(j(n,function(l){var u=l.axis.grid.model;o.set(u.id,u),i[u.id]=!0}),j(r,function(l){var u=l.axis.grid.model;o.set(u.id,u),s[u.id]=!0}),j(a,function(l){o.set(l.id,l),i[l.id]=!0,s[l.id]=!0}),o.each(function(l){var u=l.coordinateSystem,c=[];j(u.getCartesians(),function(f,d){(Xt(n,f.getAxis("x").model)>=0||Xt(r,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:S7.grid,xAxisDeclared:i[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){j(e.geoModels,function(n){var r=n.coordinateSystem;t.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:r,coordSyses:[r],getPanelRect:S7.geo})})}},w7=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,a=e.gridModel;return!a&&n&&(a=n.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],S7={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Wf(e)),t}},SS={lineX:Yt(x7,0),lineY:Yt(x7,1),rect:function(e,t,n,r){var a=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),o=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),i=[PC([a[0],o[0]]),PC([a[1],o[1]])];return{values:i,xyMinMax:i}},polygon:function(e,t,n,r){var a=[[1/0,-1/0],[1/0,-1/0]],o=$e(n,function(i){var s=e?t.pointToData(i,r):t.dataToPoint(i,r);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:o,xyMinMax:a}}};function x7(e,t,n,r){var a=n.getAxis(["x","y"][e]),o=PC($e([0,1],function(s){return t?a.coordToData(a.toLocalCoord(r[s]),!0):a.toGlobalCoord(a.dataToCoord(r[s]))})),i=[];return i[e]=o,i[1-e]=[NaN,NaN],{values:o,xyMinMax:i}}var C7={lineX:Yt(T7,0),lineY:Yt(T7,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return $e(e,function(r,a){return[r[0]-n[0]*t[a][0],r[1]-n[1]*t[a][1]]})}};function T7(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function U8e(e,t){var n=k7(e),r=k7(t),a=[n[0]/r[0],n[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function k7(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const UM=W8e;var RC=j,K8e=Xle("toolbox-dataZoom_"),j8e=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a,o){this._brushController||(this._brushController=new wM(a.getZr()),this._brushController.on("brush",lt(this._onBrush,this)).mount()),X8e(n,r,this,o,a),q8e(n,r)},t.prototype.onclick=function(n,r,a){Y8e[a].call(this)},t.prototype.remove=function(n,r){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(n,r){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(n){var r=n.areas;if(!n.isEnd||!r.length)return;var a={},o=this.ecModel;this._brushController.updateCovers([]);var i=new UM(KM(this.model),o,{include:["grid"]});i.matchOutputRanges(r,o,function(u,c,f){if(f.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[d],f,c)}}),N8e(o,a),this._dispatchZoomAction(a);function s(u,c,f){var d=c.getAxis(u),v=d.model,h=l(u,v,o),p=h.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(f=fc(0,f.slice(),d.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),h&&(a[h.id]={dataZoomId:h.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var h=v.getAxisModel(u,c.componentIndex);h&&(d=v)}),d}},t.prototype._dispatchZoomAction=function(n){var r=[];RC(n,function(a,o){r.push(Mt(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},t.getDefaultOption=function(n){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:n.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:Se.color.backgroundTint}};return r},t}(jo),Y8e={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(B8e(this.ecModel))}};function KM(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function q8e(e,t){e.setIconStatus("back",$8e(t)>1?"emphasis":"normal")}function X8e(e,t,n,r,a){var o=n._isZoomActive;r&&r.type==="takeGlobalCursor"&&(o=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var i=new UM(KM(e),t,{include:["grid"]}),s=i.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(s).enableBrush(o&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}Hfe("dataZoom",function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(!t||t.get(n)==null)return;var r=t.getModel(n),a=[],o=KM(r),i=jv(e,o);RC(i.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),RC(i.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:K8e+u+f};d[c]=f,a.push(d)}return a});const Z8e=j8e;function J8e(e){e.registerComponentModel(g8e),e.registerComponentView(b8e),Cv("saveAsImage",w8e),Cv("magicType",C8e),Cv("dataView",O8e),Cv("dataZoom",Z8e),Cv("restore",F8e),Qt(h8e)}var Q8e=function(e){ye(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",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Se.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Se.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:Se.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:Se.color.tertiary,fontSize:14}},t}(mn);const exe=Q8e;function dq(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function vq(e){if(kn.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var hq=vq(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),txe=vq(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function pq(e,t){if(!e)return t;t=cG(t,!0);var n=e.indexOf(t);return e=n===-1?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function nxe(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var rxe=pq(txe,"transition"),jM=pq(hq,"transform"),axe="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(kn.transform3dSupported?"will-change:transform;":"");function oxe(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function ixe(e,t,n){if(!st(n)||n==="inside")return"";var r=e.get("backgroundColor"),a=e.get("borderWidth");t=sd(t);var o=oxe(n),i=Math.max(Math.round(a)*1.5,6),s="",l=jM+":",u;Xt(["left","right"],o)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=o==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=i+a,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-f)/2)*100)/100;s+=";"+o+":-"+v+"px";var h=t+" solid "+a+"px;",p=["position:absolute;width:"+i+"px;height:"+i+"px;z-index:-1;",s+";"+l+";","border-bottom:"+h,"border-right:"+h,"background-color:"+r+";"];return'<div style="'+p.join("")+'"></div>'}function sxe(e,t,n){var r="cubic-bezier(0.23,1,0.32,1)",a="",o="";return n&&(a=" "+e/2+"s "+r,o="opacity"+a+",visibility"+a),t||(a=" "+e+"s "+r,o+=(o.length?",":"")+(kn.transformSupported?""+jM+a:",left"+a+",top"+a)),rxe+":"+o}function M7(e,t,n){var r=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!kn.transformSupported)return n?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var o=kn.transform3dSupported,i="translate"+(o?"3d":"")+"("+r+","+a+(o?",0":"")+")";return n?"top:0;left:0;"+jM+":"+i+";":[["top",0],["left",0],[hq,i]]}function lxe(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var a=yt(e.get("lineHeight"),Math.round(n*3/2));n&&t.push("line-height:"+a+"px");var o=e.get("textShadowColor"),i=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return o&&i&&t.push("text-shadow:"+s+"px "+l+"px "+i+"px "+o),j(["decoration","align"],function(u){var c=e.get(u);c&&t.push("text-"+u+":"+c)}),t.join(";")}function uxe(e,t,n,r){var a=[],o=e.get("transitionDuration"),i=e.get("backgroundColor"),s=e.get("shadowBlur"),l=e.get("shadowColor"),u=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),f=e.getModel("textStyle"),d=QG(e,"html"),v=u+"px "+c+"px "+s+"px "+l;return a.push("box-shadow:"+v),t&&o>0&&a.push(sxe(o,n,r)),i&&a.push("background-color:"+i),j(["width","color","radius"],function(h){var p="border-"+h,g=cG(p),m=e.get(g);m!=null&&a.push(p+":"+m+(h==="color"?"":"px"))}),a.push(lxe(f)),d!=null&&a.push("padding:"+Rm(d).join("px ")+"px"),a.join(";")+";"}function A7(e,t,n,r,a){var o=t&&t.painter;if(n){var i=o&&o.getViewportRoot();i&&fse(e,i,n,r,a)}else{e[0]=r,e[1]=a;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var cxe=function(){function e(t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,kn.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var a=this._zr=t.getZr(),o=n.appendTo,i=o&&(st(o)?document.querySelector(o):dh(o)?o:kt(o)&&o(t.getDom()));A7(this._styleCoord,a,i,t.getWidth()/2,t.getHeight()/2),(i||t.getDom()).appendChild(r),this._api=t,this._container=i;var s=this;r.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},r.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();Fo(c,l,!0),u.dispatch("mousemove",l)}},r.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var n=this._api.getDom(),r=nxe(n,"position"),a=n.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative")}var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},e.prototype.show=function(t,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,o=this._styleCoord;r.innerHTML?a.cssText=axe+uxe(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+M7(o[0],o[1],!0)+("border-color:"+sd(n)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,n,r,a,o){var i=this.el;if(t==null){i.innerHTML="";return}var s="";if(st(o)&&r.get("trigger")==="item"&&!dq(r)&&(s=ixe(r,a,o)),st(t))i.innerHTML=t+s;else if(t){i.innerHTML="",Ve(t)||(t=[t]);for(var l=0;l<t.length;l++)dh(t[l])&&t[l].parentNode!==i&&i.appendChild(t[l]);if(s&&i.childNodes.length){var u=document.createElement("div");u.innerHTML=s,i.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,n){if(this.el){var r=this._styleCoord;if(A7(r,this._zr,this._container,t,n),r[0]!=null&&r[1]!=null){var a=this.el.style,o=M7(r[0],r[1]);j(o,function(i){a[i[0]]=i[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){var t=this,n=this.el.style;this._enableDisplayTransition?(n.visibility="hidden",n.opacity="0"):n.display="none",kn.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(lt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;dse(t&&t.painter&&t.painter.getViewportRoot(),this._container);var n=this.el;if(n){n.onmouseenter=n.onmousemove=n.onmouseleave=null;var r=n.parentNode;r&&r.removeChild(n)}this.el=this._container=null},e}();const fxe=cxe;var dxe=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),I7(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,n,r,a,o){var i=this;Rt(t)&&An(""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new _n({style:{rich:n.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:QG(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),j(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){i.el.style[u]=r.get(u)}),j(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){i.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,n=this.el.getBoundingRect(),r=E7(t.style);return[n.width+r.left+r.right,n.height+r.top+r.bottom]},e.prototype.moveTo=function(t,n){var r=this.el;if(r){var a=this._styleCoord;I7(a,this._zr,t,n),t=a[0],n=a[1];var o=r.style,i=wu(o.borderWidth||0),s=E7(o);r.x=t+i+s.left,r.y=n+i+s.top,r.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(lt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function wu(e){return Math.max(0,e)}function E7(e){var t=wu(e.shadowBlur||0),n=wu(e.shadowOffsetX||0),r=wu(e.shadowOffsetY||0);return{left:wu(t-n),right:wu(t+n),top:wu(t-r),bottom:wu(t+r)}}function I7(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const vxe=dxe;var hxe=new rn({shape:{x:-1,y:-1,width:2,height:2}}),pxe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){if(!(kn.node||!r.getDom())){var a=n.getComponent("tooltip"),o=this._renderMode=rue(a.get("renderMode"));this._tooltipContent=o==="richText"?new vxe(r):new fxe(r,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},t.prototype.render=function(n,r,a){if(!(kn.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=r,this._api=a;var o=this._tooltipContent;o.update(n),o.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?ap(this,"_updatePosition",50,"fixRate"):Mg(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");qY("itemTooltip",this._api,lt(function(a,o,i){r!=="none"&&(r.indexOf(a)>=0?this._tryShow(o,i):a==="leave"&&this._hide(i))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,a=this._api,o=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&i.manuallyShowTip(n,r,a,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,a,o){if(!(o.from===this.uid||kn.node||!a.getDom())){var i=L7(o,a);this._ticket="";var s=o.dataByCoordSys,l=bxe(o,r,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:o.position,positionDefault:"bottom"},i)}else if(o.tooltip&&o.x!=null&&o.y!=null){var c=hxe;c.x=o.x,c.y=o.y,c.update(),Vt(c).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:c},i)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},i);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,a,o))return;var f=XY(o,r),d=f.point[0],v=f.point[1];d!=null&&v!=null&&this._tryShow({offsetX:d,offsetY:v,target:f.el,position:o.position,positionDefault:"bottom"},i)}else o.x!=null&&o.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:a.getZr().findHover(o.x,o.y).target},i))}},t.prototype.manuallyHideTip=function(n,r,a,o){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(L7(o,a))},t.prototype._manuallyAxisShowTip=function(n,r,a,o){var i=o.seriesIndex,s=o.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(i==null||s==null||l==null)){var u=r.getSeriesByIndex(i);if(u){var c=u.getData(),f=Qp([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:s,position:o.position}),!0}}},t.prototype._tryShow=function(n,r){var a=n.target,o=this._tooltipModel;if(o){this._lastX=n.offsetX,this._lastY=n.offsetY;var i=n.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,n);else if(a){var s=Vt(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Tf(a,function(c){if(c.tooltipDisabled)return l=u=null,!0;l||u||(Vt(c).dataIndex!=null?l=c:Vt(c).tooltipConfig!=null&&(u=c))},!0),l?this._showSeriesItemTooltip(n,l,r):u?this._showComponentItemTooltip(n,u,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var a=n.get("showDelay");r=lt(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},t.prototype._showAxisTooltip=function(n,r){var a=this._ecModel,o=this._tooltipModel,i=[r.offsetX,r.offsetY],s=Qp([r.tooltipOption],o),l=this._renderMode,u=[],c=Mr("section",{blocks:[],noHeader:!0}),f=[],d=new n6;j(n,function(y){j(y.dataByAxis,function(b){var w=a.getComponent(b.axisDim+"Axis",b.axisIndex),S=b.value;if(!(!w||S==null)){var x=KY(S,w.axis,a,b.seriesDataIndices,b.valueLabelOpt),C=Mr("section",{header:x,noHeader:!Xo(x),sortBlocks:!0,blocks:[]});c.blocks.push(C),j(b.seriesDataIndices,function(T){var M=a.getSeriesByIndex(T.seriesIndex),k=T.dataIndexInside,E=M.getDataParams(k);if(!(E.dataIndex<0)){E.axisDim=b.axisDim,E.axisIndex=b.axisIndex,E.axisType=b.axisType,E.axisId=b.axisId,E.axisValue=Xb(w.axis,{value:S}),E.axisValueLabel=x,E.marker=d.makeTooltipMarker("item",sd(E.color),l);var A=GL(M.formatTooltip(k,!0,null)),I=A.frag;if(I){var O=Qp([M],o).get("valueFormatter");C.blocks.push(O?Pe({valueFormatter:O},I):I)}A.text&&f.push(A.text),u.push(E)}})}})}),c.blocks.reverse(),f.reverse();var v=r.position,h=s.get("order"),p=XL(c,d,l,h,a.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?`
|
||
|
||
`:"<br/>",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,v,i[0],i[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",i[0],i[1],v,null,d)})},t.prototype._showSeriesItemTooltip=function(n,r,a){var o=this._ecModel,i=Vt(r),s=i.seriesIndex,l=o.getSeriesByIndex(s),u=i.dataModel||l,c=i.dataIndex,f=i.dataType,d=u.getData(f),v=this._renderMode,h=n.positionDefault,p=Qp([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),y=new n6;m.marker=y.makeTooltipMarker("item",sd(m.color),v);var b=GL(u.formatTooltip(c,!1,f)),w=p.get("order"),S=p.get("valueFormatter"),x=b.frag,C=x?XL(S?Pe({valueFormatter:S},x):x,y,v,w,o.get("useUTC"),p.get("textStyle")):b.text,T="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,C,m,T,n.offsetX,n.offsetY,n.position,n.target,y)}),a({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,a){var o=this._renderMode==="html",i=Vt(r),s=i.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(st(l)){var c=l;l={content:c,formatter:c},u=!0}u&&o&&l.content&&(l=Mt(l),l.content=wa(l.content));var f=[l],d=this._ecModel.getComponent(i.componentMainType,i.componentIndex);d&&f.push(d),f.push({formatter:l.content});var v=n.positionDefault,h=Qp(f,this._tooltipModel,v?{position:v}:null),p=h.get("content"),g=Math.random()+"",m=new n6;this._showOrMove(h,function(){var y=Mt(h.get("formatterParams")||{});this._showTooltipContent(h,p,y,g,n.offsetX,n.offsetY,n.position,r,m)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,a,o,i,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var f=this._tooltipContent;f.setEnterable(n.get("enterable"));var d=n.get("formatter");l=l||n.get("position");var v=r,h=this._getNearestPoint([i,s],a,n.get("trigger"),n.get("borderColor"),n.get("defaultBorderColor",!0)),p=h.color;if(d)if(st(d)){var g=n.ecModel.get("useUTC"),m=Ve(a)?a[0]:a,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=d,y&&(v=Uw(m.axisValue,v,g)),v=fG(v,a,!0)}else if(kt(d)){var b=lt(function(w,S){w===this._ticket&&(f.setContent(S,c,n,p,l),this._updatePosition(n,l,i,s,f,a,u))},this);this._ticket=o,v=d(a,o,b)}else v=d;f.setContent(v,c,n,p,l),f.show(n,p),this._updatePosition(n,l,i,s,f,a,u)}},t.prototype._getNearestPoint=function(n,r,a,o,i){if(a==="axis"||Ve(r))return{color:o||i};if(!Ve(r))return{color:o||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,a,o,i,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||n.get("position");var f=i.getSize(),d=n.get("align"),v=n.get("verticalAlign"),h=l&&l.getBoundingRect().clone();if(l&&h.applyTransform(l.transform),kt(r)&&(r=r([a,o],s,i.el,h,{viewSize:[u,c],contentSize:f.slice()})),Ve(r))a=at(r[0],u),o=at(r[1],c);else if(Rt(r)){var p=r;p.width=f[0],p.height=f[1];var g=Qn(p,{width:u,height:c});a=g.x,o=g.y,d=null,v=null}else if(st(r)&&l){var m=yxe(r,h,f,n.get("borderWidth"));a=m[0],o=m[1]}else{var m=gxe(a,o,i,u,c,d?null:20,v?null:20);a=m[0],o=m[1]}if(d&&(a-=D7(d)?f[0]/2:d==="right"?f[0]:0),v&&(o-=D7(v)?f[1]/2:v==="bottom"?f[1]:0),dq(n)){var m=mxe(a,o,i,u,c);a=m[0],o=m[1]}i.moveTo(a,o)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var a=this._lastDataByCoordSys,o=this._cbParamsList,i=!!a&&a.length===n.length;return i&&j(a,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];i=i&&u.length===f.length,i&&j(u,function(d,v){var h=f[v]||{},p=d.seriesDataIndices||[],g=h.seriesDataIndices||[];i=i&&d.value===h.value&&d.axisType===h.axisType&&d.axisId===h.axisId&&p.length===g.length,i&&j(p,function(m,y){var b=g[y];i=i&&m.seriesIndex===b.seriesIndex&&m.dataIndex===b.dataIndex}),o&&j(d.seriesDataIndices,function(m){var y=m.seriesIndex,b=r[y],w=o[y];b&&w&&w.data!==b.data&&(i=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!i},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){kn.node||!r.getDom()||(Mg(this,"_updatePosition"),this._tooltipContent.dispose(),kC("itemTooltip",r))},t.type="tooltip",t}(or);function Qp(e,t,n){var r=t.ecModel,a;n?(a=new Tn(n,r,r),a=new Tn(t.option,a,r)):a=t;for(var o=e.length-1;o>=0;o--){var i=e[o];i&&(i instanceof Tn&&(i=i.get("tooltip",!0)),st(i)&&(i={formatter:i}),i&&(a=new Tn(i,a,r)))}return a}function L7(e,t){return e.dispatchAction||lt(t.dispatchAction,t)}function gxe(e,t,n,r,a,o,i){var s=n.getSize(),l=s[0],u=s[1];return o!=null&&(e+l+o+2>r?e-=l+o:e+=o),i!=null&&(t+u+i>a?t-=u+i:t+=i),[e,t]}function mxe(e,t,n,r,a){var o=n.getSize(),i=o[0],s=o[1];return e=Math.min(e+i,r)-i,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function yxe(e,t,n,r){var a=n[0],o=n[1],i=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-a/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-a/2,l=t.y-o-i;break;case"bottom":s=t.x+u/2-a/2,l=t.y+c+i;break;case"left":s=t.x-a-i,l=t.y+c/2-o/2;break;case"right":s=t.x+u+i,l=t.y+c/2-o/2}return[s,l]}function D7(e){return e==="center"||e==="middle"}function bxe(e,t,n){var r=K5(e).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var o=Xh(t,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),i=o.models[0];if(i){var s=n.getViewOfComponentModel(i),l;if(s.group.traverse(function(u){var c=Vt(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:i.componentIndex,el:l}}}}const _xe=pxe;function wxe(e){Qt(Um),e.registerComponentModel(exe),e.registerComponentView(_xe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},br),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},br)}var Sxe=["rect","polygon","keep","clear"];function xxe(e,t){var n=Bn(e?e.brush:[]);if(n.length){var r=[];j(n,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=e&&e.toolbox;Ve(a)&&(a=a[0]),a||(a={feature:{}},e.toolbox=[a]);var o=a.feature||(a.feature={}),i=o.brush||(o.brush={}),s=i.type||(i.type=[]);s.push.apply(s,r),Cxe(s),t&&!s.length&&s.push.apply(s,Sxe)}}function Cxe(e){var t={};j(e,function(n){t[n]=1}),e.length=0,j(t,function(n,r){e.push(r)})}var P7=j;function R7(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function OC(e,t,n){var r={};return P7(t,function(o){var i=r[o]=a();P7(e[o],function(s,l){if(ua.isValidType(l)){var u={type:l,visual:s};n&&n(u,o),i[l]=new ua(u),l==="opacity"&&(u=Mt(u),u.type="colorAlpha",i.__hidden.__alphaForOpacity=new ua(u))}})}),r;function a(){var o=function(){};o.prototype.__hidden=o.prototype;var i=new o;return i}}function gq(e,t,n){var r;j(n,function(a){t.hasOwnProperty(a)&&R7(t[a])&&(r=!0)}),r&&j(n,function(a){t.hasOwnProperty(a)&&R7(t[a])?e[a]=Mt(t[a]):delete e[a]})}function Txe(e,t,n,r,a,o){var i={};j(e,function(f){var d=ua.prepareVisualTypes(t[f]);i[f]=d});var s;function l(f){return Ik(n,s,f)}function u(f,d){uU(n,s,f,d)}o==null?n.each(c):n.each([o],c);function c(f,d){s=o==null?f:d;var v=n.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var h=r.call(a,f),p=t[h],g=i[h],m=0,y=g.length;m<y;m++){var b=g[m];p[b]&&p[b].applyVisual(f,l,u)}}}function kxe(e,t,n,r){var a={};return j(e,function(o){var i=ua.prepareVisualTypes(t[o]);a[o]=i}),{progress:function(i,s){var l;r!=null&&(l=s.getDimensionIndex(r));function u(S){return Ik(s,f,S)}function c(S,x){uU(s,f,S,x)}for(var f,d=s.getStore();(f=i.next())!=null;){var v=s.getRawDataItem(f);if(!(v&&v.visualMap===!1))for(var h=r!=null?d.get(l,f):f,p=n(h),g=t[p],m=a[p],y=0,b=m.length;y<b;y++){var w=m[y];g[w]&&g[w].applyVisual(h,u,c)}}}}}function Mxe(e){var t=e.brushType,n={point:function(r){return O7[t].point(r,n,e)},rect:function(r){return O7[t].rect(r,n,e)}};return n}var O7={lineX:N7(0),lineY:N7(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&df(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var a=e.x,o=e.y,i=e.width,s=e.height,l=r[0];if(df(r,a,o)||df(r,a+i,o)||df(r,a,o+s)||df(r,a+i,o+s)||Ot.create(e).contain(l[0],l[1])||m0(a,o,a+i,o,r)||m0(a,o,a,o+s,r)||m0(a+i,o,a+i,o+s,r)||m0(a,o+s,a+i,o+s,r))return!0}}};function N7(e){var t=["x","y"],n=["width","height"];return{point:function(r,a,o){if(r){var i=o.range,s=r[e];return e0(s,i)}},rect:function(r,a,o){if(r){var i=o.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]<s[0]&&s.reverse(),e0(s[0],i)||e0(s[1],i)||e0(i[0],s)||e0(i[1],s)}}}}function e0(e,t){return t[0]<=e&&e<=t[1]}var B7=["inBrush","outOfBrush"],xS="__ecBrushSelect",NC="__ecInBrushSelectEvent";function mq(e){e.eachComponent({mainType:"brush"},function(t){var n=t.brushTargetManager=new UM(t.option,e);n.setInputRanges(t.areas,e)})}function Axe(e,t,n){var r=[],a,o;e.eachComponent({mainType:"brush"},function(i){n&&n.type==="takeGlobalCursor"&&i.setBrushOption(n.key==="brush"?n.brushOption:{brushType:!1})}),mq(e),e.eachComponent({mainType:"brush"},function(i,s){var l={brushId:i.id,brushIndex:s,brushName:i.name,areas:Mt(i.areas),selected:[]};r.push(l);var u=i.option,c=u.brushLink,f=[],d=[],v=[],h=!1;s||(a=u.throttleType,o=u.throttleDelay);var p=$e(i.areas,function(S){var x=Dxe[S.brushType],C=Pt({boundingRect:x?x(S):void 0},S);return C.selectors=Mxe(C),C}),g=OC(i.option,B7,function(S){S.mappingMethod="fixed"});Ve(c)&&j(c,function(S){f[S]=1});function m(S){return c==="all"||!!f[S]}function y(S){return!!S.length}e.eachSeries(function(S,x){var C=v[x]=[];S.subType==="parallel"?b(S,x):w(S,x,C)});function b(S,x){var C=S.coordinateSystem;h=h||C.hasAxisBrushed(),m(x)&&C.eachActiveState(S.getData(),function(T,M){T==="active"&&(d[M]=1)})}function w(S,x,C){if(!(!S.brushSelector||Lxe(i,x))&&(j(p,function(M){i.brushTargetManager.controlSeries(M,S,e)&&C.push(M),h=h||y(C)}),m(x)&&y(C))){var T=S.getData();T.each(function(M){V7(S,C,T,M)&&(d[M]=1)})}}e.eachSeries(function(S,x){var C={seriesId:S.id,seriesIndex:x,seriesName:S.name,dataIndex:[]};l.selected.push(C);var T=v[x],M=S.getData(),k=m(x)?function(E){return d[E]?(C.dataIndex.push(M.getRawIndex(E)),"inBrush"):"outOfBrush"}:function(E){return V7(S,T,M,E)?(C.dataIndex.push(M.getRawIndex(E)),"inBrush"):"outOfBrush"};(m(x)?h:y(T))&&Txe(B7,g,M,k)})}),Exe(t,a,o,r,n)}function Exe(e,t,n,r,a){if(a){var o=e.getZr();if(!o[NC]){o[xS]||(o[xS]=Ixe);var i=ap(o,xS,n,t);i(e,r)}}}function Ixe(e,t){if(!e.isDisposed()){var n=e.getZr();n[NC]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[NC]=!1}}function V7(e,t,n,r){for(var a=0,o=t.length;a<o;a++){var i=t[a];if(e.brushSelector(r,n,i.selectors,i))return!0}}function Lxe(e,t){var n=e.option.seriesIndex;return n!=null&&n!=="all"&&(Ve(n)?Xt(n,t)<0:t!==n)}var Dxe={rect:function(e){return $7(e.range)},polygon:function(e){for(var t,n=e.range,r=0,a=n.length;r<a;r++){t=t||[[1/0,-1/0],[1/0,-1/0]];var o=n[r];o[0]<t[0][0]&&(t[0][0]=o[0]),o[0]>t[0][1]&&(t[0][1]=o[0]),o[1]<t[1][0]&&(t[1][0]=o[1]),o[1]>t[1][1]&&(t[1][1]=o[1])}return t&&$7(t)}};function $7(e){return new Ot(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var Pxe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){this.ecModel=n,this.api=r,this.model,(this._brushController=new wM(r.getZr())).on("brush",lt(this._onBrush,this)).mount()},t.prototype.render=function(n,r,a,o){this.model=n,this._updateController(n,r,a,o)},t.prototype.updateTransform=function(n,r,a,o){mq(r),this._updateController(n,r,a,o)},t.prototype.updateVisual=function(n,r,a,o){this.updateTransform(n,r,a,o)},t.prototype.updateView=function(n,r,a,o){this._updateController(n,r,a,o)},t.prototype._updateController=function(n,r,a,o){(!o||o.$from!==n.id)&&this._brushController.setPanels(n.brushTargetManager.makePanelOpts(a)).enableBrush(n.brushOption).updateCovers(n.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(n){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(n.areas,this.ecModel);(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Mt(a),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Mt(a),$from:r})},t.type="brush",t}(or);const Rxe=Pxe;var Oxe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return t.prototype.optionUpdated=function(n,r){var a=this.option;!r&&gq(a,n,["inBrush","outOfBrush"]);var o=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:this.option.defaultOutOfBrushColor},o.hasOwnProperty("liftZ")||(o.liftZ=5)},t.prototype.setAreas=function(n){n&&(this.areas=$e(n,function(r){return z7(this.option,r)},this))},t.prototype.setBrushOption=function(n){this.brushOption=z7(this.option,n),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:Se.color.backgroundTint,borderColor:Se.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:Se.color.disabled},t}(mn);function z7(e,t){return Zt({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Tn(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const Nxe=Oxe;var Bxe=["rect","polygon","lineX","lineY","keep","clear"],Vxe=function(e){ye(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a){var o,i,s;r.eachComponent({mainType:"brush"},function(l){o=l.brushType,i=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=o,this._brushMode=i,j(n.get("type",!0),function(l){n.setIconStatus(l,(l==="keep"?i==="multiple":l==="clear"?s:l===o)?"emphasis":"normal")})},t.prototype.updateView=function(n,r,a){this.render(n,r,a)},t.prototype.getIcons=function(){var n=this.model,r=n.get("icon",!0),a={};return j(n.get("type",!0),function(o){r[o]&&(a[o]=r[o])}),a},t.prototype.onclick=function(n,r,a){var o=this._brushType,i=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?o:o===a?!1:a,brushMode:a==="keep"?i==="multiple"?"single":"multiple":i}})},t.getDefaultOption=function(n){var r={show:!0,type:Bxe.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:n.getLocaleModel().get(["toolbox","brush","title"])};return r},t}(jo);const $xe=Vxe;function zxe(e){e.registerComponentView(Rxe),e.registerComponentModel(Nxe),e.registerPreprocessor(xxe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Axe),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,n){n.eachComponent({mainType:"brush",query:t},function(r){r.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},br),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},br),Cv("brush",$xe)}var Fxe=function(e){ye(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.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:Se.size.m,backgroundColor:Se.color.transparent,borderColor:Se.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:Se.color.primary},subtextStyle:{fontSize:12,color:Se.color.quaternary}},t}(mn),Hxe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){if(this.group.removeAll(),!!n.get("show")){var o=this.group,i=n.getModel("textStyle"),s=n.getModel("subtextStyle"),l=n.get("textAlign"),u=yt(n.get("textBaseline"),n.get("textVerticalAlign")),c=new _n({style:zn(i,{text:n.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=n.get("subtext"),v=new _n({style:zn(s,{text:d,fill:s.getTextColor(),y:f.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),h=n.get("link"),p=n.get("sublink"),g=n.get("triggerEvent",!0);c.silent=!h&&!g,v.silent=!p&&!g,h&&c.on("click",function(){Fb(h,"_"+n.get("target"))}),p&&v.on("click",function(){Fb(p,"_"+n.get("subtarget"))}),Vt(c).eventData=Vt(v).eventData=g?{componentType:"title",componentIndex:n.componentIndex}:null,o.add(c),d&&o.add(v);var m=o.getBoundingRect(),y=n.getBoxLayoutParams();y.width=m.width,y.height=m.height;var b=$r(n,a),w=Qn(y,b.refContainer,n.get("padding"));l||(l=n.get("left")||n.get("right"),l==="middle"&&(l="center"),l==="right"?w.x+=w.width:l==="center"&&(w.x+=w.width/2)),u||(u=n.get("top")||n.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?w.y+=w.height:u==="middle"&&(w.y+=w.height/2),u=u||"top"),o.x=w.x,o.y=w.y,o.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),v.setStyle(S),m=o.getBoundingRect();var x=w.margin,C=n.getItemStyle(["color","opacity"]);C.fill=n.get("backgroundColor");var T=new rn({shape:{x:m.x-x[3],y:m.y-x[0],width:m.width+x[1]+x[3],height:m.height+x[0]+x[2],r:n.get("borderRadius")},style:C,subPixelOptimize:!0,silent:!0});o.add(T)}},t.type="title",t}(or);function Wxe(e){e.registerComponentModel(Fxe),e.registerComponentView(Hxe)}var Gxe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),this._initData()},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(n){n==null&&(n=this.option.currentIndex);var r=this._data.count();this.option.loop?n=(n%r+r)%r:(n>=r&&(n=r-1),n<0&&(n=0)),this.option.currentIndex=n},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(n){this.option.autoPlay=!!n},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var n=this.option,r=n.data||[],a=n.axisType,o=this._names=[],i;a==="category"?(i=[],j(r,function(u,c){var f=Pr(qh(u),""),d;Rt(u)?(d=Mt(u),d.value=c):d=c,i.push(d),o.push(f)})):i=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new Wa([{name:"value",type:s}],this);l.initData(i,o)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:Se.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:Se.color.secondary},data:[]},t}(mn);const F7=Gxe;var yq=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline.slider",t.defaultOption=wc(F7.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:Se.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:Se.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:Se.color.tertiary},itemStyle:{color:Se.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:Se.color.accent50,borderColor:Se.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:Se.color.accent50,borderColor:Se.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:Se.color.accent60},itemStyle:{color:Se.color.accent60,borderColor:Se.color.accent60},controlStyle:{color:Se.color.accent70,borderColor:Se.color.accent70}},progress:{lineStyle:{color:Se.color.accent30},itemStyle:{color:Se.color.accent40}},data:[]}),t}(F7);Er(yq,Yw.prototype);const Uxe=yq;var Kxe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline",t}(or);const jxe=Kxe;var Yxe=function(e){ye(t,e);function t(n,r,a,o){var i=e.call(this,n,r,a)||this;return i.type=o||"value",i}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(Gi);const qxe=Yxe;var CS=Math.PI,H7=an(),Xxe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){this.api=r},t.prototype.render=function(n,r,a){if(this.model=n,this.api=a,this.ecModel=r,this.group.removeAll(),n.get("show",!0)){var o=this._layout(n,a),i=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(o,n);n.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Mr("nameValue",{noName:!0,value:c})},j(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](o,i,l,n)},this),this._renderAxisLabel(o,s,l,n),this._position(o,n)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(n,r){var a=n.get(["label","position"]),o=n.get("orient"),i=Jxe(n,r),s;a==null||a==="auto"?s=o==="horizontal"?i.y+i.height/2<r.getHeight()/2?"-":"+":i.x+i.width/2<r.getWidth()/2?"+":"-":st(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[o][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:CS/2},f=o==="vertical"?i.height:i.width,d=n.getModel("controlStyle"),v=d.get("show",!0),h=v?d.get("itemSize"):0,p=v?d.get("itemGap"):0,g=h+p,m=n.get(["label","rotate"])||0;m=m*CS/180;var y,b,w,S=d.get("position",!0),x=v&&d.get("showPlayBtn",!0),C=v&&d.get("showPrevBtn",!0),T=v&&d.get("showNextBtn",!0),M=0,k=f;S==="left"||S==="bottom"?(x&&(y=[0,0],M+=g),C&&(b=[M,0],M+=g),T&&(w=[k-h,0],k-=g)):(x&&(y=[k-h,0],k-=g),C&&(b=[0,0],M+=g),T&&(w=[k-h,0],k-=g));var E=[M,k];return n.get("inverse")&&E.reverse(),{viewRect:i,mainLength:f,orient:o,rotation:c[o],labelRotation:m,labelPosOpt:s,labelAlign:n.get(["label","align"])||l[o],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||u[o],playPosition:y,prevBtnPosition:b,nextBtnPosition:w,axisExtent:E,controlSize:h,controlGap:p}},t.prototype._position=function(n,r){var a=this._mainGroup,o=this._labelGroup,i=n.viewRect;if(n.orient==="vertical"){var s=Jr(),l=i.x,u=i.y+i.height;Hs(s,s,[-l,-u]),yc(s,s,-CS/2),Hs(s,s,[l,u]),i=i.clone(),i.applyTransform(s)}var c=y(i),f=y(a.getBoundingRect()),d=y(o.getBoundingRect()),v=[a.x,a.y],h=[o.x,o.y];h[0]=v[0]=c[0][0];var p=n.labelPosOpt;if(p==null||st(p)){var g=p==="+"?0:1;b(v,f,c,1,g),b(h,d,c,1,1-g)}else{var g=p>=0?0:1;b(v,f,c,1,g),h[1]=v[1]+p}a.setPosition(v),o.setPosition(h),a.rotation=o.rotation=n.rotation,m(a),m(o);function m(w){w.originX=c[0][0]-w.x,w.originY=c[1][0]-w.y}function y(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function b(w,S,x,C,T){w[C]+=x[C][T]-S[C][T]}},t.prototype._createAxis=function(n,r){var a=r.getData(),o=r.get("axisType"),i=Zxe(r,o);i.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");i.setExtent(s[0],s[1]),i.calcNiceTicks();var l=new qxe("value",i,n.axisExtent,o);return l.model=r,l},t.prototype._createGroup=function(n){var r=this[n]=new At;return this.group.add(r),r},t.prototype._renderAxisLine=function(n,r,a,o){var i=a.getExtent();if(o.get(["lineStyle","show"])){var s=new Rr({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Pe({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new Rr({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:Pt({lineCap:"round",lineWidth:s.style.lineWidth},o.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},t.prototype._renderAxisTick=function(n,r,a,o){var i=this,s=o.getData(),l=a.scale.getTicks();this._tickSymbols=[],j(l,function(u){var c=a.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),v=f.getModel(["emphasis","itemStyle"]),h=f.getModel(["progress","itemStyle"]),p={x:c,y:0,onclick:lt(i._changeTimeline,i,u.value)},g=W7(f,d,r,p);g.ensureState("emphasis").style=v.getItemStyle(),g.ensureState("progress").style=h.getItemStyle(),Hf(g);var m=Vt(g);f.get("tooltip")?(m.dataIndex=u.value,m.dataModel=o):m.dataIndex=m.dataModel=null,i._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(n,r,a,o){var i=this,s=a.getLabelModel();if(s.get("show")){var l=o.getData(),u=a.getViewLabels();this._tickLabels=[],j(u,function(c){var f=c.tickValue,d=l.getItemModel(f),v=d.getModel("label"),h=d.getModel(["emphasis","label"]),p=d.getModel(["progress","label"]),g=a.dataToCoord(c.tickValue),m=new _n({x:g,y:0,rotation:n.labelRotation-n.rotation,onclick:lt(i._changeTimeline,i,f),silent:!1,style:zn(v,{text:c.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});m.ensureState("emphasis").style=zn(h),m.ensureState("progress").style=zn(p),r.add(m),Hf(m),H7(m).dataIndex=f,i._tickLabels.push(m)})}},t.prototype._renderControl=function(n,r,a,o){var i=n.controlSize,s=n.rotation,l=o.getModel("controlStyle").getItemStyle(),u=o.getModel(["emphasis","controlStyle"]).getItemStyle(),c=o.getPlayState(),f=o.get("inverse",!0);d(n.nextBtnPosition,"next",lt(this._changeTimeline,this,f?"-":"+")),d(n.prevBtnPosition,"prev",lt(this._changeTimeline,this,f?"+":"-")),d(n.playPosition,c?"stop":"play",lt(this._handlePlayClick,this,!c),!0);function d(v,h,p,g){if(v){var m=Ri(yt(o.get(["controlStyle",h+"BtnSize"]),i),i),y=[0,-m/2,m,m],b=Qxe(o,h+"Icon",y,{x:v[0],y:v[1],originX:i/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});b.ensureState("emphasis").style=u,r.add(b),Hf(b)}}},t.prototype._renderCurrentPointer=function(n,r,a,o){var i=o.getData(),s=o.getCurrentIndex(),l=i.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=lt(u._handlePointerDrag,u),f.ondragend=lt(u._handlePointerDragend,u),G7(f,u._progressLine,s,a,o,!0)},onUpdate:function(f){G7(f,u._progressLine,s,a,o)}};this._currentPointer=W7(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(n){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:n,from:this.uid})},t.prototype._handlePointerDrag=function(n,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(n){this._pointerChangeTimeline([n.offsetX,n.offsetY],!0)},t.prototype._pointerChangeTimeline=function(n,r){var a=this._toAxisCoord(n)[0],o=this._axis,i=Zo(o.getExtent().slice());a>i[1]&&(a=i[1]),a<i[0]&&(a=i[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),u=this.model;(r||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var n=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var r=n.model;n._changeTimeline(r.getCurrentIndex()+(r.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(n){var r=this._mainGroup.getLocalTransform();return Ci(n,r,!0)},t.prototype._findNearestTick=function(n){var r=this.model.getData(),a=1/0,o,i=this._axis;return r.each(["value"],function(s,l){var u=i.dataToCoord(s),c=Math.abs(u-n);c<a&&(a=c,o=l)}),o},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(n){var r=this.model.getCurrentIndex();n==="+"?n=r+1:n==="-"&&(n=r-1),this.api.dispatchAction({type:"timelineChange",currentIndex:n,from:this.uid})},t.prototype._updateTicksStatus=function(){var n=this.model.getCurrentIndex(),r=this._tickSymbols,a=this._tickLabels;if(r)for(var o=0;o<r.length;o++)r&&r[o]&&r[o].toggleState("progress",o<n);if(a)for(var o=0;o<a.length;o++)a&&a[o]&&a[o].toggleState("progress",H7(a[o]).dataIndex<=n)},t.type="timeline.slider",t}(jxe);function Zxe(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Dg({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new QU({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new uc}}function Jxe(e,t){return Qn(e.getBoxLayoutParams(),$r(e,t).refContainer,e.get("padding"))}function Qxe(e,t,n,r){var a=r.style,o=Pm(e.get(["controlStyle",t]),r||{},new Ot(n[0],n[1],n[2],n[3]));return a&&o.setStyle(a),o}function W7(e,t,n,r,a,o){var i=t.get("color");if(a)a.setColor(i),n.add(a),o&&o.onUpdate(a);else{var s=e.get("symbol");a=Ar(s,-1,-1,2,2,i),a.setStyle("strokeNoScale",!0),n.add(a),o&&o.onCreate(a)}var l=t.getItemStyle(["color"]);a.setStyle(l),r=Zt({rectHover:!0,z2:100},r,!0);var u=op(e.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=Md(e.get("symbolOffset"),u);c&&(r.x=(r.x||0)+c[0],r.y=(r.y||0)+c[1]);var f=e.get("symbolRotate");return r.rotation=(f||0)*Math.PI/180||0,a.attr(r),a.updateTransform(),a}function G7(e,t,n,r,a,o){if(!e.dragging){var i=a.getModel("checkpointStyle"),s=r.dataToCoord(a.getData().get("value",n));if(o||!i.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:i.get("animationDuration",!0),easing:i.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}const eCe=Xxe;function tCe(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,n,r){var a=n.getComponent("timeline");return a&&t.currentIndex!=null&&(a.setCurrentIndex(t.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),r.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),n.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),Pt({currentIndex:a.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,n){var r=n.getComponent("timeline");r&&t.playState!=null&&r.setPlayState(t.playState)})}function nCe(e){var t=e&&e.timeline;Ve(t)||(t=t?[t]:[]),j(t,function(n){n&&rCe(n)})}function rCe(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),U7(e),pf(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});pf(r,"position")||(r.position=e.controlPosition),r.position==="none"&&!pf(r,"show")&&(r.show=!1,delete r.position),delete e.controlPosition}j(e.data||[],function(a){Rt(a)&&!Ve(a)&&(!pf(a,"value")&&pf(a,"name")&&(a.value=a.name),U7(a))})}function U7(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),r=e.label||e.label||{},a=r.normal||(r.normal={}),o={normal:1,emphasis:1};j(r,function(i,s){!o[s]&&!pf(a,s)&&(a[s]=i)}),n.label&&!pf(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function pf(e,t){return e.hasOwnProperty(t)}function aCe(e){e.registerComponentModel(Uxe),e.registerComponentView(eCe),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),tCe(e),e.registerPreprocessor(nCe)}function YM(e,t){if(!e)return!1;for(var n=Ve(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function Wy(e){td(e,"label",["show"])}var Gy=an(),bq=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n.preventAutoZ=!0,n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),this._mergeOption(n,a,!1,!0)},t.prototype.isAnimationEnabled=function(){if(kn.node)return!1;var n=this.__hostSeries;return this.getShallow("animation")&&n&&n.isAnimationEnabled()},t.prototype.mergeOption=function(n,r){this._mergeOption(n,r,!1,!1)},t.prototype._mergeOption=function(n,r,a,o){var i=this.mainType;a||r.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Gy(s)[i];if(!l||!l.data){Gy(s)[i]=null;return}u?u._mergeOption(l,r,!0):(o&&Wy(l),j(l.data,function(c){c instanceof Array?(Wy(c[0]),Wy(c[1])):Wy(c)}),u=this.createMarkerModelFromSeries(l,this,r),Pe(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Gy(s)[i]=u},this)},t.prototype.formatTooltip=function(n,r,a){var o=this.getData(),i=this.getRawValue(n),s=o.getName(n);return Mr("section",{header:this.name,blocks:[Mr("nameValue",{name:s,value:i,noName:!s,noValue:i==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(n){this._data=n},t.prototype.getDataParams=function(n,r){var a=Yw.prototype.getDataParams.call(this,n,r),o=this.__hostSeries;return o&&(a.seriesId=o.id,a.seriesName=o.name,a.seriesType=o.subType),a},t.getMarkerModelFromSeries=function(n,r){return Gy(n)[r]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(mn);Er(bq,Yw.prototype);const Ul=bq;var oCe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,a){return new t(n,r,a)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(Ul);const iCe=oCe;function BC(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function sCe(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function Uy(e,t,n,r,a,o,i){var s=[],l=lc(t,a),u=l?t.getCalculationInfo("stackResultDimension"):a,c=w_(t,u,e),f=t.hostModel,d=f.indicesOfNearest(n,u,c)[0];s[o]=t.get(r,d),s[i]=t.get(u,d);var v=t.get(a,d),h=ys(t.get(a,d));return h=Math.min(h,20),h>=0&&(s[i]=+s[i].toFixed(h)),[s,v]}var Ky={min:Yt(Uy,"min"),max:Yt(Uy,"max"),average:Yt(Uy,"average"),median:Yt(Uy,"median")};function Wg(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,a=r&&r.dimensions;if(!sCe(t)&&!Ve(t.coord)&&Ve(a)){var o=_q(t,n,r,e);if(t=Mt(t),t.type&&Ky[t.type]&&o.baseAxis&&o.valueAxis){var i=Xt(a,o.baseAxis.dim),s=Xt(a,o.valueAxis.dim),l=Ky[t.type](n,o.valueAxis.dim,o.baseDataDim,o.valueDataDim,i,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!Ve(a)){t.coord=[];var u=e.getBaseAxis();if(u&&t.type&&Ky[t.type]){var c=r.getOtherAxis(u);c&&(t.value=w_(n,n.mapDimension(c.dim),t.type))}}else for(var f=t.coord,d=0;d<2;d++)Ky[f[d]]&&(f[d]=w_(n,n.mapDimension(a[d]),f[d]));return t}}function _q(e,t,n,r){var a={};return e.valueIndex!=null||e.valueDim!=null?(a.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=n.getAxis(lCe(r,a.valueDataDim)),a.baseAxis=n.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=n.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function lCe(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function Gg(e,t){return e&&e.containData&&t.coord&&!BC(t)?e.containData(t.coord):!0}function uCe(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!BC(t)&&!BC(n)?e.containZone(t.coord,n.coord):!0}function wq(e,t){return e?function(n,r,a,o){var i=o<2?n.coord&&n.coord[o]:n.value;return Zu(i,t[o])}:function(n,r,a,o){return Zu(n.value,t[o])}}function w_(e,t,n){if(n==="average"){var r=0,a=0;return e.each(t,function(o,i){isNaN(o)||(r+=o,a++)}),r/a}else return n==="median"?e.getMedian(t):e.getDataExtent(t)[n==="max"?1:0]}var TS=an(),cCe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=pt()},t.prototype.render=function(n,r,a){var o=this,i=this.markerGroupMap;i.each(function(s){TS(s).keep=!1}),r.eachSeries(function(s){var l=Ul.getMarkerModelFromSeries(s,o.type);l&&o.renderSeries(s,l,r,a)}),i.each(function(s){!TS(s).keep&&o.group.remove(s.group)}),fCe(r,i,this.type)},t.prototype.markKeep=function(n){TS(n).keep=!0},t.prototype.toggleBlurSeries=function(n,r){var a=this;j(n,function(o){var i=Ul.getMarkerModelFromSeries(o,a.type);if(i){var s=i.getData();s.eachItemGraphicEl(function(l){l&&(r?mW(l):ek(l))})}})},t.type="marker",t}(or);function fCe(e,t,n){e.eachSeries(function(r){var a=Ul.getMarkerModelFromSeries(r,n),o=t.get(r.id);if(a&&o&&o.group){var i=id(a),s=i.z,l=i.zlevel;Ww(o.group,s,l)}})}const qM=cCe;function K7(e,t,n){var r=t.coordinateSystem,a=n.getWidth(),o=n.getHeight(),i=r&&r.getArea&&r.getArea();e.each(function(s){var l=e.getItemModel(s),u=l.get("relativeTo")==="coordinate",c=u?i?i.width:0:a,f=u?i?i.height:0:o,d=u&&i?i.x:0,v=u&&i?i.y:0,h,p=at(l.get("x"),c)+d,g=at(l.get("y"),f)+v;if(!isNaN(p)&&!isNaN(g))h=[p,g];else if(t.getMarkerPosition)h=t.getMarkerPosition(e.getValues(e.dimensions,s));else if(r){var m=e.get(r.dimensions[0],s),y=e.get(r.dimensions[1],s);h=r.dataToPoint([m,y])}isNaN(p)||(h[0]=p),isNaN(g)||(h[1]=g),e.setItemLayout(s,h)})}var dCe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(o){var i=Ul.getMarkerModelFromSeries(o,"markPoint");i&&(K7(i.getData(),o,a),this.markerGroupMap.get(o.id).updateLayout())},this)},t.prototype.renderSeries=function(n,r,a,o){var i=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Fm),f=vCe(i,n,r);r.setData(f),K7(r.getData(),n,o),f.each(function(d){var v=f.getItemModel(d),h=v.getShallow("symbol"),p=v.getShallow("symbolSize"),g=v.getShallow("symbolRotate"),m=v.getShallow("symbolOffset"),y=v.getShallow("symbolKeepAspect");if(kt(h)||kt(p)||kt(g)||kt(m)){var b=r.getRawValue(d),w=r.getDataParams(d);kt(h)&&(h=h(b,w)),kt(p)&&(p=p(b,w)),kt(g)&&(g=g(b,w)),kt(m)&&(m=m(b,w))}var S=v.getModel("itemStyle").getItemStyle(),x=v.get("z2"),C=Bm(l,"color");S.fill||(S.fill=C),f.setItemVisual(d,{z2:yt(x,0),symbol:h,symbolSize:p,symbolRotate:g,symbolOffset:m,symbolKeepAspect:y,style:S})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(v){Vt(v).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},t.type="markPoint",t}(qM);function vCe(e,t,n){var r;e?r=$e(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Pe(Pe({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new Wa(r,n),o=$e(n.get("data"),Yt(Wg,t));e&&(o=In(o,Yt(Gg,e)));var i=wq(!!e,r);return a.initData(o,null,i),a}const hCe=dCe;function pCe(e){e.registerComponentModel(iCe),e.registerComponentView(hCe),e.registerPreprocessor(function(t){YM(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var gCe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,a){return new t(n,r,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Ul);const mCe=gCe;var jy=an(),yCe=function(e,t,n,r){var a=e.getData(),o;if(Ve(r))o=r;else{var i=r.type;if(i==="min"||i==="max"||i==="average"||i==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis!=null?"y":"x"),l=la(r.yAxis,r.xAxis);else{var u=_q(r,a,t,e);s=u.valueAxis;var c=$U(a,u.valueDataDim);l=w_(a,c,i)}var f=s.dim==="x"?0:1,d=1-f,v=Mt(r),h={coord:[]};v.type=null,v.coord=[],v.coord[d]=-1/0,h.coord[d]=1/0;var p=n.get("precision");p>=0&&gn(l)&&(l=+l.toFixed(Math.min(p,20))),v.coord[f]=h.coord[f]=l,o=[v,h,{type:i,valueIndex:r.valueIndex,value:l}]}else o=[]}var g=[Wg(e,o[0]),Wg(e,o[1]),Pe({},o[2])];return g[2].type=g[2].type||null,Zt(g[2],g[0]),Zt(g[2],g[1]),g};function S_(e){return!isNaN(e)&&!isFinite(e)}function j7(e,t,n,r){var a=1-e,o=r.dimensions[e];return S_(t[a])&&S_(n[a])&&t[e]===n[e]&&r.getAxis(o).containData(t[e])}function bCe(e,t){if(e.type==="cartesian2d"){var n=t[0].coord,r=t[1].coord;if(n&&r&&(j7(1,n,r,e)||j7(0,n,r,e)))return!0}return Gg(e,t[0])&&Gg(e,t[1])}function kS(e,t,n,r,a){var o=r.coordinateSystem,i=e.getItemModel(t),s,l=at(i.get("x"),a.getWidth()),u=at(i.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=o.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=o.dataToPoint([f,d])}if(cc(o,"cartesian2d")){var v=o.getAxis("x"),h=o.getAxis("y"),c=o.dimensions;S_(e.get(c[0],t))?s[0]=v.toGlobalCoord(v.getExtent()[n?0:1]):S_(e.get(c[1],t))&&(s[1]=h.toGlobalCoord(h.getExtent()[n?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var _Ce=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(o){var i=Ul.getMarkerModelFromSeries(o,"markLine");if(i){var s=i.getData(),l=jy(i).from,u=jy(i).to;l.each(function(c){kS(l,c,!0,o,a),kS(u,c,!1,o,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(o.id).updateLayout()}},this)},t.prototype.renderSeries=function(n,r,a,o){var i=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new hM);this.group.add(c.group);var f=wCe(i,n,r),d=f.from,v=f.to,h=f.line;jy(r).from=d,jy(r).to=v,r.setData(h);var p=r.get("symbol"),g=r.get("symbolSize"),m=r.get("symbolRotate"),y=r.get("symbolOffset");Ve(p)||(p=[p,p]),Ve(g)||(g=[g,g]),Ve(m)||(m=[m,m]),Ve(y)||(y=[y,y]),f.from.each(function(w){b(d,w,!0),b(v,w,!1)}),h.each(function(w){var S=h.getItemModel(w),x=S.getModel("lineStyle").getLineStyle();h.setItemLayout(w,[d.getItemLayout(w),v.getItemLayout(w)]);var C=S.get("z2");x.stroke==null&&(x.stroke=d.getItemVisual(w,"style").fill),h.setItemVisual(w,{z2:yt(C,0),fromSymbolKeepAspect:d.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(w,"symbolOffset"),fromSymbolRotate:d.getItemVisual(w,"symbolRotate"),fromSymbolSize:d.getItemVisual(w,"symbolSize"),fromSymbol:d.getItemVisual(w,"symbol"),toSymbolKeepAspect:v.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(w,"symbolOffset"),toSymbolRotate:v.getItemVisual(w,"symbolRotate"),toSymbolSize:v.getItemVisual(w,"symbolSize"),toSymbol:v.getItemVisual(w,"symbol"),style:x})}),c.updateData(h),f.line.eachItemGraphicEl(function(w){Vt(w).dataModel=r,w.traverse(function(S){Vt(S).dataModel=r})});function b(w,S,x){var C=w.getItemModel(S);kS(w,S,x,n,o);var T=C.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Bm(l,"color")),w.setItemVisual(S,{symbolKeepAspect:C.get("symbolKeepAspect"),symbolOffset:yt(C.get("symbolOffset",!0),y[x?0:1]),symbolRotate:yt(C.get("symbolRotate",!0),m[x?0:1]),symbolSize:yt(C.get("symbolSize"),g[x?0:1]),symbol:yt(C.get("symbol",!0),p[x?0:1]),style:T})}this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},t.type="markLine",t}(qM);function wCe(e,t,n){var r;e?r=$e(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return Pe(Pe({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new Wa(r,n),o=new Wa(r,n),i=new Wa([],n),s=$e(n.get("data"),Yt(yCe,t,e,n));e&&(s=In(s,Yt(bCe,e)));var l=wq(!!e,r);return a.initData($e(s,function(u){return u[0]}),null,l),o.initData($e(s,function(u){return u[1]}),null,l),i.initData($e(s,function(u){return u[2]})),i.hasItemOption=!0,{from:a,to:o,line:i}}const SCe=_Ce;function xCe(e){e.registerComponentModel(mCe),e.registerComponentView(SCe),e.registerPreprocessor(function(t){YM(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var CCe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,a){return new t(n,r,a)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Ul);const TCe=CCe;var Yy=an(),kCe=function(e,t,n,r){var a=r[0],o=r[1];if(!(!a||!o)){var i=Wg(e,a),s=Wg(e,o),l=i.coord,u=s.coord;l[0]=la(l[0],-1/0),l[1]=la(l[1],-1/0),u[0]=la(u[0],1/0),u[1]=la(u[1],1/0);var c=R5([{},i,s]);return c.coord=[i.coord,s.coord],c.x0=i.x,c.y0=i.y,c.x1=s.x,c.y1=s.y,c}};function x_(e){return!isNaN(e)&&!isFinite(e)}function Y7(e,t,n,r){var a=1-e;return x_(t[a])&&x_(n[a])}function MCe(e,t){var n=t.coord[0],r=t.coord[1],a={coord:n,x:t.x0,y:t.y0},o={coord:r,x:t.x1,y:t.y1};return cc(e,"cartesian2d")?n&&r&&(Y7(1,n,r)||Y7(0,n,r))?!0:uCe(e,a,o):Gg(e,a)||Gg(e,o)}function q7(e,t,n,r,a){var o=r.coordinateSystem,i=e.getItemModel(t),s,l=at(i.get(n[0]),a.getWidth()),u=at(i.get(n[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),d=o.clampData(c),v=o.clampData(f),h=[];n[0]==="x0"?h[0]=d[0]>v[0]?f[0]:c[0]:h[0]=d[0]>v[0]?c[0]:f[0],n[1]==="y0"?h[1]=d[1]>v[1]?f[1]:c[1]:h[1]=d[1]>v[1]?c[1]:f[1],s=r.getMarkerPosition(h,n,!0)}else{var p=e.get(n[0],t),g=e.get(n[1],t),m=[p,g];o.clampData&&o.clampData(m,m),s=o.dataToPoint(m,!0)}if(cc(o,"cartesian2d")){var y=o.getAxis("x"),b=o.getAxis("y"),p=e.get(n[0],t),g=e.get(n[1],t);x_(p)?s[0]=y.toGlobalCoord(y.getExtent()[n[0]==="x0"?0:1]):x_(g)&&(s[1]=b.toGlobalCoord(b.getExtent()[n[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var X7=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],ACe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(o){var i=Ul.getMarkerModelFromSeries(o,"markArea");if(i){var s=i.getData();s.each(function(l){var u=$e(X7,function(f){return q7(s,l,f,o,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(n,r,a,o){var i=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new At});this.group.add(c.group),this.markKeep(c);var f=ECe(i,n,r);r.setData(f),f.each(function(d){var v=$e(X7,function(k){return q7(f,d,k,n,o)}),h=i.getAxis("x").scale,p=i.getAxis("y").scale,g=h.getExtent(),m=p.getExtent(),y=[h.parse(f.get("x0",d)),h.parse(f.get("x1",d))],b=[p.parse(f.get("y0",d)),p.parse(f.get("y1",d))];Zo(y),Zo(b);var w=!(g[0]>y[1]||g[1]<y[0]||m[0]>b[1]||m[1]<b[0]),S=!w;f.setItemLayout(d,{points:v,allClipped:S});var x=f.getItemModel(d),C=x.getModel("itemStyle").getItemStyle(),T=x.get("z2"),M=Bm(l,"color");C.fill||(C.fill=M,st(C.fill)&&(C.fill=Mb(C.fill,.4))),C.stroke||(C.stroke=M),f.setItemVisual(d,"style",C),f.setItemVisual(d,"z2",yt(T,0))}),f.diff(Yy(c).data).add(function(d){var v=f.getItemLayout(d),h=f.getItemVisual(d,"z2");if(!v.allClipped){var p=new Ya({z2:yt(h,0),shape:{points:v.points}});f.setItemGraphicEl(d,p),c.group.add(p)}}).update(function(d,v){var h=Yy(c).data.getItemGraphicEl(v),p=f.getItemLayout(d),g=f.getItemVisual(d,"z2");p.allClipped?h&&c.group.remove(h):(h?Sn(h,{z2:yt(g,0),shape:{points:p.points}},r,d):h=new Ya({shape:{points:p.points}}),f.setItemGraphicEl(d,h),c.group.add(h))}).remove(function(d){var v=Yy(c).data.getItemGraphicEl(d);c.group.remove(v)}).execute(),f.eachItemGraphicEl(function(d,v){var h=f.getItemModel(v),p=f.getItemVisual(v,"style");d.useStyle(f.getItemVisual(v,"style")),Kr(d,Vr(h),{labelFetcher:r,labelDataIndex:v,defaultText:f.getName(v)||"",inheritColor:st(p.fill)?Mb(p.fill,1):Se.color.neutral99}),Br(d,h),Jn(d,null,null,h.get(["emphasis","disabled"])),Vt(d).dataModel=r}),Yy(c).data=f,c.group.silent=r.get("silent")||n.get("silent")},t.type="markArea",t}(qM);function ECe(e,t,n){var r,a,o=["x0","y0","x1","y1"];if(e){var i=$e(e&&e.dimensions,function(u){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return Pe(Pe({},f),{name:u,ordinalMeta:null})});a=$e(o,function(u,c){return{name:u,type:i[c%2].type}}),r=new Wa(a,n)}else a=[{name:"value",type:"float"}],r=new Wa(a,n);var s=$e(n.get("data"),Yt(kCe,t,e,n));e&&(s=In(s,Yt(MCe,e)));var l=e?function(u,c,f,d){var v=u.coord[Math.floor(d/2)][d%2];return Zu(v,a[d])}:function(u,c,f,d){return Zu(u.value,a[d])};return r.initData(s,null,l),r.hasItemOption=!0,r}const ICe=ACe;function LCe(e){e.registerComponentModel(TCe),e.registerComponentView(ICe),e.registerPreprocessor(function(t){YM(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var DCe=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"])}},PCe=function(e){ye(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(n,r,a){this.mergeDefaultAndTheme(n,a),n.selected=n.selected||{},this._updateSelector(n)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},t.prototype._updateSelector=function(n){var r=n.selector,a=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),Ve(r)&&j(r,function(o,i){st(o)&&(o={type:o}),r[i]=Zt(o,DCe(a,o.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a<n.length;a++){var o=n[a].get("name");if(this.isSelected(o)){this.select(o),r=!0;break}}!r&&this.select(n[0].get("name"))}},t.prototype._updateData=function(n){var r=[],a=[];n.eachRawSeries(function(l){var u=l.name;a.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();n.isSeriesFiltered(l)||(a=a.concat(d)),d.length?r=r.concat(d):c=!0}else c=!0;c&&U5(l)&&r.push(l.name)}),this._availableNames=a;var o=this.get("data")||r,i=pt(),s=$e(o,function(l){return(st(l)||gn(l))&&(l={name:l}),i.get(l.name)?null:(i.set(l.name,!0),new Tn(l,this,this.ecModel))},this);this._data=In(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(n){var r=this.option.selected,a=this.get("selectedMode");if(a==="single"){var o=this._data;j(o,function(i){r[i.get("name")]=!1})}r[n]=!0},t.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},t.prototype.toggleSelected=function(n){var r=this.option.selected;r.hasOwnProperty(n)||(r[n]=!0),this[r[n]?"unSelect":"select"](n)},t.prototype.allSelect=function(){var n=this._data,r=this.option.selected;j(n,function(a){r[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;j(n,function(a){var o=a.get("name",!0);r.hasOwnProperty(o)||(r[o]=!0),r[o]=!r[o]})},t.prototype.isSelected=function(n){var r=this.option.selected;return!(r.hasOwnProperty(n)&&!r[n])&&Xt(this._availableNames,n)>=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:Se.size.m,align:"auto",backgroundColor:Se.color.transparent,borderColor:Se.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:Se.color.disabled,inactiveBorderColor:Se.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:Se.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:Se.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:Se.color.tertiary,borderWidth:1,borderColor:Se.color.border},emphasis:{selectorLabel:{show:!0,color:Se.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(mn);const VC=PCe;var uv=Yt,$C=j,qy=At,RCe=function(e){ye(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 qy),this.group.add(this._selectorGroup=new qy),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,r,a){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var i=n.get("align"),s=n.get("orient");(!i||i==="auto")&&(i=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),u=n.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(i,n,r,a,l,s,u);var c=$r(n,a).refContainer,f=n.getBoxLayoutParams(),d=n.get("padding"),v=Qn(f,c,d),h=this.layoutInner(n,i,v,o,l,u),p=Qn(Pt({width:h.width,height:h.height},f),c,d);this.group.x=p.x-h.x,this.group.y=p.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=uq(h,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,r,a,o,i,s,l){var u=this.getContentGroup(),c=pt(),f=r.get("selectedMode"),d=r.get("triggerEvent"),v=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&v.push(h.id)}),$C(r.getData(),function(h,p){var g=this,m=h.get("name");if(!this.newlineDisabled&&(m===""||m===`
|
||
`)){var y=new qy;y.newline=!0,u.add(y);return}var b=a.getSeriesByName(m)[0];if(!c.get(m))if(b){var w=b.getData(),S=w.getVisual("legendLineStyle")||{},x=w.getVisual("legendIcon"),C=w.getVisual("style"),T=this._createItem(b,m,p,h,r,n,S,C,x,f,o);T.on("click",uv(Z7,m,null,o,v)).on("mouseover",uv(zC,b.name,null,o,v)).on("mouseout",uv(FC,b.name,null,o,v)),a.ssr&&T.eachChild(function(M){var k=Vt(M);k.seriesIndex=b.seriesIndex,k.dataIndex=p,k.ssrType="legend"}),d&&T.eachChild(function(M){g.packEventData(M,r,b,p,m)}),c.set(m,!0)}else a.eachRawSeries(function(M){var k=this;if(!c.get(m)&&M.legendVisualProvider){var E=M.legendVisualProvider;if(!E.containName(m))return;var A=E.indexOfName(m),I=E.getItemVisual(A,"style"),O=E.getItemVisual(A,"legendIcon"),z=uo(I.fill);z&&z[3]===0&&(z[3]=.2,I=Pe(Pe({},I),{fill:Es(z,"rgba")}));var $=this._createItem(M,m,p,h,r,n,{},I,O,f,o);$.on("click",uv(Z7,null,m,o,v)).on("mouseover",uv(zC,null,m,o,v)).on("mouseout",uv(FC,null,m,o,v)),a.ssr&&$.eachChild(function(P){var L=Vt(P);L.seriesIndex=M.seriesIndex,L.dataIndex=p,L.ssrType="legend"}),d&&$.eachChild(function(P){k.packEventData(P,r,M,p,m)}),c.set(m,!0)}},this)},this),i&&this._createSelector(i,r,o,s,l)},t.prototype.packEventData=function(n,r,a,o,i){var s={componentType:"legend",componentIndex:r.componentIndex,dataIndex:o,value:i,seriesIndex:a.seriesIndex};Vt(n).eventData=s},t.prototype._createSelector=function(n,r,a,o,i){var s=this.getSelectorGroup();$C(n,function(u){var c=u.type,f=new _n({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:r.id})}});s.add(f);var d=r.getModel("selectorLabel"),v=r.getModel(["emphasis","selectorLabel"]);Kr(f,{normal:d,emphasis:v},{defaultText:u.title}),Hf(f)})},t.prototype._createItem=function(n,r,a,o,i,s,l,u,c,f,d){var v=n.visualDrawType,h=i.get("itemWidth"),p=i.get("itemHeight"),g=i.isSelected(r),m=o.get("symbolRotate"),y=o.get("symbolKeepAspect"),b=o.get("icon");c=b||c||"roundRect";var w=OCe(c,o,l,u,v,g,d),S=new qy,x=o.getModel("textStyle");if(kt(n.getLegendIcon)&&(!b||b==="inherit"))S.add(n.getLegendIcon({itemWidth:h,itemHeight:p,icon:c,iconRotate:m,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}));else{var C=b==="inherit"&&n.getData().getVisual("symbol")?m==="inherit"?n.getData().getVisual("symbolRotate"):m:0;S.add(NCe({itemWidth:h,itemHeight:p,icon:c,iconRotate:C,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}))}var T=s==="left"?h+5:-5,M=s,k=i.get("formatter"),E=r;st(k)&&k?E=k.replace("{name}",r??""):kt(k)&&(E=k(r));var A=g?x.getTextColor():o.get("inactiveColor");S.add(new _n({style:zn(x,{text:E,x:T,y:p/2,fill:A,align:M,verticalAlign:"middle"},{inheritColor:A})}));var I=new rn({shape:S.getBoundingRect(),style:{fill:"transparent"}}),O=o.getModel("tooltip");return O.get("show")&&eu({el:I,componentModel:i,itemName:r,itemTooltipOption:O.option}),S.add(I),S.eachChild(function(z){z.silent=!0}),I.silent=!f,this.getContentGroup().add(S),Hf(S),S.__legendDataIndex=a,S},t.prototype.layoutInner=function(n,r,a,o,i,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Gf(n.get("orient"),l,n.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),i){Gf("horizontal",u,n.get("selectorItemGap",!0));var d=u.getBoundingRect(),v=[-d.x,-d.y],h=n.get("selectorButtonGap",!0),p=n.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?v[p]+=c[g]+h:f[p]+=d[g]+h,v[1-p]+=c[m]/2-d[m]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var b={x:0,y:0};return b[g]=c[g]+h+d[g],b[m]=Math.max(c[m],d[m]),b[y]=Math.min(0,d[y]+v[1-p]),b}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(or);function OCe(e,t,n,r,a,o,i){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),$C(g,function(y,b){g[b]==="inherit"&&(g[b]=m[b])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?r.decal:mh(f,i),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:n).opacity),s(u,r);var d=t.getModel("lineStyle"),v=d.getLineStyle();if(s(v,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),v.stroke==="auto"&&(v.stroke=r.fill),!o){var h=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=h==="auto"?r.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=d.get("inactiveColor"),v.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function NCe(e){var t=e.icon||"roundRect",n=Ar(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=Se.color.neutral00,n.style.lineWidth=2),n}function Z7(e,t,n,r){FC(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),zC(e,t,n,r)}function Sq(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,a=t.length;r<a&&!(n=t[r].states.emphasis);)r++;return n&&n.hoverLayer}function zC(e,t,n,r){Sq(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function FC(e,t,n,r){Sq(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}const xq=RCe;function BCe(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(n){for(var r=0;r<t.length;r++)if(!t[r].isSelected(n.name))return!1;return!0})}function t0(e,t,n){var r=e==="allSelect"||e==="inverseSelect",a={},o=[];n.eachComponent({mainType:"legend",query:t},function(s){r?s[e]():s[e](t.name),J7(s,a),o.push(s.componentIndex)});var i={};return n.eachComponent("legend",function(s){j(a,function(l,u){s[l?"select":"unSelect"](u)}),J7(s,i)}),r?{selected:i,legendIndex:o}:{name:t.name,selected:i}}function J7(e,t){var n=t||{};return j(e.getData(),function(r){var a=r.get("name");if(!(a===`
|
||
`||a==="")){var o=e.isSelected(a);ft(n,a)?n[a]=n[a]&&o:n[a]=o}}),n}function VCe(e){e.registerAction("legendToggleSelect","legendselectchanged",Yt(t0,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Yt(t0,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Yt(t0,"inverseSelect")),e.registerAction("legendSelect","legendselected",Yt(t0,"select")),e.registerAction("legendUnSelect","legendunselected",Yt(t0,"unSelect"))}function Cq(e){e.registerComponentModel(VC),e.registerComponentView(xq),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,BCe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),VCe(e)}var $Ce=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},t.prototype.init=function(n,r,a){var o=Td(n);e.prototype.init.call(this,n,r,a),Q7(this,n,o)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),Q7(this,this.option,n)},t.type="legend.scroll",t.defaultOption=wc(VC.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:Se.color.accent50,pageIconInactiveColor:Se.color.accent10,pageIconSize:15,pageTextStyle:{color:Se.color.tertiary},animationDurationUpdate:800}),t}(VC);function Q7(e,t,n){var r=e.getOrient(),a=[1,1];a[r.index]=0,Us(t,n,{type:"box",ignoreSize:!!a})}const zCe=$Ce;var eN=At,MS=["width","height"],AS=["x","y"],FCe=function(e){ye(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 eN),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new eN)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(n,r,a,o,i,s,l){var u=this;e.prototype.renderInner.call(this,n,r,a,o,i,s,l);var c=this._controllerGroup,f=r.get("pageIconSize",!0),d=Ve(f)?f:[f,f];h("pagePrev",0);var v=r.getModel("pageTextStyle");c.add(new _n({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1);function h(p,g){var m=p+"DataIndex",y=Pm(r.get("pageIcons",!0)[r.getOrient().name][g],{onclick:lt(u._pageGo,u,m,r,o)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});y.name=p,c.add(y)}},t.prototype.layoutInner=function(n,r,a,o,i,s){var l=this.getSelectorGroup(),u=n.getOrient().index,c=MS[u],f=AS[u],d=MS[1-u],v=AS[1-u];i&&Gf("horizontal",l,n.get("selectorItemGap",!0));var h=n.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=Mt(a);i&&(m[c]=a[c]-p[c]-h);var y=this._layoutContentAndController(n,o,m,u,c,d,v,f);if(i){if(s==="end")g[u]+=y[c]+h;else{var b=p[c]+h;g[u]-=b,y[f]-=b}y[c]+=p[c]+h,g[1-u]+=y[v]+y[d]/2-p[d]/2,y[d]=Math.max(y[d],p[d]),y[v]=Math.min(y[v],p[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(n,r,a,o,i,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;Gf(n.get("orient"),c,n.get("itemGap"),o?a.width:null,o?null:a.height),Gf("horizontal",d,n.get("pageButtonItemGap",!0));var v=c.getBoundingRect(),h=d.getBoundingRect(),p=this._showController=v[i]>a[i],g=[-v.x,-v.y];r||(g[o]=c[u]);var m=[0,0],y=[-h.x,-h.y],b=yt(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(p){var w=n.get("pageButtonPosition",!0);w==="end"?y[o]+=a[i]-h[i]:m[o]+=h[i]+b}y[1-o]+=v[s]/2-h[s]/2,c.setPosition(g),f.setPosition(m),d.setPosition(y);var S={x:0,y:0};if(S[i]=p?a[i]:v[i],S[s]=Math.max(v[s],h[s]),S[l]=Math.min(0,h[l]+y[1-o]),f.__rectSize=a[i],p){var x={x:0,y:0};x[i]=Math.max(a[i]-h[i]-b,0),x[s]=S[s],f.setClipPath(new rn({shape:x})),f.__rectSize=x[i]}else d.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(n);return C.pageIndex!=null&&Sn(c,{x:C.contentPosition[0],y:C.contentPosition[1]},p?n:null),this._updatePageInfoView(n,C),S},t.prototype._pageGo=function(n,r,a){var o=this._getPageInfo(r)[n];o!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var a=this._controllerGroup;j(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=r[f]!=null,v=a.childOfName(c);v&&(v.setStyle("fill",d?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),v.cursor=d?"pointer":"default")});var o=a.childOfName("pageText"),i=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;o&&i&&o.setStyle("text",st(i)?i.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):i({current:l,total:u}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),a=this.getContentGroup(),o=this._containerGroup.__rectSize,i=n.getOrient().index,s=MS[i],l=AS[i],u=this._findTargetItemIndex(r),c=a.children(),f=c[u],d=c.length,v=d?1:0,h={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return h;var p=w(f);h.contentPosition[i]=-p.s;for(var g=u+1,m=p,y=p,b=null;g<=d;++g)b=w(c[g]),(!b&&y.e>m.s+o||b&&!S(b,m.s))&&(y.i>m.i?m=y:m=b,m&&(h.pageNextDataIndex==null&&(h.pageNextDataIndex=m.i),++h.pageCount)),y=b;for(var g=u-1,m=p,y=p,b=null;g>=-1;--g)b=w(c[g]),(!b||!S(y,b.s))&&m.i<y.i&&(y=m,h.pagePrevDataIndex==null&&(h.pagePrevDataIndex=m.i),++h.pageCount,++h.pageIndex),m=b;return h;function w(x){if(x){var C=x.getBoundingRect(),T=C[l]+x[l];return{s:T,e:T+C[s],i:x.__legendDataIndex}}}function S(x,C){return x.e>=C&&x.s<=C+o}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,a=this.getContentGroup(),o;return a.eachChild(function(i,s){var l=i.__legendDataIndex;o==null&&l!=null&&(o=s),l===n&&(r=s)}),r??o},t.type="legend.scroll",t}(xq);const HCe=FCe;function WCe(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(r)})})}function GCe(e){Qt(Cq),e.registerComponentModel(zCe),e.registerComponentView(HCe),WCe(e)}function UCe(e){Qt(Cq),Qt(GCe)}var KCe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.inside",t.defaultOption=wc(Hg.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Hg);const jCe=KCe;var XM=an();function YCe(e,t,n){XM(e).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(t.uid);a&&(a.getRange=n)})}function qCe(e,t){for(var n=XM(e).coordSysRecordMap,r=n.keys(),a=0;a<r.length;a++){var o=r[a],i=n.get(o),s=i.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||Tq(n,i))}}}function Tq(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function XCe(e,t){var n={model:t,containsPoint:Yt(JCe,t),dispatchAction:Yt(ZCe,e),dataZoomInfoMap:null,controller:null},r=n.controller=new Ld(e.getZr());return j(["pan","zoom","scrollMove"],function(a){r.on(a,function(o){var i=[];n.dataZoomInfoMap.each(function(s){if(o.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,n.model.mainType,n.controller,o);!s.model.get("disabled",!0)&&u&&i.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),i.length&&n.dispatchAction(i)})}),n}function ZCe(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function JCe(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function QCe(e,t,n){var r,a="type_",o={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each(function(s){var l=s.model,u=l.get("disabled",!0)?!1:l.get("zoomLock",!0)?"move":!0;o[a+u]>o[a+r]&&(r=u),i=i&&l.get("preventDefaultMouseMove",!0)}),{controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i,api:n,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint}}}}function eTe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,n){var r=XM(n),a=r.coordSysRecordMap||(r.coordSysRecordMap=pt());a.each(function(o){o.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){var i=iq(o);j(i.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,XCe(n,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=pt());c.set(o.uid,{dzReferCoordSysInfo:s,model:o,getRange:null})})}),a.each(function(o){var i=o.controller,s,l=o.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Tq(a,o);return}var c=QCe(l,o,n);i.enable(c.controlType,c.opt),ap(o,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var tTe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return t.prototype.render=function(n,r,a){if(e.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),YCe(a,n,{pan:lt(ES.pan,this),zoom:lt(ES.zoom,this),scrollMove:lt(ES.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){qCe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(HM),ES={zoom:function(e,t,n,r){var a=this.range,o=a.slice(),i=e.axisModels[0];if(i){var s=IS[t](null,[r.originX,r.originY],i,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/r.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(fc(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}},pan:tN(function(e,t,n,r,a,o){var i=IS[r]([o.oldX,o.oldY],[o.newX,o.newY],t,a,n);return i.signal*(e[1]-e[0])*i.pixel/i.pixelLength}),scrollMove:tN(function(e,t,n,r,a,o){var i=IS[r]([0,0],[o.scrollDelta,o.scrollDelta],t,a,n);return i.signal*(e[1]-e[0])*o.scrollDelta})};function tN(e){return function(t,n,r,a){var o=this.range,i=o.slice(),s=t.axisModels[0];if(s){var l=e(i,s,t,n,r,a);if(fc(l,i,[0,100],"all"),this.range=i,o[0]!==i[0]||o[1]!==i[1])return i}}}var IS={grid:function(e,t,n,r,a){var o=n.axis,i={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],o.dim==="x"?(i.pixel=t[0]-e[0],i.pixelLength=s.width,i.pixelStart=s.x,i.signal=o.inverse?1:-1):(i.pixel=t[1]-e[1],i.pixelLength=s.height,i.pixelStart=s.y,i.signal=o.inverse?-1:1),i},polar:function(e,t,n,r,a){var o=n.axis,i={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType==="radiusAxis"?(i.pixel=t[0]-e[0],i.pixelLength=l[1]-l[0],i.pixelStart=l[0],i.signal=o.inverse?1:-1):(i.pixel=t[1]-e[1],i.pixelLength=u[1]-u[0],i.pixelStart=u[0],i.signal=o.inverse?-1:1),i},singleAxis:function(e,t,n,r,a){var o=n.axis,i=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],o.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=i.width,s.pixelStart=i.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=i.height,s.pixelStart=i.y,s.signal=o.inverse?-1:1),s}};const nTe=tTe;function kq(e){WM(e),e.registerComponentModel(jCe),e.registerComponentView(nTe),eTe(e)}var rTe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=wc(Hg.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:Se.color.accent10,borderRadius:0,backgroundColor:Se.color.transparent,dataBackground:{lineStyle:{color:Se.color.accent30,width:.5},areaStyle:{color:Se.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:Se.color.accent40,width:.5},areaStyle:{color:Se.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:Se.color.neutral00,borderColor:Se.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:Se.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:Se.color.tertiary},brushSelect:!0,brushStyle:{color:Se.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:Se.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(Hg);const aTe=rTe;var n0=rn,oTe=1,LS=30,iTe=7,r0="horizontal",nN="vertical",sTe=5,lTe=["line","bar","candlestick","scatter"],uTe={easing:"cubicOut",duration:100,delay:0},cTe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(n,r){this.api=r,this._onBrush=lt(this._onBrush,this),this._onBrushEnd=lt(this._onBrushEnd,this)},t.prototype.render=function(n,r,a,o){if(e.prototype.render.apply(this,arguments),ap(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),n.get("show")===!1){this.group.removeAll();return}if(n.noTarget()){this._clear(),this.group.removeAll();return}(!o||o.type!=="dataZoom"||o.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Mg(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new At;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},t.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,a=n.get("brushSelect"),o=a?iTe:0,i=$r(n,r).refContainer,s=this._findCoordRect(),l=n.get("defaultLocationEdgeGap",!0)||0,u=this._orient===r0?{right:i.width-s.x-s.width,top:i.height-LS-l-o,width:s.width,height:LS}:{right:l,top:s.y,width:LS,height:s.height},c=Td(n.option);j(["right","top","width","height"],function(d){c[d]==="ph"&&(c[d]=u[d])});var f=Qn(c,i);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===nN&&this._size.reverse()},t.prototype._positionGroup=function(){var n=this.group,r=this._location,a=this._orient,o=this.dataZoomModel.getFirstTargetAxisModel(),i=o&&o.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===r0&&!i?{scaleY:l?1:-1,scaleX:1}:a===r0&&i?{scaleY:l?1:-1,scaleX:-1}:a===nN&&!i?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=n.getBoundingRect([s]);n.x=r.x-u.x,n.y=r.y-u.y,n.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var n=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,o=n.get("brushSelect");a.add(new n0({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var i=new n0({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:lt(this._onClickPanel,this)}),s=this.api.getZr();o?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(i)},t.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,a=this._shadowSize||[],o=n.series,i=o.getRawData(),s=o.getShadowDim&&o.getShadowDim(),l=s&&i.getDimensionInfo(s)?o.getShadowDim():n.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(i!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var f=i.getDataExtent(n.thisDim),d=i.getDataExtent(l),v=(d[1]-d[0])*.3;d=[d[0]-v,d[1]+v];var h=[0,r[1]],p=[0,r[0]],g=[[r[0],0],[0,0]],m=[],y=p[1]/Math.max(1,i.count()-1),b=r[0]/(f[1]-f[0]),w=n.thisAxis.type==="time",S=-y,x=Math.round(i.count()/r[0]),C;i.each([n.thisDim,l],function(A,I,O){if(x>0&&O%x){w||(S+=y);return}S=w?(+A-f[0])*b:S+y;var z=I==null||isNaN(I)||I==="",$=z?0:En(I,d,h,!0);z&&!C&&O?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!z&&C&&(g.push([S,0]),m.push([S,0])),z||(g.push([S,$]),m.push([S,$])),C=z}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=m}this._shadowData=i,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var T=this.dataZoomModel;function M(A){var I=T.getModel(A?"selectedDataBackground":"dataBackground"),O=new At,z=new Ya({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),$=new La({shape:{points:c},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return O.add(z),O.add($),O}for(var k=0;k<3;k++){var E=M(k===1);this._displayables.sliderGroup.add(E),this._displayables.dataShadowSegs.push(E)}},t.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var a,o=this.ecModel;return n.eachTargetAxis(function(i,s){var l=n.getAxisProxy(i,s).getTargetSeriesModels();j(l,function(u){if(!a&&!(r!==!0&&Xt(lTe,u.get("type"))<0)){var c=o.getComponent(Fu(i),s).axis,f=fTe(i),d,v=u.coordinateSystem;f!=null&&v.getOtherAxis&&(d=v.getOtherAxis(c).inverse),f=u.getData().mapDimension(f);var h=u.getData().mapDimension(i);a={thisAxis:c,series:u,thisDim:h,otherDim:f,otherAxisInverse:d}}},this)},this),a}},t.prototype._renderHandle=function(){var n=this.group,r=this._displayables,a=r.handles=[null,null],o=r.handleLabels=[null,null],i=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=r.filler=new n0({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});i.add(d),i.add(new n0({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:oTe,fill:Se.color.transparent}})),j([0,1],function(b){var w=l.get("handleIcon");!Gb[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var S=Ar(w,-1,0,2,2,null,!0);S.attr({cursor:dTe(this._orient),draggable:!0,drift:lt(this._onDragMove,this,b),ondragend:lt(this._onDragEnd,this),onmouseover:lt(this._showDataInfo,this,!0),onmouseout:lt(this._showDataInfo,this,!1),z2:5});var x=S.getBoundingRect(),C=l.get("handleSize");this._handleHeight=at(C,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,S.setStyle(l.getModel("handleStyle").getItemStyle()),S.style.strokeNoScale=!0,S.rectHover=!0,S.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Hf(S);var T=l.get("handleColor");T!=null&&(S.style.fill=T),i.add(a[b]=S);var M=l.getModel("textStyle"),k=l.get("handleLabel")||{},E=k.show||!1;n.add(o[b]=new _n({silent:!0,invisible:!E,style:zn(M,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:M.getTextColor(),font:M.getFont()}),z2:10}))},this);var v=d;if(f){var h=at(l.get("moveHandleSize"),s[1]),p=r.moveHandle=new rn({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:h}}),g=h*.8,m=r.moveHandleIcon=Ar(l.get("moveHandleIcon"),-g/2,-g/2,g,g,Se.color.neutral00,!0);m.silent=!0,m.y=s[1]+h/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(h,10));v=r.moveZone=new rn({invisible:!0,shape:{y:s[1]-y,height:h+y}}),v.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),i.add(p),i.add(m),i.add(v)}v.attr({draggable:!0,cursor:"default",drift:lt(this._onDragMove,this,"all"),ondragstart:lt(this._showDataInfo,this,!0),ondragend:lt(this._onDragEnd,this),onmouseover:lt(this._showDataInfo,this,!0),onmouseout:lt(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[En(n[0],[0,100],r,!0),En(n[1],[0,100],r,!0)]},t.prototype._updateInterval=function(n,r){var a=this.dataZoomModel,o=this._handleEnds,i=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];fc(r,o,i,a.get("zoomLock")?"all":n,s.minSpan!=null?En(s.minSpan,l,i,!0):null,s.maxSpan!=null?En(s.maxSpan,l,i,!0):null);var u=this._range,c=this._range=Zo([En(o[0],i,l,!0),En(o[1],i,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(n){var r=this._displayables,a=this._handleEnds,o=Zo(a.slice()),i=this._size;j([0,1],function(v){var h=r.handles[v],p=this._handleHeight;h.attr({scaleX:p/2,scaleY:p/2,x:a[v]+(v?-1:1),y:i[1]/2-p/2})},this),r.filler.setShape({x:o[0],y:0,width:o[1]-o[0],height:i[1]});var s={x:o[0],width:o[1]-o[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,o[0],o[1],i[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new rn,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:i[1]})}this._updateDataInfo(n)},t.prototype._updateDataInfo=function(n){var r=this.dataZoomModel,a=this._displayables,o=a.handleLabels,i=this._orient,s=["",""];if(r.get("showDetail")){var l=r.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=n?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var d=Zo(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(h){var p=Wf(a.handles[h].parent,this.group),g=Hw(h===0?"right":"left",p),m=this._handleWidth/2+sTe,y=Ci([d[h]+(h===0?-m:m),this._size[1]/2],p);o[h].setStyle({x:y[0],y:y[1],verticalAlign:i===r0?"middle":g,align:i===r0?g:"center",text:s[h]})}},t.prototype._formatLabel=function(n,r){var a=this.dataZoomModel,o=a.get("labelFormatter"),i=a.get("labelPrecision");(i==null||i==="auto")&&(i=r.getPixelPrecision());var s=n==null||isNaN(n)?"":r.type==="category"||r.type==="time"?r.scale.getLabel({value:Math.round(n)}):n.toFixed(Math.min(i,20));return kt(o)?o(n,s):st(o)?o.replace("{value}",s):s},t.prototype._showDataInfo=function(n){var r=this.dataZoomModel.get("handleLabel")||{},a=r.show||!1,o=this.dataZoomModel.getModel(["emphasis","handleLabel"]),i=o.get("show")||!1,s=n||this._dragging?i:a,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},t.prototype._onDragMove=function(n,r,a,o){this._dragging=!0,Vl(o.event);var i=this._displayables.sliderGroup.getLocalTransform(),s=Ci([r,a],i,!0),l=this._updateInterval(n,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var n=this.dataZoomModel.get("realtime");!n&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(n){var r=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(n.offsetX,n.offsetY);if(!(a[0]<0||a[0]>r[0]||a[1]<0||a[1]>r[1])){var o=this._handleEnds,i=(o[0]+o[1])/2,s=this._updateInterval("all",a[0]-i);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(n){var r=n.offsetX,a=n.offsetY;this._brushStart=new Dt(r,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(n){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,o=+new Date;if(!(o-this._brushStartTime<200&&Math.abs(a.width)<5)){var i=this._getViewExtent(),s=[0,100],l=this._handleEnds=[a.x,a.x+a.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();fc(0,l,i,0,u.minSpan!=null?En(u.minSpan,s,i,!0):null,u.maxSpan!=null?En(u.maxSpan,s,i,!0):null),this._range=Zo([En(l[0],i,s,!0),En(l[1],i,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(n){this._brushing&&(Vl(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},t.prototype._updateBrushRect=function(n,r){var a=this._displayables,o=this.dataZoomModel,i=a.brushRect;i||(i=a.brushRect=new n0({silent:!0,style:o.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(i)),i.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(n,r),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),i.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(n){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?uTe:null,start:r[0],end:r[1]})},t.prototype._findCoordRect=function(){var n,r=iq(this.dataZoomModel).infoList;if(!n&&r.length){var a=r[0].model.coordinateSystem;n=a.getRect&&a.getRect()}if(!n){var o=this.api.getWidth(),i=this.api.getHeight();n={x:o*.2,y:i*.2,width:o*.6,height:i*.6}}return n},t.type="dataZoom.slider",t}(HM);function fTe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function dTe(e){return e==="vertical"?"ns-resize":"ew-resize"}const vTe=cTe;function Mq(e){e.registerComponentModel(aTe),e.registerComponentView(vTe),WM(e)}function hTe(e){Qt(kq),Qt(Mq)}var pTe={get:function(e,t,n){var r=Mt((gTe[e]||{})[t]);return n&&Ve(r)?r[r.length-1]:r}},gTe={color:{active:["#006edd","#e0ffff"],inactive:[Se.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const Aq=pTe;var rN=ua.mapVisual,mTe=ua.eachVisual,yTe=Ve,aN=j,bTe=Zo,_Te=En,wTe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},t.prototype.optionUpdated=function(n,r){var a=this.option;!r&&gq(a,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(n){var r=this.stateList;n=lt(n,this),this.controllerVisuals=OC(this.option.controller,r,n),this.targetVisuals=OC(this.option.target,r,n)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesId,r=this.option.seriesIndex;r==null&&n==null&&(r="all");var a=Xh(this.ecModel,"series",{index:r,id:n},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return $e(a,function(o){return o.componentIndex})},t.prototype.eachTargetSeries=function(n,r){j(this.getTargetSeriesIndices(),function(a){var o=this.ecModel.getSeriesByIndex(a);o&&n.call(r,o)},this)},t.prototype.isTargetSeries=function(n){var r=!1;return this.eachTargetSeries(function(a){a===n&&(r=!0)}),r},t.prototype.formatValueText=function(n,r,a){var o=this.option,i=o.precision,s=this.dataBound,l=o.formatter,u;a=a||["<",">"],Ve(n)&&(n=n.slice(),u=!0);var c=r?n:u?[f(n[0]),f(n[1])]:f(n);if(st(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(kt(l))return u?l(n[0],n[1]):l(n);if(u)return n[0]===s[0]?a[0]+" "+c[1]:n[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var n=this.option,r=bTe([n.min,n.max]);this._dataExtent=r},t.prototype.getDataDimensionIndex=function(n){var r=this.option.dimension;if(r!=null)return n.getDimensionIndex(r);for(var a=n.dimensions,o=a.length-1;o>=0;o--){var i=a[o],s=n.getDimensionInfo(i);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var n=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},o=r.target||(r.target={}),i=r.controller||(r.controller={});Zt(o,a),Zt(i,a);var s=this.isCategory();l.call(this,o),l.call(this,i),u.call(this,o,"inRange","outOfRange"),c.call(this,i);function l(f){yTe(r.color)&&!f.inRange&&(f.inRange={color:r.color.slice().reverse()}),f.inRange=f.inRange||{color:n.get("gradientColor")}}function u(f,d,v){var h=f[d],p=f[v];h&&!p&&(p=f[v]={},aN(h,function(g,m){if(ua.isValidType(m)){var y=Aq.get(m,"inactive",s);y!=null&&(p[m]=y,m==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,v=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,h=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";aN(this.stateList,function(m){var y=this.itemSize,b=f[m];b||(b=f[m]={color:s?h:[h]}),b.symbol==null&&(b.symbol=d&&Mt(d)||(s?g:[g])),b.symbolSize==null&&(b.symbolSize=v&&Mt(v)||(s?y[0]:[y[0],y[0]])),b.symbol=rN(b.symbol,function(x){return x==="none"?g:x});var w=b.symbolSize;if(w!=null){var S=-1/0;mTe(w,function(x){x>S&&(S=x)}),b.symbolSize=rN(w,function(x){return _Te(x,[0,S],[0,y[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(n){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(n){return null},t.prototype.getVisualMeta=function(n){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:Se.color.transparent,borderColor:Se.color.borderTint,contentColor:Se.color.theme[0],inactiveColor:Se.color.disabled,borderWidth:0,padding:Se.size.m,textGap:10,precision:0,textStyle:{color:Se.color.secondary}},t}(mn);const C_=wTe;var oN=[20,140],STe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var n=this.itemSize;(n[0]==null||isNaN(n[0]))&&(n[0]=oN[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=oN[1])},t.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):Ve(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],n[0]),r[1]=Math.min(r[1],n[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),j(this.stateList,function(n){var r=this.option.controller[n].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},t.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},t.prototype.getSelected=function(){var n=this.getExtent(),r=Zo((this.get("range")||[]).slice());return r[0]>n[1]&&(r[0]=n[1]),r[1]>n[1]&&(r[1]=n[1]),r[0]<n[0]&&(r[0]=n[0]),r[1]<n[0]&&(r[1]=n[0]),r},t.prototype.getValueState=function(n){var r=this.option.range,a=this.getExtent(),o=yt(this.option.unboundedRange,!0);return(o&&r[0]<=a[0]||r[0]<=n)&&(o&&r[1]>=a[1]||n<=r[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[];return this.eachTargetSeries(function(a){var o=[],i=a.getData();i.each(this.getDataDimensionIndex(i),function(s,l){n[0]<=s&&s<=n[1]&&o.push(l)},this),r.push({seriesId:a.id,dataIndex:o})},this),r},t.prototype.getVisualMeta=function(n){var r=iN(this,"outOfRange",this.getExtent()),a=iN(this,"inRange",this.option.range.slice()),o=[];function i(v,h){o.push({value:v,color:n(v,h)})}for(var s=0,l=0,u=a.length,c=r.length;l<c&&(!a.length||r[l]<=a[0]);l++)r[l]<a[s]&&i(r[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&o.length&&i(a[s],"outOfRange"),i(a[s],"inRange");for(var f=1;l<c;l++)(!a.length||a[a.length-1]<r[l])&&(f&&(o.length&&i(o[o.length-1].value,"outOfRange"),f=0),i(r[l],"outOfRange"));var d=o.length;return{stops:o,outerColors:[d?o[0].color:"transparent",d?o[d-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=wc(C_.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:Se.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:Se.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:Se.color.shadow}}),t}(C_);function iN(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,a=(n[1]-n[0])/r,o=n[0],i=[],s=0;s<=r&&o<n[1];s++)i.push(o),o+=a;return i.push(n[1]),i}const xTe=STe;var CTe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return t.prototype.init=function(n,r){this.ecModel=n,this.api=r},t.prototype.render=function(n,r,a,o){if(this.visualMapModel=n,n.get("show")===!1){this.group.removeAll();return}this.doRender(n,r,a,o)},t.prototype.renderBackground=function(n){var r=this.visualMapModel,a=Rm(r.get("padding")||0),o=n.getBoundingRect();n.add(new rn({z2:-1,silent:!0,shape:{x:o.x-a[3],y:o.y-a[0],width:o.width+a[3]+a[1],height:o.height+a[0]+a[2]},style:{fill:r.get("backgroundColor"),stroke:r.get("borderColor"),lineWidth:r.get("borderWidth")}}))},t.prototype.getControllerVisual=function(n,r,a){a=a||{};var o=a.forceState,i=this.visualMapModel,s={};if(r==="color"){var l=i.get("contentColor");s.color=l}function u(v){return s[v]}function c(v,h){s[v]=h}var f=i.controllerVisuals[o||i.getValueState(n)],d=ua.prepareVisualTypes(f);return j(d,function(v){var h=f[v];a.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",h=f.__alphaForOpacity),ua.dependsOn(v,r)&&h&&h.applyVisual(n,u,c)}),s[r]},t.prototype.positionGroup=function(n){var r=this.visualMapModel,a=this.api,o=$r(r,a).refContainer;Kw(n,r.getBoxLayoutParams(),o)},t.prototype.doRender=function(n,r,a,o){},t.type="visualMap",t}(or);const Eq=CTe;var sN=[["left","right","width"],["top","bottom","height"]];function Iq(e,t,n){var r=e.option,a=r.align;if(a!=null&&a!=="auto")return a;for(var o={width:t.getWidth(),height:t.getHeight()},i=r.orient==="horizontal"?1:0,s=sN[i],l=[0,null,10],u={},c=0;c<3;c++)u[sN[1-i][c]]=l[c],u[s[c]]=c===2?n[0]:r[s[c]];var f=[["x","width",3],["y","height",0]][i],d=Qn(u,o,r.padding);return s[(d.margin[f[2]]||0)+d[f[0]]+d[f[1]]*.5<o[f[1]]*.5?0:1]}function W2(e,t){return j(e||[],function(n){n.dataIndex!=null&&(n.dataIndexInside=n.dataIndex,n.dataIndex=null),n.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var cs=En,TTe=j,lN=Math.min,DS=Math.max,kTe=12,MTe=6,ATe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return t.prototype.init=function(n,r){e.prototype.init.call(this,n,r),this._hoverLinkFromSeriesMouseOver=lt(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=lt(this._hideIndicator,this)},t.prototype.doRender=function(n,r,a,o){(!o||o.type!=="selectDataRange"||o.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var n=this.visualMapModel,r=this.group;this._orient=n.get("orient"),this._useHandle=n.get("calculable"),this._resetInterval(),this._renderBar(r);var a=n.get("text");this._renderEndsText(r,a,0),this._renderEndsText(r,a,1),this._updateView(!0),this.renderBackground(r),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(r)},t.prototype._renderEndsText=function(n,r,a){if(r){var o=r[1-a];o=o!=null?o+"":"";var i=this.visualMapModel,s=i.get("textGap"),l=i.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),f=this._applyTransform(a===0?"bottom":"top",u),d=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new _n({style:zn(v,{x:c[0],y:c[1],verticalAlign:v.get("verticalAlign")||(d==="horizontal"?"middle":f),align:v.get("align")||(d==="horizontal"?f:"center"),text:o})}))}},t.prototype._renderBar=function(n){var r=this.visualMapModel,a=this._shapes,o=r.itemSize,i=this._orient,s=this._useHandle,l=Iq(r,this.api,o),u=a.mainGroup=this._createBarGroup(l),c=new At;u.add(c),c.add(a.outOfRange=uN()),c.add(a.inRange=uN(null,s?fN(this._orient):null,lt(this._dragHandle,this,"all",!1),lt(this._dragHandle,this,"all",!0))),c.setClipPath(new rn({shape:{x:0,y:0,width:o[0],height:o[1],r:3}}));var f=r.textStyleModel.getTextRect("国"),d=DS(f.width,f.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(r,u,0,o,d,i),this._createHandle(r,u,1,o,d,i)),this._createIndicator(r,u,o,d,i),n.add(u)},t.prototype._createHandle=function(n,r,a,o,i,s){var l=lt(this._dragHandle,this,a,!1),u=lt(this._dragHandle,this,a,!0),c=Ri(n.get("handleSize"),o[0]),f=Ar(n.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=fN(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(m){Vl(m.event)}}),f.x=o[0]/2,f.useStyle(n.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=n.getModel(["emphasis","handleStyle"]).getItemStyle(),Sf(f,!0),r.add(f);var v=this.visualMapModel.textStyleModel,h=new _n({cursor:d,draggable:!0,drift:l,onmousemove:function(m){Vl(m.event)},ondragend:u,style:zn(v,{x:0,y:0,text:""})});h.ensureState("blur").style={opacity:.1},h.stateTransition={duration:200},this.group.add(h);var p=[c,0],g=this._shapes;g.handleThumbs[a]=f,g.handleLabelPoints[a]=p,g.handleLabels[a]=h},t.prototype._createIndicator=function(n,r,a,o,i){var s=Ri(n.get("indicatorSize"),a[0]),l=Ar(n.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=n.getModel("indicatorStyle").getItemStyle();if(l instanceof da){var c=l.style;l.useStyle(Pe({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);r.add(l);var f=this.visualMapModel.textStyleModel,d=new _n({silent:!0,invisible:!0,style:zn(f,{x:0,y:0,text:""})});this.group.add(d);var v=[(i==="horizontal"?o/2:MTe)+a[0]/2,0],h=this._shapes;h.indicator=l,h.indicatorLabel=d,h.indicatorLabelPoint=v,this._firstShowIndicator=!0},t.prototype._dragHandle=function(n,r,a,o){if(this._useHandle){if(this._dragging=!r,!r){var i=this._applyTransform([a,o],this._shapes.mainGroup,!0);this._updateInterval(n,i[1]),this._hideIndicator(),this._updateView()}r===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),r?!this._hovering&&this._clearHoverLinkToSeries():cN(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[n],!1)}},t.prototype._resetInterval=function(){var n=this.visualMapModel,r=this._dataInterval=n.getSelected(),a=n.getExtent(),o=[0,n.itemSize[1]];this._handleEnds=[cs(r[0],a,o,!0),cs(r[1],a,o,!0)]},t.prototype._updateInterval=function(n,r){r=r||0;var a=this.visualMapModel,o=this._handleEnds,i=[0,a.itemSize[1]];fc(r,o,i,n,0);var s=a.getExtent();this._dataInterval=[cs(o[0],i,s,!0),cs(o[1],i,s,!0)]},t.prototype._updateView=function(n){var r=this.visualMapModel,a=r.getExtent(),o=this._shapes,i=[0,r.itemSize[1]],s=n?i:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,i,"outOfRange");o.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),o.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(n,r,a,o){var i={forceState:o,convertOpacityToAlpha:!0},s=this._makeColorGradient(n,i),l=[this.getControllerVisual(n[0],"symbolSize",i),this.getControllerVisual(n[1],"symbolSize",i)],u=this._createBarPoints(a,l);return{barColor:new Jh(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(n,r){var a=100,o=[],i=(n[1]-n[0])/a;o.push({color:this.getControllerVisual(n[0],"color",r),offset:0});for(var s=1;s<a;s++){var l=n[0]+i*s;if(l>n[1])break;o.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return o.push({color:this.getControllerVisual(n[1],"color",r),offset:1}),o},t.prototype._createBarPoints=function(n,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],n[0]],[a[0],n[0]],[a[0],n[1]],[a[0]-r[1],n[1]]]},t.prototype._createBarGroup=function(n){var r=this._orient,a=this.visualMapModel.get("inverse");return new At(r==="horizontal"&&!a?{scaleX:n==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:n==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:n==="left"?1:-1,scaleY:-1}:{scaleX:n==="left"?1:-1})},t.prototype._updateHandle=function(n,r){if(this._useHandle){var a=this._shapes,o=this.visualMapModel,i=a.handleThumbs,s=a.handleLabels,l=o.itemSize,u=o.getExtent(),c=this._applyTransform("left",a.mainGroup);TTe([0,1],function(f){var d=i[f];d.setStyle("fill",r.handlesColor[f]),d.y=n[f];var v=cs(n[f],[0,l[1]],u,!0),h=this.getControllerVisual(v,"symbolSize");d.scaleX=d.scaleY=h/l[0],d.x=l[0]-h/2;var p=Ci(a.handleLabelPoints[f],Wf(d,this.group));if(this._orient==="horizontal"){var g=c==="left"||c==="top"?(l[0]-h)/2:(l[0]-h)/-2;p[1]+=g}s[f].setStyle({x:p[0],y:p[1],text:o.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(n,r,a,o){var i=this.visualMapModel,s=i.getExtent(),l=i.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},v=this.getControllerVisual(n,"color",d),h=this.getControllerVisual(n,"symbolSize"),p=cs(n,s,u,!0),g=l[0]-h/2,m={x:f.x,y:f.y};f.y=p,f.x=g;var y=Ci(c.indicatorLabelPoint,Wf(f,this.group)),b=c.indicatorLabel;b.attr("invisible",!1);var w=this._applyTransform("left",c.mainGroup),S=this._orient,x=S==="horizontal";b.setStyle({text:(a||"")+i.formatValueText(r),verticalAlign:x?w:"middle",align:x?"center":w});var C={x:g,y:p,style:{fill:v}},T={style:{x:y[0],y:y[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var M={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(C,M),b.animateTo(T,M)}else f.attr(C),b.attr(T);this._firstShowIndicator=!1;var k=this._shapes.handleLabels;if(k)for(var E=0;E<k.length;E++)this.api.enterBlur(k[E])}},t.prototype._enableHoverLinkToSeries=function(){var n=this;this._shapes.mainGroup.on("mousemove",function(r){if(n._hovering=!0,!n._dragging){var a=n.visualMapModel.itemSize,o=n._applyTransform([r.offsetX,r.offsetY],n._shapes.mainGroup,!0,!0);o[1]=lN(DS(0,o[1]),a[1]),n._doHoverLinkToSeries(o[1],0<=o[0]&&o[0]<=a[0])}}).on("mouseout",function(){n._hovering=!1,!n._dragging&&n._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var n=this.api.getZr();this.visualMapModel.option.hoverLink?(n.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),n.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(n,r){var a=this.visualMapModel,o=a.itemSize;if(a.option.hoverLink){var i=[0,o[1]],s=a.getExtent();n=lN(DS(i[0],n),i[1]);var l=ETe(a,s,i),u=[n-l,n+l],c=cs(n,i,s,!0),f=[cs(u[0],i,s,!0),cs(u[1],i,s,!0)];u[0]<i[0]&&(f[0]=-1/0),u[1]>i[1]&&(f[1]=1/0),r&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,v=[];(r||cN(a))&&(v=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var h=Qle(d,v);this._dispatchHighDown("downplay",W2(h[0],a)),this._dispatchHighDown("highlight",W2(h[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(Tf(n.target,function(l){var u=Vt(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),o=this.visualMapModel;if(o.isTargetSeries(a)){var i=a.getData(r.dataType),s=i.getStore().get(o.getDataDimensionIndex(i),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var n=this._shapes;n.indicator&&n.indicator.attr("invisible",!0),n.indicatorLabel&&n.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a<r.length;a++)this.api.leaveBlur(r[a])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var n=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",W2(n,this.visualMapModel)),n.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var n=this.api.getZr();n.off("mouseover",this._hoverLinkFromSeriesMouseOver),n.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(n,r,a,o){var i=Wf(r,o?null:this.group);return Ve(n)?Ci(n,i,a):Hw(n,i,a)},t.prototype._dispatchHighDown=function(n,r){r&&r.length&&this.api.dispatchAction({type:n,batch:r})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(Eq);function uN(e,t,n,r){return new Ya({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(a){Vl(a.event)},ondragend:r})}function ETe(e,t,n){var r=kTe/2,a=e.get("hoverLinkDataSize");return a&&(r=cs(a,t,n,!0)/2),r}function cN(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function fN(e){return e==="vertical"?"ns-resize":"ew-resize"}const ITe=ATe;var LTe={type:"selectDataRange",event:"dataRangeSelected",update:"update"},DTe=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(n){n.setSelected(e.selected)})},PTe=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",function(r){var a=e.pipelineContext;!r.isTargetSeries(e)||a&&a.large||n.push(kxe(r.stateList,r.targetVisuals,lt(r.getValueState,r),r.getDataDimensionIndex(e.getData())))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent("visualMap",function(a){if(a.isTargetSeries(e)){var o=a.getVisualMeta(lt(RTe,null,e,a))||{stops:[],outerColors:[]},i=a.getDataDimensionIndex(n);i>=0&&(o.dimension=i,r.push(o))}}),e.getData().setVisual("visualMeta",r)}}];function RTe(e,t,n,r){for(var a=t.targetVisuals[r],o=ua.prepareVisualTypes(a),i={color:Bm(e.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=a[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(n,f,d)}return i.color;function f(v){return i[v]}function d(v,h){i[v]=h}}var dN=j;function OTe(e){var t=e&&e.visualMap;Ve(t)||(t=t?[t]:[]),dN(t,function(n){if(n){cv(n,"splitList")&&!cv(n,"pieces")&&(n.pieces=n.splitList,delete n.splitList);var r=n.pieces;r&&Ve(r)&&dN(r,function(a){Rt(a)&&(cv(a,"start")&&!cv(a,"min")&&(a.min=a.start),cv(a,"end")&&!cv(a,"max")&&(a.max=a.end))})}})}function cv(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var vN=!1;function Lq(e){vN||(vN=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(LTe,DTe),j(PTe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(OTe))}function Dq(e){e.registerComponentModel(xTe),e.registerComponentView(ITe),Lq(e)}var NTe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],BTe[this._mode].call(this,this._pieceList),this._resetSelected(n,r);var o=this.option.categories;this.resetVisual(function(i,s){a==="categories"?(i.mappingMethod="category",i.categories=Mt(o)):(i.dataExtent=this.getExtent(),i.mappingMethod="piecewise",i.pieceList=$e(this._pieceList,function(l){return l=Mt(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var n=this.option,r={},a=ua.listVisualTypes(),o=this.isCategory();j(n.pieces,function(s){j(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),j(r,function(s,l){var u=!1;j(this.stateList,function(c){u=u||i(n,c,l)||i(n.target,c,l)},this),!u&&j(this.stateList,function(c){(n[c]||(n[c]={}))[l]=Aq.get(l,c==="inRange"?"active":"inactive",o)})},this);function i(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(n,r){var a=this.option,o=this._pieceList,i=(r?a:n).selected||{};if(a.selected=i,j(o,function(l,u){var c=this.getSelectedMapKey(l);i.hasOwnProperty(c)||(i[c]=!0)},this),a.selectedMode==="single"){var s=!1;j(o,function(l,u){var c=this.getSelectedMapKey(l);i[c]&&(s?i[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(n){return this._mode==="categories"?n.value+"":n.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(n){this.option.selected=Mt(n)},t.prototype.getValueState=function(n){var r=ua.findPieceIndex(n,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[],a=this._pieceList;return this.eachTargetSeries(function(o){var i=[],s=o.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=ua.findPieceIndex(l,a);c===n&&i.push(u)},this),r.push({seriesId:o.id,dataIndex:i})},this),r},t.prototype.getRepresentValue=function(n){var r;if(this.isCategory())r=n.value;else if(n.value!=null)r=n.value;else{var a=n.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},t.prototype.getVisualMeta=function(n){if(this.isCategory())return;var r=[],a=["",""],o=this;function i(c,f){var d=o.getRepresentValue({interval:c});f||(f=o.getValueState(d));var v=n(d,f);c[0]===-1/0?a[0]=v:c[1]===1/0?a[1]=v:r.push({value:c[0],color:v},{value:c[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return j(s,function(c){var f=c.interval;f&&(f[0]>u&&i([u,f[0]],"outOfRange"),i(f.slice()),u=f[1])},this),{stops:r,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=wc(C_.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(C_),BTe={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var o=(r[1]-r[0])/a;+o.toFixed(n)!==o&&n<5;)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var i=0,s=r[0];i<a;s+=o,i++){var l=i===a-1?r[1]:s+o;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),DI(e),j(e,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(e){var t=this.option;j(t.categories,function(n){e.push({text:this.formatValueText(n,!0),value:n})},this),hN(t,e)},pieces:function(e){var t=this.option;j(t.pieces,function(n,r){Rt(n)||(n={value:n});var a={text:"",index:r};if(n.label!=null&&(a.text=n.label),n.hasOwnProperty("value")){var o=a.value=n.value;a.interval=[o,o],a.close=[1,1]}else{for(var i=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var d=[["gte","gt","min"],["lte","lt","max"]][f],v=0;v<3&&i[f]==null;v++)i[f]=n[d[v]],s[f]=l[v],c[f]=v===2;i[f]==null&&(i[f]=u[f])}c[0]&&i[1]===1/0&&(s[0]=0),c[1]&&i[0]===-1/0&&(s[1]=0),i[0]===i[1]&&s[0]&&s[1]&&(a.value=i[0])}a.visual=ua.retrieveVisuals(n),e.push(a)},this),hN(t,e),DI(e),j(e,function(n){var r=n.close,a=[["<","≤"][r[1]],[">","≥"][r[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,a)},this)}};function hN(e,t){var n=e.inverse;(e.orient==="vertical"?!n:n)&&t.reverse()}const VTe=NTe;var $Te=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var n=this.group;n.removeAll();var r=this.visualMapModel,a=r.get("textGap"),o=r.textStyleModel,i=this._getItemAlign(),s=r.itemSize,l=this._getViewData(),u=l.endsText,c=la(r.get("showLabel",!0),!u),f=!r.get("selectedMode");u&&this._renderEndsText(n,u[0],s,c,i),j(l.viewPieceList,function(d){var v=d.piece,h=new At;h.onclick=lt(this._onItemClick,this,v),this._enableHoverLink(h,d.indexInModelPieceList);var p=r.getRepresentValue(v);if(this._createItemSymbol(h,p,[0,0,s[0],s[1]],f),c){var g=this.visualMapModel.getValueState(p),m=o.get("align")||i;h.add(new _n({style:zn(o,{x:m==="right"?-a:s[0]+a,y:s[1]/2,text:v.text,verticalAlign:o.get("verticalAlign")||"middle",align:m,opacity:yt(o.get("opacity"),g==="outOfRange"?.5:1)}),silent:f}))}n.add(h)},this),u&&this._renderEndsText(n,u[1],s,c,i),Gf(r.get("orient"),n,r.get("itemGap")),this.renderBackground(n),this.positionGroup(n)},t.prototype._enableHoverLink=function(n,r){var a=this;n.on("mouseover",function(){return o("highlight")}).on("mouseout",function(){return o("downplay")});var o=function(i){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:i,batch:W2(s.findTargetDataIndices(r),s)})}},t.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return Iq(n,this.api,n.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(n,r,a,o,i){if(r){var s=new At,l=this.visualMapModel.textStyleModel;s.add(new _n({style:zn(l,{x:o?i==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:o?i:"center",text:r})})),n.add(s)}},t.prototype._getViewData=function(){var n=this.visualMapModel,r=$e(n.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=n.get("text"),o=n.get("orient"),i=n.get("inverse");return(o==="horizontal"?i:!i)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},t.prototype._createItemSymbol=function(n,r,a,o){var i=Ar(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color"));i.silent=o,n.add(i)},t.prototype._onItemClick=function(n){var r=this.visualMapModel,a=r.option,o=a.selectedMode;if(o){var i=Mt(a.selected),s=r.getSelectedMapKey(n);o==="single"||o===!0?(i[s]=!0,j(i,function(l,u){i[u]=u===s})):i[s]=!i[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type="visualMap.piecewise",t}(Eq);const zTe=$Te;function Pq(e){e.registerComponentModel(VTe),e.registerComponentView(zTe),Lq(e)}function FTe(e){Qt(Dq),Qt(Pq)}var HTe=function(){function e(t){this._thumbnailModel=t}return e.prototype.reset=function(t){this._renderVersion=t.getMainProcessVersion()},e.prototype.renderContent=function(t){var n=t.api.getViewOfComponentModel(this._thumbnailModel);n&&(t.group.silent=!0,n.renderContent({group:t.group,targetTrans:t.targetTrans,z2Range:jW(t.group),roamType:t.roamType,viewportRect:t.viewportRect,renderVersion:this._renderVersion}))},e.prototype.updateWindow=function(t,n){var r=n.getViewOfComponentModel(this._thumbnailModel);r&&r.updateWindow({targetTrans:t,renderVersion:this._renderVersion})},e}(),WTe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.optionUpdated=function(n,r){this._updateBridge()},t.prototype._updateBridge=function(){var n=this._birdge=this._birdge||new HTe(this);if(this._target=null,this.ecModel.eachSeries(function(a){VR(a,null)}),this.shouldShow()){var r=this.getTarget();VR(r.baseMapProvider,n)}},t.prototype.shouldShow=function(){return this.getShallow("show",!0)},t.prototype.getBridge=function(){return this._birdge},t.prototype.getTarget=function(){if(this._target)return this._target;var n=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return n?n.subType!=="graph"&&(n=null):n=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:n},this._target},t.type="thumbnail",t.layoutMode="box",t.dependencies=["series","geo"],t.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:Se.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:Se.color.neutral30,borderColor:Se.color.neutral40,opacity:.3},z:10},t}(mn),GTe=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){if(this._api=a,this._model=n,this._coordSys||(this._coordSys=new Dd),!this._isEnabled()){this._clear();return}this._renderVersion=a.getMainProcessVersion();var o=this.group;o.removeAll();var i=n.getModel("itemStyle"),s=i.getItemStyle();s.fill==null&&(s.fill=r.get("backgroundColor")||Se.color.neutral00);var l=$r(n,a).refContainer,u=Qn(gG(n,!0),l),c=s.lineWidth||0,f=this._contentRect=od(u.clone(),c/2,!0,!0),d=new At;o.add(d),d.setClipPath(new rn({shape:f.plain()}));var v=this._targetGroup=new At;d.add(v);var h=u.plain();h.r=i.getShallow("borderRadius",!0),o.add(this._bgRect=new rn({style:s,shape:h,silent:!1,cursor:"grab"}));var p=n.getModel("windowStyle"),g=p.getShallow("borderRadius",!0);d.add(this._windowRect=new rn({shape:{x:0,y:0,width:0,height:0,r:g},style:p.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),gN(n,this)},t.prototype.renderContent=function(n){this._bridgeRendered=n,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),gN(this._model,this))},t.prototype._dealRenderContent=function(){var n=this._bridgeRendered;if(!(!n||n.renderVersion!==this._renderVersion)){var r=this._targetGroup,a=this._coordSys,o=this._contentRect;if(r.removeAll(),!!n){var i=n.group,s=i.getBoundingRect();r.add(i),this._bgRect.z2=n.z2Range.min-10,a.setBoundingRect(s.x,s.y,s.width,s.height);var l=Qn({left:"center",top:"center",aspect:s.width/s.height},o);a.setViewRect(l.x,l.y,l.width,l.height),i.attr(a.getTransformInfo().raw),this._windowRect.z2=n.z2Range.max+10,this._resetRoamController(n.roamType)}}},t.prototype.updateWindow=function(n){var r=this._bridgeRendered;r&&r.renderVersion===n.renderVersion&&(r.targetTrans=n.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},t.prototype._dealUpdateWindow=function(){var n=this._bridgeRendered;if(!(!n||n.renderVersion!==this._renderVersion)){var r=Pi([],n.targetTrans),a=As([],this._coordSys.transform,r);this._transThisToTarget=Pi([],a);var o=n.viewportRect;o?o=o.clone():o=new Ot(0,0,this._api.getWidth(),this._api.getHeight()),o.applyTransform(a);var i=this._windowRect,s=i.shape.r;i.setShape(Pt({r:s},o))}},t.prototype._resetRoamController=function(n){var r=this,a=this._api,o=this._roamController;if(o||(o=this._roamController=new Ld(a.getZr())),!n||!this._isEnabled()){o.disable();return}o.enable(n,{api:a,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(i,s,l){return r._contentRect.contain(s,l)}}}),o.off("pan").off("zoom").on("pan",lt(this._onPan,this)).on("zoom",lt(this._onZoom,this))},t.prototype._onPan=function(n){var r=this._transThisToTarget;if(!(!this._isEnabled()||!r)){var a=_r([],[n.oldX,n.oldY],r),o=_r([],[n.oldX-n.dx,n.oldY-n.dy],r);this._api.dispatchAction(pN(this._model.getTarget().baseMapProvider,{dx:o[0]-a[0],dy:o[1]-a[1]}))}},t.prototype._onZoom=function(n){var r=this._transThisToTarget;if(!(!this._isEnabled()||!r)){var a=_r([],[n.originX,n.originY],r);this._api.dispatchAction(pN(this._model.getTarget().baseMapProvider,{zoom:1/n.scale,originX:a[0],originY:a[1]}))}},t.prototype._isEnabled=function(){var n=this._model;if(!n||!n.shouldShow())return!1;var r=n.getTarget().baseMapProvider;return!!r},t.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},t.prototype.remove=function(){this._clear()},t.prototype.dispose=function(){this._clear()},t.type="thumbnail",t}(or);function pN(e,t){var n=e.mainType==="series"?e.subType+"Roam":e.mainType+"Roam",r={type:n};return r[e.mainType+"Id"]=e.id,Pe(r,t),r}function gN(e,t){var n=id(e);Ww(t.group,n.z,n.zlevel)}function UTe(e){e.registerComponentModel(WTe),e.registerComponentView(GTe)}var KTe={label:{enabled:!0},decal:{show:!1}},mN=an(),jTe={};function YTe(e,t){var n=e.getModel("aria");if(!n.get("enabled"))return;var r=Mt(KTe);Zt(r.label,e.getLocaleModel().get("aria"),!1),Zt(n.option,r,!1),a(),o();function a(){var u=n.getModel("decal"),c=u.get("show");if(c){var f=pt();e.eachSeries(function(d){if(!d.isColorBySeries()){var v=f.get(d.type);v||(v={},f.set(d.type,v)),mN(d).scope=v}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(kt(d.enableAriaDecal)){d.enableAriaDecal();return}var v=d.getData();if(d.isColorBySeries()){var y=Ex(d.ecModel,d.name,jTe,e.getSeriesCount()),b=v.getVisual("decal");v.setVisual("decal",w(b,y))}else{var h=d.getRawData(),p={},g=mN(d).scope;v.each(function(S){var x=v.getRawIndex(S);p[x]=S});var m=h.count();h.each(function(S){var x=p[S],C=h.getName(S)||S+"",T=Ex(d.ecModel,C,g,m),M=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",w(M,T))})}function w(S,x){var C=S?Pe(Pe({},x),S):x;return C.dirty=!0,C}})}}function o(){var u=t.getZr().dom;if(u){var c=e.getLocaleModel().get("aria"),f=n.getModel("label");if(f.option=Pt(f.option,c),!!f.get("enabled")){if(u.setAttribute("role","img"),f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var d=e.getSeriesCount(),v=f.get(["data","maxCount"])||10,h=f.get(["series","maxCount"])||10,p=Math.min(d,h),g;if(!(d<1)){var m=s();if(m){var y=f.get(["general","withTitle"]);g=i(y,{title:m})}else g=f.get(["general","withoutTitle"]);var b=[],w=d>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);g+=i(w,{seriesCount:d}),e.eachSeries(function(T,M){if(M<p){var k=void 0,E=T.get("name"),A=E?"withName":"withoutName";k=d>1?f.get(["series","multiple",A]):f.get(["series","single",A]),k=i(k,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var I=T.getData();if(I.count()>v){var O=f.get(["data","partialData"]);k+=i(O,{displayCnt:v})}else k+=f.get(["data","allData"]);for(var z=f.get(["data","separator","middle"]),$=f.get(["data","separator","end"]),P=f.get(["data","excludeDimensionId"]),L=[],V=0;V<I.count();V++)if(V<v){var B=I.getName(V),F=P?In(I.getValues(V),function(G,Y){return Xt(P,Y)===-1}):I.getValues(V),U=f.get(["data",B?"withName":"withoutName"]);L.push(i(U,{name:B,value:F.join(z)}))}k+=L.join(z)+$,b.push(k)}});var S=f.getModel(["series","multiple","separator"]),x=S.get("middle"),C=S.get("end");g+=b.join(x)+C,u.setAttribute("aria-label",g)}}}}function i(u,c){if(!st(u))return u;var f=u;return j(c,function(d,v){f=f.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),d)}),f}function s(){var u=e.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=e.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function qTe(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},j(["description","general","series","data"],function(n){t[n]!=null&&(t.label[n]=t[n])})}}function XTe(e){e.registerPreprocessor(qTe),e.registerVisual(e.PRIORITY.VISUAL.ARIA,YTe)}var yN={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},ZTe=function(){function e(t){var n=this._condVal=st(t)?new RegExp(t):tse(t)?t:null;if(n==null){var r="";An(r)}}return e.prototype.evaluate=function(t){var n=typeof t;return st(n)?this._condVal.test(t):gn(n)?this._condVal.test(t+""):!1},e}(),JTe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),QTe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,n=0;n<t.length;n++)if(!t[n].evaluate())return!1;return!0},e}(),e5e=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,n=0;n<t.length;n++)if(t[n].evaluate())return!0;return!1},e}(),t5e=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),n5e=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,n=this.getValue,r=n(this.valueGetterParam),a=t?this.valueParser(r):null,o=0;o<this.subCondList.length;o++)if(!this.subCondList[o].evaluate(t?a:r))return!1;return!0},e}();function ZM(e,t){if(e===!0||e===!1){var n=new JTe;return n.value=e,n}var r="";return Rq(e)||An(r),e.and?bN("and",e,t):e.or?bN("or",e,t):e.not?r5e(e,t):a5e(e,t)}function bN(e,t,n){var r=t[e],a="";Ve(r)||An(a),r.length||An(a);var o=e==="and"?new QTe:new e5e;return o.children=$e(r,function(i){return ZM(i,n)}),o.children.length||An(a),o}function r5e(e,t){var n=e.not,r="";Rq(n)||An(r);var a=new t5e;return a.child=ZM(n,t),a.child||An(r),a}function a5e(e,t){for(var n="",r=t.prepareGetValue(e),a=[],o=dn(e),i=e.parser,s=i?zG(i):null,l=0;l<o.length;l++){var u=o[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=ft(yN,u)?yN[u]:u,f=e[u],d=s?s(f):f,v=Tde(c,d)||c==="reg"&&new ZTe(d);v||An(n),a.push(v)}}a.length||An(n);var h=new n5e;return h.valueGetterParam=r,h.valueParser=s,h.getValue=t.getValue,h.subCondList=a,h}function Rq(e){return Rt(e)&&!Ea(e)}var o5e=function(){function e(t,n){this._cond=ZM(t,n)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function i5e(e,t){return new o5e(e,t)}var s5e={type:"echarts:filter",transform:function(e){for(var t=e.upstream,n,r=i5e(e.config,{valueGetterAttrMap:pt({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;ft(s,"dimension")||An(l);var c=t.getDimensionInfo(u);return c||An(l),{dimIdx:c.index}},getValue:function(s){return t.retrieveValueFromItem(n,s.dimIdx)}}),a=[],o=0,i=t.count();o<i;o++)n=t.getRawDataItem(o),r.evaluate()&&a.push(n);return{data:a}}},l5e={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,r="",a=Bn(n);a.length||An(r);var o=[];j(a,function(c){var f=c.dimension,d=c.order,v=c.parser,h=c.incomparable;if(f==null&&An(r),d!=="asc"&&d!=="desc"&&An(r),h&&h!=="min"&&h!=="max"){var p="";An(p)}if(d!=="asc"&&d!=="desc"){var g="";An(g)}var m=t.getDimensionInfo(f);m||An(r);var y=v?zG(v):null;v&&!y&&An(r),o.push({dimIdx:m.index,parser:y,comparator:new HG(d,h)})});var i=t.sourceFormat;i!==Qr&&i!==Po&&An(r);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,f){for(var d=0;d<o.length;d++){var v=o[d],h=t.retrieveValueFromItem(c,v.dimIdx),p=t.retrieveValueFromItem(f,v.dimIdx);v.parser&&(h=v.parser(h),p=v.parser(p));var g=v.comparator.evaluate(h,p);if(g!==0)return g}return 0}),{data:s}}};function u5e(e){e.registerTransform(s5e),e.registerTransform(l5e)}var c5e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataset",n}return t.prototype.init=function(n,r,a){e.prototype.init.call(this,n,r,a),this._sourceManager=new KG(this),YL(this)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),YL(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Ti},t}(mn),f5e=function(e){ye(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataset",n}return t.type="dataset",t}(or);function d5e(e){e.registerComponentModel(c5e),e.registerComponentView(f5e)}var ss=Gs.CMD;function Rv(e,t){return Math.abs(e-t)<1e-5}function HC(e){var t=e.data,n=e.len(),r=[],a,o=0,i=0,s=0,l=0;function u(I,O){a&&a.length>2&&r.push(a),a=[I,O]}function c(I,O,z,$){Rv(I,z)&&Rv(O,$)||a.push(I,O,z,$,z,$)}function f(I,O,z,$,P,L){var V=Math.abs(O-I),B=Math.tan(V/4)*4/3,F=O<I?-1:1,U=Math.cos(I),G=Math.sin(I),Y=Math.cos(O),X=Math.sin(O),te=U*P+z,oe=G*L+$,re=Y*P+z,ce=X*L+$,ie=P*B*F,Z=L*B*F;a.push(te-ie*G,oe+Z*U,re+ie*X,ce-Z*Y,re,ce)}for(var d,v,h,p,g=0;g<n;){var m=t[g++],y=g===1;switch(y&&(o=t[g],i=t[g+1],s=o,l=i,(m===ss.L||m===ss.C||m===ss.Q)&&(a=[s,l])),m){case ss.M:o=s=t[g++],i=l=t[g++],u(s,l);break;case ss.L:d=t[g++],v=t[g++],c(o,i,d,v),o=d,i=v;break;case ss.C:a.push(t[g++],t[g++],t[g++],t[g++],o=t[g++],i=t[g++]);break;case ss.Q:d=t[g++],v=t[g++],h=t[g++],p=t[g++],a.push(o+2/3*(d-o),i+2/3*(v-i),h+2/3*(d-h),p+2/3*(v-p),h,p),o=h,i=p;break;case ss.A:var b=t[g++],w=t[g++],S=t[g++],x=t[g++],C=t[g++],T=t[g++]+C;g+=1;var M=!t[g++];d=Math.cos(C)*S+b,v=Math.sin(C)*x+w,y?(s=d,l=v,u(s,l)):c(o,i,d,v),o=Math.cos(T)*S+b,i=Math.sin(T)*x+w;for(var k=(M?-1:1)*Math.PI/2,E=C;M?E>T:E<T;E+=k){var A=M?Math.max(E+k,T):Math.min(E+k,T);f(E,A,b,w,S,x)}break;case ss.R:s=o=t[g++],l=i=t[g++],d=s+t[g++],v=l+t[g++],u(d,l),c(d,l,d,v),c(d,v,s,v),c(s,v,s,l),c(s,l,d,l);break;case ss.Z:a&&c(o,i,s,l),o=s,i=l;break}}return a&&a.length>2&&r.push(a),r}function WC(e,t,n,r,a,o,i,s,l,u){if(Rv(e,n)&&Rv(t,r)&&Rv(a,i)&&Rv(o,s)){l.push(i,s);return}var c=2/u,f=c*c,d=i-e,v=s-t,h=Math.sqrt(d*d+v*v);d/=h,v/=h;var p=n-e,g=r-t,m=a-i,y=o-s,b=p*p+g*g,w=m*m+y*y;if(b<f&&w<f){l.push(i,s);return}var S=d*p+v*g,x=-d*m-v*y,C=b-S*S,T=w-x*x;if(C<f&&S>=0&&T<f&&x>=0){l.push(i,s);return}var M=[],k=[];ic(e,n,a,i,.5,M),ic(t,r,o,s,.5,k),WC(M[0],k[0],M[1],k[1],M[2],k[2],M[3],k[3],l,u),WC(M[4],k[4],M[5],k[5],M[6],k[6],M[7],k[7],l,u)}function v5e(e,t){var n=HC(e),r=[];t=t||1;for(var a=0;a<n.length;a++){var o=n[a],i=[],s=o[0],l=o[1];i.push(s,l);for(var u=2;u<o.length;){var c=o[u++],f=o[u++],d=o[u++],v=o[u++],h=o[u++],p=o[u++];WC(s,l,c,f,d,v,h,p,i,t),s=h,l=p}r.push(i)}return r}function Oq(e,t,n){var r=e[t],a=e[1-t],o=Math.abs(r/a),i=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/i);s===0&&(s=1,i=n);for(var l=[],u=0;u<i;u++)l.push(s);var c=i*s,f=n-c;if(f>0)for(var u=0;u<f;u++)l[u%i]+=1;return l}function _N(e,t,n){for(var r=e.r0,a=e.r,o=e.startAngle,i=e.endAngle,s=Math.abs(i-o),l=s*a,u=a-r,c=l>Math.abs(u),f=Oq([l,u],c?0:1,t),d=(c?s:u)/f.length,v=0;v<f.length;v++)for(var h=(c?u:s)/f[v],p=0;p<f[v];p++){var g={};c?(g.startAngle=o+d*v,g.endAngle=o+d*(v+1),g.r0=r+h*p,g.r=r+h*(p+1)):(g.startAngle=o+h*p,g.endAngle=o+h*(p+1),g.r0=r+d*v,g.r=r+d*(v+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,n.push(g)}}function h5e(e,t,n){for(var r=e.width,a=e.height,o=r>a,i=Oq([r,a],o?0:1,t),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",f=e[s]/i.length,d=0;d<i.length;d++)for(var v=e[l]/i[d],h=0;h<i[d];h++){var p={};p[u]=d*f,p[c]=h*v,p[s]=f,p[l]=v,p.x+=e.x,p.y+=e.y,n.push(p)}}function wN(e,t,n,r){return e*r-n*t}function p5e(e,t,n,r,a,o,i,s){var l=n-e,u=r-t,c=i-a,f=s-o,d=wN(c,f,l,u);if(Math.abs(d)<1e-6)return null;var v=e-a,h=t-o,p=wN(v,h,c,f)/d;return p<0||p>1?null:new Dt(p*l+e,p*u+t)}function g5e(e,t,n){var r=new Dt;Dt.sub(r,n,t),r.normalize();var a=new Dt;Dt.sub(a,e,t);var o=a.dot(r);return o}function fv(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function m5e(e,t,n){for(var r=e.length,a=[],o=0;o<r;o++){var i=e[o],s=e[(o+1)%r],l=p5e(i[0],i[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&a.push({projPt:g5e(l,t,n),pt:l,idx:o})}if(a.length<2)return[{points:e},{points:e}];a.sort(function(g,m){return g.projPt-m.projPt});var u=a[0],c=a[a.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var d=[u.pt.x,u.pt.y],v=[c.pt.x,c.pt.y],h=[d],p=[v],o=u.idx+1;o<=c.idx;o++)fv(h,e[o].slice());fv(h,v),fv(h,d);for(var o=c.idx+1;o<=u.idx+r;o++)fv(p,e[o%r].slice());return fv(p,d),fv(p,v),[{points:h},{points:p}]}function SN(e){var t=e.points,n=[],r=[];Rw(t,n,r);var a=new Ot(n[0],n[1],r[0]-n[0],r[1]-n[1]),o=a.width,i=a.height,s=a.x,l=a.y,u=new Dt,c=new Dt;return o>i?(u.x=c.x=s+o/2,u.y=l,c.y=l+i):(u.y=c.y=l+i/2,u.x=s,c.x=s+o),m5e(t,u,c)}function T_(e,t,n,r){if(n===1)r.push(t);else{var a=Math.floor(n/2),o=e(t);T_(e,o[0],a,r),T_(e,o[1],n-a,r)}return r}function y5e(e,t){for(var n=[],r=0;r<t;r++)n.push(nk(e));return n}function b5e(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function _5e(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function w5e(e,t){var n=[],r=e.shape,a;switch(e.type){case"rect":h5e(r,t,n),a=rn;break;case"sector":_N(r,t,n),a=ja;break;case"circle":_N({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,n),a=ja;break;default:var o=e.getComputedTransform(),i=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=$e(v5e(e.getUpdatedPathProxy(),i),function(m){return _5e(m)}),l=s.length;if(l===0)T_(SN,{points:s[0]},t,n);else if(l===t)for(var u=0;u<l;u++)n.push({points:s[u]});else{var c=0,f=$e(s,function(m){var y=[],b=[];Rw(m,y,b);var w=(b[1]-y[1])*(b[0]-y[0]);return c+=w,{poly:m,area:w}});f.sort(function(m,y){return y.area-m.area});for(var d=t,u=0;u<l;u++){var v=f[u];if(d<=0)break;var h=u===l-1?d:Math.ceil(v.area/c*t);h<0||(T_(SN,{points:v.poly},h,n),d-=h)}}a=Ya;break}if(!a)return y5e(e,t);for(var p=[],u=0;u<n.length;u++){var g=new a;g.setShape(n[u]),b5e(e,g),p.push(g)}return p}function S5e(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var a=[],o=[],i=n<r?e:t,s=Math.min(n,r),l=Math.abs(r-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[i[0],i[1]],d=l,v=2;v<s;){var h=i[v-2],p=i[v-1],g=i[v++],m=i[v++],y=i[v++],b=i[v++],w=i[v++],S=i[v++];if(d<=0){f.push(g,m,y,b,w,S);continue}for(var x=Math.min(d,c-1)+1,C=1;C<=x;C++){var T=C/x;ic(h,g,y,w,T,a),ic(p,m,b,S,T,o),h=a[3],p=o[3],f.push(a[1],o[1],a[2],o[2],h,p),g=a[5],m=o[5],y=a[6],b=o[6]}d-=x-1}return i===e?[f,t]:[e,f]}function xN(e,t){for(var n=e.length,r=e[n-2],a=e[n-1],o=[],i=0;i<t.length;)o[i++]=r,o[i++]=a;return o}function x5e(e,t){for(var n,r,a,o=[],i=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,f=void 0;l?u?(n=S5e(l,u),c=n[0],f=n[1],r=c,a=f):(f=xN(a||l,l),c=l):(c=xN(r||u,u),f=u),o.push(c),i.push(f)}return[o,i]}function CN(e){for(var t=0,n=0,r=0,a=e.length,o=0,i=a-2;o<a;i=o,o+=2){var s=e[i],l=e[i+1],u=e[o],c=e[o+1],f=s*c-u*l;t+=f,n+=(s+u)*f,r+=(l+c)*f}return t===0?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function C5e(e,t,n,r){for(var a=(e.length-2)/6,o=1/0,i=0,s=e.length,l=s-2,u=0;u<a;u++){for(var c=u*6,f=0,d=0;d<s;d+=2){var v=d===0?c:(c+d-2)%l+2,h=e[v]-n[0],p=e[v+1]-n[1],g=t[d]-r[0],m=t[d+1]-r[1],y=g-h,b=m-p;f+=y*y+b*b}f<o&&(o=f,i=u)}return i}function T5e(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function k5e(e,t,n,r){for(var a=[],o,i=0;i<e.length;i++){var s=e[i],l=t[i],u=CN(s),c=CN(l);o==null&&(o=u[2]<0!=c[2]<0);var f=[],d=[],v=0,h=1/0,p=[],g=s.length;o&&(s=T5e(s));for(var m=C5e(s,l,u,c)*6,y=g-2,b=0;b<y;b+=2){var w=(m+b)%y+2;f[b+2]=s[w]-u[0],f[b+3]=s[w+1]-u[1]}if(f[0]=s[m]-u[0],f[1]=s[m+1]-u[1],n>0)for(var S=r/n,x=-r/2;x<=r/2;x+=S){for(var C=Math.sin(x),T=Math.cos(x),M=0,b=0;b<s.length;b+=2){var k=f[b],E=f[b+1],A=l[b]-c[0],I=l[b+1]-c[1],O=A*T-I*C,z=A*C+I*T;p[b]=O,p[b+1]=z;var $=O-k,P=z-E;M+=$*$+P*P}if(M<h){h=M,v=x;for(var L=0;L<p.length;L++)d[L]=p[L]}}else for(var V=0;V<g;V+=2)d[V]=l[V]-c[0],d[V+1]=l[V+1]-c[1];a.push({from:f,to:d,fromCp:u,toCp:c,rotation:-v})}return a}function k_(e){return e.__isCombineMorphing}var Nq="__mOriginal_";function M_(e,t,n){var r=Nq+t,a=e[r]||e[t];e[r]||(e[r]=e[t]);var o=n.replace,i=n.after,s=n.before;e[t]=function(){var l=arguments,u;return s&&s.apply(this,l),o?u=o.apply(this,l):u=a.apply(this,l),i&&i.apply(this,l),u}}function X0(e,t){var n=Nq+t;e[n]&&(e[t]=e[n],e[n]=null)}function TN(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],a=0;a<r.length;){var o=r[a],i=r[a+1];r[a++]=t[0]*o+t[2]*i+t[4],r[a++]=t[1]*o+t[3]*i+t[5]}}function Bq(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),a=x5e(HC(n),HC(r)),o=a[0],i=a[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&TN(o,s),l&&TN(i,l),M_(t,"updateTransform",{replace:u}),t.transform=null;var c=k5e(o,i,10,Math.PI),f=[];M_(t,"buildPath",{replace:function(d){for(var v=t.__morphT,h=1-v,p=[],g=0;g<c.length;g++){var m=c[g],y=m.from,b=m.to,w=m.rotation*v,S=m.fromCp,x=m.toCp,C=Math.sin(w),T=Math.cos(w);C2(p,S,x,v);for(var M=0;M<y.length;M+=2){var k=y[M],E=y[M+1],A=b[M],I=b[M+1],O=k*h+A*v,z=E*h+I*v;f[M]=O*T-z*C+p[0],f[M+1]=O*C+z*T+p[1]}var $=f[0],P=f[1];d.moveTo($,P);for(var M=2;M<y.length;){var A=f[M++],I=f[M++],L=f[M++],V=f[M++],B=f[M++],F=f[M++];$===A&&P===I&&L===B&&V===F?d.lineTo(B,F):d.bezierCurveTo(A,I,L,V,B,F),$=B,P=F}}}})}function JM(e,t,n){if(!e||!t)return t;var r=n.done,a=n.during;Bq(e,t),t.__morphT=0;function o(){X0(t,"buildPath"),X0(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},Pt({during:function(i){t.dirtyShape(),a&&a(i)},done:function(){o(),r&&r()}},n)),t}function M5e(e,t,n,r,a,o){var i=16;e=a===n?0:Math.round(32767*(e-n)/(a-n)),t=o===r?0:Math.round(32767*(t-r)/(o-r));for(var s=0,l,u=(1<<i)/2;u>0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function A_(e){var t=1/0,n=1/0,r=-1/0,a=-1/0,o=$e(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),n=Math.min(f,n),r=Math.max(c,r),a=Math.max(f,a),[c,f]}),i=$e(o,function(s,l){return{cp:s,z:M5e(s[0],s[1],t,n,r,a),path:e[l]}});return i.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Vq(e){return w5e(e.path,e.count)}function GC(){return{fromIndividuals:[],toIndividuals:[],count:0}}function A5e(e,t,n){var r=[];function a(S){for(var x=0;x<S.length;x++){var C=S[x];k_(C)?a(C.childrenRef()):C instanceof ln&&r.push(C)}}a(e);var o=r.length;if(!o)return GC();var i=n.dividePath||Vq,s=i({path:t,count:o});if(s.length!==o)return console.error("Invalid morphing: unmatched splitted path"),GC();r=A_(r),s=A_(s);for(var l=n.done,u=n.during,c=n.individualDelay,f=new kl,d=0;d<o;d++){var v=r[d],h=s[d];h.parent=t,h.copyTransform(f),c||Bq(v,h)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function p(S){for(var x=0;x<s.length;x++)s[x].addSelfToZr(S)}M_(t,"addSelfToZr",{after:function(S){p(S)}}),M_(t,"removeSelfFromZr",{after:function(S){for(var x=0;x<s.length;x++)s[x].removeSelfFromZr(S)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,X0(t,"addSelfToZr"),X0(t,"removeSelfFromZr")}var m=s.length;if(c)for(var y=m,b=function(){y--,y===0&&(g(),l&&l())},d=0;d<m;d++){var w=c?Pt({delay:(n.delay||0)+c(d,m,r[d],s[d]),done:b},n):n;JM(r[d],s[d],w)}else t.__morphT=0,t.animateTo({__morphT:1},Pt({during:function(S){for(var x=0;x<m;x++){var C=s[x];C.__morphT=t.__morphT,C.dirtyShape()}u&&u(S)},done:function(){g();for(var S=0;S<e.length;S++)X0(e[S],"updateTransform");l&&l()}},n));return t.__zr&&p(t.__zr),{fromIndividuals:r,toIndividuals:s,count:m}}function E5e(e,t,n){var r=t.length,a=[],o=n.dividePath||Vq;function i(v){for(var h=0;h<v.length;h++){var p=v[h];k_(p)?i(p.childrenRef()):p instanceof ln&&a.push(p)}}if(k_(e)){i(e.childrenRef());var s=a.length;if(s<r)for(var l=0,u=s;u<r;u++)a.push(nk(a[l++%s]));a.length=r}else{a=o({path:e,count:r});for(var c=e.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(c);if(a.length!==r)return console.error("Invalid morphing: unmatched splitted path"),GC()}a=A_(a),t=A_(t);for(var f=n.individualDelay,u=0;u<r;u++){var d=f?Pt({delay:(n.delay||0)+f(u,r,a[u],t[u])},n):n;JM(a[u],t[u],d)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function kN(e){return Ve(e[0])}function MN(e,t){for(var n=[],r=e.length,a=0;a<r;a++)n.push({one:e[a],many:[]});for(var a=0;a<t.length;a++){var o=t[a].length,i=void 0;for(i=0;i<o;i++)n[i%r].many.push(t[a][i])}for(var s=0,a=r-1;a>=0;a--)if(!n[a].many.length){var l=n[s].many;if(l.length<=1)if(s)s=0;else return n;var o=l.length,u=Math.ceil(o/2);n[a].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var I5e={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r<e.count;r++){var a=nk(e.path);a.setStyle("opacity",n),t.push(a)}return t},split:null};function PS(e,t,n,r,a,o){if(!e.length||!t.length)return;var i=Qh("update",r,a);if(!(i&&i.duration>0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},i),u,c;kN(e)&&(u=e,c=t),kN(t)&&(u=t,c=e);function f(m,y,b,w,S){var x=m.many,C=m.one;if(x.length===1&&!S){var T=y?x[0]:C,M=y?C:x[0];if(k_(T))f({many:[T],one:M},!0,b,w,!0);else{var k=s?Pt({delay:s(b,w)},l):l;JM(T,M,k),o(T,M,T,M,k)}}else for(var E=Pt({dividePath:I5e[n],individualDelay:s&&function(P,L,V,B){return s(P+b,w)}},l),A=y?A5e(x,C,E):E5e(C,x,E),I=A.fromIndividuals,O=A.toIndividuals,z=I.length,$=0;$<z;$++){var k=s?Pt({delay:s($,z)},l):l;o(I[$],O[$],y?x[$]:m.one,y?m.one:x[$],k)}}for(var d=u?u===e:e.length>t.length,v=u?MN(c,u):MN(d?t:e,[d?e:t]),h=0,p=0;p<v.length;p++)h+=v[p].many.length;for(var g=0,p=0;p<v.length;p++)f(v[p],d,g,h),g+=v[p].many.length}function sf(e){if(!e)return[];if(Ve(e)){for(var t=[],n=0;n<e.length;n++)t.push(sf(e[n]));return t}var r=[];return e.traverse(function(a){a instanceof ln&&!a.disableMorphing&&!a.invisible&&!a.ignore&&r.push(a)}),r}var $q=1e4,L5e=0,AN=1,EN=2,D5e=an();function P5e(e,t){for(var n=e.dimensions,r=0;r<n.length;r++){var a=e.getDimensionInfo(n[r]);if(a&&a.otherDims[t]===0)return n[r]}}function R5e(e,t,n){var r=e.getDimensionInfo(n),a=r&&r.ordinalMeta;if(r){var o=e.get(r.name,t);return a&&a.categories[o]||o+""}}function IN(e,t,n,r){var a=r?"itemChildGroupId":"itemGroupId",o=P5e(e,a);if(o){var i=R5e(e,t,o);return i}var s=e.getRawDataItem(t),l=r?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!r)return n||e.getId(t)}function LN(e){var t=[];return j(e,function(n){var r=n.data,a=n.dataGroupId;if(!(r.count()>$q))for(var o=r.getIndices(),i=0;i<o.length;i++)t.push({data:r,groupId:IN(r,i,a,!1),childGroupId:IN(r,i,a,!0),divide:n.divide,dataIndex:i})}),t}function RS(e,t,n){e.traverse(function(r){r instanceof ln&&Xn(r,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function OS(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function dv(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function O5e(e,t,n){var r=Qh("update",n,t);r&&e.traverse(function(a){if(a instanceof ai){var o=qce(a);o&&a.animateFrom({style:o},r)}})}function N5e(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var a=e[r],o=t[r];if(a.data.getId(a.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}function zq(e,t,n){var r=LN(e),a=LN(t);function o(b,w,S,x,C){(S||b)&&w.animateFrom({style:S&&S!==b?Pe(Pe({},S.style),b.style):b.style},C)}var i=!1,s=L5e,l=pt(),u=pt();r.forEach(function(b){b.groupId&&l.set(b.groupId,!0),b.childGroupId&&u.set(b.childGroupId,!0)});for(var c=0;c<a.length;c++){var f=a[c].groupId;if(u.get(f)){s=AN;break}var d=a[c].childGroupId;if(d&&l.get(d)){s=EN;break}}function v(b,w){return function(S){var x=S.data,C=S.dataIndex;return w?x.getId(C):b?s===AN?S.childGroupId:S.groupId:s===EN?S.childGroupId:S.groupId}}var h=N5e(r,a),p={};if(!h)for(var c=0;c<a.length;c++){var g=a[c],m=g.data.getItemGraphicEl(g.dataIndex);m&&(p[m.id]=!0)}function y(b,w){var S=r[w],x=a[b],C=x.data.hostModel,T=S.data.getItemGraphicEl(S.dataIndex),M=x.data.getItemGraphicEl(x.dataIndex);if(T===M){M&&O5e(M,x.dataIndex,C);return}T&&p[T.id]||M&&(dv(M),T?(dv(T),OS(T),i=!0,PS(sf(T),sf(M),x.divide,C,b,o)):RS(M,C,b))}new Hl(r,a,v(!0,h),v(!1,h),null,"multiple").update(y).updateManyToOne(function(b,w){var S=a[b],x=S.data,C=x.hostModel,T=x.getItemGraphicEl(S.dataIndex),M=In($e(w,function(k){return r[k].data.getItemGraphicEl(r[k].dataIndex)}),function(k){return k&&k!==T&&!p[k.id]});T&&(dv(T),M.length?(j(M,function(k){dv(k),OS(k)}),i=!0,PS(sf(M),sf(T),S.divide,C,b,o)):RS(T,C,S.dataIndex))}).updateOneToMany(function(b,w){var S=r[w],x=S.data.getItemGraphicEl(S.dataIndex);if(!(x&&p[x.id])){var C=In($e(b,function(M){return a[M].data.getItemGraphicEl(a[M].dataIndex)}),function(M){return M&&M!==x}),T=a[b[0]].data.hostModel;C.length&&(j(C,function(M){return dv(M)}),x?(dv(x),OS(x),i=!0,PS(sf(x),sf(C),S.divide,T,b[0],o)):j(C,function(M){return RS(M,T,b[0])}))}}).updateManyToMany(function(b,w){new Hl(w,b,function(S){return r[S].data.getId(r[S].dataIndex)},function(S){return a[S].data.getId(a[S].dataIndex)}).update(function(S,x){y(b[S],w[x])}).execute()}).execute(),i&&j(t,function(b){var w=b.data,S=w.hostModel,x=S&&n.getViewOfSeriesModel(S),C=Qh("update",S,0);x&&S.isAnimationEnabled()&&C&&C.duration>0&&x.group.traverse(function(T){T instanceof ln&&!T.animators.length&&T.animateFrom({style:{opacity:0}},C)})})}function DN(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function PN(e){return Ve(e)?e.sort().join(","):e}function Iu(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function B5e(e,t){var n=pt(),r=pt(),a=pt();return j(e.oldSeries,function(o,i){var s=e.oldDataGroupIds[i],l=e.oldData[i],u=DN(o),c=PN(u);r.set(c,{dataGroupId:s,data:l}),Ve(u)&&j(u,function(f){a.set(f,{key:c,dataGroupId:s,data:l})})}),j(t.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var i=o.get("dataGroupId"),s=o.getData(),l=DN(o),u=PN(l),c=r.get(u);if(c)n.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Iu(c.data),data:c.data}],newSeries:[{dataGroupId:i,divide:Iu(s),data:s}]});else if(Ve(l)){var f=[];j(l,function(h){var p=r.get(h);p.data&&f.push({dataGroupId:p.dataGroupId,divide:Iu(p.data),data:p.data})}),f.length&&n.set(u,{oldSeries:f,newSeries:[{dataGroupId:i,data:s,divide:Iu(s)}]})}else{var d=a.get(l);if(d){var v=n.get(d.key);v||(v={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:Iu(d.data)}],newSeries:[]},n.set(d.key,v)),v.newSeries.push({dataGroupId:i,data:s,divide:Iu(s)})}}}}),n}function RN(e,t){for(var n=0;n<e.length;n++){var r=t.seriesIndex!=null&&t.seriesIndex===e[n].seriesIndex||t.seriesId!=null&&t.seriesId===e[n].id;if(r)return n}}function V5e(e,t,n,r){var a=[],o=[];j(Bn(e.from),function(i){var s=RN(t.oldSeries,i);s>=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Iu(t.oldData[s]),groupIdDim:i.dimension})}),j(Bn(e.to),function(i){var s=RN(n.updatedSeries,i);if(s>=0){var l=n.updatedSeries[s].getData();o.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Iu(l),groupIdDim:i.dimension})}}),a.length>0&&o.length>0&&zq(a,o,r)}function $5e(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){j(Bn(r.seriesTransition),function(a){j(Bn(a.to),function(o){for(var i=r.updatedSeries,s=0;s<i.length;s++)(o.seriesIndex!=null&&o.seriesIndex===i[s].seriesIndex||o.seriesId!=null&&o.seriesId===i[s].id)&&(i[s][B2]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,n,r){var a=D5e(n);if(a.oldSeries&&r.updatedSeries&&r.optionChanged){var o=r.seriesTransition;if(o)j(Bn(o),function(v){V5e(v,a,r,n)});else{var i=B5e(a,r);j(i.keys(),function(v){var h=i.get(v);zq(h.oldSeries,h.newSeries,n)})}j(r.updatedSeries,function(v){v[B2]&&(v[B2]=!1)})}for(var s=t.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],c=a.oldData=[],f=0;f<s.length;f++){var d=s[f].getData();d.count()<$q&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}var z5e=function(){function e(){this.breaks=[],this._elapsedExtent=[1/0,-1/0]}return e.prototype.setBreaks=function(t){this.breaks=t.breaks},e.prototype.update=function(t){H5e(this,t);var n=this._elapsedExtent;n[0]=this.elapse(t[0]),n[1]=this.elapse(t[1])},e.prototype.hasBreaks=function(){return!!this.breaks.length},e.prototype.calcNiceTickMultiple=function(t,n){for(var r=0;r<this.breaks.length;r++){var a=this.breaks[r];if(a.vmin<t&&t<a.vmax){var o=n(t,a.vmax);return o}}return 0},e.prototype.getExtentSpan=function(){return this._elapsedExtent[1]-this._elapsedExtent[0]},e.prototype.normalize=function(t){var n=this._elapsedExtent[1]-this._elapsedExtent[0];return n===0?.5:(this.elapse(t)-this._elapsedExtent[0])/n},e.prototype.scale=function(t){return this.unelapse(t*(this._elapsedExtent[1]-this._elapsedExtent[0])+this._elapsedExtent[0])},e.prototype.elapse=function(t){for(var n=ON,r=NN,a=!0,o=0;o<this.breaks.length;o++){var i=this.breaks[o];if(t<=i.vmax){t>i.vmin?n+=i.vmin-r+(t-i.vmin)/(i.vmax-i.vmin)*i.gapReal:n+=t-r,r=i.vmax,a=!1;break}n+=i.vmin-r+i.gapReal,r=i.vmax}return a&&(n+=t-r),n},e.prototype.unelapse=function(t){for(var n=ON,r=NN,a=!0,o=0,i=0;i<this.breaks.length;i++){var s=this.breaks[i],l=n+s.vmin-r,u=l+s.gapReal;if(t<=u){t>l?o=s.vmin+(t-l)/(u-l)*(s.vmax-s.vmin):o=r+t-n,r=s.vmax,a=!1;break}n=u,r=s.vmax}return a&&(o=r+t-n),o},e}();function F5e(){return new z5e}var ON=0,NN=0;function H5e(e,t){var n=0,r={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},a=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},o={S:{tpAbs:a(),tpPrct:a()},E:{tpAbs:a(),tpPrct:a()}};j(e.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(n+=l.val);var u=QM(s,t);if(u){var c=u.vmin!==s.vmin,f=u.vmax!==s.vmax,d=u.vmax-u.vmin;if(!(c&&f))if(c||f){var v=c?"S":"E";o[v][l.type].has=!0,o[v][l.type].span=d,o[v][l.type].inExtFrac=d/(s.vmax-s.vmin),o[v][l.type].val=l.val}else r[l.type].span+=d,r[l.type].val+=l.val}});var i=n*(0+(t[1]-t[0])+(r.tpAbs.val-r.tpAbs.span)+(o.S.tpAbs.has?(o.S.tpAbs.val-o.S.tpAbs.span)*o.S.tpAbs.inExtFrac:0)+(o.E.tpAbs.has?(o.E.tpAbs.val-o.E.tpAbs.span)*o.E.tpAbs.inExtFrac:0)-r.tpPrct.span-(o.S.tpPrct.has?o.S.tpPrct.span*o.S.tpPrct.inExtFrac:0)-(o.E.tpPrct.has?o.E.tpPrct.span*o.E.tpPrct.inExtFrac:0))/(1-r.tpPrct.val-(o.S.tpPrct.has?o.S.tpPrct.val*o.S.tpPrct.inExtFrac:0)-(o.E.tpPrct.has?o.E.tpPrct.val*o.E.tpPrct.inExtFrac:0));j(e.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(s.gapReal=n!==0?Math.max(i,0)*l.val/n:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function W5e(e,t,n,r,a,o){e!=="no"&&j(n,function(i){var s=QM(i,o);if(s)for(var l=t.length-1;l>=0;l--){var u=t[l],c=r(u),f=a*3/4;c>s.vmin-f&&c<s.vmax+f&&(e!=="preserve_extent_bound"||c!==o[0]&&c!==o[1])&&t.splice(l,1)}})}function G5e(e,t,n,r){j(t,function(a){var o=QM(a,n);o&&(e.push({value:o.vmin,break:{type:"vmin",parsedBreak:o},time:r?r(o):void 0}),e.push({value:o.vmax,break:{type:"vmax",parsedBreak:o},time:r?r(o):void 0}))}),t.length&&e.sort(function(a,o){return a.value-o.value})}function QM(e,t){var n=Math.max(e.vmin,t[0]),r=Math.min(e.vmax,t[1]);return n<r||n===r&&n>t[0]&&n<t[1]?{vmin:n,vmax:r,breakOption:e.breakOption,gapParsed:e.gapParsed,gapReal:e.gapReal}:null}function UC(e,t,n){var r=[];if(!e)return{breaks:r};function a(i,s){return i>=0&&i<1-1e-5}j(e,function(i){if(!(!i||i.start==null||i.end==null)&&!i.isExpanded){var s={breakOption:Mt(i),vmin:t(i.start),vmax:t(i.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(i.gap!=null){var l=!1;if(st(i.gap)){var u=Xo(i.gap);if(u.match(/%$/)){var c=parseFloat(u)/100;a(c)||(c=0),s.gapParsed.type="tpPrct",s.gapParsed.val=c,l=!0}}if(!l){var f=t(i.gap);(!isFinite(f)||f<0)&&(f=0),s.gapParsed.type="tpAbs",s.gapParsed.val=f}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),n&&n.noNegative&&j(["vmin","vmax"],function(v){s[v]<0&&(s[v]=0)}),s.vmin>s.vmax){var d=s.vmax;s.vmax=s.vmin,s.vmin=d}r.push(s)}}),r.sort(function(i,s){return i.vmin-s.vmin});var o=-1/0;return j(r,function(i,s){o>i.vmin&&(r[s]=null),o=i.vmax}),{breaks:r.filter(function(i){return!!i})}}function eA(e,t){return KC(t)===KC(e)}function KC(e){return e.start+"_\0_"+e.end}function U5e(e,t,n){var r=[];j(e,function(o,i){var s=t(o);s&&s.type==="vmin"&&r.push([i])}),j(e,function(o,i){var s=t(o);if(s&&s.type==="vmax"){var l=_d(r,function(u){return eA(t(e[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(i)}});var a=[];return j(r,function(o){o.length===2&&a.push(n?o:[e[o[0]],e[o[1]]])}),a}function K5e(e,t,n,r){var a,o;if(e.break){var i=e.break.parsedBreak,s=_d(n,function(f){return eA(f.breakOption,e.break.parsedBreak.breakOption)}),l=r(Math.pow(t,i.vmin),s.vmin),u=r(Math.pow(t,i.vmax),s.vmax),c={type:i.gapParsed.type,val:i.gapParsed.type==="tpAbs"?xr(Math.pow(t,i.vmin+i.gapParsed.val))-l:i.gapParsed.val};a={type:e.break.type,parsedBreak:{breakOption:i.breakOption,vmin:l,vmax:u,gapParsed:c,gapReal:i.gapReal}},o=s[e.break.type]}return{brkRoundingCriterion:o,vBreak:a}}function j5e(e,t,n){var r={noNegative:!0},a=UC(e,n,r),o=UC(e,n,r),i=Math.log(t);return o.breaks=$e(o.breaks,function(s){var l=Math.log(s.vmin)/i,u=Math.log(s.vmax)/i,c={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?Math.log(s.vmin+s.gapParsed.val)/i-l:s.gapParsed.val};return{vmin:l,vmax:u,gapParsed:c,gapReal:s.gapReal,breakOption:s.breakOption}}),{parsedOriginal:a,parsedLogged:o}}var Y5e={vmin:"start",vmax:"end"};function q5e(e,t){return t&&(e=e||{},e.break={type:Y5e[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),e}function X5e(){bfe({createScaleBreakContext:F5e,pruneTicksByBreak:W5e,addBreaksToTicks:G5e,parseAxisBreakOption:UC,identifyAxisBreak:eA,serializeAxisBreakIdentifier:KC,retrieveAxisBreakPairs:U5e,getTicksLogTransformBreak:K5e,logarithmicParseBreaksFromOption:j5e,makeAxisLabelFormatterParamBreak:q5e})}var BN=an();function Z5e(e,t){var n=_d(e,function(r){return Cr().identifyAxisBreak(r.parsedBreak.breakOption,t.breakOption)});return n||e.push(n={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),n}function J5e(e){j(e,function(t){return t.shouldRemove=!0})}function Q5e(e){for(var t=e.length-1;t>=0;t--)e[t].shouldRemove&&e.splice(t,1)}function eke(e,t,n,r,a){var o=n.axis;if(o.scale.isBlank()||!Cr())return;var i=Cr().retrieveAxisBreakPairs(o.scale.getTicks({breakTicks:"only_break"}),function(M){return M.break},!1);if(!i.length)return;var s=n.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),c=s.get("zigzagMaxSpan");u=Math.max(2,u||0),c=Math.max(u,c||0);var f=s.get("expandOnClick"),d=s.get("zigzagZ"),v=s.getModel("itemStyle"),h=v.getItemStyle(),p=h.stroke,g=h.lineWidth,m=h.lineDash,y=h.fill,b=new At({ignoreModelZ:!0}),w=o.isHorizontal(),S=BN(t).visualList||(BN(t).visualList=[]);J5e(S);for(var x=function(M){var k=i[M][0].break.parsedBreak,E=[];E[0]=o.toGlobalCoord(o.dataToCoord(k.vmin,!0)),E[1]=o.toGlobalCoord(o.dataToCoord(k.vmax,!0)),E[1]<E[0]&&E.reverse();var A=Z5e(S,k);A.shouldRemove=!1;var I=new At;T(A.zigzagRandomList,I,E[0],E[1],w,k),f&&I.on("click",function(){var O={type:t4,breaks:[{start:k.breakOption.start,end:k.breakOption.end}]};O[o.dim+"AxisIndex"]=n.componentIndex,a.dispatchAction(O)}),I.silent=!f,b.add(I)},C=0;C<i.length;C++)x(C);e.add(b),Q5e(S);function T(M,k,E,A,I,O){var z={stroke:p,lineWidth:g,lineDash:m,fill:"none"},$=I?0:1,P=1-$,L=r[Gt[P]]+r[Tr[P]];function V(J){var ae=[],fe=[];ae[$]=fe[$]=J,ae[P]=r[Gt[P]],fe[P]=L;var ve={x1:ae[0],y1:ae[1],x2:fe[0],y2:fe[1]};return Nw(ve,ve,{lineWidth:1}),ae[0]=ve.x1,ae[1]=ve.y1,ae[$]}E=V(E),A=V(A);for(var B=[],F=[],U=!0,G=r[Gt[P]],Y=0;;Y++){var X=G===r[Gt[P]],te=G>=L;te&&(G=L);var oe=[],re=[];oe[$]=E,re[$]=A,!X&&!te&&(oe[$]+=U?-l:l,re[$]-=U?l:-l),oe[P]=G,re[P]=G,B.push(oe),F.push(re);var ce=void 0;if(Y<M.length?ce=M[Y]:(ce=Math.random(),M.push(ce)),G+=ce*(c-u)+u,U=!U,te)break}var ie=Cr().serializeAxisBreakIdentifier(O.breakOption);if(k.add(new La({anid:"break_a_"+ie,shape:{points:B},style:z,z:d})),O.gapReal!==0){k.add(new La({anid:"break_b_"+ie,shape:{points:F},style:z,z:d}));var Z=F.slice();Z.reverse();var se=B.concat(Z);k.add(new Ya({anid:"break_c_"+ie,shape:{points:se},style:{fill:y,opacity:h.opacity},z:d}))}}}function tke(e,t,n,r){var a=e.axis,o=n.transform;Ia(r.style);var i=a.getExtent();a.inverse&&(i=i.slice(),i.reverse());var s=Cr().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:"only_break"}),function(g){return g.break},!1),l=$e(s,function(g){var m=g[0].break.parsedBreak,y=[a.dataToCoord(m.vmin,!0),a.dataToCoord(m.vmax,!0)];return y[0]>y[1]&&y.reverse(),{coordPair:y,brkId:Cr().serializeAxisBreakIdentifier(m.breakOption)}});l.sort(function(g,m){return g.coordPair[0]-m.coordPair[0]});for(var u=i[0],c=null,f=0;f<l.length;f++){var d=l[f],v=Math.max(d.coordPair[0],i[0]),h=Math.min(d.coordPair[1],i[1]);u<=v&&p(u,v,c,d),u=h,c=d}u<=i[1]&&p(u,i[1],c,null);function p(g,m,y,b){function w(E,A){o&&(_r(E,E,o),_r(A,A,o))}function S(E,A){var I={x1:E[0],y1:E[1],x2:A[0],y2:A[1]};Nw(I,I,r.style),E[0]=I.x1,E[1]=I.y1,A[0]=I.x2,A[1]=I.y2}var x=[g,0],C=[m,0],T=[g,5],M=[m,5];w(x,T),S(x,T),w(C,M),S(C,M),S(x,C);var k=new Rr(Pe({shape:{x1:x[0],y1:x[1],x2:C[0],y2:C[1]}},r));t.add(k),k.anid="breakLine_"+(y?y.brkId:"\0")+"_\0_"+(b?b.brkId:"\0")}}function nke(e,t,n){if(_d(n,function(y){return!y}))return;var r=new Dt;if(!Qw(n[0],n[1],r,{direction:-(e?t+Math.PI:t),touchThreshold:0,bidirectional:!1}))return;var a=Jr();yc(a,a,-t);var o=$e(n,function(y){return y.transform?As(Jr(),a,y.transform):a});function i(y){var b=n[0].localRect,w=new Dt(b[Tr[y]]*o[0][0],b[Tr[y]]*o[0][1]);return Math.abs(w.y)<1e-5}var s=.5;if(i(0)||i(1)){var l=$e(n,function(y,b){var w=y.localRect.clone();return w.applyTransform(o[b]),w}),u=new Dt;u.copy(n[0].label).add(n[1].label).scale(.5),u.transform(a);var c=r.clone().transform(a),f=l[0].x+l[1].x+(c.x>=0?l[0].width:l[1].width),d=(f+c.x)/2-u.x,v=Math.min(d,d-c.x),h=Math.max(d,d-c.x),p=h<0?h:v>0?v:0;s=(d-p)/c.x}var g=new Dt,m=new Dt;Dt.scale(g,r,-s),Dt.scale(m,r,1-s),qx(n[0],g),qx(n[1],m)}function rke(e,t){var n={breaks:[]};return j(t.breaks,function(r){if(r){var a=_d(e.get("breaks",!0),function(s){return Cr().identifyAxisBreak(s,r)});if(a){var o=t.type,i={isExpanded:!!a.isExpanded};a.isExpanded=o===t4?!0:o===rj?!1:o===aj?!a.isExpanded:a.isExpanded,n.breaks.push({start:a.start,end:a.end,isExpanded:!!a.isExpanded,old:i})}}}),n}function ake(){dme({adjustBreakLabelPair:nke,buildAxisBreakLine:tke,rectCoordBuildBreakAxis:eke,updateModelAxisBreak:rke})}function oke(e){_me(e),X5e(),ake()}function ike(){Fme(ske)}function ske(e,t){j(e,function(n){if(!n.model.get(["axisLabel","inside"])){var r=lke(n);if(r){var a=n.isHorizontal()?"height":"width",o=n.model.get(["axisLabel","margin"]);t[a]-=r[a]+o,n.position==="top"?t.y+=r.height+o:n.position==="left"&&(t.x+=r.width+o)}}})}function lke(e){var t=e.model,n=e.scale;if(!t.get(["axisLabel","show"])||n.isBlank())return;var r,a,o=n.getExtent();n instanceof Dg?a=n.count():(r=n.getTicks(),a=r.length);var i=e.getLabelModel(),s=ip(e),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;c<a;c+=u){var f=r?r[c]:{value:o[0]+c},d=s(f,c),v=i.getTextRect(d),h=p(v,i.get("rotate")||0);l?l.union(h):l=h}return l;function p(g,m){var y=m*Math.PI/180,b=g.width,w=g.height,S=b*Math.abs(Math.cos(y))+Math.abs(w*Math.sin(y)),x=b*Math.abs(Math.sin(y))+Math.abs(w*Math.cos(y)),C=new Ot(g.x,g.y,S,x);return C}}Qt([X0e]);Qt([W0e]);Qt([_ge,Vge,Zge,l1e,T1e,Sye,Jye,V2e,fbe,wbe,Ibe,zbe,W_e,pwe,Awe,Ywe,t4e,b4e,E4e,H4e,X4e,u3e,q3e]);Qt(y6e);Qt(Z6e);Qt(Lj);Qt(vSe);Qt(yY);Qt(_Se);Qt(WSe);Qt(JSe);Qt(J8e);Qt(wxe);Qt(Um);Qt(zxe);Qt(Wxe);Qt(aCe);Qt(pCe);Qt(xCe);Qt(LCe);Qt(UCe);Qt(hTe);Qt(kq);Qt(Mq);Qt(FTe);Qt(Dq);Qt(Pq);Qt(UTe);Qt(XTe);Qt(u5e);Qt(d5e);Qt($5e);Qt(s0e);Qt(oke);Qt(ike);Qt(u1e);const uke="2.13.0",VN=Symbol("INSTALLED_KEY"),Fq=Symbol(),Z0="el",cke="is-",ef=(e,t,n,r,a)=>{let o=`${e}-${t}`;return n&&(o+=`-${n}`),r&&(o+=`__${r}`),a&&(o+=`--${a}`),o},Hq=Symbol("namespaceContextKey"),tA=e=>{const t=e||(bt()?Ue(Hq,K(Z0)):K(Z0));return R(()=>_(t)||Z0)},we=(e,t)=>{const n=tA(t);return{namespace:n,b:(p="")=>ef(n.value,e,p,"",""),e:p=>p?ef(n.value,e,"",p,""):"",m:p=>p?ef(n.value,e,"","",p):"",be:(p,g)=>p&&g?ef(n.value,e,p,g,""):"",em:(p,g)=>p&&g?ef(n.value,e,"",p,g):"",bm:(p,g)=>p&&g?ef(n.value,e,p,"",g):"",bem:(p,g,m)=>p&&g&&m?ef(n.value,e,p,g,m):"",is:(p,...g)=>{const m=g.length>=1?g[0]:!0;return p&&m?`${cke}${p}`:""},cssVar:p=>{const g={};for(const m in p)p[m]&&(g[`--${n.value}-${m}`]=p[m]);return g},cssVarName:p=>`--${n.value}-${p}`,cssVarBlock:p=>{const g={};for(const m in p)p[m]&&(g[`--${n.value}-${e}-${m}`]=p[m]);return g},cssVarBlockName:p=>`--${n.value}-${e}-${p}`}};var fke=typeof global=="object"&&global&&global.Object===Object&&global;const Wq=fke;var dke=typeof self=="object"&&self&&self.Object===Object&&self,vke=Wq||dke||Function("return this")();const Ui=vke;var hke=Ui.Symbol;const ii=hke;var Gq=Object.prototype,pke=Gq.hasOwnProperty,gke=Gq.toString,a0=ii?ii.toStringTag:void 0;function mke(e){var t=pke.call(e,a0),n=e[a0];try{e[a0]=void 0;var r=!0}catch{}var a=gke.call(e);return r&&(t?e[a0]=n:delete e[a0]),a}var yke=Object.prototype,bke=yke.toString;function _ke(e){return bke.call(e)}var wke="[object Null]",Ske="[object Undefined]",$N=ii?ii.toStringTag:void 0;function Pd(e){return e==null?e===void 0?Ske:wke:$N&&$N in Object(e)?mke(e):_ke(e)}function js(e){return e!=null&&typeof e=="object"}var xke="[object Symbol]";function c4(e){return typeof e=="symbol"||js(e)&&Pd(e)==xke}function nA(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var Cke=Array.isArray;const qa=Cke;var Tke=1/0,zN=ii?ii.prototype:void 0,FN=zN?zN.toString:void 0;function Uq(e){if(typeof e=="string")return e;if(qa(e))return nA(e,Uq)+"";if(c4(e))return FN?FN.call(e):"";var t=e+"";return t=="0"&&1/e==-Tke?"-0":t}var kke=/\s/;function Mke(e){for(var t=e.length;t--&&kke.test(e.charAt(t)););return t}var Ake=/^\s+/;function Eke(e){return e&&e.slice(0,Mke(e)+1).replace(Ake,"")}function Xa(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var HN=0/0,Ike=/^[-+]0x[0-9a-f]+$/i,Lke=/^0b[01]+$/i,Dke=/^0o[0-7]+$/i,Pke=parseInt;function Zv(e){if(typeof e=="number")return e;if(c4(e))return HN;if(Xa(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Xa(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Eke(e);var n=Lke.test(e);return n||Dke.test(e)?Pke(e.slice(2),n?2:8):Ike.test(e)?HN:+e}var WN=1/0,Rke=17976931348623157e292;function Oke(e){if(!e)return e===0?e:0;if(e=Zv(e),e===WN||e===-WN){var t=e<0?-1:1;return t*Rke}return e===e?e:0}function Nke(e){var t=Oke(e),n=t%1;return t===t?n?t-n:t:0}function rA(e){return e}var Bke="[object AsyncFunction]",Vke="[object Function]",$ke="[object GeneratorFunction]",zke="[object Proxy]";function aA(e){if(!Xa(e))return!1;var t=Pd(e);return t==Vke||t==$ke||t==Bke||t==zke}var Fke=Ui["__core-js_shared__"];const NS=Fke;var GN=function(){var e=/[^.]+$/.exec(NS&&NS.keys&&NS.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Hke(e){return!!GN&&GN in e}var Wke=Function.prototype,Gke=Wke.toString;function Rd(e){if(e!=null){try{return Gke.call(e)}catch{}try{return e+""}catch{}}return""}var Uke=/[\\^$.*+?()[\]{}|]/g,Kke=/^\[object .+?Constructor\]$/,jke=Function.prototype,Yke=Object.prototype,qke=jke.toString,Xke=Yke.hasOwnProperty,Zke=RegExp("^"+qke.call(Xke).replace(Uke,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Jke(e){if(!Xa(e)||Hke(e))return!1;var t=aA(e)?Zke:Kke;return t.test(Rd(e))}function Qke(e,t){return e==null?void 0:e[t]}function Od(e,t){var n=Qke(e,t);return Jke(n)?n:void 0}var eMe=Od(Ui,"WeakMap");const jC=eMe;var UN=Object.create,tMe=function(){function e(){}return function(t){if(!Xa(t))return{};if(UN)return UN(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const nMe=tMe;function rMe(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 aMe(){}function Kq(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var oMe=800,iMe=16,sMe=Date.now;function lMe(e){var t=0,n=0;return function(){var r=sMe(),a=iMe-(r-n);if(n=r,a>0){if(++t>=oMe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function uMe(e){return function(){return e}}var cMe=function(){try{var e=Od(Object,"defineProperty");return e({},"",{}),e}catch{}}();const E_=cMe;var fMe=E_?function(e,t){return E_(e,"toString",{configurable:!0,enumerable:!1,value:uMe(t),writable:!0})}:rA;const dMe=fMe;var vMe=lMe(dMe);const jq=vMe;function hMe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function Yq(e,t,n,r){for(var a=e.length,o=n+(r?1:-1);r?o--:++o<a;)if(t(e[o],o,e))return o;return-1}function pMe(e){return e!==e}function gMe(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}function mMe(e,t,n){return t===t?gMe(e,t,n):Yq(e,pMe,n)}function yMe(e,t){var n=e==null?0:e.length;return!!n&&mMe(e,t,0)>-1}var bMe=9007199254740991,_Me=/^(?:0|[1-9]\d*)$/;function f4(e,t){var n=typeof e;return t=t??bMe,!!t&&(n=="number"||n!="symbol"&&_Me.test(e))&&e>-1&&e%1==0&&e<t}function oA(e,t,n){t=="__proto__"&&E_?E_(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Km(e,t){return e===t||e!==e&&t!==t}var wMe=Object.prototype,SMe=wMe.hasOwnProperty;function iA(e,t,n){var r=e[t];(!(SMe.call(e,t)&&Km(r,n))||n===void 0&&!(t in e))&&oA(e,t,n)}function cp(e,t,n,r){var a=!n;n||(n={});for(var o=-1,i=t.length;++o<i;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),a?oA(n,s,l):iA(n,s,l)}return n}var KN=Math.max;function qq(e,t,n){return t=KN(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,o=KN(r.length-t,0),i=Array(o);++a<o;)i[a]=r[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=r[a];return s[t]=n(i),rMe(e,this,s)}}function Xq(e,t){return jq(qq(e,t,rA),e+"")}var xMe=9007199254740991;function sA(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=xMe}function fp(e){return e!=null&&sA(e.length)&&!aA(e)}function CMe(e,t,n){if(!Xa(n))return!1;var r=typeof t;return(r=="number"?fp(n)&&f4(t,n.length):r=="string"&&t in n)?Km(n[t],e):!1}function TMe(e){return Xq(function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,i=a>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,i&&CMe(n[0],n[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++r<a;){var s=n[r];s&&e(t,s,r,o)}return t})}var kMe=Object.prototype;function lA(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||kMe;return e===n}function MMe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var AMe="[object Arguments]";function jN(e){return js(e)&&Pd(e)==AMe}var Zq=Object.prototype,EMe=Zq.hasOwnProperty,IMe=Zq.propertyIsEnumerable,LMe=jN(function(){return arguments}())?jN:function(e){return js(e)&&EMe.call(e,"callee")&&!IMe.call(e,"callee")};const Ug=LMe;function DMe(){return!1}var Jq=typeof To=="object"&&To&&!To.nodeType&&To,YN=Jq&&typeof ko=="object"&&ko&&!ko.nodeType&&ko,PMe=YN&&YN.exports===Jq,qN=PMe?Ui.Buffer:void 0,RMe=qN?qN.isBuffer:void 0,OMe=RMe||DMe;const Kg=OMe;var NMe="[object Arguments]",BMe="[object Array]",VMe="[object Boolean]",$Me="[object Date]",zMe="[object Error]",FMe="[object Function]",HMe="[object Map]",WMe="[object Number]",GMe="[object Object]",UMe="[object RegExp]",KMe="[object Set]",jMe="[object String]",YMe="[object WeakMap]",qMe="[object ArrayBuffer]",XMe="[object DataView]",ZMe="[object Float32Array]",JMe="[object Float64Array]",QMe="[object Int8Array]",eAe="[object Int16Array]",tAe="[object Int32Array]",nAe="[object Uint8Array]",rAe="[object Uint8ClampedArray]",aAe="[object Uint16Array]",oAe="[object Uint32Array]",ir={};ir[ZMe]=ir[JMe]=ir[QMe]=ir[eAe]=ir[tAe]=ir[nAe]=ir[rAe]=ir[aAe]=ir[oAe]=!0;ir[NMe]=ir[BMe]=ir[qMe]=ir[VMe]=ir[XMe]=ir[$Me]=ir[zMe]=ir[FMe]=ir[HMe]=ir[WMe]=ir[GMe]=ir[UMe]=ir[KMe]=ir[jMe]=ir[YMe]=!1;function iAe(e){return js(e)&&sA(e.length)&&!!ir[Pd(e)]}function uA(e){return function(t){return e(t)}}var Qq=typeof To=="object"&&To&&!To.nodeType&&To,J0=Qq&&typeof ko=="object"&&ko&&!ko.nodeType&&ko,sAe=J0&&J0.exports===Qq,BS=sAe&&Wq.process,lAe=function(){try{var e=J0&&J0.require&&J0.require("util").types;return e||BS&&BS.binding&&BS.binding("util")}catch{}}();const kh=lAe;var XN=kh&&kh.isTypedArray,uAe=XN?uA(XN):iAe;const cA=uAe;var cAe=Object.prototype,fAe=cAe.hasOwnProperty;function eX(e,t){var n=qa(e),r=!n&&Ug(e),a=!n&&!r&&Kg(e),o=!n&&!r&&!a&&cA(e),i=n||r||a||o,s=i?MMe(e.length,String):[],l=s.length;for(var u in e)(t||fAe.call(e,u))&&!(i&&(u=="length"||a&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||f4(u,l)))&&s.push(u);return s}function tX(e,t){return function(n){return e(t(n))}}var dAe=tX(Object.keys,Object);const vAe=dAe;var hAe=Object.prototype,pAe=hAe.hasOwnProperty;function gAe(e){if(!lA(e))return vAe(e);var t=[];for(var n in Object(e))pAe.call(e,n)&&n!="constructor"&&t.push(n);return t}function jm(e){return fp(e)?eX(e):gAe(e)}function mAe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var yAe=Object.prototype,bAe=yAe.hasOwnProperty;function _Ae(e){if(!Xa(e))return mAe(e);var t=lA(e),n=[];for(var r in e)r=="constructor"&&(t||!bAe.call(e,r))||n.push(r);return n}function Ym(e){return fp(e)?eX(e,!0):_Ae(e)}var wAe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,SAe=/^\w*$/;function fA(e,t){if(qa(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||c4(e)?!0:SAe.test(e)||!wAe.test(e)||t!=null&&e in Object(t)}var xAe=Od(Object,"create");const jg=xAe;function CAe(){this.__data__=jg?jg(null):{},this.size=0}function TAe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var kAe="__lodash_hash_undefined__",MAe=Object.prototype,AAe=MAe.hasOwnProperty;function EAe(e){var t=this.__data__;if(jg){var n=t[e];return n===kAe?void 0:n}return AAe.call(t,e)?t[e]:void 0}var IAe=Object.prototype,LAe=IAe.hasOwnProperty;function DAe(e){var t=this.__data__;return jg?t[e]!==void 0:LAe.call(t,e)}var PAe="__lodash_hash_undefined__";function RAe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=jg&&t===void 0?PAe:t,this}function cd(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])}}cd.prototype.clear=CAe;cd.prototype.delete=TAe;cd.prototype.get=EAe;cd.prototype.has=DAe;cd.prototype.set=RAe;function OAe(){this.__data__=[],this.size=0}function d4(e,t){for(var n=e.length;n--;)if(Km(e[n][0],t))return n;return-1}var NAe=Array.prototype,BAe=NAe.splice;function VAe(e){var t=this.__data__,n=d4(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():BAe.call(t,n,1),--this.size,!0}function $Ae(e){var t=this.__data__,n=d4(t,e);return n<0?void 0:t[n][1]}function zAe(e){return d4(this.__data__,e)>-1}function FAe(e,t){var n=this.__data__,r=d4(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function nu(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])}}nu.prototype.clear=OAe;nu.prototype.delete=VAe;nu.prototype.get=$Ae;nu.prototype.has=zAe;nu.prototype.set=FAe;var HAe=Od(Ui,"Map");const Yg=HAe;function WAe(){this.size=0,this.__data__={hash:new cd,map:new(Yg||nu),string:new cd}}function GAe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function v4(e,t){var n=e.__data__;return GAe(t)?n[typeof t=="string"?"string":"hash"]:n.map}function UAe(e){var t=v4(this,e).delete(e);return this.size-=t?1:0,t}function KAe(e){return v4(this,e).get(e)}function jAe(e){return v4(this,e).has(e)}function YAe(e,t){var n=v4(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function ru(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])}}ru.prototype.clear=WAe;ru.prototype.delete=UAe;ru.prototype.get=KAe;ru.prototype.has=jAe;ru.prototype.set=YAe;var qAe="Expected a function";function h4(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(qAe);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(h4.Cache||ru),n}h4.Cache=ru;var XAe=500;function ZAe(e){var t=h4(e,function(r){return n.size===XAe&&n.clear(),r}),n=t.cache;return t}var JAe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,QAe=/\\(\\)?/g,eEe=ZAe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(JAe,function(n,r,a,o){t.push(a?o.replace(QAe,"$1"):r||n)}),t});const tEe=eEe;function nEe(e){return e==null?"":Uq(e)}function dp(e,t){return qa(e)?e:fA(e,t)?[e]:tEe(nEe(e))}var rEe=1/0;function vp(e){if(typeof e=="string"||c4(e))return e;var t=e+"";return t=="0"&&1/e==-rEe?"-0":t}function p4(e,t){t=dp(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[vp(t[n++])];return n&&n==r?e:void 0}function ur(e,t,n){var r=e==null?void 0:p4(e,t);return r===void 0?n:r}function dA(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var ZN=ii?ii.isConcatSpreadable:void 0;function aEe(e){return qa(e)||Ug(e)||!!(ZN&&e&&e[ZN])}function qm(e,t,n,r,a){var o=-1,i=e.length;for(n||(n=aEe),a||(a=[]);++o<i;){var s=e[o];t>0&&n(s)?t>1?qm(s,t-1,n,r,a):dA(a,s):r||(a[a.length]=s)}return a}function nX(e){var t=e==null?0:e.length;return t?qm(e,1):[]}function rX(e){return jq(qq(e,void 0,nX),e+"")}var oEe=tX(Object.getPrototypeOf,Object);const vA=oEe;var iEe="[object Object]",sEe=Function.prototype,lEe=Object.prototype,aX=sEe.toString,uEe=lEe.hasOwnProperty,cEe=aX.call(Object);function oX(e){if(!js(e)||Pd(e)!=iEe)return!1;var t=vA(e);if(t===null)return!0;var n=uEe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&aX.call(n)==cEe}function fEe(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(a);++r<a;)o[r]=e[r+t];return o}function Hr(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]}function dEe(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}function g4(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=Zv(n),n=n===n?n:0),t!==void 0&&(t=Zv(t),t=t===t?t:0),dEe(Zv(e),t,n)}function vEe(){this.__data__=new nu,this.size=0}function hEe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function pEe(e){return this.__data__.get(e)}function gEe(e){return this.__data__.has(e)}var mEe=200;function yEe(e,t){var n=this.__data__;if(n instanceof nu){var r=n.__data__;if(!Yg||r.length<mEe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ru(r)}return n.set(e,t),this.size=n.size,this}function ki(e){var t=this.__data__=new nu(e);this.size=t.size}ki.prototype.clear=vEe;ki.prototype.delete=hEe;ki.prototype.get=pEe;ki.prototype.has=gEe;ki.prototype.set=yEe;function bEe(e,t){return e&&cp(t,jm(t),e)}function _Ee(e,t){return e&&cp(t,Ym(t),e)}var iX=typeof To=="object"&&To&&!To.nodeType&&To,JN=iX&&typeof ko=="object"&&ko&&!ko.nodeType&&ko,wEe=JN&&JN.exports===iX,QN=wEe?Ui.Buffer:void 0,eB=QN?QN.allocUnsafe:void 0;function sX(e,t){if(t)return e.slice();var n=e.length,r=eB?eB(n):new e.constructor(n);return e.copy(r),r}function SEe(e,t){for(var n=-1,r=e==null?0:e.length,a=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o}function lX(){return[]}var xEe=Object.prototype,CEe=xEe.propertyIsEnumerable,tB=Object.getOwnPropertySymbols,TEe=tB?function(e){return e==null?[]:(e=Object(e),SEe(tB(e),function(t){return CEe.call(e,t)}))}:lX;const hA=TEe;function kEe(e,t){return cp(e,hA(e),t)}var MEe=Object.getOwnPropertySymbols,AEe=MEe?function(e){for(var t=[];e;)dA(t,hA(e)),e=vA(e);return t}:lX;const uX=AEe;function EEe(e,t){return cp(e,uX(e),t)}function cX(e,t,n){var r=t(e);return qa(e)?r:dA(r,n(e))}function YC(e){return cX(e,jm,hA)}function fX(e){return cX(e,Ym,uX)}var IEe=Od(Ui,"DataView");const qC=IEe;var LEe=Od(Ui,"Promise");const XC=LEe;var DEe=Od(Ui,"Set");const Jv=DEe;var nB="[object Map]",PEe="[object Object]",rB="[object Promise]",aB="[object Set]",oB="[object WeakMap]",iB="[object DataView]",REe=Rd(qC),OEe=Rd(Yg),NEe=Rd(XC),BEe=Rd(Jv),VEe=Rd(jC),lf=Pd;(qC&&lf(new qC(new ArrayBuffer(1)))!=iB||Yg&&lf(new Yg)!=nB||XC&&lf(XC.resolve())!=rB||Jv&&lf(new Jv)!=aB||jC&&lf(new jC)!=oB)&&(lf=function(e){var t=Pd(e),n=t==PEe?e.constructor:void 0,r=n?Rd(n):"";if(r)switch(r){case REe:return iB;case OEe:return nB;case NEe:return rB;case BEe:return aB;case VEe:return oB}return t});const qg=lf;var $Ee=Object.prototype,zEe=$Ee.hasOwnProperty;function FEe(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&zEe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var HEe=Ui.Uint8Array;const I_=HEe;function pA(e){var t=new e.constructor(e.byteLength);return new I_(t).set(new I_(e)),t}function WEe(e,t){var n=t?pA(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var GEe=/\w*$/;function UEe(e){var t=new e.constructor(e.source,GEe.exec(e));return t.lastIndex=e.lastIndex,t}var sB=ii?ii.prototype:void 0,lB=sB?sB.valueOf:void 0;function KEe(e){return lB?Object(lB.call(e)):{}}function dX(e,t){var n=t?pA(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var jEe="[object Boolean]",YEe="[object Date]",qEe="[object Map]",XEe="[object Number]",ZEe="[object RegExp]",JEe="[object Set]",QEe="[object String]",e9e="[object Symbol]",t9e="[object ArrayBuffer]",n9e="[object DataView]",r9e="[object Float32Array]",a9e="[object Float64Array]",o9e="[object Int8Array]",i9e="[object Int16Array]",s9e="[object Int32Array]",l9e="[object Uint8Array]",u9e="[object Uint8ClampedArray]",c9e="[object Uint16Array]",f9e="[object Uint32Array]";function d9e(e,t,n){var r=e.constructor;switch(t){case t9e:return pA(e);case jEe:case YEe:return new r(+e);case n9e:return WEe(e,n);case r9e:case a9e:case o9e:case i9e:case s9e:case l9e:case u9e:case c9e:case f9e:return dX(e,n);case qEe:return new r;case XEe:case QEe:return new r(e);case ZEe:return UEe(e);case JEe:return new r;case e9e:return KEe(e)}}function vX(e){return typeof e.constructor=="function"&&!lA(e)?nMe(vA(e)):{}}var v9e="[object Map]";function h9e(e){return js(e)&&qg(e)==v9e}var uB=kh&&kh.isMap,p9e=uB?uA(uB):h9e;const g9e=p9e;var m9e="[object Set]";function y9e(e){return js(e)&&qg(e)==m9e}var cB=kh&&kh.isSet,b9e=cB?uA(cB):y9e;const _9e=b9e;var w9e=1,S9e=2,x9e=4,hX="[object Arguments]",C9e="[object Array]",T9e="[object Boolean]",k9e="[object Date]",M9e="[object Error]",pX="[object Function]",A9e="[object GeneratorFunction]",E9e="[object Map]",I9e="[object Number]",gX="[object Object]",L9e="[object RegExp]",D9e="[object Set]",P9e="[object String]",R9e="[object Symbol]",O9e="[object WeakMap]",N9e="[object ArrayBuffer]",B9e="[object DataView]",V9e="[object Float32Array]",$9e="[object Float64Array]",z9e="[object Int8Array]",F9e="[object Int16Array]",H9e="[object Int32Array]",W9e="[object Uint8Array]",G9e="[object Uint8ClampedArray]",U9e="[object Uint16Array]",K9e="[object Uint32Array]",rr={};rr[hX]=rr[C9e]=rr[N9e]=rr[B9e]=rr[T9e]=rr[k9e]=rr[V9e]=rr[$9e]=rr[z9e]=rr[F9e]=rr[H9e]=rr[E9e]=rr[I9e]=rr[gX]=rr[L9e]=rr[D9e]=rr[P9e]=rr[R9e]=rr[W9e]=rr[G9e]=rr[U9e]=rr[K9e]=!0;rr[M9e]=rr[pX]=rr[O9e]=!1;function Qv(e,t,n,r,a,o){var i,s=t&w9e,l=t&S9e,u=t&x9e;if(n&&(i=a?n(e,r,a,o):n(e)),i!==void 0)return i;if(!Xa(e))return e;var c=qa(e);if(c){if(i=FEe(e),!s)return Kq(e,i)}else{var f=qg(e),d=f==pX||f==A9e;if(Kg(e))return sX(e,s);if(f==gX||f==hX||d&&!a){if(i=l||d?{}:vX(e),!s)return l?EEe(e,_Ee(i,e)):kEe(e,bEe(i,e))}else{if(!rr[f])return a?e:{};i=d9e(e,f,s)}}o||(o=new ki);var v=o.get(e);if(v)return v;o.set(e,i),_9e(e)?e.forEach(function(g){i.add(Qv(g,t,n,g,e,o))}):g9e(e)&&e.forEach(function(g,m){i.set(m,Qv(g,t,n,m,e,o))});var h=u?l?fX:YC:l?Ym:jm,p=c?void 0:h(e);return hMe(p||e,function(g,m){p&&(m=g,g=e[m]),iA(i,m,Qv(g,t,n,m,e,o))}),i}var j9e=4;function fB(e){return Qv(e,j9e)}var Y9e=1,q9e=4;function L_(e){return Qv(e,Y9e|q9e)}var X9e="__lodash_hash_undefined__";function Z9e(e){return this.__data__.set(e,X9e),this}function J9e(e){return this.__data__.has(e)}function Xg(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ru;++t<n;)this.add(e[t])}Xg.prototype.add=Xg.prototype.push=Z9e;Xg.prototype.has=J9e;function Q9e(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 mX(e,t){return e.has(t)}var eIe=1,tIe=2;function yX(e,t,n,r,a,o){var i=n&eIe,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,v=n&tIe?new Xg:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var h=e[f],p=t[f];if(r)var g=i?r(p,h,f,t,e,o):r(h,p,f,e,t,o);if(g!==void 0){if(g)continue;d=!1;break}if(v){if(!Q9e(t,function(m,y){if(!mX(v,y)&&(h===m||a(h,m,n,r,o)))return v.push(y)})){d=!1;break}}else if(!(h===p||a(h,p,n,r,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function nIe(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}function gA(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var rIe=1,aIe=2,oIe="[object Boolean]",iIe="[object Date]",sIe="[object Error]",lIe="[object Map]",uIe="[object Number]",cIe="[object RegExp]",fIe="[object Set]",dIe="[object String]",vIe="[object Symbol]",hIe="[object ArrayBuffer]",pIe="[object DataView]",dB=ii?ii.prototype:void 0,VS=dB?dB.valueOf:void 0;function gIe(e,t,n,r,a,o,i){switch(n){case pIe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case hIe:return!(e.byteLength!=t.byteLength||!o(new I_(e),new I_(t)));case oIe:case iIe:case uIe:return Km(+e,+t);case sIe:return e.name==t.name&&e.message==t.message;case cIe:case dIe:return e==t+"";case lIe:var s=nIe;case fIe:var l=r&rIe;if(s||(s=gA),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;r|=aIe,i.set(e,t);var c=yX(s(e),s(t),r,a,o,i);return i.delete(e),c;case vIe:if(VS)return VS.call(e)==VS.call(t)}return!1}var mIe=1,yIe=Object.prototype,bIe=yIe.hasOwnProperty;function _Ie(e,t,n,r,a,o){var i=n&mIe,s=YC(e),l=s.length,u=YC(t),c=u.length;if(l!=c&&!i)return!1;for(var f=l;f--;){var d=s[f];if(!(i?d in t:bIe.call(t,d)))return!1}var v=o.get(e),h=o.get(t);if(v&&h)return v==t&&h==e;var p=!0;o.set(e,t),o.set(t,e);for(var g=i;++f<l;){d=s[f];var m=e[d],y=t[d];if(r)var b=i?r(y,m,d,t,e,o):r(m,y,d,e,t,o);if(!(b===void 0?m===y||a(m,y,n,r,o):b)){p=!1;break}g||(g=d=="constructor")}if(p&&!g){var w=e.constructor,S=t.constructor;w!=S&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof S=="function"&&S instanceof S)&&(p=!1)}return o.delete(e),o.delete(t),p}var wIe=1,vB="[object Arguments]",hB="[object Array]",Xy="[object Object]",SIe=Object.prototype,pB=SIe.hasOwnProperty;function xIe(e,t,n,r,a,o){var i=qa(e),s=qa(t),l=i?hB:qg(e),u=s?hB:qg(t);l=l==vB?Xy:l,u=u==vB?Xy:u;var c=l==Xy,f=u==Xy,d=l==u;if(d&&Kg(e)){if(!Kg(t))return!1;i=!0,c=!1}if(d&&!c)return o||(o=new ki),i||cA(e)?yX(e,t,n,r,a,o):gIe(e,t,l,n,r,a,o);if(!(n&wIe)){var v=c&&pB.call(e,"__wrapped__"),h=f&&pB.call(t,"__wrapped__");if(v||h){var p=v?e.value():e,g=h?t.value():t;return o||(o=new ki),a(p,g,n,r,o)}}return d?(o||(o=new ki),_Ie(e,t,n,r,a,o)):!1}function m4(e,t,n,r,a){return e===t?!0:e==null||t==null||!js(e)&&!js(t)?e!==e&&t!==t:xIe(e,t,n,r,m4,a)}var CIe=1,TIe=2;function kIe(e,t,n,r){var a=n.length,o=a,i=!r;if(e==null)return!o;for(e=Object(e);a--;){var s=n[a];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<o;){s=n[a];var l=s[0],u=e[l],c=s[1];if(i&&s[2]){if(u===void 0&&!(l in e))return!1}else{var f=new ki;if(r)var d=r(u,c,l,e,t,f);if(!(d===void 0?m4(c,u,CIe|TIe,r,f):d))return!1}}return!0}function bX(e){return e===e&&!Xa(e)}function MIe(e){for(var t=jm(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,bX(a)]}return t}function _X(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function AIe(e){var t=MIe(e);return t.length==1&&t[0][2]?_X(t[0][0],t[0][1]):function(n){return n===e||kIe(n,e,t)}}function EIe(e,t){return e!=null&&t in Object(e)}function IIe(e,t,n){t=dp(t,e);for(var r=-1,a=t.length,o=!1;++r<a;){var i=vp(t[r]);if(!(o=e!=null&&n(e,i)))break;e=e[i]}return o||++r!=a?o:(a=e==null?0:e.length,!!a&&sA(a)&&f4(i,a)&&(qa(e)||Ug(e)))}function wX(e,t){return e!=null&&IIe(e,t,EIe)}var LIe=1,DIe=2;function PIe(e,t){return fA(e)&&bX(t)?_X(vp(e),t):function(n){var r=ur(n,e);return r===void 0&&r===t?wX(n,e):m4(t,r,LIe|DIe)}}function RIe(e){return function(t){return t==null?void 0:t[e]}}function OIe(e){return function(t){return p4(t,e)}}function NIe(e){return fA(e)?RIe(vp(e)):OIe(e)}function SX(e){return typeof e=="function"?e:e==null?rA:typeof e=="object"?qa(e)?PIe(e[0],e[1]):AIe(e):NIe(e)}function BIe(e){return function(t,n,r){for(var a=-1,o=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++a];if(n(o[l],l,o)===!1)break}return t}}var VIe=BIe();const xX=VIe;function $Ie(e,t){return e&&xX(e,t,jm)}function zIe(e,t){return function(n,r){if(n==null)return n;if(!fp(n))return e(n,r);for(var a=n.length,o=t?a:-1,i=Object(n);(t?o--:++o<a)&&r(i[o],o,i)!==!1;);return n}}var FIe=zIe($Ie);const HIe=FIe;var WIe=function(){return Ui.Date.now()};const $S=WIe;var GIe="Expected a function",UIe=Math.max,KIe=Math.min;function Ys(e,t,n){var r,a,o,i,s,l,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(GIe);t=Zv(t)||0,Xa(n)&&(c=!!n.leading,f="maxWait"in n,o=f?UIe(Zv(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d);function v(x){var C=r,T=a;return r=a=void 0,u=x,i=e.apply(T,C),i}function h(x){return u=x,s=setTimeout(m,t),c?v(x):i}function p(x){var C=x-l,T=x-u,M=t-C;return f?KIe(M,o-T):M}function g(x){var C=x-l,T=x-u;return l===void 0||C>=t||C<0||f&&T>=o}function m(){var x=$S();if(g(x))return y(x);s=setTimeout(m,p(x))}function y(x){return s=void 0,d&&r?v(x):(r=a=void 0,i)}function b(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function w(){return s===void 0?i:y($S())}function S(){var x=$S(),C=g(x);if(r=arguments,a=this,l=x,C){if(s===void 0)return h(l);if(f)return clearTimeout(s),s=setTimeout(m,t),v(l)}return s===void 0&&(s=setTimeout(m,t)),i}return S.cancel=b,S.flush=w,S}function ZC(e,t,n){(n!==void 0&&!Km(e[t],n)||n===void 0&&!(t in e))&&oA(e,t,n)}function CX(e){return js(e)&&fp(e)}function JC(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function jIe(e){return cp(e,Ym(e))}function YIe(e,t,n,r,a,o,i){var s=JC(e,n),l=JC(t,n),u=i.get(l);if(u){ZC(e,n,u);return}var c=o?o(s,l,n+"",e,t,i):void 0,f=c===void 0;if(f){var d=qa(l),v=!d&&Kg(l),h=!d&&!v&&cA(l);c=l,d||v||h?qa(s)?c=s:CX(s)?c=Kq(s):v?(f=!1,c=sX(l,!0)):h?(f=!1,c=dX(l,!0)):c=[]:oX(l)||Ug(l)?(c=s,Ug(s)?c=jIe(s):(!Xa(s)||aA(s))&&(c=vX(l))):f=!1}f&&(i.set(l,c),a(c,l,r,o,i),i.delete(l)),ZC(e,n,c)}function TX(e,t,n,r,a){e!==t&&xX(t,function(o,i){if(a||(a=new ki),Xa(o))YIe(e,t,i,n,TX,r,a);else{var s=r?r(JC(e,i),o,i+"",e,t,a):void 0;s===void 0&&(s=o),ZC(e,i,s)}},Ym)}function qIe(e,t,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}function XIe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var ZIe=Math.max,JIe=Math.min;function kX(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=r-1;return n!==void 0&&(a=Nke(n),a=n<0?ZIe(r+a,0):JIe(a,r-1)),Yq(e,SX(t),a,!0)}function QIe(e,t){var n=-1,r=fp(e)?Array(e.length):[];return HIe(e,function(a,o,i){r[++n]=t(a,o,i)}),r}function eLe(e,t){var n=qa(e)?nA:QIe;return n(e,SX(t))}function MX(e,t){return qm(eLe(e,t),1)}var tLe=1/0;function nLe(e){var t=e==null?0:e.length;return t?qm(e,tLe):[]}function Zg(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var a=e[t];r[a[0]]=a[1]}return r}function rLe(e,t){return t.length<2?e:p4(e,fEe(t,0,-1))}function Yn(e,t){return m4(e,t)}function sr(e){return e==null}function Xm(e){return e===null}function aLe(e){return e===void 0}var oLe=TMe(function(e,t,n){TX(e,t,n)});const AX=oLe;var iLe=Object.prototype,sLe=iLe.hasOwnProperty;function lLe(e,t){t=dp(t,e);var n=-1,r=t.length;if(!r)return!0;for(var a=e==null||typeof e!="object"&&typeof e!="function";++n<r;){var o=t[n];if(typeof o=="string"){if(o==="__proto__"&&!sLe.call(e,"__proto__"))return!1;if(o==="constructor"&&n+1<r&&typeof t[n+1]=="string"&&t[n+1]==="prototype"){if(a&&n===0)continue;return!1}}}var i=rLe(e,t);return i==null||delete i[vp(XIe(t))]}function uLe(e){return oX(e)?void 0:e}var cLe=1,fLe=2,dLe=4,vLe=rX(function(e,t){var n={};if(e==null)return n;var r=!1;t=nA(t,function(o){return o=dp(o,e),r||(r=o.length>1),o}),cp(e,fX(e),n),r&&(n=Qv(n,cLe|fLe|dLe,uLe));for(var a=t.length;a--;)lLe(n,t[a]);return n});const Zm=vLe;function EX(e,t,n,r){if(!Xa(e))return e;t=dp(t,e);for(var a=-1,o=t.length,i=o-1,s=e;s!=null&&++a<o;){var l=vp(t[a]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(a!=i){var c=s[l];u=r?r(c,l,s):void 0,u===void 0&&(u=Xa(c)?c:f4(t[a+1])?[]:{})}iA(s,l,u),s=s[l]}return e}function hLe(e,t,n){for(var r=-1,a=t.length,o={};++r<a;){var i=t[r],s=p4(e,i);n(s,i)&&EX(o,dp(i,e),s)}return o}function pLe(e,t){return hLe(e,t,function(n,r){return wX(e,r)})}var gLe=rX(function(e,t){return e==null?{}:pLe(e,t)});const Kl=gLe;function mLe(e,t,n){return e==null?e:EX(e,t,n)}var yLe="Expected a function";function Hu(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(yLe);return Xa(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Ys(e,t,{leading:r,maxWait:t,trailing:a})}var bLe=1/0,_Le=Jv&&1/gA(new Jv([,-0]))[1]==bLe?function(e){return new Jv(e)}:aMe;const wLe=_Le;var SLe=200;function xLe(e,t,n){var r=-1,a=yMe,o=e.length,i=!0,s=[],l=s;if(n)i=!1,a=qIe;else if(o>=SLe){var u=t?null:wLe(e);if(u)return gA(u);i=!1,a=mX,l=new Xg}else l=t?[]:s;e:for(;++r<o;){var c=e[r],f=t?t(c):c;if(c=n||c!==0?c:0,i&&f===f){for(var d=l.length;d--;)if(l[d]===f)continue e;t&&l.push(f),s.push(c)}else a(l,f,n)||(l!==s&&l.push(f),s.push(c))}return s}var CLe=Xq(function(e){return xLe(qm(e,1,CX,!0))});const zS=CLe,Jt=e=>e===void 0,hn=e=>typeof e=="boolean",rt=e=>typeof e=="number",Ha=e=>!e&&e!==0||Ce(e)&&e.length===0||St(e)&&!Object.keys(e).length,oo=e=>typeof Element>"u"?!1:e instanceof Element,io=e=>sr(e),TLe=e=>Ge(e)?!Number.isNaN(Number(e)):!1,Jm=e=>e===window;function IX(e,t){var n;const r=Ln();return Ga(()=>{r.value=e()},{...t,flush:(n=t==null?void 0:t.flush)!=null?n:"sync"}),rc(r)}function Nd(e){return r5()?(a5(e),!0):!1}function xo(e){return typeof e=="function"?e():_(e)}function kLe(e){if(!Dn(e))return sn(e);const t=new Proxy({},{get(n,r,a){return _(Reflect.get(e.value,r,a))},set(n,r,a){return Dn(e.value[r])&&!Dn(a)?e.value[r].value=a:e.value[r]=a,!0},deleteProperty(n,r){return Reflect.deleteProperty(e.value,r)},has(n,r){return Reflect.has(e.value,r)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return sn(t)}function MLe(e){return kLe(R(e))}const on=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ALe=e=>typeof e<"u",LX=e=>e!=null,ELe=Object.prototype.toString,ILe=e=>ELe.call(e)==="[object Object]",DX=(e,t,n)=>Math.min(n,Math.max(t,e)),Mi=()=>{},D_=LLe();function LLe(){var e,t;return on&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function PX(e,t){function n(...r){return new Promise((a,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(a).catch(o)})}return n}function DLe(e,t={}){let n,r,a=Mi;const o=s=>{clearTimeout(s),a(),a=Mi};return s=>{const l=xo(e),u=xo(t.maxWait);return n&&o(n),l<=0||u!==void 0&&u<=0?(r&&(o(r),r=null),Promise.resolve(s())):new Promise((c,f)=>{a=t.rejectOnCancel?f:c,u&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,c(s())},u)),n=setTimeout(()=>{r&&o(r),r=null,c(s())},l)})}}function PLe(...e){let t=0,n,r=!0,a=Mi,o,i,s,l,u;!Dn(e[0])&&typeof e[0]=="object"?{delay:i,trailing:s=!0,leading:l=!0,rejectOnCancel:u=!1}=e[0]:[i,s=!0,l=!0,u=!1]=e;const c=()=>{n&&(clearTimeout(n),n=void 0,a(),a=Mi)};return d=>{const v=xo(i),h=Date.now()-t,p=()=>o=d();return c(),v<=0?(t=Date.now(),p()):(h>v&&(l||!r)?(t=Date.now(),p()):s&&(o=new Promise((g,m)=>{a=u?m:g,n=setTimeout(()=>{t=Date.now(),r=!0,g(p()),c()},Math.max(0,v-h))})),!l&&!n&&(n=setTimeout(()=>r=!0,v)),r=!1,o)}}function RLe(e){return e||bt()}function Qm(e,t=200,n={}){return PX(DLe(t,n),e)}function OLe(e,t=200,n={}){const r=K(e.value),a=Qm(()=>{r.value=e.value},t,n);return he(e,()=>a()),r}function RX(e,t=200,n=!1,r=!0,a=!1){return PX(PLe(t,n,r,a),e)}function mA(e,t=!0,n){RLe()?Et(e,n):t?e():ze(e)}function Mh(e,t,n={}){const{immediate:r=!0}=n,a=K(!1);let o=null;function i(){o&&(clearTimeout(o),o=null)}function s(){a.value=!1,i()}function l(...u){i(),a.value=!0,o=setTimeout(()=>{a.value=!1,o=null,e(...u)},xo(t))}return r&&(a.value=!0,on&&l()),Nd(s),{isPending:rc(a),start:l,stop:s}}function yr(e){var t;const n=xo(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ki=on?window:void 0,NLe=on?window.document:void 0;function fn(...e){let t,n,r,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,a]=e,t=Ki):[t,n,r,a]=e,!t)return Mi;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],i=()=>{o.forEach(c=>c()),o.length=0},s=(c,f,d,v)=>(c.addEventListener(f,d,v),()=>c.removeEventListener(f,d,v)),l=he(()=>[yr(t),xo(a)],([c,f])=>{if(i(),!c)return;const d=ILe(f)?{...f}:f;o.push(...n.flatMap(v=>r.map(h=>s(c,v,h,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),i()};return Nd(u),u}let gB=!1;function yA(e,t,n={}){const{window:r=Ki,ignore:a=[],capture:o=!0,detectIframe:i=!1}=n;if(!r)return Mi;D_&&!gB&&(gB=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",Mi)),r.document.documentElement.addEventListener("click",Mi));let s=!0;const l=d=>a.some(v=>{if(typeof v=="string")return Array.from(r.document.querySelectorAll(v)).some(h=>h===d.target||d.composedPath().includes(h));{const h=yr(v);return h&&(d.target===h||d.composedPath().includes(h))}}),c=[fn(r,"click",d=>{const v=yr(e);if(!(!v||v===d.target||d.composedPath().includes(v))){if(d.detail===0&&(s=!l(d)),!s){s=!0;return}t(d)}},{passive:!0,capture:o}),fn(r,"pointerdown",d=>{const v=yr(e);s=!l(d)&&!!(v&&!d.composedPath().includes(v))},{passive:!0}),i&&fn(r,"blur",d=>{setTimeout(()=>{var v;const h=yr(e);((v=r.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(h!=null&&h.contains(r.document.activeElement))&&t(d)},0)})].filter(Boolean);return()=>c.forEach(d=>d())}function BLe(){const e=K(!1),t=bt();return t&&Et(()=>{e.value=!0},t),e}function y4(e){const t=BLe();return R(()=>(t.value,!!e()))}function e1(e,t,n={}){const{window:r=Ki,...a}=n;let o;const i=y4(()=>r&&"MutationObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=R(()=>{const d=xo(e),v=(Array.isArray(d)?d:[d]).map(yr).filter(LX);return new Set(v)}),u=he(()=>l.value,d=>{s(),i.value&&d.size&&(o=new MutationObserver(t),d.forEach(v=>o.observe(v,a)))},{immediate:!0,flush:"post"}),c=()=>o==null?void 0:o.takeRecords(),f=()=>{s(),u()};return Nd(f),{isSupported:i,stop:f,takeRecords:c}}function VLe(e={}){var t;const{window:n=Ki,deep:r=!0,triggerOnRemoval:a=!1}=e,o=(t=e.document)!=null?t:n==null?void 0:n.document,i=()=>{var u;let c=o==null?void 0:o.activeElement;if(r)for(;c!=null&&c.shadowRoot;)c=(u=c==null?void 0:c.shadowRoot)==null?void 0:u.activeElement;return c},s=K(),l=()=>{s.value=i()};return n&&(fn(n,"blur",u=>{u.relatedTarget===null&&l()},!0),fn(n,"focus",l,!0)),a&&e1(o,u=>{u.filter(c=>c.removedNodes.length).map(c=>Array.from(c.removedNodes)).flat().forEach(c=>{c===s.value&&l()})},{childList:!0,subtree:!0}),l(),s}function $Le(e,t={}){const{window:n=Ki}=t,r=y4(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const o=K(!1),i=u=>{o.value=u.matches},s=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",i):a.removeListener(i))},l=Ga(()=>{r.value&&(s(),a=n.matchMedia(xo(e)),"addEventListener"in a?a.addEventListener("change",i):a.addListener(i),o.value=a.matches)});return Nd(()=>{l(),s(),a=void 0}),o}function zLe(e){return JSON.parse(JSON.stringify(e))}function FLe(e,t,n={}){const{window:r=Ki,initialValue:a="",observe:o=!1}=n,i=K(a),s=R(()=>{var u;return yr(t)||((u=r==null?void 0:r.document)==null?void 0:u.documentElement)});function l(){var u;const c=xo(e),f=xo(s);if(f&&r){const d=(u=r.getComputedStyle(f).getPropertyValue(c))==null?void 0:u.trim();i.value=d||a}}return o&&e1(s,l,{attributeFilter:["style","class"],window:r}),he([s,()=>xo(e)],l,{immediate:!0}),he(i,u=>{var c;(c=s.value)!=null&&c.style&&s.value.style.setProperty(xo(e),u)}),i}function HLe(e={}){const{document:t=NLe}=e;if(!t)return K("visible");const n=K(t.visibilityState);return fn(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function On(e,t,n={}){const{window:r=Ki,...a}=n;let o;const i=y4(()=>r&&"ResizeObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=R(()=>Array.isArray(e)?e.map(f=>yr(f)):[yr(e)]),u=he(l,f=>{if(s(),i.value&&r){o=new ResizeObserver(t);for(const d of f)d&&o.observe(d,a)}},{immediate:!0,flush:"post"}),c=()=>{s(),u()};return Nd(c),{isSupported:i,stop:c}}function mB(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:a=!0,immediate:o=!0}=t,i=K(0),s=K(0),l=K(0),u=K(0),c=K(0),f=K(0),d=K(0),v=K(0);function h(){const p=yr(e);if(!p){n&&(i.value=0,s.value=0,l.value=0,u.value=0,c.value=0,f.value=0,d.value=0,v.value=0);return}const g=p.getBoundingClientRect();i.value=g.height,s.value=g.bottom,l.value=g.left,u.value=g.right,c.value=g.top,f.value=g.width,d.value=g.x,v.value=g.y}return On(e,h),he(()=>yr(e),p=>!p&&h()),e1(e,h,{attributeFilter:["style","class"]}),a&&fn("scroll",h,{capture:!0,passive:!0}),r&&fn("resize",h,{passive:!0}),mA(()=>{o&&h()}),{height:i,bottom:s,left:l,right:u,top:c,width:f,x:d,y:v,update:h}}function QC(e,t={width:0,height:0},n={}){const{window:r=Ki,box:a="content-box"}=n,o=R(()=>{var f,d;return(d=(f=yr(e))==null?void 0:f.namespaceURI)==null?void 0:d.includes("svg")}),i=K(t.width),s=K(t.height),{stop:l}=On(e,([f])=>{const d=a==="border-box"?f.borderBoxSize:a==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(r&&o.value){const v=yr(e);if(v){const h=v.getBoundingClientRect();i.value=h.width,s.value=h.height}}else if(d){const v=Array.isArray(d)?d:[d];i.value=v.reduce((h,{inlineSize:p})=>h+p,0),s.value=v.reduce((h,{blockSize:p})=>h+p,0)}else i.value=f.contentRect.width,s.value=f.contentRect.height},n);mA(()=>{const f=yr(e);f&&(i.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=he(()=>yr(e),f=>{i.value=f?t.width:0,s.value=f?t.height:0});function c(){l(),u()}return{width:i,height:s,stop:c}}function WLe(e,t,n={}){const{root:r,rootMargin:a="0px",threshold:o=.1,window:i=Ki,immediate:s=!0}=n,l=y4(()=>i&&"IntersectionObserver"in i),u=R(()=>{const h=xo(e);return(Array.isArray(h)?h:[h]).map(yr).filter(LX)});let c=Mi;const f=K(s),d=l.value?he(()=>[u.value,yr(r),f.value],([h,p])=>{if(c(),!f.value||!h.length)return;const g=new IntersectionObserver(t,{root:yr(p),rootMargin:a,threshold:o});h.forEach(m=>m&&g.observe(m)),c=()=>{g.disconnect(),c=Mi}},{immediate:s,flush:"post"}):Mi,v=()=>{c(),d(),f.value=!1};return Nd(v),{isSupported:l,isActive:f,pause(){c(),f.value=!1},resume(){f.value=!0},stop:v}}function OX(e,t,n,r={}){var a,o,i;const{clone:s=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:f,shouldEmit:d}=r,v=bt(),h=n||(v==null?void 0:v.emit)||((a=v==null?void 0:v.$emit)==null?void 0:a.bind(v))||((i=(o=v==null?void 0:v.proxy)==null?void 0:o.$emit)==null?void 0:i.bind(v==null?void 0:v.proxy));let p=u;t||(t="modelValue"),p=p||`update:${t.toString()}`;const g=b=>s?typeof s=="function"?s(b):zLe(b):b,m=()=>ALe(e[t])?g(e[t]):f,y=b=>{d?d(b)&&h(p,b):h(p,b)};if(l){const b=m(),w=K(b);let S=!1;return he(()=>e[t],x=>{S||(S=!0,w.value=g(x),ze(()=>S=!1))}),he(w,x=>{!S&&(x!==e[t]||c)&&y(x)},{deep:c}),w}else return R({get(){return m()},set(b){y(b)}})}function GLe(e={}){const{window:t=Ki}=e;if(!t)return K(!1);const n=K(t.document.hasFocus());return fn(t,"blur",()=>{n.value=!1}),fn(t,"focus",()=>{n.value=!0}),n}function bA(e={}){const{window:t=Ki,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:a=!0,includeScrollbar:o=!0}=e,i=K(n),s=K(r),l=()=>{t&&(o?(i.value=t.innerWidth,s.value=t.innerHeight):(i.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};if(l(),mA(l),fn("resize",l,{passive:!0}),a){const u=$Le("(orientation: portrait)");he(u,()=>l())}return{width:i,height:s}}class ULe extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function cr(e,t){throw new ULe(`[${e}] ${t}`)}const yB={current:0},bB=K(0),NX=2e3,_B=Symbol("elZIndexContextKey"),BX=Symbol("zIndexContextKey"),t1=e=>{const t=bt()?Ue(_B,yB):yB,n=e||(bt()?Ue(BX,void 0):void 0),r=R(()=>{const i=_(n);return rt(i)?i:NX}),a=R(()=>r.value+bB.value),o=()=>(t.current++,bB.value=t.current,a.value);return!on&&Ue(_B),{initialZIndex:r,currentZIndex:a,nextZIndex:o}};var KLe={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const jLe=e=>(t,n)=>YLe(t,n,_(e)),YLe=(e,t,n)=>ur(n,e,e).replace(/\{(\w+)\}/g,(r,a)=>{var o;return`${(o=t==null?void 0:t[a])!=null?o:`{${a}}`}`}),qLe=e=>{const t=R(()=>_(e).name),n=Dn(e)?e:K(e);return{lang:t,locale:n,t:jLe(e)}},VX=Symbol("localeContextKey"),Kt=e=>{const t=e||Ue(VX,K());return qLe(R(()=>t.value||KLe))},$X="__epPropKey",ne=e=>e,XLe=e=>St(e)&&!!e[$X],ji=(e,t)=>{if(!St(e)||XLe(e))return e;const{values:n,required:r,default:a,type:o,validator:i}=e,l={type:o,required:!!r,validator:n||i?u=>{let c=!1,f=[];if(n&&(f=Array.from(n),nn(e,"default")&&f.push(a),c||(c=f.includes(u))),i&&(c||(c=i(u))),!c&&f.length>0){const d=[...new Set(f)].map(v=>JSON.stringify(v)).join(", ");lF(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[$X]:!0};return nn(e,"default")&&(l.default=a),l},Ie=e=>Zg(Object.entries(e).map(([t,n])=>[t,ji(n,t)])),nl=["","default","small","large"],wr=ji({type:String,values:nl,required:!1}),zX=Symbol("size"),FX=()=>{const e=Ue(zX,{});return R(()=>_(e.size)||"")},HX=Symbol("emptyValuesContextKey"),ZLe=["",void 0,null],JLe=void 0,Bd=Ie({emptyValues:Array,valueOnClear:{type:ne([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=Je(e)?e():e,Ce(e)?e.every(t=>!t):!e)}}),n1=(e,t)=>{const n=bt()?Ue(HX,K({})):K({}),r=R(()=>e.emptyValues||n.value.emptyValues||ZLe),a=R(()=>Je(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Je(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:JLe),o=i=>{let s=!0;return Ce(i)?s=r.value.some(l=>Yn(i,l)):s=r.value.includes(i),s};return o(a.value),{emptyValues:r,valueOnClear:a,isEmptyValue:o}},Jg=e=>Object.keys(e),WX=e=>Object.entries(e),Q0=(e,t,n)=>({get value(){return ur(e,t,n)},set value(r){mLe(e,t,r)}}),P_=K();function hp(e,t=void 0){const n=bt()?Ue(Fq,P_):P_;return e?R(()=>{var r,a;return(a=(r=n.value)==null?void 0:r[e])!=null?a:t}):n}function b4(e,t){const n=hp(),r=we(e,R(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||Z0})),a=Kt(R(()=>{var s;return(s=n.value)==null?void 0:s.locale})),o=t1(R(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||NX})),i=R(()=>{var s;return _(t)||((s=n.value)==null?void 0:s.size)||""});return _A(R(()=>_(n)||{})),{ns:r,locale:a,zIndex:o,size:i}}const _A=(e,t,n=!1)=>{var r;const a=!!bt(),o=a?hp():void 0,i=(r=t==null?void 0:t.provide)!=null?r:a?Ut:void 0;if(!i)return;const s=R(()=>{const l=_(e);return o!=null&&o.value?QLe(o.value,l):l});return i(Fq,s),i(VX,R(()=>s.value.locale)),i(Hq,R(()=>s.value.namespace)),i(BX,R(()=>s.value.zIndex)),i(zX,{size:R(()=>s.value.size||"")}),i(HX,R(()=>({emptyValues:s.value.emptyValues,valueOnClear:s.value.valueOnClear}))),(n||!P_.value)&&(P_.value=s.value),s},QLe=(e,t)=>{const n=[...new Set([...Jg(e),...Jg(t)])],r={};for(const a of n)r[a]=t[a]!==void 0?t[a]:e[a];return r},eDe=(e=[])=>({version:uke,install:(n,r)=>{n[VN]||(n[VN]=!0,e.forEach(a=>n.use(a)),r&&_A(r,n,!0))}}),r1=Ie({to:{type:ne([String,Object]),required:!0},disabled:Boolean});var De=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};const tDe=q({__name:"teleport",props:r1,setup(e){return(t,n)=>t.disabled?ue(t.$slots,"default",{key:0}):(D(),de(pz,{key:1,to:t.to},[ue(t.$slots,"default")],8,["to"]))}});var nDe=De(tDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/teleport/src/teleport.vue"]]);const _t=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},GX=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),rDe=(e,t)=>(e.install=n=>{n.directive(t,e)},e),Kn=e=>(e.install=cn,e),pp=_t(nDe),dt="update:modelValue",Ht="change",dr="input",aDe=Ie({zIndex:{type:ne([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"},teleported:Boolean,appendTo:{type:r1.to.type,default:"body"}}),oDe={scroll:({scrollTop:e,fixed:t})=>rt(e)&&hn(t),[Ht]:e=>hn(e)};function iDe(e,t,n,r){const a=n-t;return e/=r/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}const qs=e=>on?window.requestAnimationFrame(e):setTimeout(e,16),jl=e=>on?window.cancelAnimationFrame(e):clearTimeout(e),UX=(e="")=>e.split(" ").filter(t=>!!t.trim()),Ds=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Jo=(e,t)=>{!e||!t.trim()||e.classList.add(...UX(t))},Aa=(e,t)=>{!e||!t.trim()||e.classList.remove(...UX(t))},Cl=(e,t)=>{var n;if(!on||!e||!t)return"";let r=Or(t);r==="float"&&(r="cssFloat");try{const a=e.style[r];if(a)return a;const o=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return o?o[r]:""}catch{return e.style[r]}},KX=(e,t,n)=>{if(!(!e||!t))if(St(t))WX(t).forEach(([r,a])=>KX(e,r,a));else{const r=Or(t);e.style[r]=n}};function Un(e,t="px"){if(!e&&e!==0)return"";if(rt(e)||TLe(e))return`${e}${t}`;if(Ge(e))return e}const sDe=(e,t)=>{if(!on)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=Cl(e,n);return["scroll","auto","overlay"].some(a=>r.includes(a))},wA=(e,t)=>{if(!on)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(sDe(n,t))return n;n=n.parentNode}return n};let Zy;const jX=e=>{var t;if(!on)return 0;if(Zy!==void 0)return Zy;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",n.appendChild(a);const o=a.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Zy=r-o,Zy};function SA(e,t){if(!on)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const a=t.offsetTop+n.reduce((l,u)=>l+u.offsetTop,0),o=a+t.offsetHeight,i=e.scrollTop,s=i+e.clientHeight;a<i?e.scrollTop=a:o>s&&(e.scrollTop=o-e.clientHeight)}function lDe(e,t,n,r,a){const o=Date.now();let i;const s=()=>{const u=Date.now()-o,c=iDe(u>r?r:u,t,n,r);Jm(e)?e.scrollTo(window.pageXOffset,c):e.scrollTop=c,u<r?i=qs(s):Je(a)&&a()};return s(),()=>{i&&jl(i)}}const wB=(e,t)=>Jm(t)?e.ownerDocument.documentElement:t,SB=e=>Jm(e)?window.scrollY:e.scrollTop,xB="ElAffix",uDe=q({name:xB,__name:"affix",props:aDe,emits:oDe,setup(e,{expose:t,emit:n}){const r=e,a=n,o=we("affix"),i=Ln(),s=Ln(),l=Ln(),{height:u}=bA(),{height:c,width:f,top:d,bottom:v,left:h,update:p}=mB(s,{windowScroll:!1}),g=mB(i),m=K(!1),y=K(0),b=K(0),w=R(()=>!r.teleported||!m.value),S=R(()=>({height:m.value?`${c.value}px`:"",width:m.value?`${f.value}px`:""})),x=R(()=>{if(!m.value)return{};const k=Un(r.offset);return{height:`${c.value}px`,width:`${f.value}px`,top:r.position==="top"?k:"",bottom:r.position==="bottom"?k:"",left:r.teleported?`${h.value}px`:"",transform:b.value?`translateY(${b.value}px)`:"",zIndex:r.zIndex}}),C=()=>{if(!l.value)return;y.value=l.value instanceof Window?document.documentElement.scrollTop:l.value.scrollTop||0;const{position:k,target:E,offset:A}=r,I=A+c.value;if(k==="top")if(E){const O=g.bottom.value-I;m.value=A>d.value&&g.bottom.value>0,b.value=O<0?O:0}else m.value=A>d.value;else if(E){const O=u.value-g.top.value-I;m.value=u.value-A<v.value&&u.value>g.top.value,b.value=O<0?-O:0}else m.value=u.value-A<v.value},T=async()=>{if(!m.value){p();return}m.value=!1,await ze(),p(),m.value=!0},M=async()=>{p(),await ze(),a("scroll",{scrollTop:y.value,fixed:m.value})};return he(m,k=>a(Ht,k)),Et(()=>{var k;r.target?(i.value=(k=document.querySelector(r.target))!=null?k:void 0,i.value||cr(xB,`Target does not exist: ${r.target}`)):i.value=document.documentElement,l.value=wA(s.value,!0),p()}),fn(l,"scroll",M),Ga(C),t({update:C,updateRoot:T}),(k,E)=>(D(),H("div",{ref_key:"root",ref:s,class:W(_(o).b()),style:et(S.value)},[Q(_(pp),{disabled:w.value,to:k.appendTo},{default:ee(()=>[N("div",{class:W({[_(o).m("fixed")]:m.value}),style:et(x.value)},[ue(k.$slots,"default")],6)]),_:3},8,["disabled","to"])],6))}});var cDe=De(uDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const fDe=_t(cDe),dDe=Ie({size:{type:ne([Number,String])},color:{type:String}}),vDe=q({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:dDe,setup(e){const t=e,n=we("icon"),r=R(()=>{const{size:a,color:o}=t,i=Un(a);return!i&&!o?{}:{fontSize:i,"--color":o}});return(a,o)=>(D(),H("i",It({class:_(n).b(),style:r.value},a.$attrs),[ue(a.$slots,"default")],16))}});var hDe=De(vDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Xe=_t(hDe);/*! Element Plus Icons Vue v2.3.2 */var pDe=q({name:"AddLocation",__name:"add-location",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),N("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),N("path",{fill:"currentColor",d:"M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0z"})]))}}),gDe=pDe,mDe=q({name:"Aim",__name:"aim",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),N("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}}),yDe=mDe,bDe=q({name:"AlarmClock",__name:"alarm-clock",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),N("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128z"})]))}}),_De=bDe,wDe=q({name:"Apple",__name:"apple",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M599.872 203.776a189.4 189.4 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a427 427 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664m-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688s81.28 34.688 136.96 33.536c56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152"})]))}}),SDe=wDe,xDe=q({name:"ArrowDownBold",__name:"arrow-down-bold",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496"})]))}}),CDe=xDe,TDe=q({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),Yi=TDe,kDe=q({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0"})]))}}),MDe=kDe,ADe=q({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),Xs=ADe,EDe=q({name:"ArrowRightBold",__name:"arrow-right-bold",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0"})]))}}),IDe=EDe,LDe=q({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),ca=LDe,DDe=q({name:"ArrowUpBold",__name:"arrow-up-bold",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496"})]))}}),PDe=DDe,RDe=q({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),a1=RDe,ODe=q({name:"Avatar",__name:"avatar",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.87 415.87 0 0 1 299.264-399.104L512 704zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0"})]))}}),NDe=ODe,BDe=q({name:"Back",__name:"back",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),N("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),YX=BDe,VDe=q({name:"Baseball",__name:"baseball",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6m45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104"}),N("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896M108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1737 1737 0 0 1-11.392-65.728"})]))}}),$De=VDe,zDe=q({name:"Basketball",__name:"basketball",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M778.752 788.224a382.46 382.46 0 0 0 116.032-245.632 256.51 256.51 0 0 0-241.728-13.952 762.9 762.9 0 0 1 125.696 259.584m-55.04 44.224a699.65 699.65 0 0 0-125.056-269.632 256.13 256.13 0 0 0-56.064 331.968 382.7 382.7 0 0 0 181.12-62.336m-254.08 61.248A320.13 320.13 0 0 1 557.76 513.6a716 716 0 0 0-48.192-48.128 320.13 320.13 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.13 256.13 0 0 0 331.072-56.448 699.65 699.65 0 0 0-268.8-124.352 382.66 382.66 0 0 0-62.272 180.8m106.56-235.84a762.9 762.9 0 0 1 258.688 125.056 256.51 256.51 0 0 0-13.44-241.088A382.46 382.46 0 0 0 235.84 245.248m318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a780 780 0 0 1 66.176 66.112 320.83 320.83 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6"})]))}}),FDe=zDe,HDe=q({name:"BellFilled",__name:"bell-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.13 320.13 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8z"})]))}}),WDe=HDe,GDe=q({name:"Bell",__name:"bell",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"}),N("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"}),N("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"})]))}}),UDe=GDe,KDe=q({name:"Bicycle",__name:"bicycle",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),N("path",{fill:"currentColor",d:"M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),N("path",{fill:"currentColor",d:"M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),N("path",{fill:"currentColor",d:"M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384z"}),N("path",{fill:"currentColor",d:"m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"})]))}}),jDe=KDe,YDe=q({name:"BottomLeft",__name:"bottom-left",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0z"}),N("path",{fill:"currentColor",d:"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312z"})]))}}),qDe=YDe,XDe=q({name:"BottomRight",__name:"bottom-right",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416z"}),N("path",{fill:"currentColor",d:"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312z"})]))}}),ZDe=XDe,JDe=q({name:"Bottom",__name:"bottom",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),QDe=JDe,ePe=q({name:"Bowl",__name:"bowl",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M714.432 704a351.74 351.74 0 0 0 148.16-256H161.408a351.74 351.74 0 0 0 148.16 256zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424zM352 768v64h320v-64z"})]))}}),tPe=ePe,nPe=q({name:"Box",__name:"box",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64"}),N("path",{fill:"currentColor",d:"M64 320h896v64H64z"}),N("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320z"})]))}}),rPe=nPe,aPe=q({name:"Briefcase",__name:"briefcase",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320zM128 576h768v320H128zm256-256h256.064V192H384z"})]))}}),oPe=aPe,iPe=q({name:"BrushFilled",__name:"brush-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128zM192 512V128.064h640V512z"})]))}}),sPe=iPe,lPe=q({name:"Brush",__name:"brush",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a664 664 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168"})]))}}),uPe=lPe,cPe=q({name:"Burger",__name:"burger",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44M832 448a320 320 0 0 0-640 0zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704z"})]))}}),fPe=cPe,dPe=q({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),qX=dPe,vPe=q({name:"CameraFilled",__name:"camera-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4m0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),hPe=vPe,pPe=q({name:"Camera",__name:"camera",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M896 256H128v576h768zm-199.424-64-32.064-64h-304.96l-32 64zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32m416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320m0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448"})]))}}),gPe=pPe,mPe=q({name:"CaretBottom",__name:"caret-bottom",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),yPe=mPe,bPe=q({name:"CaretLeft",__name:"caret-left",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"})]))}}),_Pe=bPe,wPe=q({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),xA=wPe,SPe=q({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),XX=SPe,xPe=q({name:"Cellphone",__name:"cellphone",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64m128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64m128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),CPe=xPe,TPe=q({name:"ChatDotRound",__name:"chat-dot-round",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),N("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),kPe=TPe,MPe=q({name:"ChatDotSquare",__name:"chat-dot-square",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),N("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),APe=MPe,EPe=q({name:"ChatLineRound",__name:"chat-line-round",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),N("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),IPe=EPe,LPe=q({name:"ChatLineSquare",__name:"chat-line-square",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),N("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),DPe=LPe,PPe=q({name:"ChatRound",__name:"chat-round",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"})]))}}),RPe=PPe,OPe=q({name:"ChatSquare",__name:"chat-square",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"})]))}}),NPe=OPe,BPe=q({name:"Check",__name:"check",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),gp=BPe,VPe=q({name:"Checked",__name:"checked",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160.064v64H704zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024zM384 192V96h256v96z"})]))}}),$Pe=VPe,zPe=q({name:"Cherry",__name:"cherry",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6M288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320m448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320"})]))}}),FPe=zPe,HPe=q({name:"Chicken",__name:"chicken",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M349.952 716.992 478.72 588.16a106.7 106.7 0 0 1-26.176-19.072 106.7 106.7 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112m57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84M244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52z"})]))}}),WPe=HPe,GPe=q({name:"ChromeFilled",__name:"chrome-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.37 212.37 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67"}),N("path",{fill:"currentColor",d:"M576.79 401.63a127.9 127.9 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128 128 0 0 0-2.16 127.44l1.24 2.13a127.9 127.9 0 0 0 46.36 46.61 127.9 127.9 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.98 127.98 0 0 0 .29-127.46 127.96 127.96 0 0 0-46.36-46.91"}),N("path",{fill:"currentColor",d:"M394.45 333.96A213.34 213.34 0 0 1 512 298.67h369.58A426.5 426.5 0 0 0 512 85.34a425.6 425.6 0 0 0-171.74 35.98 425.6 425.6 0 0 0-142.62 102.22l118.14 204.63a213.4 213.4 0 0 1 78.67-94.21m117.56 604.72H512zm-97.25-236.73a213.3 213.3 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.3 213.3 0 0 1-122.77-21.91"})]))}}),UPe=GPe,KPe=q({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),ZX=KPe,jPe=q({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),N("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),o1=jPe,YPe=q({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),_4=YPe,qPe=q({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),N("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),rl=qPe,XPe=q({name:"CirclePlusFilled",__name:"circle-plus-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0z"})]))}}),ZPe=XPe,JPe=q({name:"CirclePlus",__name:"circle-plus",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),N("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),N("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),QPe=JPe,eRe=q({name:"Clock",__name:"clock",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),N("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),N("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),CA=eRe,tRe=q({name:"CloseBold",__name:"close-bold",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496"})]))}}),nRe=tRe,rRe=q({name:"Close",__name:"close",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Io=rRe,aRe=q({name:"Cloudy",__name:"cloudy",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"})]))}}),oRe=aRe,iRe=q({name:"CoffeeCup",__name:"coffee-cup",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.13 256.13 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v256a128 128 0 1 0 0-256M96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192z"})]))}}),sRe=iRe,lRe=q({name:"Coffee",__name:"coffee",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304zm-64.128 0 4.544-64H260.736l4.544 64zm-548.16 128H820.48l-10.688-64H214.208l-10.688 64zm68.736 64 36.544 512H708.16l36.544-512z"})]))}}),uRe=lRe,cRe=q({name:"Coin",__name:"coin",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264"}),N("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264"}),N("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224m0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160"})]))}}),fRe=cRe,dRe=q({name:"ColdDrink",__name:"cold-drink",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.06 192.06 0 0 1 768 64M656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928z"})]))}}),vRe=dRe,hRe=q({name:"CollectionTag",__name:"collection-tag",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32"})]))}}),pRe=hRe,gRe=q({name:"Collection",__name:"collection",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64"}),N("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224m144-608v250.88l96-76.8 96 76.8V128zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44z"})]))}}),mRe=gRe,yRe=q({name:"Comment",__name:"comment",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"})]))}}),bRe=yRe,_Re=q({name:"Compass",__name:"compass",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),N("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832"})]))}}),wRe=_Re,SRe=q({name:"Connection",__name:"connection",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"}),N("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.06 192.06 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"})]))}}),xRe=SRe,CRe=q({name:"Coordinate",__name:"coordinate",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M480 512h64v320h-64z"}),N("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64m64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128m256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),TRe=CRe,kRe=q({name:"CopyDocument",__name:"copy-document",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),N("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),MRe=kRe,ARe=q({name:"Cpu",__name:"cpu",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128"}),N("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32M64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32"})]))}}),ERe=ARe,IRe=q({name:"CreditCard",__name:"credit-card",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.35 52.35 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.35 52.35 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.35 52.35 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.35 52.35 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448S852.928 864 795.968 864H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.3 116.3 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448s41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384s17.088 41.6 17.088 98.56z"}),N("path",{fill:"currentColor",d:"M64 320h896v64H64zm0 128h896v64H64zm128 192h256v64H192z"})]))}}),LRe=IRe,DRe=q({name:"Crop",__name:"crop",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0z"}),N("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32"})]))}}),PRe=DRe,RRe=q({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672z"})]))}}),Yl=RRe,ORe=q({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"})]))}}),ql=ORe,NRe=q({name:"DCaret",__name:"d-caret",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),BRe=NRe,VRe=q({name:"DataAnalysis",__name:"data-analysis",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32zM832 192H192v512h640zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32"})]))}}),$Re=VRe,zRe=q({name:"DataBoard",__name:"data-board",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M32 128h960v64H32z"}),N("path",{fill:"currentColor",d:"M192 192v512h640V192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),N("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32zm453.888 0h-73.856L576 741.44l55.424-32z"})]))}}),FRe=zRe,HRe=q({name:"DataLine",__name:"data-line",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32zM832 192H192v512h640zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"})]))}}),JX=HRe,WRe=q({name:"DeleteFilled",__name:"delete-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),GRe=WRe,URe=q({name:"DeleteLocation",__name:"delete-location",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),N("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),N("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),KRe=URe,jRe=q({name:"Delete",__name:"delete",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),QX=jRe,YRe=q({name:"Dessert",__name:"dessert",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416m287.104-32.064h193.792a143.81 143.81 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.81 143.81 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0zm339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736M384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64"})]))}}),qRe=YRe,XRe=q({name:"Discount",__name:"discount",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zm0 64v128h576V768zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),N("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),ZRe=XRe,JRe=q({name:"DishDot",__name:"dish-dot",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.19 448.19 0 0 1 955.392 768H68.544A448.19 448.19 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-128h768a384 384 0 1 0-768 0m447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256z"})]))}}),QRe=JRe,eOe=q({name:"Dish",__name:"dish",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152M128 704h768a384 384 0 1 0-768 0M96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64"})]))}}),tOe=eOe,nOe=q({name:"DocumentAdd",__name:"document-add",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z"})]))}}),rOe=nOe,aOe=q({name:"DocumentChecked",__name:"document-checked",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312z"})]))}}),oOe=aOe,iOe=q({name:"DocumentCopy",__name:"document-copy",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"})]))}}),sOe=iOe,lOe=q({name:"DocumentDelete",__name:"document-delete",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248z"})]))}}),uOe=lOe,cOe=q({name:"DocumentRemove",__name:"document-remove",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m192 512h320v64H352z"})]))}}),fOe=cOe,dOe=q({name:"Document",__name:"document",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),eZ=dOe,vOe=q({name:"Download",__name:"download",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),hOe=vOe,pOe=q({name:"Drizzling",__name:"drizzling",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672M959.552 480a256 256 0 0 1-256 256h-400A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M288 800h64v64h-64zm192 0h64v64h-64zm-96 96h64v64h-64zm192 0h64v64h-64zm96-96h64v64h-64z"})]))}}),gOe=pOe,mOe=q({name:"EditPen",__name:"edit-pen",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64z"})]))}}),yOe=mOe,bOe=q({name:"Edit",__name:"edit",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),N("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),_Oe=bOe,wOe=q({name:"ElemeFilled",__name:"eleme-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112m150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.69 330.69 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.55 47.55 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.3 234.3 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.55 47.55 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"})]))}}),SOe=wOe,xOe=q({name:"Eleme",__name:"eleme",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24m526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.23 63.23 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8z"})]))}}),COe=xOe,TOe=q({name:"ElementPlus",__name:"element-plus",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6q19.2-7.65 38.4 0s279 161.3 309.8 179.2c17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8M714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64z"})]))}}),kOe=TOe,MOe=q({name:"Expand",__name:"expand",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"})]))}}),AOe=MOe,EOe=q({name:"Failed",__name:"failed",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384zm-320 0V96h256v96z"})]))}}),IOe=EOe,LOe=q({name:"Female",__name:"female",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),N("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32"}),N("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),DOe=LOe,POe=q({name:"Files",__name:"files",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"})]))}}),ROe=POe,OOe=q({name:"Film",__name:"film",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),N("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64z"})]))}}),NOe=OOe,BOe=q({name:"Filter",__name:"filter",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"})]))}}),VOe=BOe,$Oe=q({name:"Finished",__name:"finished",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"})]))}}),zOe=$Oe,FOe=q({name:"FirstAidKit",__name:"first-aid-kit",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),N("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0zM352 128v64h320v-64zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"})]))}}),HOe=FOe,WOe=q({name:"Flag",__name:"flag",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96z"})]))}}),GOe=WOe,UOe=q({name:"Fold",__name:"fold",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384 128 512l192 128z"})]))}}),KOe=UOe,jOe=q({name:"FolderAdd",__name:"folder-add",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m384 416V416h64v128h128v64H544v128h-64V608H352v-64z"})]))}}),YOe=jOe,qOe=q({name:"FolderChecked",__name:"folder-checked",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312z"})]))}}),XOe=qOe,ZOe=q({name:"FolderDelete",__name:"folder-delete",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248z"})]))}}),JOe=ZOe,QOe=q({name:"FolderOpened",__name:"folder-opened",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}}),e7e=QOe,t7e=q({name:"FolderRemove",__name:"folder-remove",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m256 416h320v64H352z"})]))}}),n7e=t7e,r7e=q({name:"Folder",__name:"folder",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"})]))}}),a7e=r7e,o7e=q({name:"Food",__name:"food",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0m128 0h192a96 96 0 0 0-192 0m439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352M672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288"})]))}}),i7e=o7e,s7e=q({name:"Football",__name:"football",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768"}),N("path",{fill:"currentColor",d:"M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a386 386 0 0 1-80.448-91.648m653.696-5.312a385.9 385.9 0 0 1-83.776 96.96l-32.512-56.384a322.9 322.9 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184M465.984 445.248l11.136-63.104a323.6 323.6 0 0 0 69.76 0l11.136 63.104a388 388 0 0 1-92.032 0m-62.72-12.8A381.8 381.8 0 0 1 320 396.544l32-55.424a320 320 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.8 381.8 0 0 1-83.328 35.84l-11.2-63.552A320 320 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.9 385.9 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072m657.536.128a1443 1443 0 0 1-49.024 43.072 321.4 321.4 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408M465.92 578.752a388 388 0 0 1 92.032 0l-11.136 63.104a323.6 323.6 0 0 0-69.76 0zm-62.72 12.8 11.2 63.552a320 320 0 0 0-62.464 27.712L320 627.392a381.8 381.8 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.3 318.3 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"})]))}}),l7e=s7e,u7e=q({name:"ForkSpoon",__name:"fork-spoon",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56M672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192"})]))}}),c7e=u7e,f7e=q({name:"Fries",__name:"fries",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.74 95.74 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128 128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132 132 0 0 1 672 510.464V512zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480zm-128 96V224a32 32 0 0 0-64 0v160zh-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704z"})]))}}),d7e=f7e,v7e=q({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),tZ=v7e,h7e=q({name:"GobletFull",__name:"goblet-full",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320m503.936 64H264.064a256.128 256.128 0 0 0 495.872 0M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4"})]))}}),p7e=h7e,g7e=q({name:"GobletSquareFull",__name:"goblet-square-full",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952 952 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96z"})]))}}),m7e=g7e,y7e=q({name:"GobletSquare",__name:"goblet-square",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912M256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256z"})]))}}),b7e=y7e,_7e=q({name:"Goblet",__name:"goblet",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4M256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320"})]))}}),w7e=_7e,S7e=q({name:"GoldMedal",__name:"gold-medal",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16M640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a360 360 0 0 0-32.36 4.79V128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03 1.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98"}),N("path",{fill:"currentColor",d:"M544 480H416v64h64v192h-64v64h192v-64h-64z"})]))}}),x7e=S7e,C7e=q({name:"GoodsFilled",__name:"goods-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M192 352h640l64 544H128zm128 224h64V448h-64zm320 0h64V448h-64zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0"})]))}}),T7e=C7e,k7e=q({name:"Goods",__name:"goods",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0z"})]))}}),M7e=k7e,A7e=q({name:"Grape",__name:"grape",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192m-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),E7e=A7e,I7e=q({name:"Grid",__name:"grid",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"})]))}}),L7e=I7e,D7e=q({name:"Guide",__name:"guide",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M640 608h-64V416h64zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768zM384 608V416h64v192zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32z"}),N("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192m678.784 496-71.104 80H266.816V608h547.2zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"})]))}}),P7e=D7e,R7e=q({name:"Handbag",__name:"handbag",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01M421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5M832 896H192V320h128v128h64V320h256v128h64V320h128z"})]))}}),O7e=R7e,N7e=q({name:"Headset",__name:"headset",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848M896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0"})]))}}),B7e=N7e,V7e=q({name:"HelpFilled",__name:"help-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M926.784 480H701.312A192.51 192.51 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480m0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.51 192.51 0 0 0 701.312 544zM97.28 544h225.472A192.51 192.51 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.51 192.51 0 0 0 322.688 480H97.216z"})]))}}),$7e=V7e,z7e=q({name:"Help",__name:"help",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.9 254.9 0 0 1 512 768a254.9 254.9 0 0 1-156.992-53.76l-90.944 91.008A382.46 382.46 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752m45.312-45.312A382.46 382.46 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512s-20.096 113.6-53.76 156.992zm-45.312-541.184A382.46 382.46 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.9 254.9 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76zm-541.184 45.312A382.46 382.46 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.9 254.9 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992zm417.28 394.496a194.6 194.6 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.23 191.23 0 0 0-67.968-146.56A191.3 191.3 0 0 0 512 320a191.23 191.23 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.23 191.23 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),F7e=z7e,H7e=q({name:"Hide",__name:"hide",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),N("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),nZ=H7e,W7e=q({name:"Histogram",__name:"histogram",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"})]))}}),G7e=W7e,U7e=q({name:"HomeFilled",__name:"home-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),K7e=U7e,j7e=q({name:"HotWater",__name:"hot-water",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M273.067 477.867h477.866V409.6H273.067zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134M512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133M375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133m273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133M170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267"})]))}}),Y7e=j7e,q7e=q({name:"House",__name:"house",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M192 413.952V896h640V413.952L512 147.328zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576"})]))}}),X7e=q7e,Z7e=q({name:"IceCreamRound",__name:"ice-cream-round",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0"})]))}}),J7e=Z7e,Q7e=q({name:"IceCreamSquare",__name:"ice-cream-square",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96zm-64 0h-64v160a32 32 0 1 0 64 0z"})]))}}),eNe=Q7e,tNe=q({name:"IceCream",__name:"ice-cream",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.13 208.13 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448zm64.256 0h286.208a144 144 0 0 0-286.208 0m351.36 0h286.272a144 144 0 0 0-286.272 0m-294.848 64 271.808 396.608L778.24 512zM511.68 352.64a207.87 207.87 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56"})]))}}),nNe=tNe,rNe=q({name:"IceDrink",__name:"ice-drink",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 448v128h239.68l16.064-128zm-64 0H256.256l16.064 128H448zm64-255.36V384h247.744A256.13 256.13 0 0 0 512 192.64m-64 8.064A256.45 256.45 0 0 0 264.256 384H448zm64-72.064A320.13 320.13 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.38 320.38 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32zM743.68 640H280.32l32.128 256h399.104z"})]))}}),aNe=rNe,oNe=q({name:"IceTea",__name:"ice-tea",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352M264.064 256h495.872a256.128 256.128 0 0 0-495.872 0m495.424 256H264.512l48 384h398.976zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32m160 192h64v64h-64zm192 64h64v64h-64zm-128 64h64v64h-64zm64-192h64v64h-64z"})]))}}),iNe=oNe,sNe=q({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Ah=sNe,lNe=q({name:"Iphone",__name:"iphone",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0"})]))}}),uNe=lNe,cNe=q({name:"Key",__name:"key",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}}),fNe=cNe,dNe=q({name:"KnifeFork",__name:"knife-fork",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56m384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256s32 177.152 32 288z"})]))}}),vNe=dNe,hNe=q({name:"Lightning",__name:"lightning",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M288 671.36v64.128A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"}),N("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736z"})]))}}),pNe=hNe,gNe=q({name:"Link",__name:"link",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),mNe=gNe,yNe=q({name:"List",__name:"list",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384zM288 512h448v-64H288zm0 256h448v-64H288zm96-576V96h256v96z"})]))}}),bNe=yNe,_Ne=q({name:"Loading",__name:"loading",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),si=_Ne,wNe=q({name:"LocationFilled",__name:"location-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928m0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6"})]))}}),SNe=wNe,xNe=q({name:"LocationInformation",__name:"location-information",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),N("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),N("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),CNe=xNe,TNe=q({name:"Location",__name:"location",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),N("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),kNe=TNe,MNe=q({name:"Lock",__name:"lock",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),N("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),ANe=MNe,ENe=q({name:"Lollipop",__name:"lollipop",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696m105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744m-54.464-36.032a322 322 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"})]))}}),INe=ENe,LNe=q({name:"MagicStick",__name:"magic-stick",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}}),DNe=LNe,PNe=q({name:"Magnet",__name:"magnet",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0"})]))}}),RNe=PNe,ONe=q({name:"Male",__name:"male",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450m0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5m253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125"}),N("path",{fill:"currentColor",d:"M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125"}),N("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"})]))}}),NNe=ONe,BNe=q({name:"Management",__name:"management",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128zm-448 0h128v768H128z"})]))}}),VNe=BNe,$Ne=q({name:"MapLocation",__name:"map-location",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),N("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256m345.6 192L960 960H672v-64H352v64H64l102.4-256zm-68.928 0H235.328l-76.8 192h706.944z"})]))}}),zNe=$Ne,FNe=q({name:"Medal",__name:"medal",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),N("path",{fill:"currentColor",d:"M576 128H448v200a286.7 286.7 0 0 1 64-8c19.52 0 40.832 2.688 64 8zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96s-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64"})]))}}),HNe=FNe,WNe=q({name:"Memo",__name:"memo",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"}),N("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01M192 896V128h96v768zm640 0H352V128h480z"}),N("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32m0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"})]))}}),GNe=WNe,UNe=q({name:"Menu",__name:"menu",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"})]))}}),KNe=UNe,jNe=q({name:"MessageBox",__name:"message-box",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M288 384h448v64H288zm96-128h256v64H384zM131.456 512H384v128h256V512h252.544L721.856 192H302.144zM896 576H704v128H320V576H128v256h768zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128"})]))}}),YNe=jNe,qNe=q({name:"Message",__name:"message",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"}),N("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224z"})]))}}),XNe=qNe,ZNe=q({name:"Mic",__name:"mic",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128z"})]))}}),JNe=ZNe,QNe=q({name:"Microphone",__name:"microphone",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128m0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64m-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64z"})]))}}),eBe=QNe,tBe=q({name:"MilkTea",__name:"milk-tea",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64m493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12"})]))}}),nBe=tBe,rBe=q({name:"Minus",__name:"minus",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),rZ=rBe,aBe=q({name:"Money",__name:"money",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.06 29.06 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640z"}),N("path",{fill:"currentColor",d:"M768 192H128v448h640zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.06 29.06 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.06 29.06 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"}),N("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320m0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),oBe=aBe,iBe=q({name:"Monitor",__name:"monitor",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"})]))}}),sBe=iBe,lBe=q({name:"MoonNight",__name:"moon-night",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.3 448.3 0 0 1 384 512M171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"}),N("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"})]))}}),uBe=lBe,cBe=q({name:"Moon",__name:"moon",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 391 391 0 0 0-17.408 16.384m181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"})]))}}),fBe=cBe,dBe=q({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),eT=dBe,vBe=q({name:"More",__name:"more",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),aZ=vBe,hBe=q({name:"MostlyCloudy",__name:"mostly-cloudy",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.81 207.81 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048m15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.81 271.81 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72"})]))}}),pBe=hBe,gBe=q({name:"Mouse",__name:"mouse",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M438.144 256c-68.352 0-92.736 4.672-117.76 18.112q-30.144 16.128-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76q16.128 30.144 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112q30.144-16.128 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.46 110.46 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.46 174.46 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.46 174.46 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.46 174.46 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"}),N("path",{fill:"currentColor",d:"M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32m32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96z"})]))}}),mBe=gBe,yBe=q({name:"Mug",__name:"mug",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64m64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32z"})]))}}),bBe=yBe,_Be=q({name:"MuteNotification",__name:"mute-notification",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.13 320.13 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.55 319.55 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0"}),N("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"})]))}}),wBe=_Be,SBe=q({name:"Mute",__name:"mute",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m412.16 592.128-45.44 45.44A191.23 191.23 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128m51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528zM314.88 779.968l46.144-46.08A223 223 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032M266.752 737.6A286.98 286.98 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288z"}),N("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"})]))}}),xBe=SBe,CBe=q({name:"NoSmoking",__name:"no-smoking",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744zM768 576v128h128V576zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),TBe=CBe,kBe=q({name:"Notebook",__name:"notebook",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),N("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),MBe=kBe,ABe=q({name:"Notification",__name:"notification",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128z"}),N("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"})]))}}),EBe=ABe,IBe=q({name:"Odometer",__name:"odometer",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),N("path",{fill:"currentColor",d:"M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0"}),N("path",{fill:"currentColor",d:"M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928"})]))}}),LBe=IBe,DBe=q({name:"OfficeBuilding",__name:"office-building",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M192 128v704h384V128zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),N("path",{fill:"currentColor",d:"M256 256h256v64H256zm0 192h256v64H256zm0 192h256v64H256zm384-128h128v64H640zm0 128h128v64H640zM64 832h896v64H64z"}),N("path",{fill:"currentColor",d:"M640 384v448h192V384zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32"})]))}}),PBe=DBe,RBe=q({name:"Open",__name:"open",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36"}),N("path",{fill:"currentColor",d:"M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),OBe=RBe,NBe=q({name:"Operation",__name:"operation",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),BBe=NBe,VBe=q({name:"Opportunity",__name:"opportunity",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M384 960v-64h192.064v64zm448-544a350.66 350.66 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.55 351.55 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416m-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288z"})]))}}),$Be=VBe,zBe=q({name:"Orange",__name:"orange",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M544 894.72a382.34 382.34 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.34 382.34 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024zM894.656 480a382.34 382.34 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024zm-134.72-261.248A382.34 382.34 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696zM480 129.344a382.34 382.34 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696zm-261.248 134.72A382.34 382.34 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024zM129.344 544a382.34 382.34 0 0 0 89.408 215.936l182.976-182.912A127.2 127.2 0 0 1 388.032 544zm134.72 261.248A382.34 382.34 0 0 0 480 894.656V635.968a127.2 127.2 0 0 1-33.024-13.696zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128"})]))}}),FBe=zBe,HBe=q({name:"Paperclip",__name:"paperclip",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744z"})]))}}),WBe=HBe,GBe=q({name:"PartlyCloudy",__name:"partly-cloudy",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"}),N("path",{fill:"currentColor",d:"M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6004 6004 0 0 0-49.28 41.408"})]))}}),UBe=GBe,KBe=q({name:"Pear",__name:"pear",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M542.336 258.816a443 443 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.69 162.69 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.69 162.69 0 0 0-130.112-133.12m-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a317 317 0 0 0-9.792 15.104 226.69 226.69 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"})]))}}),jBe=KBe,YBe=q({name:"PhoneFilled",__name:"phone-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048"})]))}}),qBe=YBe,XBe=q({name:"Phone",__name:"phone",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192m0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384"})]))}}),ZBe=XBe,JBe=q({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),oZ=JBe,QBe=q({name:"PictureRounded",__name:"picture-rounded",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 128a384 384 0 1 0 0 768 384 384 0 0 0 0-768m0-64a448 448 0 1 1 0 896 448 448 0 0 1 0-896"}),N("path",{fill:"currentColor",d:"M640 288q64 0 64 64t-64 64-64-64 64-64M214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"})]))}}),eVe=QBe,tVe=q({name:"Picture",__name:"picture",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),N("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64-64-64 64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"})]))}}),nVe=tVe,rVe=q({name:"PieChart",__name:"pie-chart",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.13 384.13 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.13 448.13 0 0 1 448 68.48"}),N("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28M512 64V33.152A448 448 0 0 1 990.848 512H512z"})]))}}),aVe=rVe,oVe=q({name:"Place",__name:"place",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"}),N("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32"}),N("path",{fill:"currentColor",d:"M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912"})]))}}),iVe=oVe,sVe=q({name:"Platform",__name:"platform",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"})]))}}),lVe=sVe,uVe=q({name:"Plus",__name:"plus",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),TA=uVe,cVe=q({name:"Pointer",__name:"pointer",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.27 94.27 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128M359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.27 158.27 0 0 1 185.984 8.32z"})]))}}),fVe=cVe,dVe=q({name:"Position",__name:"position",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992z"})]))}}),vVe=dVe,hVe=q({name:"Postcard",__name:"postcard",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96"}),N("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128M288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32m0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),pVe=hVe,gVe=q({name:"Pouring",__name:"pouring",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672M959.552 480a256 256 0 0 1-256 256h-400A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32"})]))}}),mVe=gVe,yVe=q({name:"Present",__name:"present",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576zm64 0h288V320H544v256h288v64H544zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),N("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32"}),N("path",{fill:"currentColor",d:"M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),N("path",{fill:"currentColor",d:"M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),bVe=yVe,_Ve=q({name:"PriceTag",__name:"price-tag",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),N("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),wVe=_Ve,SVe=q({name:"Printer",__name:"printer",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256zm64-192v320h384V576zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.3 23.3 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.3 23.3 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704zm64-448h384V128H320zm-64 128h64v64h-64zm128 0h64v64h-64z"})]))}}),xVe=SVe,CVe=q({name:"Promotion",__name:"promotion",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),TVe=CVe,kVe=q({name:"QuartzWatch",__name:"quartz-watch",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51q-13.005.48-22.5 10.02c-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5.51-22.15-7.49-31.49zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01m6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01s-3.66-16.16-10.02-22.5c-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01q5.025 17.985 22.5 22.5m242.94 0q17.505-4.545 22.02-22.02c3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5q-9.54 9.51-10.02 22.5c-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49M512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01"}),N("path",{fill:"currentColor",d:"M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5M416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768"}),N("path",{fill:"currentColor",d:"M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02"})]))}}),MVe=kVe,AVe=q({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"})]))}}),iZ=AVe,EVe=q({name:"Rank",__name:"rank",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544z"})]))}}),IVe=EVe,LVe=q({name:"ReadingLamp",__name:"reading-lamp",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m-44.672-768-99.52 448h608.384l-99.52-448zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"}),N("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32m-192-.064h64V960h-64z"})]))}}),DVe=LVe,PVe=q({name:"Reading",__name:"reading",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36"}),N("path",{fill:"currentColor",d:"M480 192h64v704h-64z"})]))}}),RVe=PVe,OVe=q({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),sZ=OVe,NVe=q({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88"})]))}}),lZ=NVe,BVe=q({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),VVe=BVe,$Ve=q({name:"Refrigerator",__name:"refrigerator",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96m32 224h64v96h-64zm0 288h64v96h-64z"})]))}}),zVe=$Ve,FVe=q({name:"RemoveFilled",__name:"remove-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896M288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512"})]))}}),HVe=FVe,WVe=q({name:"Remove",__name:"remove",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),N("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),GVe=WVe,UVe=q({name:"Right",__name:"right",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),KVe=UVe,jVe=q({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"})]))}}),uZ=jVe,YVe=q({name:"School",__name:"school",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M224 128v704h576V128zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),N("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"}),N("path",{fill:"currentColor",d:"M384 832h256v-64a128 128 0 1 0-256 0zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192M320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"})]))}}),qVe=YVe,XVe=q({name:"Scissor",__name:"scissor",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248"})]))}}),ZVe=XVe,JVe=q({name:"Search",__name:"search",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),cZ=JVe,QVe=q({name:"Select",__name:"select",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496"})]))}}),e$e=QVe,t$e=q({name:"Sell",__name:"sell",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248"})]))}}),n$e=t$e,r$e=q({name:"SemiSelect",__name:"semi-select",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64"})]))}}),a$e=r$e,o$e=q({name:"Service",__name:"service",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.06 192.06 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193 193 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0M256 448a128 128 0 1 0 0 256zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128"})]))}}),i$e=o$e,s$e=q({name:"SetUp",__name:"set-up",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96"}),N("path",{fill:"currentColor",d:"M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),N("path",{fill:"currentColor",d:"M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32m160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),N("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),l$e=s$e,u$e=q({name:"Setting",__name:"setting",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357 357 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a352 352 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357 357 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294 294 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293 293 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294 294 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288 288 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293 293 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a288 288 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),c$e=u$e,f$e=q({name:"Share",__name:"share",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.8 127.8 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"})]))}}),d$e=f$e,v$e=q({name:"Ship",__name:"ship",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216zm0-70.272 144.768-65.792L512 171.84zM512 512H148.864l18.24 64H856.96l18.24-64zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2z"})]))}}),h$e=v$e,p$e=q({name:"Shop",__name:"shop",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M704 704h64v192H256V704h64v64h384zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640z"})]))}}),g$e=p$e,m$e=q({name:"ShoppingBag",__name:"shopping-bag",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zm64 0h256a128 128 0 1 0-256 0"}),N("path",{fill:"currentColor",d:"M192 704h640v64H192z"})]))}}),y$e=m$e,b$e=q({name:"ShoppingCartFull",__name:"shopping-cart-full",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"}),N("path",{fill:"currentColor",d:"M699.648 256 608 145.984 516.352 256zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648z"})]))}}),_$e=b$e,w$e=q({name:"ShoppingCart",__name:"shopping-cart",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"})]))}}),S$e=w$e,x$e=q({name:"ShoppingTrolley",__name:"shopping-trolley",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833m439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64zM256 192h622l-96 384H256zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833"})]))}}),C$e=x$e,T$e=q({name:"Smoking",__name:"smoking",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M256 576v128h640V576zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32"}),N("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),k$e=T$e,M$e=q({name:"Soccer",__name:"soccer",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24m72.32-18.176a573.06 573.06 0 0 0 224.832-137.216 573.1 573.1 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.7 567.7 0 0 0 170.432 532.48zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944s-497.92 226.112-610.944 113.152m452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248z"})]))}}),A$e=M$e,E$e=q({name:"SoldOut",__name:"sold-out",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"})]))}}),I$e=E$e,L$e=q({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),fZ=L$e,D$e=q({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),dZ=D$e,P$e=q({name:"Sort",__name:"sort",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0z"})]))}}),R$e=P$e,O$e=q({name:"Stamp",__name:"stamp",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0M128 896v-64h768v64z"})]))}}),N$e=O$e,B$e=q({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M313.6 924.48a70.4 70.4 0 0 1-74.152-5.365 70.4 70.4 0 0 1-27.992-68.875l37.888-220.928L88.96 472.96a70.4 70.4 0 0 1 3.788-104.225A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 100.246-28.595 70.4 70.4 0 0 1 25.962 28.595l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),k0=B$e,V$e=q({name:"Star",__name:"star",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),vZ=V$e,$$e=q({name:"Stopwatch",__name:"stopwatch",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),N("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"})]))}}),z$e=$$e,F$e=q({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),kA=F$e,H$e=q({name:"Sugar",__name:"sugar",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16zm-548.8 198.72h447.168v2.24l60.8-60.8a63.8 63.8 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64 64 0 0 0-10.24 13.248zm0 64q4.128 7.104 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"})]))}}),W$e=H$e,G$e=q({name:"SuitcaseLine",__name:"suitcase-line",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.68-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5S64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5M384 128h256v64H384zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128zm448 0H320V448h384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320z"})]))}}),U$e=G$e,K$e=q({name:"Suitcase",__name:"suitcase",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),N("path",{fill:"currentColor",d:"M384 128v64h256v-64zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64"})]))}}),j$e=K$e,Y$e=q({name:"Sunny",__name:"sunny",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0m543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"})]))}}),q$e=Y$e,X$e=q({name:"Sunrise",__name:"sunrise",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64m129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32m407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0m-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248"})]))}}),Z$e=X$e,J$e=q({name:"Sunset",__name:"sunset",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),Q$e=J$e,eze=q({name:"SwitchButton",__name:"switch-button",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128"}),N("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),tze=eze,nze=q({name:"SwitchFilled",__name:"switch-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36"}),N("path",{fill:"currentColor",d:"M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.66 196.66 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.7 196.7 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42m-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.81-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.7 131.7 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57zm402.12-647.67a196.66 196.66 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.7 196.7 0 0 0 139.08-57.61A196.66 196.66 0 0 0 896 699.31V325.29a196.7 196.7 0 0 0-57.61-139.08m-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82"})]))}}),rze=nze,aze=q({name:"Switch",__name:"switch",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344M64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32"})]))}}),oze=aze,ize=q({name:"TakeawayBox",__name:"takeaway-box",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M832 384H192v448h640zM96 320h832V128H96zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64"})]))}}),sze=ize,lze=q({name:"Ticket",__name:"ticket",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64zm0-416v192h64V416z"})]))}}),uze=lze,cze=q({name:"Tickets",__name:"tickets",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h192v64H320zm0 384h384v64H320z"})]))}}),fze=cze,dze=q({name:"Timer",__name:"timer",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),N("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32"}),N("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"})]))}}),vze=dze,hze=q({name:"ToiletPaper",__name:"toilet-paper",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224M736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224"}),N("path",{fill:"currentColor",d:"M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96"})]))}}),pze=hze,gze=q({name:"Tools",__name:"tools",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M764.416 254.72a351.7 351.7 0 0 1 86.336 149.184H960v192.064H850.752a351.7 351.7 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.7 351.7 0 0 1-86.336-149.312H64v-192h109.248a351.7 351.7 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),mze=gze,yze=q({name:"TopLeft",__name:"top-left",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0z"}),N("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312z"})]))}}),bze=yze,_ze=q({name:"TopRight",__name:"top-right",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0z"}),N("path",{fill:"currentColor",d:"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312z"})]))}}),wze=_ze,Sze=q({name:"Top",__name:"top",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),xze=Sze,Cze=q({name:"TrendCharts",__name:"trend-charts",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M128 896V128h768v768zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0"})]))}}),Tze=Cze,kze=q({name:"TrophyBase",__name:"trophy-base",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4S745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6S256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6S96 217.6 96 224c3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6S352 790.4 352 800s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6s9.6-12.8 9.6-22.4-3.2-16-9.6-22.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4M256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6S320 438.4 320 384V128h384v256q0 81.6-57.6 134.4m172.8-115.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2M768 896H256c-9.6 0-16 3.2-22.4 9.6S224 918.4 224 928s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6s9.6-12.8 9.6-22.4-3.2-16-9.6-22.4-12.8-9.6-22.4-9.6"})]))}}),Mze=kze,Aze=q({name:"Trophy",__name:"trophy",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M480 896V702.08A256.26 256.26 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.26 256.26 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64zm224-448V128H320v320a192 192 0 1 0 384 0m64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448z"})]))}}),Eze=Aze,Ize=q({name:"TurnOff",__name:"turn-off",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36"}),N("path",{fill:"currentColor",d:"M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),Lze=Ize,Dze=q({name:"Umbrella",__name:"umbrella",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0m570.688-320a384.128 384.128 0 0 0-757.376 0z"})]))}}),Pze=Dze,Rze=q({name:"Unlock",__name:"unlock",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),N("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104z"})]))}}),Oze=Rze,Nze=q({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.81 239.81 0 0 1 512 192a239.87 239.87 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),Bze=Nze,Vze=q({name:"Upload",__name:"upload",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),$ze=Vze,zze=q({name:"UserFilled",__name:"user-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"})]))}}),Fze=zze,Hze=q({name:"User",__name:"user",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),Wze=Hze,Gze=q({name:"Van",__name:"van",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672m48.128-192-14.72-96H704v96zM688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160m-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160"})]))}}),Uze=Gze,Kze=q({name:"VideoCameraFilled",__name:"video-camera-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zM192 768v64h384v-64zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0m64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288m-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320m64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0"})]))}}),jze=Kze,Yze=q({name:"VideoCamera",__name:"video-camera",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z"})]))}}),qze=Yze,Xze=q({name:"VideoPause",__name:"video-pause",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32m192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32"})]))}}),Zze=Xze,Jze=q({name:"VideoPlay",__name:"video-play",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"})]))}}),Qze=Jze,eFe=q({name:"View",__name:"view",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),hZ=eFe,tFe=q({name:"WalletFilled",__name:"wallet-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96m-80-544 128 160H384z"})]))}}),nFe=tFe,rFe=q({name:"Wallet",__name:"wallet",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32z"}),N("path",{fill:"currentColor",d:"M128 320v512h768V320zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32"}),N("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),aFe=rFe,oFe=q({name:"WarnTriangleFilled",__name:"warn-triangle-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49s12.92-44.91.01-65.03M554.67 768h-85.33v-85.33h85.33zm0-426.67v298.66h-85.33V341.32z"})]))}}),iFe=oFe,sFe=q({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),i1=sFe,lFe=q({name:"Warning",__name:"warning",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),uFe=lFe,cFe=q({name:"Watch",__name:"watch",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),N("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32"}),N("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32m128-256V128H416v128h-64V64h320v192zM416 768v128h192V768h64v192H352V768z"})]))}}),fFe=cFe,dFe=q({name:"Watermelon",__name:"watermelon",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248zm231.552 141.056a448 448 0 1 1-632-632z"})]))}}),vFe=dFe,hFe=q({name:"WindPower",__name:"wind-power",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32m416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96z"})]))}}),pFe=hFe,gFe=q({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),MA=gFe,mFe=q({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(D(),H("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[N("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),pZ=mFe;const yFe=Object.freeze(Object.defineProperty({__proto__:null,AddLocation:gDe,Aim:yDe,AlarmClock:_De,Apple:SDe,ArrowDown:Yi,ArrowDownBold:CDe,ArrowLeft:Xs,ArrowLeftBold:MDe,ArrowRight:ca,ArrowRightBold:IDe,ArrowUp:a1,ArrowUpBold:PDe,Avatar:NDe,Back:YX,Baseball:$De,Basketball:FDe,Bell:UDe,BellFilled:WDe,Bicycle:jDe,Bottom:QDe,BottomLeft:qDe,BottomRight:ZDe,Bowl:tPe,Box:rPe,Briefcase:oPe,Brush:uPe,BrushFilled:sPe,Burger:fPe,Calendar:qX,Camera:gPe,CameraFilled:hPe,CaretBottom:yPe,CaretLeft:_Pe,CaretRight:xA,CaretTop:XX,Cellphone:CPe,ChatDotRound:kPe,ChatDotSquare:APe,ChatLineRound:IPe,ChatLineSquare:DPe,ChatRound:RPe,ChatSquare:NPe,Check:gp,Checked:$Pe,Cherry:FPe,Chicken:WPe,ChromeFilled:UPe,CircleCheck:o1,CircleCheckFilled:ZX,CircleClose:rl,CircleCloseFilled:_4,CirclePlus:QPe,CirclePlusFilled:ZPe,Clock:CA,Close:Io,CloseBold:nRe,Cloudy:oRe,Coffee:uRe,CoffeeCup:sRe,Coin:fRe,ColdDrink:vRe,Collection:mRe,CollectionTag:pRe,Comment:bRe,Compass:wRe,Connection:xRe,Coordinate:TRe,CopyDocument:MRe,Cpu:ERe,CreditCard:LRe,Crop:PRe,DArrowLeft:Yl,DArrowRight:ql,DCaret:BRe,DataAnalysis:$Re,DataBoard:FRe,DataLine:JX,Delete:QX,DeleteFilled:GRe,DeleteLocation:KRe,Dessert:qRe,Discount:ZRe,Dish:tOe,DishDot:QRe,Document:eZ,DocumentAdd:rOe,DocumentChecked:oOe,DocumentCopy:sOe,DocumentDelete:uOe,DocumentRemove:fOe,Download:hOe,Drizzling:gOe,Edit:_Oe,EditPen:yOe,Eleme:COe,ElemeFilled:SOe,ElementPlus:kOe,Expand:AOe,Failed:IOe,Female:DOe,Files:ROe,Film:NOe,Filter:VOe,Finished:zOe,FirstAidKit:HOe,Flag:GOe,Fold:KOe,Folder:a7e,FolderAdd:YOe,FolderChecked:XOe,FolderDelete:JOe,FolderOpened:e7e,FolderRemove:n7e,Food:i7e,Football:l7e,ForkSpoon:c7e,Fries:d7e,FullScreen:tZ,Goblet:w7e,GobletFull:p7e,GobletSquare:b7e,GobletSquareFull:m7e,GoldMedal:x7e,Goods:M7e,GoodsFilled:T7e,Grape:E7e,Grid:L7e,Guide:P7e,Handbag:O7e,Headset:B7e,Help:F7e,HelpFilled:$7e,Hide:nZ,Histogram:G7e,HomeFilled:K7e,HotWater:Y7e,House:X7e,IceCream:nNe,IceCreamRound:J7e,IceCreamSquare:eNe,IceDrink:aNe,IceTea:iNe,InfoFilled:Ah,Iphone:uNe,Key:fNe,KnifeFork:vNe,Lightning:pNe,Link:mNe,List:bNe,Loading:si,Location:kNe,LocationFilled:SNe,LocationInformation:CNe,Lock:ANe,Lollipop:INe,MagicStick:DNe,Magnet:RNe,Male:NNe,Management:VNe,MapLocation:zNe,Medal:HNe,Memo:GNe,Menu:KNe,Message:XNe,MessageBox:YNe,Mic:JNe,Microphone:eBe,MilkTea:nBe,Minus:rZ,Money:oBe,Monitor:sBe,Moon:fBe,MoonNight:uBe,More:aZ,MoreFilled:eT,MostlyCloudy:pBe,Mouse:mBe,Mug:bBe,Mute:xBe,MuteNotification:wBe,NoSmoking:TBe,Notebook:MBe,Notification:EBe,Odometer:LBe,OfficeBuilding:PBe,Open:OBe,Operation:BBe,Opportunity:$Be,Orange:FBe,Paperclip:WBe,PartlyCloudy:UBe,Pear:jBe,Phone:ZBe,PhoneFilled:qBe,Picture:nVe,PictureFilled:oZ,PictureRounded:eVe,PieChart:aVe,Place:iVe,Platform:lVe,Plus:TA,Pointer:fVe,Position:vVe,Postcard:pVe,Pouring:mVe,Present:bVe,PriceTag:wVe,Printer:xVe,Promotion:TVe,QuartzWatch:MVe,QuestionFilled:iZ,Rank:IVe,Reading:RVe,ReadingLamp:DVe,Refresh:VVe,RefreshLeft:sZ,RefreshRight:lZ,Refrigerator:zVe,Remove:GVe,RemoveFilled:HVe,Right:KVe,ScaleToOriginal:uZ,School:qVe,Scissor:ZVe,Search:cZ,Select:e$e,Sell:n$e,SemiSelect:a$e,Service:i$e,SetUp:l$e,Setting:c$e,Share:d$e,Ship:h$e,Shop:g$e,ShoppingBag:y$e,ShoppingCart:S$e,ShoppingCartFull:_$e,ShoppingTrolley:C$e,Smoking:k$e,Soccer:A$e,SoldOut:I$e,Sort:R$e,SortDown:fZ,SortUp:dZ,Stamp:N$e,Star:vZ,StarFilled:k0,Stopwatch:z$e,SuccessFilled:kA,Sugar:W$e,Suitcase:j$e,SuitcaseLine:U$e,Sunny:q$e,Sunrise:Z$e,Sunset:Q$e,Switch:oze,SwitchButton:tze,SwitchFilled:rze,TakeawayBox:sze,Ticket:uze,Tickets:fze,Timer:vze,ToiletPaper:pze,Tools:mze,Top:xze,TopLeft:bze,TopRight:wze,TrendCharts:Tze,Trophy:Eze,TrophyBase:Mze,TurnOff:Lze,Umbrella:Pze,Unlock:Oze,Upload:$ze,UploadFilled:Bze,User:Wze,UserFilled:Fze,Van:Uze,VideoCamera:qze,VideoCameraFilled:jze,VideoPause:Zze,VideoPlay:Qze,View:hZ,Wallet:aFe,WalletFilled:nFe,WarnTriangleFilled:iFe,Warning:uFe,WarningFilled:i1,Watch:fFe,Watermelon:vFe,WindPower:pFe,ZoomIn:MA,ZoomOut:pZ},Symbol.toStringTag,{value:"Module"})),pn=ne([String,Object,Function]),gZ={Close:Io},AA={Close:Io,SuccessFilled:kA,InfoFilled:Ah,WarningFilled:i1,CircleCloseFilled:_4},hc={primary:Ah,success:kA,warning:i1,error:_4,info:Ah},w4={validating:si,success:o1,error:rl},bFe=["light","dark"],_Fe=Ie({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Jg(hc),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:bFe,default:"light"},showAfter:Number,hideAfter:Number,autoClose:Number}),wFe={close:e=>e instanceof MouseEvent},SFe=q({name:"ElAlert",__name:"alert",props:_Fe,emits:wFe,setup(e,{emit:t}){const{Close:n}=AA,r=e,a=t,o=fr(),i=we("alert"),s=K(!0),l=R(()=>hc[r.type]),u=R(()=>!!(r.description||o.default)),c=f=>{s.value=!1,a("close",f)};return r.showAfter||r.hideAfter||r.autoClose,(f,d)=>(D(),de(Ur,{name:_(i).b("fade"),persisted:""},{default:ee(()=>[xt(N("div",{class:W([_(i).b(),_(i).m(f.type),_(i).is("center",f.center),_(i).is(f.effect)]),role:"alert"},[f.showIcon&&(f.$slots.icon||l.value)?(D(),de(_(Xe),{key:0,class:W([_(i).e("icon"),_(i).is("big",u.value)])},{default:ee(()=>[ue(f.$slots,"icon",{},()=>[(D(),de(Tt(l.value)))])]),_:3},8,["class"])):le("v-if",!0),N("div",{class:W(_(i).e("content"))},[f.title||f.$slots.title?(D(),H("span",{key:0,class:W([_(i).e("title"),{"with-description":u.value}])},[ue(f.$slots,"title",{},()=>[gt(Ae(f.title),1)])],2)):le("v-if",!0),u.value?(D(),H("p",{key:1,class:W(_(i).e("description"))},[ue(f.$slots,"default",{},()=>[gt(Ae(f.description),1)])],2)):le("v-if",!0),f.closable?(D(),H(qe,{key:2},[f.closeText?(D(),H("div",{key:0,class:W([_(i).e("close-btn"),_(i).is("customed")]),onClick:c},Ae(f.closeText),3)):(D(),de(_(Xe),{key:1,class:W(_(i).e("close-btn")),onClick:c},{default:ee(()=>[Q(_(n))]),_:1},8,["class"]))],64)):le("v-if",!0)],2)],2),[[tn,s.value]])]),_:3},8,["name"]))}});var xFe=De(SFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const CFe=_t(xFe),EA=()=>on&&/firefox/i.test(window.navigator.userAgent),mZ=()=>on&&/android/i.test(window.navigator.userAgent);let Ja;const TFe={height:"0",visibility:"hidden",overflow:EA()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},kFe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],CB=e=>{const t=Number.parseFloat(e);return Number.isNaN(t)?e:t};function MFe(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),a=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:kFe.map(i=>[i,t.getPropertyValue(i)]),paddingSize:r,borderSize:a,boxSizing:n}}function TB(e,t=1,n){var r,a;Ja||(Ja=document.createElement("textarea"),((r=e.parentNode)!=null?r:document.body).appendChild(Ja));const{paddingSize:o,borderSize:i,boxSizing:s,contextStyle:l}=MFe(e);l.forEach(([d,v])=>Ja==null?void 0:Ja.style.setProperty(d,v)),Object.entries(TFe).forEach(([d,v])=>Ja==null?void 0:Ja.style.setProperty(d,v,"important")),Ja.value=e.value||e.placeholder||"";let u=Ja.scrollHeight;const c={};s==="border-box"?u=u+i:s==="content-box"&&(u=u-o),Ja.value="";const f=Ja.scrollHeight-o;if(rt(t)){let d=f*t;s==="border-box"&&(d=d+o+i),u=Math.max(d,u),c.minHeight=`${d}px`}if(rt(n)){let d=f*n;s==="border-box"&&(d=d+o+i),u=Math.min(d,u)}return c.height=`${u}px`,(a=Ja.parentNode)==null||a.removeChild(Ja),Ja=void 0,c}const Gn=e=>e,AFe=Ie({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Da=e=>Kl(AFe,e),s1=Ie({id:{type:String,default:void 0},size:wr,disabled:{type:Boolean,default:void 0},modelValue:{type:ne([String,Number,Object]),default:""},modelModifiers:{type:ne(Object),default:()=>({})},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:ne(String),default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:ne([Boolean,Object]),default:!1},autocomplete:{type:ne(String),default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:pn,default:rl},showPassword:Boolean,showWordLimit:Boolean,wordLimitPosition:{type:String,values:["inside","outside"],default:"inside"},suffixIcon:{type:pn},prefixIcon:{type:pn},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:ne([Object,Array,String]),default:()=>Gn({})},autofocus:Boolean,rows:{type:Number,default:2},...Da(["ariaLabel"]),inputmode:{type:ne(String),default:void 0},name:String}),EFe={[dt]:e=>Ge(e),input:e=>Ge(e),change:(e,t)=>Ge(e)&&(t instanceof Event||t===void 0),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},IFe=["class","style"],LFe=/^on[A-Z]/,S4=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=R(()=>((n==null?void 0:n.value)||[]).concat(IFe)),a=bt();return R(a?()=>{var o;return Zg(Object.entries((o=a.proxy)==null?void 0:o.$attrs).filter(([i])=>!r.value.includes(i)&&!(t&&LFe.test(i))))}:()=>({}))},kB={prefix:Math.floor(Math.random()*1e4),current:0},DFe=Symbol("elIdInjection"),IA=()=>bt()?Ue(DFe,kB):kB,ea=e=>{const t=IA(),n=tA();return IX(()=>_(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},Vd=Symbol("formContextKey"),Zs=Symbol("formItemContextKey"),Yr=()=>{const e=Ue(Vd,void 0),t=Ue(Zs,void 0);return{form:e,formItem:t}},Ro=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=K(!1)),r||(r=K(!1));const a=bt(),o=()=>{let u=a==null?void 0:a.parent;for(;u;){if(u.type.name==="ElFormItem")return!1;if(u.type.name==="ElLabelWrap")return!0;u=u.parent}return!1},i=K();let s;const l=R(()=>{var u;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((u=t.inputIds)==null?void 0:u.length)<=1)});return Et(()=>{s=he([vn(e,"id"),n],([u,c])=>{const f=u??(c?void 0:ea().value);f!==i.value&&(t!=null&&t.removeInputId&&!o()&&(i.value&&t.removeInputId(i.value),!(r!=null&&r.value)&&!c&&f&&t.addInputId(f)),i.value=f)},{immediate:!0})}),mc(()=>{s&&s(),t!=null&&t.removeInputId&&i.value&&t.removeInputId(i.value)}),{isLabeledByFormItem:l,inputId:i}},yZ=e=>{const t=bt();return R(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})},vr=(e,t={})=>{const n=K(void 0),r=t.prop?n:yZ("size"),a=t.global?n:FX(),o=t.form?{size:void 0}:Ue(Vd,void 0),i=t.formItem?{size:void 0}:Ue(Zs,void 0);return R(()=>r.value||_(e)||(i==null?void 0:i.size)||(o==null?void 0:o.size)||a.value||"")},jn=e=>{const t=yZ("disabled"),n=Ue(Vd,void 0);return R(()=>{var r,a,o;return(o=(a=(r=t.value)!=null?r:_(e))!=null?a:n==null?void 0:n.disabled)!=null?o:!1})},PFe='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',MB=e=>typeof Element>"u"?!1:e instanceof Element,RFe=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,AB=e=>Array.from(e.querySelectorAll(PFe)).filter(t=>Qg(t)&&RFe(t)),Qg=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},G2=function(e,t,...n){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const a=document.createEvent(r);return a.initEvent(t,...n),e.dispatchEvent(a),e},bZ=e=>!e.getAttribute("aria-owns"),_Z=(e,t,n)=>{const{parentNode:r}=e;if(!r)return null;const a=r.querySelectorAll(n),o=Array.prototype.indexOf.call(a,e);return a[o+t]||null},l1=(e,t)=>{if(!e||!e.focus)return;let n=!1;MB(e)&&!Qg(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),MB(e)&&n&&e.removeAttribute("tabindex")},U2=e=>{e&&(l1(e),!bZ(e)&&e.click())};function au(e,{disabled:t,beforeFocus:n,afterFocus:r,beforeBlur:a,afterBlur:o}={}){const i=bt(),{emit:s}=i,l=Ln(),u=K(!1),c=v=>{const h=Je(n)?n(v):!1;_(t)||u.value||h||(u.value=!0,s("focus",v),r==null||r())},f=v=>{var h;const p=Je(a)?a(v):!1;_(t)||v.relatedTarget&&((h=l.value)!=null&&h.contains(v.relatedTarget))||p||(u.value=!1,s("blur",v),o==null||o())},d=v=>{var h,p;_(t)||Qg(v.target)||(h=l.value)!=null&&h.contains(document.activeElement)&&l.value!==document.activeElement||(p=e.value)==null||p.focus()};return he([l,()=>_(t)],([v,h])=>{v&&(h?v.removeAttribute("tabindex"):v.setAttribute("tabindex","-1"))}),fn(l,"focus",c,!0),fn(l,"blur",f,!0),fn(l,"click",d,!0),{isFocused:u,wrapperRef:l,handleFocus:c,handleBlur:f}}const OFe=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function u1({afterComposition:e,emit:t}){const n=K(!1),r=s=>{t==null||t("compositionstart",s),n.value=!0},a=s=>{var l;t==null||t("compositionupdate",s);const u=(l=s.target)==null?void 0:l.value,c=u[u.length-1]||"";n.value=!OFe(c)},o=s=>{t==null||t("compositionend",s),n.value&&(n.value=!1,ze(()=>e(s)))};return{isComposing:n,handleComposition:s=>{s.type==="compositionend"?o(s):a(s)},handleCompositionStart:r,handleCompositionUpdate:a,handleCompositionEnd:o}}function NFe(e){let t;function n(){if(e.value==null)return;const{selectionStart:a,selectionEnd:o,value:i}=e.value;if(a==null||o==null)return;const s=i.slice(0,Math.max(0,a)),l=i.slice(Math.max(0,o));t={selectionStart:a,selectionEnd:o,value:i,beforeTxt:s,afterTxt:l}}function r(){if(e.value==null||t==null)return;const{value:a}=e.value,{beforeTxt:o,afterTxt:i,selectionStart:s}=t;if(o==null||i==null||s==null)return;let l=a.length;if(a.endsWith(i))l=a.length-i.length;else if(a.startsWith(o))l=o.length;else{const u=o[s-1],c=a.indexOf(u,s-1);c!==-1&&(l=c+1)}e.value.setSelectionRange(l,l)}return[n,r]}const BFe=["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode"],VFe=["id","name","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role"],$Fe="ElInput",zFe=q({name:$Fe,inheritAttrs:!1,__name:"input",props:s1,emits:EFe,setup(e,{expose:t,emit:n}){const r=e,a=n,o=el(),i=S4(),s=fr(),l=R(()=>[r.type==="textarea"?g.b():p.b(),p.m(v.value),p.is("disabled",h.value),p.is("exceed",G.value),{[p.b("group")]:s.prepend||s.append,[p.m("prefix")]:s.prefix||r.prefixIcon,[p.m("suffix")]:s.suffix||r.suffixIcon||r.clearable||r.showPassword,[p.bm("suffix","password-clear")]:V.value&&B.value,[p.b("hidden")]:r.type==="hidden"},o.class]),u=R(()=>[p.e("wrapper"),p.is("focus",M.value)]),{form:c,formItem:f}=Yr(),{inputId:d}=Ro(r,{formItemContext:f}),v=vr(),h=jn(),p=we("input"),g=we("textarea"),m=Ln(),y=Ln(),b=K(!1),w=K(!1),S=K(),x=Ln(r.inputStyle),C=R(()=>m.value||y.value),{wrapperRef:T,isFocused:M,handleFocus:k,handleBlur:E}=au(C,{disabled:h,afterBlur(){var xe;r.validateEvent&&((xe=f==null?void 0:f.validate)==null||xe.call(f,"blur").catch(je=>void 0))}}),A=R(()=>{var xe;return(xe=c==null?void 0:c.statusIcon)!=null?xe:!1}),I=R(()=>(f==null?void 0:f.validateState)||""),O=R(()=>I.value&&w4[I.value]),z=R(()=>w.value?hZ:nZ),$=R(()=>[o.style]),P=R(()=>[r.inputStyle,x.value,{resize:r.resize}]),L=R(()=>sr(r.modelValue)?"":String(r.modelValue)),V=R(()=>r.clearable&&!h.value&&!r.readonly&&!!L.value&&(M.value||b.value)),B=R(()=>r.showPassword&&!h.value&&!!L.value),F=R(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!h.value&&!r.readonly&&!r.showPassword),U=R(()=>L.value.length),G=R(()=>!!F.value&&U.value>Number(r.maxlength)),Y=R(()=>!!s.suffix||!!r.suffixIcon||V.value||r.showPassword||F.value||!!I.value&&A.value),X=R(()=>!!Object.keys(r.modelModifiers).length),[te,oe]=NFe(m);On(y,xe=>{if(ie(),!F.value||r.resize!=="both"&&r.resize!=="horizontal")return;const je=xe[0],{width:Ke}=je.contentRect;S.value={right:`calc(100% - ${Ke+22-10}px)`}});const re=()=>{const{type:xe,autosize:je}=r;if(!(!on||xe!=="textarea"||!y.value))if(je){const Ke=St(je)?je.minRows:void 0,en=St(je)?je.maxRows:void 0,Qe=TB(y.value,Ke,en);x.value={overflowY:"hidden",...Qe},ze(()=>{y.value.offsetHeight,x.value=Qe})}else x.value={minHeight:TB(y.value).minHeight}},ie=(xe=>{let je=!1;return()=>{var Ke;if(je||!r.autosize)return;((Ke=y.value)==null?void 0:Ke.offsetParent)===null||(setTimeout(xe),je=!0)}})(re),Z=()=>{const xe=C.value,je=r.formatter?r.formatter(L.value):L.value;!xe||xe.value===je||r.type==="file"||(xe.value=je)},se=xe=>{const{trim:je,number:Ke}=r.modelModifiers;return je&&(xe=xe.trim()),Ke&&(xe=`${CB(xe)}`),r.formatter&&r.parser&&(xe=r.parser(xe)),xe},J=async xe=>{if(fe.value)return;const{lazy:je}=r.modelModifiers;let{value:Ke}=xe.target;if(je){a(dr,Ke);return}if(Ke=se(Ke),String(Ke)===L.value){r.formatter&&Z();return}te(),a(dt,Ke),a(dr,Ke),await ze(),(r.formatter&&r.parser||!X.value)&&Z(),oe()},ae=async xe=>{let{value:je}=xe.target;je=se(je),r.modelModifiers.lazy&&a(dt,je),a(Ht,je,xe),await ze(),Z()},{isComposing:fe,handleCompositionStart:ve,handleCompositionUpdate:me,handleCompositionEnd:pe}=u1({emit:a,afterComposition:J}),Ne=()=>{w.value=!w.value},Ee=()=>{var xe;return(xe=C.value)==null?void 0:xe.focus()},_e=()=>{var xe;return(xe=C.value)==null?void 0:xe.blur()},be=xe=>{b.value=!1,a("mouseleave",xe)},Fe=xe=>{b.value=!0,a("mouseenter",xe)},Oe=xe=>{a("keydown",xe)},Ze=()=>{var xe;(xe=C.value)==null||xe.select()},nt=()=>{a(dt,""),a(Ht,""),a("clear"),a(dr,"")};return he(()=>r.modelValue,()=>{var xe;ze(()=>re()),r.validateEvent&&((xe=f==null?void 0:f.validate)==null||xe.call(f,"change").catch(je=>void 0))}),he(L,xe=>{if(!C.value)return;const{trim:je,number:Ke}=r.modelModifiers,en=C.value.value,Qe=(Ke||r.type==="number")&&!/^0\d/.test(en)?`${CB(en)}`:en;Qe!==xe&&(document.activeElement===C.value&&C.value.type!=="range"&&je&&Qe.trim()===xe||Z())}),he(()=>r.type,async()=>{await ze(),Z(),re()}),Et(()=>{!r.formatter&&r.parser,Z(),ze(re)}),t({input:m,textarea:y,ref:C,textareaStyle:P,autosize:vn(r,"autosize"),isComposing:fe,focus:Ee,blur:_e,select:Ze,clear:nt,resizeTextarea:re}),(xe,je)=>(D(),H("div",{class:W([l.value,{[_(p).bm("group","append")]:xe.$slots.append,[_(p).bm("group","prepend")]:xe.$slots.prepend}]),style:et($.value),onMouseenter:Fe,onMouseleave:be},[le(" input "),xe.type!=="textarea"?(D(),H(qe,{key:0},[le(" prepend slot "),xe.$slots.prepend?(D(),H("div",{key:0,class:W(_(p).be("group","prepend"))},[ue(xe.$slots,"prepend")],2)):le("v-if",!0),N("div",{ref_key:"wrapperRef",ref:T,class:W(u.value)},[le(" prefix slot "),xe.$slots.prefix||xe.prefixIcon?(D(),H("span",{key:0,class:W(_(p).e("prefix"))},[N("span",{class:W(_(p).e("prefix-inner"))},[ue(xe.$slots,"prefix"),xe.prefixIcon?(D(),de(_(Xe),{key:0,class:W(_(p).e("icon"))},{default:ee(()=>[(D(),de(Tt(xe.prefixIcon)))]),_:1},8,["class"])):le("v-if",!0)],2)],2)):le("v-if",!0),N("input",It({id:_(d),ref_key:"input",ref:m,class:_(p).e("inner")},_(i),{name:xe.name,minlength:xe.minlength,maxlength:xe.maxlength,type:xe.showPassword?w.value?"text":"password":xe.type,disabled:_(h),readonly:xe.readonly,autocomplete:xe.autocomplete,tabindex:xe.tabindex,"aria-label":xe.ariaLabel,placeholder:xe.placeholder,style:xe.inputStyle,form:xe.form,autofocus:xe.autofocus,role:xe.containerRole,inputmode:xe.inputmode,onCompositionstart:je[0]||(je[0]=(...Ke)=>_(ve)&&_(ve)(...Ke)),onCompositionupdate:je[1]||(je[1]=(...Ke)=>_(me)&&_(me)(...Ke)),onCompositionend:je[2]||(je[2]=(...Ke)=>_(pe)&&_(pe)(...Ke)),onInput:J,onChange:ae,onKeydown:Oe}),null,16,BFe),le(" suffix slot "),Y.value?(D(),H("span",{key:1,class:W(_(p).e("suffix"))},[N("span",{class:W(_(p).e("suffix-inner"))},[!V.value||!B.value||!F.value?(D(),H(qe,{key:0},[ue(xe.$slots,"suffix"),xe.suffixIcon?(D(),de(_(Xe),{key:0,class:W(_(p).e("icon"))},{default:ee(()=>[(D(),de(Tt(xe.suffixIcon)))]),_:1},8,["class"])):le("v-if",!0)],64)):le("v-if",!0),V.value?(D(),de(_(Xe),{key:1,class:W([_(p).e("icon"),_(p).e("clear")]),onMousedown:ut(_(cn),["prevent"]),onClick:nt},{default:ee(()=>[(D(),de(Tt(xe.clearIcon)))]),_:1},8,["class","onMousedown"])):le("v-if",!0),B.value?(D(),de(_(Xe),{key:2,class:W([_(p).e("icon"),_(p).e("password")]),onClick:Ne,onMousedown:ut(_(cn),["prevent"]),onMouseup:ut(_(cn),["prevent"])},{default:ee(()=>[(D(),de(Tt(z.value)))]),_:1},8,["class","onMousedown","onMouseup"])):le("v-if",!0),F.value?(D(),H("span",{key:3,class:W([_(p).e("count"),_(p).is("outside",xe.wordLimitPosition==="outside")])},[N("span",{class:W(_(p).e("count-inner"))},Ae(U.value)+" / "+Ae(xe.maxlength),3)],2)):le("v-if",!0),I.value&&O.value&&A.value?(D(),de(_(Xe),{key:4,class:W([_(p).e("icon"),_(p).e("validateIcon"),_(p).is("loading",I.value==="validating")])},{default:ee(()=>[(D(),de(Tt(O.value)))]),_:1},8,["class"])):le("v-if",!0)],2)],2)):le("v-if",!0)],2),le(" append slot "),xe.$slots.append?(D(),H("div",{key:1,class:W(_(p).be("group","append"))},[ue(xe.$slots,"append")],2)):le("v-if",!0)],64)):(D(),H(qe,{key:1},[le(" textarea "),N("textarea",It({id:_(d),ref_key:"textarea",ref:y,class:[_(g).e("inner"),_(p).is("focus",_(M))]},_(i),{name:xe.name,minlength:xe.minlength,maxlength:xe.maxlength,tabindex:xe.tabindex,disabled:_(h),readonly:xe.readonly,autocomplete:xe.autocomplete,style:P.value,"aria-label":xe.ariaLabel,placeholder:xe.placeholder,form:xe.form,autofocus:xe.autofocus,rows:xe.rows,role:xe.containerRole,onCompositionstart:je[3]||(je[3]=(...Ke)=>_(ve)&&_(ve)(...Ke)),onCompositionupdate:je[4]||(je[4]=(...Ke)=>_(me)&&_(me)(...Ke)),onCompositionend:je[5]||(je[5]=(...Ke)=>_(pe)&&_(pe)(...Ke)),onInput:J,onFocus:je[6]||(je[6]=(...Ke)=>_(k)&&_(k)(...Ke)),onBlur:je[7]||(je[7]=(...Ke)=>_(E)&&_(E)(...Ke)),onChange:ae,onKeydown:Oe}),null,16,VFe),F.value?(D(),H("span",{key:0,style:et(S.value),class:W([_(p).e("count"),_(p).is("outside",xe.wordLimitPosition==="outside")])},Ae(U.value)+" / "+Ae(xe.maxlength),7)):le("v-if",!0)],64))],38))}});var FFe=De(zFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const ka=_t(FFe),vv=4,wZ={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},HFe=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),LA=Symbol("scrollbarContextKey"),WFe=Ie({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),GFe="Thumb",UFe=q({__name:"thumb",props:WFe,setup(e){const t=e,n=Ue(LA),r=we("scrollbar");n||cr(GFe,"can not inject scrollbar context");const a=K(),o=K(),i=K({}),s=K(!1);let l=!1,u=!1,c=0,f=0,d=on?document.onselectstart:null;const v=R(()=>wZ[t.vertical?"vertical":"horizontal"]),h=R(()=>HFe({size:t.size,move:t.move,bar:v.value})),p=R(()=>a.value[v.value.offset]**2/n.wrapElement[v.value.scrollSize]/t.ratio/o.value[v.value.offset]),g=T=>{var M;if(T.stopPropagation(),T.ctrlKey||[1,2].includes(T.button))return;(M=window.getSelection())==null||M.removeAllRanges(),y(T);const k=T.currentTarget;k&&(i.value[v.value.axis]=k[v.value.offset]-(T[v.value.client]-k.getBoundingClientRect()[v.value.direction]))},m=T=>{if(!o.value||!a.value||!n.wrapElement)return;const M=Math.abs(T.target.getBoundingClientRect()[v.value.direction]-T[v.value.client]),k=o.value[v.value.offset]/2,E=(M-k)*100*p.value/a.value[v.value.offset];n.wrapElement[v.value.scroll]=E*n.wrapElement[v.value.scrollSize]/100},y=T=>{T.stopImmediatePropagation(),l=!0,c=n.wrapElement.scrollHeight,f=n.wrapElement.scrollWidth,document.addEventListener("mousemove",b),document.addEventListener("mouseup",w),d=document.onselectstart,document.onselectstart=()=>!1},b=T=>{if(!a.value||!o.value||l===!1)return;const M=i.value[v.value.axis];if(!M)return;const k=(a.value.getBoundingClientRect()[v.value.direction]-T[v.value.client])*-1,E=o.value[v.value.offset]-M,A=(k-E)*100*p.value/a.value[v.value.offset];v.value.scroll==="scrollLeft"?n.wrapElement[v.value.scroll]=A*f/100:n.wrapElement[v.value.scroll]=A*c/100},w=()=>{l=!1,i.value[v.value.axis]=0,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",w),C(),u&&(s.value=!1)},S=()=>{u=!1,s.value=!!t.size},x=()=>{u=!0,s.value=l};un(()=>{C(),document.removeEventListener("mouseup",w)});const C=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return fn(vn(n,"scrollbarElement"),"mousemove",S),fn(vn(n,"scrollbarElement"),"mouseleave",x),(T,M)=>(D(),de(Ur,{name:_(r).b("fade"),persisted:""},{default:ee(()=>[xt(N("div",{ref_key:"instance",ref:a,class:W([_(r).e("bar"),_(r).is(v.value.key)]),onMousedown:m,onClick:M[0]||(M[0]=ut(()=>{},["stop"]))},[N("div",{ref_key:"thumb",ref:o,class:W(_(r).e("thumb")),style:et(h.value),onMousedown:g},null,38)],34),[[tn,T.always||s.value]])]),_:1},8,["name"]))}});var EB=De(UFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const KFe=Ie({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),jFe=q({__name:"bar",props:KFe,setup(e,{expose:t}){const n=e,r=Ue(LA),a=K(0),o=K(0),i=K(""),s=K(""),l=K(1),u=K(1);return t({handleScroll:d=>{if(d){const v=d.offsetHeight-vv,h=d.offsetWidth-vv;o.value=d.scrollTop*100/v*l.value,a.value=d.scrollLeft*100/h*u.value}},update:()=>{const d=r==null?void 0:r.wrapElement;if(!d)return;const v=d.offsetHeight-vv,h=d.offsetWidth-vv,p=v**2/d.scrollHeight,g=h**2/d.scrollWidth,m=Math.max(p,n.minSize),y=Math.max(g,n.minSize);l.value=p/(v-p)/(m/(v-m)),u.value=g/(h-g)/(y/(h-y)),s.value=m+vv<v?`${m}px`:"",i.value=y+vv<h?`${y}px`:""}}),(d,v)=>(D(),H(qe,null,[Q(EB,{move:a.value,ratio:u.value,size:i.value,always:d.always},null,8,["move","ratio","size","always"]),Q(EB,{move:o.value,ratio:l.value,size:s.value,vertical:"",always:d.always},null,8,["move","ratio","size","always"])],64))}});var YFe=De(jFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const qFe=Ie({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:ne([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...Da(["ariaLabel","ariaOrientation"])}),SZ={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(rt)},XFe=["tabindex"],ZFe="ElScrollbar",JFe=q({name:ZFe,__name:"scrollbar",props:qFe,emits:SZ,setup(e,{expose:t,emit:n}){const r=e,a=n,o=we("scrollbar");let i,s,l,u=0,c=0,f="";const d={bottom:!1,top:!1,right:!1,left:!1},v=K(),h=K(),p=K(),g=K(),m=R(()=>{const A={},I=Un(r.height),O=Un(r.maxHeight);return I&&(A.height=I),O&&(A.maxHeight=O),[r.wrapStyle,A]}),y=R(()=>[r.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!r.native}]),b=R(()=>[o.e("view"),r.viewClass]),w=A=>{var I;return(I=d[A])!=null?I:!1},S={top:"bottom",bottom:"top",left:"right",right:"left"},x=A=>{const I=S[f];if(!I)return;const O=A[f],z=A[I];O&&!d[f]&&(d[f]=!0),!z&&d[I]&&(d[I]=!1)},C=()=>{var A;if(h.value){(A=g.value)==null||A.handleScroll(h.value);const I=u,O=c;u=h.value.scrollTop,c=h.value.scrollLeft;const z={bottom:u+h.value.clientHeight>=h.value.scrollHeight-r.distance,top:u<=r.distance&&I!==0,right:c+h.value.clientWidth>=h.value.scrollWidth-r.distance&&O!==c,left:c<=r.distance&&O!==0};if(a("scroll",{scrollTop:u,scrollLeft:c}),I!==u&&(f=u>I?"bottom":"top"),O!==c&&(f=c>O?"right":"left"),r.distance>0){if(w(f))return;x(z)}z[f]&&a("end-reached",f)}};function T(A,I){St(A)?h.value.scrollTo(A):rt(A)&&rt(I)&&h.value.scrollTo(A,I)}const M=A=>{rt(A)&&(h.value.scrollTop=A)},k=A=>{rt(A)&&(h.value.scrollLeft=A)},E=()=>{var A;(A=g.value)==null||A.update(),d[f]=!1};return he(()=>r.noresize,A=>{A?(i==null||i(),s==null||s(),l==null||l()):({stop:i}=On(p,E),{stop:s}=On(h,E),l=fn("resize",E))},{immediate:!0}),he(()=>[r.maxHeight,r.height],()=>{r.native||ze(()=>{var A;E(),h.value&&((A=g.value)==null||A.handleScroll(h.value))})}),Ut(LA,sn({scrollbarElement:v,wrapElement:h})),_m(()=>{h.value&&(h.value.scrollTop=u,h.value.scrollLeft=c)}),Et(()=>{r.native||ze(()=>{E()})}),Lo(()=>E()),t({wrapRef:h,update:E,scrollTo:T,setScrollTop:M,setScrollLeft:k,handleScroll:C}),(A,I)=>(D(),H("div",{ref_key:"scrollbarRef",ref:v,class:W(_(o).b())},[N("div",{ref_key:"wrapRef",ref:h,class:W(y.value),style:et(m.value),tabindex:A.tabindex,onScroll:C},[(D(),de(Tt(A.tag),{id:A.id,ref_key:"resizeRef",ref:p,class:W(b.value),style:et(A.viewStyle),role:A.role,"aria-label":A.ariaLabel,"aria-orientation":A.ariaOrientation},{default:ee(()=>[ue(A.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,XFe),A.native?le("v-if",!0):(D(),de(YFe,{key:0,ref_key:"barRef",ref:g,always:A.always,"min-size":A.minSize},null,8,["always","min-size"]))],2))}});var QFe=De(JFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const Ni=_t(QFe),DA=Symbol("popper"),xZ=Symbol("popperContent"),CZ=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],TZ=Ie({role:{type:String,values:CZ,default:"tooltip"}}),eHe=q({name:"ElPopper",inheritAttrs:!1,__name:"popper",props:TZ,setup(e,{expose:t}){const n=e,r=K(),a=K(),o=K(),i=K(),s=R(()=>n.role),l={triggerRef:r,popperInstanceRef:a,contentRef:o,referenceRef:i,role:s};return t(l),Ut(DA,l),(u,c)=>ue(u.$slots,"default")}});var tHe=De(eHe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const nHe=q({name:"ElPopperArrow",inheritAttrs:!1,__name:"arrow",setup(e,{expose:t}){const n=we("popper"),{arrowRef:r,arrowStyle:a}=Ue(xZ,void 0);return un(()=>{r.value=void 0}),t({arrowRef:r}),(o,i)=>(D(),H("span",{ref_key:"arrowRef",ref:r,class:W(_(n).e("arrow")),style:et(_(a)),"data-popper-arrow":""},null,6))}});var rHe=De(nHe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const kZ=Ie({virtualRef:{type:ne(Object)},virtualTriggering:Boolean,onMouseenter:{type:ne(Function)},onMouseleave:{type:ne(Function)},onClick:{type:ne(Function)},onKeydown:{type:ne(Function)},onFocus:{type:ne(Function)},onBlur:{type:ne(Function)},onContextmenu:{type:ne(Function)},id:String,open:Boolean}),MZ=Symbol("elForwardRef"),aHe=e=>{Ut(MZ,{setForwardRef:n=>{e.value=n}})},oHe=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),iHe="ElOnlyChild",AZ=q({name:iHe,setup(e,{slots:t,attrs:n}){var r;const a=Ue(MZ),o=oHe((r=a==null?void 0:a.setForwardRef)!=null?r:cn);return()=>{var i;const s=(i=t.default)==null?void 0:i.call(t,n);if(!s)return null;const[l,u]=EZ(s);return l?xt(Li(l,n),[[o]]):null}}});function EZ(e){if(!e)return[null,0];const t=e,n=t.filter(r=>r.type!==$n).length;for(const r of t){if(St(r))switch(r.type){case $n:continue;case ks:case"svg":return[IB(r),n];case qe:return EZ(r.children);default:return[r,n]}return[IB(r),n]}return[null,0]}function IB(e){const t=we("only-child");return Q("span",{class:t.e("content")},[e])}const sHe=q({name:"ElPopperTrigger",inheritAttrs:!1,__name:"trigger",props:kZ,setup(e,{expose:t}){const n=e,{role:r,triggerRef:a}=Ue(DA,void 0);aHe(a);const o=R(()=>s.value?n.id:void 0),i=R(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=R(()=>{if(r&&r.value!=="tooltip")return r.value}),l=R(()=>s.value?`${n.open}`:void 0);let u;const c=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return Et(()=>{he(()=>n.virtualRef,f=>{f&&(a.value=yr(f))},{immediate:!0}),he(a,(f,d)=>{u==null||u(),u=void 0,oo(d)&&c.forEach(v=>{const h=n[v];h&&d.removeEventListener(v.slice(2).toLowerCase(),h,["onFocus","onBlur"].includes(v))}),oo(f)&&(c.forEach(v=>{const h=n[v];h&&f.addEventListener(v.slice(2).toLowerCase(),h,["onFocus","onBlur"].includes(v))}),Qg(f)&&(u=he([o,i,s,l],v=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,p)=>{sr(v[p])?f.removeAttribute(h):f.setAttribute(h,v[p])})},{immediate:!0}))),oo(d)&&Qg(d)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(v=>d.removeAttribute(v))},{immediate:!0})}),un(()=>{if(u==null||u(),u=void 0,a.value&&oo(a.value)){const f=a.value;c.forEach(d=>{const v=n[d];v&&f.removeEventListener(d.slice(2).toLowerCase(),v,["onFocus","onBlur"].includes(d))}),a.value=void 0}}),t({triggerRef:a}),(f,d)=>f.virtualTriggering?le("v-if",!0):(D(),de(_(AZ),It({key:0},f.$attrs,{"aria-controls":o.value,"aria-describedby":i.value,"aria-expanded":l.value,"aria-haspopup":s.value}),{default:ee(()=>[ue(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var lHe=De(sHe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const FS="focus-trap.focus-after-trapped",HS="focus-trap.focus-after-released",uHe="focus-trap.focusout-prevented",LB={cancelable:!0,bubbles:!1},cHe={cancelable:!0,bubbles:!1},DB="focusAfterTrapped",PB="focusAfterReleased",IZ=Symbol("elFocusTrap"),PA=K(),x4=K(0),RA=K(0);let Jy=0;const LZ=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},RB=(e,t)=>{for(const n of e)if(!fHe(n,t))return n},fHe=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},dHe=e=>{const t=LZ(e),n=RB(t,e),r=RB(t.reverse(),e);return[n,r]},vHe=e=>e instanceof HTMLInputElement&&"select"in e,Su=(e,t)=>{if(e){const n=document.activeElement;l1(e,{preventScroll:!0}),RA.value=window.performance.now(),e!==n&&vHe(e)&&t&&e.select()}};function OB(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const hHe=()=>{let e=[];return{push:r=>{const a=e[0];a&&r!==a&&a.pause(),e=OB(e,r),e.unshift(r)},remove:r=>{var a,o;e=OB(e,r),(o=(a=e[0])==null?void 0:a.resume)==null||o.call(a)}}},pHe=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Su(r,t),document.activeElement!==n)return},NB=hHe(),gHe=()=>x4.value>RA.value,Qy=()=>{PA.value="pointer",x4.value=window.performance.now()},BB=()=>{PA.value="keyboard",x4.value=window.performance.now()},mHe=()=>(Et(()=>{Jy===0&&(document.addEventListener("mousedown",Qy),document.addEventListener("touchstart",Qy),document.addEventListener("keydown",BB)),Jy++}),un(()=>{Jy--,Jy<=0&&(document.removeEventListener("mousedown",Qy),document.removeEventListener("touchstart",Qy),document.removeEventListener("keydown",BB))}),{focusReason:PA,lastUserFocusTimestamp:x4,lastAutomatedFocusTimestamp:RA}),e2=e=>new CustomEvent(uHe,{...cHe,detail:e}),ke={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Dr=(e,t,{checkForDefaultPrevented:n=!0}={})=>a=>{const o=e==null?void 0:e(a);if(n===!1||!o)return t==null?void 0:t(a)},VB=e=>t=>t.pointerType==="mouse"?e(t):void 0,xn=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=DZ(e);if(t){if(Object.values(ke).includes(t))return t;switch(t){case" ":return ke.space;default:return""}}return""},DZ=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&mZ()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t};let Tv=[];const $B=e=>{xn(e)===ke.esc&&Tv.forEach(n=>n(e))},yHe=e=>{Et(()=>{Tv.length===0&&document.addEventListener("keydown",$B),on&&Tv.push(e)}),un(()=>{Tv=Tv.filter(t=>t!==e),Tv.length===0&&on&&document.removeEventListener("keydown",$B)})},bHe=q({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[DB,PB,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=K();let r,a;const{focusReason:o}=mHe();yHe(h=>{e.trapped&&!i.paused&&t("release-requested",h)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=h=>{if(!e.loop&&!e.trapped||i.paused)return;const{altKey:p,ctrlKey:g,metaKey:m,currentTarget:y,shiftKey:b}=h,{loop:w}=e,x=xn(h)===ke.tab&&!p&&!g&&!m,C=document.activeElement;if(x&&C){const T=y,[M,k]=dHe(T);if(M&&k){if(!b&&C===k){const A=e2({focusReason:o.value});t("focusout-prevented",A),A.defaultPrevented||(h.preventDefault(),w&&Su(M,!0))}else if(b&&[M,T].includes(C)){const A=e2({focusReason:o.value});t("focusout-prevented",A),A.defaultPrevented||(h.preventDefault(),w&&Su(k,!0))}}else if(C===T){const A=e2({focusReason:o.value});t("focusout-prevented",A),A.defaultPrevented||h.preventDefault()}}};Ut(IZ,{focusTrapRef:n,onKeydown:s}),he(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),he([n],([h],[p])=>{h&&(h.addEventListener("keydown",s),h.addEventListener("focusin",c),h.addEventListener("focusout",f)),p&&(p.removeEventListener("keydown",s),p.removeEventListener("focusin",c),p.removeEventListener("focusout",f))});const l=h=>{t(DB,h)},u=h=>t(PB,h),c=h=>{const p=_(n);if(!p)return;const g=h.target,m=h.relatedTarget,y=g&&p.contains(g);e.trapped||m&&p.contains(m)||(r=m),y&&t("focusin",h),!i.paused&&e.trapped&&(y?a=g:Su(a,!0))},f=h=>{const p=_(n);if(!(i.paused||!p))if(e.trapped){const g=h.relatedTarget;!sr(g)&&!p.contains(g)&&setTimeout(()=>{if(!i.paused&&e.trapped){const m=e2({focusReason:o.value});t("focusout-prevented",m),m.defaultPrevented||Su(a,!0)}},0)}else{const g=h.target;g&&p.contains(g)||t("focusout",h)}};async function d(){await ze();const h=_(n);if(h){NB.push(i);const p=h.contains(document.activeElement)?r:document.activeElement;if(r=p,!h.contains(p)){const m=new Event(FS,LB);h.addEventListener(FS,l),h.dispatchEvent(m),m.defaultPrevented||ze(()=>{let y=e.focusStartEl;Ge(y)||(Su(y),document.activeElement!==y&&(y="first")),y==="first"&&pHe(LZ(h),!0),(document.activeElement===p||y==="container")&&Su(h)})}}}function v(){const h=_(n);if(h){h.removeEventListener(FS,l);const p=new CustomEvent(HS,{...LB,detail:{focusReason:o.value}});h.addEventListener(HS,u),h.dispatchEvent(p),!p.defaultPrevented&&(o.value=="keyboard"||!gHe()||h.contains(document.activeElement))&&Su(r??document.body),h.removeEventListener(HS,u),NB.remove(i),r=null,a=null}}return Et(()=>{e.trapped&&d(),he(()=>e.trapped,h=>{h?d():v()})}),un(()=>{e.trapped&&v(),n.value&&(n.value.removeEventListener("keydown",s),n.value.removeEventListener("focusin",c),n.value.removeEventListener("focusout",f),n.value=void 0),r=null,a=null}),{onKeydown:s}}});function _He(e,t,n,r,a,o){return ue(e.$slots,"default",{handleKeydown:e.onKeydown})}var mp=De(bHe,[["render",_He],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]),co="top",li="bottom",ui="right",fo="left",OA="auto",c1=[co,li,ui,fo],Eh="start",em="end",wHe="clippingParents",PZ="viewport",o0="popper",SHe="reference",zB=c1.reduce(function(e,t){return e.concat([t+"-"+Eh,t+"-"+em])},[]),ou=[].concat(c1,[OA]).reduce(function(e,t){return e.concat([t,t+"-"+Eh,t+"-"+em])},[]),xHe="beforeRead",CHe="read",THe="afterRead",kHe="beforeMain",MHe="main",AHe="afterMain",EHe="beforeWrite",IHe="write",LHe="afterWrite",DHe=[xHe,CHe,THe,kHe,MHe,AHe,EHe,IHe,LHe];function Js(e){return e?(e.nodeName||"").toLowerCase():null}function qi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ih(e){var t=qi(e).Element;return e instanceof t||e instanceof Element}function ni(e){var t=qi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function NA(e){if(typeof ShadowRoot>"u")return!1;var t=qi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function PHe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},o=t.elements[n];!ni(o)||!Js(o)||(Object.assign(o.style,r),Object.keys(a).forEach(function(i){var s=a[i];s===!1?o.removeAttribute(i):o.setAttribute(i,s===!0?"":s)}))})}function RHe(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(r){var a=t.elements[r],o=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=i.reduce(function(l,u){return l[u]="",l},{});!ni(a)||!Js(a)||(Object.assign(a.style,s),Object.keys(o).forEach(function(l){a.removeAttribute(l)}))})}}var RZ={name:"applyStyles",enabled:!0,phase:"write",fn:PHe,effect:RHe,requires:["computeStyles"]};function Ps(e){return e.split("-")[0]}var Yf=Math.max,R_=Math.min,Lh=Math.round;function Dh(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,a=1;if(ni(e)&&t){var o=e.offsetHeight,i=e.offsetWidth;i>0&&(r=Lh(n.width)/i||1),o>0&&(a=Lh(n.height)/o||1)}return{width:n.width/r,height:n.height/a,top:n.top/a,right:n.right/r,bottom:n.bottom/a,left:n.left/r,x:n.left/r,y:n.top/a}}function BA(e){var t=Dh(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 OZ(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&NA(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Xl(e){return qi(e).getComputedStyle(e)}function OHe(e){return["table","td","th"].indexOf(Js(e))>=0}function Sc(e){return((Ih(e)?e.ownerDocument:e.document)||window.document).documentElement}function C4(e){return Js(e)==="html"?e:e.assignedSlot||e.parentNode||(NA(e)?e.host:null)||Sc(e)}function FB(e){return!ni(e)||Xl(e).position==="fixed"?null:e.offsetParent}function NHe(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&ni(e)){var r=Xl(e);if(r.position==="fixed")return null}var a=C4(e);for(NA(a)&&(a=a.host);ni(a)&&["html","body"].indexOf(Js(a))<0;){var o=Xl(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function f1(e){for(var t=qi(e),n=FB(e);n&&OHe(n)&&Xl(n).position==="static";)n=FB(n);return n&&(Js(n)==="html"||Js(n)==="body"&&Xl(n).position==="static")?t:n||NHe(e)||t}function VA(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function eg(e,t,n){return Yf(e,R_(t,n))}function BHe(e,t,n){var r=eg(e,t,n);return r>n?n:r}function NZ(){return{top:0,right:0,bottom:0,left:0}}function BZ(e){return Object.assign({},NZ(),e)}function VZ(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var VHe=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,BZ(typeof e!="number"?e:VZ(e,c1))};function $He(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,i=n.modifiersData.popperOffsets,s=Ps(n.placement),l=VA(s),u=[fo,ui].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!i)){var f=VHe(a.padding,n),d=BA(o),v=l==="y"?co:fo,h=l==="y"?li:ui,p=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],g=i[l]-n.rects.reference[l],m=f1(o),y=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,b=p/2-g/2,w=f[v],S=y-d[c]-f[h],x=y/2-d[c]/2+b,C=eg(w,x,S),T=l;n.modifiersData[r]=(t={},t[T]=C,t.centerOffset=C-x,t)}}function zHe(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!OZ(t.elements.popper,a)||(t.elements.arrow=a))}var FHe={name:"arrow",enabled:!0,phase:"main",fn:$He,effect:zHe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ph(e){return e.split("-")[1]}var HHe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function WHe(e){var t=e.x,n=e.y,r=window,a=r.devicePixelRatio||1;return{x:Lh(t*a)/a||0,y:Lh(n*a)/a||0}}function HB(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=i.x,v=d===void 0?0:d,h=i.y,p=h===void 0?0:h,g=typeof c=="function"?c({x:v,y:p}):{x:v,y:p};v=g.x,p=g.y;var m=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),b=fo,w=co,S=window;if(u){var x=f1(n),C="clientHeight",T="clientWidth";if(x===qi(n)&&(x=Sc(n),Xl(x).position!=="static"&&s==="absolute"&&(C="scrollHeight",T="scrollWidth")),x=x,a===co||(a===fo||a===ui)&&o===em){w=li;var M=f&&x===S&&S.visualViewport?S.visualViewport.height:x[C];p-=M-r.height,p*=l?1:-1}if(a===fo||(a===co||a===li)&&o===em){b=ui;var k=f&&x===S&&S.visualViewport?S.visualViewport.width:x[T];v-=k-r.width,v*=l?1:-1}}var E=Object.assign({position:s},u&&HHe),A=c===!0?WHe({x:v,y:p}):{x:v,y:p};if(v=A.x,p=A.y,l){var I;return Object.assign({},E,(I={},I[w]=y?"0":"",I[b]=m?"0":"",I.transform=(S.devicePixelRatio||1)<=1?"translate("+v+"px, "+p+"px)":"translate3d("+v+"px, "+p+"px, 0)",I))}return Object.assign({},E,(t={},t[w]=y?p+"px":"",t[b]=m?v+"px":"",t.transform="",t))}function GHe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,o=n.adaptive,i=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:Ps(t.placement),variation:Ph(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,HB(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,HB(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var $Z={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:GHe,data:{}},t2={passive:!0};function UHe(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=a===void 0?!0:a,i=r.resize,s=i===void 0?!0:i,l=qi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,t2)}),s&&l.addEventListener("resize",n.update,t2),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,t2)}),s&&l.removeEventListener("resize",n.update,t2)}}var zZ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:UHe,data:{}},KHe={left:"right",right:"left",bottom:"top",top:"bottom"};function K2(e){return e.replace(/left|right|bottom|top/g,function(t){return KHe[t]})}var jHe={start:"end",end:"start"};function WB(e){return e.replace(/start|end/g,function(t){return jHe[t]})}function $A(e){var t=qi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function zA(e){return Dh(Sc(e)).left+$A(e).scrollLeft}function YHe(e){var t=qi(e),n=Sc(e),r=t.visualViewport,a=n.clientWidth,o=n.clientHeight,i=0,s=0;return r&&(a=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,s=r.offsetTop)),{width:a,height:o,x:i+zA(e),y:s}}function qHe(e){var t,n=Sc(e),r=$A(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=Yf(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Yf(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+zA(e),l=-r.scrollTop;return Xl(a||n).direction==="rtl"&&(s+=Yf(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:l}}function FA(e){var t=Xl(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function FZ(e){return["html","body","#document"].indexOf(Js(e))>=0?e.ownerDocument.body:ni(e)&&FA(e)?e:FZ(C4(e))}function tg(e,t){var n;t===void 0&&(t=[]);var r=FZ(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),o=qi(r),i=a?[o].concat(o.visualViewport||[],FA(r)?r:[]):r,s=t.concat(i);return a?s:s.concat(tg(C4(i)))}function tT(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function XHe(e){var t=Dh(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function GB(e,t){return t===PZ?tT(YHe(e)):Ih(t)?XHe(t):tT(qHe(Sc(e)))}function ZHe(e){var t=tg(C4(e)),n=["absolute","fixed"].indexOf(Xl(e).position)>=0,r=n&&ni(e)?f1(e):e;return Ih(r)?t.filter(function(a){return Ih(a)&&OZ(a,r)&&Js(a)!=="body"}):[]}function JHe(e,t,n){var r=t==="clippingParents"?ZHe(e):[].concat(t),a=[].concat(r,[n]),o=a[0],i=a.reduce(function(s,l){var u=GB(e,l);return s.top=Yf(u.top,s.top),s.right=R_(u.right,s.right),s.bottom=R_(u.bottom,s.bottom),s.left=Yf(u.left,s.left),s},GB(e,o));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function HZ(e){var t=e.reference,n=e.element,r=e.placement,a=r?Ps(r):null,o=r?Ph(r):null,i=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(a){case co:l={x:i,y:t.y-n.height};break;case li:l={x:i,y:t.y+t.height};break;case ui:l={x:t.x+t.width,y:s};break;case fo:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=a?VA(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Eh:l[u]=l[u]-(t[c]/2-n[c]/2);break;case em:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function tm(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,o=n.boundary,i=o===void 0?wHe:o,s=n.rootBoundary,l=s===void 0?PZ:s,u=n.elementContext,c=u===void 0?o0:u,f=n.altBoundary,d=f===void 0?!1:f,v=n.padding,h=v===void 0?0:v,p=BZ(typeof h!="number"?h:VZ(h,c1)),g=c===o0?SHe:o0,m=e.rects.popper,y=e.elements[d?g:c],b=JHe(Ih(y)?y:y.contextElement||Sc(e.elements.popper),i,l),w=Dh(e.elements.reference),S=HZ({reference:w,element:m,strategy:"absolute",placement:a}),x=tT(Object.assign({},m,S)),C=c===o0?x:w,T={top:b.top-C.top+p.top,bottom:C.bottom-b.bottom+p.bottom,left:b.left-C.left+p.left,right:C.right-b.right+p.right},M=e.modifiersData.offset;if(c===o0&&M){var k=M[a];Object.keys(T).forEach(function(E){var A=[ui,li].indexOf(E)>=0?1:-1,I=[co,li].indexOf(E)>=0?"y":"x";T[E]+=k[I]*A})}return T}function QHe(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,o=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?ou:l,c=Ph(r),f=c?s?zB:zB.filter(function(h){return Ph(h)===c}):c1,d=f.filter(function(h){return u.indexOf(h)>=0});d.length===0&&(d=f);var v=d.reduce(function(h,p){return h[p]=tm(e,{placement:p,boundary:a,rootBoundary:o,padding:i})[Ps(p)],h},{});return Object.keys(v).sort(function(h,p){return v[h]-v[p]})}function eWe(e){if(Ps(e)===OA)return[];var t=K2(e);return[WB(e),t,WB(t)]}function tWe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=a===void 0?!0:a,i=n.altAxis,s=i===void 0?!0:i,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,v=n.flipVariations,h=v===void 0?!0:v,p=n.allowedAutoPlacements,g=t.options.placement,m=Ps(g),y=m===g,b=l||(y||!h?[K2(g)]:eWe(g)),w=[g].concat(b).reduce(function(Y,X){return Y.concat(Ps(X)===OA?QHe(t,{placement:X,boundary:c,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:p}):X)},[]),S=t.rects.reference,x=t.rects.popper,C=new Map,T=!0,M=w[0],k=0;k<w.length;k++){var E=w[k],A=Ps(E),I=Ph(E)===Eh,O=[co,li].indexOf(A)>=0,z=O?"width":"height",$=tm(t,{placement:E,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),P=O?I?ui:fo:I?li:co;S[z]>x[z]&&(P=K2(P));var L=K2(P),V=[];if(o&&V.push($[A]<=0),s&&V.push($[P]<=0,$[L]<=0),V.every(function(Y){return Y})){M=E,T=!1;break}C.set(E,V)}if(T)for(var B=h?3:1,F=function(Y){var X=w.find(function(te){var oe=C.get(te);if(oe)return oe.slice(0,Y).every(function(re){return re})});if(X)return M=X,"break"},U=B;U>0;U--){var G=F(U);if(G==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}var nWe={name:"flip",enabled:!0,phase:"main",fn:tWe,requiresIfExists:["offset"],data:{_skip:!1}};function UB(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 KB(e){return[co,ui,li,fo].some(function(t){return e[t]>=0})}function rWe(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=tm(t,{elementContext:"reference"}),s=tm(t,{altBoundary:!0}),l=UB(i,r),u=UB(s,a,o),c=KB(l),f=KB(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}var aWe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rWe};function oWe(e,t,n){var r=Ps(e),a=[fo,co].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[fo,ui].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}function iWe(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=a===void 0?[0,0]:a,i=ou.reduce(function(c,f){return c[f]=oWe(f,t.rects,o),c},{}),s=i[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}var sWe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:iWe};function lWe(e){var t=e.state,n=e.name;t.modifiersData[n]=HZ({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var WZ={name:"popperOffsets",enabled:!0,phase:"read",fn:lWe,data:{}};function uWe(e){return e==="x"?"y":"x"}function cWe(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=a===void 0?!0:a,i=n.altAxis,s=i===void 0?!1:i,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,v=d===void 0?!0:d,h=n.tetherOffset,p=h===void 0?0:h,g=tm(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),m=Ps(t.placement),y=Ph(t.placement),b=!y,w=VA(m),S=uWe(w),x=t.modifiersData.popperOffsets,C=t.rects.reference,T=t.rects.popper,M=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,k=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(x){if(o){var I,O=w==="y"?co:fo,z=w==="y"?li:ui,$=w==="y"?"height":"width",P=x[w],L=P+g[O],V=P-g[z],B=v?-T[$]/2:0,F=y===Eh?C[$]:T[$],U=y===Eh?-T[$]:-C[$],G=t.elements.arrow,Y=v&&G?BA(G):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:NZ(),te=X[O],oe=X[z],re=eg(0,C[$],Y[$]),ce=b?C[$]/2-B-re-te-k.mainAxis:F-re-te-k.mainAxis,ie=b?-C[$]/2+B+re+oe+k.mainAxis:U+re+oe+k.mainAxis,Z=t.elements.arrow&&f1(t.elements.arrow),se=Z?w==="y"?Z.clientTop||0:Z.clientLeft||0:0,J=(I=E==null?void 0:E[w])!=null?I:0,ae=P+ce-J-se,fe=P+ie-J,ve=eg(v?R_(L,ae):L,P,v?Yf(V,fe):V);x[w]=ve,A[w]=ve-P}if(s){var me,pe=w==="x"?co:fo,Ne=w==="x"?li:ui,Ee=x[S],_e=S==="y"?"height":"width",be=Ee+g[pe],Fe=Ee-g[Ne],Oe=[co,fo].indexOf(m)!==-1,Ze=(me=E==null?void 0:E[S])!=null?me:0,nt=Oe?be:Ee-C[_e]-T[_e]-Ze+k.altAxis,xe=Oe?Ee+C[_e]+T[_e]-Ze-k.altAxis:Fe,je=v&&Oe?BHe(nt,Ee,xe):eg(v?nt:be,Ee,v?xe:Fe);x[S]=je,A[S]=je-Ee}t.modifiersData[r]=A}}var fWe={name:"preventOverflow",enabled:!0,phase:"main",fn:cWe,requiresIfExists:["offset"]};function dWe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function vWe(e){return e===qi(e)||!ni(e)?$A(e):dWe(e)}function hWe(e){var t=e.getBoundingClientRect(),n=Lh(t.width)/e.offsetWidth||1,r=Lh(t.height)/e.offsetHeight||1;return n!==1||r!==1}function pWe(e,t,n){n===void 0&&(n=!1);var r=ni(t),a=ni(t)&&hWe(t),o=Sc(t),i=Dh(e,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Js(t)!=="body"||FA(o))&&(s=vWe(t)),ni(t)?(l=Dh(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=zA(o))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function gWe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function a(o){n.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&a(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||a(o)}),r}function mWe(e){var t=gWe(e);return DHe.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function yWe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function bWe(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var jB={placement:"bottom",modifiers:[],strategy:"absolute"};function YB(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function HA(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,o=a===void 0?jB:a;return function(i,s,l){l===void 0&&(l=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},jB,o),modifiersData:{},elements:{reference:i,popper:s},attributes:{},styles:{}},c=[],f=!1,d={state:u,setOptions:function(p){var g=typeof p=="function"?p(u.options):p;h(),u.options=Object.assign({},o,u.options,g),u.scrollParents={reference:Ih(i)?tg(i):i.contextElement?tg(i.contextElement):[],popper:tg(s)};var m=mWe(bWe([].concat(r,u.options.modifiers)));return u.orderedModifiers=m.filter(function(y){return y.enabled}),v(),d.update()},forceUpdate:function(){if(!f){var p=u.elements,g=p.reference,m=p.popper;if(YB(g,m)){u.rects={reference:pWe(g,f1(m),u.options.strategy==="fixed"),popper:BA(m)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(T){return u.modifiersData[T.name]=Object.assign({},T.data)});for(var y=0;y<u.orderedModifiers.length;y++){if(u.reset===!0){u.reset=!1,y=-1;continue}var b=u.orderedModifiers[y],w=b.fn,S=b.options,x=S===void 0?{}:S,C=b.name;typeof w=="function"&&(u=w({state:u,options:x,name:C,instance:d})||u)}}}},update:yWe(function(){return new Promise(function(p){d.forceUpdate(),p(u)})}),destroy:function(){h(),f=!0}};if(!YB(i,s))return d;d.setOptions(l).then(function(p){!f&&l.onFirstUpdate&&l.onFirstUpdate(p)});function v(){u.orderedModifiers.forEach(function(p){var g=p.name,m=p.options,y=m===void 0?{}:m,b=p.effect;if(typeof b=="function"){var w=b({state:u,name:g,instance:d,options:y}),S=function(){};c.push(w||S)}})}function h(){c.forEach(function(p){return p()}),c=[]}return d}}HA();var _We=[zZ,WZ,$Z,RZ];HA({defaultModifiers:_We});var wWe=[zZ,WZ,$Z,RZ,sWe,nWe,fWe,FHe,aWe],SWe=HA({defaultModifiers:wWe});const GZ=Ie({arrowOffset:{type:Number,default:5}}),xWe=["fixed","absolute"],CWe=Ie({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:ne(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:ou,default:"bottom"},popperOptions:{type:ne(Object),default:()=>({})},strategy:{type:String,values:xWe,default:"absolute"}}),UZ=Ie({...CWe,...GZ,id:String,style:{type:ne([String,Array,Object])},className:{type:ne([String,Array,Object])},effect:{type:ne(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:ne([String,Array,Object])},popperStyle:{type:ne([String,Array,Object])},referenceEl:{type:ne(Object)},triggerTargetEl:{type:ne(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...Da(["ariaLabel"]),loop:Boolean}),TWe={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},kWe=(e,t)=>{const n=K(!1),r=K(),a=()=>{t("focus")},o=u=>{var c;((c=u.detail)==null?void 0:c.focusReason)!=="pointer"&&(r.value="first",t("blur"))},i=u=>{e.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},s=u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},l=()=>{n.value=!1,t("close")};return un(()=>{r.value=void 0}),{focusStartRef:r,trapped:n,onFocusAfterReleased:o,onFocusAfterTrapped:a,onFocusInTrap:i,onFocusoutPrevented:s,onReleaseRequested:l}},MWe=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:a}=e,o={placement:n,strategy:r,...a,modifiers:[...EWe(e),...t]};return IWe(o,a==null?void 0:a.modifiers),o},AWe=e=>{if(on)return yr(e)};function EWe(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function IWe(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const LWe=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=DWe(l);Object.assign(i.value,u)},requires:["computeStyles"]},a=R(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:f}=_(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:!1}]}}),o=Ln(),i=K({styles:{popper:{position:_(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return he(a,l=>{const u=_(o);u&&u.setOptions(l)},{deep:!0}),he([e,t],([l,u])=>{s(),!(!l||!u)&&(o.value=SWe(l,u,_(a)))}),un(()=>{s()}),{state:R(()=>{var l;return{...((l=_(o))==null?void 0:l.state)||{}}}),styles:R(()=>_(i).styles),attributes:R(()=>_(i).attributes),update:()=>{var l;return(l=_(o))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=_(o))==null?void 0:l.forceUpdate()},instanceRef:R(()=>_(o))}};function DWe(e){const t=Object.keys(e.elements),n=Zg(t.map(a=>[a,e.styles[a]||{}])),r=Zg(t.map(a=>[a,e.attributes[a]]));return{styles:n,attributes:r}}const PWe=0,RWe=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:a}=Ue(DA,void 0),o=K(),i=R(()=>e.arrowOffset),s=R(()=>({name:"eventListeners",enabled:!!e.visible})),l=R(()=>{var m;const y=_(o),b=(m=_(i))!=null?m:PWe;return{name:"arrow",enabled:!aLe(y),options:{element:y,padding:b}}}),u=R(()=>({onFirstUpdate:()=>{h()},...MWe(e,[_(l),_(s)])})),c=R(()=>AWe(e.referenceEl)||_(r)),{attributes:f,state:d,styles:v,update:h,forceUpdate:p,instanceRef:g}=LWe(c,n,u);return he(g,m=>t.value=m,{flush:"sync"}),Et(()=>{he(()=>{var m,y;return(y=(m=_(c))==null?void 0:m.getBoundingClientRect)==null?void 0:y.call(m)},()=>{h()})}),un(()=>{t.value=void 0}),{attributes:f,arrowRef:o,contentRef:n,instanceRef:g,state:d,styles:v,role:a,forceUpdate:p,update:h}},OWe=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:a}=t1(),o=we("popper"),i=R(()=>_(t).popper),s=K(rt(e.zIndex)?e.zIndex:a()),l=R(()=>[o.b(),o.is("pure",e.pure),o.is(e.effect),e.popperClass]),u=R(()=>[{zIndex:_(s)},_(n).popper,e.popperStyle||{}]),c=R(()=>r.value==="dialog"?"false":void 0),f=R(()=>_(n).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:i,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=rt(e.zIndex)?e.zIndex:a()}}},NWe=q({name:"ElPopperContent",__name:"content",props:UZ,emits:TWe,setup(e,{expose:t,emit:n}){const r=n,a=e,{focusStartRef:o,trapped:i,onFocusAfterReleased:s,onFocusAfterTrapped:l,onFocusInTrap:u,onFocusoutPrevented:c,onReleaseRequested:f}=kWe(a,r),{attributes:d,arrowRef:v,contentRef:h,styles:p,instanceRef:g,role:m,update:y}=RWe(a),{ariaModal:b,arrowStyle:w,contentAttrs:S,contentClass:x,contentStyle:C,updateZIndex:T}=OWe(a,{styles:p,attributes:d,role:m}),M=Ue(Zs,void 0);Ut(xZ,{arrowStyle:w,arrowRef:v}),M&&Ut(Zs,{...M,addInputId:cn,removeInputId:cn});let k;const E=(I=!0)=>{y(),I&&T()},A=()=>{E(!1),a.visible&&a.focusOnShow?i.value=!0:a.visible===!1&&(i.value=!1)};return Et(()=>{he(()=>a.triggerTargetEl,(I,O)=>{k==null||k(),k=void 0;const z=_(I||h.value),$=_(O||h.value);oo(z)&&(k=he([m,()=>a.ariaLabel,b,()=>a.id],P=>{["role","aria-label","aria-modal","id"].forEach((L,V)=>{sr(P[V])?z.removeAttribute(L):z.setAttribute(L,P[V])})},{immediate:!0})),$!==z&&oo($)&&["role","aria-label","aria-modal","id"].forEach(P=>{$.removeAttribute(P)})},{immediate:!0}),he(()=>a.visible,A,{immediate:!0})}),un(()=>{k==null||k(),k=void 0,h.value=void 0}),t({popperContentRef:h,popperInstanceRef:g,updatePopper:E,contentStyle:C}),(I,O)=>(D(),H("div",It({ref_key:"contentRef",ref:h},_(S),{style:_(C),class:_(x),tabindex:"-1",onMouseenter:O[0]||(O[0]=z=>I.$emit("mouseenter",z)),onMouseleave:O[1]||(O[1]=z=>I.$emit("mouseleave",z))}),[Q(_(mp),{loop:I.loop,trapped:_(i),"trap-on-focus-in":!0,"focus-trap-el":_(h),"focus-start-el":_(o),onFocusAfterTrapped:_(l),onFocusAfterReleased:_(s),onFocusin:_(u),onFocusoutPrevented:_(c),onReleaseRequested:_(f)},{default:ee(()=>[ue(I.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var BWe=De(NWe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const KZ=_t(tHe),WA=Symbol("elTooltip");function qB(){let e;const t=(r,a)=>{n(),e=window.setTimeout(r,a)},n=()=>window.clearTimeout(e);return Nd(()=>n()),{registerTimeout:t,cancelTimeout:n}}const VWe=Ie({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),$We=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:a})=>{const{registerTimeout:o}=qB(),{registerTimeout:i,cancelTimeout:s}=qB();return{onOpen:(c,f=_(e))=>{o(()=>{r(c);const d=_(n);rt(d)&&d>0&&i(()=>{a(c)},d)},f)},onClose:(c,f=_(t))=>{s(),o(()=>{a(c)},f)}}},bn=Ie({...VWe,...UZ,appendTo:{type:r1.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:ne(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...Da(["ariaLabel"])}),Rs=Ie({...kZ,disabled:Boolean,trigger:{type:ne([String,Array]),default:"hover"},triggerKeys:{type:ne(Array),default:()=>[ke.enter,ke.numpadEnter,ke.space]},focusOnTarget:Boolean}),zWe=ji({type:ne(Boolean),default:null}),FWe=ji({type:ne(Function)}),jZ=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],a={[e]:zWe,[n]:FWe};return{useModelToggle:({indicator:i,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const d=bt(),{emit:v}=d,h=d.props,p=R(()=>Je(h[n])),g=R(()=>h[e]===null),m=C=>{i.value!==!0&&(i.value=!0,s&&(s.value=C),Je(c)&&c(C))},y=C=>{i.value!==!1&&(i.value=!1,s&&(s.value=C),Je(f)&&f(C))},b=C=>{if(h.disabled===!0||Je(u)&&!u())return;const T=p.value&&on;T&&v(t,!0),(g.value||!T)&&m(C)},w=C=>{if(h.disabled===!0||!on)return;const T=p.value&&on;T&&v(t,!1),(g.value||!T)&&y(C)},S=C=>{hn(C)&&(h.disabled&&C?p.value&&v(t,!1):i.value!==C&&(C?m():y()))},x=()=>{i.value?w():b()};return he(()=>h[e],S),l&&d.appContext.config.globalProperties.$route!==void 0&&he(()=>({...d.proxy.$route}),()=>{l.value&&i.value&&w()}),Et(()=>{S(h[e])}),{hide:w,show:b,toggle:x,hasUpdateHandler:p}},useModelToggleProps:a,useModelToggleEmits:r}};jZ("modelValue");const{useModelToggleProps:HWe,useModelToggleEmits:WWe,useModelToggle:GWe}=jZ("visible"),UWe=Ie({...TZ,...HWe,...bn,...Rs,...GZ,showArrow:{type:Boolean,default:!0}}),KWe=[...WWe,"before-show","before-hide","show","hide","open","close"],nT=(e,t)=>Ce(e)?e.includes(t):e===t,hv=(e,t,n)=>r=>{nT(_(e),t)&&n(r)},jWe=q({name:"ElTooltipTrigger",__name:"trigger",props:Rs,setup(e,{expose:t}){const n=e,r=we("tooltip"),{controlled:a,id:o,open:i,onOpen:s,onClose:l,onToggle:u}=Ue(WA,void 0),c=K(null),f=()=>{if(_(a)||n.disabled)return!0},d=vn(n,"trigger"),v=Dr(f,hv(d,"hover",w=>{s(w),n.focusOnTarget&&w.target&&ze(()=>{l1(w.target,{preventScroll:!0})})})),h=Dr(f,hv(d,"hover",l)),p=Dr(f,hv(d,"click",w=>{w.button===0&&u(w)})),g=Dr(f,hv(d,"focus",s)),m=Dr(f,hv(d,"focus",l)),y=Dr(f,hv(d,"contextmenu",w=>{w.preventDefault(),u(w)})),b=Dr(f,w=>{const S=xn(w);n.triggerKeys.includes(S)&&(w.preventDefault(),u(w))});return t({triggerRef:c}),(w,S)=>(D(),de(_(lHe),{id:_(o),"virtual-ref":w.virtualRef,open:_(i),"virtual-triggering":w.virtualTriggering,class:W(_(r).e("trigger")),onBlur:_(m),onClick:_(p),onContextmenu:_(y),onFocus:_(g),onMouseenter:_(v),onMouseleave:_(h),onKeydown:_(b)},{default:ee(()=>[ue(w.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var YWe=De(jWe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const YZ=()=>{const e=tA(),t=IA(),n=R(()=>`${e.value}-popper-container-${t.prefix}`),r=R(()=>`#${n.value}`);return{id:n,selector:r}},qWe=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},XWe=()=>{const{id:e,selector:t}=YZ();return wm(()=>{on&&(document.body.querySelector(t.value)||qWe(e.value))}),{id:e,selector:t}},XB=e=>[...new Set(e)],i0=e=>Ce(e)?e[0]:e,Ca=e=>!e&&e!==0?[]:Ce(e)?e:[e],ZWe=q({name:"ElTooltipContent",inheritAttrs:!1,__name:"content",props:bn,setup(e,{expose:t}){const n=e,{selector:r}=YZ(),a=we("tooltip"),o=K(),i=IX(()=>{var L;return(L=o.value)==null?void 0:L.popperContentRef});let s;const{controlled:l,id:u,open:c,trigger:f,onClose:d,onOpen:v,onShow:h,onHide:p,onBeforeShow:g,onBeforeHide:m}=Ue(WA,void 0),y=R(()=>n.transition||`${a.namespace.value}-fade-in-linear`),b=R(()=>n.persistent);un(()=>{s==null||s()});const w=R(()=>_(b)?!0:_(c)),S=R(()=>n.disabled?!1:_(c)),x=R(()=>n.appendTo||r.value),C=R(()=>{var L;return(L=n.style)!=null?L:{}}),T=K(!0),M=()=>{p(),P()&&l1(document.body,{preventScroll:!0}),T.value=!0},k=()=>{if(_(l))return!0},E=Dr(k,()=>{n.enterable&&nT(_(f),"hover")&&v()}),A=Dr(k,()=>{nT(_(f),"hover")&&d()}),I=()=>{var L,V;(V=(L=o.value)==null?void 0:L.updatePopper)==null||V.call(L),g==null||g()},O=()=>{m==null||m()},z=()=>{h()},$=()=>{n.virtualTriggering||d()},P=L=>{var V;const B=(V=o.value)==null?void 0:V.popperContentRef,F=(L==null?void 0:L.relatedTarget)||document.activeElement;return B==null?void 0:B.contains(F)};return he(()=>_(c),L=>{L?(T.value=!1,s=yA(i,()=>{if(_(l))return;Ca(_(f)).every(B=>B!=="hover"&&B!=="focus")&&d()},{detectIframe:!0})):s==null||s()},{flush:"post"}),he(()=>n.content,()=>{var L,V;(V=(L=o.value)==null?void 0:L.updatePopper)==null||V.call(L)}),t({contentRef:o,isFocusInsideContent:P}),(L,V)=>(D(),de(_(pp),{disabled:!L.teleported,to:x.value},{default:ee(()=>[w.value||!T.value?(D(),de(Ur,{key:0,name:y.value,appear:!b.value,onAfterLeave:M,onBeforeEnter:I,onAfterEnter:z,onBeforeLeave:O,persisted:""},{default:ee(()=>[xt(Q(_(BWe),It({id:_(u),ref_key:"contentRef",ref:o},L.$attrs,{"aria-label":L.ariaLabel,"aria-hidden":T.value,"boundaries-padding":L.boundariesPadding,"fallback-placements":L.fallbackPlacements,"gpu-acceleration":L.gpuAcceleration,offset:L.offset,placement:L.placement,"popper-options":L.popperOptions,"arrow-offset":L.arrowOffset,strategy:L.strategy,effect:L.effect,enterable:L.enterable,pure:L.pure,"popper-class":L.popperClass,"popper-style":[L.popperStyle,C.value],"reference-el":L.referenceEl,"trigger-target-el":L.triggerTargetEl,visible:S.value,"z-index":L.zIndex,loop:L.loop,onMouseenter:_(E),onMouseleave:_(A),onBlur:$,onClose:_(d)}),{default:ee(()=>[ue(L.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","loop","onMouseenter","onMouseleave","onClose"]),[[tn,S.value]])]),_:3},8,["name","appear"])):le("v-if",!0)]),_:3},8,["disabled","to"]))}});var JWe=De(ZWe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const QWe=["innerHTML"],eGe={key:1},tGe=q({name:"ElTooltip",__name:"tooltip",props:UWe,emits:KWe,setup(e,{expose:t,emit:n}){const r=e,a=n;XWe();const o=we("tooltip"),i=ea(),s=K(),l=K(),u=()=>{var w;const S=_(s);S&&((w=S.popperInstanceRef)==null||w.update())},c=K(!1),f=K(),{show:d,hide:v,hasUpdateHandler:h}=GWe({indicator:c,toggleReason:f}),{onOpen:p,onClose:g}=$We({showAfter:vn(r,"showAfter"),hideAfter:vn(r,"hideAfter"),autoClose:vn(r,"autoClose"),open:d,close:v}),m=R(()=>hn(r.visible)&&!h.value),y=R(()=>[o.b(),r.popperClass]);Ut(WA,{controlled:m,id:i,open:rc(c),trigger:vn(r,"trigger"),onOpen:p,onClose:g,onToggle:w=>{_(c)?g(w):p(w)},onShow:()=>{a("show",f.value)},onHide:()=>{a("hide",f.value)},onBeforeShow:()=>{a("before-show",f.value)},onBeforeHide:()=>{a("before-hide",f.value)},updatePopper:u}),he(()=>r.disabled,w=>{w&&c.value&&(c.value=!1)});const b=w=>{var S;return(S=l.value)==null?void 0:S.isFocusInsideContent(w)};return v5(()=>c.value&&v()),un(()=>{f.value=void 0}),t({popperRef:s,contentRef:l,isFocusInsideContent:b,updatePopper:u,onOpen:p,onClose:g,hide:v}),(w,S)=>(D(),de(_(KZ),{ref_key:"popperRef",ref:s,role:w.role},{default:ee(()=>[Q(YWe,{disabled:w.disabled,trigger:w.trigger,"trigger-keys":w.triggerKeys,"virtual-ref":w.virtualRef,"virtual-triggering":w.virtualTriggering,"focus-on-target":w.focusOnTarget},{default:ee(()=>[w.$slots.default?ue(w.$slots,"default",{key:0}):le("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),Q(JWe,{ref_key:"contentRef",ref:l,"aria-label":w.ariaLabel,"boundaries-padding":w.boundariesPadding,content:w.content,disabled:w.disabled,effect:w.effect,enterable:w.enterable,"fallback-placements":w.fallbackPlacements,"hide-after":w.hideAfter,"gpu-acceleration":w.gpuAcceleration,offset:w.offset,persistent:w.persistent,"popper-class":y.value,"popper-style":w.popperStyle,placement:w.placement,"popper-options":w.popperOptions,"arrow-offset":w.arrowOffset,pure:w.pure,"raw-content":w.rawContent,"reference-el":w.referenceEl,"trigger-target-el":w.triggerTargetEl,"show-after":w.showAfter,strategy:w.strategy,teleported:w.teleported,transition:w.transition,"virtual-triggering":w.virtualTriggering,"z-index":w.zIndex,"append-to":w.appendTo,loop:w.loop},{default:ee(()=>[ue(w.$slots,"content",{},()=>[w.rawContent?(D(),H("span",{key:0,innerHTML:w.content},null,8,QWe)):(D(),H("span",eGe,Ae(w.content),1))]),w.showArrow?(D(),de(_(rHe),{key:0})):le("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to","loop"])]),_:3},8,["role"]))}});var nGe=De(tGe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const ta=_t(nGe),rGe=Ie({...s1,valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:ne(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:ne([Function,Array]),default:cn},popperClass:bn.popperClass,popperStyle:bn.popperStyle,triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:Boolean,hideLoading:Boolean,teleported:bn.teleported,appendTo:bn.appendTo,highlightFirstItem:Boolean,fitInputWidth:Boolean,loopNavigation:{type:Boolean,default:!0}}),aGe={[dt]:e=>Ge(e)||rt(e),[dr]:e=>Ge(e)||rt(e),[Ht]:e=>Ge(e)||rt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>St(e)},oGe=["aria-expanded","aria-owns"],iGe={key:0},sGe=["id","aria-selected","onClick"],ZB="ElAutocomplete",lGe=q({name:ZB,inheritAttrs:!1,__name:"autocomplete",props:rGe,emits:aGe,setup(e,{expose:t,emit:n}){const r=e,a=n,o=R(()=>Kl(r,Object.keys(s1))),i=el(),s=jn(),l=we("autocomplete"),u=K(),c=K(),f=K(),d=K();let v=!1,h=!1;const p=K([]),g=K(-1),m=K(""),y=K(!1),b=K(!1),w=K(!1),S=ea(),x=R(()=>i.style),C=R(()=>(p.value.length>0||w.value)&&y.value),T=R(()=>!r.hideLoading&&w.value),M=R(()=>u.value?Array.from(u.value.$el.querySelectorAll("input")):[]),k=()=>{C.value&&(m.value=`${u.value.$el.offsetWidth}px`)},E=()=>{g.value=-1},A=async Z=>{if(b.value)return;const se=J=>{w.value=!1,!b.value&&(Ce(J)?(p.value=J,g.value=r.highlightFirstItem?0:-1):cr(ZB,"autocomplete suggestions must be an array"))};if(w.value=!0,Ce(r.fetchSuggestions))se(r.fetchSuggestions);else{const J=await r.fetchSuggestions(Z,se);Ce(J)&&se(J)}},I=R(()=>r.debounce),O=Qm(A,I),z=Z=>{const se=!!Z;if(a(dr,Z),a(dt,Z),b.value=!1,y.value||(y.value=se),!r.triggerOnFocus&&!Z){b.value=!0,p.value=[];return}O(Z)},$=Z=>{var se;s.value||(((se=Z.target)==null?void 0:se.tagName)!=="INPUT"||M.value.includes(document.activeElement))&&(y.value=!0)},P=Z=>{a(Ht,Z)},L=Z=>{var se;if(h)h=!1;else{y.value=!0,a("focus",Z);const J=(se=r.modelValue)!=null?se:"";r.triggerOnFocus&&!v&&O(String(J))}},V=Z=>{setTimeout(()=>{var se;if((se=f.value)!=null&&se.isFocusInsideContent()){h=!0;return}y.value&&G(),a("blur",Z)})},B=()=>{y.value=!1,a(dt,""),a("clear")},F=async()=>{var Z;(Z=u.value)!=null&&Z.isComposing||(C.value&&g.value>=0&&g.value<p.value.length?te(p.value[g.value]):(r.selectWhenUnmatched&&(a("select",{value:r.modelValue}),p.value=[],g.value=-1),y.value=!0,O(String(r.modelValue))))},U=Z=>{C.value&&(Z.preventDefault(),Z.stopPropagation(),G())},G=()=>{y.value=!1},Y=()=>{var Z;(Z=u.value)==null||Z.focus()},X=()=>{var Z;(Z=u.value)==null||Z.blur()},te=async Z=>{a(dr,Z[r.valueKey]),a(dt,Z[r.valueKey]),a("select",Z),p.value=[],g.value=-1},oe=Z=>{var se,J;if(!C.value||w.value)return;if(Z<0){if(!r.loopNavigation){g.value=-1;return}Z=p.value.length-1}Z>=p.value.length&&(Z=r.loopNavigation?0:p.value.length-1);const[ae,fe]=re(),ve=fe[Z],me=ae.scrollTop,{offsetTop:pe,scrollHeight:Ne}=ve;pe+Ne>me+ae.clientHeight&&(ae.scrollTop=pe+Ne-ae.clientHeight),pe<me&&(ae.scrollTop=pe),g.value=Z,(J=(se=u.value)==null?void 0:se.ref)==null||J.setAttribute("aria-activedescendant",`${S.value}-item-${g.value}`)},re=()=>{const Z=c.value.querySelector(`.${l.be("suggestion","wrap")}`),se=Z.querySelectorAll(`.${l.be("suggestion","list")} li`);return[Z,se]},ce=yA(d,()=>{var Z;(Z=f.value)!=null&&Z.isFocusInsideContent()||C.value&&G()}),ie=Z=>{switch(xn(Z)){case ke.up:Z.preventDefault(),oe(g.value-1);break;case ke.down:Z.preventDefault(),oe(g.value+1);break;case ke.enter:case ke.numpadEnter:Z.preventDefault(),F();break;case ke.tab:G();break;case ke.esc:U(Z);break;case ke.home:Z.preventDefault(),oe(0);break;case ke.end:Z.preventDefault(),oe(p.value.length-1);break;case ke.pageUp:Z.preventDefault(),oe(Math.max(0,g.value-10));break;case ke.pageDown:Z.preventDefault(),oe(Math.min(p.value.length-1,g.value+10));break}};return un(()=>{ce==null||ce()}),Et(()=>{var Z;const se=(Z=u.value)==null?void 0:Z.ref;se&&([{key:"role",value:"textbox"},{key:"aria-autocomplete",value:"list"},{key:"aria-controls",value:"id"},{key:"aria-activedescendant",value:`${S.value}-item-${g.value}`}].forEach(({key:J,value:ae})=>se.setAttribute(J,ae)),v=se.hasAttribute("readonly"))}),t({highlightedIndex:g,activated:y,loading:w,inputRef:u,popperRef:f,suggestions:p,handleSelect:te,handleKeyEnter:F,focus:Y,blur:X,close:G,highlight:oe,getData:A}),(Z,se)=>(D(),de(_(ta),{ref_key:"popperRef",ref:f,visible:C.value,placement:Z.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[_(l).e("popper"),Z.popperClass],"popper-style":Z.popperStyle,teleported:Z.teleported,"append-to":Z.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${_(l).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:k,onHide:E},{content:ee(()=>[N("div",{ref_key:"regionRef",ref:c,class:W([_(l).b("suggestion"),_(l).is("loading",T.value)]),style:et({[Z.fitInputWidth?"width":"minWidth"]:m.value,outline:"none"}),role:"region"},[Z.$slots.header?(D(),H("div",{key:0,class:W(_(l).be("suggestion","header")),onClick:se[0]||(se[0]=ut(()=>{},["stop"]))},[ue(Z.$slots,"header")],2)):le("v-if",!0),Q(_(Ni),{id:_(S),tag:"ul","wrap-class":_(l).be("suggestion","wrap"),"view-class":_(l).be("suggestion","list"),role:"listbox"},{default:ee(()=>[T.value?(D(),H("li",iGe,[ue(Z.$slots,"loading",{},()=>[Q(_(Xe),{class:W(_(l).is("loading"))},{default:ee(()=>[Q(_(si))]),_:1},8,["class"])])])):(D(!0),H(qe,{key:1},Wt(p.value,(J,ae)=>(D(),H("li",{id:`${_(S)}-item-${ae}`,key:ae,class:W({highlighted:g.value===ae}),role:"option","aria-selected":g.value===ae,onClick:fe=>te(J)},[ue(Z.$slots,"default",{item:J},()=>[gt(Ae(J[Z.valueKey]),1)])],10,sGe))),128))]),_:3},8,["id","wrap-class","view-class"]),Z.$slots.footer?(D(),H("div",{key:1,class:W(_(l).be("suggestion","footer")),onClick:se[1]||(se[1]=ut(()=>{},["stop"]))},[ue(Z.$slots,"footer")],2)):le("v-if",!0)],6)]),default:ee(()=>[N("div",{ref_key:"listboxRef",ref:d,class:W([_(l).b(),Z.$attrs.class]),style:et(x.value),role:"combobox","aria-haspopup":"listbox","aria-expanded":C.value,"aria-owns":_(S)},[Q(_(ka),It({ref_key:"inputRef",ref:u},It(o.value,Z.$attrs),{"model-value":Z.modelValue,disabled:_(s),onInput:z,onChange:P,onFocus:L,onBlur:V,onClear:B,onKeydown:ie,onMousedown:$}),Ua({_:2},[Z.$slots.prepend?{name:"prepend",fn:ee(()=>[ue(Z.$slots,"prepend")]),key:"0"}:void 0,Z.$slots.append?{name:"append",fn:ee(()=>[ue(Z.$slots,"append")]),key:"1"}:void 0,Z.$slots.prefix?{name:"prefix",fn:ee(()=>[ue(Z.$slots,"prefix")]),key:"2"}:void 0,Z.$slots.suffix?{name:"suffix",fn:ee(()=>[ue(Z.$slots,"suffix")]),key:"3"}:void 0]),1040,["model-value","disabled"])],14,oGe)]),_:3},8,["visible","placement","popper-class","popper-style","teleported","append-to","transition"]))}});var uGe=De(lGe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const cGe=_t(uGe),fGe=Ie({size:{type:[Number,String],values:nl,default:"",validator:e=>rt(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:pn},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:ne(String),default:"cover"}}),dGe={error:e=>e instanceof Event},vGe=["src","alt","srcset"],hGe=q({name:"ElAvatar",__name:"avatar",props:fGe,emits:dGe,setup(e,{emit:t}){const n=e,r=t,a=we("avatar"),o=K(!1),i=R(()=>{const{size:c,icon:f,shape:d}=n,v=[a.b()];return Ge(c)&&v.push(a.m(c)),f&&v.push(a.m("icon")),d&&v.push(a.m(d)),v}),s=R(()=>{const{size:c}=n;return rt(c)?a.cssVarBlock({size:Un(c)}):void 0}),l=R(()=>({objectFit:n.fit}));he(()=>n.src,()=>o.value=!1);function u(c){o.value=!0,r("error",c)}return(c,f)=>(D(),H("span",{class:W(i.value),style:et(s.value)},[(c.src||c.srcSet)&&!o.value?(D(),H("img",{key:0,src:c.src,alt:c.alt,srcset:c.srcSet,style:et(l.value),onError:u},null,44,vGe)):c.icon?(D(),de(_(Xe),{key:1},{default:ee(()=>[(D(),de(Tt(c.icon)))]),_:1})):ue(c.$slots,"default",{key:2})],6))}});var pGe=De(hGe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const gGe=_t(pGe),mGe={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},yGe={click:e=>e instanceof MouseEvent},bGe=(e,t,n)=>{const r=Ln(),a=Ln(),o=K(!1),i=()=>{r.value&&(o.value=r.value.scrollTop>=e.visibilityHeight)},s=u=>{var c;(c=r.value)==null||c.scrollTo({top:0,behavior:"smooth"}),t("click",u)},l=RX(i,300,!0);return fn(a,"scroll",l),Et(()=>{var u;a.value=document,r.value=document.documentElement,e.target&&(r.value=(u=document.querySelector(e.target))!=null?u:void 0,r.value||cr(n,`target does not exist: ${e.target}`),a.value=r.value),i()}),{visible:o,handleClick:s}},JB="ElBacktop",_Ge=q({name:JB,__name:"backtop",props:mGe,emits:yGe,setup(e,{emit:t}){const n=e,r=t,a=we("backtop"),{handleClick:o,visible:i}=bGe(n,r,JB),s=R(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(l,u)=>(D(),de(Ur,{name:`${_(a).namespace.value}-fade-in`},{default:ee(()=>[_(i)?(D(),H("div",{key:0,style:et(s.value),class:W(_(a).b()),onClick:u[0]||(u[0]=ut((...c)=>_(o)&&_(o)(...c),["stop"]))},[ue(l.$slots,"default",{},()=>[Q(_(Xe),{class:W(_(a).e("icon"))},{default:ee(()=>[Q(_(XX))]),_:1},8,["class"])])],6)):le("v-if",!0)]),_:3},8,["name"]))}});var wGe=De(_Ge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const SGe=_t(wGe),xGe=Ie({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:ne([String,Object,Array])},offset:{type:ne(Array),default:[0,0]},badgeClass:{type:String}}),CGe=q({name:"ElBadge",__name:"badge",props:xGe,setup(e,{expose:t}){const n=e,r=we("badge"),a=R(()=>n.isDot?"":rt(n.value)&&rt(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`),o=R(()=>{var i;return[{backgroundColor:n.color,marginRight:Un(-n.offset[0]),marginTop:Un(n.offset[1])},(i=n.badgeStyle)!=null?i:{}]});return t({content:a}),(i,s)=>(D(),H("div",{class:W(_(r).b())},[ue(i.$slots,"default"),Q(Ur,{name:`${_(r).namespace.value}-zoom-in-center`,persisted:""},{default:ee(()=>[xt(N("sup",{class:W([_(r).e("content"),_(r).em("content",i.type),_(r).is("fixed",!!i.$slots.default),_(r).is("dot",i.isDot),_(r).is("hide-zero",!i.showZero&&i.value===0),i.badgeClass]),style:et(o.value)},[ue(i.$slots,"content",{value:a.value},()=>[gt(Ae(a.value),1)])],6),[[tn,!i.hidden&&(a.value||i.isDot||i.$slots.content)]])]),_:3},8,["name"])],2))}});var TGe=De(CGe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const qZ=_t(TGe),XZ=Symbol("breadcrumbKey"),kGe=Ie({separator:{type:String,default:"/"},separatorIcon:{type:pn}}),MGe=["aria-label"],AGe=q({name:"ElBreadcrumb",__name:"breadcrumb",props:kGe,setup(e){const{t}=Kt(),n=e,r=we("breadcrumb"),a=K();return Ut(XZ,n),Et(()=>{const o=a.value.querySelectorAll(`.${r.e("item")}`);o.length&&o[o.length-1].setAttribute("aria-current","page")}),(o,i)=>(D(),H("div",{ref_key:"breadcrumb",ref:a,class:W(_(r).b()),"aria-label":_(t)("el.breadcrumb.label"),role:"navigation"},[ue(o.$slots,"default")],10,MGe))}});var EGe=De(AGe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const IGe=Ie({to:{type:ne([String,Object]),default:""},replace:Boolean}),LGe=q({name:"ElBreadcrumbItem",__name:"breadcrumb-item",props:IGe,setup(e){const t=e,n=bt(),r=Ue(XZ,void 0),a=we("breadcrumb"),o=n.appContext.config.globalProperties.$router,i=()=>{!t.to||!o||(t.replace?o.replace(t.to):o.push(t.to))};return(s,l)=>{var u,c;return D(),H("span",{class:W(_(a).e("item"))},[N("span",{class:W([_(a).e("inner"),_(a).is("link",!!s.to)]),role:"link",onClick:i},[ue(s.$slots,"default")],2),(u=_(r))!=null&&u.separatorIcon?(D(),de(_(Xe),{key:0,class:W(_(a).e("separator"))},{default:ee(()=>[(D(),de(Tt(_(r).separatorIcon)))]),_:1},8,["class"])):(D(),H("span",{key:1,class:W(_(a).e("separator")),role:"presentation"},Ae((c=_(r))==null?void 0:c.separator),3))],2)}}});var ZZ=De(LGe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const DGe=_t(EGe,{BreadcrumbItem:ZZ}),PGe=Kn(ZZ),JZ=Symbol("buttonGroupContextKey"),Os=({from:e,replacement:t,scope:n,version:r,ref:a,type:o="API"},i)=>{he(()=>_(i),s=>{},{immediate:!0})},RGe=(e,t)=>{Os({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},R(()=>e.type==="text"));const n=Ue(JZ,void 0),r=hp("button"),{form:a}=Yr(),o=vr(R(()=>n==null?void 0:n.size)),i=jn(),s=K(),l=fr(),u=R(()=>{var m;return e.type||(n==null?void 0:n.type)||((m=r.value)==null?void 0:m.type)||""}),c=R(()=>{var m,y,b;return(b=(y=e.autoInsertSpace)!=null?y:(m=r.value)==null?void 0:m.autoInsertSpace)!=null?b:!1}),f=R(()=>{var m,y,b;return(b=(y=e.plain)!=null?y:(m=r.value)==null?void 0:m.plain)!=null?b:!1}),d=R(()=>{var m,y,b;return(b=(y=e.round)!=null?y:(m=r.value)==null?void 0:m.round)!=null?b:!1}),v=R(()=>{var m,y,b;return(b=(y=e.text)!=null?y:(m=r.value)==null?void 0:m.text)!=null?b:!1}),h=R(()=>e.tag==="button"?{ariaDisabled:i.value||e.loading,disabled:i.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),p=R(()=>{var m;const y=(m=l.default)==null?void 0:m.call(l);if(c.value&&(y==null?void 0:y.length)===1){const b=y[0];if((b==null?void 0:b.type)===ks){const w=b.children;return/^\p{Unified_Ideograph}{2}$/u.test(w.trim())}}return!1});return{_disabled:i,_size:o,_type:u,_ref:s,_props:h,_plain:f,_round:d,_text:v,shouldAddSpace:p,handleClick:m=>{if(i.value||e.loading){m.stopPropagation();return}e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",m)}}},rT=["default","primary","success","warning","info","danger","text",""],OGe=["button","submit","reset"],aT=Ie({size:wr,disabled:{type:Boolean,default:void 0},type:{type:String,values:rT,default:""},icon:{type:pn},nativeType:{type:String,values:OGe,default:"button"},loading:Boolean,loadingIcon:{type:pn,default:()=>si},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:ne([String,Object]),default:"button"}}),NGe={click:e=>e instanceof MouseEvent};function fa(e,t){BGe(e)&&(e="100%");var n=VGe(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function n2(e){return Math.min(1,Math.max(0,e))}function BGe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function VGe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function QZ(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function r2(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Af(e){return e.length===1?"0"+e:String(e)}function $Ge(e,t,n){return{r:fa(e,255)*255,g:fa(t,255)*255,b:fa(n,255)*255}}function QB(e,t,n){e=fa(e,255),t=fa(t,255),n=fa(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=0,s=(r+a)/2;if(r===a)i=0,o=0;else{var l=r-a;switch(i=s>.5?l/(2-r-a):l/(r+a),r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s:i,l:s}}function WS(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function zGe(e,t,n){var r,a,o;if(e=fa(e,360),t=fa(t,100),n=fa(n,100),t===0)a=n,o=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,s=2*n-i;r=WS(s,i,e+1/3),a=WS(s,i,e),o=WS(s,i,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function eV(e,t,n){e=fa(e,255),t=fa(t,255),n=fa(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=r,s=r-a,l=r===0?0:s/r;if(r===a)o=0;else{switch(r){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4;break}o/=6}return{h:o,s:l,v:i}}function FGe(e,t,n){e=fa(e,360)*6,t=fa(t,100),n=fa(n,100);var r=Math.floor(e),a=e-r,o=n*(1-t),i=n*(1-a*t),s=n*(1-(1-a)*t),l=r%6,u=[n,i,o,o,s,n][l],c=[s,n,n,i,o,o][l],f=[o,o,s,n,n,i][l];return{r:u*255,g:c*255,b:f*255}}function tV(e,t,n,r){var a=[Af(Math.round(e).toString(16)),Af(Math.round(t).toString(16)),Af(Math.round(n).toString(16))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function HGe(e,t,n,r,a){var o=[Af(Math.round(e).toString(16)),Af(Math.round(t).toString(16)),Af(Math.round(n).toString(16)),Af(WGe(r))];return a&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function WGe(e){return Math.round(parseFloat(e)*255).toString(16)}function nV(e){return go(e)/255}function go(e){return parseInt(e,16)}function GGe(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var oT={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",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:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function UGe(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,i=!1,s=!1;return typeof e=="string"&&(e=YGe(e)),typeof e=="object"&&(hl(e.r)&&hl(e.g)&&hl(e.b)?(t=$Ge(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):hl(e.h)&&hl(e.s)&&hl(e.v)?(r=r2(e.s),a=r2(e.v),t=FGe(e.h,r,a),i=!0,s="hsv"):hl(e.h)&&hl(e.s)&&hl(e.l)&&(r=r2(e.s),o=r2(e.l),t=zGe(e.h,r,o),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=QZ(n),{ok:i,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}}var KGe="[-\\+]?\\d+%?",jGe="[-\\+]?\\d*\\.\\d+%?",Wu="(?:".concat(jGe,")|(?:").concat(KGe,")"),GS="[\\s|\\(]+(".concat(Wu,")[,|\\s]+(").concat(Wu,")[,|\\s]+(").concat(Wu,")\\s*\\)?"),US="[\\s|\\(]+(".concat(Wu,")[,|\\s]+(").concat(Wu,")[,|\\s]+(").concat(Wu,")[,|\\s]+(").concat(Wu,")\\s*\\)?"),hi={CSS_UNIT:new RegExp(Wu),rgb:new RegExp("rgb"+GS),rgba:new RegExp("rgba"+US),hsl:new RegExp("hsl"+GS),hsla:new RegExp("hsla"+US),hsv:new RegExp("hsv"+GS),hsva:new RegExp("hsva"+US),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 YGe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(oT[e])e=oT[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=hi.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=hi.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=hi.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=hi.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=hi.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=hi.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=hi.hex8.exec(e),n?{r:go(n[1]),g:go(n[2]),b:go(n[3]),a:nV(n[4]),format:t?"name":"hex8"}:(n=hi.hex6.exec(e),n?{r:go(n[1]),g:go(n[2]),b:go(n[3]),format:t?"name":"hex"}:(n=hi.hex4.exec(e),n?{r:go(n[1]+n[1]),g:go(n[2]+n[2]),b:go(n[3]+n[3]),a:nV(n[4]+n[4]),format:t?"name":"hex8"}:(n=hi.hex3.exec(e),n?{r:go(n[1]+n[1]),g:go(n[2]+n[2]),b:go(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function hl(e){return!!hi.CSS_UNIT.exec(String(e))}var Ov=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=GGe(t)),this.originalInput=t;var a=UGe(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.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.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,a,o=t.r/255,i=t.g/255,s=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=QZ(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=eV(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=eV(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=QB(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=QB(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),tV(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),HGe(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(fa(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(fa(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+tV(this.r,this.g,this.b,!1),n=0,r=Object.entries(oT);n<r.length;n++){var a=r[n],o=a[0],i=a[1];if(t===i)return o}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,a=this.a<1&&this.a>=0,o=!n&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=n2(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.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)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=n2(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=n2(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=n2(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),o=n/100,i={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,o=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,a=n.s,o=n.v,i=[],s=1/t;t--;)i.push(new e({h:r,s:a,v:o})),o=(o+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],o=360/t,i=1;i<t;i++)a.push(new e({h:(r+i*o)%360,s:n.s,l:n.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function gu(e,t=20){return e.mix("#141414",t).toString()}function qGe(e){const t=jn(),n=we("button");return R(()=>{let r={},a=e.color;if(a){const o=a.match(/var\((.*?)\)/);o&&(a=window.getComputedStyle(window.document.documentElement).getPropertyValue(o[1]));const i=new Ov(a),s=e.dark?i.tint(20).toString():gu(i,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?gu(i,90):i.tint(90).toString(),"text-color":a,"border-color":e.dark?gu(i,50):i.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?gu(i,90):i.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?gu(i,50):i.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?gu(i,80):i.tint(80).toString());else{const l=e.dark?gu(i,30):i.tint(30).toString(),u=i.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":a,"text-color":u,"border-color":a,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":s,"active-border-color":s}),t.value){const c=e.dark?gu(i,50):i.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=c,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=c}}}return r})}const XGe=q({name:"ElButton",__name:"button",props:aT,emits:NGe,setup(e,{expose:t,emit:n}){const r=e,a=n,o=qGe(r),i=we("button"),{_ref:s,_size:l,_type:u,_disabled:c,_props:f,_plain:d,_round:v,_text:h,shouldAddSpace:p,handleClick:g}=RGe(r,a),m=R(()=>[i.b(),i.m(u.value),i.m(l.value),i.is("disabled",c.value),i.is("loading",r.loading),i.is("plain",d.value),i.is("round",v.value),i.is("circle",r.circle),i.is("text",h.value),i.is("link",r.link),i.is("has-bg",r.bg)]);return t({ref:s,size:l,type:u,disabled:c,shouldAddSpace:p}),(y,b)=>(D(),de(Tt(y.tag),It({ref_key:"_ref",ref:s},_(f),{class:m.value,style:_(o),onClick:_(g)}),{default:ee(()=>[y.loading?(D(),H(qe,{key:0},[y.$slots.loading?ue(y.$slots,"loading",{key:0}):(D(),de(_(Xe),{key:1,class:W(_(i).is("loading"))},{default:ee(()=>[(D(),de(Tt(y.loadingIcon)))]),_:1},8,["class"]))],64)):y.icon||y.$slots.icon?(D(),de(_(Xe),{key:1},{default:ee(()=>[y.icon?(D(),de(Tt(y.icon),{key:0})):ue(y.$slots,"icon",{key:1})]),_:3})):le("v-if",!0),y.$slots.default?(D(),H("span",{key:2,class:W({[_(i).em("text","expand")]:_(p)})},[ue(y.$slots,"default")],2)):le("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var ZGe=De(XGe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const JGe={size:aT.size,type:aT.type,direction:{type:ne(String),values:["horizontal","vertical"],default:"horizontal"}},QGe=q({name:"ElButtonGroup",__name:"button-group",props:JGe,setup(e){const t=e;Ut(JZ,sn({size:vn(t,"size"),type:vn(t,"type")}));const n=we("button");return(r,a)=>(D(),H("div",{class:W([_(n).b("group"),_(n).bm("group",t.direction)])},[ue(r.$slots,"default")],2))}});var eJ=De(QGe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Gr=_t(ZGe,{ButtonGroup:eJ}),tJ=Kn(eJ);var Xi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function al(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function eUe(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var nJ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Xi,function(){var n=1e3,r=6e4,a=36e5,o="millisecond",i="second",s="minute",l="hour",u="day",c="week",f="month",d="quarter",v="year",h="date",p="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,y={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(O){var z=["th","st","nd","rd"],$=O%100;return"["+O+(z[($-20)%10]||z[$]||z[0])+"]"}},b=function(O,z,$){var P=String(O);return!P||P.length>=z?O:""+Array(z+1-P.length).join($)+O},w={s:b,z:function(O){var z=-O.utcOffset(),$=Math.abs(z),P=Math.floor($/60),L=$%60;return(z<=0?"+":"-")+b(P,2,"0")+":"+b(L,2,"0")},m:function O(z,$){if(z.date()<$.date())return-O($,z);var P=12*($.year()-z.year())+($.month()-z.month()),L=z.clone().add(P,f),V=$-L<0,B=z.clone().add(P+(V?-1:1),f);return+(-(P+($-L)/(V?L-B:B-L))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:f,y:v,w:c,d:u,D:h,h:l,m:s,s:i,ms:o,Q:d}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},S="en",x={};x[S]=y;var C="$isDayjsObject",T=function(O){return O instanceof A||!(!O||!O[C])},M=function O(z,$,P){var L;if(!z)return S;if(typeof z=="string"){var V=z.toLowerCase();x[V]&&(L=V),$&&(x[V]=$,L=V);var B=z.split("-");if(!L&&B.length>1)return O(B[0])}else{var F=z.name;x[F]=z,L=F}return!P&&L&&(S=L),L||!P&&S},k=function(O,z){if(T(O))return O.clone();var $=typeof z=="object"?z:{};return $.date=O,$.args=arguments,new A($)},E=w;E.l=M,E.i=T,E.w=function(O,z){return k(O,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var A=function(){function O($){this.$L=M($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[C]=!0}var z=O.prototype;return z.parse=function($){this.$d=function(P){var L=P.date,V=P.utc;if(L===null)return new Date(NaN);if(E.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var B=L.match(g);if(B){var F=B[2]-1||0,U=(B[7]||"0").substring(0,3);return V?new Date(Date.UTC(B[1],F,B[3]||1,B[4]||0,B[5]||0,B[6]||0,U)):new Date(B[1],F,B[3]||1,B[4]||0,B[5]||0,B[6]||0,U)}}return new Date(L)}($),this.init()},z.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},z.$utils=function(){return E},z.isValid=function(){return this.$d.toString()!==p},z.isSame=function($,P){var L=k($);return this.startOf(P)<=L&&L<=this.endOf(P)},z.isAfter=function($,P){return k($)<this.startOf(P)},z.isBefore=function($,P){return this.endOf(P)<k($)},z.$g=function($,P,L){return E.u($)?this[P]:this.set(L,$)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function($,P){var L=this,V=!!E.u(P)||P,B=E.p($),F=function(ce,ie){var Z=E.w(L.$u?Date.UTC(L.$y,ie,ce):new Date(L.$y,ie,ce),L);return V?Z:Z.endOf(u)},U=function(ce,ie){return E.w(L.toDate()[ce].apply(L.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(ie)),L)},G=this.$W,Y=this.$M,X=this.$D,te="set"+(this.$u?"UTC":"");switch(B){case v:return V?F(1,0):F(31,11);case f:return V?F(1,Y):F(0,Y+1);case c:var oe=this.$locale().weekStart||0,re=(G<oe?G+7:G)-oe;return F(V?X-re:X+(6-re),Y);case u:case h:return U(te+"Hours",0);case l:return U(te+"Minutes",1);case s:return U(te+"Seconds",2);case i:return U(te+"Milliseconds",3);default:return this.clone()}},z.endOf=function($){return this.startOf($,!1)},z.$set=function($,P){var L,V=E.p($),B="set"+(this.$u?"UTC":""),F=(L={},L[u]=B+"Date",L[h]=B+"Date",L[f]=B+"Month",L[v]=B+"FullYear",L[l]=B+"Hours",L[s]=B+"Minutes",L[i]=B+"Seconds",L[o]=B+"Milliseconds",L)[V],U=V===u?this.$D+(P-this.$W):P;if(V===f||V===v){var G=this.clone().set(h,1);G.$d[F](U),G.init(),this.$d=G.set(h,Math.min(this.$D,G.daysInMonth())).$d}else F&&this.$d[F](U);return this.init(),this},z.set=function($,P){return this.clone().$set($,P)},z.get=function($){return this[E.p($)]()},z.add=function($,P){var L,V=this;$=Number($);var B=E.p(P),F=function(Y){var X=k(V);return E.w(X.date(X.date()+Math.round(Y*$)),V)};if(B===f)return this.set(f,this.$M+$);if(B===v)return this.set(v,this.$y+$);if(B===u)return F(1);if(B===c)return F(7);var U=(L={},L[s]=r,L[l]=a,L[i]=n,L)[B]||1,G=this.$d.getTime()+$*U;return E.w(G,this)},z.subtract=function($,P){return this.add(-1*$,P)},z.format=function($){var P=this,L=this.$locale();if(!this.isValid())return L.invalidDate||p;var V=$||"YYYY-MM-DDTHH:mm:ssZ",B=E.z(this),F=this.$H,U=this.$m,G=this.$M,Y=L.weekdays,X=L.months,te=L.meridiem,oe=function(ie,Z,se,J){return ie&&(ie[Z]||ie(P,V))||se[Z].slice(0,J)},re=function(ie){return E.s(F%12||12,ie,"0")},ce=te||function(ie,Z,se){var J=ie<12?"AM":"PM";return se?J.toLowerCase():J};return V.replace(m,function(ie,Z){return Z||function(se){switch(se){case"YY":return String(P.$y).slice(-2);case"YYYY":return E.s(P.$y,4,"0");case"M":return G+1;case"MM":return E.s(G+1,2,"0");case"MMM":return oe(L.monthsShort,G,X,3);case"MMMM":return oe(X,G);case"D":return P.$D;case"DD":return E.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return oe(L.weekdaysMin,P.$W,Y,2);case"ddd":return oe(L.weekdaysShort,P.$W,Y,3);case"dddd":return Y[P.$W];case"H":return String(F);case"HH":return E.s(F,2,"0");case"h":return re(1);case"hh":return re(2);case"a":return ce(F,U,!0);case"A":return ce(F,U,!1);case"m":return String(U);case"mm":return E.s(U,2,"0");case"s":return String(P.$s);case"ss":return E.s(P.$s,2,"0");case"SSS":return E.s(P.$ms,3,"0");case"Z":return B}return null}(ie)||B.replace(":","")})},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function($,P,L){var V,B=this,F=E.p(P),U=k($),G=(U.utcOffset()-this.utcOffset())*r,Y=this-U,X=function(){return E.m(B,U)};switch(F){case v:V=X()/12;break;case f:V=X();break;case d:V=X()/3;break;case c:V=(Y-G)/6048e5;break;case u:V=(Y-G)/864e5;break;case l:V=Y/a;break;case s:V=Y/r;break;case i:V=Y/n;break;default:V=Y}return L?V:E.a(V)},z.daysInMonth=function(){return this.endOf(f).$D},z.$locale=function(){return x[this.$L]},z.locale=function($,P){if(!$)return this.$L;var L=this.clone(),V=M($,P,!0);return V&&(L.$L=V),L},z.clone=function(){return E.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},O}(),I=A.prototype;return k.prototype=I,[["$ms",o],["$s",i],["$m",s],["$H",l],["$W",u],["$M",f],["$y",v],["$D",h]].forEach(function(O){I[O[1]]=function(z){return this.$g(z,O[0],O[1])}}),k.extend=function(O,z){return O.$i||(O(z,A,k),O.$i=!0),k},k.locale=M,k.isDayjs=T,k.unix=function(O){return k(1e3*O)},k.en=x[S],k.Ls=x,k.p={},k})})(nJ);var tUe=nJ.exports;const wt=al(tUe),KS=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],Qu=e=>Array.from(Array.from({length:e}).keys()),rJ=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),aJ=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),rV=function(e,t){const n=ec(e),r=ec(t);return n&&r?e.getTime()===t.getTime():!n&&!r?e===t:!1},oJ=function(e,t){const n=Ce(e),r=Ce(t);return n&&r?e.length!==t.length?!1:e.every((a,o)=>rV(a,t[o])):!n&&!r?rV(e,t):!1},aV=function(e,t,n){const r=Ha(t)||t==="x"?wt(e).locale(n):wt(e,t).locale(n);return r.isValid()?r:void 0},oV=function(e,t,n){return Ha(t)?e:t==="x"?+e:wt(e).locale(n).format(t)},jS=(e,t)=>{var n;const r=[],a=t==null?void 0:t();for(let o=0;o<e;o++)r.push((n=a==null?void 0:a.includes(o))!=null?n:!1);return r},j2=e=>Ce(e)?e.map(t=>t.toDate()):e.toDate(),nUe=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return Qu(t).map((r,a)=>n-(t-a-1))},rUe=e=>{const t=e.daysInMonth();return Qu(t).map((n,r)=>r+1)},aUe=e=>Qu(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),oUe=Ie({selectedDay:{type:ne(Object)},range:{type:ne(Array)},date:{type:ne(Object),required:!0},hideHeader:{type:Boolean}}),iUe={pick:e=>St(e)};var iJ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Xi,function(){return function(n,r,a){var o=r.prototype,i=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,d,v,h,p){var g=f.name?f:f.$locale(),m=i(g[d]),y=i(g[v]),b=m||y.map(function(S){return S.slice(0,h)});if(!p)return b;var w=g.weekStart;return b.map(function(S,x){return b[(x+(w||0))%7]})},l=function(){return a.Ls[a.locale()]},u=function(f,d){return f.formats[d]||function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(h,p,g){return p||g.slice(1)})}(f.formats[d.toUpperCase()])},c=function(){var f=this;return{months:function(d){return d?d.format("MMMM"):s(f,"months")},monthsShort:function(d){return d?d.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(d){return d?d.format("dddd"):s(f,"weekdays")},weekdaysMin:function(d){return d?d.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(d){return d?d.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(d){return u(f.$locale(),d)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return c.bind(this)()},a.localeData=function(){var f=l();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(d){return u(f,d)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return s(l(),"months")},a.monthsShort=function(){return s(l(),"monthsShort","months",3)},a.weekdays=function(f){return s(l(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return s(l(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return s(l(),"weekdaysMin","weekdays",2,f)}}})})(iJ);var sUe=iJ.exports;const sJ=al(sUe),lUe=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],YS=["sun","mon","tue","wed","thu","fri","sat"],uUe=(e,t)=>{wt.extend(sJ);const n=wt.localeData().firstDayOfWeek(),{t:r,lang:a}=Kt(),o=wt().locale(a.value),i=R(()=>!!e.range&&!!e.range.length),s=R(()=>{let d=[];if(i.value){const[v,h]=e.range,p=Qu(h.date()-v.date()+1).map(y=>({text:v.date()+y,type:"current"}));let g=p.length%7;g=g===0?0:7-g;const m=Qu(g).map((y,b)=>({text:b+1,type:"next"}));d=p.concat(m)}else{const v=e.date.startOf("month").day(),h=nUe(e.date,(v-n+7)%7).map(y=>({text:y,type:"prev"})),p=rUe(e.date).map(y=>({text:y,type:"current"}));d=[...h,...p];const g=7-(d.length%7||7),m=Qu(g).map((y,b)=>({text:b+1,type:"next"}));d=d.concat(m)}return aUe(d)}),l=R(()=>{const d=n;return d===0?YS.map(v=>r(`el.datepicker.weeks.${v}`)):YS.slice(d).concat(YS.slice(0,d)).map(v=>r(`el.datepicker.weeks.${v}`))}),u=(d,v)=>{switch(v){case"prev":return e.date.startOf("month").subtract(1,"month").date(d);case"next":return e.date.startOf("month").add(1,"month").date(d);case"current":return e.date.date(d)}};return{now:o,isInRange:i,rows:s,weekDays:l,getFormattedDate:u,handlePickDay:({text:d,type:v})=>{const h=u(d,v);t("pick",h)},getSlotData:({text:d,type:v})=>{const h=u(d,v);return{isSelected:h.isSame(e.selectedDay),type:`${v}-month`,day:h.format("YYYY-MM-DD"),date:h.toDate()}}}},cUe={key:0},fUe=["onClick"],dUe=q({name:"DateTable",__name:"date-table",props:oUe,emits:iUe,setup(e,{expose:t,emit:n}){const r=e,a=n,{isInRange:o,now:i,rows:s,weekDays:l,getFormattedDate:u,handlePickDay:c,getSlotData:f}=uUe(r,a),d=we("calendar-table"),v=we("calendar-day"),h=({text:p,type:g})=>{const m=[g];if(g==="current"){const y=u(p,g);y.isSame(r.selectedDay,"day")&&m.push(v.is("selected")),y.isSame(i,"day")&&m.push(v.is("today"))}return m};return t({getFormattedDate:u}),(p,g)=>(D(),H("table",{class:W([_(d).b(),_(d).is("range",_(o))]),cellspacing:"0",cellpadding:"0"},[p.hideHeader?le("v-if",!0):(D(),H("thead",cUe,[N("tr",null,[(D(!0),H(qe,null,Wt(_(l),m=>(D(),H("th",{key:m,scope:"col"},Ae(m),1))),128))])])),N("tbody",null,[(D(!0),H(qe,null,Wt(_(s),(m,y)=>(D(),H("tr",{key:y,class:W({[_(d).e("row")]:!0,[_(d).em("row","hide-border")]:y===0&&p.hideHeader})},[(D(!0),H(qe,null,Wt(m,(b,w)=>(D(),H("td",{key:w,class:W(h(b)),onClick:S=>_(c)(b)},[N("div",{class:W(_(v).b())},[ue(p.$slots,"date-cell",{data:_(f)(b)},()=>[N("span",null,Ae(b.text),1)])],2)],10,fUe))),128))],2))),128))])],2))}});var iV=De(dUe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const vUe=(e,t)=>{const n=e.endOf("month"),r=t.startOf("month"),o=n.isSame(r,"week")?r.add(1,"week"):r;return[[e,n],[o.startOf("week"),t]]},hUe=(e,t)=>{const n=e.endOf("month"),r=e.add(1,"month").startOf("month"),a=n.isSame(r,"week")?r.add(1,"week"):r,o=a.endOf("month"),i=t.startOf("month"),s=o.isSame(i,"week")?i.add(1,"week"):i;return[[e,n],[a.startOf("week"),o],[s.startOf("week"),t]]},pUe=(e,t,n)=>{const{lang:r}=Kt(),a=K(),o=wt().locale(r.value),i=R({get(){return e.modelValue?l.value:a.value},set(g){if(!g)return;a.value=g;const m=g.toDate();t(dr,m),t(dt,m)}}),s=R(()=>{if(!e.range||!Ce(e.range)||e.range.length!==2||e.range.some(b=>!ec(b)))return[];const g=e.range.map(b=>wt(b).locale(r.value)),[m,y]=g;return m.isAfter(y)?[]:m.isSame(y,"month")?v(m,y):m.add(1,"month").month()!==y.month()?[]:v(m,y)}),l=R(()=>e.modelValue?wt(e.modelValue).locale(r.value):i.value||(s.value.length?s.value[0][0]:o)),u=R(()=>l.value.subtract(1,"month").date(1)),c=R(()=>l.value.add(1,"month").date(1)),f=R(()=>l.value.subtract(1,"year").date(1)),d=R(()=>l.value.add(1,"year").date(1)),v=(g,m)=>{const y=g.startOf("week"),b=m.endOf("week"),w=y.get("month"),S=b.get("month");return w===S?[[y,b]]:(w+1)%12===S?vUe(y,b):w+2===S||(w+1)%11===S?hUe(y,b):[]},h=g=>{i.value=g};return{calculateValidatedDateRange:v,date:l,realSelectedDay:i,pickDay:h,selectDate:g=>{const y={"prev-month":u.value,"next-month":c.value,"prev-year":f.value,"next-year":d.value,today:o}[g];y.isSame(l.value,"day")||h(y)},validatedRange:s}},gUe=e=>Ce(e)&&e.length===2&&e.every(t=>ec(t)),mUe=Ie({modelValue:{type:Date},range:{type:ne(Array),validator:gUe}}),yUe={[dt]:e=>ec(e),[dr]:e=>ec(e)},bUe="ElCalendar",_Ue=q({name:bUe,__name:"calendar",props:mUe,emits:yUe,setup(e,{expose:t,emit:n}){const r=we("calendar"),a=e,o=n,{calculateValidatedDateRange:i,date:s,pickDay:l,realSelectedDay:u,selectDate:c,validatedRange:f}=pUe(a,o),{t:d}=Kt(),v=R(()=>{const h=`el.datepicker.month${s.value.format("M")}`;return`${s.value.year()} ${d("el.datepicker.year")} ${d(h)}`});return t({selectedDay:u,pickDay:l,selectDate:c,calculateValidatedDateRange:i}),(h,p)=>(D(),H("div",{class:W(_(r).b())},[N("div",{class:W(_(r).e("header"))},[ue(h.$slots,"header",{date:v.value},()=>[N("div",{class:W(_(r).e("title"))},Ae(v.value),3),_(f).length===0?(D(),H("div",{key:0,class:W(_(r).e("button-group"))},[Q(_(tJ),null,{default:ee(()=>[Q(_(Gr),{size:"small",onClick:p[0]||(p[0]=g=>_(c)("prev-month"))},{default:ee(()=>[gt(Ae(_(d)("el.datepicker.prevMonth")),1)]),_:1}),Q(_(Gr),{size:"small",onClick:p[1]||(p[1]=g=>_(c)("today"))},{default:ee(()=>[gt(Ae(_(d)("el.datepicker.today")),1)]),_:1}),Q(_(Gr),{size:"small",onClick:p[2]||(p[2]=g=>_(c)("next-month"))},{default:ee(()=>[gt(Ae(_(d)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):le("v-if",!0)])],2),_(f).length===0?(D(),H("div",{key:0,class:W(_(r).e("body"))},[Q(iV,{date:_(s),"selected-day":_(u),onPick:_(l)},Ua({_:2},[h.$slots["date-cell"]?{name:"date-cell",fn:ee(g=>[ue(h.$slots,"date-cell",Cs(Ms(g)))]),key:"0"}:void 0]),1032,["date","selected-day","onPick"])],2)):(D(),H("div",{key:1,class:W(_(r).e("body"))},[(D(!0),H(qe,null,Wt(_(f),(g,m)=>(D(),de(iV,{key:m,date:g[0],"selected-day":_(u),range:g,"hide-header":m!==0,onPick:_(l)},Ua({_:2},[h.$slots["date-cell"]?{name:"date-cell",fn:ee(y=>[ue(h.$slots,"date-cell",It({ref_for:!0},y))]),key:"0"}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var wUe=De(_Ue,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const SUe=_t(wUe),xUe=Ie({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:ne([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}}),CUe=q({name:"ElCard",__name:"card",props:xUe,setup(e){const t=hp("card"),n=we("card");return(r,a)=>{var o;return D(),H("div",{class:W([_(n).b(),_(n).is(`${r.shadow||((o=_(t))==null?void 0:o.shadow)||"always"}-shadow`)])},[r.$slots.header||r.header?(D(),H("div",{key:0,class:W([_(n).e("header"),r.headerClass])},[ue(r.$slots,"header",{},()=>[gt(Ae(r.header),1)])],2)):le("v-if",!0),N("div",{class:W([_(n).e("body"),r.bodyClass]),style:et(r.bodyStyle)},[ue(r.$slots,"default")],6),r.$slots.footer||r.footer?(D(),H("div",{key:1,class:W([_(n).e("footer"),r.footerClass])},[ue(r.$slots,"footer",{},()=>[gt(Ae(r.footer),1)])],2)):le("v-if",!0)],2)}}});var TUe=De(CUe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const kUe=_t(TUe),MUe=Ie({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),AUe={change:(e,t)=>[e,t].every(rt)},lJ=Symbol("carouselContextKey"),iT="ElCarouselItem";var Uo=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Uo||{});function sT(e){return wn(e)&&e.type===qe}function EUe(e){return wn(e)&&e.type===$n}function IUe(e){return wn(e)&&!sT(e)&&!EUe(e)}const LUe=e=>{if(!wn(e))return{};const t=e.props||{},n=(wn(e.type)?e.type.props:void 0)||{},r={};return Object.keys(n).forEach(a=>{nn(n[a],"default")&&(r[a]=n[a].default)}),Object.keys(t).forEach(a=>{r[Or(a)]=t[a]}),r},_i=e=>{const t=Ce(e)?e:[e],n=[];return t.forEach(r=>{var a;Ce(r)?n.push(..._i(r)):wn(r)&&((a=r.component)!=null&&a.subTree)?n.push(r,..._i(r.component.subTree)):wn(r)&&Ce(r.children)?n.push(..._i(r.children)):wn(r)&&r.shapeFlag===2?n.push(..._i(r.type())):n.push(r)}),n},DUe=(e,t,n)=>_i(e.subTree).filter(o=>{var i;return wn(o)&&((i=o.type)==null?void 0:i.name)===t&&!!o.component}).map(o=>o.component.uid).map(o=>n[o]).filter(o=>!!o),T4=(e,t)=>{const n=Ln({}),r=Ln([]),a=new WeakMap,o=c=>{n.value[c.uid]=c,P0(n),Et(()=>{const f=c.getVnode().el,d=f.parentNode;if(!a.has(d)){a.set(d,[]);const v=d.insertBefore.bind(d);d.insertBefore=(h,p)=>(a.get(d).some(m=>h===m||p===m)&&P0(n),v(h,p))}a.get(d).push(f)})},i=c=>{delete n.value[c.uid],P0(n);const f=c.getVnode().el,d=f.parentNode,v=a.get(d),h=v.indexOf(f);v.splice(h,1)},s=()=>{r.value=DUe(e,t,n.value)},l=c=>c.render();return{children:r,addChild:o,removeChild:i,ChildrenSorter:q({setup(c,{slots:f}){return()=>(s(),f.default?ot(l,{render:f.default}):null)}})}},sV=300,PUe=(e,t,n)=>{const{children:r,addChild:a,removeChild:o,ChildrenSorter:i}=T4(bt(),iT),s=fr(),l=K(-1),u=K(null),c=K(!1),f=K(),d=K(0),v=K(!0),h=R(()=>e.arrow!=="never"&&!_(m)),p=R(()=>r.value.some(X=>X.props.label.toString().length>0)),g=R(()=>e.type==="card"),m=R(()=>e.direction==="vertical"),y=R(()=>e.height!=="auto"?{height:e.height}:{height:`${d.value}px`,overflow:"hidden"}),b=Hu(X=>{M(X)},sV,{trailing:!0}),w=Hu(X=>{P(X)},sV),S=X=>v.value?l.value<=1?X<=1:X>1:!0;function x(){u.value&&(clearInterval(u.value),u.value=null)}function C(){e.interval<=0||!e.autoplay||u.value||(u.value=setInterval(()=>T(),e.interval))}const T=()=>{l.value<r.value.length-1?l.value=l.value+1:e.loop&&(l.value=0)};function M(X){if(Ge(X)){const re=r.value.filter(ce=>ce.props.name===X);re.length>0&&(X=r.value.indexOf(re[0]))}if(X=Number(X),Number.isNaN(X)||X!==Math.floor(X))return;const te=r.value.length,oe=l.value;X<0?l.value=e.loop?te-1:0:X>=te?l.value=e.loop?0:te-1:l.value=X,oe===l.value&&k(oe),B()}function k(X){r.value.forEach((te,oe)=>{te.translateItem(oe,l.value,X)})}function E(X,te){var oe,re,ce,ie;const Z=_(r),se=Z.length;if(se===0||!X.states.inStage)return!1;const J=te+1,ae=te-1,fe=se-1,ve=Z[fe].states.active,me=Z[0].states.active,pe=(re=(oe=Z[J])==null?void 0:oe.states)==null?void 0:re.active,Ne=(ie=(ce=Z[ae])==null?void 0:ce.states)==null?void 0:ie.active;return te===fe&&me||pe?"left":te===0&&ve||Ne?"right":!1}function A(){c.value=!0,e.pauseOnHover&&x()}function I(){c.value=!1,C()}function O(X){_(m)||r.value.forEach((te,oe)=>{X===E(te,oe)&&(te.states.hover=!0)})}function z(){_(m)||r.value.forEach(X=>{X.states.hover=!1})}function $(X){l.value=X}function P(X){e.trigger==="hover"&&X!==l.value&&(l.value=X)}function L(){M(l.value-1)}function V(){M(l.value+1)}function B(){x(),e.pauseOnHover||C()}function F(X){e.height==="auto"&&(d.value=X)}function U(){var X;const te=(X=s.default)==null?void 0:X.call(s);if(!te)return null;const re=_i(te).filter(ce=>wn(ce)&&ce.type.name===iT);return(re==null?void 0:re.length)===2&&e.loop&&!g.value?(v.value=!0,re):(v.value=!1,null)}he(()=>l.value,(X,te)=>{k(te),v.value&&(X=X%2,te=te%2),te>-1&&t(Ht,X,te)});const G=R({get:()=>v.value?l.value%2:l.value,set:X=>l.value=X});he(()=>e.autoplay,X=>{X?C():x()}),he(()=>e.loop,()=>{M(l.value)}),he(()=>e.interval,()=>{B()});const Y=Ln();return Et(()=>{he(()=>r.value,()=>{r.value.length>0&&M(e.initialIndex)},{immediate:!0}),Y.value=On(f.value,()=>{k()}),C()}),un(()=>{x(),f.value&&Y.value&&Y.value.stop()}),Ut(lJ,{root:f,isCardType:g,isVertical:m,items:r,loop:e.loop,cardScale:e.cardScale,addItem:a,removeItem:o,setActiveItem:M,setContainerHeight:F}),{root:f,activeIndex:l,exposeActiveIndex:G,arrowDisplay:h,hasLabel:p,hover:c,isCardType:g,items:r,isVertical:m,containerStyle:y,isItemsTwoLength:v,handleButtonEnter:O,handleButtonLeave:z,handleIndicatorClick:$,handleMouseEnter:A,handleMouseLeave:I,setActiveItem:M,prev:L,next:V,PlaceholderItem:U,isTwoLengthShow:S,ItemsSorter:i,throttledArrowClick:b,throttledIndicatorHover:w}},RUe=["aria-label"],OUe=["aria-label"],NUe=["onMouseenter","onClick"],BUe=["aria-label"],VUe={key:0},$Ue={key:2,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},zUe="ElCarousel",FUe=q({name:zUe,__name:"carousel",props:MUe,emits:AUe,setup(e,{expose:t,emit:n}){const r=e,a=n,{root:o,activeIndex:i,exposeActiveIndex:s,arrowDisplay:l,hasLabel:u,hover:c,isCardType:f,items:d,isVertical:v,containerStyle:h,handleButtonEnter:p,handleButtonLeave:g,handleIndicatorClick:m,handleMouseEnter:y,handleMouseLeave:b,setActiveItem:w,prev:S,next:x,PlaceholderItem:C,isTwoLengthShow:T,ItemsSorter:M,throttledArrowClick:k,throttledIndicatorHover:E}=PUe(r,a),A=we("carousel"),{t:I}=Kt(),O=R(()=>{const L=[A.b(),A.m(r.direction)];return _(f)&&L.push(A.m("card")),L}),z=R(()=>{const L=[A.e("indicators"),A.em("indicators",r.direction)];return _(u)&&L.push(A.em("indicators","labels")),r.indicatorPosition==="outside"&&L.push(A.em("indicators","outside")),_(v)&&L.push(A.em("indicators","right")),L});function $(L){if(!r.motionBlur)return;const V=_(v)?`${A.namespace.value}-transitioning-vertical`:`${A.namespace.value}-transitioning`;L.currentTarget.classList.add(V)}function P(L){if(!r.motionBlur)return;const V=_(v)?`${A.namespace.value}-transitioning-vertical`:`${A.namespace.value}-transitioning`;L.currentTarget.classList.remove(V)}return t({activeIndex:s,setActiveItem:w,prev:S,next:x}),(L,V)=>(D(),H("div",{ref_key:"root",ref:o,class:W(O.value),onMouseenter:V[6]||(V[6]=ut((...B)=>_(y)&&_(y)(...B),["stop"])),onMouseleave:V[7]||(V[7]=ut((...B)=>_(b)&&_(b)(...B),["stop"]))},[_(l)?(D(),de(Ur,{key:0,name:"carousel-arrow-left",persisted:""},{default:ee(()=>[xt(N("button",{type:"button",class:W([_(A).e("arrow"),_(A).em("arrow","left")]),"aria-label":_(I)("el.carousel.leftArrow"),onMouseenter:V[0]||(V[0]=B=>_(p)("left")),onMouseleave:V[1]||(V[1]=(...B)=>_(g)&&_(g)(...B)),onClick:V[2]||(V[2]=ut(B=>_(k)(_(i)-1),["stop"]))},[Q(_(Xe),null,{default:ee(()=>[Q(_(Xs))]),_:1})],42,RUe),[[tn,(L.arrow==="always"||_(c))&&(L.loop||_(i)>0)]])]),_:1})):le("v-if",!0),_(l)?(D(),de(Ur,{key:1,name:"carousel-arrow-right",persisted:""},{default:ee(()=>[xt(N("button",{type:"button",class:W([_(A).e("arrow"),_(A).em("arrow","right")]),"aria-label":_(I)("el.carousel.rightArrow"),onMouseenter:V[3]||(V[3]=B=>_(p)("right")),onMouseleave:V[4]||(V[4]=(...B)=>_(g)&&_(g)(...B)),onClick:V[5]||(V[5]=ut(B=>_(k)(_(i)+1),["stop"]))},[Q(_(Xe),null,{default:ee(()=>[Q(_(ca))]),_:1})],42,OUe),[[tn,(L.arrow==="always"||_(c))&&(L.loop||_(i)<_(d).length-1)]])]),_:1})):le("v-if",!0),N("div",{class:W(_(A).e("container")),style:et(_(h)),onTransitionstart:$,onTransitionend:P},[Q(_(C)),ue(L.$slots,"default")],38),Q(_(M),null,{default:ee(()=>[L.indicatorPosition!=="none"?(D(),H("ul",{key:0,class:W(z.value)},[(D(!0),H(qe,null,Wt(_(d),(B,F)=>xt((D(),H("li",{key:F,class:W([_(A).e("indicator"),_(A).em("indicator",L.direction),_(A).is("active",F===_(i))]),onMouseenter:U=>_(E)(F),onClick:ut(U=>_(m)(F),["stop"])},[N("button",{class:W(_(A).e("button")),"aria-label":_(I)("el.carousel.indicator",{index:F+1})},[_(u)?(D(),H("span",VUe,Ae(B.props.label),1)):le("v-if",!0)],10,BUe)],42,NUe)),[[tn,_(T)(F)]])),128))],2)):le("v-if",!0)]),_:1}),L.motionBlur?(D(),H("svg",$Ue,[...V[8]||(V[8]=[N("defs",null,[N("filter",{id:"elCarouselHorizontal"},[N("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),N("filter",{id:"elCarouselVertical"},[N("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])],-1)])])):le("v-if",!0)],34))}});var HUe=De(FUe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const WUe=Ie({name:{type:String,default:""},label:{type:[String,Number],default:""}}),GUe=e=>{const t=Ue(lJ),n=bt(),r=K(),a=K(!1),o=K(0),i=K(1),s=K(!1),l=K(!1),u=K(!1),c=K(!1),{isCardType:f,isVertical:d,cardScale:v}=t;function h(w,S,x){const C=x-1,T=S-1,M=S+1,k=x/2;return S===0&&w===C?-1:S===C&&w===0?x:w<T&&S-w>=k?x+1:w>M&&w-S>=k?-2:w}function p(w,S){var x,C;const T=_(d)?((x=t.root.value)==null?void 0:x.offsetHeight)||0:((C=t.root.value)==null?void 0:C.offsetWidth)||0;return u.value?T*((2-v)*(w-S)+1)/4:w<S?-(1+v)*T/4:(3+v)*T/4}function g(w,S,x){const C=t.root.value;return C?((x?C.offsetHeight:C.offsetWidth)||0)*(w-S):0}const m=(w,S,x)=>{var C;const T=_(f),M=(C=t.items.value.length)!=null?C:Number.NaN,k=w===S;!T&&!Jt(x)&&(c.value=k||w===x),!k&&M>2&&t.loop&&(w=h(w,S,M));const E=_(d);s.value=k,T?(u.value=Math.round(Math.abs(w-S))<=1,o.value=p(w,S),i.value=_(s)?1:v):o.value=g(w,S,E),l.value=!0,k&&r.value&&t.setContainerHeight(r.value.offsetHeight)};function y(){if(t&&_(f)){const w=t.items.value.findIndex(({uid:S})=>S===n.uid);t.setActiveItem(w)}}const b={props:e,states:sn({hover:a,translate:o,scale:i,active:s,ready:l,inStage:u,animating:c}),uid:n.uid,getVnode:()=>n.vnode,translateItem:m};return t.addItem(b),un(()=>{t.removeItem(b)}),{carouselItemRef:r,active:s,animating:c,hover:a,inStage:u,isVertical:d,translate:o,isCardType:f,scale:i,ready:l,handleItemClick:y}},UUe=q({name:iT,__name:"carousel-item",props:WUe,setup(e){const t=e,n=we("carousel"),{carouselItemRef:r,active:a,animating:o,hover:i,inStage:s,isVertical:l,translate:u,isCardType:c,scale:f,ready:d,handleItemClick:v}=GUe(t),h=R(()=>[n.e("item"),n.is("active",a.value),n.is("in-stage",s.value),n.is("hover",i.value),n.is("animating",o.value),{[n.em("item","card")]:c.value,[n.em("item","card-vertical")]:c.value&&l.value}]),p=R(()=>{const m=`${`translate${_(l)?"Y":"X"}`}(${_(u)}px)`,y=`scale(${_(f)})`;return{transform:[m,y].join(" ")}});return(g,m)=>xt((D(),H("div",{ref_key:"carouselItemRef",ref:r,class:W(h.value),style:et(p.value),onClick:m[0]||(m[0]=(...y)=>_(v)&&_(v)(...y))},[_(c)?xt((D(),H("div",{key:0,class:W(_(n).e("mask"))},null,2)),[[tn,!_(a)]]):le("v-if",!0),ue(g.$slots,"default")],6)),[[tn,_(d)]])}});var uJ=De(UUe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const KUe=_t(HUe,{CarouselItem:uJ}),jUe=Kn(uJ),cJ={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:{type:Boolean,default:void 0},checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:wr,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},ariaLabel:String,...Da(["ariaControls"])},fJ={[dt]:e=>Ge(e)||rt(e)||hn(e),change:e=>Ge(e)||rt(e)||hn(e)},yp=Symbol("checkboxGroupContextKey"),YUe=({model:e,isChecked:t})=>{const n=Ue(yp,void 0),r=Ue(Vd,void 0),a=R(()=>{var i,s;const l=(i=n==null?void 0:n.max)==null?void 0:i.value,u=(s=n==null?void 0:n.min)==null?void 0:s.value;return!Jt(l)&&e.value.length>=l&&!t.value||!Jt(u)&&e.value.length<=u&&t.value});return{isDisabled:jn(R(()=>{var i,s;return n===void 0?(i=r==null?void 0:r.disabled)!=null?i:a.value:((s=n.disabled)==null?void 0:s.value)||a.value})),isLimitDisabled:a}},qUe=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:a,isLabeledByFormItem:o})=>{const i=Ue(yp,void 0),{formItem:s}=Yr(),{emit:l}=bt();function u(h){var p,g,m,y;return[!0,e.trueValue,e.trueLabel].includes(h)?(g=(p=e.trueValue)!=null?p:e.trueLabel)!=null?g:!0:(y=(m=e.falseValue)!=null?m:e.falseLabel)!=null?y:!1}function c(h,p){l(Ht,u(h),p)}function f(h){if(n.value)return;const p=h.target;l(Ht,u(p.checked),h)}async function d(h){n.value||!r.value&&!a.value&&o.value&&(h.composedPath().some(m=>m.tagName==="LABEL")||(t.value=u([!1,e.falseValue,e.falseLabel].includes(t.value)),await ze(),c(t.value,h)))}const v=R(()=>(i==null?void 0:i.validateEvent)||e.validateEvent);return he(()=>e.modelValue,()=>{v.value&&(s==null||s.validate("change").catch(h=>void 0))}),{handleChange:f,onClickRoot:d}},XUe=e=>{const t=K(!1),{emit:n}=bt(),r=Ue(yp,void 0),a=R(()=>Jt(r)===!1),o=K(!1),i=R({get(){var s,l;return a.value?(s=r==null?void 0:r.modelValue)==null?void 0:s.value:(l=e.modelValue)!=null?l:t.value},set(s){var l,u;a.value&&Ce(s)?(o.value=((l=r==null?void 0:r.max)==null?void 0:l.value)!==void 0&&s.length>(r==null?void 0:r.max.value)&&s.length>i.value.length,o.value===!1&&((u=r==null?void 0:r.changeEvent)==null||u.call(r,s))):(n(dt,s),t.value=s)}});return{model:i,isGroup:a,isLimitExceeded:o}},ZUe=(e,t,{model:n})=>{const r=Ue(yp,void 0),a=K(!1),o=R(()=>io(e.value)?e.label:e.value),i=R(()=>{const c=n.value;return hn(c)?c:Ce(c)?St(o.value)?c.map(Cn).some(f=>Yn(f,o.value)):c.map(Cn).includes(o.value):c!=null?c===e.trueValue||c===e.trueLabel:!!c}),s=vr(R(()=>{var c;return(c=r==null?void 0:r.size)==null?void 0:c.value}),{prop:!0}),l=vr(R(()=>{var c;return(c=r==null?void 0:r.size)==null?void 0:c.value})),u=R(()=>!!t.default||!io(o.value));return{checkboxButtonSize:s,isChecked:i,isFocused:a,checkboxSize:l,hasOwnLabel:u,actualValue:o}},dJ=(e,t)=>{const{formItem:n}=Yr(),{model:r,isGroup:a,isLimitExceeded:o}=XUe(e),{isFocused:i,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,actualValue:f}=ZUe(e,t,{model:r}),{isDisabled:d}=YUe({model:r,isChecked:s}),{inputId:v,isLabeledByFormItem:h}=Ro(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:a}),{handleChange:p,onClickRoot:g}=qUe(e,{model:r,isLimitExceeded:o,hasOwnLabel:c,isDisabled:d,isLabeledByFormItem:h});return(()=>{function y(){var b,w;Ce(r.value)&&!r.value.includes(f.value)?r.value.push(f.value):r.value=(w=(b=e.trueValue)!=null?b:e.trueLabel)!=null?w:!0}e.checked&&y()})(),Os({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},R(()=>a.value&&io(e.value))),Os({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},R(()=>!!e.trueLabel)),Os({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},R(()=>!!e.falseLabel)),{inputId:v,isLabeledByFormItem:h,isChecked:s,isDisabled:d,isFocused:i,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:r,actualValue:f,handleChange:p,onClickRoot:g}},JUe=["id","indeterminate","name","tabindex","disabled"],QUe=q({name:"ElCheckbox",__name:"checkbox",props:cJ,emits:fJ,setup(e){const t=e,n=fr(),{inputId:r,isLabeledByFormItem:a,isChecked:o,isDisabled:i,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:c,actualValue:f,handleChange:d,onClickRoot:v}=dJ(t,n),h=R(()=>{var y,b,w,S;return t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":(b=(y=t.trueValue)!=null?y:t.trueLabel)!=null?b:!0,"false-value":(S=(w=t.falseValue)!=null?w:t.falseLabel)!=null?S:!1}:{value:f.value}}),p=we("checkbox"),g=R(()=>[p.b(),p.m(l.value),p.is("disabled",i.value),p.is("bordered",t.border),p.is("checked",o.value)]),m=R(()=>[p.e("input"),p.is("disabled",i.value),p.is("checked",o.value),p.is("indeterminate",t.indeterminate),p.is("focus",s.value)]);return(y,b)=>(D(),de(Tt(!_(u)&&_(a)?"span":"label"),{for:!_(u)&&_(a)?null:_(r),class:W(g.value),"aria-controls":y.indeterminate?y.ariaControls:null,"aria-checked":y.indeterminate?"mixed":void 0,"aria-label":y.ariaLabel,onClick:_(v)},{default:ee(()=>[N("span",{class:W(m.value)},[xt(N("input",It({id:_(r),"onUpdate:modelValue":b[0]||(b[0]=w=>Dn(c)?c.value=w:null),class:_(p).e("original"),type:"checkbox",indeterminate:y.indeterminate,name:y.name,tabindex:y.tabindex,disabled:_(i)},h.value,{onChange:b[1]||(b[1]=(...w)=>_(d)&&_(d)(...w)),onFocus:b[2]||(b[2]=w=>s.value=!0),onBlur:b[3]||(b[3]=w=>s.value=!1),onClick:b[4]||(b[4]=ut(()=>{},["stop"]))}),null,16,JUe),[[Tm,_(c)]]),N("span",{class:W(_(p).e("inner"))},null,2)],2),_(u)?(D(),H("span",{key:0,class:W(_(p).e("label"))},[ue(y.$slots,"default"),y.$slots.default?le("v-if",!0):(D(),H(qe,{key:0},[gt(Ae(y.label),1)],64))],2)):le("v-if",!0)]),_:3},8,["for","class","aria-controls","aria-checked","aria-label","onClick"]))}});var vJ=De(QUe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const eKe=["name","tabindex","disabled"],tKe=q({name:"ElCheckboxButton",__name:"checkbox-button",props:cJ,emits:fJ,setup(e){const t=e,n=fr(),{isFocused:r,isChecked:a,isDisabled:o,checkboxButtonSize:i,model:s,actualValue:l,handleChange:u}=dJ(t,n),c=R(()=>{var p,g,m,y;return t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":(g=(p=t.trueValue)!=null?p:t.trueLabel)!=null?g:!0,"false-value":(y=(m=t.falseValue)!=null?m:t.falseLabel)!=null?y:!1}:{value:l.value}}),f=Ue(yp,void 0),d=we("checkbox"),v=R(()=>{var p,g,m,y;const b=(g=(p=f==null?void 0:f.fill)==null?void 0:p.value)!=null?g:"";return{backgroundColor:b,borderColor:b,color:(y=(m=f==null?void 0:f.textColor)==null?void 0:m.value)!=null?y:"",boxShadow:b?`-1px 0 0 0 ${b}`:void 0}}),h=R(()=>[d.b("button"),d.bm("button",i.value),d.is("disabled",o.value),d.is("checked",a.value),d.is("focus",r.value)]);return(p,g)=>(D(),H("label",{class:W(h.value)},[xt(N("input",It({"onUpdate:modelValue":g[0]||(g[0]=m=>Dn(s)?s.value=m:null),class:_(d).be("button","original"),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:_(o)},c.value,{onChange:g[1]||(g[1]=(...m)=>_(u)&&_(u)(...m)),onFocus:g[2]||(g[2]=m=>r.value=!0),onBlur:g[3]||(g[3]=m=>r.value=!1),onClick:g[4]||(g[4]=ut(()=>{},["stop"]))}),null,16,eKe),[[Tm,_(s)]]),p.$slots.default||p.label?(D(),H("span",{key:0,class:W(_(d).be("button","inner")),style:et(_(a)?v.value:void 0)},[ue(p.$slots,"default",{},()=>[gt(Ae(p.label),1)])],6)):le("v-if",!0)],2))}});var GA=De(tKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const nKe=Ie({modelValue:{type:ne(Array),default:()=>[]},disabled:{type:Boolean,default:void 0},min:Number,max:Number,size:wr,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:ne(Array)},props:{type:ne(Object),default:()=>hJ},type:{type:String,values:["checkbox","button"],default:"checkbox"},...Da(["ariaLabel"])}),rKe={[dt]:e=>Ce(e),change:e=>Ce(e)},hJ={label:"label",value:"value",disabled:"disabled"},aKe=q({name:"ElCheckboxGroup",__name:"checkbox-group",props:nKe,emits:rKe,setup(e,{emit:t}){const n=e,r=t,a=we("checkbox"),o=jn(),{formItem:i}=Yr(),{inputId:s,isLabeledByFormItem:l}=Ro(n,{formItemContext:i}),u=async h=>{r(dt,h),await ze(),r(Ht,h)},c=R({get(){return n.modelValue},set(h){u(h)}}),f=R(()=>({...hJ,...n.props})),d=h=>{const{label:p,value:g,disabled:m}=f.value,y={label:h[p],value:h[g],disabled:h[m]};return{...Zm(h,[p,g,m]),...y}},v=R(()=>n.type==="button"?GA:vJ);return Ut(yp,{...Kl(kr(n),["size","min","max","validateEvent","fill","textColor"]),disabled:o,modelValue:c,changeEvent:u}),he(()=>n.modelValue,(h,p)=>{n.validateEvent&&!Yn(h,p)&&(i==null||i.validate("change").catch(g=>void 0))}),(h,p)=>{var g;return D(),de(Tt(h.tag),{id:_(s),class:W(_(a).b("group")),role:"group","aria-label":_(l)?void 0:h.ariaLabel||"checkbox-group","aria-labelledby":_(l)?(g=_(i))==null?void 0:g.labelId:void 0},{default:ee(()=>[ue(h.$slots,"default",{},()=>[(D(!0),H(qe,null,Wt(h.options,(m,y)=>(D(),de(Tt(v.value),It({key:y},{ref_for:!0},d(m)),null,16))),128))])]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var pJ=De(aKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const Bi=_t(vJ,{CheckboxButton:GA,CheckboxGroup:pJ}),oKe=Kn(GA),UA=Kn(pJ),gJ=Ie({modelValue:{type:[String,Number,Boolean],default:void 0},size:wr,disabled:{type:Boolean,default:void 0},label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),iKe=Ie({...gJ,border:Boolean}),mJ={[dt]:e=>Ge(e)||rt(e)||hn(e),[Ht]:e=>Ge(e)||rt(e)||hn(e)},yJ=Symbol("radioGroupKey"),bJ=(e,t)=>{const n=K(),r=Ue(yJ,void 0),a=R(()=>!!r),o=R(()=>io(e.value)?e.label:e.value),i=R({get(){return a.value?r.modelValue:e.modelValue},set(f){a.value?r.changeEvent(f):t&&t(dt,f),n.value.checked=e.modelValue===o.value}}),s=vr(R(()=>r==null?void 0:r.size)),l=jn(R(()=>r==null?void 0:r.disabled)),u=K(!1),c=R(()=>l.value||a.value&&i.value!==o.value?-1:0);return Os({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},R(()=>a.value&&io(e.value))),{radioRef:n,isGroup:a,radioGroup:r,focus:u,size:s,disabled:l,tabIndex:c,modelValue:i,actualValue:o}},sKe=["value","name","disabled","checked"],lKe=q({name:"ElRadio",__name:"radio",props:iKe,emits:mJ,setup(e,{emit:t}){const n=e,r=t,a=we("radio"),{radioRef:o,radioGroup:i,focus:s,size:l,disabled:u,modelValue:c,actualValue:f}=bJ(n,r);function d(){ze(()=>r(Ht,c.value))}return(v,h)=>{var p;return D(),H("label",{class:W([_(a).b(),_(a).is("disabled",_(u)),_(a).is("focus",_(s)),_(a).is("bordered",v.border),_(a).is("checked",_(c)===_(f)),_(a).m(_(l))])},[N("span",{class:W([_(a).e("input"),_(a).is("disabled",_(u)),_(a).is("checked",_(c)===_(f))])},[xt(N("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":h[0]||(h[0]=g=>Dn(c)?c.value=g:null),class:W(_(a).e("original")),value:_(f),name:v.name||((p=_(i))==null?void 0:p.name),disabled:_(u),checked:_(c)===_(f),type:"radio",onFocus:h[1]||(h[1]=g=>s.value=!0),onBlur:h[2]||(h[2]=g=>s.value=!1),onChange:d,onClick:h[3]||(h[3]=ut(()=>{},["stop"]))},null,42,sKe),[[km,_(c)]]),N("span",{class:W(_(a).e("inner"))},null,2)],2),N("span",{class:W(_(a).e("label")),onKeydown:h[4]||(h[4]=ut(()=>{},["stop"]))},[ue(v.$slots,"default",{},()=>[gt(Ae(v.label),1)])],34)],2)}}});var _J=De(lKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const uKe=Ie({...gJ}),cKe=["value","name","disabled"],fKe=q({name:"ElRadioButton",__name:"radio-button",props:uKe,setup(e){const t=e,n=we("radio"),{radioRef:r,focus:a,size:o,disabled:i,modelValue:s,radioGroup:l,actualValue:u}=bJ(t),c=R(()=>({backgroundColor:(l==null?void 0:l.fill)||"",borderColor:(l==null?void 0:l.fill)||"",boxShadow:l!=null&&l.fill?`-1px 0 0 0 ${l.fill}`:"",color:(l==null?void 0:l.textColor)||""}));return(f,d)=>{var v;return D(),H("label",{class:W([_(n).b("button"),_(n).is("active",_(s)===_(u)),_(n).is("disabled",_(i)),_(n).is("focus",_(a)),_(n).bm("button",_(o))])},[xt(N("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":d[0]||(d[0]=h=>Dn(s)?s.value=h:null),class:W(_(n).be("button","original-radio")),value:_(u),type:"radio",name:f.name||((v=_(l))==null?void 0:v.name),disabled:_(i),onFocus:d[1]||(d[1]=h=>a.value=!0),onBlur:d[2]||(d[2]=h=>a.value=!1),onClick:d[3]||(d[3]=ut(()=>{},["stop"]))},null,42,cKe),[[km,_(s)]]),N("span",{class:W(_(n).be("button","inner")),style:et(_(s)===_(u)?c.value:{}),onKeydown:d[4]||(d[4]=ut(()=>{},["stop"]))},[ue(f.$slots,"default",{},()=>[gt(Ae(f.label),1)])],38)],2)}}});var KA=De(fKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const dKe=Ie({id:{type:String,default:void 0},size:wr,disabled:{type:Boolean,default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},options:{type:ne(Array)},props:{type:ne(Object),default:()=>wJ},type:{type:String,values:["radio","button"],default:"radio"},...Da(["ariaLabel"])}),vKe=mJ,wJ={label:"label",value:"value",disabled:"disabled"},hKe=["id","aria-label","aria-labelledby"],pKe=q({name:"ElRadioGroup",__name:"radio-group",props:dKe,emits:vKe,setup(e,{emit:t}){const n=e,r=t,a=we("radio"),o=ea(),i=K(),{formItem:s}=Yr(),{inputId:l,isLabeledByFormItem:u}=Ro(n,{formItemContext:s}),c=p=>{r(dt,p),ze(()=>r(Ht,p))};Et(()=>{const p=i.value.querySelectorAll("[type=radio]"),g=p[0];!Array.from(p).some(m=>m.checked)&&g&&(g.tabIndex=0)});const f=R(()=>n.name||o.value),d=R(()=>({...wJ,...n.props})),v=p=>{const{label:g,value:m,disabled:y}=d.value,b={label:p[g],value:p[m],disabled:p[y]};return{...Zm(p,[g,m,y]),...b}},h=R(()=>n.type==="button"?KA:_J);return Ut(yJ,sn({...kr(n),changeEvent:c,name:f})),he(()=>n.modelValue,(p,g)=>{n.validateEvent&&!Yn(p,g)&&(s==null||s.validate("change").catch(m=>void 0))}),(p,g)=>(D(),H("div",{id:_(l),ref_key:"radioGroupRef",ref:i,class:W(_(a).b("group")),role:"radiogroup","aria-label":_(u)?void 0:p.ariaLabel||"radio-group","aria-labelledby":_(u)?_(s).labelId:void 0},[ue(p.$slots,"default",{},()=>[(D(!0),H(qe,null,Wt(p.options,(m,y)=>(D(),de(Tt(h.value),It({key:y},{ref_for:!0},v(m)),null,16))),128))])],10,hKe))}});var SJ=De(pKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const xJ=_t(_J,{RadioButton:KA,RadioGroup:SJ}),gKe=Kn(SJ),mKe=Kn(KA),k4=Symbol();function yKe(e){return!!(Ce(e)?e.every(({type:t})=>t===$n):(e==null?void 0:e.type)===$n)}var bKe=q({name:"NodeContent",props:{node:{type:Object,required:!0}},setup(e){const t=we("cascader-node"),{renderLabelFn:n}=Ue(k4),{node:r}=e,{data:a,label:o}=r,i=()=>{const s=n==null?void 0:n({node:r,data:a});return yKe(s)?o:s??o};return()=>Q("span",{class:t.e("label")},[i()])}});const _Ke=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],wKe=q({name:"ElCascaderNode",__name:"node",props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=e,r=t,a=Ue(k4),o=we("cascader-node"),i=R(()=>a.isHoverMenu),s=R(()=>a.config.multiple),l=R(()=>a.config.checkStrictly),u=R(()=>a.config.showPrefix),c=R(()=>{var M;return(M=a.checkedNodes[0])==null?void 0:M.uid}),f=R(()=>n.node.isDisabled),d=R(()=>n.node.isLeaf),v=R(()=>l.value&&!d.value||!f.value),h=R(()=>g(a.expandingNode)),p=R(()=>l.value&&a.checkedNodes.some(g)),g=M=>{var k;const{level:E,uid:A}=n.node;return((k=M==null?void 0:M.pathNodes[E-1])==null?void 0:k.uid)===A},m=()=>{h.value||a.expandNode(n.node)},y=M=>{const{node:k}=n;M!==k.checked&&a.handleCheckChange(k,M)},b=()=>{a.lazyLoad(n.node,()=>{d.value||m()})},w=M=>{i.value&&(S(),!d.value&&r("expand",M))},S=()=>{const{node:M}=n;!v.value||M.loading||(M.loaded?m():b())},x=()=>{d.value&&!f.value&&!l.value&&!s.value?T(!0):(a.config.checkOnClickNode&&(s.value||l.value)||d.value&&a.config.checkOnClickLeaf)&&!f.value?C(!n.node.checked):i.value||S()},C=M=>{l.value?(y(M),n.node.loaded&&m()):T(M)},T=M=>{n.node.loaded?(y(M),!l.value&&m()):b()};return(M,k)=>(D(),H("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!d.value,"aria-owns":d.value?void 0:e.menuId,"aria-expanded":h.value,tabindex:v.value?-1:void 0,class:W([_(o).b(),_(o).is("selectable",l.value),_(o).is("active",e.node.checked),_(o).is("disabled",!v.value),h.value&&"in-active-path",p.value&&"in-checked-path"]),onMouseenter:w,onFocus:w,onClick:x},[le(" prefix "),s.value&&u.value?(D(),de(_(Bi),{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:f.value,onClick:k[0]||(k[0]=ut(()=>{},["stop"])),"onUpdate:modelValue":C},null,8,["model-value","indeterminate","disabled"])):l.value&&u.value?(D(),de(_(xJ),{key:1,"model-value":c.value,label:e.node.uid,disabled:f.value,"onUpdate:modelValue":C,onClick:k[1]||(k[1]=ut(()=>{},["stop"]))},{default:ee(()=>[le(`
|
||
Add an empty element to avoid render label,
|
||
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
|
||
`),k[2]||(k[2]=N("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):d.value&&e.node.checked?(D(),de(_(Xe),{key:2,class:W(_(o).e("prefix"))},{default:ee(()=>[Q(_(gp))]),_:1},8,["class"])):le("v-if",!0),le(" content "),Q(_(bKe),{node:e.node},null,8,["node"]),le(" postfix "),d.value?le("v-if",!0):(D(),H(qe,{key:3},[e.node.loading?(D(),de(_(Xe),{key:0,class:W([_(o).is("loading"),_(o).e("postfix")])},{default:ee(()=>[Q(_(si))]),_:1},8,["class"])):(D(),de(_(Xe),{key:1,class:W(["arrow-right",_(o).e("postfix")])},{default:ee(()=>[Q(_(ca))]),_:1},8,["class"]))],64))],42,_Ke))}});var SKe=De(wKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const xKe=q({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=e,n=bt(),r=we("cascader-menu"),{t:a}=Kt(),o=ea();let i,s;const l=Ue(k4),u=K(),c=R(()=>!t.nodes.length),f=R(()=>!l.initialLoaded),d=R(()=>`${o.value}-${t.index}`),v=m=>{i=m.target},h=m=>{var y;if(!(!l.isHoverMenu||!i||!u.value))if(i.contains(m.target)){p();const b=n.vnode.el,{left:w}=b.getBoundingClientRect(),{offsetWidth:S,offsetHeight:x}=b,C=m.clientX-w,T=i.offsetTop,M=T+i.offsetHeight,k=((y=b.querySelector(`.${r.e("wrap")}`))==null?void 0:y.scrollTop)||0;u.value.innerHTML=`
|
||
<path style="pointer-events: auto;" fill="transparent" d="M${C} ${T} L${S} ${k} V${T} Z" />
|
||
<path style="pointer-events: auto;" fill="transparent" d="M${C} ${M} L${S} ${x+k} V${M} Z" />
|
||
`}else s||(s=window.setTimeout(g,l.config.hoverThreshold))},p=()=>{s&&(clearTimeout(s),s=void 0)},g=()=>{u.value&&(u.value.innerHTML="",p())};return(m,y)=>(D(),de(_(Ni),{key:d.value,tag:"ul",role:"menu",class:W(_(r).b()),"wrap-class":_(r).e("wrap"),"view-class":[_(r).e("list"),_(r).is("empty",c.value)],onMousemove:h,onMouseleave:g},{default:ee(()=>{var b;return[(D(!0),H(qe,null,Wt(e.nodes,w=>(D(),de(SKe,{key:w.uid,node:w,"menu-id":d.value,onExpand:v},null,8,["node","menu-id"]))),128)),f.value?(D(),H("div",{key:0,class:W(_(r).e("empty-text"))},[Q(_(Xe),{size:"14",class:W(_(r).is("loading"))},{default:ee(()=>[Q(_(si))]),_:1},8,["class"]),gt(" "+Ae(_(a)("el.cascader.loading")),1)],2)):c.value?(D(),H("div",{key:1,class:W(_(r).e("empty-text"))},[ue(m.$slots,"empty",{},()=>[gt(Ae(_(a)("el.cascader.noData")),1)])],2)):(b=_(l))!=null&&b.isHoverMenu?(D(),H(qe,{key:2},[le(" eslint-disable-next-line vue/html-self-closing "),(D(),H("svg",{ref_key:"hoverZone",ref:u,class:W(_(r).e("hover-zone"))},null,2))],2112)):le("v-if",!0)]}),_:3},8,["class","wrap-class","view-class"]))}});var CKe=De(xKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let TKe=0;const kKe=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let lT=class uT{constructor(t,n,r,a=!1){this.data=t,this.config=n,this.parent=r,this.root=a,this.uid=TKe++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:o,label:i,children:s}=n,l=t[s],u=kKe(this);this.level=a?0:r?r.level+1:1,this.value=t[o],this.label=t[i],this.pathNodes=u,this.pathValues=u.map(c=>c.value),this.pathLabels=u.map(c=>c.label),this.childrenData=l,this.children=(l||[]).map(c=>new uT(c,n,this)),this.loaded=!n.lazy||this.isLeaf||!Ha(l),this.text=""}get isDisabled(){const{data:t,parent:n,config:r}=this,{disabled:a,checkStrictly:o}=r;return(Je(a)?a(t,this):!!t[a])||!o&&!!(n!=null&&n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:r,loaded:a}=this,{lazy:o,leaf:i}=n,s=Je(i)?i(t,this):t[i];return Jt(s)?o&&!a?!1:!(Ce(r)&&r.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:r}=this,a=new uT(t,this.config,this);return Ce(n)?n.push(t):this.childrenData=[t],r.push(a),a}calcText(t,n){const r=t?this.pathLabels.join(n):this.label;return this.text=r,r}broadcast(t){this.children.forEach(n=>{var r;n&&(n.broadcast(t),(r=n.onParentCheck)==null||r.call(n,t))})}emit(){var t;const{parent:n}=this;n&&((t=n.onChildCheck)==null||t.call(n),n.emit())}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(a=>!a.isDisabled),r=n.length?n.every(a=>a.checked):!1;this.setCheckState(r)}setCheckState(t){const n=this.children.length,r=this.children.reduce((a,o)=>{const i=o.checked?1:o.indeterminate?.5:0;return a+i},0);this.checked=this.loaded&&this.children.filter(a=>!a.isDisabled).every(a=>a.loaded&&a.checked)&&t,this.indeterminate=this.loaded&&r!==n&&r>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:r}=this.config;n||!r?this.checked=t:(this.broadcast(t),this.setCheckState(t),this.emit())}};const cT=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(cT(r.children,t))),n),[]);class lV{constructor(t,n){this.config=n;const r=(t||[]).map(a=>new lT(a,this.config));this.nodes=r,this.allNodes=cT(r,!1),this.leafNodes=cT(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new lT(t,this.config);n||this.nodes.push(r),this.appendAllNodesAndLeafNodes(r)}appendNodes(t,n){t.length>0?t.forEach(r=>this.appendNode(r,n)):n&&n.isLeaf&&this.leafNodes.push(n)}appendAllNodesAndLeafNodes(t){this.allNodes.push(t),t.isLeaf&&this.leafNodes.push(t),t.children&&t.children.forEach(n=>{this.appendAllNodesAndLeafNodes(n)})}getNodeByValue(t,n=!1){return io(t)?null:this.getFlattedNodes(n).find(a=>Yn(a.value,t)||Yn(a.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:r,level:a})=>Yn(t.value,r)&&t.level===a)||null}}const CJ=Ie({modelValue:{type:ne([Number,String,Array,Object])},options:{type:ne(Array),default:()=>[]},props:{type:ne(Object),default:()=>({})}}),MKe={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:cn,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500,checkOnClickNode:!1,checkOnClickLeaf:!0,showPrefix:!0},AKe=Ie({...CJ,border:{type:Boolean,default:!0},renderLabel:{type:Function}}),uV=e=>!0,EKe={[dt]:uV,[Ht]:uV,close:()=>!0,"expand-change":e=>e},IKe=e=>R(()=>({...MKe,...e.props})),cV=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},LKe=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():bZ(e)&&e.click()},DKe=(e,t)=>{const n=t.slice(0),r=n.map(o=>o.uid),a=e.reduce((o,i)=>{const s=r.indexOf(i.uid);return s>-1&&(o.push(i),n.splice(s,1),r.splice(s,1)),o},[]);return a.push(...n),a},PKe=q({name:"ElCascaderPanel",__name:"index",props:AKe,emits:EKe,setup(e,{expose:t,emit:n}){const r=e,a=n;let o=!1;const i=we("cascader"),s=IKe(r),l=fr();let u;const c=K(!0),f=K(!1),d=K([]),v=K(),h=K([]),p=K(),g=K([]),m=R(()=>s.value.expandTrigger==="hover"),y=R(()=>r.renderLabel||l.default),b=()=>{const{options:P}=r,L=s.value;o=!1,u=new lV(P,L),h.value=[u.getNodes()],L.lazy&&Ha(r.options)?(c.value=!1,w(void 0,V=>{V&&(u=new lV(V,L),h.value=[u.getNodes()]),c.value=!0,A(!1,!0)})):A(!1,!0)},w=(P,L)=>{const V=s.value;P=P||new lT({},V,void 0,!0),P.loading=!0;const B=U=>{const G=P,Y=G.root?null:G;G.loading=!1,G.loaded=!0,G.childrenData=G.childrenData||[],U&&(u==null||u.appendNodes(U,Y)),U&&(L==null||L(U)),P.level===0&&(f.value=!0)},F=()=>{P.loading=!1,P.loaded=!1,P.level===0&&(c.value=!0)};V.lazyLoad(P,B,F)},S=(P,L)=>{var V;const{level:B}=P,F=h.value.slice(0,B);let U;P.isLeaf?U=P.pathNodes[B-2]:(U=P,F.push(P.children)),((V=p.value)==null?void 0:V.uid)!==(U==null?void 0:U.uid)&&(p.value=P,h.value=F,!L&&a("expand-change",(P==null?void 0:P.pathValues)||[]))},x=(P,L,V=!0)=>{const{checkStrictly:B,multiple:F}=s.value,U=g.value[0];o=!0,!F&&(U==null||U.doCheck(!1)),P.doCheck(L),E(),V&&!F&&!B&&a("close"),!V&&!F&&C(P)},C=P=>{P&&(P=P.parent,C(P),P&&S(P))},T=P=>u==null?void 0:u.getFlattedNodes(P),M=P=>{var L;return(L=T(P))==null?void 0:L.filter(({checked:V})=>V!==!1)},k=()=>{g.value.forEach(P=>P.doCheck(!1)),E(),h.value=h.value.slice(0,1),p.value=void 0,a("expand-change",[])},E=()=>{var P;const{checkStrictly:L,multiple:V}=s.value,B=g.value,F=M(!L),U=DKe(B,F),G=U.map(Y=>Y.valueByOption);g.value=U,v.value=V?G:(P=G[0])!=null?P:null},A=(P=!1,L=!1)=>{const{modelValue:V}=r,{lazy:B,multiple:F,checkStrictly:U}=s.value,G=!U;if(!(!c.value||o||!L&&Yn(V,v.value)))if(B&&!P){const X=XB(nLe(Ca(V))).map(te=>u==null?void 0:u.getNodeByValue(te)).filter(te=>!!te&&!te.loaded&&!te.loading);X.length?X.forEach(te=>{w(te,()=>A(!1,L))}):A(!0,L)}else{const Y=F?Ca(V):[V],X=XB(Y.map(te=>u==null?void 0:u.getNodeByValue(te,G)));I(X,L),v.value=L_(V??void 0)}},I=(P,L=!0)=>{const{checkStrictly:V}=s.value,B=g.value,F=P.filter(Y=>!!Y&&(V||Y.isLeaf)),U=u==null?void 0:u.getSameNode(p.value),G=L&&U||F[0];G?G.pathNodes.forEach(Y=>S(Y,!0)):p.value=void 0,B.forEach(Y=>Y.doCheck(!1)),sn(F).forEach(Y=>Y.doCheck(!0)),g.value=F,ze(O)},O=()=>{on&&d.value.forEach(P=>{const L=P==null?void 0:P.$el;if(L){const V=L.querySelector(`.${i.namespace.value}-scrollbar__wrap`),B=L.querySelector(`.${i.b("node")}.${i.is("active")}:last-child`)||L.querySelector(`.${i.b("node")}.in-active-path`);SA(V,B)}})},z=P=>{const L=P.target,V=xn(P);switch(V){case ke.up:case ke.down:{P.preventDefault();const B=V===ke.up?-1:1;U2(_Z(L,B,`.${i.b("node")}[tabindex="-1"]`));break}case ke.left:{P.preventDefault();const B=d.value[cV(L)-1],F=B==null?void 0:B.$el.querySelector(`.${i.b("node")}[aria-expanded="true"]`);U2(F);break}case ke.right:{P.preventDefault();const B=d.value[cV(L)+1],F=B==null?void 0:B.$el.querySelector(`.${i.b("node")}[tabindex="-1"]`);U2(F);break}case ke.enter:case ke.numpadEnter:LKe(L);break}};Ut(k4,sn({config:s,expandingNode:p,checkedNodes:g,isHoverMenu:m,initialLoaded:c,renderLabelFn:y,lazyLoad:w,expandNode:S,handleCheckChange:x})),he(s,(P,L)=>{Yn(P,L)||b()},{immediate:!0}),he(()=>r.options,b,{deep:!0}),he(()=>r.modelValue,()=>{o=!1,A()},{deep:!0}),he(()=>v.value,P=>{Yn(P,r.modelValue)||(a(dt,P),a(Ht,P))});const $=()=>{f.value||b()};return Sm(()=>d.value=[]),Et(()=>!Ha(r.modelValue)&&A()),t({menuList:d,menus:h,checkedNodes:g,handleKeyDown:z,handleCheckChange:x,getFlattedNodes:T,getCheckedNodes:M,clearCheckedNodes:k,calculateCheckedValue:E,scrollToExpandingNode:O,loadLazyRootNodes:$}),(P,L)=>(D(),H("div",{class:W([_(i).b("panel"),_(i).is("bordered",P.border)]),onKeydown:z},[(D(!0),H(qe,null,Wt(h.value,(V,B)=>(D(),de(CKe,{key:B,ref_for:!0,ref:F=>d.value[B]=F,index:B,nodes:[...V]},{empty:ee(()=>[ue(P.$slots,"empty")]),_:3},8,["index","nodes"]))),128))],34))}});var RKe=De(PKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);const TJ=_t(RKe),Zl=Ie({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:nl},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),OKe={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},NKe=["aria-label"],BKe=["aria-label"],VKe=q({name:"ElTag",__name:"tag",props:Zl,emits:OKe,setup(e,{emit:t}){const n=e,r=t,a=vr(),{t:o}=Kt(),i=we("tag"),s=R(()=>{const{type:f,hit:d,effect:v,closable:h,round:p}=n;return[i.b(),i.is("closable",h),i.m(f||"primary"),i.m(a.value),i.m(v),i.is("hit",d),i.is("round",p)]}),l=f=>{r("close",f)},u=f=>{r("click",f)},c=f=>{var d,v,h;(h=(v=(d=f==null?void 0:f.component)==null?void 0:d.subTree)==null?void 0:v.component)!=null&&h.bum&&(f.component.subTree.component.bum=null)};return(f,d)=>f.disableTransitions?(D(),H("span",{key:0,class:W(s.value),style:et({backgroundColor:f.color}),onClick:u},[N("span",{class:W(_(i).e("content"))},[ue(f.$slots,"default")],2),f.closable?(D(),H("button",{key:0,"aria-label":_(o)("el.tag.close"),class:W(_(i).e("close")),type:"button",onClick:ut(l,["stop"])},[Q(_(Xe),null,{default:ee(()=>[Q(_(Io))]),_:1})],10,NKe)):le("v-if",!0)],6)):(D(),de(Ur,{key:1,name:`${_(i).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:c},{default:ee(()=>[N("span",{class:W(s.value),style:et({backgroundColor:f.color}),onClick:u},[N("span",{class:W(_(i).e("content"))},[ue(f.$slots,"default")],2),f.closable?(D(),H("button",{key:0,"aria-label":_(o)("el.tag.close"),class:W(_(i).e("close")),type:"button",onClick:ut(l,["stop"])},[Q(_(Xe),null,{default:ee(()=>[Q(_(Io))]),_:1})],10,BKe)):le("v-if",!0)],6)]),_:3},8,["name"]))}});var $Ke=De(VKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const Ol=_t($Ke),zKe=Ie({...CJ,size:wr,placeholder:String,disabled:{type:Boolean,default:void 0},clearable:Boolean,clearIcon:{type:pn,default:rl},filterable:Boolean,filterMethod:{type:ne(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:Boolean,maxCollapseTagsTooltipHeight:{type:[String,Number]},debounce:{type:Number,default:300},beforeFilter:{type:ne(Function),default:()=>!0},placement:{type:ne(String),values:ou,default:"bottom-start"},fallbackPlacements:{type:ne(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:bn.popperClass,popperStyle:bn.popperStyle,teleported:bn.teleported,effect:{type:ne(String),default:"light"},tagType:{...Zl.type,default:"info"},tagEffect:{...Zl.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},showCheckedStrategy:{type:String,values:["parent","child"],default:"child"},checkOnClickNode:Boolean,showPrefix:{type:Boolean,default:!0},...Bd}),fV=e=>!0,FKe={[dt]:fV,[Ht]:fV,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>hn(e),expandChange:e=>!!e,removeTag:e=>!!e},xu=new Map;if(on){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of xu.values())for(const{documentHandler:r}of n)r(t,e);e=void 0}})}function dV(e,t){let n=[];return Ce(t.arg)?n=t.arg:oo(t.arg)&&n.push(t.arg),function(r,a){const o=t.instance.popperRef,i=r.target,s=a==null?void 0:a.target,l=!t||!t.instance,u=!i||!s,c=e.contains(i)||e.contains(s),f=e===i,d=n.length&&n.some(h=>h==null?void 0:h.contains(i))||n.length&&n.includes(s),v=o&&(o.contains(i)||o.contains(s));l||u||c||f||d||v||t.value(r,a)}}const pc={beforeMount(e,t){xu.has(e)||xu.set(e,[]),xu.get(e).push({documentHandler:dV(e,t),bindingFn:t.value})},updated(e,t){xu.has(e)||xu.set(e,[]);const n=xu.get(e),r=n.findIndex(o=>o.bindingFn===t.oldValue),a={documentHandler:dV(e,t),bindingFn:t.value};r>=0?n.splice(r,1,a):n.push(a)},unmounted(e){xu.delete(e)}},HKe=["placeholder"],WKe=["onClick"],GKe=q({name:"ElCascader",__name:"cascader",props:zKe,emits:FKe,setup(e,{expose:t,emit:n}){const r={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:Me})=>{const{modifiersData:Ye,placement:ct}=Me;["right","left","bottom","top"].includes(ct)||Ye.arrow&&(Ye.arrow.x=35)},requires:["arrow"]}]},a=e,o=n,i=el();let s=0,l=0;const u=we("cascader"),c=we("input"),{t:f}=Kt(),{formItem:d}=Yr(),v=jn(),{valueOnClear:h}=n1(a),{isComposing:p,handleComposition:g}=u1({afterComposition(Me){var Ye;const ct=(Ye=Me.target)==null?void 0:Ye.value;ge(ct)}}),m=K(),y=K(),b=K(),w=K(),S=K(),x=K(),C=K(!1),T=K(!1),M=K(!1),k=K(""),E=K(""),A=K([]),I=K([]),O=R(()=>a.props.multiple?a.collapseTags?A.value.slice(0,a.maxCollapseTags):A.value:[]),z=R(()=>a.props.multiple?a.collapseTags?A.value.slice(a.maxCollapseTags):[]:[]),$=R(()=>i.style),P=R(()=>{var Me;return(Me=a.placeholder)!=null?Me:f("el.cascader.placeholder")}),L=R(()=>E.value||A.value.length>0||p.value?"":P.value),V=vr(),B=R(()=>V.value==="small"?"small":"default"),F=R(()=>!!a.props.multiple),U=R(()=>!a.filterable||F.value),G=R(()=>F.value?E.value:k.value),Y=R(()=>{var Me;return((Me=S.value)==null?void 0:Me.checkedNodes)||[]}),{wrapperRef:X,isFocused:te,handleBlur:oe}=au(b,{disabled:v,beforeBlur(Me){var Ye,ct;return((Ye=m.value)==null?void 0:Ye.isFocusInsideContent(Me))||((ct=y.value)==null?void 0:ct.isFocusInsideContent(Me))},afterBlur(){var Me;a.validateEvent&&((Me=d==null?void 0:d.validate)==null||Me.call(d,"blur").catch(Ye=>void 0))}}),re=R(()=>!a.clearable||v.value||M.value||!T.value&&!te.value?!1:!!Y.value.length),ce=R(()=>{const{showAllLevels:Me,separator:Ye}=a,ct=Y.value;return ct.length?F.value?"":ct[0].calcText(Me,Ye):""}),ie=R(()=>(d==null?void 0:d.validateState)||""),Z=R({get(){return L_(a.modelValue)},set(Me){const Ye=Me??h.value;o(dt,Ye),o(Ht,Ye),a.validateEvent&&(d==null||d.validate("change").catch(ct=>void 0))}}),se=R(()=>[u.b(),u.m(V.value),u.is("disabled",v.value),i.class]),J=R(()=>[c.e("icon"),"icon-arrow-down",u.is("reverse",C.value)]),ae=R(()=>u.is("focus",te.value)),fe=R(()=>{var Me,Ye;return(Ye=(Me=m.value)==null?void 0:Me.popperRef)==null?void 0:Ye.contentRef}),ve=Me=>{if(te.value){const Ye=new FocusEvent("blur",Me);oe(Ye)}me(!1)},me=Me=>{var Ye,ct;v.value||(Me=Me??!C.value,Me!==C.value&&(C.value=Me,(ct=(Ye=b.value)==null?void 0:Ye.input)==null||ct.setAttribute("aria-expanded",`${Me}`),Me?(pe(),S.value&&ze(S.value.scrollToExpandingNode)):a.filterable&&Qe(),o("visibleChange",Me)))},pe=()=>{ze(()=>{var Me;(Me=m.value)==null||Me.updatePopper()})},Ne=()=>{M.value=!1},Ee=Me=>{const{showAllLevels:Ye,separator:ct}=a;return{node:Me,key:Me.uid,text:Me.calcText(Ye,ct),hitState:!1,closable:!v.value&&!Me.isDisabled}},_e=Me=>{var Ye;const ct=Me.node;ct.doCheck(!1),(Ye=S.value)==null||Ye.calculateCheckedValue(),o("removeTag",ct.valueByOption)},be=()=>{switch(a.showCheckedStrategy){case"child":return Y.value;case"parent":{const Me=xe(!1),Ye=Me.map(Zn=>Zn.value);return Me.filter(Zn=>!Zn.parent||!Ye.includes(Zn.parent.value))}default:return[]}},Fe=()=>{if(!F.value)return;const Me=be(),Ye=[];Me.forEach(ct=>Ye.push(Ee(ct))),A.value=Ye},Oe=()=>{var Me,Ye;const{filterMethod:ct,showAllLevels:Zn,separator:ho}=a,hr=(Ye=(Me=S.value)==null?void 0:Me.getFlattedNodes(!a.props.checkStrictly))==null?void 0:Ye.filter(We=>We.isDisabled?!1:(We.calcText(Zn,ho),ct(We,G.value)));F.value&&A.value.forEach(We=>{We.hitState=!1}),M.value=!0,I.value=hr,pe()},Ze=()=>{var Me;let Ye;M.value&&x.value?Ye=x.value.$el.querySelector(`.${u.e("suggestion-item")}`):Ye=(Me=S.value)==null?void 0:Me.$el.querySelector(`.${u.b("node")}[tabindex="-1"]`),Ye&&(Ye.focus(),!M.value&&Ye.click())},nt=()=>{var Me,Ye;const ct=(Me=b.value)==null?void 0:Me.input,Zn=w.value,ho=(Ye=x.value)==null?void 0:Ye.$el;if(!(!on||!ct)){if(ho){const hr=ho.querySelector(`.${u.e("suggestion-list")}`);hr.style.minWidth=`${ct.offsetWidth}px`}if(Zn){const{offsetHeight:hr}=Zn,We=A.value.length>0?`${Math.max(hr,s)-2}px`:`${s}px`;ct.style.height=We,pe()}}},xe=Me=>{var Ye;return(Ye=S.value)==null?void 0:Ye.getCheckedNodes(Me)},je=Me=>{pe(),o("expandChange",Me)},Ke=Me=>{if(p.value)return;switch(xn(Me)){case ke.enter:case ke.numpadEnter:me();break;case ke.down:me(!0),ze(Ze),Me.preventDefault();break;case ke.esc:C.value===!0&&(Me.preventDefault(),Me.stopPropagation(),me(!1));break;case ke.tab:me(!1);break}},en=()=>{var Me;(Me=S.value)==null||Me.clearCheckedNodes(),!C.value&&a.filterable&&Qe(),me(!1),o("clear")},Qe=()=>{const{value:Me}=ce;k.value=Me,E.value=Me},Ct=Me=>{var Ye,ct;const{checked:Zn}=Me;F.value?(Ye=S.value)==null||Ye.handleCheckChange(Me,!Zn,!1):(!Zn&&((ct=S.value)==null||ct.handleCheckChange(Me,!0,!1)),me(!1))},mt=Me=>{const Ye=Me.target,ct=xn(Me);switch(ct){case ke.up:case ke.down:{Me.preventDefault();const Zn=ct===ke.up?-1:1;U2(_Z(Ye,Zn,`.${u.e("suggestion-item")}[tabindex="-1"]`));break}case ke.enter:case ke.numpadEnter:Ye.click();break}},Nt=()=>{const Me=A.value[A.value.length-1];l=E.value?0:l+1,!(!Me||!l||a.collapseTags&&A.value.length>1)&&(Me.hitState?_e(Me):Me.hitState=!0)},Te=R(()=>a.debounce),He=Qm(()=>{const{value:Me}=G;if(!Me)return;const Ye=a.beforeFilter(Me);tc(Ye)?Ye.then(Oe).catch(()=>{}):Ye!==!1?Oe():Ne()},Te),ge=(Me,Ye)=>{!C.value&&me(!0),!(Ye!=null&&Ye.isComposing)&&(Me?He():Ne())},tt=Me=>Number.parseFloat(FLe(c.cssVarName("input-height"),Me).value)-2,Bt=()=>{var Me;(Me=b.value)==null||Me.focus()},Mn=()=>{var Me;(Me=b.value)==null||Me.blur()};return he(M,pe),he([Y,v,()=>a.collapseTags,()=>a.maxCollapseTags],Fe),he(A,()=>{ze(()=>nt())}),he(V,async()=>{await ze();const Me=b.value.input;s=tt(Me)||s,nt()}),he(ce,Qe,{immediate:!0}),he(()=>C.value,Me=>{var Ye;Me&&a.props.lazy&&a.props.lazyLoad&&((Ye=S.value)==null||Ye.loadLazyRootNodes())}),Et(()=>{const Me=b.value.input,Ye=tt(Me);s=Me.offsetHeight||Ye,On(Me,nt)}),t({getCheckedNodes:xe,cascaderPanelRef:S,togglePopperVisible:me,contentRef:fe,presentText:ce,focus:Bt,blur:Mn}),(Me,Ye)=>(D(),de(_(ta),{ref_key:"tooltipRef",ref:m,visible:C.value,teleported:Me.teleported,"popper-class":[_(u).e("dropdown"),Me.popperClass],"popper-style":Me.popperStyle,"popper-options":r,"fallback-placements":Me.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:Me.placement,transition:`${_(u).namespace.value}-zoom-in-top`,effect:Me.effect,pure:"",persistent:Me.persistent,onHide:Ne},{default:ee(()=>[xt((D(),H("div",{ref_key:"wrapperRef",ref:X,class:W(se.value),style:et($.value),onClick:Ye[8]||(Ye[8]=()=>me(U.value?void 0:!0)),onKeydown:Ke,onMouseenter:Ye[9]||(Ye[9]=ct=>T.value=!0),onMouseleave:Ye[10]||(Ye[10]=ct=>T.value=!1)},[Q(_(ka),{ref_key:"inputRef",ref:b,modelValue:k.value,"onUpdate:modelValue":Ye[1]||(Ye[1]=ct=>k.value=ct),placeholder:L.value,readonly:U.value,disabled:_(v),"validate-event":!1,size:_(V),class:W(ae.value),tabindex:F.value&&Me.filterable&&!_(v)?-1:void 0,onCompositionstart:_(g),onCompositionupdate:_(g),onCompositionend:_(g),onInput:ge},Ua({suffix:ee(()=>[re.value?(D(),de(_(Xe),{key:"clear",class:W([_(c).e("icon"),"icon-circle-close"]),onClick:ut(en,["stop"])},{default:ee(()=>[(D(),de(Tt(Me.clearIcon)))]),_:1},8,["class"])):(D(),de(_(Xe),{key:"arrow-down",class:W(J.value),onClick:Ye[0]||(Ye[0]=ut(ct=>me(),["stop"]))},{default:ee(()=>[Q(_(Yi))]),_:1},8,["class"]))]),_:2},[Me.$slots.prefix?{name:"prefix",fn:ee(()=>[ue(Me.$slots,"prefix")]),key:"0"}:void 0]),1032,["modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),F.value?(D(),H("div",{key:0,ref_key:"tagWrapper",ref:w,class:W([_(u).e("tags"),_(u).is("validate",!!ie.value)])},[ue(Me.$slots,"tag",{data:A.value,deleteTag:_e},()=>[(D(!0),H(qe,null,Wt(O.value,ct=>(D(),de(_(Ol),{key:ct.key,type:Me.tagType,size:B.value,effect:Me.tagEffect,hit:ct.hitState,closable:ct.closable,"disable-transitions":"",onClose:Zn=>_e(ct)},{default:ee(()=>[N("span",null,Ae(ct.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128))]),Me.collapseTags&&A.value.length>Me.maxCollapseTags?(D(),de(_(ta),{key:0,ref_key:"tagTooltipRef",ref:y,disabled:C.value||!Me.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom","popper-class":Me.popperClass,"popper-style":Me.popperStyle,effect:Me.effect,persistent:Me.persistent},{default:ee(()=>[Q(_(Ol),{closable:!1,size:B.value,type:Me.tagType,effect:Me.tagEffect,"disable-transitions":""},{default:ee(()=>[N("span",{class:W(_(u).e("tags-text"))}," + "+Ae(A.value.length-Me.maxCollapseTags),3)]),_:1},8,["size","type","effect"])]),content:ee(()=>[Q(_(Ni),{"max-height":Me.maxCollapseTagsTooltipHeight},{default:ee(()=>[N("div",{class:W(_(u).e("collapse-tags"))},[(D(!0),H(qe,null,Wt(z.value,(ct,Zn)=>(D(),H("div",{key:Zn,class:W(_(u).e("collapse-tag"))},[(D(),de(_(Ol),{key:ct.key,class:"in-tooltip",type:Me.tagType,size:B.value,effect:Me.tagEffect,hit:ct.hitState,closable:ct.closable,"disable-transitions":"",onClose:ho=>_e(ct)},{default:ee(()=>[N("span",null,Ae(ct.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:1},8,["max-height"])]),_:1},8,["disabled","popper-class","popper-style","effect","persistent"])):le("v-if",!0),Me.filterable&&!_(v)?xt((D(),H("input",{key:1,"onUpdate:modelValue":Ye[2]||(Ye[2]=ct=>E.value=ct),type:"text",class:W(_(u).e("search-input")),placeholder:ce.value?"":P.value,onInput:Ye[3]||(Ye[3]=ct=>ge(E.value,ct)),onClick:Ye[4]||(Ye[4]=ut(ct=>me(!0),["stop"])),onKeydown:Wn(Nt,["delete"]),onCompositionstart:Ye[5]||(Ye[5]=(...ct)=>_(g)&&_(g)(...ct)),onCompositionupdate:Ye[6]||(Ye[6]=(...ct)=>_(g)&&_(g)(...ct)),onCompositionend:Ye[7]||(Ye[7]=(...ct)=>_(g)&&_(g)(...ct))},null,42,HKe)),[[oc,E.value]]):le("v-if",!0)],2)):le("v-if",!0)],38)),[[_(pc),ve,fe.value]])]),content:ee(()=>[Me.$slots.header?(D(),H("div",{key:0,class:W(_(u).e("header")),onClick:Ye[11]||(Ye[11]=ut(()=>{},["stop"]))},[ue(Me.$slots,"header")],2)):le("v-if",!0),xt(Q(_(TJ),{ref_key:"cascaderPanelRef",ref:S,modelValue:Z.value,"onUpdate:modelValue":Ye[12]||(Ye[12]=ct=>Z.value=ct),options:Me.options,props:a.props,border:!1,"render-label":Me.$slots.default,onExpandChange:je,onClose:Ye[13]||(Ye[13]=ct=>Me.$nextTick(()=>me(!1)))},{empty:ee(()=>[ue(Me.$slots,"empty")]),_:3},8,["modelValue","options","props","render-label"]),[[tn,!M.value]]),Me.filterable?xt((D(),de(_(Ni),{key:1,ref_key:"suggestionPanel",ref:x,tag:"ul",class:W(_(u).e("suggestion-panel")),"view-class":_(u).e("suggestion-list"),onKeydown:mt},{default:ee(()=>[I.value.length?(D(!0),H(qe,{key:0},Wt(I.value,ct=>(D(),H("li",{key:ct.uid,class:W([_(u).e("suggestion-item"),_(u).is("checked",ct.checked)]),tabindex:-1,onClick:Zn=>Ct(ct)},[ue(Me.$slots,"suggestion-item",{item:ct},()=>[N("span",null,Ae(ct.text),1),ct.checked?(D(),de(_(Xe),{key:0},{default:ee(()=>[Q(_(gp))]),_:1})):le("v-if",!0)])],10,WKe))),128)):ue(Me.$slots,"empty",{key:1},()=>[N("li",{class:W(_(u).e("empty-text"))},Ae(_(f)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[tn,M.value]]):le("v-if",!0),Me.$slots.footer?(D(),H("div",{key:2,class:W(_(u).e("footer")),onClick:Ye[14]||(Ye[14]=ut(()=>{},["stop"]))},[ue(Me.$slots,"footer")],2)):le("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-style","fallback-placements","placement","transition","effect","persistent"]))}});var UKe=De(GKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);const KKe=_t(UKe),jKe=Ie({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),YKe={"update:checked":e=>hn(e),[Ht]:e=>hn(e)},qKe=q({name:"ElCheckTag",__name:"check-tag",props:jKe,emits:YKe,setup(e,{emit:t}){const n=e,r=t,a=we("check-tag"),o=R(()=>[a.b(),a.is("checked",n.checked),a.is("disabled",n.disabled),a.m(n.type||"primary")]),i=()=>{if(n.disabled)return;const s=!n.checked;r(Ht,s),r("update:checked",s)};return(s,l)=>(D(),H("span",{class:W(o.value),onClick:i},[ue(s.$slots,"default")],2))}});var XKe=De(qKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const ZKe=_t(XKe),JKe=Ie({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:ne([Number,Object]),default:()=>Gn({})},sm:{type:ne([Number,Object]),default:()=>Gn({})},md:{type:ne([Number,Object]),default:()=>Gn({})},lg:{type:ne([Number,Object]),default:()=>Gn({})},xl:{type:ne([Number,Object]),default:()=>Gn({})}}),kJ=Symbol("rowContextKey"),QKe=q({name:"ElCol",__name:"col",props:JKe,setup(e){const t=e,{gutter:n}=Ue(kJ,{gutter:R(()=>0)}),r=we("col"),a=R(()=>{const i={};return n.value&&(i.paddingLeft=i.paddingRight=`${n.value/2}px`),i}),o=R(()=>{const i=[];return["span","offset","pull","push"].forEach(u=>{const c=t[u];rt(c)&&(u==="span"?i.push(r.b(`${t[u]}`)):c>0&&i.push(r.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{rt(t[u])?i.push(r.b(`${u}-${t[u]}`)):St(t[u])&&Object.entries(t[u]).forEach(([c,f])=>{i.push(c!=="span"?r.b(`${u}-${c}-${f}`):r.b(`${u}-${f}`))})}),n.value&&i.push(r.is("guttered")),[r.b(),i]});return(i,s)=>(D(),de(Tt(i.tag),{class:W(o.value),style:et(a.value)},{default:ee(()=>[ue(i.$slots,"default")]),_:3},8,["class","style"]))}});var eje=De(QKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const tje=_t(eje),vV=e=>rt(e)||Ge(e)||Ce(e),nje=Ie({accordion:Boolean,modelValue:{type:ne([Array,String,Number]),default:()=>Gn([])},expandIconPosition:{type:ne([String]),default:"right"},beforeCollapse:{type:ne(Function)}}),rje={[dt]:vV,[Ht]:vV},MJ=Symbol("collapseContextKey"),aje="ElCollapse",oje=(e,t)=>{const n=K(Hr(e.modelValue)),r=i=>{n.value=i;const s=e.accordion?n.value[0]:n.value;t(dt,s),t(Ht,s)},a=i=>{if(e.accordion)r([n.value[0]===i?"":i]);else{const s=[...n.value],l=s.indexOf(i);l>-1?s.splice(l,1):s.push(i),r(s)}},o=async i=>{const{beforeCollapse:s}=e;if(!s){a(i);return}const l=s(i);[tc(l),hn(l)].includes(!0)||cr(aje,"beforeCollapse must return type `Promise<boolean>` or `boolean`"),tc(l)?l.then(c=>{c!==!1&&a(i)}).catch(c=>{}):l&&a(i)};return he(()=>e.modelValue,()=>n.value=Hr(e.modelValue),{deep:!0}),Ut(MJ,{activeNames:n,handleItemClick:o}),{activeNames:n,setActiveNames:r}},ije=e=>{const t=we("collapse");return{rootKls:R(()=>[t.b(),t.b(`icon-position-${e.expandIconPosition}`)])}},sje=q({name:"ElCollapse",__name:"collapse",props:nje,emits:rje,setup(e,{expose:t,emit:n}){const r=e,a=n,{activeNames:o,setActiveNames:i}=oje(r,a),{rootKls:s}=ije(r);return t({activeNames:o,setActiveNames:i}),(l,u)=>(D(),H("div",{class:W(_(s))},[ue(l.$slots,"default")],2))}});var lje=De(sje,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const uje=q({name:"ElCollapseTransition",__name:"collapse-transition",setup(e){const t=we("collapse-transition"),n=a=>{a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom},r={beforeEnter(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.style.height&&(a.dataset.elExistsHeight=a.style.height),a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0},enter(a){requestAnimationFrame(()=>{a.dataset.oldOverflow=a.style.overflow,a.dataset.elExistsHeight?a.style.maxHeight=a.dataset.elExistsHeight:a.scrollHeight!==0?a.style.maxHeight=`${a.scrollHeight}px`:a.style.maxHeight=0,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom,a.style.overflow="hidden"})},afterEnter(a){a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow},enterCancelled(a){n(a)},beforeLeave(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.dataset.oldOverflow=a.style.overflow,a.style.maxHeight=`${a.scrollHeight}px`,a.style.overflow="hidden"},leave(a){a.scrollHeight!==0&&(a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0)},afterLeave(a){n(a)},leaveCancelled(a){n(a)}};return(a,o)=>(D(),de(Ur,It({name:_(t).b()},Ez(r)),{default:ee(()=>[ue(a.$slots,"default")]),_:3},16,["name"]))}});var cje=De(uje,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);const M4=_t(cje),fje=Ie({title:{type:String,default:""},name:{type:ne([String,Number]),default:void 0},icon:{type:pn,default:ca},disabled:Boolean}),dje=e=>{const t=Ue(MJ),{namespace:n}=we("collapse"),r=K(!1),a=K(!1),o=IA(),i=R(()=>o.current++),s=R(()=>{var d;return(d=e.name)!=null?d:`${n.value}-id-${o.prefix}-${_(i)}`}),l=R(()=>t==null?void 0:t.activeNames.value.includes(_(s)));return{focusing:r,id:i,isActive:l,handleFocus:()=>{setTimeout(()=>{a.value?a.value=!1:r.value=!0},50)},handleHeaderClick:d=>{if(e.disabled)return;const v=d.target;v!=null&&v.closest("input, textarea, select")||(t==null||t.handleItemClick(_(s)),r.value=!1,a.value=!0)},handleEnterClick:d=>{const v=d.target;v!=null&&v.closest("input, textarea, select")||(d.preventDefault(),t==null||t.handleItemClick(_(s)))}}},vje=(e,{focusing:t,isActive:n,id:r})=>{const a=we("collapse"),o=R(()=>[a.b("item"),a.is("active",_(n)),a.is("disabled",e.disabled)]),i=R(()=>[a.be("item","header"),a.is("active",_(n)),{focusing:_(t)&&!e.disabled}]),s=R(()=>[a.be("item","arrow"),a.is("active",_(n))]),l=R(()=>[a.be("item","title")]),u=R(()=>a.be("item","wrap")),c=R(()=>a.be("item","content")),f=R(()=>a.b(`content-${_(r)}`)),d=R(()=>a.b(`head-${_(r)}`));return{itemTitleKls:l,arrowKls:s,headKls:i,rootKls:o,itemWrapperKls:u,itemContentKls:c,scopedContentId:f,scopedHeadId:d}},hje=["id","aria-expanded","aria-controls","aria-describedby","tabindex","aria-disabled"],pje=["id","aria-hidden","aria-labelledby"],gje=q({name:"ElCollapseItem",__name:"collapse-item",props:fje,setup(e,{expose:t}){const n=e,{focusing:r,id:a,isActive:o,handleFocus:i,handleHeaderClick:s,handleEnterClick:l}=dje(n),{arrowKls:u,headKls:c,rootKls:f,itemTitleKls:d,itemWrapperKls:v,itemContentKls:h,scopedContentId:p,scopedHeadId:g}=vje(n,{focusing:r,isActive:o,id:a});return t({isActive:o}),(m,y)=>(D(),H("div",{class:W(_(f))},[N("div",{id:_(g),class:W(_(c)),"aria-expanded":_(o),"aria-controls":_(p),"aria-describedby":_(p),tabindex:m.disabled?void 0:0,"aria-disabled":m.disabled,role:"button",onClick:y[0]||(y[0]=(...b)=>_(s)&&_(s)(...b)),onKeydown:y[1]||(y[1]=Wn(ut((...b)=>_(l)&&_(l)(...b),["stop"]),["space","enter"])),onFocus:y[2]||(y[2]=(...b)=>_(i)&&_(i)(...b)),onBlur:y[3]||(y[3]=b=>r.value=!1)},[N("span",{class:W(_(d))},[ue(m.$slots,"title",{isActive:_(o)},()=>[gt(Ae(m.title),1)])],2),ue(m.$slots,"icon",{isActive:_(o)},()=>[Q(_(Xe),{class:W(_(u))},{default:ee(()=>[(D(),de(Tt(m.icon)))]),_:1},8,["class"])])],42,hje),Q(_(M4),null,{default:ee(()=>[xt(N("div",{id:_(p),role:"region",class:W(_(v)),"aria-hidden":!_(o),"aria-labelledby":_(g)},[N("div",{class:W(_(h))},[ue(m.$slots,"default")],2)],10,pje),[[tn,_(o)]])]),_:3})],2))}});var AJ=De(gje,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const mje=_t(lje,{CollapseItem:AJ}),yje=Kn(AJ),EJ=Ie({color:{type:ne(Object),required:!0},vertical:Boolean,disabled:Boolean}),bje=EJ;let qS=!1;function fT(e,t){if(!on)return;const n=function(o){var i;(i=t.drag)==null||i.call(t,o)},r=function(o){var i;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,qS=!1,(i=t.end)==null||i.call(t,o)},a=function(o){var i;qS||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),qS=!0,(i=t.start)==null||i.call(t,o))};e.addEventListener("mousedown",a),e.addEventListener("touchstart",a,{passive:!1})}const hV=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},dT=(e,t)=>Math.abs(hV(e)-hV(t)),IJ=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},LJ=(e,{key:t,minValue:n,maxValue:r})=>{const a=bt(),o=Ln(),i=Ln(),s=R(()=>e.color.get(t));function l(d){var v;if(e.disabled)return;d.target!==o.value&&u(d),(v=o.value)==null||v.focus()}function u(d){if(!i.value||!o.value||e.disabled)return;const h=a.vnode.el.getBoundingClientRect(),{clientX:p,clientY:g}=IJ(d);let m;if(e.vertical){let y=g-h.top;y=Math.max(o.value.offsetHeight/2,y),y=Math.min(y,h.height-o.value.offsetHeight/2),m=Math.round((y-o.value.offsetHeight/2)/(h.height-o.value.offsetHeight)*r)}else{let y=p-h.left;y=Math.max(o.value.offsetWidth/2,y),y=Math.min(y,h.width-o.value.offsetWidth/2),m=Math.round((y-o.value.offsetWidth/2)/(h.width-o.value.offsetWidth)*r)}e.color.set(t,m)}function c(d){if(e.disabled)return;const{shiftKey:v}=d,h=xn(d),p=v?10:1,g=t==="hue"?-1:1;let m=!0;switch(h){case ke.left:case ke.down:f(-p*g);break;case ke.right:case ke.up:f(p*g);break;case ke.home:e.color.set(t,t==="hue"?r:n);break;case ke.end:e.color.set(t,t==="hue"?n:r);break;case ke.pageDown:f(-4*g);break;case ke.pageUp:f(4*g);break;default:m=!1;break}m&&d.preventDefault()}function f(d){let v=s.value+d;v=v<n?n:v>r?r:v,e.color.set(t,v)}return{thumb:o,bar:i,currentValue:s,handleDrag:u,handleClick:l,handleKeydown:c}},DJ=(e,{namespace:t,maxValue:n,bar:r,thumb:a,currentValue:o,handleDrag:i,getBackground:s})=>{const l=bt(),u=we(t),c=K(0),f=K(0),d=K();function v(){if(!a.value||e.vertical)return 0;const S=l.vnode.el,x=o.value;return S?Math.round(x*(S.offsetWidth-a.value.offsetWidth/2)/n):0}function h(){if(!a.value)return 0;const S=l.vnode.el;if(!e.vertical)return 0;const x=o.value;return S?Math.round(x*(S.offsetHeight-a.value.offsetHeight/2)/n):0}function p(){c.value=v(),f.value=h(),d.value=s==null?void 0:s()}Et(()=>{if(!r.value||!a.value)return;const S={drag:x=>{i(x)},end:x=>{i(x)}};fT(r.value,S),fT(a.value,S),p()}),he(o,()=>p()),he(()=>e.color.value,()=>p());const g=R(()=>[u.b(),u.is("vertical",e.vertical),u.is("disabled",e.disabled)]),m=R(()=>u.e("bar")),y=R(()=>u.e("thumb")),b=R(()=>({background:d.value})),w=R(()=>({left:Un(c.value),top:Un(f.value)}));return{rootKls:g,barKls:m,barStyle:b,thumbKls:y,thumbStyle:w,thumbLeft:c,thumbTop:f,update:p}},_je=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],pV=0,XS=100,wje=q({name:"ElColorAlphaSlider",__name:"alpha-slider",props:EJ,setup(e,{expose:t}){const n=e,{currentValue:r,bar:a,thumb:o,handleDrag:i,handleClick:s,handleKeydown:l}=LJ(n,{key:"alpha",minValue:pV,maxValue:XS}),{rootKls:u,barKls:c,barStyle:f,thumbKls:d,thumbStyle:v,update:h}=DJ(n,{namespace:"color-alpha-slider",maxValue:XS,currentValue:r,bar:a,thumb:o,handleDrag:i,getBackground:y}),{t:p}=Kt(),g=R(()=>p("el.colorpicker.alphaLabel")),m=R(()=>p("el.colorpicker.alphaDescription",{alpha:r.value,color:n.color.value}));function y(){if(n.color&&n.color.value){const{r:b,g:w,b:S}=n.color.toRgb();return`linear-gradient(to right, rgba(${b}, ${w}, ${S}, 0) 0%, rgba(${b}, ${w}, ${S}, 1) 100%)`}return""}return t({update:h,bar:a,thumb:o}),(b,w)=>(D(),H("div",{class:W(_(u))},[N("div",{ref_key:"bar",ref:a,class:W(_(c)),style:et(_(f)),onClick:w[0]||(w[0]=(...S)=>_(s)&&_(s)(...S))},null,6),N("div",{ref_key:"thumb",ref:o,class:W(_(d)),style:et(_(v)),"aria-label":g.value,"aria-valuenow":_(r),"aria-valuetext":m.value,"aria-orientation":b.vertical?"vertical":"horizontal","aria-valuemin":pV,"aria-valuemax":XS,role:"slider",tabindex:b.disabled?void 0:0,"aria-disabled":b.disabled,onKeydown:w[1]||(w[1]=(...S)=>_(l)&&_(l)(...S))},null,46,_je)],2))}});var Sje=De(wje,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker-panel/src/components/alpha-slider.vue"]]);const xje=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],gV=0,ZS=360,Cje=q({name:"ElColorHueSlider",__name:"hue-slider",props:bje,setup(e,{expose:t}){const n=e,{currentValue:r,bar:a,thumb:o,handleDrag:i,handleClick:s,handleKeydown:l}=LJ(n,{key:"hue",minValue:gV,maxValue:ZS}),{rootKls:u,barKls:c,thumbKls:f,thumbStyle:d,thumbTop:v,update:h}=DJ(n,{namespace:"color-hue-slider",maxValue:ZS,currentValue:r,bar:a,thumb:o,handleDrag:i}),{t:p}=Kt(),g=R(()=>p("el.colorpicker.hueLabel")),m=R(()=>p("el.colorpicker.hueDescription",{hue:r.value,color:n.color.value}));return t({bar:a,thumb:o,thumbTop:v,update:h}),(y,b)=>(D(),H("div",{class:W(_(u))},[N("div",{ref_key:"bar",ref:a,class:W(_(c)),onClick:b[0]||(b[0]=(...w)=>_(s)&&_(s)(...w))},null,2),N("div",{ref_key:"thumb",ref:o,class:W(_(f)),style:et(_(d)),"aria-label":g.value,"aria-valuenow":_(r),"aria-valuetext":m.value,"aria-orientation":y.vertical?"vertical":"horizontal","aria-valuemin":gV,"aria-valuemax":ZS,role:"slider",tabindex:y.disabled?void 0:0,"aria-disabled":y.disabled,onKeydown:b[1]||(b[1]=(...w)=>_(l)&&_(l)(...w))},null,46,xje)],2))}});var Tje=De(Cje,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker-panel/src/components/hue-slider.vue"]]);const kje=Ie({colors:{type:ne(Array),required:!0},color:{type:ne(Object),required:!0},enableAlpha:{type:Boolean,required:!0},disabled:Boolean}),PJ=Ie({modelValue:{type:ne(String),default:void 0},border:{type:Boolean,default:!0},showAlpha:Boolean,colorFormat:String,disabled:Boolean,predefine:{type:ne(Array)},validateEvent:{type:Boolean,default:!0}}),Mje={[dt]:e=>Ge(e)||sr(e)},RJ=Symbol("colorCommonPickerKey"),OJ=Symbol("colorPickerPanelContextKey");class O_{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this._tiny=new Ov,this._isValid=!1,this.enableAlpha=!1,this.format="",this.value="";for(const n in t)nn(t,n)&&(this[n]=t[n]);t.value?this.fromString(t.value):this.doOnChange()}set(t,n){if(arguments.length===1&&typeof t=="object"){for(const r in t)nn(t,r)&&this.set(r,t[r]);return}this[`_${t}`]=n,this._isValid=!0,this.doOnChange()}get(t){return["hue","saturation","value","alpha"].includes(t)?Math.round(this[`_${t}`]):this[`_${t}`]}toRgb(){return this._isValid?this._tiny.toRgb():{r:255,g:255,b:255,a:0}}fromString(t){const n=new Ov(t);if(this._isValid=n.isValid,n.isValid){const{h:r,s:a,v:o,a:i}=n.toHsv();this._hue=r,this._saturation=a*100,this._value=o*100,this._alpha=i*100}else this._hue=0,this._saturation=100,this._value=100,this._alpha=100;this.doOnChange()}clear(){this._isValid=!1,this.value="",this._hue=0,this._saturation=100,this._value=100,this._alpha=100}compare(t){const n=new Ov({h:t._hue,s:t._saturation/100,v:t._value/100,a:t._alpha/100});return this._tiny.equals(n)}doOnChange(){const{_hue:t,_saturation:n,_value:r,_alpha:a,format:o,enableAlpha:i}=this;let s=o||(i?"rgb":"hex");o==="hex"&&i&&(s="hex8"),this._tiny=new Ov({h:t,s:n/100,v:r/100,a:a/100}),this.value=this._isValid?this._tiny.toString(s):""}}const Aje=e=>{const{currentColor:t}=Ue(OJ),n=K(a(e.colors,e.color));he(()=>t.value,o=>{const i=new O_({value:o,enableAlpha:e.enableAlpha});n.value.forEach(s=>{s.selected=i.compare(s)})}),Ga(()=>{n.value=a(e.colors,e.color)});function r(o){e.color.fromString(e.colors[o])}function a(o,i){return o.map(s=>{const l=new O_({value:s,enableAlpha:e.enableAlpha});return l.selected=l.compare(i),l})}return{rgbaColors:n,handleSelect:r}},Eje=e=>{const t=we("color-predefine"),n=R(()=>[t.b(),t.is("disabled",e.disabled)]),r=R(()=>t.e("colors"));function a(o){return[t.e("color-selector"),t.is("alpha",o.get("alpha")<100),{selected:o.selected}]}return{rootKls:n,colorsKls:r,colorSelectorKls:a}},Ije=["disabled","aria-label","onClick"],Lje=q({name:"ElColorPredefine",__name:"predefine",props:kje,setup(e){const t=e,{rgbaColors:n,handleSelect:r}=Aje(t),{rootKls:a,colorsKls:o,colorSelectorKls:i}=Eje(t),{t:s}=Kt(),l=u=>s("el.colorpicker.predefineDescription",{value:u});return(u,c)=>(D(),H("div",{class:W(_(a))},[N("div",{class:W(_(o))},[(D(!0),H(qe,null,Wt(_(n),(f,d)=>(D(),H("button",{key:u.colors[d],type:"button",disabled:u.disabled,"aria-label":l(f.value),class:W(_(i)(f)),onClick:v=>_(r)(d)},[N("div",{style:et({backgroundColor:f.value})},null,4)],10,Ije))),128))],2)],2))}});var Dje=De(Lje,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker-panel/src/components/predefine.vue"]]);const Pje=Ie({color:{type:ne(Object),required:!0},disabled:Boolean}),Rje=e=>{const t=bt(),n=K(),r=K(0),a=K(0),o=K("hsl(0, 100%, 50%)"),i=R(()=>e.color.get("saturation")),s=R(()=>e.color.get("value")),l=R(()=>e.color.get("hue"));function u(h){var p;if(e.disabled)return;h.target!==n.value&&c(h),(p=n.value)==null||p.focus({preventScroll:!0})}function c(h){if(e.disabled)return;const g=t.vnode.el.getBoundingClientRect(),{clientX:m,clientY:y}=IJ(h);let b=m-g.left,w=y-g.top;b=Math.max(0,b),b=Math.min(b,g.width),w=Math.max(0,w),w=Math.min(w,g.height),a.value=b,r.value=w,e.color.set({saturation:b/g.width*100,value:100-w/g.height*100})}function f(h){if(e.disabled)return;const{shiftKey:p}=h,g=xn(h),m=p?10:1;let y=!0;switch(g){case ke.left:d(-m);break;case ke.right:d(m);break;case ke.up:v(m);break;case ke.down:v(-m);break;default:y=!1;break}y&&h.preventDefault()}function d(h){let p=i.value+h;p=p<0?0:p>100?100:p,e.color.set("saturation",p)}function v(h){let p=s.value+h;p=p<0?0:p>100?100:p,e.color.set("value",p)}return{cursorRef:n,cursorTop:r,cursorLeft:a,background:o,saturation:i,brightness:s,hue:l,handleClick:u,handleDrag:c,handleKeydown:f}},Oje=(e,{cursorTop:t,cursorLeft:n,background:r,handleDrag:a})=>{const o=bt(),i=we("color-svpanel");function s(){const d=e.color.get("saturation"),v=e.color.get("value"),h=o.vnode.el,{clientWidth:p,clientHeight:g}=h;n.value=d*p/100,t.value=(100-v)*g/100,r.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}Et(()=>{fT(o.vnode.el,{drag:d=>{a(d)},end:d=>{a(d)}}),s()}),he([()=>e.color.get("hue"),()=>e.color.get("value"),()=>e.color.value],()=>s());const l=R(()=>i.b()),u=R(()=>i.e("cursor")),c=R(()=>({backgroundColor:r.value})),f=R(()=>({top:Un(t.value),left:Un(n.value)}));return{rootKls:l,cursorKls:u,rootStyle:c,cursorStyle:f,update:s}},Nje=["tabindex","aria-disabled","aria-label","aria-valuenow","aria-valuetext"],Bje=q({name:"ElSvPanel",__name:"sv-panel",props:Pje,setup(e,{expose:t}){const n=e,{cursorRef:r,cursorTop:a,cursorLeft:o,background:i,saturation:s,brightness:l,handleClick:u,handleDrag:c,handleKeydown:f}=Rje(n),{rootKls:d,cursorKls:v,rootStyle:h,cursorStyle:p,update:g}=Oje(n,{cursorTop:a,cursorLeft:o,background:i,handleDrag:c}),{t:m}=Kt(),y=R(()=>m("el.colorpicker.svLabel")),b=R(()=>m("el.colorpicker.svDescription",{saturation:s.value,brightness:l.value,color:n.color.value}));return t({update:g}),(w,S)=>(D(),H("div",{class:W(_(d)),style:et(_(h)),onClick:S[1]||(S[1]=(...x)=>_(u)&&_(u)(...x))},[N("div",{ref_key:"cursorRef",ref:r,class:W(_(v)),style:et(_(p)),tabindex:w.disabled?void 0:0,"aria-disabled":w.disabled,role:"slider","aria-valuemin":"0,0","aria-valuemax":"100,100","aria-label":y.value,"aria-valuenow":`${_(s)},${_(l)}`,"aria-valuetext":b.value,onKeydown:S[0]||(S[0]=(...x)=>_(f)&&_(f)(...x))},null,46,Nje)],6))}});var Vje=De(Bje,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker-panel/src/components/sv-panel.vue"]]);const NJ=(e,t)=>{const n=sn(new O_({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue}));return he(()=>[e.colorFormat,e.showAlpha],()=>{n.enableAlpha=e.showAlpha,n.format=e.colorFormat||n.format,n.doOnChange(),t(dt,n.value)}),{color:n}},$je=q({name:"ElColorPickerPanel",__name:"color-picker-panel",props:PJ,emits:Mje,setup(e,{expose:t,emit:n}){const r=e,a=n,o=we("color-picker-panel"),{formItem:i}=Yr(),s=jn(),l=K(),u=K(),c=K(),f=K(),d=K(""),{color:v}=Ue(RJ,()=>NJ(r,a),!0);function h(){v.fromString(d.value),v.value!==d.value&&(d.value=v.value)}function p(){var m;r.validateEvent&&((m=i==null?void 0:i.validate)==null||m.call(i,"blur").catch(y=>void 0))}function g(){var m,y,b;(m=l.value)==null||m.update(),(y=u.value)==null||y.update(),(b=c.value)==null||b.update()}return Et(()=>{r.modelValue&&(d.value=v.value),ze(g)}),he(()=>r.modelValue,m=>{m!==v.value&&(m?v.fromString(m):v.clear())}),he(()=>v.value,m=>{a(dt,m),d.value=m,r.validateEvent&&(i==null||i.validate("change").catch(y=>void 0))}),Ut(OJ,{currentColor:R(()=>v.value)}),t({color:v,inputRef:f,update:g}),(m,y)=>(D(),H("div",{class:W([_(o).b(),_(o).is("disabled",_(s)),_(o).is("border",m.border)]),onFocusout:p},[N("div",{class:W(_(o).e("wrapper"))},[Q(Tje,{ref_key:"hueRef",ref:l,class:"hue-slider",color:_(v),vertical:"",disabled:_(s)},null,8,["color","disabled"]),Q(Vje,{ref_key:"svRef",ref:u,color:_(v),disabled:_(s)},null,8,["color","disabled"])],2),m.showAlpha?(D(),de(Sje,{key:0,ref_key:"alphaRef",ref:c,color:_(v),disabled:_(s)},null,8,["color","disabled"])):le("v-if",!0),m.predefine?(D(),de(Dje,{key:1,ref:"predefine","enable-alpha":m.showAlpha,color:_(v),colors:m.predefine,disabled:_(s)},null,8,["enable-alpha","color","colors","disabled"])):le("v-if",!0),N("div",{class:W(_(o).e("footer"))},[Q(_(ka),{ref_key:"inputRef",ref:f,modelValue:d.value,"onUpdate:modelValue":y[0]||(y[0]=b=>d.value=b),"validate-event":!1,size:"small",disabled:_(s),onChange:h},null,8,["modelValue","disabled"]),ue(m.$slots,"footer")],2)],34))}});var zje=De($je,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker-panel/src/color-picker-panel.vue"]]);const BJ=_t(zje),Fje=Ie({persistent:{type:Boolean,default:!0},modelValue:{type:ne(String),default:void 0},id:String,showAlpha:Boolean,colorFormat:String,disabled:{type:Boolean,default:void 0},size:wr,popperClass:bn.popperClass,popperStyle:bn.popperStyle,tabindex:{type:[String,Number],default:0},teleported:bn.teleported,appendTo:bn.appendTo,predefine:{type:ne(Array)},validateEvent:{type:Boolean,default:!0},...Bd,...Da(["ariaLabel"])}),Hje={[dt]:e=>Ge(e)||sr(e),[Ht]:e=>Ge(e)||sr(e),activeChange:e=>Ge(e)||sr(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},Wje=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"],Gje=q({name:"ElColorPicker",__name:"color-picker",props:Fje,emits:Hje,setup(e,{expose:t,emit:n}){const r=e,a=n,{t:o}=Kt(),i=we("color"),{formItem:s}=Yr(),l=vr(),u=jn(),{valueOnClear:c,isEmptyValue:f}=n1(r,null),d=NJ(r,a),{inputId:v,isLabeledByFormItem:h}=Ro(r,{formItemContext:s}),p=K(),g=K(),m=K(),y=K(!1),b=K(!1);let w=!0;const{isFocused:S,handleFocus:x,handleBlur:C}=au(g,{disabled:u,beforeBlur(ie){var Z;return(Z=p.value)==null?void 0:Z.isFocusInsideContent(ie)},afterBlur(){var ie;$(!1),B(),r.validateEvent&&((ie=s==null?void 0:s.validate)==null||ie.call(s,"blur").catch(Z=>void 0))}}),T=MLe(()=>{var ie,Z;return(Z=(ie=m.value)==null?void 0:ie.color)!=null?Z:d.color}),M=R(()=>Kl(r,Object.keys(PJ))),k=R(()=>!r.modelValue&&!b.value?"transparent":z(T,r.showAlpha)),E=R(()=>!r.modelValue&&!b.value?"":T.value),A=R(()=>h.value?void 0:r.ariaLabel||o("el.colorpicker.defaultLabel")),I=R(()=>h.value?s==null?void 0:s.labelId:void 0),O=R(()=>[i.b("picker"),i.is("disabled",u.value),i.bm("picker",l.value),i.is("focused",S.value)]);function z(ie,Z){const{r:se,g:J,b:ae,a:fe}=ie.toRgb();return Z?`rgba(${se}, ${J}, ${ae}, ${fe})`:`rgb(${se}, ${J}, ${ae})`}function $(ie){y.value=ie}const P=Ys($,100,{leading:!0});function L(){u.value||$(!0)}function V(){P(!1),B()}function B(){ze(()=>{r.modelValue?T.fromString(r.modelValue):(T.value="",ze(()=>{b.value=!1}))})}function F(){u.value||(y.value&&B(),P(!y.value))}function U(){const ie=f(T.value)?c.value:T.value;a(dt,ie),a(Ht,ie),r.validateEvent&&(s==null||s.validate("change").catch(Z=>void 0)),P(!1),ze(()=>{const Z=new O_({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});T.compare(Z)||B()})}function G(){P(!1),a(dt,c.value),a(Ht,c.value),r.modelValue!==c.value&&r.validateEvent&&(s==null||s.validate("change").catch(ie=>void 0)),B()}function Y(){var ie,Z;(Z=(ie=m==null?void 0:m.value)==null?void 0:ie.inputRef)==null||Z.focus()}function X(){y.value&&(V(),S.value&&re())}function te(ie){ie.preventDefault(),ie.stopPropagation(),$(!1),B()}function oe(ie){switch(xn(ie)){case ke.enter:case ke.numpadEnter:case ke.space:ie.preventDefault(),ie.stopPropagation(),L();break;case ke.esc:te(ie);break}}function re(){g.value.focus()}function ce(){g.value.blur()}return he(()=>E.value,ie=>{w&&a("activeChange",ie),w=!0}),he(()=>T.value,()=>{!r.modelValue&&!b.value&&(b.value=!0)}),he(()=>r.modelValue,ie=>{ie?ie&&ie!==T.value&&(w=!1,T.fromString(ie)):b.value=!1}),he(()=>y.value,()=>{m.value&&ze(m.value.update)}),Ut(RJ,d),t({color:T,show:L,hide:V,focus:re,blur:ce}),(ie,Z)=>(D(),de(_(ta),{ref_key:"popper",ref:p,visible:y.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[_(i).be("picker","panel"),ie.popperClass],"popper-style":ie.popperStyle,"stop-popper-mouse-event":!1,pure:"",loop:"",role:"dialog",effect:"light",trigger:"click",teleported:ie.teleported,transition:`${_(i).namespace.value}-zoom-in-top`,persistent:ie.persistent,"append-to":ie.appendTo,onShow:Y,onHide:Z[2]||(Z[2]=se=>$(!1))},{content:ee(()=>[xt((D(),de(_(BJ),It({ref_key:"pickerPanelRef",ref:m},M.value,{border:!1,"validate-event":!1,onKeydown:Wn(te,["esc"])}),{footer:ee(()=>[N("div",null,[Q(_(Gr),{class:W(_(i).be("footer","link-btn")),text:"",size:"small",onClick:G},{default:ee(()=>[gt(Ae(_(o)("el.colorpicker.clear")),1)]),_:1},8,["class"]),Q(_(Gr),{plain:"",size:"small",class:W(_(i).be("footer","btn")),onClick:U},{default:ee(()=>[gt(Ae(_(o)("el.colorpicker.confirm")),1)]),_:1},8,["class"])])]),_:1},16)),[[_(pc),X,g.value]])]),default:ee(()=>[N("div",It({id:_(v),ref_key:"triggerRef",ref:g},ie.$attrs,{class:O.value,role:"button","aria-label":A.value,"aria-labelledby":I.value,"aria-description":_(o)("el.colorpicker.description",{color:ie.modelValue||""}),"aria-disabled":_(u),tabindex:_(u)?void 0:ie.tabindex,onKeydown:oe,onFocus:Z[0]||(Z[0]=(...se)=>_(x)&&_(x)(...se)),onBlur:Z[1]||(Z[1]=(...se)=>_(C)&&_(C)(...se))}),[N("div",{class:W(_(i).be("picker","trigger")),onClick:F},[N("span",{class:W([_(i).be("picker","color"),_(i).is("alpha",ie.showAlpha)])},[N("span",{class:W(_(i).be("picker","color-inner")),style:et({backgroundColor:k.value})},[xt(Q(_(Xe),{class:W([_(i).be("picker","icon"),_(i).is("icon-arrow-down")])},{default:ee(()=>[Q(_(Yi))]),_:1},8,["class"]),[[tn,ie.modelValue||b.value]]),xt(Q(_(Xe),{class:W([_(i).be("picker","empty"),_(i).is("icon-close")])},{default:ee(()=>[Q(_(Io))]),_:1},8,["class"]),[[tn,!ie.modelValue&&!b.value]])],6)],2)],2)],16,Wje)]),_:1},8,["visible","popper-class","popper-style","teleported","transition","persistent","append-to"]))}});var Uje=De(Gje,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const Kje=_t(Uje),jje=Ie({a11y:{type:Boolean,default:!0},locale:{type:ne(Object)},size:wr,button:{type:ne(Object)},card:{type:ne(Object)},dialog:{type:ne(Object)},link:{type:ne(Object)},experimentalFeatures:{type:ne(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ne(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Bd}),ya={placement:"top"},Yje=q({name:"ElConfigProvider",props:jje,setup(e,{slots:t}){const n=_A(e);return he(()=>e.message,r=>{var a,o;Object.assign(ya,(o=(a=n==null?void 0:n.value)==null?void 0:a.message)!=null?o:{},r??{})},{immediate:!0,deep:!0}),()=>ue(t,"default",{config:n==null?void 0:n.value})}}),qje=_t(Yje),Xje=q({name:"ElContainer",__name:"container",props:Ie({direction:{type:String,values:["horizontal","vertical"]}}),setup(e){const t=e,n=fr(),r=we("container"),a=R(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(i=>{const s=i.type.name;return s==="ElHeader"||s==="ElFooter"}):!1);return(o,i)=>(D(),H("section",{class:W([_(r).b(),_(r).is("vertical",a.value)])},[ue(o.$slots,"default")],2))}});var Zje=De(Xje,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const Jje=q({name:"ElAside",__name:"aside",props:{width:{type:String,default:null}},setup(e){const t=e,n=we("aside"),r=R(()=>t.width?n.cssVarBlock({width:t.width}):{});return(a,o)=>(D(),H("aside",{class:W(_(n).b()),style:et(r.value)},[ue(a.$slots,"default")],6))}});var VJ=De(Jje,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const Qje=q({name:"ElFooter",__name:"footer",props:{height:{type:String,default:null}},setup(e){const t=e,n=we("footer"),r=R(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,o)=>(D(),H("footer",{class:W(_(n).b()),style:et(r.value)},[ue(a.$slots,"default")],6))}});var $J=De(Qje,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const eYe=q({name:"ElHeader",__name:"header",props:{height:{type:String,default:null}},setup(e){const t=e,n=we("header"),r=R(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,o)=>(D(),H("header",{class:W(_(n).b()),style:et(r.value)},[ue(a.$slots,"default")],6))}});var zJ=De(eYe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const tYe=q({name:"ElMain",__name:"main",setup(e){const t=we("main");return(n,r)=>(D(),H("main",{class:W(_(t).b())},[ue(n.$slots,"default")],2))}});var FJ=De(tYe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const nYe=_t(Zje,{Aside:VJ,Footer:$J,Header:zJ,Main:FJ}),rYe=Kn(VJ),aYe=Kn($J),oYe=Kn(zJ),iYe=Kn(FJ);var HJ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Xi,function(){var n={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"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,o=/\d\d/,i=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},u=function(g){return(g=+g)+(g>68?1900:2e3)},c=function(g){return function(m){this[g]=+m}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(m){if(!m||m==="Z")return 0;var y=m.match(/([+-]|\d\d)/g),b=60*y[1]+(+y[2]||0);return b===0?0:y[0]==="+"?-b:b}(g)}],d=function(g){var m=l[g];return m&&(m.indexOf?m:m.s.concat(m.f))},v=function(g,m){var y,b=l.meridiem;if(b){for(var w=1;w<=24;w+=1)if(g.indexOf(b(w,0,m))>-1){y=w>12;break}}else y=g===(m?"pm":"PM");return y},h={A:[s,function(g){this.afternoon=v(g,!1)}],a:[s,function(g){this.afternoon=v(g,!0)}],Q:[a,function(g){this.month=3*(g-1)+1}],S:[a,function(g){this.milliseconds=100*+g}],SS:[o,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[i,c("seconds")],ss:[i,c("seconds")],m:[i,c("minutes")],mm:[i,c("minutes")],H:[i,c("hours")],h:[i,c("hours")],HH:[i,c("hours")],hh:[i,c("hours")],D:[i,c("day")],DD:[o,c("day")],Do:[s,function(g){var m=l.ordinal,y=g.match(/\d+/);if(this.day=y[0],m)for(var b=1;b<=31;b+=1)m(b).replace(/\[|\]/g,"")===g&&(this.day=b)}],w:[i,c("week")],ww:[o,c("week")],M:[i,c("month")],MM:[o,c("month")],MMM:[s,function(g){var m=d("months"),y=(d("monthsShort")||m.map(function(b){return b.slice(0,3)})).indexOf(g)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[s,function(g){var m=d("months").indexOf(g)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(g){this.year=u(g)}],YYYY:[/\d{4}/,c("year")],Z:f,ZZ:f};function p(g){var m,y;m=g,y=l&&l.formats;for(var b=(g=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(k,E,A){var I=A&&A.toUpperCase();return E||y[A]||n[A]||y[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(O,z,$){return z||$.slice(1)})})).match(r),w=b.length,S=0;S<w;S+=1){var x=b[S],C=h[x],T=C&&C[0],M=C&&C[1];b[S]=M?{regex:T,parser:M}:x.replace(/^\[|\]$/g,"")}return function(k){for(var E={},A=0,I=0;A<w;A+=1){var O=b[A];if(typeof O=="string")I+=O.length;else{var z=O.regex,$=O.parser,P=k.slice(I),L=z.exec(P)[0];$.call(E,L),k=k.replace(L,"")}}return function(V){var B=V.afternoon;if(B!==void 0){var F=V.hours;B?F<12&&(V.hours+=12):F===12&&(V.hours=0),delete V.afternoon}}(E),E}}return function(g,m,y){y.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(u=g.parseTwoDigitYear);var b=m.prototype,w=b.parse;b.parse=function(S){var x=S.date,C=S.utc,T=S.args;this.$u=C;var M=T[1];if(typeof M=="string"){var k=T[2]===!0,E=T[3]===!0,A=k||E,I=T[2];E&&(I=T[2]),l=this.$locale(),!k&&I&&(l=y.Ls[I]),this.$d=function(P,L,V,B){try{if(["x","X"].indexOf(L)>-1)return new Date((L==="X"?1e3:1)*P);var F=p(L)(P),U=F.year,G=F.month,Y=F.day,X=F.hours,te=F.minutes,oe=F.seconds,re=F.milliseconds,ce=F.zone,ie=F.week,Z=new Date,se=Y||(U||G?1:Z.getDate()),J=U||Z.getFullYear(),ae=0;U&&!G||(ae=G>0?G-1:Z.getMonth());var fe,ve=X||0,me=te||0,pe=oe||0,Ne=re||0;return ce?new Date(Date.UTC(J,ae,se,ve,me,pe,Ne+60*ce.offset*1e3)):V?new Date(Date.UTC(J,ae,se,ve,me,pe,Ne)):(fe=new Date(J,ae,se,ve,me,pe,Ne),ie&&(fe=B(fe).week(ie).toDate()),fe)}catch{return new Date("")}}(x,M,C,y),this.init(),I&&I!==!0&&(this.$L=this.locale(I).$L),A&&x!=this.format(M)&&(this.$d=new Date("")),l={}}else if(M instanceof Array)for(var O=M.length,z=1;z<=O;z+=1){T[1]=M[z-1];var $=y.apply(this,T);if($.isValid()){this.$d=$.$d,this.$L=$.$L,this.init();break}z===O&&(this.$d=new Date(""))}else w.call(this,S)}}})})(HJ);var sYe=HJ.exports;const jA=al(sYe),mV=["hours","minutes","seconds"],Vi="EP_PICKER_BASE",YA="ElPopperOptions",WJ=Symbol("commonPickerContextKey"),Rh="HH:mm:ss",Lu="YYYY-MM-DD",lYe={date:Lu,dates:Lu,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${Lu} ${Rh}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:Lu,datetimerange:`${Lu} ${Rh}`},GJ=(e,t)=>{const{lang:n}=Kt(),r=K(!1),a=K(!1),o=K(null),i=R(()=>{const{modelValue:h}=e;return!h||Ce(h)&&!h.filter(Boolean).length}),s=h=>{if(!oJ(e.modelValue,h)){let p;Ce(h)?p=h.map(m=>oV(m,e.valueFormat,n.value)):h&&(p=oV(h,e.valueFormat,n.value)),t(dt,h&&p,n.value)}},l=R(()=>{var h;let p;if(i.value?u.value.getDefaultValue&&(p=u.value.getDefaultValue()):Ce(e.modelValue)?p=e.modelValue.map(g=>aV(g,e.valueFormat,n.value)):p=aV((h=e.modelValue)!=null?h:"",e.valueFormat,n.value),u.value.getRangeAvailableTime){const g=u.value.getRangeAvailableTime(p);Yn(g,p)||(p=g,i.value||s(j2(p)))}return Ce(p)&&p.some(g=>!g)&&(p=[]),p}),u=K({});return{parsedValue:l,pickerActualVisible:a,pickerOptions:u,pickerVisible:r,userInput:o,valueIsEmpty:i,emitInput:s,onCalendarChange:h=>{t("calendar-change",h)},onPanelChange:(h,p,g)=>{t("panel-change",h,p,g)},onPick:(h="",p=!1)=>{r.value=p;let g;Ce(h)?g=h.map(m=>m.toDate()):g=h&&h.toDate(),o.value=null,s(g)},onSetPickerOption:h=>{u.value[h[0]]=h[1],u.value.panelReady=!0}}},qA=Ie({disabledHours:{type:ne(Function)},disabledMinutes:{type:ne(Function)},disabledSeconds:{type:ne(Function)}}),UJ=Ie({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),XA=Ie({automaticDropdown:{type:Boolean,default:!0},id:{type:ne([Array,String])},name:{type:ne([Array,String])},popperClass:bn.popperClass,popperStyle:bn.popperStyle,format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:ne([String,Object]),default:rl},editable:{type:Boolean,default:!0},prefixIcon:{type:ne([String,Object]),default:""},size:wr,readonly:Boolean,disabled:{type:Boolean,default:void 0},placeholder:{type:String,default:""},popperOptions:{type:ne(Object),default:()=>({})},modelValue:{type:ne([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:ne([Date,Array])},defaultTime:{type:ne([Date,Array])},isRange:Boolean,...qA,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:ne([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,placement:{type:ne(String),values:ou,default:"bottom"},fallbackPlacements:{type:ne(Array),default:["bottom","top","right","left"]},...Bd,...Da(["ariaLabel"]),showNow:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean}),uYe=Ie({id:{type:ne(Array)},name:{type:ne(Array)},modelValue:{type:ne([Array,String])},startPlaceholder:String,endPlaceholder:String,disabled:Boolean}),cYe=["id","name","placeholder","value","disabled"],fYe=["id","name","placeholder","value","disabled"],dYe=q({name:"PickerRangeTrigger",inheritAttrs:!1,__name:"picker-range-trigger",props:uYe,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(e,{expose:t,emit:n}){const r=e,a=n,{formItem:o}=Yr(),{inputId:i}=Ro(sn({id:R(()=>{var T;return(T=r.id)==null?void 0:T[0]})}),{formItemContext:o}),s=S4(),l=we("date"),u=we("range"),c=K(),f=K(),{wrapperRef:d,isFocused:v}=au(c,{disabled:R(()=>r.disabled)}),h=T=>{a("click",T)},p=T=>{a("mouseenter",T)},g=T=>{a("mouseleave",T)},m=T=>{a("touchstart",T)},y=T=>{a("startInput",T)},b=T=>{a("endInput",T)},w=T=>{a("startChange",T)},S=T=>{a("endChange",T)};return t({focus:()=>{var T;(T=c.value)==null||T.focus()},blur:()=>{var T,M;(T=c.value)==null||T.blur(),(M=f.value)==null||M.blur()}}),(T,M)=>(D(),H("div",{ref_key:"wrapperRef",ref:d,class:W([_(l).is("active",_(v)),T.$attrs.class]),style:et(T.$attrs.style),onClick:h,onMouseenter:p,onMouseleave:g,onTouchstartPassive:m},[ue(T.$slots,"prefix"),N("input",It(_(s),{id:_(i),ref_key:"inputRef",ref:c,name:T.name&&T.name[0],placeholder:T.startPlaceholder,value:T.modelValue&&T.modelValue[0],class:_(u).b("input"),disabled:T.disabled,onInput:y,onChange:w}),null,16,cYe),ue(T.$slots,"range-separator"),N("input",It(_(s),{id:T.id&&T.id[1],ref_key:"endInputRef",ref:f,name:T.name&&T.name[1],placeholder:T.endPlaceholder,value:T.modelValue&&T.modelValue[1],class:_(u).b("input"),disabled:T.disabled,onInput:b,onChange:S}),null,16,fYe),ue(T.$slots,"suffix")],38))}});var vYe=De(dYe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker-range-trigger.vue"]]);const hYe=q({name:"Picker",__name:"picker",props:XA,emits:[dt,Ht,"focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const r=e,a=n,o=el(),i=we("date"),s=we("input"),l=we("range"),{formItem:u}=Yr(),c=Ue(YA,{}),f=n1(r,null),d=K(),v=K(),h=K(null);let p=!1;const g=jn(),m=GJ(r,a),{parsedValue:y,pickerActualVisible:b,userInput:w,pickerVisible:S,pickerOptions:x,valueIsEmpty:C,emitInput:T,onPick:M,onSetPickerOption:k,onCalendarChange:E,onPanelChange:A}=m,{isFocused:I,handleFocus:O,handleBlur:z}=au(v,{disabled:g,beforeFocus(){return r.readonly},afterFocus(){r.automaticDropdown&&(S.value=!0)},beforeBlur(ge){var tt;return!p&&((tt=d.value)==null?void 0:tt.isFocusInsideContent(ge))},afterBlur(){Ze(),S.value=!1,p=!1,r.validateEvent&&(u==null||u.validate("blur").catch(ge=>void 0))}}),$=K(!1),P=R(()=>[i.b("editor"),i.bm("editor",r.type),s.e("wrapper"),i.is("disabled",g.value),i.is("active",S.value),l.b("editor"),be?l.bm("editor",be.value):"",o.class]),L=R(()=>[s.e("icon"),l.e("close-icon"),fe.value?"":l.em("close-icon","hidden")]);he(S,ge=>{ge?ze(()=>{ge&&(h.value=r.modelValue)}):(w.value=null,ze(()=>{V(r.modelValue)}))});const V=(ge,tt)=>{(tt||!oJ(ge,h.value))&&(a(Ht,ge),tt&&(h.value=ge),r.validateEvent&&(u==null||u.validate("change").catch(Bt=>void 0)))},B=ge=>{a("keydown",ge)},F=R(()=>v.value?Array.from(v.value.$el.querySelectorAll("input")):[]),U=(ge,tt,Bt)=>{const Mn=F.value;Mn.length&&(!Bt||Bt==="min"?(Mn[0].setSelectionRange(ge,tt),Mn[0].focus()):Bt==="max"&&(Mn[1].setSelectionRange(ge,tt),Mn[1].focus()))},G=()=>{b.value=!0},Y=()=>{a("visible-change",!0)},X=()=>{b.value=!1,S.value=!1,a("visible-change",!1)},te=()=>{S.value=!0},oe=()=>{S.value=!1},re=R(()=>{const ge=xe(y.value);return Ce(w.value)?[w.value[0]||ge&&ge[0]||"",w.value[1]||ge&&ge[1]||""]:w.value!==null?w.value:!ie.value&&C.value||!S.value&&C.value?"":ge?Z.value||se.value||J.value?ge.join(", "):ge:""}),ce=R(()=>r.type.includes("time")),ie=R(()=>r.type.startsWith("time")),Z=R(()=>r.type==="dates"),se=R(()=>r.type==="months"),J=R(()=>r.type==="years"),ae=R(()=>r.prefixIcon||(ce.value?CA:qX)),fe=R(()=>r.clearable&&!g.value&&!r.readonly&&!C.value&&($.value||I.value)),ve=ge=>{r.readonly||g.value||(fe.value&&(ge.stopPropagation(),x.value.handleClear?x.value.handleClear():T(f.valueOnClear.value),V(f.valueOnClear.value,!0),X()),a("clear"))},me=async ge=>{var tt;r.readonly||g.value||(((tt=ge.target)==null?void 0:tt.tagName)!=="INPUT"||I.value||!r.automaticDropdown)&&(S.value=!0)},pe=()=>{r.readonly||g.value||!C.value&&r.clearable&&($.value=!0)},Ne=()=>{$.value=!1},Ee=ge=>{var tt;r.readonly||g.value||(((tt=ge.touches[0].target)==null?void 0:tt.tagName)!=="INPUT"||I.value||!r.automaticDropdown)&&(S.value=!0)},_e=R(()=>r.type.includes("range")),be=vr(),Fe=R(()=>{var ge,tt;return(tt=(ge=_(d))==null?void 0:ge.popperRef)==null?void 0:tt.contentRef}),Oe=yA(v,ge=>{const tt=_(Fe),Bt=yr(v);tt&&(ge.target===tt||ge.composedPath().includes(tt))||ge.target===Bt||Bt&&ge.composedPath().includes(Bt)||(S.value=!1)});un(()=>{Oe==null||Oe()});const Ze=()=>{if(w.value){const ge=nt(re.value);ge&&(je(ge)&&T(j2(ge)),w.value=null)}w.value===""&&(T(f.valueOnClear.value),V(f.valueOnClear.value,!0),w.value=null)},nt=ge=>ge?x.value.parseUserInput(ge):null,xe=ge=>ge?Ce(ge)?ge.map(Bt=>Bt.format(r.format)):ge.format(r.format):null,je=ge=>x.value.isValidValue(ge),Ke=async ge=>{if(r.readonly||g.value)return;const tt=xn(ge);if(B(ge),tt===ke.esc){S.value===!0&&(S.value=!1,ge.preventDefault(),ge.stopPropagation());return}if(tt===ke.down&&(x.value.handleFocusPicker&&(ge.preventDefault(),ge.stopPropagation()),S.value===!1&&(S.value=!0,await ze()),x.value.handleFocusPicker)){x.value.handleFocusPicker();return}if(tt===ke.tab){p=!0;return}if(tt===ke.enter||tt===ke.numpadEnter){S.value?(w.value===null||w.value===""||je(nt(re.value)))&&(Ze(),S.value=!1):S.value=!0,ge.preventDefault(),ge.stopPropagation();return}if(w.value){ge.stopPropagation();return}x.value.handleKeydownInput&&x.value.handleKeydownInput(ge)},en=ge=>{w.value=ge,S.value||(S.value=!0)},Qe=ge=>{const tt=ge.target;w.value?w.value=[tt.value,w.value[1]]:w.value=[tt.value,null]},Ct=ge=>{const tt=ge.target;w.value?w.value=[w.value[0],tt.value]:w.value=[null,tt.value]},mt=()=>{var ge;const tt=w.value,Bt=nt(tt&&tt[0]),Mn=_(y);if(Bt&&Bt.isValid()){w.value=[xe(Bt),((ge=re.value)==null?void 0:ge[1])||null];const Me=[Bt,Mn&&(Mn[1]||null)];je(Me)&&(T(j2(Me)),w.value=null)}},Nt=()=>{var ge;const tt=_(w),Bt=nt(tt&&tt[1]),Mn=_(y);if(Bt&&Bt.isValid()){w.value=[((ge=_(re))==null?void 0:ge[0])||null,xe(Bt)];const Me=[Mn&&Mn[0],Bt];je(Me)&&(T(j2(Me)),w.value=null)}},Te=()=>{var ge;(ge=v.value)==null||ge.focus()},He=()=>{var ge;(ge=v.value)==null||ge.blur()};return Ut(Vi,{props:r,emptyValues:f}),Ut(WJ,m),t({focus:Te,blur:He,handleOpen:te,handleClose:oe,onPick:M}),(ge,tt)=>(D(),de(_(ta),It({ref_key:"refPopper",ref:d,visible:_(S),effect:"light",pure:"",trigger:"click"},ge.$attrs,{role:"dialog",teleported:"",transition:`${_(i).namespace.value}-zoom-in-top`,"popper-class":[`${_(i).namespace.value}-picker__popper`,ge.popperClass],"popper-style":ge.popperStyle,"popper-options":_(c),"fallback-placements":ge.fallbackPlacements,"gpu-acceleration":!1,placement:ge.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:G,onShow:Y,onHide:X}),{default:ee(()=>[_e.value?(D(),de(vYe,{key:1,id:ge.id,ref_key:"inputRef",ref:v,"model-value":re.value,name:ge.name,disabled:_(g),readonly:!ge.editable||ge.readonly,"start-placeholder":ge.startPlaceholder,"end-placeholder":ge.endPlaceholder,class:W(P.value),style:et(ge.$attrs.style),"aria-label":ge.ariaLabel,tabindex:ge.tabindex,autocomplete:"off",role:"combobox",onClick:me,onFocus:_(O),onBlur:_(z),onStartInput:Qe,onStartChange:mt,onEndInput:Ct,onEndChange:Nt,onMousedown:me,onMouseenter:pe,onMouseleave:Ne,onTouchstartPassive:Ee,onKeydown:Ke},{prefix:ee(()=>[ae.value?(D(),de(_(Xe),{key:0,class:W([_(s).e("icon"),_(l).e("icon")])},{default:ee(()=>[(D(),de(Tt(ae.value)))]),_:1},8,["class"])):le("v-if",!0)]),"range-separator":ee(()=>[ue(ge.$slots,"range-separator",{},()=>[N("span",{class:W(_(l).b("separator"))},Ae(ge.rangeSeparator),3)])]),suffix:ee(()=>[ge.clearIcon?(D(),de(_(Xe),{key:0,class:W(L.value),onMousedown:ut(_(cn),["prevent"]),onClick:ve},{default:ee(()=>[(D(),de(Tt(ge.clearIcon)))]),_:1},8,["class","onMousedown"])):le("v-if",!0)]),_:3},8,["id","model-value","name","disabled","readonly","start-placeholder","end-placeholder","class","style","aria-label","tabindex","onFocus","onBlur"])):(D(),de(_(ka),{key:0,id:ge.id,ref_key:"inputRef",ref:v,"container-role":"combobox","model-value":re.value,name:ge.name,size:_(be),disabled:_(g),placeholder:ge.placeholder,class:W([_(i).b("editor"),_(i).bm("editor",ge.type),_(i).is("focus",_(S)),ge.$attrs.class]),style:et(ge.$attrs.style),readonly:!ge.editable||ge.readonly||Z.value||se.value||J.value||ge.type==="week","aria-label":ge.ariaLabel,tabindex:ge.tabindex,"validate-event":!1,onInput:en,onFocus:_(O),onBlur:_(z),onKeydown:Ke,onChange:Ze,onMousedown:me,onMouseenter:pe,onMouseleave:Ne,onTouchstartPassive:Ee,onClick:tt[0]||(tt[0]=ut(()=>{},["stop"]))},{prefix:ee(()=>[ae.value?(D(),de(_(Xe),{key:0,class:W(_(s).e("icon")),onMousedown:ut(me,["prevent"]),onTouchstartPassive:Ee},{default:ee(()=>[(D(),de(Tt(ae.value)))]),_:1},8,["class"])):le("v-if",!0)]),suffix:ee(()=>[fe.value&&ge.clearIcon?(D(),de(_(Xe),{key:0,class:W(`${_(s).e("icon")} clear-icon`),onMousedown:ut(_(cn),["prevent"]),onClick:ve},{default:ee(()=>[(D(),de(Tt(ge.clearIcon)))]),_:1},8,["class","onMousedown"])):le("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onFocus","onBlur"]))]),content:ee(()=>[ue(ge.$slots,"default",{visible:_(S),actualVisible:_(b),parsedValue:_(y),format:ge.format,dateFormat:ge.dateFormat,timeFormat:ge.timeFormat,unlinkPanels:ge.unlinkPanels,type:ge.type,defaultValue:ge.defaultValue,showNow:ge.showNow,showConfirm:ge.showConfirm,showFooter:ge.showFooter,showWeekNumber:ge.showWeekNumber,onPick:tt[1]||(tt[1]=(...Bt)=>_(M)&&_(M)(...Bt)),onSelectRange:U,onSetPickerOption:tt[2]||(tt[2]=(...Bt)=>_(k)&&_(k)(...Bt)),onCalendarChange:tt[3]||(tt[3]=(...Bt)=>_(E)&&_(E)(...Bt)),onPanelChange:tt[4]||(tt[4]=(...Bt)=>_(A)&&_(A)(...Bt)),onMousedown:tt[5]||(tt[5]=ut(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-style","popper-options","fallback-placements","placement"]))}});var KJ=De(hYe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const pYe=Ie({...UJ,datetimeRole:String,parsedValue:{type:ne(Object)}}),jJ=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const r=(i,s,l,u)=>{const c={hour:e,minute:t,second:n};let f=i;return["hour","minute","second"].forEach(d=>{if(c[d]){let v;const h=c[d];switch(d){case"minute":{v=h(f.hour(),s,u);break}case"second":{v=h(f.hour(),f.minute(),s,u);break}default:{v=h(s,u);break}}if(v!=null&&v.length&&!v.includes(f[d]())){const p=l?0:v.length-1;f=f[d](v[p])}}}),f},a={};return{timePickerOptions:a,getAvailableTime:r,onSetOption:([i,s])=>{a[i]=s}}},JS=e=>{const t=(r,a)=>r||a,n=r=>r!==!0;return e.map(t).filter(n)},YJ=(e,t,n)=>({getHoursList:(i,s)=>jS(24,e&&(()=>e==null?void 0:e(i,s))),getMinutesList:(i,s,l)=>jS(60,t&&(()=>t==null?void 0:t(i,s,l))),getSecondsList:(i,s,l,u)=>jS(60,n&&(()=>n==null?void 0:n(i,s,l,u)))}),qJ=(e,t,n)=>{const{getHoursList:r,getMinutesList:a,getSecondsList:o}=YJ(e,t,n);return{getAvailableHours:(u,c)=>JS(r(u,c)),getAvailableMinutes:(u,c,f)=>JS(a(u,c,f)),getAvailableSeconds:(u,c,f,d)=>JS(o(u,c,f,d))}},XJ=e=>{const t=K(e.parsedValue);return he(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},gYe=Ie({role:{type:String,required:!0},spinnerDate:{type:ne(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:ne(String),default:""},...qA}),mYe=100,yYe=600,a2="_RepeatClick",N_={beforeMount(e,t){const n=t.value,{interval:r=mYe,delay:a=yYe}=Je(n)?{}:n;let o,i;const s=()=>Je(n)?n():n.handler(),l=()=>{i&&(clearTimeout(i),i=void 0),o&&(clearInterval(o),o=void 0)},u=c=>{c.button===0&&(l(),s(),document.addEventListener("mouseup",l,{once:!0}),i=setTimeout(()=>{o=setInterval(()=>{s()},r)},a))};e[a2]={start:u,clear:l},e.addEventListener("mousedown",u)},unmounted(e){if(!e[a2])return;const{start:t,clear:n}=e[a2];t&&e.removeEventListener("mousedown",t),n&&(n(),document.removeEventListener("mouseup",n)),e[a2]=null}},bYe=["onClick"],_Ye=["onMouseenter"],wYe=q({__name:"basic-time-spinner",props:gYe,emits:[Ht,"select-range","set-option"],setup(e,{emit:t}){const n=e,r=Ue(Vi),{isRange:a,format:o}=r.props,i=t,s=we("time"),{getHoursList:l,getMinutesList:u,getSecondsList:c}=YJ(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let f=!1;const d=K(),v=K(),h=K(),p=K(),g={hours:v,minutes:h,seconds:p},m=R(()=>n.showSeconds?mV:mV.slice(0,2)),y=R(()=>{const{spinnerDate:G}=n,Y=G.hour(),X=G.minute(),te=G.second();return{hours:Y,minutes:X,seconds:te}}),b=R(()=>{const{hours:G,minutes:Y}=_(y),{role:X,spinnerDate:te}=n,oe=a?void 0:te;return{hours:l(X,oe),minutes:u(G,X,oe),seconds:c(G,Y,X,oe)}}),w=R(()=>{const{hours:G,minutes:Y,seconds:X}=_(y);return{hours:KS(G,23),minutes:KS(Y,59),seconds:KS(X,59)}}),S=Ys(G=>{f=!1,T(G)},200),x=G=>{if(!!!n.amPmMode)return"";const X=n.amPmMode==="A";let te=G<12?" am":" pm";return X&&(te=te.toUpperCase()),te},C=G=>{let Y=[0,0];const X=o||Rh,te=X.indexOf("HH"),oe=X.indexOf("mm"),re=X.indexOf("ss");switch(G){case"hours":te!==-1&&(Y=[te,te+2]);break;case"minutes":oe!==-1&&(Y=[oe,oe+2]);break;case"seconds":re!==-1&&(Y=[re,re+2]);break}const[ce,ie]=Y;i("select-range",ce,ie),d.value=G},T=G=>{E(G,_(y)[G])},M=()=>{T("hours"),T("minutes"),T("seconds")},k=G=>G.querySelector(`.${s.namespace.value}-scrollbar__wrap`),E=(G,Y)=>{if(n.arrowControl)return;const X=_(g[G]);X&&X.$el&&(k(X.$el).scrollTop=Math.max(0,Y*A(G)))},A=G=>{const Y=_(g[G]),X=Y==null?void 0:Y.$el.querySelector("li");return X&&Number.parseFloat(Cl(X,"height"))||0},I=()=>{z(1)},O=()=>{z(-1)},z=G=>{d.value||C("hours");const Y=d.value,X=_(y)[Y],te=d.value==="hours"?24:60,oe=$(Y,X,G,te);P(Y,oe),E(Y,oe),ze(()=>C(Y))},$=(G,Y,X,te)=>{let oe=(Y+X+te)%te;const re=_(b)[G];for(;re[oe]&&oe!==Y;)oe=(oe+X+te)%te;return oe},P=(G,Y)=>{if(_(b)[G][Y])return;const{hours:oe,minutes:re,seconds:ce}=_(y);let ie;switch(G){case"hours":ie=n.spinnerDate.hour(Y).minute(re).second(ce);break;case"minutes":ie=n.spinnerDate.hour(oe).minute(Y).second(ce);break;case"seconds":ie=n.spinnerDate.hour(oe).minute(re).second(Y);break}i(Ht,ie)},L=(G,{value:Y,disabled:X})=>{X||(P(G,Y),C(G),E(G,Y))},V=G=>{const Y=_(g[G]);if(!Y)return;f=!0,S(G);const X=Math.min(Math.round((k(Y.$el).scrollTop-(B(G)*.5-10)/A(G)+3)/A(G)),G==="hours"?23:59);P(G,X)},B=G=>_(g[G]).$el.offsetHeight,F=()=>{const G=Y=>{const X=_(g[Y]);X&&X.$el&&(k(X.$el).onscroll=()=>{V(Y)})};G("hours"),G("minutes"),G("seconds")};Et(()=>{ze(()=>{!n.arrowControl&&F(),M(),n.role==="start"&&C("hours")})});const U=(G,Y)=>{g[Y].value=G??void 0};return i("set-option",[`${n.role}_scrollDown`,z]),i("set-option",[`${n.role}_emitSelectRange`,C]),he(()=>n.spinnerDate,()=>{f||M()}),(G,Y)=>(D(),H("div",{class:W([_(s).b("spinner"),{"has-seconds":G.showSeconds}])},[G.arrowControl?le("v-if",!0):(D(!0),H(qe,{key:0},Wt(m.value,X=>(D(),de(_(Ni),{key:X,ref_for:!0,ref:te=>U(te,X),class:W(_(s).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":_(s).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:te=>C(X),onMousemove:te=>T(X)},{default:ee(()=>[(D(!0),H(qe,null,Wt(b.value[X],(te,oe)=>(D(),H("li",{key:oe,class:W([_(s).be("spinner","item"),_(s).is("active",oe===y.value[X]),_(s).is("disabled",te)]),onClick:re=>L(X,{value:oe,disabled:te})},[X==="hours"?(D(),H(qe,{key:0},[gt(Ae(("0"+(G.amPmMode?oe%12||12:oe)).slice(-2))+Ae(x(oe)),1)],64)):(D(),H(qe,{key:1},[gt(Ae(("0"+oe).slice(-2)),1)],64))],10,bYe))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),G.arrowControl?(D(!0),H(qe,{key:1},Wt(m.value,X=>(D(),H("div",{key:X,class:W([_(s).be("spinner","wrapper"),_(s).is("arrow")]),onMouseenter:te=>C(X)},[xt((D(),de(_(Xe),{class:W(["arrow-up",_(s).be("spinner","arrow")])},{default:ee(()=>[Q(_(a1))]),_:1},8,["class"])),[[_(N_),O]]),xt((D(),de(_(Xe),{class:W(["arrow-down",_(s).be("spinner","arrow")])},{default:ee(()=>[Q(_(Yi))]),_:1},8,["class"])),[[_(N_),I]]),N("ul",{class:W(_(s).be("spinner","list"))},[(D(!0),H(qe,null,Wt(w.value[X],(te,oe)=>(D(),H("li",{key:oe,class:W([_(s).be("spinner","item"),_(s).is("active",te===y.value[X]),_(s).is("disabled",b.value[X][te])])},[_(rt)(te)?(D(),H(qe,{key:0},[X==="hours"?(D(),H(qe,{key:0},[gt(Ae(("0"+(G.amPmMode?te%12||12:te)).slice(-2))+Ae(x(te)),1)],64)):(D(),H(qe,{key:1},[gt(Ae(("0"+te).slice(-2)),1)],64))],64)):le("v-if",!0)],2))),128))],2)],42,_Ye))),128)):le("v-if",!0)],2))}});var vT=De(wYe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const SYe=q({__name:"panel-time-pick",props:pYe,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=t,a=Ue(Vi),{arrowControl:o,disabledHours:i,disabledMinutes:s,disabledSeconds:l,defaultValue:u}=a.props,{getAvailableHours:c,getAvailableMinutes:f,getAvailableSeconds:d}=qJ(i,s,l),v=we("time"),{t:h,lang:p}=Kt(),g=K([0,2]),m=XJ(n),y=R(()=>Jt(n.actualVisible)?`${v.namespace.value}-zoom-in-top`:""),b=R(()=>n.format.includes("ss")),w=R(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),S=L=>{const V=wt(L).locale(p.value),B=z(V);return V.isSame(B)},x=()=>{const L=m.value;r("pick",L,!1),ze(()=>{m.value=L})},C=(L=!1,V=!1)=>{V||r("pick",n.parsedValue,L)},T=L=>{if(!n.visible)return;const V=z(L).millisecond(0);r("pick",V,!0)},M=(L,V)=>{r("select-range",L,V),g.value=[L,V]},k=L=>{const V=n.format,B=V.indexOf("HH"),F=V.indexOf("mm"),U=V.indexOf("ss"),G=[],Y=[];B!==-1&&(G.push(B),Y.push("hours")),F!==-1&&(G.push(F),Y.push("minutes")),U!==-1&&b.value&&(G.push(U),Y.push("seconds"));const te=(G.indexOf(g.value[0])+L+G.length)%G.length;A.start_emitSelectRange(Y[te])},E=L=>{const V=xn(L),{left:B,right:F,up:U,down:G}=ke;if([B,F].includes(V)){k(V===B?-1:1),L.preventDefault();return}if([U,G].includes(V)){const Y=V===U?-1:1;A.start_scrollDown(Y),L.preventDefault();return}},{timePickerOptions:A,onSetOption:I,getAvailableTime:O}=jJ({getAvailableHours:c,getAvailableMinutes:f,getAvailableSeconds:d}),z=L=>O(L,n.datetimeRole||"",!0),$=L=>L?wt(L,n.format).locale(p.value):null,P=()=>wt(u).locale(p.value);return r("set-picker-option",["isValidValue",S]),r("set-picker-option",["parseUserInput",$]),r("set-picker-option",["handleKeydownInput",E]),r("set-picker-option",["getRangeAvailableTime",z]),r("set-picker-option",["getDefaultValue",P]),(L,V)=>(D(),de(Ur,{name:y.value},{default:ee(()=>[L.actualVisible||L.visible?(D(),H("div",{key:0,class:W(_(v).b("panel"))},[N("div",{class:W([_(v).be("panel","content"),{"has-seconds":b.value}])},[Q(vT,{ref:"spinner",role:L.datetimeRole||"start","arrow-control":_(o),"show-seconds":b.value,"am-pm-mode":w.value,"spinner-date":L.parsedValue,"disabled-hours":_(i),"disabled-minutes":_(s),"disabled-seconds":_(l),onChange:T,onSetOption:_(I),onSelectRange:M},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),N("div",{class:W(_(v).be("panel","footer"))},[N("button",{type:"button",class:W([_(v).be("panel","btn"),"cancel"]),onClick:x},Ae(_(h)("el.datepicker.cancel")),3),N("button",{type:"button",class:W([_(v).be("panel","btn"),"confirm"]),onClick:V[0]||(V[0]=B=>C())},Ae(_(h)("el.datepicker.confirm")),3)],2)],2)):le("v-if",!0)]),_:1},8,["name"]))}});var B_=De(SYe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const xYe=Ie({...UJ,parsedValue:{type:ne(Array)}}),CYe=["disabled"],TYe=q({__name:"panel-time-range",props:xYe,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=t,a=(Z,se)=>{const J=[];for(let ae=Z;ae<=se;ae++)J.push(ae);return J},{t:o,lang:i}=Kt(),s=we("time"),l=we("picker"),u=Ue(Vi),{arrowControl:c,disabledHours:f,disabledMinutes:d,disabledSeconds:v,defaultValue:h}=u.props,p=R(()=>[s.be("range-picker","body"),s.be("panel","content"),s.is("arrow",c),S.value?"has-seconds":""]),g=R(()=>[s.be("range-picker","body"),s.be("panel","content"),s.is("arrow",c),S.value?"has-seconds":""]),m=R(()=>n.parsedValue[0]),y=R(()=>n.parsedValue[1]),b=XJ(n),w=()=>{const Z=b.value;r("pick",Z,!1),ze(()=>{b.value=Z})},S=R(()=>n.format.includes("ss")),x=R(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),C=(Z=!1)=>{r("pick",[m.value,y.value],Z)},T=Z=>{E(Z.millisecond(0),y.value)},M=Z=>{E(m.value,Z.millisecond(0))},k=Z=>{const se=Z.map(ae=>wt(ae).locale(i.value)),J=U(se);return se[0].isSame(J[0])&&se[1].isSame(J[1])},E=(Z,se)=>{n.visible&&r("pick",[Z,se],!0)},A=R(()=>m.value>y.value),I=K([0,2]),O=(Z,se)=>{r("select-range",Z,se,"min"),I.value=[Z,se]},z=R(()=>S.value?11:8),$=(Z,se)=>{r("select-range",Z,se,"max");const J=_(z);I.value=[Z+J,se+J]},P=Z=>{const se=S.value?[0,3,6,11,14,17]:[0,3,8,11],J=["hours","minutes"].concat(S.value?["seconds"]:[]),fe=(se.indexOf(I.value[0])+Z+se.length)%se.length,ve=se.length/2;fe<ve?te.start_emitSelectRange(J[fe]):te.end_emitSelectRange(J[fe-ve])},L=Z=>{const se=xn(Z),{left:J,right:ae,up:fe,down:ve}=ke;if([J,ae].includes(se)){P(se===J?-1:1),Z.preventDefault();return}if([fe,ve].includes(se)){const me=se===fe?-1:1,pe=I.value[0]<z.value?"start":"end";te[`${pe}_scrollDown`](me),Z.preventDefault();return}},V=(Z,se)=>{const J=f?f(Z):[],ae=Z==="start",ve=(se||(ae?y.value:m.value)).hour(),me=ae?a(ve+1,23):a(0,ve-1);return zS(J,me)},B=(Z,se,J)=>{const ae=d?d(Z,se):[],fe=se==="start",ve=J||(fe?y.value:m.value),me=ve.hour();if(Z!==me)return ae;const pe=ve.minute(),Ne=fe?a(pe+1,59):a(0,pe-1);return zS(ae,Ne)},F=(Z,se,J,ae)=>{const fe=v?v(Z,se,J):[],ve=J==="start",me=ae||(ve?y.value:m.value),pe=me.hour(),Ne=me.minute();if(Z!==pe||se!==Ne)return fe;const Ee=me.second(),_e=ve?a(Ee+1,59):a(0,Ee-1);return zS(fe,_e)},U=([Z,se])=>[oe(Z,"start",!0,se),oe(se,"end",!1,Z)],{getAvailableHours:G,getAvailableMinutes:Y,getAvailableSeconds:X}=qJ(V,B,F),{timePickerOptions:te,getAvailableTime:oe,onSetOption:re}=jJ({getAvailableHours:G,getAvailableMinutes:Y,getAvailableSeconds:X}),ce=Z=>Z?Ce(Z)?Z.map(se=>wt(se,n.format).locale(i.value)):wt(Z,n.format).locale(i.value):null,ie=()=>{if(Ce(h))return h.map(se=>wt(se).locale(i.value));const Z=wt(h).locale(i.value);return[Z,Z.add(60,"m")]};return r("set-picker-option",["parseUserInput",ce]),r("set-picker-option",["isValidValue",k]),r("set-picker-option",["handleKeydownInput",L]),r("set-picker-option",["getDefaultValue",ie]),r("set-picker-option",["getRangeAvailableTime",U]),(Z,se)=>Z.actualVisible?(D(),H("div",{key:0,class:W([_(s).b("range-picker"),_(l).b("panel")])},[N("div",{class:W(_(s).be("range-picker","content"))},[N("div",{class:W(_(s).be("range-picker","cell"))},[N("div",{class:W(_(s).be("range-picker","header"))},Ae(_(o)("el.datepicker.startTime")),3),N("div",{class:W(p.value)},[Q(vT,{ref:"minSpinner",role:"start","show-seconds":S.value,"am-pm-mode":x.value,"arrow-control":_(c),"spinner-date":m.value,"disabled-hours":V,"disabled-minutes":B,"disabled-seconds":F,onChange:T,onSetOption:_(re),onSelectRange:O},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),N("div",{class:W(_(s).be("range-picker","cell"))},[N("div",{class:W(_(s).be("range-picker","header"))},Ae(_(o)("el.datepicker.endTime")),3),N("div",{class:W(g.value)},[Q(vT,{ref:"maxSpinner",role:"end","show-seconds":S.value,"am-pm-mode":x.value,"arrow-control":_(c),"spinner-date":y.value,"disabled-hours":V,"disabled-minutes":B,"disabled-seconds":F,onChange:M,onSetOption:_(re),onSelectRange:$},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),N("div",{class:W(_(s).be("panel","footer"))},[N("button",{type:"button",class:W([_(s).be("panel","btn"),"cancel"]),onClick:se[0]||(se[0]=J=>w())},Ae(_(o)("el.datepicker.cancel")),3),N("button",{type:"button",class:W([_(s).be("panel","btn"),"confirm"]),disabled:A.value,onClick:se[1]||(se[1]=J=>C())},Ae(_(o)("el.datepicker.confirm")),11,CYe)],2)],2)):le("v-if",!0)}});var kYe=De(TYe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);wt.extend(jA);var MYe=q({name:"ElTimePicker",install:null,props:{...XA,isRange:Boolean},emits:[dt],setup(e,t){const n=K(),[r,a]=e.isRange?["timerange",kYe]:["time",B_],o=i=>t.emit(dt,i);return Ut(YA,e.popperOptions),t.expose({focus:()=>{var i;(i=n.value)==null||i.focus()},blur:()=>{var i;(i=n.value)==null||i.blur()},handleOpen:()=>{var i;(i=n.value)==null||i.handleOpen()},handleClose:()=>{var i;(i=n.value)==null||i.handleClose()}}),()=>{var i;const s=(i=e.format)!=null?i:Rh;return Q(KJ,It(e,{ref:n,type:r,format:s,"onUpdate:modelValue":o}),{default:l=>Q(a,l,null)})}}});const AYe=_t(MYe);var ZJ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Xi,function(){return function(n,r){var a=r.prototype,o=a.format;a.format=function(i){var s=this,l=this.$locale();if(!this.isValid())return o.bind(this)(i);var u=this.$utils(),c=(i||"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(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return o.bind(this)(c)}}})})(ZJ);var EYe=ZJ.exports;const IYe=al(EYe);var JJ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Xi,function(){var n="week",r="year";return function(a,o,i){var s=o.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=i(this).startOf(r).add(1,r).date(u),f=i(this).endOf(n);if(c.isBefore(f))return 1}var d=i(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),v=this.diff(d,n,!0);return v<0?i(this).startOf("week").week():Math.ceil(v)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(JJ);var LYe=JJ.exports;const DYe=al(LYe);var QJ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Xi,function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),o=this.week(),i=this.year();return o===1&&a===11?i+1:a===0&&o>=52?i-1:i}}})})(QJ);var PYe=QJ.exports;const RYe=al(PYe);var eQ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Xi,function(){return function(n,r,a){r.prototype.dayOfYear=function(o){var i=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return o==null?i:this.add(o-i,"day")}}})})(eQ);var OYe=eQ.exports;const NYe=al(OYe);var tQ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Xi,function(){return function(n,r){r.prototype.isSameOrAfter=function(a,o){return this.isSame(a,o)||this.isAfter(a,o)}}})})(tQ);var BYe=tQ.exports;const VYe=al(BYe);var nQ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Xi,function(){return function(n,r){r.prototype.isSameOrBefore=function(a,o){return this.isSame(a,o)||this.isBefore(a,o)}}})})(nQ);var $Ye=nQ.exports;const zYe=al($Ye),FYe=Ie({valueFormat:String,dateFormat:String,timeFormat:String,disabled:{type:Boolean,default:void 0},modelValue:{type:ne([Date,Array,String,Number]),default:""},defaultValue:{type:ne([Date,Array])},defaultTime:{type:ne([Date,Array])},isRange:Boolean,...qA,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,unlinkPanels:Boolean,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:Boolean,showWeekNumber:Boolean,type:{type:ne(String),default:"date"},clearable:{type:Boolean,default:!0},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0}}),ZA=Symbol("rootPickerContextKey"),d1="ElIsDefaultFormat",HYe=["date","dates","year","years","month","months","week","range"],JA=Ie({cellClassName:{type:ne(Function)},disabledDate:{type:ne(Function)},date:{type:ne(Object),required:!0},minDate:{type:ne(Object)},maxDate:{type:ne(Object)},parsedValue:{type:ne([Object,Array])},rangeState:{type:ne(Object),default:()=>({endDate:null,selecting:!1})},disabled:Boolean}),rQ=Ie({type:{type:ne(String),required:!0,values:lUe},dateFormat:String,timeFormat:String,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean,border:Boolean,disabled:Boolean,editable:{type:Boolean,default:!0}}),QA=Ie({unlinkPanels:Boolean,visible:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},border:Boolean,disabled:Boolean,parsedValue:{type:ne(Array)}}),eE=e=>({type:String,values:HYe,default:e}),WYe=Ie({...rQ,parsedValue:{type:ne([Object,Array])},visible:{type:Boolean,default:!0},format:{type:String,default:""}}),nm=e=>{if(!Ce(e))return!1;const[t,n]=e;return wt.isDayjs(t)&&wt.isDayjs(n)&&wt(t).isValid()&&wt(n).isValid()&&t.isSameOrBefore(n)},A4=(e,{lang:t,step:n=1,unit:r,unlinkPanels:a})=>{let o;if(Ce(e)){let[i,s]=e.map(l=>wt(l).locale(t));return a||(s=i.add(n,r)),[i,s]}else e?o=wt(e):o=wt();return o=o.locale(t),[o,o.add(n,r)]},GYe=(e,t,{columnIndexOffset:n,startDate:r,nextEndDate:a,now:o,unit:i,relativeDateGetter:s,setCellMetadata:l,setRowMetadata:u})=>{for(let c=0;c<e.row;c++){const f=t[c];for(let d=0;d<e.column;d++){let v=f[d+n];v||(v={row:c,column:d,type:"normal",inRange:!1,start:!1,end:!1});const h=c*e.column+d,p=s(h);v.dayjs=p,v.date=p.toDate(),v.timestamp=p.valueOf(),v.type="normal",v.inRange=!!(r&&p.isSameOrAfter(r,i)&&a&&p.isSameOrBefore(a,i))||!!(r&&p.isSameOrBefore(r,i)&&a&&p.isSameOrAfter(a,i)),r!=null&&r.isSameOrAfter(a)?(v.start=!!a&&p.isSame(a,i),v.end=r&&p.isSame(r,i)):(v.start=!!r&&p.isSame(r,i),v.end=!!a&&p.isSame(a,i)),p.isSame(o,i)&&(v.type="today"),l==null||l(v,{rowIndex:c,columnIndex:d}),f[d+n]=v}u==null||u(f)}},V_=(e,t,n,r)=>{const a=wt().locale(r).startOf("month").month(n).year(t).hour(e.hour()).minute(e.minute()).second(e.second()),o=a.daysInMonth();return Qu(o).map(i=>a.add(i,"day").toDate())},Oh=(e,t,n,r,a)=>{const o=wt().year(t).month(n).startOf("month").hour(e.hour()).minute(e.minute()).second(e.second()),i=V_(e,t,n,r).find(s=>!(a!=null&&a(s)));return i?wt(i).locale(r):o.locale(r)},$_=(e,t,n)=>{const r=e.year();if(!(n!=null&&n(e.toDate())))return e.locale(t);const a=e.month();if(!V_(e,r,a,t).every(n))return Oh(e,r,a,t,n);for(let o=0;o<12;o++)if(!V_(e,r,o,t).every(n))return Oh(e,r,o,t,n);return e},Nh=(e,t,n,r)=>{if(Ce(e))return e.map(a=>Nh(a,t,n,r));if(Ge(e)){const a=r!=null&&r.value?wt(e):wt(e,t);if(!a.isValid())return a}return wt(e,t).locale(n)},UYe=Ie({...JA,showWeekNumber:Boolean,selectionMode:eE("date")}),KYe=["changerange","pick","select"],z_=(e="")=>["normal","today"].includes(e),jYe=(e,t)=>{const{lang:n}=Kt(),r=K(),a=K(),o=K(),i=K(),s=K([[],[],[],[],[],[]]);let l=!1;const u=e.date.$locale().weekStart||7,c=e.date.locale("en").localeData().weekdaysShort().map(V=>V.toLowerCase()),f=R(()=>u>3?7-u:-u),d=R(()=>{const V=e.date.startOf("month");return V.subtract(V.day()||7,"day")}),v=R(()=>c.concat(c).slice(u,u+7)),h=R(()=>nX(_(w)).some(V=>V.isCurrent)),p=R(()=>{const V=e.date.startOf("month"),B=V.day()||7,F=V.daysInMonth(),U=V.subtract(1,"month").daysInMonth();return{startOfMonthDay:B,dateCountOfMonth:F,dateCountOfLastMonth:U}}),g=R(()=>e.selectionMode==="dates"?Ca(e.parsedValue):[]),m=(V,{count:B,rowIndex:F,columnIndex:U})=>{const{startOfMonthDay:G,dateCountOfMonth:Y,dateCountOfLastMonth:X}=_(p),te=_(f);if(F>=0&&F<=1){const oe=G+te<0?7+G+te:G+te;if(U+F*7>=oe)return V.text=B,!0;V.text=X-(oe-U%7)+1+F*7,V.type="prev-month"}else return B<=Y?V.text=B:(V.text=B-Y,V.type="next-month"),!0;return!1},y=(V,{columnIndex:B,rowIndex:F},U)=>{const{disabledDate:G,cellClassName:Y}=e,X=_(g),te=m(V,{count:U,rowIndex:F,columnIndex:B}),oe=V.dayjs.toDate();return V.selected=X.find(re=>re.isSame(V.dayjs,"day")),V.isSelected=!!V.selected,V.isCurrent=x(V),V.disabled=G==null?void 0:G(oe),V.customClass=Y==null?void 0:Y(oe),te},b=V=>{if(e.selectionMode==="week"){const[B,F]=e.showWeekNumber?[1,7]:[0,6],U=L(V[B+1]);V[B].inRange=U,V[B].start=U,V[F].inRange=U,V[F].end=U}},w=R(()=>{const{minDate:V,maxDate:B,rangeState:F,showWeekNumber:U}=e,G=_(f),Y=_(s),X="day";let te=1;if(GYe({row:6,column:7},Y,{startDate:V,columnIndexOffset:U?1:0,nextEndDate:F.endDate||B||F.selecting&&V||null,now:wt().locale(_(n)).startOf(X),unit:X,relativeDateGetter:oe=>_(d).add(oe-G,X),setCellMetadata:(...oe)=>{y(...oe,te)&&(te+=1)},setRowMetadata:b}),U)for(let oe=0;oe<6;oe++)Y[oe][1].dayjs&&(Y[oe][0]={type:"week",text:Y[oe][1].dayjs.week()});return Y});he(()=>e.date,async()=>{var V;(V=_(r))!=null&&V.contains(document.activeElement)&&(await ze(),await S())});const S=async()=>{var V;return(V=_(a))==null?void 0:V.focus()},x=V=>e.selectionMode==="date"&&z_(V.type)&&C(V,e.parsedValue),C=(V,B)=>B?wt(B).locale(_(n)).isSame(e.date.date(Number(V.text)),"day"):!1,T=(V,B)=>{const F=V*7+(B-(e.showWeekNumber?1:0))-_(f);return _(d).add(F,"day")},M=V=>{var B;if(!e.rangeState.selecting)return;let F=V.target;if(F.tagName==="SPAN"&&(F=(B=F.parentNode)==null?void 0:B.parentNode),F.tagName==="DIV"&&(F=F.parentNode),F.tagName!=="TD")return;const U=F.parentNode.rowIndex-1,G=F.cellIndex;_(w)[U][G].disabled||(U!==_(o)||G!==_(i))&&(o.value=U,i.value=G,t("changerange",{selecting:!0,endDate:T(U,G)}))},k=V=>!_(h)&&(V==null?void 0:V.text)===1&&z_(V.type)||V.isCurrent,E=V=>{l||_(h)||e.selectionMode!=="date"||P(V,!0)},A=V=>{V.target.closest("td")&&(l=!0)},I=V=>{V.target.closest("td")&&(l=!1)},O=V=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:V,maxDate:null}),t("select",!0)):(V>=e.minDate?t("pick",{minDate:e.minDate,maxDate:V}):t("pick",{minDate:V,maxDate:e.minDate}),t("select",!1))},z=V=>{const B=V.week(),F=`${V.year()}w${B}`;t("pick",{year:V.year(),week:B,value:F,date:V.startOf("week")})},$=(V,B)=>{const F=B?Ca(e.parsedValue).filter(U=>(U==null?void 0:U.valueOf())!==V.valueOf()):Ca(e.parsedValue).concat([V]);t("pick",F)},P=(V,B=!1)=>{if(e.disabled)return;const F=V.target.closest("td");if(!F)return;const U=F.parentNode.rowIndex-1,G=F.cellIndex,Y=_(w)[U][G];if(Y.disabled||Y.type==="week")return;const X=T(U,G);switch(e.selectionMode){case"range":{O(X);break}case"date":{t("pick",X,B);break}case"week":{z(X);break}case"dates":{$(X,!!Y.selected);break}}},L=V=>{if(e.selectionMode!=="week")return!1;let B=e.date.startOf("day");if(V.type==="prev-month"&&(B=B.subtract(1,"month")),V.type==="next-month"&&(B=B.add(1,"month")),B=B.date(Number.parseInt(V.text,10)),e.parsedValue&&!Ce(e.parsedValue)){const F=(e.parsedValue.day()-u+7)%7-1;return e.parsedValue.subtract(F,"day").isSame(B,"day")}return!1};return{WEEKS:v,rows:w,tbodyRef:r,currentCellRef:a,focus:S,isCurrent:x,isWeekActive:L,isSelectedCell:k,handlePickDate:P,handleMouseUp:I,handleMouseDown:A,handleMouseMove:M,handleFocus:E}},YYe=(e,{isCurrent:t,isWeekActive:n})=>{const r=we("date-table"),{t:a}=Kt(),o=R(()=>[r.b(),r.is("week-mode",e.selectionMode==="week"&&!e.disabled)]),i=R(()=>a("el.datepicker.dateTablePrompt")),s=u=>{const c=[];return z_(u.type)&&!u.disabled?(c.push("available"),u.type==="today"&&c.push("today")):c.push(u.type),t(u)&&c.push("current"),u.inRange&&(z_(u.type)||e.selectionMode==="week")&&(c.push("in-range"),u.start&&c.push("start-date"),u.end&&c.push("end-date")),(u.disabled||e.disabled)&&c.push("disabled"),u.selected&&c.push("selected"),u.customClass&&c.push(u.customClass),c.join(" ")},l=u=>[r.e("row"),{current:n(u)}];return{tableKls:o,tableLabel:i,weekHeaderClass:r.e("week-header"),getCellClasses:s,getRowKls:l,t:a}},qYe=Ie({cell:{type:ne(Object)}});var tE=q({name:"ElDatePickerCell",props:qYe,setup(e){const t=we("date-table-cell"),{slots:n}=Ue(ZA);return()=>{const{cell:r}=e;return ue(n,"default",{...r},()=>{var a;return[Q("div",{class:t.b()},[Q("span",{class:t.e("text")},[(a=r==null?void 0:r.renderText)!=null?a:r==null?void 0:r.text])])]})}}});const XYe=["aria-label"],ZYe=["aria-label"],JYe=["aria-current","aria-selected","tabindex","aria-disabled"],QYe=q({__name:"basic-date-table",props:UYe,emits:KYe,setup(e,{expose:t,emit:n}){const r=e,a=n,{WEEKS:o,rows:i,tbodyRef:s,currentCellRef:l,focus:u,isCurrent:c,isWeekActive:f,isSelectedCell:d,handlePickDate:v,handleMouseUp:h,handleMouseDown:p,handleMouseMove:g,handleFocus:m}=jYe(r,a),{tableLabel:y,tableKls:b,getCellClasses:w,getRowKls:S,weekHeaderClass:x,t:C}=YYe(r,{isCurrent:c,isWeekActive:f});let T=!1;return un(()=>{T=!0}),t({focus:u}),(M,k)=>(D(),H("table",{"aria-label":_(y),class:W(_(b)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:k[1]||(k[1]=(...E)=>_(v)&&_(v)(...E)),onMousemove:k[2]||(k[2]=(...E)=>_(g)&&_(g)(...E)),onMousedown:k[3]||(k[3]=(...E)=>_(p)&&_(p)(...E)),onMouseup:k[4]||(k[4]=(...E)=>_(h)&&_(h)(...E))},[N("tbody",{ref_key:"tbodyRef",ref:s},[N("tr",null,[M.showWeekNumber?(D(),H("th",{key:0,scope:"col",class:W(_(x))},null,2)):le("v-if",!0),(D(!0),H(qe,null,Wt(_(o),(E,A)=>(D(),H("th",{key:A,"aria-label":_(C)("el.datepicker.weeksFull."+E),scope:"col"},Ae(_(C)("el.datepicker.weeks."+E)),9,ZYe))),128))]),(D(!0),H(qe,null,Wt(_(i),(E,A)=>(D(),H("tr",{key:A,class:W(_(S)(M.showWeekNumber?E[2]:E[1]))},[(D(!0),H(qe,null,Wt(E,(I,O)=>(D(),H("td",{key:`${A}.${O}`,ref_for:!0,ref:z=>!_(T)&&_(d)(I)&&(l.value=z),class:W(_(w)(I)),"aria-current":I.isCurrent?"date":void 0,"aria-selected":I.isCurrent,tabindex:M.disabled?void 0:_(d)(I)?0:-1,"aria-disabled":M.disabled,onFocus:k[0]||(k[0]=(...z)=>_(m)&&_(m)(...z))},[Q(_(tE),{cell:I},null,8,["cell"])],42,JYe))),128))],2))),128))],512)],42,XYe))}});var hT=De(QYe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker-panel/src/date-picker-com/basic-date-table.vue"]]);const eqe=Ie({...JA,selectionMode:eE("month")}),tqe=["aria-label"],nqe=["aria-selected","aria-label","tabindex","onKeydown"],rqe=q({__name:"basic-month-table",props:eqe,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,a=n,o=we("month-table"),{t:i,lang:s}=Kt(),l=K(),u=K(),c=K(r.date.locale("en").localeData().monthsShort().map(w=>w.toLowerCase())),f=K([[],[],[]]),d=K(),v=K(),h=R(()=>{var w,S,x;const C=f.value,T=wt().locale(s.value).startOf("month");for(let M=0;M<3;M++){const k=C[M];for(let E=0;E<4;E++){const A=k[E]||(k[E]={row:M,column:E,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0});A.type="normal";const I=M*4+E,O=r.date.startOf("year").month(I),z=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;A.inRange=!!(r.minDate&&O.isSameOrAfter(r.minDate,"month")&&z&&O.isSameOrBefore(z,"month"))||!!(r.minDate&&O.isSameOrBefore(r.minDate,"month")&&z&&O.isSameOrAfter(z,"month")),(w=r.minDate)!=null&&w.isSameOrAfter(z)?(A.start=!!(z&&O.isSame(z,"month")),A.end=r.minDate&&O.isSame(r.minDate,"month")):(A.start=!!(r.minDate&&O.isSame(r.minDate,"month")),A.end=!!(z&&O.isSame(z,"month"))),T.isSame(O)&&(A.type="today");const P=O.toDate();A.text=I,A.disabled=((S=r.disabledDate)==null?void 0:S.call(r,P))||!1,A.date=P,A.customClass=(x=r.cellClassName)==null?void 0:x.call(r,P),A.dayjs=O,A.timestamp=O.valueOf(),A.isSelected=m(A)}}return C}),p=()=>{var w;(w=u.value)==null||w.focus()},g=w=>{const S={},x=r.date.year(),C=new Date,T=w.text;return S.disabled=r.disabled||(r.disabledDate?V_(r.date,x,T,s.value).every(r.disabledDate):!1),S.current=Ca(r.parsedValue).some(M=>wt.isDayjs(M)&&M.year()===x&&M.month()===T),S.today=C.getFullYear()===x&&C.getMonth()===T,w.customClass&&(S[w.customClass]=!0),w.inRange&&(S["in-range"]=!0,w.start&&(S["start-date"]=!0),w.end&&(S["end-date"]=!0)),S},m=w=>{const S=r.date.year(),x=w.text;return Ca(r.date).some(C=>C.year()===S&&C.month()===x)},y=w=>{var S;if(!r.rangeState.selecting)return;let x=w.target;if(x.tagName==="SPAN"&&(x=(S=x.parentNode)==null?void 0:S.parentNode),x.tagName==="DIV"&&(x=x.parentNode),x.tagName!=="TD")return;const C=x.parentNode.rowIndex,T=x.cellIndex;h.value[C][T].disabled||(C!==d.value||T!==v.value)&&(d.value=C,v.value=T,a("changerange",{selecting:!0,endDate:r.date.startOf("year").month(C*4+T)}))},b=w=>{var S;if(r.disabled)return;const x=(S=w.target)==null?void 0:S.closest("td");if((x==null?void 0:x.tagName)!=="TD"||Ds(x,"disabled"))return;const C=x.cellIndex,M=x.parentNode.rowIndex*4+C,k=r.date.startOf("year").month(M);if(r.selectionMode==="months"){if(w.type==="keydown"){a("pick",Ca(r.parsedValue),!1);return}const E=Oh(r.date,r.date.year(),M,s.value,r.disabledDate),A=Ds(x,"current")?Ca(r.parsedValue).filter(I=>(I==null?void 0:I.year())!==E.year()||(I==null?void 0:I.month())!==E.month()):Ca(r.parsedValue).concat([wt(E)]);a("pick",A)}else r.selectionMode==="range"?r.rangeState.selecting?(r.minDate&&k>=r.minDate?a("pick",{minDate:r.minDate,maxDate:k}):a("pick",{minDate:k,maxDate:r.minDate}),a("select",!1)):(a("pick",{minDate:k,maxDate:null}),a("select",!0)):a("pick",M)};return he(()=>r.date,async()=>{var w,S;(w=l.value)!=null&&w.contains(document.activeElement)&&(await ze(),(S=u.value)==null||S.focus())}),t({focus:p}),(w,S)=>(D(),H("table",{role:"grid","aria-label":_(i)("el.datepicker.monthTablePrompt"),class:W(_(o).b()),onClick:b,onMousemove:y},[N("tbody",{ref_key:"tbodyRef",ref:l},[(D(!0),H(qe,null,Wt(h.value,(x,C)=>(D(),H("tr",{key:C},[(D(!0),H(qe,null,Wt(x,(T,M)=>(D(),H("td",{key:M,ref_for:!0,ref:k=>T.isSelected&&(u.value=k),class:W(g(T)),"aria-selected":!!T.isSelected,"aria-label":_(i)(`el.datepicker.month${+T.text+1}`),tabindex:T.isSelected?0:-1,onKeydown:[Wn(ut(b,["prevent","stop"]),["space"]),Wn(ut(b,["prevent","stop"]),["enter"])]},[Q(_(tE),{cell:{...T,renderText:_(i)("el.datepicker.months."+c.value[T.text])}},null,8,["cell"])],42,nqe))),128))]))),128))],512)],42,tqe))}});var rm=De(rqe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker-panel/src/date-picker-com/basic-month-table.vue"]]);const aqe=Ie({...JA,selectionMode:eE("year")}),oqe=["aria-label"],iqe=["aria-selected","aria-label","tabindex","onKeydown"],sqe=q({__name:"basic-year-table",props:aqe,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=(S,x)=>{const C=wt(String(S)).locale(x).startOf("year"),M=C.endOf("year").dayOfYear();return Qu(M).map(k=>C.add(k,"day").toDate())},a=e,o=n,i=we("year-table"),{t:s,lang:l}=Kt(),u=K(),c=K(),f=R(()=>Math.floor(a.date.year()/10)*10),d=K([[],[],[]]),v=K(),h=K(),p=R(()=>{var S,x,C;const T=d.value,M=wt().locale(l.value).startOf("year");for(let k=0;k<3;k++){const E=T[k];for(let A=0;A<4&&!(k*4+A>=10);A++){let I=E[A];I||(I={row:k,column:A,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0}),I.type="normal";const O=k*4+A+f.value,z=wt().year(O),$=a.rangeState.endDate||a.maxDate||a.rangeState.selecting&&a.minDate||null;I.inRange=!!(a.minDate&&z.isSameOrAfter(a.minDate,"year")&&$&&z.isSameOrBefore($,"year"))||!!(a.minDate&&z.isSameOrBefore(a.minDate,"year")&&$&&z.isSameOrAfter($,"year")),(S=a.minDate)!=null&&S.isSameOrAfter($)?(I.start=!!($&&z.isSame($,"year")),I.end=!!(a.minDate&&z.isSame(a.minDate,"year"))):(I.start=!!(a.minDate&&z.isSame(a.minDate,"year")),I.end=!!($&&z.isSame($,"year"))),M.isSame(z)&&(I.type="today"),I.text=O;const L=z.toDate();I.disabled=((x=a.disabledDate)==null?void 0:x.call(a,L))||!1,I.date=L,I.customClass=(C=a.cellClassName)==null?void 0:C.call(a,L),I.dayjs=z,I.timestamp=z.valueOf(),I.isSelected=y(I),E[A]=I}}return T}),g=()=>{var S;(S=c.value)==null||S.focus()},m=S=>{const x={},C=wt().locale(l.value),T=S.text;return x.disabled=a.disabled||(a.disabledDate?r(T,l.value).every(a.disabledDate):!1),x.today=C.year()===T,x.current=Ca(a.parsedValue).some(M=>M.year()===T),S.customClass&&(x[S.customClass]=!0),S.inRange&&(x["in-range"]=!0,S.start&&(x["start-date"]=!0),S.end&&(x["end-date"]=!0)),x},y=S=>{const x=S.text;return Ca(a.date).some(C=>C.year()===x)},b=S=>{var x;if(a.disabled)return;const C=(x=S.target)==null?void 0:x.closest("td");if(!C||!C.textContent||Ds(C,"disabled"))return;const T=C.cellIndex,k=C.parentNode.rowIndex*4+T+f.value,E=wt().year(k);if(a.selectionMode==="range")a.rangeState.selecting?(a.minDate&&E>=a.minDate?o("pick",{minDate:a.minDate,maxDate:E}):o("pick",{minDate:E,maxDate:a.minDate}),o("select",!1)):(o("pick",{minDate:E,maxDate:null}),o("select",!0));else if(a.selectionMode==="years"){if(S.type==="keydown"){o("pick",Ca(a.parsedValue),!1);return}const A=$_(E.startOf("year"),l.value,a.disabledDate),I=Ds(C,"current")?Ca(a.parsedValue).filter(O=>(O==null?void 0:O.year())!==k):Ca(a.parsedValue).concat([A]);o("pick",I)}else o("pick",k)},w=S=>{var x;if(!a.rangeState.selecting)return;const C=(x=S.target)==null?void 0:x.closest("td");if(!C)return;const T=C.parentNode.rowIndex,M=C.cellIndex;p.value[T][M].disabled||(T!==v.value||M!==h.value)&&(v.value=T,h.value=M,o("changerange",{selecting:!0,endDate:wt().year(f.value).add(T*4+M,"year")}))};return he(()=>a.date,async()=>{var S,x;(S=u.value)!=null&&S.contains(document.activeElement)&&(await ze(),(x=c.value)==null||x.focus())}),t({focus:g}),(S,x)=>(D(),H("table",{role:"grid","aria-label":_(s)("el.datepicker.yearTablePrompt"),class:W(_(i).b()),onClick:b,onMousemove:w},[N("tbody",{ref_key:"tbodyRef",ref:u},[(D(!0),H(qe,null,Wt(p.value,(C,T)=>(D(),H("tr",{key:T},[(D(!0),H(qe,null,Wt(C,(M,k)=>(D(),H("td",{key:`${T}_${k}`,ref_for:!0,ref:E=>M.isSelected&&(c.value=E),class:W(["available",m(M)]),"aria-selected":M.isSelected,"aria-label":String(M.text),tabindex:M.isSelected?0:-1,onKeydown:[Wn(ut(b,["prevent","stop"]),["space"]),Wn(ut(b,["prevent","stop"]),["enter"])]},[Q(_(tE),{cell:M},null,8,["cell"])],42,iqe))),128))]))),128))],512)],42,oqe))}});var am=De(sqe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker-panel/src/date-picker-com/basic-year-table.vue"]]);const lqe=["disabled","onClick"],uqe=["aria-label","disabled"],cqe=["aria-label","disabled"],fqe=["tabindex","aria-disabled"],dqe=["tabindex","aria-disabled"],vqe=["aria-label","disabled"],hqe=["aria-label","disabled"],pqe=q({__name:"panel-date-pick",props:WYe,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=(Te,He,ge)=>!0,r=e,a=t,o=we("picker-panel"),i=we("date-picker"),s=el(),l=fr(),{t:u,lang:c}=Kt(),f=Ue(Vi),d=Ue(d1,void 0),{shortcuts:v,disabledDate:h,cellClassName:p,defaultTime:g}=f.props,m=vn(f.props,"defaultValue"),y=K(),b=K(wt().locale(c.value)),w=K(!1);let S=!1;const x=R(()=>wt(g).locale(c.value)),C=R(()=>b.value.month()),T=R(()=>b.value.year()),M=K([]),k=K(null),E=K(null),A=Te=>M.value.length>0?n(Te,M.value,r.format||"HH:mm:ss"):!0,I=Te=>g&&!pe.value&&!w.value&&!S?x.value.year(Te.year()).month(Te.month()).date(Te.date()):ce.value?Te.millisecond(0):Te.startOf("day"),O=(Te,...He)=>{if(!Te)a("pick",Te,...He);else if(Ce(Te)){const ge=Te.map(I);a("pick",ge,...He)}else a("pick",I(Te),...He);k.value=null,E.value=null,w.value=!1,S=!1},z=async(Te,He)=>{if(F.value==="date"&&wt.isDayjs(Te)){const ge=i0(r.parsedValue);let tt=ge?ge.year(Te.year()).month(Te.month()).date(Te.date()):Te;A(tt)||(tt=M.value[0][0].year(Te.year()).month(Te.month()).date(Te.date())),b.value=tt,O(tt,ce.value||He)}else F.value==="week"?O(Te.date):F.value==="dates"&&O(Te,!0)},$=Te=>{const He=Te?"add":"subtract";b.value=b.value[He](1,"month"),Nt("month")},P=Te=>{const He=b.value,ge=Te?"add":"subtract";b.value=L.value==="year"?He[ge](10,"year"):He[ge](1,"year"),Nt("year")},L=K("date"),V=R(()=>{const Te=u("el.datepicker.year");if(L.value==="year"){const He=Math.floor(T.value/10)*10;return Te?`${He} ${Te} - ${He+9} ${Te}`:`${He} - ${He+9}`}return`${T.value} ${Te}`}),B=Te=>{const He=Je(Te.value)?Te.value():Te.value;if(He){S=!0,O(wt(He).locale(c.value));return}Te.onClick&&Te.onClick({attrs:s,slots:l,emit:a})},F=R(()=>{const{type:Te}=r;return["week","month","months","year","years","dates"].includes(Te)?Te:"date"}),U=R(()=>F.value==="dates"||F.value==="months"||F.value==="years"),G=R(()=>F.value==="date"?L.value:F.value),Y=R(()=>!!v.length),X=async(Te,He)=>{F.value==="month"?(b.value=Oh(b.value,b.value.year(),Te,c.value,h),O(b.value,!1)):F.value==="months"?O(Te,He??!0):(b.value=Oh(b.value,b.value.year(),Te,c.value,h),L.value="date",["month","year","date","week"].includes(F.value)&&(O(b.value,!0),await ze(),en())),Nt("month")},te=async(Te,He)=>{if(F.value==="year"){const ge=b.value.startOf("year").year(Te);b.value=$_(ge,c.value,h),O(b.value,!1)}else if(F.value==="years")O(Te,He??!0);else{const ge=b.value.year(Te);b.value=$_(ge,c.value,h),L.value="month",["month","year","date","week"].includes(F.value)&&(O(b.value,!0),await ze(),en())}Nt("year")},oe=jn(),re=async Te=>{oe.value||(L.value=Te,await ze(),en())},ce=R(()=>r.type==="datetime"||r.type==="datetimerange"),ie=R(()=>{const Te=ce.value||F.value==="dates",He=F.value==="years",ge=F.value==="months",tt=L.value==="date",Bt=L.value==="year",Mn=L.value==="month";return Te&&tt||He&&Bt||ge&&Mn}),Z=R(()=>!U.value&&r.showNow||r.showConfirm),se=R(()=>h?r.parsedValue?Ce(r.parsedValue)?h(r.parsedValue[0].toDate()):h(r.parsedValue.toDate()):!0:!1),J=()=>{if(U.value)O(r.parsedValue);else{let Te=i0(r.parsedValue);if(!Te){const He=wt(g).locale(c.value),ge=Ke();Te=He.year(ge.year()).month(ge.month()).date(ge.date())}b.value=Te,O(Te)}},ae=R(()=>h?h(wt().locale(c.value).toDate()):!1),fe=()=>{const He=wt().locale(c.value).toDate();w.value=!0,(!h||!h(He))&&A(He)&&(b.value=wt().locale(c.value),O(b.value))},ve=R(()=>r.timeFormat||aJ(r.format)||Rh),me=R(()=>r.dateFormat||rJ(r.format)||Lu),pe=R(()=>E.value?E.value:!r.parsedValue&&!m.value?void 0:(i0(r.parsedValue)||b.value).format(ve.value)),Ne=R(()=>k.value?k.value:!r.parsedValue&&!m.value?void 0:(i0(r.parsedValue)||b.value).format(me.value)),Ee=K(!1),_e=()=>{Ee.value=!0},be=()=>{Ee.value=!1},Fe=Te=>({hour:Te.hour(),minute:Te.minute(),second:Te.second(),year:Te.year(),month:Te.month(),date:Te.date()}),Oe=(Te,He,ge)=>{const{hour:tt,minute:Bt,second:Mn}=Fe(Te),Me=i0(r.parsedValue),Ye=Me?Me.hour(tt).minute(Bt).second(Mn):Te;b.value=Ye,O(b.value,!0),ge||(Ee.value=He)},Ze=Te=>{const He=wt(Te,ve.value).locale(c.value);if(He.isValid()&&A(He)){const{year:ge,month:tt,date:Bt}=Fe(b.value);b.value=He.year(ge).month(tt).date(Bt),E.value=null,Ee.value=!1,O(b.value,!0)}},nt=Te=>{const He=Nh(Te,me.value,c.value,d);if(He.isValid()){if(h&&h(He.toDate()))return;const{hour:ge,minute:tt,second:Bt}=Fe(b.value);b.value=He.hour(ge).minute(tt).second(Bt),k.value=null,O(b.value,!0)}},xe=Te=>wt.isDayjs(Te)&&Te.isValid()&&(h?!h(Te.toDate()):!0),je=Te=>Nh(Te,r.format,c.value,d),Ke=()=>{const Te=wt(m.value).locale(c.value);if(!m.value){const He=x.value;return wt().hour(He.hour()).minute(He.minute()).second(He.second()).locale(c.value)}return Te},en=()=>{var Te;["week","month","year","date"].includes(F.value)&&((Te=y.value)==null||Te.focus())},Qe=()=>{en(),F.value==="week"&&mt(ke.down)},Ct=Te=>{const He=xn(Te);[ke.up,ke.down,ke.left,ke.right,ke.home,ke.end,ke.pageUp,ke.pageDown].includes(He)&&(mt(He),Te.stopPropagation(),Te.preventDefault()),[ke.enter,ke.space,ke.numpadEnter].includes(He)&&k.value===null&&E.value===null&&(Te.preventDefault(),O(b.value,!1))},mt=Te=>{var He;const{up:ge,down:tt,left:Bt,right:Mn,home:Me,end:Ye,pageUp:ct,pageDown:Zn}=ke,ho={year:{[ge]:-4,[tt]:4,[Bt]:-1,[Mn]:1,offset:(We,it)=>We.setFullYear(We.getFullYear()+it)},month:{[ge]:-4,[tt]:4,[Bt]:-1,[Mn]:1,offset:(We,it)=>We.setMonth(We.getMonth()+it)},week:{[ge]:-1,[tt]:1,[Bt]:-1,[Mn]:1,offset:(We,it)=>We.setDate(We.getDate()+it*7)},date:{[ge]:-7,[tt]:7,[Bt]:-1,[Mn]:1,[Me]:We=>-We.getDay(),[Ye]:We=>-We.getDay()+6,[ct]:We=>-new Date(We.getFullYear(),We.getMonth(),0).getDate(),[Zn]:We=>new Date(We.getFullYear(),We.getMonth()+1,0).getDate(),offset:(We,it)=>We.setDate(We.getDate()+it)}},hr=b.value.toDate();for(;Math.abs(b.value.diff(hr,"year",!0))<1;){const We=ho[G.value];if(!We)return;if(We.offset(hr,Je(We[Te])?We[Te](hr):(He=We[Te])!=null?He:0),h&&h(hr))break;const it=wt(hr).locale(c.value);b.value=it,a("pick",it,!0);break}},Nt=Te=>{a("panel-change",b.value.toDate(),Te,L.value)};return he(()=>F.value,Te=>{if(["month","year"].includes(Te)){L.value=Te;return}else if(Te==="years"){L.value="year";return}else if(Te==="months"){L.value="month";return}L.value="date"},{immediate:!0}),he(()=>m.value,Te=>{Te&&(b.value=Ke())},{immediate:!0}),he(()=>r.parsedValue,Te=>{if(Te){if(U.value||Ce(Te))return;b.value=Te}else b.value=Ke()},{immediate:!0}),a("set-picker-option",["isValidValue",xe]),a("set-picker-option",["parseUserInput",je]),a("set-picker-option",["handleFocusPicker",Qe]),(Te,He)=>(D(),H("div",{class:W([_(o).b(),_(i).b(),_(o).is("border",Te.border),_(o).is("disabled",_(oe)),{"has-sidebar":Te.$slots.sidebar||Y.value,"has-time":ce.value}])},[N("div",{class:W(_(o).e("body-wrapper"))},[ue(Te.$slots,"sidebar",{class:W(_(o).e("sidebar"))}),Y.value?(D(),H("div",{key:0,class:W(_(o).e("sidebar"))},[(D(!0),H(qe,null,Wt(_(v),(ge,tt)=>(D(),H("button",{key:tt,type:"button",disabled:_(oe),class:W(_(o).e("shortcut")),onClick:Bt=>B(ge)},Ae(ge.text),11,lqe))),128))],2)):le("v-if",!0),N("div",{class:W(_(o).e("body"))},[ce.value?(D(),H("div",{key:0,class:W(_(i).e("time-header"))},[N("span",{class:W(_(i).e("editor-wrap"))},[Q(_(ka),{placeholder:_(u)("el.datepicker.selectDate"),"model-value":Ne.value,size:"small","validate-event":!1,disabled:_(oe),readonly:!Te.editable,onInput:He[0]||(He[0]=ge=>k.value=ge),onChange:nt},null,8,["placeholder","model-value","disabled","readonly"])],2),xt((D(),H("span",{class:W(_(i).e("editor-wrap"))},[Q(_(ka),{placeholder:_(u)("el.datepicker.selectTime"),"model-value":pe.value,size:"small","validate-event":!1,disabled:_(oe),readonly:!Te.editable,onFocus:_e,onInput:He[1]||(He[1]=ge=>E.value=ge),onChange:Ze},null,8,["placeholder","model-value","disabled","readonly"]),Q(_(B_),{visible:Ee.value,format:ve.value,"parsed-value":b.value,onPick:Oe},null,8,["visible","format","parsed-value"])],2)),[[_(pc),be]])],2)):le("v-if",!0),xt(N("div",{class:W([_(i).e("header"),(L.value==="year"||L.value==="month")&&_(i).em("header","bordered")])},[N("span",{class:W(_(i).e("prev-btn"))},[N("button",{type:"button","aria-label":_(u)("el.datepicker.prevYear"),class:W(["d-arrow-left",_(o).e("icon-btn")]),disabled:_(oe),onClick:He[2]||(He[2]=ge=>P(!1))},[ue(Te.$slots,"prev-year",{},()=>[Q(_(Xe),null,{default:ee(()=>[Q(_(Yl))]),_:1})])],10,uqe),xt(N("button",{type:"button","aria-label":_(u)("el.datepicker.prevMonth"),class:W([_(o).e("icon-btn"),"arrow-left"]),disabled:_(oe),onClick:He[3]||(He[3]=ge=>$(!1))},[ue(Te.$slots,"prev-month",{},()=>[Q(_(Xe),null,{default:ee(()=>[Q(_(Xs))]),_:1})])],10,cqe),[[tn,L.value==="date"]])],2),N("span",{role:"button",class:W(_(i).e("header-label")),"aria-live":"polite",tabindex:Te.disabled?void 0:0,"aria-disabled":Te.disabled,onKeydown:He[4]||(He[4]=Wn(ge=>re("year"),["enter"])),onClick:He[5]||(He[5]=ge=>re("year"))},Ae(V.value),43,fqe),xt(N("span",{role:"button","aria-live":"polite",tabindex:Te.disabled?void 0:0,"aria-disabled":Te.disabled,class:W([_(i).e("header-label"),{active:L.value==="month"}]),onKeydown:He[6]||(He[6]=Wn(ge=>re("month"),["enter"])),onClick:He[7]||(He[7]=ge=>re("month"))},Ae(_(u)(`el.datepicker.month${C.value+1}`)),43,dqe),[[tn,L.value==="date"]]),N("span",{class:W(_(i).e("next-btn"))},[xt(N("button",{type:"button","aria-label":_(u)("el.datepicker.nextMonth"),class:W([_(o).e("icon-btn"),"arrow-right"]),disabled:_(oe),onClick:He[8]||(He[8]=ge=>$(!0))},[ue(Te.$slots,"next-month",{},()=>[Q(_(Xe),null,{default:ee(()=>[Q(_(ca))]),_:1})])],10,vqe),[[tn,L.value==="date"]]),N("button",{type:"button","aria-label":_(u)("el.datepicker.nextYear"),class:W([_(o).e("icon-btn"),"d-arrow-right"]),disabled:_(oe),onClick:He[9]||(He[9]=ge=>P(!0))},[ue(Te.$slots,"next-year",{},()=>[Q(_(Xe),null,{default:ee(()=>[Q(_(ql))]),_:1})])],10,hqe)],2)],2),[[tn,L.value!=="time"]]),N("div",{class:W(_(o).e("content")),onKeydown:Ct},[L.value==="date"?(D(),de(hT,{key:0,ref_key:"currentViewRef",ref:y,"selection-mode":F.value,date:b.value,"parsed-value":Te.parsedValue,"disabled-date":_(h),disabled:_(oe),"cell-class-name":_(p),"show-week-number":Te.showWeekNumber,onPick:z},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name","show-week-number"])):le("v-if",!0),L.value==="year"?(D(),de(am,{key:1,ref_key:"currentViewRef",ref:y,"selection-mode":F.value,date:b.value,"disabled-date":_(h),disabled:_(oe),"parsed-value":Te.parsedValue,"cell-class-name":_(p),onPick:te},null,8,["selection-mode","date","disabled-date","disabled","parsed-value","cell-class-name"])):le("v-if",!0),L.value==="month"?(D(),de(rm,{key:2,ref_key:"currentViewRef",ref:y,"selection-mode":F.value,date:b.value,"parsed-value":Te.parsedValue,"disabled-date":_(h),disabled:_(oe),"cell-class-name":_(p),onPick:X},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name"])):le("v-if",!0)],34)],2)],2),Te.showFooter&&ie.value&&Z.value?(D(),H("div",{key:0,class:W(_(o).e("footer"))},[xt(Q(_(Gr),{text:"",size:"small",class:W(_(o).e("link-btn")),disabled:ae.value,onClick:fe},{default:ee(()=>[gt(Ae(_(u)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[tn,!U.value&&Te.showNow]]),Te.showConfirm?(D(),de(_(Gr),{key:0,plain:"",size:"small",class:W(_(o).e("link-btn")),disabled:se.value,onClick:J},{default:ee(()=>[gt(Ae(_(u)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):le("v-if",!0)],2)):le("v-if",!0)],2))}});var gqe=De(pqe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue"]]);const mqe=Ie({...rQ,...QA}),yqe=e=>{const{emit:t}=bt(),n=el(),r=fr();return o=>{const i=Je(o.value)?o.value():o.value;if(i){t("pick",[wt(i[0]).locale(e.value),wt(i[1]).locale(e.value)]);return}o.onClick&&o.onClick({attrs:n,slots:r,emit:t})}},nE=(e,{defaultValue:t,defaultTime:n,leftDate:r,rightDate:a,step:o,unit:i,sortDates:s})=>{const{emit:l}=bt(),{pickerNs:u}=Ue(ZA),c=we("date-range-picker"),{t:f,lang:d}=Kt(),v=yqe(d),h=K(),p=K(),g=K({endDate:null,selecting:!1}),m=x=>{g.value=x},y=(x=!1)=>{const C=_(h),T=_(p);nm([C,T])&&l("pick",[C,T],x)},b=x=>{g.value.selecting=x,x||(g.value.endDate=null)},w=x=>{if(Ce(x)&&x.length===2){const[C,T]=x;h.value=C,r.value=C,p.value=T,s(_(h),_(p))}else S()},S=()=>{let[x,C]=A4(_(t),{lang:_(d),step:o,unit:i,unlinkPanels:e.unlinkPanels});const T=k=>k.diff(k.startOf("d"),"ms"),M=_(n);if(M){let k=0,E=0;if(Ce(M)){const[A,I]=M.map(wt);k=T(A),E=T(I)}else{const A=T(wt(M));k=A,E=A}x=x.startOf("d").add(k,"ms"),C=C.startOf("d").add(E,"ms")}h.value=void 0,p.value=void 0,r.value=x,a.value=C};return he(t,x=>{x&&S()},{immediate:!0}),he(()=>e.parsedValue,x=>{(!(x!=null&&x.length)||!Yn(x,[h.value,p.value]))&&w(x)},{immediate:!0}),he(()=>e.visible,()=>{e.visible&&w(e.parsedValue)},{immediate:!0}),{minDate:h,maxDate:p,rangeState:g,lang:d,ppNs:u,drpNs:c,handleChangeRange:m,handleRangeConfirm:y,handleShortcutClick:v,onSelect:b,parseValue:w,t:f}},bqe=(e,t,n,r)=>{const a=K("date"),o=K(),i=K("date"),s=K(),l=Ue(Vi),{disabledDate:u}=l.props,{t:c,lang:f}=Kt(),d=R(()=>n.value.year()),v=R(()=>n.value.month()),h=R(()=>r.value.year()),p=R(()=>r.value.month());function g(x,C){const T=c("el.datepicker.year");if(x.value==="year"){const M=Math.floor(C.value/10)*10;return T?`${M} ${T} - ${M+9} ${T}`:`${M} - ${M+9}`}return`${C.value} ${T}`}function m(x){x==null||x.focus()}async function y(x,C){if(e.disabled)return;const T=x==="left"?a:i,M=x==="left"?o:s;T.value=C,await ze(),m(M.value)}async function b(x,C,T){if(e.disabled)return;const M=C==="left",k=M?n:r,E=M?r:n,A=M?a:i,I=M?o:s;if(x==="year"){const O=k.value.year(T);k.value=$_(O,f.value,u)}x==="month"&&(k.value=Oh(k.value,k.value.year(),T,f.value,u)),e.unlinkPanels||(E.value=C==="left"?k.value.add(1,"month"):k.value.subtract(1,"month")),A.value=x==="year"?"month":"date",await ze(),m(I.value),w(x)}function w(x){t("panel-change",[n.value.toDate(),r.value.toDate()],x)}function S(x,C,T){const M=T?"add":"subtract";return x==="year"?C[M](10,"year"):C[M](1,"year")}return{leftCurrentView:a,rightCurrentView:i,leftCurrentViewRef:o,rightCurrentViewRef:s,leftYear:d,rightYear:h,leftMonth:v,rightMonth:p,leftYearLabel:R(()=>g(a,d)),rightYearLabel:R(()=>g(i,h)),showLeftPicker:x=>y("left",x),showRightPicker:x=>y("right",x),handleLeftYearPick:x=>b("year","left",x),handleRightYearPick:x=>b("year","right",x),handleLeftMonthPick:x=>b("month","left",x),handleRightMonthPick:x=>b("month","right",x),handlePanelChange:w,adjustDateByView:S}},_qe=["disabled","onClick"],wqe=["aria-label","disabled"],Sqe=["aria-label","disabled"],xqe=["disabled","aria-label"],Cqe=["disabled","aria-label"],Tqe=["tabindex","aria-disabled"],kqe=["tabindex","aria-disabled"],Mqe=["disabled","aria-label"],Aqe=["disabled","aria-label"],Eqe=["aria-label","disabled"],Iqe=["disabled","aria-label"],Lqe=["tabindex","aria-disabled"],Dqe=["tabindex","aria-disabled"],o2="month",Pqe=q({__name:"panel-date-range",props:mqe,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,r=t,a=Ue(Vi),o=Ue(d1,void 0),{disabledDate:i,cellClassName:s,defaultTime:l,clearable:u}=a.props,c=vn(a.props,"format"),f=vn(a.props,"shortcuts"),d=vn(a.props,"defaultValue"),{lang:v}=Kt(),h=K(wt().locale(v.value)),p=K(wt().locale(v.value).add(1,o2)),{minDate:g,maxDate:m,rangeState:y,ppNs:b,drpNs:w,handleChangeRange:S,handleRangeConfirm:x,handleShortcutClick:C,onSelect:T,parseValue:M,t:k}=nE(n,{defaultValue:d,defaultTime:l,leftDate:h,rightDate:p,unit:o2,sortDates:hr});he(()=>n.visible,We=>{!We&&y.value.selecting&&(M(n.parsedValue),T(!1))});const E=K({min:null,max:null}),A=K({min:null,max:null}),{leftCurrentView:I,rightCurrentView:O,leftCurrentViewRef:z,rightCurrentViewRef:$,leftYear:P,rightYear:L,leftMonth:V,rightMonth:B,leftYearLabel:F,rightYearLabel:U,showLeftPicker:G,showRightPicker:Y,handleLeftYearPick:X,handleRightYearPick:te,handleLeftMonthPick:oe,handleRightMonthPick:re,handlePanelChange:ce,adjustDateByView:ie}=bqe(n,r,h,p),Z=R(()=>!!f.value.length),se=R(()=>E.value.min!==null?E.value.min:g.value?g.value.format(me.value):""),J=R(()=>E.value.max!==null?E.value.max:m.value||g.value?(m.value||g.value).format(me.value):""),ae=R(()=>A.value.min!==null?A.value.min:g.value?g.value.format(ve.value):""),fe=R(()=>A.value.max!==null?A.value.max:m.value||g.value?(m.value||g.value).format(ve.value):""),ve=R(()=>n.timeFormat||aJ(c.value||"")||Rh),me=R(()=>n.dateFormat||rJ(c.value||"")||Lu),pe=We=>nm(We)&&(i?!i(We[0].toDate())&&!i(We[1].toDate()):!0),Ne=()=>{h.value=ie(I.value,h.value,!1),n.unlinkPanels||(p.value=h.value.add(1,"month")),ce("year")},Ee=()=>{h.value=h.value.subtract(1,"month"),n.unlinkPanels||(p.value=h.value.add(1,"month")),ce("month")},_e=()=>{n.unlinkPanels?p.value=ie(O.value,p.value,!0):(h.value=ie(O.value,h.value,!0),p.value=h.value.add(1,"month")),ce("year")},be=()=>{n.unlinkPanels?p.value=p.value.add(1,"month"):(h.value=h.value.add(1,"month"),p.value=h.value.add(1,"month")),ce("month")},Fe=()=>{h.value=ie(I.value,h.value,!0),ce("year")},Oe=()=>{h.value=h.value.add(1,"month"),ce("month")},Ze=()=>{p.value=ie(O.value,p.value,!1),ce("year")},nt=()=>{p.value=p.value.subtract(1,"month"),ce("month")},xe=R(()=>{const We=(V.value+1)%12,it=V.value+1>=12?1:0;return n.unlinkPanels&&new Date(P.value+it,We)<new Date(L.value,B.value)}),je=R(()=>n.unlinkPanels&&L.value*12+B.value-(P.value*12+V.value+1)>=12),Ke=jn(),en=R(()=>!(g.value&&m.value&&!y.value.selecting&&nm([g.value,m.value])&&!Ke.value)),Qe=R(()=>n.type==="datetime"||n.type==="datetimerange"),Ct=(We,it)=>{if(We)return l?wt(l[it]||l).locale(v.value).year(We.year()).month(We.month()).date(We.date()):We},mt=(We,it=!0)=>{const $t=We.minDate,Pa=We.maxDate,Ji=Ct($t,0),fi=Ct(Pa,1);m.value===fi&&g.value===Ji||(r("calendar-change",[$t.toDate(),Pa&&Pa.toDate()]),m.value=fi,g.value=Ji,!Qe.value&&it&&(it=!Ji||!fi),x(it))},Nt=K(!1),Te=K(!1),He=()=>{Nt.value=!1},ge=()=>{Te.value=!1},tt=(We,it)=>{E.value[it]=We;const $t=wt(We,me.value).locale(v.value);if($t.isValid()){if(i&&i($t.toDate()))return;it==="min"?(h.value=$t,g.value=(g.value||h.value).year($t.year()).month($t.month()).date($t.date()),!n.unlinkPanels&&(!m.value||m.value.isBefore(g.value))&&(p.value=$t.add(1,"month"),m.value=g.value.add(1,"month"))):(p.value=$t,m.value=(m.value||p.value).year($t.year()).month($t.month()).date($t.date()),!n.unlinkPanels&&(!g.value||g.value.isAfter(m.value))&&(h.value=$t.subtract(1,"month"),g.value=m.value.subtract(1,"month"))),hr(g.value,m.value),x(!0)}},Bt=(We,it)=>{E.value[it]=null},Mn=(We,it)=>{A.value[it]=We;const $t=wt(We,ve.value).locale(v.value);$t.isValid()&&(it==="min"?(Nt.value=!0,g.value=(g.value||h.value).hour($t.hour()).minute($t.minute()).second($t.second()),h.value=g.value):(Te.value=!0,m.value=(m.value||p.value).hour($t.hour()).minute($t.minute()).second($t.second()),p.value=m.value))},Me=(We,it)=>{A.value[it]=null,it==="min"?(h.value=g.value,Nt.value=!1,(!m.value||m.value.isBefore(g.value))&&(m.value=g.value)):(p.value=m.value,Te.value=!1,m.value&&m.value.isBefore(g.value)&&(g.value=m.value)),x(!0)},Ye=(We,it,$t)=>{A.value.min||(We&&(g.value=(g.value||h.value).hour(We.hour()).minute(We.minute()).second(We.second())),$t||(Nt.value=it),(!m.value||m.value.isBefore(g.value))&&(m.value=g.value,p.value=We,ze(()=>{M(n.parsedValue)})),x(!0))},ct=(We,it,$t)=>{A.value.max||(We&&(m.value=(m.value||p.value).hour(We.hour()).minute(We.minute()).second(We.second())),$t||(Te.value=it),m.value&&m.value.isBefore(g.value)&&(g.value=m.value),x(!0))},Zn=()=>{let We=null;a!=null&&a.emptyValues&&(We=a.emptyValues.valueOnClear.value),h.value=A4(_(d),{lang:_(v),unit:"month",unlinkPanels:n.unlinkPanels})[0],p.value=h.value.add(1,"month"),m.value=void 0,g.value=void 0,x(!0),r("pick",We)},ho=We=>Nh(We,c.value||"",v.value,o);function hr(We,it){if(n.unlinkPanels&&it){const $t=(We==null?void 0:We.year())||0,Pa=(We==null?void 0:We.month())||0,Ji=it.year(),fi=it.month();p.value=$t===Ji&&Pa===fi?it.add(1,o2):it}else p.value=h.value.add(1,o2),it&&(p.value=p.value.hour(it.hour()).minute(it.minute()).second(it.second()))}return r("set-picker-option",["isValidValue",pe]),r("set-picker-option",["parseUserInput",ho]),r("set-picker-option",["handleClear",Zn]),(We,it)=>(D(),H("div",{class:W([_(b).b(),_(w).b(),_(b).is("border",We.border),_(b).is("disabled",_(Ke)),{"has-sidebar":We.$slots.sidebar||Z.value,"has-time":Qe.value}])},[N("div",{class:W(_(b).e("body-wrapper"))},[ue(We.$slots,"sidebar",{class:W(_(b).e("sidebar"))}),Z.value?(D(),H("div",{key:0,class:W(_(b).e("sidebar"))},[(D(!0),H(qe,null,Wt(f.value,($t,Pa)=>(D(),H("button",{key:Pa,type:"button",disabled:_(Ke),class:W(_(b).e("shortcut")),onClick:Ji=>_(C)($t)},Ae($t.text),11,_qe))),128))],2)):le("v-if",!0),N("div",{class:W(_(b).e("body"))},[Qe.value?(D(),H("div",{key:0,class:W(_(w).e("time-header"))},[N("span",{class:W(_(w).e("editors-wrap"))},[N("span",{class:W(_(w).e("time-picker-wrap"))},[Q(_(ka),{size:"small",disabled:_(y).selecting||_(Ke),placeholder:_(k)("el.datepicker.startDate"),class:W(_(w).e("editor")),"model-value":se.value,"validate-event":!1,readonly:!We.editable,onInput:it[0]||(it[0]=$t=>tt($t,"min")),onChange:it[1]||(it[1]=$t=>Bt($t,"min"))},null,8,["disabled","placeholder","class","model-value","readonly"])],2),xt((D(),H("span",{class:W(_(w).e("time-picker-wrap"))},[Q(_(ka),{size:"small",class:W(_(w).e("editor")),disabled:_(y).selecting||_(Ke),placeholder:_(k)("el.datepicker.startTime"),"model-value":ae.value,"validate-event":!1,readonly:!We.editable,onFocus:it[2]||(it[2]=$t=>Nt.value=!0),onInput:it[3]||(it[3]=$t=>Mn($t,"min")),onChange:it[4]||(it[4]=$t=>Me($t,"min"))},null,8,["class","disabled","placeholder","model-value","readonly"]),Q(_(B_),{visible:Nt.value,format:ve.value,"datetime-role":"start","parsed-value":_(g)||h.value,onPick:Ye},null,8,["visible","format","parsed-value"])],2)),[[_(pc),He]])],2),N("span",null,[Q(_(Xe),null,{default:ee(()=>[Q(_(ca))]),_:1})]),N("span",{class:W([_(w).e("editors-wrap"),"is-right"])},[N("span",{class:W(_(w).e("time-picker-wrap"))},[Q(_(ka),{size:"small",class:W(_(w).e("editor")),disabled:_(y).selecting||_(Ke),placeholder:_(k)("el.datepicker.endDate"),"model-value":J.value,readonly:!_(g)||!We.editable,"validate-event":!1,onInput:it[5]||(it[5]=$t=>tt($t,"max")),onChange:it[6]||(it[6]=$t=>Bt($t,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),xt((D(),H("span",{class:W(_(w).e("time-picker-wrap"))},[Q(_(ka),{size:"small",class:W(_(w).e("editor")),disabled:_(y).selecting||_(Ke),placeholder:_(k)("el.datepicker.endTime"),"model-value":fe.value,readonly:!_(g)||!We.editable,"validate-event":!1,onFocus:it[7]||(it[7]=$t=>_(g)&&(Te.value=!0)),onInput:it[8]||(it[8]=$t=>Mn($t,"max")),onChange:it[9]||(it[9]=$t=>Me($t,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),Q(_(B_),{"datetime-role":"end",visible:Te.value,format:ve.value,"parsed-value":_(m)||p.value,onPick:ct},null,8,["visible","format","parsed-value"])],2)),[[_(pc),ge]])],2)],2)):le("v-if",!0),N("div",{class:W([[_(b).e("content"),_(w).e("content")],"is-left"])},[N("div",{class:W(_(w).e("header"))},[N("button",{type:"button",class:W([_(b).e("icon-btn"),"d-arrow-left"]),"aria-label":_(k)("el.datepicker.prevYear"),disabled:_(Ke),onClick:Ne},[ue(We.$slots,"prev-year",{},()=>[Q(_(Xe),null,{default:ee(()=>[Q(_(Yl))]),_:1})])],10,wqe),xt(N("button",{type:"button",class:W([_(b).e("icon-btn"),"arrow-left"]),"aria-label":_(k)("el.datepicker.prevMonth"),disabled:_(Ke),onClick:Ee},[ue(We.$slots,"prev-month",{},()=>[Q(_(Xe),null,{default:ee(()=>[Q(_(Xs))]),_:1})])],10,Sqe),[[tn,_(I)==="date"]]),We.unlinkPanels?(D(),H("button",{key:0,type:"button",disabled:!je.value||_(Ke),class:W([[_(b).e("icon-btn"),_(b).is("disabled",!je.value||_(Ke))],"d-arrow-right"]),"aria-label":_(k)("el.datepicker.nextYear"),onClick:Fe},[ue(We.$slots,"next-year",{},()=>[Q(_(Xe),null,{default:ee(()=>[Q(_(ql))]),_:1})])],10,xqe)):le("v-if",!0),We.unlinkPanels&&_(I)==="date"?(D(),H("button",{key:1,type:"button",disabled:!xe.value||_(Ke),class:W([[_(b).e("icon-btn"),_(b).is("disabled",!xe.value||_(Ke))],"arrow-right"]),"aria-label":_(k)("el.datepicker.nextMonth"),onClick:Oe},[ue(We.$slots,"next-month",{},()=>[Q(_(Xe),null,{default:ee(()=>[Q(_(ca))]),_:1})])],10,Cqe)):le("v-if",!0),N("div",null,[N("span",{role:"button",class:W(_(w).e("header-label")),"aria-live":"polite",tabindex:We.disabled?void 0:0,"aria-disabled":We.disabled,onKeydown:it[10]||(it[10]=Wn($t=>_(G)("year"),["enter"])),onClick:it[11]||(it[11]=$t=>_(G)("year"))},Ae(_(F)),43,Tqe),xt(N("span",{role:"button","aria-live":"polite",tabindex:We.disabled?void 0:0,"aria-disabled":We.disabled,class:W([_(w).e("header-label"),{active:_(I)==="month"}]),onKeydown:it[12]||(it[12]=Wn($t=>_(G)("month"),["enter"])),onClick:it[13]||(it[13]=$t=>_(G)("month"))},Ae(_(k)(`el.datepicker.month${h.value.month()+1}`)),43,kqe),[[tn,_(I)==="date"]])])],2),_(I)==="date"?(D(),de(hT,{key:0,ref_key:"leftCurrentViewRef",ref:z,"selection-mode":"range",date:h.value,"min-date":_(g),"max-date":_(m),"range-state":_(y),"disabled-date":_(i),"cell-class-name":_(s),"show-week-number":We.showWeekNumber,disabled:_(Ke),onChangerange:_(S),onPick:mt,onSelect:_(T)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):le("v-if",!0),_(I)==="year"?(D(),de(am,{key:1,ref_key:"leftCurrentViewRef",ref:z,"selection-mode":"year",date:h.value,"disabled-date":_(i),"parsed-value":We.parsedValue,disabled:_(Ke),onPick:_(X)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):le("v-if",!0),_(I)==="month"?(D(),de(rm,{key:2,ref_key:"leftCurrentViewRef",ref:z,"selection-mode":"month",date:h.value,"parsed-value":We.parsedValue,"disabled-date":_(i),disabled:_(Ke),onPick:_(oe)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):le("v-if",!0)],2),N("div",{class:W([[_(b).e("content"),_(w).e("content")],"is-right"])},[N("div",{class:W(_(w).e("header"))},[We.unlinkPanels?(D(),H("button",{key:0,type:"button",disabled:!je.value||_(Ke),class:W([_(b).e("icon-btn"),"d-arrow-left"]),"aria-label":_(k)("el.datepicker.prevYear"),onClick:Ze},[ue(We.$slots,"prev-year",{},()=>[Q(_(Xe),null,{default:ee(()=>[Q(_(Yl))]),_:1})])],10,Mqe)):le("v-if",!0),We.unlinkPanels&&_(O)==="date"?(D(),H("button",{key:1,type:"button",disabled:!xe.value||_(Ke),class:W([_(b).e("icon-btn"),"arrow-left"]),"aria-label":_(k)("el.datepicker.prevMonth"),onClick:nt},[ue(We.$slots,"prev-month",{},()=>[Q(_(Xe),null,{default:ee(()=>[Q(_(Xs))]),_:1})])],10,Aqe)):le("v-if",!0),N("button",{type:"button","aria-label":_(k)("el.datepicker.nextYear"),class:W([_(b).e("icon-btn"),"d-arrow-right"]),disabled:_(Ke),onClick:_e},[ue(We.$slots,"next-year",{},()=>[Q(_(Xe),null,{default:ee(()=>[Q(_(ql))]),_:1})])],10,Eqe),xt(N("button",{type:"button",class:W([_(b).e("icon-btn"),"arrow-right"]),disabled:_(Ke),"aria-label":_(k)("el.datepicker.nextMonth"),onClick:be},[ue(We.$slots,"next-month",{},()=>[Q(_(Xe),null,{default:ee(()=>[Q(_(ca))]),_:1})])],10,Iqe),[[tn,_(O)==="date"]]),N("div",null,[N("span",{role:"button",class:W(_(w).e("header-label")),"aria-live":"polite",tabindex:We.disabled?void 0:0,"aria-disabled":We.disabled,onKeydown:it[14]||(it[14]=Wn($t=>_(Y)("year"),["enter"])),onClick:it[15]||(it[15]=$t=>_(Y)("year"))},Ae(_(U)),43,Lqe),xt(N("span",{role:"button","aria-live":"polite",tabindex:We.disabled?void 0:0,"aria-disabled":We.disabled,class:W([_(w).e("header-label"),{active:_(O)==="month"}]),onKeydown:it[16]||(it[16]=Wn($t=>_(Y)("month"),["enter"])),onClick:it[17]||(it[17]=$t=>_(Y)("month"))},Ae(_(k)(`el.datepicker.month${p.value.month()+1}`)),43,Dqe),[[tn,_(O)==="date"]])])],2),_(O)==="date"?(D(),de(hT,{key:0,ref_key:"rightCurrentViewRef",ref:$,"selection-mode":"range",date:p.value,"min-date":_(g),"max-date":_(m),"range-state":_(y),"disabled-date":_(i),"cell-class-name":_(s),"show-week-number":We.showWeekNumber,disabled:_(Ke),onChangerange:_(S),onPick:mt,onSelect:_(T)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):le("v-if",!0),_(O)==="year"?(D(),de(am,{key:1,ref_key:"rightCurrentViewRef",ref:$,"selection-mode":"year",date:p.value,"disabled-date":_(i),"parsed-value":We.parsedValue,disabled:_(Ke),onPick:_(te)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):le("v-if",!0),_(O)==="month"?(D(),de(rm,{key:2,ref_key:"rightCurrentViewRef",ref:$,"selection-mode":"month",date:p.value,"parsed-value":We.parsedValue,"disabled-date":_(i),disabled:_(Ke),onPick:_(re)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):le("v-if",!0)],2)],2)],2),We.showFooter&&Qe.value&&(We.showConfirm||_(u))?(D(),H("div",{key:0,class:W(_(b).e("footer"))},[_(u)?(D(),de(_(Gr),{key:0,text:"",size:"small",class:W(_(b).e("link-btn")),onClick:Zn},{default:ee(()=>[gt(Ae(_(k)("el.datepicker.clear")),1)]),_:1},8,["class"])):le("v-if",!0),We.showConfirm?(D(),de(_(Gr),{key:1,plain:"",size:"small",class:W(_(b).e("link-btn")),disabled:en.value,onClick:it[18]||(it[18]=$t=>_(x)(!1))},{default:ee(()=>[gt(Ae(_(k)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):le("v-if",!0)],2)):le("v-if",!0)],2))}});var Rqe=De(Pqe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker-panel/src/date-picker-com/panel-date-range.vue"]]);const Oqe=Ie({...QA}),Nqe=["pick","set-picker-option","calendar-change"],Bqe=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:r}=Kt(),a=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},o=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},i=()=>{t.value=t.value.add(1,"year")},s=()=>{n.value=n.value.subtract(1,"year")},l=R(()=>`${t.value.year()} ${r("el.datepicker.year")}`),u=R(()=>`${n.value.year()} ${r("el.datepicker.year")}`),c=R(()=>t.value.year()),f=R(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:a,rightNextYear:o,leftNextYear:i,rightPrevYear:s,leftLabel:l,rightLabel:u,leftYear:c,rightYear:f}},Vqe=["disabled","onClick"],$qe=["disabled"],zqe=["disabled"],Fqe=["disabled"],Hqe=["disabled"],i2="year",Wqe=q({name:"DatePickerMonthRange",__name:"panel-month-range",props:Oqe,emits:Nqe,setup(e,{emit:t}){const n=e,r=t,{lang:a}=Kt(),o=Ue(Vi),i=Ue(d1,void 0),{shortcuts:s,disabledDate:l,cellClassName:u}=o.props,c=vn(o.props,"format"),f=vn(o.props,"defaultValue"),d=K(wt().locale(a.value)),v=K(wt().locale(a.value).add(1,i2)),{minDate:h,maxDate:p,rangeState:g,ppNs:m,drpNs:y,handleChangeRange:b,handleRangeConfirm:w,handleShortcutClick:S,onSelect:x,parseValue:C}=nE(n,{defaultValue:f,leftDate:d,rightDate:v,unit:i2,sortDates:F}),T=R(()=>!!s.length),{leftPrevYear:M,rightNextYear:k,leftNextYear:E,rightPrevYear:A,leftLabel:I,rightLabel:O,leftYear:z,rightYear:$}=Bqe({unlinkPanels:vn(n,"unlinkPanels"),leftDate:d,rightDate:v}),P=R(()=>n.unlinkPanels&&$.value>z.value+1),L=(G,Y=!0)=>{const X=G.minDate,te=G.maxDate;p.value===te&&h.value===X||(r("calendar-change",[X.toDate(),te&&te.toDate()]),p.value=te,h.value=X,Y&&w())},V=()=>{let G=null;o!=null&&o.emptyValues&&(G=o.emptyValues.valueOnClear.value),d.value=A4(_(f),{lang:_(a),unit:"year",unlinkPanels:n.unlinkPanels})[0],v.value=d.value.add(1,"year"),r("pick",G)},B=G=>Nh(G,c.value,a.value,i);function F(G,Y){if(n.unlinkPanels&&Y){const X=(G==null?void 0:G.year())||0,te=Y.year();v.value=X===te?Y.add(1,i2):Y}else v.value=d.value.add(1,i2)}const U=jn();return he(()=>n.visible,G=>{!G&&g.value.selecting&&(C(n.parsedValue),x(!1))}),r("set-picker-option",["isValidValue",nm]),r("set-picker-option",["parseUserInput",B]),r("set-picker-option",["handleClear",V]),(G,Y)=>(D(),H("div",{class:W([_(m).b(),_(y).b(),_(m).is("border",G.border),_(m).is("disabled",_(U)),{"has-sidebar":!!G.$slots.sidebar||T.value}])},[N("div",{class:W(_(m).e("body-wrapper"))},[ue(G.$slots,"sidebar",{class:W(_(m).e("sidebar"))}),T.value?(D(),H("div",{key:0,class:W(_(m).e("sidebar"))},[(D(!0),H(qe,null,Wt(_(s),(X,te)=>(D(),H("button",{key:te,type:"button",class:W(_(m).e("shortcut")),disabled:_(U),onClick:oe=>_(S)(X)},Ae(X.text),11,Vqe))),128))],2)):le("v-if",!0),N("div",{class:W(_(m).e("body"))},[N("div",{class:W([[_(m).e("content"),_(y).e("content")],"is-left"])},[N("div",{class:W(_(y).e("header"))},[N("button",{type:"button",class:W([_(m).e("icon-btn"),"d-arrow-left"]),disabled:_(U),onClick:Y[0]||(Y[0]=(...X)=>_(M)&&_(M)(...X))},[ue(G.$slots,"prev-year",{},()=>[Q(_(Xe),null,{default:ee(()=>[Q(_(Yl))]),_:1})])],10,$qe),G.unlinkPanels?(D(),H("button",{key:0,type:"button",disabled:!P.value||_(U),class:W([[_(m).e("icon-btn"),_(m).is("disabled",!P.value||_(U))],"d-arrow-right"]),onClick:Y[1]||(Y[1]=(...X)=>_(E)&&_(E)(...X))},[ue(G.$slots,"next-year",{},()=>[Q(_(Xe),null,{default:ee(()=>[Q(_(ql))]),_:1})])],10,zqe)):le("v-if",!0),N("div",null,Ae(_(I)),1)],2),Q(rm,{"selection-mode":"range",date:d.value,"min-date":_(h),"max-date":_(p),"range-state":_(g),"disabled-date":_(l),disabled:_(U),"cell-class-name":_(u),onChangerange:_(b),onPick:L,onSelect:_(x)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),N("div",{class:W([[_(m).e("content"),_(y).e("content")],"is-right"])},[N("div",{class:W(_(y).e("header"))},[G.unlinkPanels?(D(),H("button",{key:0,type:"button",disabled:!P.value||_(U),class:W([[_(m).e("icon-btn"),_(m).is("disabled",!P.value||_(U))],"d-arrow-left"]),onClick:Y[2]||(Y[2]=(...X)=>_(A)&&_(A)(...X))},[ue(G.$slots,"prev-year",{},()=>[Q(_(Xe),null,{default:ee(()=>[Q(_(Yl))]),_:1})])],10,Fqe)):le("v-if",!0),N("button",{type:"button",class:W([_(m).e("icon-btn"),"d-arrow-right"]),disabled:_(U),onClick:Y[3]||(Y[3]=(...X)=>_(k)&&_(k)(...X))},[ue(G.$slots,"next-year",{},()=>[Q(_(Xe),null,{default:ee(()=>[Q(_(ql))]),_:1})])],10,Hqe),N("div",null,Ae(_(O)),1)],2),Q(rm,{"selection-mode":"range",date:v.value,"min-date":_(h),"max-date":_(p),"range-state":_(g),"disabled-date":_(l),disabled:_(U),"cell-class-name":_(u),onChangerange:_(b),onPick:L,onSelect:_(x)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}});var Gqe=De(Wqe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker-panel/src/date-picker-com/panel-month-range.vue"]]);const Uqe=Ie({...QA}),Kqe=["pick","set-picker-option","calendar-change"],jqe=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const r=()=>{t.value=t.value.subtract(10,"year"),e.value||(n.value=n.value.subtract(10,"year"))},a=()=>{e.value||(t.value=t.value.add(10,"year")),n.value=n.value.add(10,"year")},o=()=>{t.value=t.value.add(10,"year")},i=()=>{n.value=n.value.subtract(10,"year")},s=R(()=>{const f=Math.floor(t.value.year()/10)*10;return`${f}-${f+9}`}),l=R(()=>{const f=Math.floor(n.value.year()/10)*10;return`${f}-${f+9}`}),u=R(()=>Math.floor(t.value.year()/10)*10+9),c=R(()=>Math.floor(n.value.year()/10)*10);return{leftPrevYear:r,rightNextYear:a,leftNextYear:o,rightPrevYear:i,leftLabel:s,rightLabel:l,leftYear:u,rightYear:c}},Yqe=["disabled","onClick"],qqe=["disabled"],Xqe=["disabled"],Zqe=["disabled"],Jqe=["disabled"],pv=10,s0="year",Qqe=q({name:"DatePickerYearRange",__name:"panel-year-range",props:Uqe,emits:Kqe,setup(e,{emit:t}){const n=e,r=t,{lang:a}=Kt(),o=K(wt().locale(a.value)),i=K(wt().locale(a.value).add(pv,s0)),s=Ue(d1,void 0),l=Ue(Vi),{shortcuts:u,disabledDate:c,cellClassName:f}=l.props,d=vn(l.props,"format"),v=vn(l.props,"defaultValue"),{minDate:h,maxDate:p,rangeState:g,ppNs:m,drpNs:y,handleChangeRange:b,handleRangeConfirm:w,handleShortcutClick:S,onSelect:x,parseValue:C}=nE(n,{defaultValue:v,leftDate:o,rightDate:i,step:pv,unit:s0,sortDates:te}),{leftPrevYear:T,rightNextYear:M,leftNextYear:k,rightPrevYear:E,leftLabel:A,rightLabel:I,leftYear:O,rightYear:z}=jqe({unlinkPanels:vn(n,"unlinkPanels"),leftDate:o,rightDate:i}),$=jn(),P=R(()=>!!u.length),L=R(()=>[m.b(),y.b(),m.is("border",n.border),m.is("disabled",$.value),{"has-sidebar":!!fr().sidebar||P.value}]),V=R(()=>({content:[m.e("content"),y.e("content"),"is-left"],arrowLeftBtn:[m.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[m.e("icon-btn"),m.is("disabled",!F.value||$.value),"d-arrow-right"]})),B=R(()=>({content:[m.e("content"),y.e("content"),"is-right"],arrowLeftBtn:[m.e("icon-btn"),m.is("disabled",!F.value||$.value),"d-arrow-left"],arrowRightBtn:[m.e("icon-btn"),"d-arrow-right"]})),F=R(()=>n.unlinkPanels&&z.value>O.value+1),U=(oe,re=!0)=>{const ce=oe.minDate,ie=oe.maxDate;p.value===ie&&h.value===ce||(r("calendar-change",[ce.toDate(),ie&&ie.toDate()]),p.value=ie,h.value=ce,re&&w())},G=oe=>Nh(oe,d.value,a.value,s),Y=oe=>nm(oe)&&(c?!c(oe[0].toDate())&&!c(oe[1].toDate()):!0),X=()=>{let oe=null;l!=null&&l.emptyValues&&(oe=l.emptyValues.valueOnClear.value);const re=A4(_(v),{lang:_(a),step:pv,unit:s0,unlinkPanels:n.unlinkPanels});o.value=re[0],i.value=re[1],r("pick",oe)};function te(oe,re){if(n.unlinkPanels&&re){const ce=(oe==null?void 0:oe.year())||0,ie=re.year();i.value=ce+pv>ie?re.add(pv,s0):re}else i.value=o.value.add(pv,s0)}return he(()=>n.visible,oe=>{!oe&&g.value.selecting&&(C(n.parsedValue),x(!1))}),r("set-picker-option",["isValidValue",Y]),r("set-picker-option",["parseUserInput",G]),r("set-picker-option",["handleClear",X]),(oe,re)=>(D(),H("div",{class:W(L.value)},[N("div",{class:W(_(m).e("body-wrapper"))},[ue(oe.$slots,"sidebar",{class:W(_(m).e("sidebar"))}),P.value?(D(),H("div",{key:0,class:W(_(m).e("sidebar"))},[(D(!0),H(qe,null,Wt(_(u),(ce,ie)=>(D(),H("button",{key:ie,type:"button",class:W(_(m).e("shortcut")),disabled:_($),onClick:Z=>_(S)(ce)},Ae(ce.text),11,Yqe))),128))],2)):le("v-if",!0),N("div",{class:W(_(m).e("body"))},[N("div",{class:W(V.value.content)},[N("div",{class:W(_(y).e("header"))},[N("button",{type:"button",class:W(V.value.arrowLeftBtn),disabled:_($),onClick:re[0]||(re[0]=(...ce)=>_(T)&&_(T)(...ce))},[ue(oe.$slots,"prev-year",{},()=>[Q(_(Xe),null,{default:ee(()=>[Q(_(Yl))]),_:1})])],10,qqe),oe.unlinkPanels?(D(),H("button",{key:0,type:"button",disabled:!F.value||_($),class:W(V.value.arrowRightBtn),onClick:re[1]||(re[1]=(...ce)=>_(k)&&_(k)(...ce))},[ue(oe.$slots,"next-year",{},()=>[Q(_(Xe),null,{default:ee(()=>[Q(_(ql))]),_:1})])],10,Xqe)):le("v-if",!0),N("div",null,Ae(_(A)),1)],2),Q(am,{"selection-mode":"range",date:o.value,"min-date":_(h),"max-date":_(p),"range-state":_(g),"disabled-date":_(c),disabled:_($),"cell-class-name":_(f),onChangerange:_(b),onPick:U,onSelect:_(x)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),N("div",{class:W(B.value.content)},[N("div",{class:W(_(y).e("header"))},[oe.unlinkPanels?(D(),H("button",{key:0,type:"button",disabled:!F.value||_($),class:W(B.value.arrowLeftBtn),onClick:re[2]||(re[2]=(...ce)=>_(E)&&_(E)(...ce))},[ue(oe.$slots,"prev-year",{},()=>[Q(_(Xe),null,{default:ee(()=>[Q(_(Yl))]),_:1})])],10,Zqe)):le("v-if",!0),N("button",{type:"button",class:W(B.value.arrowRightBtn),disabled:_($),onClick:re[3]||(re[3]=(...ce)=>_(M)&&_(M)(...ce))},[ue(oe.$slots,"next-year",{},()=>[Q(_(Xe),null,{default:ee(()=>[Q(_(ql))]),_:1})])],10,Jqe),N("div",null,Ae(_(I)),1)],2),Q(am,{"selection-mode":"range",date:i.value,"min-date":_(h),"max-date":_(p),"range-state":_(g),"disabled-date":_(c),disabled:_($),"cell-class-name":_(f),onChangerange:_(b),onPick:U,onSelect:_(x)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}});var eXe=De(Qqe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker-panel/src/date-picker-com/panel-year-range.vue"]]);const tXe=function(e){switch(e){case"daterange":case"datetimerange":return Rqe;case"monthrange":return Gqe;case"yearrange":return eXe;default:return gqe}};function nXe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!wn(e)}wt.extend(sJ);wt.extend(IYe);wt.extend(jA);wt.extend(DYe);wt.extend(RYe);wt.extend(NYe);wt.extend(VYe);wt.extend(zYe);var rXe=q({name:"ElDatePickerPanel",install:null,inheritAttrs:!1,props:FYe,emits:[dt,"calendar-change","panel-change","visible-change"],setup(e,{slots:t,emit:n,attrs:r}){const a=we("picker-panel"),o=Ue(Vi,void 0);if(Jt(o)){const f=sn({...kr(e)});Ut(Vi,{props:f})}Ut(ZA,{slots:t,pickerNs:a});const{parsedValue:i,onCalendarChange:s,onPanelChange:l,onSetPickerOption:u,onPick:c}=Ue(WJ,()=>GJ(e,n),!0);return()=>{const f=tXe(e.type);return Q(f,It(Zm(r,"onPick"),e,{parsedValue:i.value,"onSet-picker-option":u,"onCalendar-change":s,"onPanel-change":l,onPick:c}),nXe(t)?t:{default:()=>[t]})}}});const aQ=_t(rXe),aXe=Ie({...XA,type:{type:ne(String),default:"date"}});function oXe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!wn(e)}var iXe=q({name:"ElDatePicker",install:null,props:aXe,emits:[dt],setup(e,{expose:t,emit:n,slots:r}){const a=R(()=>!e.format);Ut(d1,a),Ut(YA,sn(vn(e,"popperOptions")));const o=K();t({focus:()=>{var l;(l=o.value)==null||l.focus()},blur:()=>{var l;(l=o.value)==null||l.blur()},handleOpen:()=>{var l;(l=o.value)==null||l.handleOpen()},handleClose:()=>{var l;(l=o.value)==null||l.handleClose()}});const s=l=>{n(dt,l)};return()=>{var l;const u=(l=e.format)!=null?l:lYe[e.type]||Lu;return Q(KJ,It(e,{format:u,type:e.type,ref:o,"onUpdate:modelValue":s}),{default:c=>Q(aQ,It({disabled:e.disabled,editable:e.editable,border:!1},c),oXe(r)?r:{default:()=>[r]}),"range-separator":r["range-separator"]})}}});const sXe=_t(iXe),rE=Symbol("elDescriptions");var l0=q({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:Ue(rE,{})}},render(){var e,t,n,r;const a=LUe(this.cell),o=(((e=this.cell)==null?void 0:e.dirs)||[]).map(w=>{const{dir:S,arg:x,modifiers:C,value:T}=w;return[S,T,x,C]}),{border:i,direction:s}=this.descriptions,l=s==="vertical",u=()=>{var w,S,x;return((x=(S=(w=this.cell)==null?void 0:w.children)==null?void 0:S.label)==null?void 0:x.call(S))||a.label},c=()=>{var w,S,x;return(x=(S=(w=this.cell)==null?void 0:w.children)==null?void 0:S.default)==null?void 0:x.call(S)},f=a.span,d=a.rowspan,v=a.align?`is-${a.align}`:"",h=a.labelAlign?`is-${a.labelAlign}`:v,p=a.className,g=a.labelClassName,m=this.type==="label"&&(n=(t=a.labelWidth)!=null?t:this.descriptions.labelWidth)!=null?n:a.width,y={width:Un(m),minWidth:Un(a.minWidth)},b=we("descriptions");switch(this.type){case"label":return xt(ot(this.tag,{style:y,class:[b.e("cell"),b.e("label"),b.is("bordered-label",i),b.is("vertical-label",l),h,g],colSpan:l?f:1,rowspan:l?1:d},u()),o);case"content":return xt(ot(this.tag,{style:y,class:[b.e("cell"),b.e("content"),b.is("bordered-content",i),b.is("vertical-content",l),v,p],colSpan:l?f:f*2-1,rowspan:l?d*2-1:d},c()),o);default:{const w=u(),S={},x=Un((r=a.labelWidth)!=null?r:this.descriptions.labelWidth);return x&&(S.width=x,S.display="inline-block"),xt(ot("td",{style:y,class:[b.e("cell"),v],colSpan:f,rowspan:d},[sr(w)?void 0:ot("span",{style:S,class:[b.e("label"),g]},w),ot("span",{class:[b.e("content"),p]},c())]),o)}}}});const lXe=Ie({row:{type:ne(Array),default:()=>[]}}),uXe={key:1},cXe=q({name:"ElDescriptionsRow",__name:"descriptions-row",props:lXe,setup(e){const t=Ue(rE,{});return(n,r)=>_(t).direction==="vertical"?(D(),H(qe,{key:0},[N("tr",null,[(D(!0),H(qe,null,Wt(n.row,(a,o)=>(D(),de(_(l0),{key:`tr1-${o}`,cell:a,tag:"th",type:"label"},null,8,["cell"]))),128))]),N("tr",null,[(D(!0),H(qe,null,Wt(n.row,(a,o)=>(D(),de(_(l0),{key:`tr2-${o}`,cell:a,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(D(),H("tr",uXe,[(D(!0),H(qe,null,Wt(n.row,(a,o)=>(D(),H(qe,{key:`tr3-${o}`},[_(t).border?(D(),H(qe,{key:0},[Q(_(l0),{cell:a,tag:"td",type:"label"},null,8,["cell"]),Q(_(l0),{cell:a,tag:"td",type:"content"},null,8,["cell"])],64)):(D(),de(_(l0),{key:1,cell:a,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var fXe=De(cXe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const dXe=Ie({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:wr,title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number]}}),oQ="ElDescriptionsItem",vXe=q({name:"ElDescriptions",__name:"description",props:dXe,setup(e){const t=e,n=we("descriptions"),r=vr(),a=fr();Ut(rE,t);const o=R(()=>[n.b(),n.m(r.value)]),i=(l,u,c,f=!1)=>(l.props||(l.props={}),u>c&&(l.props.span=c),f&&(l.props.span=u),l),s=()=>{if(!a.default)return[];const l=_i(a.default()).filter(h=>{var p;return((p=h==null?void 0:h.type)==null?void 0:p.name)===oQ}),u=[];let c=[],f=t.column,d=0;const v=[];return l.forEach((h,p)=>{var g,m,y;const b=((g=h.props)==null?void 0:g.span)||1,w=((m=h.props)==null?void 0:m.rowspan)||1,S=u.length;if(v[S]||(v[S]=0),w>1)for(let x=1;x<w;x++)v[y=S+x]||(v[y]=0),v[S+x]++,d++;if(v[S]>0&&(f-=v[S],v[S]=0),p<l.length-1&&(d+=b>f?f:b),p===l.length-1){const x=t.column-d%t.column;c.push(i(h,x,f,!0)),u.push(c);return}b<f?(f-=b,c.push(h)):(c.push(i(h,b,f)),u.push(c),f=t.column,c=[])}),u};return(l,u)=>(D(),H("div",{class:W(o.value)},[l.title||l.extra||l.$slots.title||l.$slots.extra?(D(),H("div",{key:0,class:W(_(n).e("header"))},[N("div",{class:W(_(n).e("title"))},[ue(l.$slots,"title",{},()=>[gt(Ae(l.title),1)])],2),N("div",{class:W(_(n).e("extra"))},[ue(l.$slots,"extra",{},()=>[gt(Ae(l.extra),1)])],2)],2)):le("v-if",!0),N("div",{class:W(_(n).e("body"))},[N("table",{class:W([_(n).e("table"),_(n).is("bordered",l.border)])},[N("tbody",null,[(D(!0),H(qe,null,Wt(s(),(c,f)=>(D(),de(fXe,{key:f,row:c},null,8,["row"]))),128))])],2)],2)],2))}});var hXe=De(vXe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]);const yV=["left","center","right"],pXe=Ie({label:{type:String,default:""},span:{type:Number,default:1},rowspan:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},labelWidth:{type:[String,Number]},align:{type:String,values:yV,default:"left"},labelAlign:{type:String,values:yV},className:{type:String,default:""},labelClassName:{type:String,default:""}}),iQ=q({name:oQ,props:pXe}),gXe=_t(hXe,{DescriptionsItem:iQ}),mXe=Kn(iQ),aE=e=>{if(!e)return{onClick:cn,onMousedown:cn,onMouseup:cn};let t=!1,n=!1;return{onClick:i=>{t&&n&&e(i),t=n=!1},onMousedown:i=>{t=i.target===i.currentTarget},onMouseup:i=>{n=i.target===i.currentTarget}}},yXe=Ie({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:ne([String,Array,Object])},zIndex:{type:ne([String,Number])}}),bXe={click:e=>e instanceof MouseEvent},_Xe="overlay";var wXe=q({name:"ElOverlay",props:yXe,emits:bXe,setup(e,{slots:t,emit:n}){const r=we(_Xe),a=l=>{n("click",l)},{onClick:o,onMousedown:i,onMouseup:s}=aE(e.customMaskEvent?void 0:a);return()=>e.mask?Q("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:o,onMousedown:i,onMouseup:s},[ue(t,"default")],Uo.STYLE|Uo.CLASS|Uo.PROPS,["onClick","onMouseup","onMousedown"]):ot("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[ue(t,"default")])}});const oE=wXe,sQ=Symbol("dialogInjectionKey"),bV="dialog-fade",lQ=Ie({center:Boolean,alignCenter:{type:Boolean,default:void 0},closeIcon:{type:pn},draggable:{type:Boolean,default:void 0},overflow:{type:Boolean,default:void 0},fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),SXe={close:()=>!0},uQ=(e,t,n,r)=>{const a={offsetX:0,offsetY:0},o=K(!1),i=(d,v)=>{if(e.value){const{offsetX:h,offsetY:p}=a,g=e.value.getBoundingClientRect(),m=g.left,y=g.top,b=g.width,w=g.height,S=document.documentElement.clientWidth,x=document.documentElement.clientHeight,C=-m+h,T=-y+p,M=S-m-b+h,k=x-y-(w<x?w:0)+p;r!=null&&r.value||(d=Math.min(Math.max(d,C),M),v=Math.min(Math.max(v,T),k)),a.offsetX=d,a.offsetY=v,e.value.style.transform=`translate(${Un(d)}, ${Un(v)})`}},s=d=>{const v=d.clientX,h=d.clientY,{offsetX:p,offsetY:g}=a,m=b=>{o.value||(o.value=!0);const w=p+b.clientX-v,S=g+b.clientY-h;i(w,S)},y=()=>{o.value=!1,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",y)};document.addEventListener("mousemove",m),document.addEventListener("mouseup",y)},l=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",s),window.addEventListener("resize",f))},u=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",s),window.removeEventListener("resize",f))},c=()=>{a.offsetX=0,a.offsetY=0,e.value&&(e.value.style.transform="")},f=()=>{const{offsetX:d,offsetY:v}=a;i(d,v)};return Et(()=>{Ga(()=>{n.value?l():u()})}),un(()=>{u()}),{isDragging:o,resetPosition:c,updatePosition:f}},iE=(...e)=>t=>{e.forEach(n=>{n.value=t})},xXe=["aria-level"],CXe=["aria-label"],TXe=["id"],kXe=q({name:"ElDialogContent",__name:"dialog-content",props:lQ,emits:SXe,setup(e,{expose:t}){const{t:n}=Kt(),{Close:r}=gZ,a=e,{dialogRef:o,headerRef:i,bodyId:s,ns:l,style:u}=Ue(sQ),{focusTrapRef:c}=Ue(IZ),f=iE(c,o),d=R(()=>!!a.draggable),v=R(()=>!!a.overflow),{resetPosition:h,updatePosition:p,isDragging:g}=uQ(o,i,d,v),m=R(()=>[l.b(),l.is("fullscreen",a.fullscreen),l.is("draggable",d.value),l.is("dragging",g.value),l.is("align-center",!!a.alignCenter),{[l.m("center")]:a.center}]);return t({resetPosition:h,updatePosition:p}),(y,b)=>(D(),H("div",{ref:_(f),class:W(m.value),style:et(_(u)),tabindex:"-1"},[N("header",{ref_key:"headerRef",ref:i,class:W([_(l).e("header"),y.headerClass,{"show-close":y.showClose}])},[ue(y.$slots,"header",{},()=>[N("span",{role:"heading","aria-level":y.ariaLevel,class:W(_(l).e("title"))},Ae(y.title),11,xXe)]),y.showClose?(D(),H("button",{key:0,"aria-label":_(n)("el.dialog.close"),class:W(_(l).e("headerbtn")),type:"button",onClick:b[0]||(b[0]=w=>y.$emit("close"))},[Q(_(Xe),{class:W(_(l).e("close"))},{default:ee(()=>[(D(),de(Tt(y.closeIcon||_(r))))]),_:1},8,["class"])],10,CXe)):le("v-if",!0)],2),N("div",{id:_(s),class:W([_(l).e("body"),y.bodyClass])},[ue(y.$slots,"default")],10,TXe),y.$slots.footer?(D(),H("footer",{key:0,class:W([_(l).e("footer"),y.footerClass])},[ue(y.$slots,"footer")],2)):le("v-if",!0)],6))}});var MXe=De(kXe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const cQ=Ie({...lQ,appendToBody:Boolean,appendTo:{type:r1.to.type,default:"body"},beforeClose:{type:ne(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},modalPenetrable:Boolean,openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"},transition:{type:ne([String,Object]),default:void 0}}),fQ={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[dt]:e=>hn(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},E4=(e,t={})=>{Dn(e)||cr("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||we("popup"),r=R(()=>n.bm("parent","hidden"));let a=0,o=!1,i="0";const s=()=>{setTimeout(()=>{typeof document>"u"||o&&document&&(document.body.style.width=i,Aa(document.body,r.value))},200)};he(e,l=>{if(!l){s();return}o=!Ds(document.body,r.value),o&&(i=document.body.style.width,Jo(document.body,r.value)),a=jX(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,c=Cl(document.body,"overflowY");a>0&&(u||c==="scroll")&&o&&(document.body.style.width=`calc(100% - ${a}px)`)}),a5(()=>s())},dQ=(e,t)=>{var n;const a=bt().emit,{nextZIndex:o}=t1();let i="";const s=ea(),l=ea(),u=K(!1),c=K(!1),f=K(!1),d=K((n=e.zIndex)!=null?n:o()),v=K(!1);let h,p;const g=hp(),m=R(()=>{var U,G;return(G=(U=g.value)==null?void 0:U.namespace)!=null?G:Z0}),y=R(()=>{var U;return(U=g.value)==null?void 0:U.dialog}),b=R(()=>{const U={},G=`--${m.value}-dialog`;if(!e.fullscreen){e.top&&(U[`${G}-margin-top`]=e.top);const Y=Un(e.width);Y&&(U[`${G}-width`]=Y)}return U}),w=R(()=>{var U,G,Y;return((Y=(G=e.draggable)!=null?G:(U=y.value)==null?void 0:U.draggable)!=null?Y:!1)&&!e.fullscreen}),S=R(()=>{var U,G,Y;return(Y=(G=e.alignCenter)!=null?G:(U=y.value)==null?void 0:U.alignCenter)!=null?Y:!1}),x=R(()=>{var U,G,Y;return(Y=(G=e.overflow)!=null?G:(U=y.value)==null?void 0:U.overflow)!=null?Y:!1}),C=R(()=>S.value?{display:"flex"}:{}),T=R(()=>{var U,G,Y;const X=(Y=(G=e.transition)!=null?G:(U=y.value)==null?void 0:U.transition)!=null?Y:bV,te={name:X,onAfterEnter:M,onBeforeLeave:E,onAfterLeave:k};if(St(X)){const oe={...X},re=(ce,ie)=>Z=>{Ce(ce)?ce.forEach(se=>{Je(se)&&se(Z)}):Je(ce)&&ce(Z),ie()};return oe.onAfterEnter=re(oe.onAfterEnter,M),oe.onBeforeLeave=re(oe.onBeforeLeave,E),oe.onAfterLeave=re(oe.onAfterLeave,k),oe.name||(oe.name=bV),oe}return te});function M(){a("opened")}function k(){a("closed"),a(dt,!1),e.destroyOnClose&&(f.value=!1),v.value=!1}function E(){v.value=!0,a("close")}function A(){p==null||p(),h==null||h(),e.openDelay&&e.openDelay>0?{stop:h}=Mh(()=>$(),e.openDelay):$()}function I(){h==null||h(),p==null||p(),e.closeDelay&&e.closeDelay>0?{stop:p}=Mh(()=>P(),e.closeDelay):P()}function O(){function U(G){G||(c.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(U):I()}function z(){e.closeOnClickModal&&O()}function $(){on&&(u.value=!0)}function P(){u.value=!1}function L(){a("openAutoFocus")}function V(){a("closeAutoFocus")}function B(U){var G;((G=U.detail)==null?void 0:G.focusReason)==="pointer"&&U.preventDefault()}e.lockScroll&&E4(u);function F(){e.closeOnPressEscape&&O()}return he(()=>e.zIndex,()=>{var U;d.value=(U=e.zIndex)!=null?U:o()}),he(()=>e.modelValue,U=>{var G;U?(c.value=!1,A(),f.value=!0,d.value=(G=e.zIndex)!=null?G:o(),ze(()=>{a("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):u.value&&I()}),he(()=>e.fullscreen,U=>{t.value&&(U?(i=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=i)}),Et(()=>{e.modelValue&&(u.value=!0,f.value=!0,A())}),{afterEnter:M,afterLeave:k,beforeLeave:E,handleClose:O,onModalClick:z,close:I,doClose:P,onOpenAutoFocus:L,onCloseAutoFocus:V,onCloseRequested:F,onFocusoutPrevented:B,titleId:s,bodyId:l,closed:c,style:b,overlayDialogStyle:C,rendered:f,visible:u,zIndex:d,transitionConfig:T,_draggable:w,_alignCenter:S,_overflow:x,closing:v}},AXe=["aria-label","aria-labelledby","aria-describedby"],EXe=q({name:"ElDialog",inheritAttrs:!1,__name:"dialog",props:cQ,emits:fQ,setup(e,{expose:t}){const n=e,r=fr();Os({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},R(()=>!!r.title));const a=we("dialog"),o=K(),i=K(),s=K(),{visible:l,titleId:u,bodyId:c,style:f,overlayDialogStyle:d,rendered:v,transitionConfig:h,zIndex:p,_draggable:g,_alignCenter:m,_overflow:y,handleClose:b,onModalClick:w,onOpenAutoFocus:S,onCloseAutoFocus:x,onCloseRequested:C,onFocusoutPrevented:T,closing:M}=dQ(n,o);Ut(sQ,{dialogRef:o,headerRef:i,bodyId:c,ns:a,rendered:v,style:f});const k=aE(w),E=R(()=>n.modalPenetrable&&!n.modal&&!n.fullscreen);return t({visible:l,dialogContentRef:s,resetPosition:()=>{var I;(I=s.value)==null||I.resetPosition()},handleClose:b}),(I,O)=>(D(),de(_(pp),{to:I.appendTo,disabled:I.appendTo!=="body"?!1:!I.appendToBody},{default:ee(()=>[Q(Ur,It(_(h),{persisted:""}),{default:ee(()=>{var z;return[xt(Q(_(oE),{"custom-mask-event":"",mask:I.modal,"overlay-class":[(z=I.modalClass)!=null?z:"",`${_(a).namespace.value}-modal-dialog`,_(a).is("penetrable",E.value)],"z-index":_(p)},{default:ee(()=>[N("div",{role:"dialog","aria-modal":"true","aria-label":I.title||void 0,"aria-labelledby":I.title?void 0:_(u),"aria-describedby":_(c),class:W([`${_(a).namespace.value}-overlay-dialog`,_(a).is("closing",_(M))]),style:et(_(d)),onClick:O[0]||(O[0]=(...$)=>_(k).onClick&&_(k).onClick(...$)),onMousedown:O[1]||(O[1]=(...$)=>_(k).onMousedown&&_(k).onMousedown(...$)),onMouseup:O[2]||(O[2]=(...$)=>_(k).onMouseup&&_(k).onMouseup(...$))},[Q(_(mp),{loop:"",trapped:_(l),"focus-start-el":"container",onFocusAfterTrapped:_(S),onFocusAfterReleased:_(x),onFocusoutPrevented:_(T),onReleaseRequested:_(C)},{default:ee(()=>[_(v)?(D(),de(MXe,It({key:0,ref_key:"dialogContentRef",ref:s},I.$attrs,{center:I.center,"align-center":_(m),"close-icon":I.closeIcon,draggable:_(g),overflow:_(y),fullscreen:I.fullscreen,"header-class":I.headerClass,"body-class":I.bodyClass,"footer-class":I.footerClass,"show-close":I.showClose,title:I.title,"aria-level":I.headerAriaLevel,onClose:_(b)}),Ua({header:ee(()=>[I.$slots.title?ue(I.$slots,"title",{key:1}):ue(I.$slots,"header",{key:0,close:_(b),titleId:_(u),titleClass:_(a).e("title")})]),default:ee(()=>[ue(I.$slots,"default")]),_:2},[I.$slots.footer?{name:"footer",fn:ee(()=>[ue(I.$slots,"footer")]),key:"0"}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose"])):le("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,AXe)]),_:3},8,["mask","overlay-class","z-index"]),[[tn,_(l)]])]}),_:3},16)]),_:3},8,["to","disabled"]))}});var IXe=De(EXe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const LXe=_t(IXe),DXe=Ie({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:ne(String),default:"solid"}}),PXe=q({name:"ElDivider",__name:"divider",props:DXe,setup(e){const t=e,n=we("divider"),r=R(()=>n.cssVar({"border-style":t.borderStyle}));return(a,o)=>(D(),H("div",{class:W([_(n).b(),_(n).m(a.direction)]),style:et(r.value),role:"separator"},[a.$slots.default&&a.direction!=="vertical"?(D(),H("div",{key:0,class:W([_(n).e("text"),_(n).is(a.contentPosition)])},[ue(a.$slots,"default")],2)):le("v-if",!0)],6))}});var RXe=De(PXe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const vQ=_t(RXe),OXe=Ie({...cQ,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},resizable:Boolean,size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),NXe={...fQ,"resize-start":(e,t)=>e instanceof MouseEvent&&typeof t=="number",resize:(e,t)=>e instanceof MouseEvent&&typeof t=="number","resize-end":(e,t)=>e instanceof MouseEvent&&typeof t=="number"};function BXe(e,t,n){const{width:r,height:a}=bA(),o=R(()=>["ltr","rtl"].includes(e.direction)),i=R(()=>["ltr","ttb"].includes(e.direction)?1:-1),s=R(()=>o.value?r.value:a.value),l=R(()=>DX(u.value+i.value*c.value,4,s.value)),u=K(0),c=K(0),f=K(!1),d=K(!1);let v=[],h=[];const p=()=>{var w;const S=(w=t.value)==null?void 0:w.closest('[aria-modal="true"]');return S?o.value?S.offsetWidth:S.offsetHeight:100};he(()=>[e.size,e.resizable],()=>{d.value=!1,u.value=0,c.value=0,y()});const g=w=>{e.resizable&&(d.value||(u.value=p(),d.value=!0),v=[w.pageX,w.pageY],f.value=!0,n("resize-start",w,u.value),h.push(fn(window,"mouseup",y),fn(window,"mousemove",m)))},m=w=>{const{pageX:S,pageY:x}=w,C=S-v[0],T=x-v[1];c.value=o.value?C:T,n("resize",w,l.value)},y=w=>{f.value&&(v=[],u.value=l.value,c.value=0,f.value=!1,h.forEach(S=>S==null?void 0:S()),h=[],w&&n("resize-end",w,u.value))},b=fn(t,"mousedown",g);return un(()=>{b(),y()}),{size:R(()=>d.value?`${l.value}px`:Un(e.size)),isResizing:f,isHorizontal:o}}const VXe=["aria-label","aria-labelledby","aria-describedby"],$Xe=["id","aria-level"],zXe=["aria-label"],FXe=["id"],HXe=q({name:"ElDrawer",inheritAttrs:!1,__name:"drawer",props:OXe,emits:NXe,setup(e,{expose:t,emit:n}){const r=e,a=n,o=fr();Os({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},R(()=>!!o.title));const i=K(),s=K(),l=K(),u=we("drawer"),{t:c}=Kt(),{afterEnter:f,afterLeave:d,beforeLeave:v,visible:h,rendered:p,titleId:g,bodyId:m,zIndex:y,onModalClick:b,onOpenAutoFocus:w,onCloseAutoFocus:S,onFocusoutPrevented:x,onCloseRequested:C,handleClose:T}=dQ(r,i),{isHorizontal:M,size:k,isResizing:E}=BXe(r,l,a),A=R(()=>r.modalPenetrable&&!r.modal);return t({handleClose:T,afterEnter:f,afterLeave:d}),(I,O)=>(D(),de(_(pp),{to:I.appendTo,disabled:I.appendTo!=="body"?!1:!I.appendToBody},{default:ee(()=>[Q(Ur,{name:_(u).b("fade"),onAfterEnter:_(f),onAfterLeave:_(d),onBeforeLeave:_(v),persisted:""},{default:ee(()=>{var z;return[xt(Q(_(oE),{mask:I.modal,"overlay-class":[_(u).is("drawer"),(z=I.modalClass)!=null?z:"",`${_(u).namespace.value}-modal-drawer`,_(u).is("penetrable",A.value)],"z-index":_(y),onClick:_(b)},{default:ee(()=>[Q(_(mp),{loop:"",trapped:_(h),"focus-trap-el":i.value,"focus-start-el":s.value,onFocusAfterTrapped:_(w),onFocusAfterReleased:_(S),onFocusoutPrevented:_(x),onReleaseRequested:_(C)},{default:ee(()=>[N("div",It({ref_key:"drawerRef",ref:i,"aria-modal":"true","aria-label":I.title||void 0,"aria-labelledby":I.title?void 0:_(g),"aria-describedby":_(m)},I.$attrs,{class:[_(u).b(),I.direction,_(h)&&"open",_(u).is("dragging",_(E))],style:{[_(M)?"width":"height"]:_(k)},role:"dialog",onClick:O[1]||(O[1]=ut(()=>{},["stop"]))}),[N("span",{ref_key:"focusStartRef",ref:s,class:W(_(u).e("sr-focus")),tabindex:"-1"},null,2),I.withHeader?(D(),H("header",{key:0,class:W([_(u).e("header"),I.headerClass])},[I.$slots.title?ue(I.$slots,"title",{key:1},()=>[le(" DEPRECATED SLOT ")]):ue(I.$slots,"header",{key:0,close:_(T),titleId:_(g),titleClass:_(u).e("title")},()=>[N("span",{id:_(g),role:"heading","aria-level":I.headerAriaLevel,class:W(_(u).e("title"))},Ae(I.title),11,$Xe)]),I.showClose?(D(),H("button",{key:2,"aria-label":_(c)("el.drawer.close"),class:W(_(u).e("close-btn")),type:"button",onClick:O[0]||(O[0]=(...$)=>_(T)&&_(T)(...$))},[Q(_(Xe),{class:W(_(u).e("close"))},{default:ee(()=>[Q(_(Io))]),_:1},8,["class"])],10,zXe)):le("v-if",!0)],2)):le("v-if",!0),_(p)?(D(),H("div",{key:1,id:_(m),class:W([_(u).e("body"),I.bodyClass])},[ue(I.$slots,"default")],10,FXe)):le("v-if",!0),I.$slots.footer?(D(),H("div",{key:2,class:W([_(u).e("footer"),I.footerClass])},[ue(I.$slots,"footer")],2)):le("v-if",!0),I.resizable?(D(),H("div",{key:3,ref_key:"draggerRef",ref:l,style:et({zIndex:_(y)}),class:W(_(u).e("dragger"))},null,6)):le("v-if",!0)],16,VXe)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[tn,_(h)]])]}),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var WXe=De(HXe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const GXe=_t(WXe),UXe=q({inheritAttrs:!1});function KXe(e,t,n,r,a,o){return ue(e.$slots,"default")}var jXe=De(UXe,[["render",KXe],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const YXe=q({name:"ElCollectionItem",inheritAttrs:!1});function qXe(e,t,n,r,a,o){return ue(e.$slots,"default")}var XXe=De(YXe,[["render",qXe],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const hQ="data-el-collection-item",ZXe=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),a=Symbol(n),o=Object.assign({},jXe,{name:t,setup(){const s=K(),l=new Map;Ut(r,{itemMap:l,getItems:()=>{const c=_(s);if(!c)return[];const f=Array.from(c.querySelectorAll(`[${hQ}]`));return[...l.values()].sort((v,h)=>f.indexOf(v.ref)-f.indexOf(h.ref))},collectionRef:s})}}),i=Object.assign({},XXe,{name:n,setup(s,{attrs:l}){const u=K(),c=Ue(r,void 0);Ut(a,{collectionItemRef:u}),Et(()=>{const f=_(u);f&&c.itemMap.set(f,{ref:f,...l})}),un(()=>{const f=_(u);c.itemMap.delete(f)})}});return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:o,ElCollectionItem:i}},JXe=Ie({style:{type:ne([String,Array,Object])},currentTabId:{type:ne(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:ne(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:QXe,ElCollectionItem:eZe,COLLECTION_INJECTION_KEY:pQ,COLLECTION_ITEM_INJECTION_KEY:tZe}=ZXe("RovingFocusGroup"),sE=Symbol("elRovingFocusGroup"),gQ=Symbol("elRovingFocusGroupItem"),nZe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},rZe=(e,t)=>{if(t!=="rtl")return e;switch(e){case ke.right:return ke.left;case ke.left:return ke.right;default:return e}},aZe=(e,t,n)=>{const r=xn(e),a=rZe(r,n);if(!(t==="vertical"&&[ke.left,ke.right].includes(a))&&!(t==="horizontal"&&[ke.up,ke.down].includes(a)))return nZe[a]},oZe=(e,t)=>e.map((n,r)=>e[(r+t)%e.length]),_V=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},wV="currentTabIdChange",SV="rovingFocusGroup.entryFocus",iZe={bubbles:!1,cancelable:!0},sZe=q({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:JXe,emits:[wV,"entryFocus"],setup(e,{emit:t}){var n;const r=K((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),a=K(!1),o=K(!1),i=K(),{getItems:s}=Ue(pQ,void 0),l=R(()=>[{outline:"none"},e.style]),u=g=>{t(wV,g)},c=()=>{a.value=!0},f=Dr(g=>{var m;(m=e.onMousedown)==null||m.call(e,g)},()=>{o.value=!0}),d=Dr(g=>{var m;(m=e.onFocus)==null||m.call(e,g)},g=>{const m=!_(o),{target:y,currentTarget:b}=g;if(y===b&&m&&!_(a)){const w=new Event(SV,iZe);if(b==null||b.dispatchEvent(w),!w.defaultPrevented){const S=s().filter(k=>k.focusable),x=S.find(k=>k.active),C=S.find(k=>k.id===_(r)),M=[x,C,...S].filter(Boolean).map(k=>k.ref);_V(M)}}o.value=!1}),v=Dr(g=>{var m;(m=e.onBlur)==null||m.call(e,g)},()=>{a.value=!1}),h=(...g)=>{t("entryFocus",...g)},p=g=>{const m=aZe(g);if(m){g.preventDefault();let b=s().filter(w=>w.focusable).map(w=>w.ref);switch(m){case"last":{b.reverse();break}case"prev":case"next":{m==="prev"&&b.reverse();const w=b.indexOf(g.currentTarget);b=e.loop?oZe(b,w+1):b.slice(w+1);break}}ze(()=>{_V(b)})}};Ut(sE,{currentTabbedId:rc(r),loop:vn(e,"loop"),tabIndex:R(()=>_(a)?-1:0),rovingFocusGroupRef:i,rovingFocusGroupRootStyle:l,orientation:vn(e,"orientation"),dir:vn(e,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:v,onFocus:d,onMousedown:f,onKeydown:p}),he(()=>e.currentTabId,g=>{r.value=g??null}),fn(i,SV,h)}});function lZe(e,t,n,r,a,o){return ue(e.$slots,"default")}var uZe=De(sZe,[["render",lZe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const cZe=q({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:QXe,ElRovingFocusGroupImpl:uZe}});function fZe(e,t,n,r,a,o){const i=Ft("el-roving-focus-group-impl"),s=Ft("el-focus-group-collection");return D(),de(s,null,{default:ee(()=>[Q(i,Cs(Ms(e.$attrs)),{default:ee(()=>[ue(e.$slots,"default")]),_:3},16)]),_:3})}var dZe=De(cZe,[["render",fZe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const Y2=Ie({trigger:{...Rs.trigger,type:ne([String,Array])},triggerKeys:{type:ne(Array),default:()=>[ke.enter,ke.numpadEnter,ke.space,ke.down]},virtualTriggering:Rs.virtualTriggering,virtualRef:Rs.virtualRef,effect:{...bn.effect,default:"light"},type:{type:ne(String)},placement:{type:ne(String),default:"bottom"},popperOptions:{type:ne(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:ne([Number,String]),default:0},maxHeight:{type:ne([Number,String]),default:""},popperClass:bn.popperClass,popperStyle:bn.popperStyle,disabled:Boolean,role:{type:String,values:CZ,default:"menu"},buttonProps:{type:ne(Object)},teleported:bn.teleported,appendTo:bn.appendTo,persistent:{type:Boolean,default:!0}}),mQ=Ie({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:pn}}),vZe=Ie({onKeydown:{type:ne(Function)}}),I4=Symbol("elDropdown"),yQ="elDropdown",{ButtonGroup:hZe}=Gr,pZe=q({name:"ElDropdown",components:{ElButton:Gr,ElButtonGroup:hZe,ElScrollbar:Ni,ElTooltip:ta,ElRovingFocusGroup:dZe,ElOnlyChild:AZ,ElIcon:Xe,ArrowDown:Yi},props:Y2,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=bt(),r=we("dropdown"),{t:a}=Kt(),o=K(),i=K(),s=K(),l=K(),u=K(null),c=K(null),f=K(!1),d=R(()=>({maxHeight:Un(e.maxHeight)})),v=R(()=>[r.m(w.value)]),h=R(()=>Hr(e.trigger)),p=ea().value,g=R(()=>e.id||p);function m(){var I;(I=s.value)==null||I.onClose(void 0,0)}function y(){var I;(I=s.value)==null||I.onClose()}function b(){var I;(I=s.value)==null||I.onOpen()}const w=vr();function S(...I){t("command",...I)}function x(){}function C(){const I=_(l);h.value.includes("hover")&&(I==null||I.focus({preventScroll:!0})),c.value=null}function T(I){c.value=I}function M(){t("visible-change",!0)}function k(I){var O;f.value=(I==null?void 0:I.type)==="keydown",(O=l.value)==null||O.focus()}function E(){t("visible-change",!1)}return Ut(I4,{contentRef:l,role:R(()=>e.role),triggerId:g,isUsingKeyboard:f,onItemEnter:x,onItemLeave:C,handleClose:y}),Ut(yQ,{instance:n,dropdownSize:w,handleClick:m,commandHandler:S,trigger:vn(e,"trigger"),hideOnClick:vn(e,"hideOnClick")}),{t:a,ns:r,scrollbar:u,wrapStyle:d,dropdownTriggerKls:v,dropdownSize:w,triggerId:g,currentTabId:c,handleCurrentTabIdChange:T,handlerMainButtonClick:I=>{t("click",I)},handleClose:y,handleOpen:b,handleBeforeShowTooltip:M,handleShowTooltip:k,handleBeforeHideTooltip:E,popperRef:s,contentRef:l,triggeringElementRef:o,referenceElementRef:i}}});function gZe(e,t,n,r,a,o){var i;const s=Ft("el-roving-focus-group"),l=Ft("el-scrollbar"),u=Ft("el-only-child"),c=Ft("el-tooltip"),f=Ft("el-button"),d=Ft("arrow-down"),v=Ft("el-icon"),h=Ft("el-button-group");return D(),H("div",{class:W([e.ns.b(),e.ns.is("disabled",e.disabled)])},[Q(c,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"popper-style":e.popperStyle,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-arrow":e.showArrow,"show-after":e.trigger==="hover"?e.showTimeout:0,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"virtual-ref":(i=e.virtualRef)!=null?i:e.triggeringElementRef,"virtual-triggering":e.virtualTriggering||e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,"append-to":e.appendTo,pure:"","focus-on-target":"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Ua({content:ee(()=>[Q(l,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:ee(()=>[Q(s,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange},{default:ee(()=>[ue(e.$slots,"dropdown")]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:ee(()=>[Q(u,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:ee(()=>[ue(e.$slots,"default")]),_:3},8,["id","tabindex"])]),key:"0"}]),1032,["role","effect","popper-options","placement","popper-class","popper-style","trigger","trigger-keys","trigger-target-el","show-arrow","show-after","hide-after","virtual-ref","virtual-triggering","disabled","transition","teleported","append-to","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(D(),de(h,{key:0},{default:ee(()=>[Q(f,It({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:ee(()=>[ue(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),Q(f,It({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:ee(()=>[Q(v,{class:W(e.ns.e("icon"))},{default:ee(()=>[Q(d)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):le("v-if",!0)],2)}var mZe=De(pZe,[["render",gZe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const yZe=q({components:{ElRovingFocusCollectionItem:eZe},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,onItemFocus:r,onItemShiftTab:a,onKeydown:o}=Ue(sE,void 0),i=ea(),s=K(),l=Dr(d=>{t("mousedown",d)},d=>{e.focusable?r(_(i)):d.preventDefault()}),u=Dr(d=>{t("focus",d)},()=>{r(_(i))}),c=Dr(d=>{t("keydown",d)},d=>{const{shiftKey:v,target:h,currentTarget:p}=d;if(xn(d)===ke.tab&&v){a();return}h===p&&o(d)}),f=R(()=>n.value===_(i));return Ut(gQ,{rovingFocusGroupItemRef:s,tabIndex:R(()=>_(f)?0:-1),handleMousedown:l,handleFocus:u,handleKeydown:c}),{id:i,handleKeydown:c,handleFocus:u,handleMousedown:l}}});function bZe(e,t,n,r,a,o){const i=Ft("el-roving-focus-collection-item");return D(),de(i,{id:e.id,focusable:e.focusable,active:e.active},{default:ee(()=>[ue(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var _Ze=De(yZe,[["render",bZe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const wZe=q({name:"DropdownItemImpl",components:{ElIcon:Xe},props:mQ,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=we("dropdown"),{role:r}=Ue(I4,void 0),{collectionItemRef:a}=Ue(tZe,void 0),{rovingFocusGroupItemRef:o,tabIndex:i,handleFocus:s,handleKeydown:l,handleMousedown:u}=Ue(gQ,void 0),c=iE(a,o),f=R(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),d=Dr(v=>{const h=xn(v);if([ke.enter,ke.numpadEnter,ke.space].includes(h))return v.preventDefault(),v.stopImmediatePropagation(),t("clickimpl",v),!0},l);return{ns:n,itemRef:c,dataset:{[hQ]:""},role:f,tabIndex:i,handleFocus:s,handleKeydown:d,handleMousedown:u}}}),SZe=["aria-disabled","tabindex","role"];function xZe(e,t,n,r,a,o){const i=Ft("el-icon");return D(),H(qe,null,[e.divided?(D(),H("li",{key:0,role:"separator",class:W(e.ns.bem("menu","item","divided"))},null,2)):le("v-if",!0),N("li",It({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=s=>e.$emit("clickimpl",s)),onFocus:t[1]||(t[1]=(...s)=>e.handleFocus&&e.handleFocus(...s)),onKeydown:t[2]||(t[2]=ut((...s)=>e.handleKeydown&&e.handleKeydown(...s),["self"])),onMousedown:t[3]||(t[3]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),onPointermove:t[4]||(t[4]=s=>e.$emit("pointermove",s)),onPointerleave:t[5]||(t[5]=s=>e.$emit("pointerleave",s))}),[e.icon?(D(),de(i,{key:0},{default:ee(()=>[(D(),de(Tt(e.icon)))]),_:1})):le("v-if",!0),ue(e.$slots,"default")],16,SZe)],64)}var CZe=De(wZe,[["render",xZe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const bQ=()=>{const e=Ue(yQ,{}),t=R(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},TZe=q({name:"ElDropdownItem",components:{ElRovingFocusItem:_Ze,ElDropdownItemImpl:CZe},inheritAttrs:!1,props:mQ,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=bQ(),a=bt(),{onItemEnter:o,onItemLeave:i}=Ue(I4,void 0),s=Dr(f=>(t("pointermove",f),f.defaultPrevented),VB(f=>{if(e.disabled){i(f);return}const d=f.currentTarget;d===document.activeElement||d.contains(document.activeElement)||(o(f),f.defaultPrevented||d==null||d.focus({preventScroll:!0}))})),l=Dr(f=>(t("pointerleave",f),f.defaultPrevented),VB(i)),u=Dr(f=>{if(!e.disabled)return t("click",f),f.type!=="keydown"&&f.defaultPrevented},f=>{var d,v,h;if(e.disabled){f.stopImmediatePropagation();return}(d=r==null?void 0:r.hideOnClick)!=null&&d.value&&((v=r.handleClick)==null||v.call(r)),(h=r.commandHandler)==null||h.call(r,e.command,a,f)}),c=R(()=>({...e,...n}));return{handleClick:u,handlePointerMove:s,handlePointerLeave:l,propsAndAttrs:c}}});function kZe(e,t,n,r,a,o){const i=Ft("el-dropdown-item-impl"),s=Ft("el-roving-focus-item");return D(),de(s,{focusable:!e.disabled},{default:ee(()=>[Q(i,It(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:ee(()=>[ue(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])}var _Q=De(TZe,[["render",kZe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const MZe=q({name:"ElDropdownMenu",props:vZe,setup(e){const t=we("dropdown"),{_elDropdownSize:n}=bQ(),r=n.value,{contentRef:a,role:o,triggerId:i,isUsingKeyboard:s,handleClose:l}=Ue(I4,void 0),{rovingFocusGroupRef:u,rovingFocusGroupRootStyle:c,onBlur:f,onFocus:d,onKeydown:v,onMousedown:h}=Ue(sE,void 0),{collectionRef:p}=Ue(pQ,void 0),g=R(()=>[t.b("menu"),t.bm("menu",r==null?void 0:r.value)]),m=iE(a,u,p),y=Dr(w=>{var S;(S=e.onKeydown)==null||S.call(e,w)},w=>{const{currentTarget:S,target:x}=w,C=xn(w);if(S.contains(x),ke.tab===C)return l();v(w)});function b(w){s.value&&d(w)}return{size:r,rovingFocusGroupRootStyle:c,dropdownKls:g,role:o,triggerId:i,dropdownListWrapperRef:m,handleKeydown:y,onBlur:f,handleFocus:b,onMousedown:h}}}),AZe=["role","aria-labelledby"];function EZe(e,t,n,r,a,o){return D(),H("ul",{ref:e.dropdownListWrapperRef,class:W(e.dropdownKls),style:et(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onFocusin:t[0]||(t[0]=(...i)=>e.handleFocus&&e.handleFocus(...i)),onFocusout:t[1]||(t[1]=(...i)=>e.onBlur&&e.onBlur(...i)),onKeydown:t[2]||(t[2]=ut((...i)=>e.handleKeydown&&e.handleKeydown(...i),["self"])),onMousedown:t[3]||(t[3]=ut((...i)=>e.onMousedown&&e.onMousedown(...i),["self"]))},[ue(e.$slots,"default")],46,AZe)}var wQ=De(MZe,[["render",EZe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const IZe=_t(mZe,{DropdownItem:_Q,DropdownMenu:wQ}),LZe=Kn(_Q),DZe=Kn(wQ),PZe={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},RZe=["id"],OZe=["stop-color"],NZe=["stop-color"],BZe=["id"],VZe=["stop-color"],$Ze=["stop-color"],zZe=["id"],FZe={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},HZe={transform:"translate(-1268.000000, -535.000000)"},WZe={transform:"translate(1268.000000, 535.000000)"},GZe=["fill"],UZe=["fill"],KZe={transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},jZe=["fill"],YZe=["fill"],qZe=["fill"],XZe=["fill"],ZZe=["fill"],JZe={transform:"translate(53.000000, 45.000000)"},QZe=["fill","xlink:href"],eJe=["fill","mask"],tJe=["fill"],nJe=q({name:"ImgEmpty",__name:"img-empty",setup(e){const t=we("empty"),n=ea();return(r,a)=>(D(),H("svg",PZe,[N("defs",null,[N("linearGradient",{id:`linearGradient-1-${_(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[N("stop",{"stop-color":`var(${_(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,OZe),N("stop",{"stop-color":`var(${_(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,NZe)],8,RZe),N("linearGradient",{id:`linearGradient-2-${_(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[N("stop",{"stop-color":`var(${_(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,VZe),N("stop",{"stop-color":`var(${_(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,$Ze)],8,BZe),N("rect",{id:`path-3-${_(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,zZe)]),N("g",FZe,[N("g",HZe,[N("g",WZe,[N("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${_(t).cssVarBlockName("fill-color-3")})`},null,8,GZe),N("polygon",{fill:`var(${_(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,UZe),N("g",KZe,[N("polygon",{fill:`var(${_(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,jZe),N("polygon",{fill:`var(${_(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,YZe),N("rect",{fill:`url(#linearGradient-1-${_(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,qZe),N("polygon",{fill:`var(${_(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,XZe)]),N("rect",{fill:`url(#linearGradient-2-${_(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,ZZe),N("g",JZe,[N("use",{fill:`var(${_(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${_(n)}`},null,8,QZe),N("polygon",{fill:`var(${_(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${_(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,eJe)]),N("polygon",{fill:`var(${_(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,tJe)])])])]))}});var rJe=De(nJe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const aJe=Ie({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),oJe=["src"],iJe={key:1},sJe=q({name:"ElEmpty",__name:"empty",props:aJe,setup(e){const t=e,{t:n}=Kt(),r=we("empty"),a=R(()=>t.description||n("el.table.emptyText")),o=R(()=>({width:Un(t.imageSize)}));return(i,s)=>(D(),H("div",{class:W(_(r).b())},[N("div",{class:W(_(r).e("image")),style:et(o.value)},[i.image?(D(),H("img",{key:0,src:i.image,ondragstart:"return false"},null,8,oJe)):ue(i.$slots,"image",{key:1},()=>[Q(rJe)])],6),N("div",{class:W(_(r).e("description"))},[i.$slots.description?ue(i.$slots,"description",{key:0}):(D(),H("p",iJe,Ae(a.value),1))],2),i.$slots.default?(D(),H("div",{key:0,class:W(_(r).e("bottom"))},[ue(i.$slots,"default")],2)):le("v-if",!0)],2))}});var lJe=De(sJe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const SQ=_t(lJe),uJe=Ie({size:{type:String,values:nl},disabled:Boolean}),cJe=Ie({...uJe,model:Object,rules:{type:ne(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:ne([Object,Boolean]),default:!0}}),fJe={validate:(e,t,n)=>(Ce(e)||Ge(e))&&hn(t)&&Ge(n)};function dJe(){const e=K([]),t=R(()=>{if(!e.value.length)return"0";const o=Math.max(...e.value);return o?`${o}px`:""});function n(o){const i=e.value.indexOf(o);return i===-1&&t.value,i}function r(o,i){if(o&&i){const s=n(i);e.value.splice(s,1,o)}else o&&e.value.push(o)}function a(o){const i=n(o);i>-1&&e.value.splice(i,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:a}}const s2=(e,t)=>{const n=Hr(t).map(r=>Ce(r)?r.join("."):r);return n.length>0?e.filter(r=>r.propString&&n.includes(r.propString)):e},vJe="ElForm",hJe=q({name:vJe,__name:"form",props:cJe,emits:fJe,setup(e,{expose:t,emit:n}){const r=e,a=n,o=K(),i=sn([]),s=vr(),l=we("form"),u=R(()=>{const{labelPosition:S,inline:x}=r;return[l.b(),l.m(s.value||"default"),{[l.m(`label-${S}`)]:S,[l.m("inline")]:x}]}),c=S=>s2(i,[S])[0],f=S=>{i.push(S)},d=S=>{S.prop&&i.splice(i.indexOf(S),1)},v=(S=[])=>{r.model&&s2(i,S).forEach(x=>x.resetField())},h=(S=[])=>{s2(i,S).forEach(x=>x.clearValidate())},p=R(()=>!!r.model),g=S=>{if(i.length===0)return[];const x=s2(i,S);return x.length?x:[]},m=async S=>b(void 0,S),y=async(S=[])=>{if(!p.value)return!1;const x=g(S);if(x.length===0)return!0;let C={};for(const T of x)try{await T.validate(""),T.validateState==="error"&&!T.error&&T.resetField()}catch(M){C={...C,...M}}return Object.keys(C).length===0?!0:Promise.reject(C)},b=async(S=[],x)=>{let C=!1;const T=!Je(x);try{return C=await y(S),C===!0&&await(x==null?void 0:x(C)),C}catch(M){if(M instanceof Error)throw M;const k=M;if(r.scrollToError&&o.value){const E=o.value.querySelector(`.${l.b()}-item.is-error`);E==null||E.scrollIntoView(r.scrollIntoViewOptions)}return!C&&await(x==null?void 0:x(!1,k)),T&&Promise.reject(k)}},w=S=>{var x;const C=c(S);C&&((x=C.$el)==null||x.scrollIntoView(r.scrollIntoViewOptions))};return he(()=>r.rules,()=>{r.validateOnRuleChange&&m().catch(S=>void 0)},{deep:!0,flush:"post"}),Ut(Vd,sn({...kr(r),emit:a,resetFields:v,clearValidate:h,validateField:b,getField:c,addField:f,removeField:d,...dJe()})),t({validate:m,validateField:b,resetFields:v,clearValidate:h,scrollToField:w,getField:c,fields:i}),(S,x)=>(D(),H("form",{ref_key:"formRef",ref:o,class:W(u.value)},[ue(S.$slots,"default")],2))}});var pJe=De(hJe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function Ef(){return Ef=Object.assign?Object.assign.bind():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},Ef.apply(this,arguments)}function gJe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,om(e,t)}function pT(e){return pT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},pT(e)}function om(e,t){return om=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},om(e,t)}function mJe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function q2(e,t,n){return mJe()?q2=Reflect.construct.bind():q2=function(a,o,i){var s=[null];s.push.apply(s,o);var l=Function.bind.apply(a,s),u=new l;return i&&om(u,i.prototype),u},q2.apply(null,arguments)}function yJe(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function gT(e){var t=typeof Map=="function"?new Map:void 0;return gT=function(r){if(r===null||!yJe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return q2(r,arguments,pT(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),om(a,r)},gT(e)}var bJe=/%[sdj%]/g,_Je=function(){};typeof process<"u"&&process.env;function mT(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Co(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=0,o=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace(bJe,function(s){if(s==="%%")return"%";if(a>=o)return s;switch(s){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function wJe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function jr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||wJe(t)&&typeof e=="string"&&!e)}function SJe(e,t,n){var r=[],a=0,o=e.length;function i(s){r.push.apply(r,s||[]),a++,a===o&&n(r)}e.forEach(function(s){t(s,i)})}function xV(e,t,n){var r=0,a=e.length;function o(i){if(i&&i.length){n(i);return}var s=r;r=r+1,s<a?t(e[s],o):n([])}o([])}function xJe(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var CV=function(e){gJe(t,e);function t(n,r){var a;return a=e.call(this,"Async Validation Error")||this,a.errors=n,a.fields=r,a}return t}(gT(Error));function CJe(e,t,n,r,a){if(t.first){var o=new Promise(function(d,v){var h=function(m){return r(m),m.length?v(new CV(m,mT(m))):d(a)},p=xJe(e);xV(p,n,h)});return o.catch(function(d){return d}),o}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,c=[],f=new Promise(function(d,v){var h=function(g){if(c.push.apply(c,g),u++,u===l)return r(c),c.length?v(new CV(c,mT(c))):d(a)};s.length||(r(c),d(a)),s.forEach(function(p){var g=e[p];i.indexOf(p)!==-1?xV(g,n,h):SJe(g,n,h)})});return f.catch(function(d){return d}),f}function TJe(e){return!!(e&&e.message!==void 0)}function kJe(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function TV(e,t){return function(n){var r;return e.fullFields?r=kJe(t,e.fullFields):r=t[n.field||e.fullField],TJe(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function kV(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=Ef({},e[n],r):e[n]=r}}return e}var xQ=function(t,n,r,a,o,i){t.required&&(!r.hasOwnProperty(t.field)||jr(n,i||t.type))&&a.push(Co(o.messages.required,t.fullField))},MJe=function(t,n,r,a,o){(/^\s+$/.test(n)||n==="")&&a.push(Co(o.messages.whitespace,t.fullField))},l2,AJe=function(){if(l2)return l2;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=(`
|
||
(?:
|
||
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
||
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
||
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
||
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
||
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
||
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
||
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
||
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
||
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
||
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+a+"$)"),i=new RegExp("^"+n+"$"),s=new RegExp("^"+a+"$"),l=function(w){return w&&w.exact?o:new RegExp("(?:"+t(w)+n+t(w)+")|(?:"+t(w)+a+t(w)+")","g")};l.v4=function(b){return b&&b.exact?i:new RegExp(""+t(b)+n+t(b),"g")},l.v6=function(b){return b&&b.exact?s:new RegExp(""+t(b)+a+t(b),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,d=l.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',y="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+d+"|"+v+h+p+")"+g+m;return l2=new RegExp("(?:^"+y+"$)","i"),l2},MV={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},M0={integer:function(t){return M0.number(t)&&parseInt(t,10)===t},float:function(t){return M0.number(t)&&!M0.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!M0.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(MV.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(AJe())},hex:function(t){return typeof t=="string"&&!!t.match(MV.hex)}},EJe=function(t,n,r,a,o){if(t.required&&n===void 0){xQ(t,n,r,a,o);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?M0[s](n)||a.push(Co(o.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&a.push(Co(o.messages.types[s],t.fullField,t.type))},IJe=function(t,n,r,a,o){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,d=typeof n=="number",v=typeof n=="string",h=Array.isArray(n);if(d?f="number":v?f="string":h&&(f="array"),!f)return!1;h&&(c=n.length),v&&(c=n.replace(u,"_").length),i?c!==t.len&&a.push(Co(o.messages[f].len,t.fullField,t.len)):s&&!l&&c<t.min?a.push(Co(o.messages[f].min,t.fullField,t.min)):l&&!s&&c>t.max?a.push(Co(o.messages[f].max,t.fullField,t.max)):s&&l&&(c<t.min||c>t.max)&&a.push(Co(o.messages[f].range,t.fullField,t.min,t.max))},gv="enum",LJe=function(t,n,r,a,o){t[gv]=Array.isArray(t[gv])?t[gv]:[],t[gv].indexOf(n)===-1&&a.push(Co(o.messages[gv],t.fullField,t[gv].join(", ")))},DJe=function(t,n,r,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(Co(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||a.push(Co(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Pn={required:xQ,whitespace:MJe,type:EJe,range:IJe,enum:LJe,pattern:DJe},PJe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(jr(n,"string")&&!t.required)return r();Pn.required(t,n,a,i,o,"string"),jr(n,"string")||(Pn.type(t,n,a,i,o),Pn.range(t,n,a,i,o),Pn.pattern(t,n,a,i,o),t.whitespace===!0&&Pn.whitespace(t,n,a,i,o))}r(i)},RJe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(jr(n)&&!t.required)return r();Pn.required(t,n,a,i,o),n!==void 0&&Pn.type(t,n,a,i,o)}r(i)},OJe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),jr(n)&&!t.required)return r();Pn.required(t,n,a,i,o),n!==void 0&&(Pn.type(t,n,a,i,o),Pn.range(t,n,a,i,o))}r(i)},NJe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(jr(n)&&!t.required)return r();Pn.required(t,n,a,i,o),n!==void 0&&Pn.type(t,n,a,i,o)}r(i)},BJe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(jr(n)&&!t.required)return r();Pn.required(t,n,a,i,o),jr(n)||Pn.type(t,n,a,i,o)}r(i)},VJe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(jr(n)&&!t.required)return r();Pn.required(t,n,a,i,o),n!==void 0&&(Pn.type(t,n,a,i,o),Pn.range(t,n,a,i,o))}r(i)},$Je=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(jr(n)&&!t.required)return r();Pn.required(t,n,a,i,o),n!==void 0&&(Pn.type(t,n,a,i,o),Pn.range(t,n,a,i,o))}r(i)},zJe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Pn.required(t,n,a,i,o,"array"),n!=null&&(Pn.type(t,n,a,i,o),Pn.range(t,n,a,i,o))}r(i)},FJe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(jr(n)&&!t.required)return r();Pn.required(t,n,a,i,o),n!==void 0&&Pn.type(t,n,a,i,o)}r(i)},HJe="enum",WJe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(jr(n)&&!t.required)return r();Pn.required(t,n,a,i,o),n!==void 0&&Pn[HJe](t,n,a,i,o)}r(i)},GJe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(jr(n,"string")&&!t.required)return r();Pn.required(t,n,a,i,o),jr(n,"string")||Pn.pattern(t,n,a,i,o)}r(i)},UJe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(jr(n,"date")&&!t.required)return r();if(Pn.required(t,n,a,i,o),!jr(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Pn.type(t,l,a,i,o),l&&Pn.range(t,l.getTime(),a,i,o)}}r(i)},KJe=function(t,n,r,a,o){var i=[],s=Array.isArray(n)?"array":typeof n;Pn.required(t,n,a,i,o,s),r(i)},QS=function(t,n,r,a,o){var i=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(jr(n,i)&&!t.required)return r();Pn.required(t,n,a,s,o,i),jr(n,i)||Pn.type(t,n,a,s,o)}r(s)},jJe=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(jr(n)&&!t.required)return r();Pn.required(t,n,a,i,o)}r(i)},ng={string:PJe,method:RJe,number:OJe,boolean:NJe,regexp:BJe,integer:VJe,float:$Je,array:zJe,object:FJe,enum:WJe,pattern:GJe,date:UJe,url:QS,hex:QS,email:QS,required:KJe,any:jJe};function yT(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var bT=yT(),v1=function(){function e(n){this.rules=null,this._messages=bT,this.define(n)}var t=e.prototype;return t.define=function(r){var a=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var i=r[o];a.rules[o]=Array.isArray(i)?i:[i]})},t.messages=function(r){return r&&(this._messages=kV(yT(),r)),this._messages},t.validate=function(r,a,o){var i=this;a===void 0&&(a={}),o===void 0&&(o=function(){});var s=r,l=a,u=o;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function c(p){var g=[],m={};function y(w){if(Array.isArray(w)){var S;g=(S=g).concat.apply(S,w)}else g.push(w)}for(var b=0;b<p.length;b++)y(p[b]);g.length?(m=mT(g),u(g,m)):u(null,s)}if(l.messages){var f=this.messages();f===bT&&(f=yT()),kV(f,l.messages),l.messages=f}else l.messages=this.messages();var d={},v=l.keys||Object.keys(this.rules);v.forEach(function(p){var g=i.rules[p],m=s[p];g.forEach(function(y){var b=y;typeof b.transform=="function"&&(s===r&&(s=Ef({},s)),m=s[p]=b.transform(m)),typeof b=="function"?b={validator:b}:b=Ef({},b),b.validator=i.getValidationMethod(b),b.validator&&(b.field=p,b.fullField=b.fullField||p,b.type=i.getType(b),d[p]=d[p]||[],d[p].push({rule:b,value:m,source:s,field:p}))})});var h={};return CJe(d,l,function(p,g){var m=p.rule,y=(m.type==="object"||m.type==="array")&&(typeof m.fields=="object"||typeof m.defaultField=="object");y=y&&(m.required||!m.required&&p.value),m.field=p.field;function b(x,C){return Ef({},C,{fullField:m.fullField+"."+x,fullFields:m.fullFields?[].concat(m.fullFields,[x]):[x]})}function w(x){x===void 0&&(x=[]);var C=Array.isArray(x)?x:[x];!l.suppressWarning&&C.length&&e.warning("async-validator:",C),C.length&&m.message!==void 0&&(C=[].concat(m.message));var T=C.map(TV(m,s));if(l.first&&T.length)return h[m.field]=1,g(T);if(!y)g(T);else{if(m.required&&!p.value)return m.message!==void 0?T=[].concat(m.message).map(TV(m,s)):l.error&&(T=[l.error(m,Co(l.messages.required,m.field))]),g(T);var M={};m.defaultField&&Object.keys(p.value).map(function(A){M[A]=m.defaultField}),M=Ef({},M,p.rule.fields);var k={};Object.keys(M).forEach(function(A){var I=M[A],O=Array.isArray(I)?I:[I];k[A]=O.map(b.bind(null,A))});var E=new e(k);E.messages(l.messages),p.rule.options&&(p.rule.options.messages=l.messages,p.rule.options.error=l.error),E.validate(p.value,p.rule.options||l,function(A){var I=[];T&&T.length&&I.push.apply(I,T),A&&A.length&&I.push.apply(I,A),g(I.length?I:null)})}}var S;if(m.asyncValidator)S=m.asyncValidator(m,p.value,w,p.source,l);else if(m.validator){try{S=m.validator(m,p.value,w,p.source,l)}catch(x){console.error==null||console.error(x),l.suppressValidatorError||setTimeout(function(){throw x},0),w(x.message)}S===!0?w():S===!1?w(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||(m.fullField||m.field)+" fails"):S instanceof Array?w(S):S instanceof Error&&w(S.message)}S&&S.then&&S.then(function(){return w()},function(x){return w(x)})},function(p){c(p)},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!ng.hasOwnProperty(r.type))throw new Error(Co("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var a=Object.keys(r),o=a.indexOf("message");return o!==-1&&a.splice(o,1),a.length===1&&a[0]==="required"?ng.required:ng[this.getType(r)]||void 0},e}();v1.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ng[t]=n};v1.warning=_Je;v1.messages=bT;v1.validators=ng;const YJe=["","error","validating","success"],qJe=Ie({label:String,labelWidth:{type:[String,Number]},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:ne([String,Array])},required:{type:Boolean,default:void 0},rules:{type:ne([Object,Array])},error:String,validateStatus:{type:String,values:YJe},for:String,inlineMessage:{type:Boolean,default:void 0},showMessage:{type:Boolean,default:!0},size:{type:String,values:nl}}),AV="ElLabelWrap";var XJe=q({name:AV,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Ue(Vd,void 0),r=Ue(Zs);r||cr(AV,"usage: <el-form-item><label-wrap /></el-form-item>");const a=we("form"),o=K(),i=K(0),s=()=>{var c;if((c=o.value)!=null&&c.firstElementChild){const f=window.getComputedStyle(o.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},l=(c="update")=>{ze(()=>{t.default&&e.isAutoWidth&&(c==="update"?i.value=s():c==="remove"&&(n==null||n.deregisterLabelWidth(i.value)))})},u=()=>l("update");return Et(()=>{u()}),un(()=>{l("remove")}),Lo(()=>u()),he(i,(c,f)=>{e.updateAll&&(n==null||n.registerLabelWidth(c,f))}),On(R(()=>{var c,f;return(f=(c=o.value)==null?void 0:c.firstElementChild)!=null?f:null}),u),()=>{var c,f;if(!t)return null;const{isAutoWidth:d}=e;if(d){const v=n==null?void 0:n.autoLabelWidth,h=r==null?void 0:r.hasLabel,p={};if(h&&v&&v!=="auto"){const g=Math.max(0,Number.parseInt(v,10)-i.value),y=(r.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";g&&(p[y]=`${g}px`)}return Q("div",{ref:o,class:[a.be("item","label-wrap")],style:p},[(c=t.default)==null?void 0:c.call(t)])}else return Q(qe,{ref:o},[(f=t.default)==null?void 0:f.call(t)])}}});const ZJe=["role","aria-labelledby"],JJe=q({name:"ElFormItem",__name:"form-item",props:qJe,setup(e,{expose:t}){const n=e,r=fr(),a=Ue(Vd,void 0),o=Ue(Zs,void 0),i=vr(void 0,{formItem:!1}),s=we("form-item"),l=ea().value,u=K([]),c=K(""),f=OLe(c,100),d=K(""),v=K();let h,p=!1;const g=R(()=>n.labelPosition||(a==null?void 0:a.labelPosition)),m=R(()=>{var re;return g.value==="top"?{}:{width:Un((re=n.labelWidth)!=null?re:a==null?void 0:a.labelWidth)}}),y=R(()=>{var re;if(g.value==="top"||a!=null&&a.inline)return{};if(!n.label&&!n.labelWidth&&k)return{};const ce=Un((re=n.labelWidth)!=null?re:a==null?void 0:a.labelWidth);return!n.label&&!r.label?{marginLeft:ce}:{}}),b=R(()=>[s.b(),s.m(i.value),s.is("error",c.value==="error"),s.is("validating",c.value==="validating"),s.is("success",c.value==="success"),s.is("required",z.value||n.required),s.is("no-asterisk",a==null?void 0:a.hideRequiredAsterisk),(a==null?void 0:a.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:a==null?void 0:a.statusIcon,[s.m(`label-${g.value}`)]:g.value}]),w=R(()=>hn(n.inlineMessage)?n.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),S=R(()=>[s.e("error"),{[s.em("error","inline")]:w.value}]),x=R(()=>n.prop?Ce(n.prop)?n.prop.join("."):n.prop:""),C=R(()=>!!(n.label||r.label)),T=R(()=>{var re;return(re=n.for)!=null?re:u.value.length===1?u.value[0]:void 0}),M=R(()=>!T.value&&C.value),k=!!o,E=R(()=>{const re=a==null?void 0:a.model;if(!(!re||!n.prop))return Q0(re,n.prop).value}),A=R(()=>{const{required:re}=n,ce=[];n.rules&&ce.push(...Hr(n.rules));const ie=a==null?void 0:a.rules;if(ie&&n.prop){const Z=Q0(ie,n.prop).value;Z&&ce.push(...Hr(Z))}if(re!==void 0){const Z=ce.map((se,J)=>[se,J]).filter(([se])=>"required"in se);if(Z.length>0)for(const[se,J]of Z)se.required!==re&&(ce[J]={...se,required:re});else ce.push({required:re})}return ce}),I=R(()=>A.value.length>0),O=re=>A.value.filter(ie=>!ie.trigger||!re?!0:Ce(ie.trigger)?ie.trigger.includes(re):ie.trigger===re).map(({trigger:ie,...Z})=>Z),z=R(()=>A.value.some(re=>re.required)),$=R(()=>{var re;return f.value==="error"&&n.showMessage&&((re=a==null?void 0:a.showMessage)!=null?re:!0)}),P=R(()=>`${n.label||""}${(a==null?void 0:a.labelSuffix)||""}`),L=re=>{c.value=re},V=re=>{var ce,ie;const{errors:Z,fields:se}=re;(!Z||!se)&&console.error(re),L("error"),d.value=Z?(ie=(ce=Z==null?void 0:Z[0])==null?void 0:ce.message)!=null?ie:`${n.prop} is required`:"",a==null||a.emit("validate",n.prop,!1,d.value)},B=()=>{L("success"),a==null||a.emit("validate",n.prop,!0,"")},F=async re=>{const ce=x.value;return new v1({[ce]:re}).validate({[ce]:E.value},{firstFields:!0}).then(()=>(B(),!0)).catch(Z=>(V(Z),Promise.reject(Z)))},U=async(re,ce)=>{if(p||!n.prop)return!1;const ie=Je(ce);if(!I.value)return ce==null||ce(!1),!1;const Z=O(re);return Z.length===0?(ce==null||ce(!0),!0):(L("validating"),F(Z).then(()=>(ce==null||ce(!0),!0)).catch(se=>{const{fields:J}=se;return ce==null||ce(!1,J),ie?!1:Promise.reject(J)}))},G=()=>{L(""),d.value="",p=!1},Y=async()=>{const re=a==null?void 0:a.model;if(!re||!n.prop)return;const ce=Q0(re,n.prop);p=!0,ce.value=fB(h),await ze(),G(),p=!1},X=re=>{u.value.includes(re)||u.value.push(re)},te=re=>{u.value=u.value.filter(ce=>ce!==re)};he(()=>n.error,re=>{d.value=re||"",L(re?"error":"")},{immediate:!0}),he(()=>n.validateStatus,re=>L(re||""));const oe=sn({...kr(n),$el:v,size:i,validateMessage:d,validateState:c,labelId:l,inputIds:u,isGroup:M,hasLabel:C,fieldValue:E,addInputId:X,removeInputId:te,resetField:Y,clearValidate:G,validate:U,propString:x});return Ut(Zs,oe),Et(()=>{n.prop&&(a==null||a.addField(oe),h=fB(E.value))}),un(()=>{a==null||a.removeField(oe)}),t({size:i,validateMessage:d,validateState:c,validate:U,clearValidate:G,resetField:Y}),(re,ce)=>{var ie;return D(),H("div",{ref_key:"formItemRef",ref:v,class:W(b.value),role:M.value?"group":void 0,"aria-labelledby":M.value?_(l):void 0},[Q(_(XJe),{"is-auto-width":m.value.width==="auto","update-all":((ie=_(a))==null?void 0:ie.labelWidth)==="auto"},{default:ee(()=>[re.label||re.$slots.label?(D(),de(Tt(T.value?"label":"div"),{key:0,id:_(l),for:T.value,class:W(_(s).e("label")),style:et(m.value)},{default:ee(()=>[ue(re.$slots,"label",{label:P.value},()=>[gt(Ae(P.value),1)])]),_:3},8,["id","for","class","style"])):le("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),N("div",{class:W(_(s).e("content")),style:et(y.value)},[ue(re.$slots,"default"),Q(S5,{name:`${_(s).namespace.value}-zoom-in-top`},{default:ee(()=>[$.value?ue(re.$slots,"error",{key:0,error:d.value},()=>[N("div",{class:W(S.value)},Ae(d.value),3)]):le("v-if",!0)]),_:3},8,["name"])],6)],10,ZJe)}}});var CQ=De(JJe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const QJe=_t(pJe,{FormItem:CQ}),eQe=Kn(CQ),tQe=Ie({urlList:{type:ne(Array),default:()=>Gn([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:ne(String)}}),nQe={close:()=>!0,error:e=>e instanceof Event,switch:e=>rt(e),rotate:e=>rt(e)},rQe=["src","crossorigin"],aQe=q({name:"ElImageViewer",__name:"image-viewer",props:tQe,emits:nQe,setup(e,{expose:t,emit:n}){var r;const a={CONTAIN:{name:"contain",icon:Ts(tZ)},ORIGINAL:{name:"original",icon:Ts(uZ)}},o=e,i=n;let s;const{t:l}=Kt(),u=we("image-viewer"),{nextZIndex:c}=t1(),f=K(),d=K(),v=B$(),h=R(()=>{const{scale:ie,minScale:Z,maxScale:se}=o;return DX(ie,Z,se)}),p=K(!0),g=K(!1),m=K(!1),y=K(o.initialIndex),b=Ln(a.CONTAIN),w=K({scale:h.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),S=K((r=o.zIndex)!=null?r:c());E4(m,{ns:u});const x=R(()=>{const{urlList:ie}=o;return ie.length<=1}),C=R(()=>y.value===0),T=R(()=>y.value===o.urlList.length-1),M=R(()=>o.urlList[y.value]),k=R(()=>[u.e("btn"),u.e("prev"),u.is("disabled",!o.infinite&&C.value)]),E=R(()=>[u.e("btn"),u.e("next"),u.is("disabled",!o.infinite&&T.value)]),A=R(()=>{const{scale:ie,deg:Z,offsetX:se,offsetY:J,enableTransition:ae}=w.value;let fe=se/ie,ve=J/ie;const me=Z*Math.PI/180,pe=Math.cos(me),Ne=Math.sin(me);fe=fe*pe+ve*Ne,ve=ve*pe-se/ie*Ne;const Ee={transform:`scale(${ie}) rotate(${Z}deg) translate(${fe}px, ${ve}px)`,transition:ae?"transform .3s":""};return b.value.name===a.CONTAIN.name&&(Ee.maxWidth=Ee.maxHeight="100%"),Ee}),I=R(()=>`${y.value+1} / ${o.urlList.length}`);function O(){$(),s==null||s(),m.value=!1,i("close")}function z(){const ie=Hu(se=>{switch(xn(se)){case ke.esc:o.closeOnPressEscape&&O();break;case ke.space:U();break;case ke.left:Y();break;case ke.up:te("zoomIn");break;case ke.right:X();break;case ke.down:te("zoomOut");break}}),Z=Hu(se=>{const J=se.deltaY||se.deltaX;te(J<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});v.run(()=>{fn(document,"keydown",ie),fn(f,"wheel",Z)})}function $(){v.stop()}function P(){p.value=!1}function L(ie){g.value=!0,p.value=!1,i("error",ie),ie.target.alt=l("el.image.error")}function V(ie){if(p.value||ie.button!==0||!f.value)return;w.value.enableTransition=!1;const{offsetX:Z,offsetY:se}=w.value,J=ie.pageX,ae=ie.pageY,fe=Hu(pe=>{w.value={...w.value,offsetX:Z+pe.pageX-J,offsetY:se+pe.pageY-ae}}),ve=fn(document,"mousemove",fe),me=fn(document,"mouseup",()=>{ve(),me()});ie.preventDefault()}function B(ie){if(p.value||!f.value||ie.touches.length!==1)return;w.value.enableTransition=!1;const{offsetX:Z,offsetY:se}=w.value,{pageX:J,pageY:ae}=ie.touches[0],fe=Hu(pe=>{const Ne=pe.touches[0];w.value={...w.value,offsetX:Z+Ne.pageX-J,offsetY:se+Ne.pageY-ae}}),ve=fn(document,"touchmove",fe),me=fn(document,"touchend",()=>{ve(),me()});ie.preventDefault()}function F(){w.value={scale:h.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function U(){if(p.value||g.value)return;const ie=Jg(a),Z=Object.values(a),se=b.value.name,ae=(Z.findIndex(fe=>fe.name===se)+1)%ie.length;b.value=a[ie[ae]],F()}function G(ie){g.value=!1;const Z=o.urlList.length;y.value=(ie+Z)%Z}function Y(){C.value&&!o.infinite||G(y.value-1)}function X(){T.value&&!o.infinite||G(y.value+1)}function te(ie,Z={}){if(p.value||g.value)return;const{minScale:se,maxScale:J}=o,{zoomRate:ae,rotateDeg:fe,enableTransition:ve}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...Z};switch(ie){case"zoomOut":w.value.scale>se&&(w.value.scale=Number.parseFloat((w.value.scale/ae).toFixed(3)));break;case"zoomIn":w.value.scale<J&&(w.value.scale=Number.parseFloat((w.value.scale*ae).toFixed(3)));break;case"clockwise":w.value.deg+=fe,i("rotate",w.value.deg);break;case"anticlockwise":w.value.deg-=fe,i("rotate",w.value.deg);break}w.value.enableTransition=ve}function oe(ie){var Z;((Z=ie.detail)==null?void 0:Z.focusReason)==="pointer"&&ie.preventDefault()}function re(){o.closeOnPressEscape&&O()}function ce(ie){if(ie.ctrlKey){if(ie.deltaY<0)return ie.preventDefault(),!1;if(ie.deltaY>0)return ie.preventDefault(),!1}}return he(()=>h.value,ie=>{w.value.scale=ie}),he(M,()=>{ze(()=>{const ie=d.value;ie!=null&&ie.complete||(p.value=!0)})}),he(y,ie=>{F(),i("switch",ie)}),Et(()=>{m.value=!0,z(),s=fn("wheel",ce,{passive:!1})}),t({setActiveItem:G}),(ie,Z)=>(D(),de(_(pp),{to:"body",disabled:!ie.teleported},{default:ee(()=>[Q(Ur,{name:"viewer-fade",appear:""},{default:ee(()=>[N("div",{ref_key:"wrapper",ref:f,tabindex:-1,class:W(_(u).e("wrapper")),style:et({zIndex:S.value})},[Q(_(mp),{loop:"",trapped:"","focus-trap-el":f.value,"focus-start-el":"container",onFocusoutPrevented:oe,onReleaseRequested:re},{default:ee(()=>[N("div",{class:W(_(u).e("mask")),onClick:Z[0]||(Z[0]=ut(se=>ie.hideOnClickModal&&O(),["self"]))},null,2),le(" CLOSE "),N("span",{class:W([_(u).e("btn"),_(u).e("close")]),onClick:O},[Q(_(Xe),null,{default:ee(()=>[Q(_(Io))]),_:1})],2),le(" ARROW "),x.value?le("v-if",!0):(D(),H(qe,{key:0},[N("span",{class:W(k.value),onClick:Y},[Q(_(Xe),null,{default:ee(()=>[Q(_(Xs))]),_:1})],2),N("span",{class:W(E.value),onClick:X},[Q(_(Xe),null,{default:ee(()=>[Q(_(ca))]),_:1})],2)],64)),ie.$slots.progress||ie.showProgress?(D(),H("div",{key:1,class:W([_(u).e("btn"),_(u).e("progress")])},[ue(ie.$slots,"progress",{activeIndex:y.value,total:ie.urlList.length},()=>[gt(Ae(I.value),1)])],2)):le("v-if",!0),le(" ACTIONS "),N("div",{class:W([_(u).e("btn"),_(u).e("actions")])},[N("div",{class:W(_(u).e("actions__inner"))},[ue(ie.$slots,"toolbar",{actions:te,prev:Y,next:X,reset:U,activeIndex:y.value,setActiveItem:G},()=>[Q(_(Xe),{onClick:Z[1]||(Z[1]=se=>te("zoomOut"))},{default:ee(()=>[Q(_(pZ))]),_:1}),Q(_(Xe),{onClick:Z[2]||(Z[2]=se=>te("zoomIn"))},{default:ee(()=>[Q(_(MA))]),_:1}),N("i",{class:W(_(u).e("actions__divider"))},null,2),Q(_(Xe),{onClick:U},{default:ee(()=>[(D(),de(Tt(b.value.icon)))]),_:1}),N("i",{class:W(_(u).e("actions__divider"))},null,2),Q(_(Xe),{onClick:Z[3]||(Z[3]=se=>te("anticlockwise"))},{default:ee(()=>[Q(_(sZ))]),_:1}),Q(_(Xe),{onClick:Z[4]||(Z[4]=se=>te("clockwise"))},{default:ee(()=>[Q(_(lZ))]),_:1})])],2)],2),le(" CANVAS "),N("div",{class:W(_(u).e("canvas"))},[g.value&&ie.$slots["viewer-error"]?ue(ie.$slots,"viewer-error",{key:0,activeIndex:y.value,src:M.value}):(D(),H("img",{ref_key:"imgRef",ref:d,key:M.value,src:M.value,style:et(A.value),class:W(_(u).e("img")),crossorigin:ie.crossorigin,onLoad:P,onError:L,onMousedown:V,onTouchstart:B},null,46,rQe))],2),ue(ie.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});var oQe=De(aQe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const TQ=_t(oQe),iQe=Ie({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:ne([String,Object])},previewSrcList:{type:ne(Array),default:()=>Gn([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:ne(String)}}),sQe={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>rt(e),close:()=>!0,show:()=>!0},lQe=["src","loading","crossorigin"],uQe={key:0},cQe=q({name:"ElImage",inheritAttrs:!1,__name:"image",props:iQe,emits:sQe,setup(e,{expose:t,emit:n}){const r=e,a=n,{t:o}=Kt(),i=we("image"),s=el(),l=R(()=>Zg(Object.entries(s).filter(([P])=>/^(data-|on[A-Z])/i.test(P)||["id","style"].includes(P)))),u=S4({excludeListeners:!0,excludeKeys:R(()=>Object.keys(l.value))}),c=K(),f=K(!1),d=K(!0),v=K(!1),h=K(),p=K(),g=on&&"loading"in HTMLImageElement.prototype;let m;const y=R(()=>[i.e("inner"),w.value&&i.e("preview"),d.value&&i.is("loading")]),b=R(()=>{const{fit:P}=r;return on&&P?{objectFit:P}:{}}),w=R(()=>{const{previewSrcList:P}=r;return Ce(P)&&P.length>0}),S=R(()=>{const{previewSrcList:P,initialIndex:L}=r;let V=L;return L>P.length-1&&(V=0),V}),x=R(()=>r.loading==="eager"?!1:!g&&r.loading==="lazy"||r.lazy),C=()=>{on&&(d.value=!0,f.value=!1,c.value=r.src)};function T(P){d.value=!1,f.value=!1,a("load",P)}function M(P){d.value=!1,f.value=!0,a("error",P)}function k(P){P&&(C(),I())}const E=RX(k,200,!0);async function A(){var P;if(!on)return;await ze();const{scrollContainer:L}=r;if(oo(L))p.value=L;else if(Ge(L)&&L!=="")p.value=(P=document.querySelector(L))!=null?P:void 0;else if(h.value){const B=wA(h.value);p.value=Jm(B)?void 0:B}const{stop:V}=WLe(h,([B])=>{E(B.isIntersecting)},{root:p});m=V}function I(){!on||!E||(m==null||m(),p.value=void 0,m=void 0)}function O(){w.value&&(v.value=!0,a("show"))}function z(){v.value=!1,a("close")}function $(P){a("switch",P)}return he(()=>r.src,()=>{x.value?(d.value=!0,f.value=!1,I(),A()):C()}),Et(()=>{x.value?A():C()}),t({showPreview:O}),(P,L)=>(D(),H("div",It({ref_key:"container",ref:h},l.value,{class:[_(i).b(),P.$attrs.class]}),[f.value?ue(P.$slots,"error",{key:0},()=>[N("div",{class:W(_(i).e("error"))},Ae(_(o)("el.image.error")),3)]):(D(),H(qe,{key:1},[c.value!==void 0?(D(),H("img",It({key:0},_(u),{src:c.value,loading:P.loading,style:b.value,class:y.value,crossorigin:P.crossorigin,onClick:O,onLoad:T,onError:M}),null,16,lQe)):le("v-if",!0),d.value?(D(),H("div",{key:1,class:W(_(i).e("wrapper"))},[ue(P.$slots,"placeholder",{},()=>[N("div",{class:W(_(i).e("placeholder"))},null,2)])],2)):le("v-if",!0)],64)),w.value?(D(),H(qe,{key:2},[v.value?(D(),de(_(TQ),{key:0,"z-index":P.zIndex,"initial-index":S.value,infinite:P.infinite,"zoom-rate":P.zoomRate,"min-scale":P.minScale,"max-scale":P.maxScale,"show-progress":P.showProgress,"url-list":P.previewSrcList,scale:P.scale,crossorigin:P.crossorigin,"hide-on-click-modal":P.hideOnClickModal,teleported:P.previewTeleported,"close-on-press-escape":P.closeOnPressEscape,onClose:z,onSwitch:$},Ua({toolbar:ee(V=>[ue(P.$slots,"toolbar",Cs(Ms(V)))]),default:ee(()=>[P.$slots.viewer?(D(),H("div",uQe,[ue(P.$slots,"viewer")])):le("v-if",!0)]),_:2},[P.$slots.progress?{name:"progress",fn:ee(V=>[ue(P.$slots,"progress",Cs(Ms(V)))]),key:"0"}:void 0,P.$slots["viewer-error"]?{name:"viewer-error",fn:ee(V=>[ue(P.$slots,"viewer-error",Cs(Ms(V)))]),key:"1"}:void 0]),1032,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","show-progress","url-list","scale","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):le("v-if",!0)],64)):le("v-if",!0)],16))}});var fQe=De(cQe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const dQe=_t(fQe),vQe=Ie({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.MAX_SAFE_INTEGER},min:{type:Number,default:Number.MIN_SAFE_INTEGER},modelValue:{type:[Number,null]},readonly:Boolean,disabled:{type:Boolean,default:void 0},size:wr,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:ne([String,Number,null]),validator:e=>e===null||rt(e)||["min","max"].includes(e),default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0},...Da(["ariaLabel"]),inputmode:{type:ne(String),default:void 0},align:{type:ne(String),default:"center"},disabledScientific:Boolean}),hQe={[Ht]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[dr]:e=>rt(e)||sr(e),[dt]:e=>rt(e)||sr(e)},pQe=["aria-label"],gQe=["aria-label"],mQe=q({name:"ElInputNumber",__name:"input-number",props:vQe,emits:hQe,setup(e,{expose:t,emit:n}){const r=e,a=n,{t:o}=Kt(),i=we("input-number"),s=K(),l=sn({currentValue:r.modelValue,userInput:null}),{formItem:u}=Yr(),c=R(()=>rt(r.modelValue)&&r.modelValue<=r.min),f=R(()=>rt(r.modelValue)&&r.modelValue>=r.max),d=R(()=>{const P=y(r.step);return Jt(r.precision)?Math.max(y(r.modelValue),P):(P>r.precision,r.precision)}),v=R(()=>r.controls&&r.controlsPosition==="right"),h=vr(),p=jn(),g=R(()=>{if(l.userInput!==null)return l.userInput;let P=l.currentValue;if(sr(P))return"";if(rt(P)){if(Number.isNaN(P))return"";Jt(r.precision)||(P=P.toFixed(r.precision))}return P}),m=(P,L)=>{if(Jt(L)&&(L=d.value),L===0)return Math.round(P);let V=String(P);const B=V.indexOf(".");if(B===-1||!V.replace(".","").split("")[B+L])return P;const G=V.length;return V.charAt(G-1)==="5"&&(V=`${V.slice(0,Math.max(0,G-1))}6`),Number.parseFloat(Number(V).toFixed(L))},y=P=>{if(sr(P))return 0;const L=P.toString(),V=L.indexOf(".");let B=0;return V!==-1&&(B=L.length-V-1),B},b=(P,L=1)=>rt(P)?P>=Number.MAX_SAFE_INTEGER&&L===1||P<=Number.MIN_SAFE_INTEGER&&L===-1?P:m(P+r.step*L):l.currentValue,w=P=>{const L=xn(P),V=DZ(P);if(r.disabledScientific&&["e","E"].includes(V)){P.preventDefault();return}switch(L){case ke.up:{P.preventDefault(),S();break}case ke.down:{P.preventDefault(),x();break}}},S=()=>{if(r.readonly||p.value||f.value)return;const P=Number(g.value)||0,L=b(P);T(L),a(dr,l.currentValue),z()},x=()=>{if(r.readonly||p.value||c.value)return;const P=Number(g.value)||0,L=b(P,-1);T(L),a(dr,l.currentValue),z()},C=(P,L)=>{const{max:V,min:B,step:F,precision:U,stepStrictly:G,valueOnClear:Y}=r;V<B&&cr("InputNumber","min should not be greater than max.");let X=Number(P);if(sr(P)||Number.isNaN(X))return null;if(P===""){if(Y===null)return null;X=Ge(Y)?{min:B,max:V}[Y]:Y}return G&&(X=m(Math.round(m(X/F))*F,U),X!==P&&L&&a(dt,X)),Jt(U)||(X=m(X,U)),(X>V||X<B)&&(X=X>V?V:B,L&&a(dt,X)),X},T=(P,L=!0)=>{var V;const B=l.currentValue,F=C(P);if(!L){a(dt,F);return}l.userInput=null,!(B===F&&P)&&(a(dt,F),B!==F&&a(Ht,F,B),r.validateEvent&&((V=u==null?void 0:u.validate)==null||V.call(u,"change").catch(U=>void 0)),l.currentValue=F)},M=P=>{l.userInput=P;const L=P===""?null:Number(P);a(dr,L),T(L,!1)},k=P=>{const L=P!==""?Number(P):"";(rt(L)&&!Number.isNaN(L)||P==="")&&T(L),z(),l.userInput=null},E=()=>{var P,L;(L=(P=s.value)==null?void 0:P.focus)==null||L.call(P)},A=()=>{var P,L;(L=(P=s.value)==null?void 0:P.blur)==null||L.call(P)},I=P=>{a("focus",P)},O=P=>{var L,V;l.userInput=null,l.currentValue===null&&((L=s.value)!=null&&L.input)&&(s.value.input.value=""),a("blur",P),r.validateEvent&&((V=u==null?void 0:u.validate)==null||V.call(u,"blur").catch(B=>void 0))},z=()=>{l.currentValue!==r.modelValue&&(l.currentValue=r.modelValue)},$=P=>{document.activeElement===P.target&&P.preventDefault()};return he(()=>r.modelValue,(P,L)=>{const V=C(P,!0);l.userInput===null&&V!==L&&(l.currentValue=V)},{immediate:!0}),he(()=>r.precision,()=>{l.currentValue=C(r.modelValue)}),Et(()=>{var P;const{min:L,max:V,modelValue:B}=r,F=(P=s.value)==null?void 0:P.input;if(F.setAttribute("role","spinbutton"),Number.isFinite(V)?F.setAttribute("aria-valuemax",String(V)):F.removeAttribute("aria-valuemax"),Number.isFinite(L)?F.setAttribute("aria-valuemin",String(L)):F.removeAttribute("aria-valuemin"),F.setAttribute("aria-valuenow",l.currentValue||l.currentValue===0?String(l.currentValue):""),F.setAttribute("aria-disabled",String(p.value)),!rt(B)&&B!=null){let U=Number(B);Number.isNaN(U)&&(U=null),a(dt,U)}F.addEventListener("wheel",$,{passive:!1})}),Lo(()=>{var P,L;const V=(P=s.value)==null?void 0:P.input;V==null||V.setAttribute("aria-valuenow",`${(L=l.currentValue)!=null?L:""}`)}),t({focus:E,blur:A}),(P,L)=>(D(),H("div",{class:W([_(i).b(),_(i).m(_(h)),_(i).is("disabled",_(p)),_(i).is("without-controls",!P.controls),_(i).is("controls-right",v.value),_(i).is(P.align,!!P.align)]),onDragstart:L[0]||(L[0]=ut(()=>{},["prevent"]))},[P.controls?xt((D(),H("span",{key:0,role:"button","aria-label":_(o)("el.inputNumber.decrease"),class:W([_(i).e("decrease"),_(i).is("disabled",c.value)]),onKeydown:Wn(x,["enter"])},[ue(P.$slots,"decrease-icon",{},()=>[Q(_(Xe),null,{default:ee(()=>[v.value?(D(),de(_(Yi),{key:0})):(D(),de(_(rZ),{key:1}))]),_:1})])],42,pQe)),[[_(N_),x]]):le("v-if",!0),P.controls?xt((D(),H("span",{key:1,role:"button","aria-label":_(o)("el.inputNumber.increase"),class:W([_(i).e("increase"),_(i).is("disabled",f.value)]),onKeydown:Wn(S,["enter"])},[ue(P.$slots,"increase-icon",{},()=>[Q(_(Xe),null,{default:ee(()=>[v.value?(D(),de(_(a1),{key:0})):(D(),de(_(TA),{key:1}))]),_:1})])],42,gQe)),[[_(N_),S]]):le("v-if",!0),Q(_(ka),{id:P.id,ref_key:"input",ref:s,type:"number",step:P.step,"model-value":g.value,placeholder:P.placeholder,readonly:P.readonly,disabled:_(p),size:_(h),max:P.max,min:P.min,name:P.name,"aria-label":P.ariaLabel,"validate-event":!1,inputmode:P.inputmode,onKeydown:w,onBlur:O,onFocus:I,onInput:M,onChange:k},Ua({_:2},[P.$slots.prefix?{name:"prefix",fn:ee(()=>[ue(P.$slots,"prefix")]),key:"0"}:void 0,P.$slots.suffix?{name:"suffix",fn:ee(()=>[ue(P.$slots,"suffix")]),key:"1"}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","inputmode"])],34))}});var yQe=De(mQe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const kQ=_t(yQe),bQe=Ie({modelValue:{type:ne(Array)},max:Number,tagType:{...Zl.type,default:"info"},tagEffect:Zl.effect,trigger:{type:ne(String),default:ke.enter},draggable:Boolean,delimiter:{type:[String,RegExp],default:""},size:wr,clearable:Boolean,clearIcon:{type:pn,default:rl},disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},readonly:Boolean,autofocus:Boolean,id:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},placeholder:String,autocomplete:{type:ne(String),default:"off"},saveOnBlur:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},ariaLabel:String}),_Qe={[dt]:e=>Ce(e)||Jt(e),[Ht]:e=>Ce(e)||Jt(e),[dr]:e=>Ge(e),"add-tag":e=>Ge(e)||Ce(e),"remove-tag":(e,t)=>Ge(e)&&rt(t),"drag-tag":(e,t,n)=>rt(e)&&rt(t)&&Ge(n),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};function wQe({props:e,emit:t,formItem:n}){const r=jn(),a=vr(),o=Ln(),i=K(),s=K(),l=R(()=>["small"].includes(a.value)?"small":"default"),u=R(()=>{var z;return(z=e.modelValue)!=null&&z.length?void 0:e.placeholder}),c=R(()=>!(e.readonly||r.value)),f=R(()=>{var z,$;return Jt(e.max)?!1:(($=(z=e.modelValue)==null?void 0:z.length)!=null?$:0)>=e.max}),d=R(()=>{var z;return e.collapseTags?(z=e.modelValue)==null?void 0:z.slice(0,e.maxCollapseTags):e.modelValue}),v=R(()=>{var z;return e.collapseTags?(z=e.modelValue)==null?void 0:z.slice(e.maxCollapseTags):[]}),h=z=>{var $;const P=[...($=e.modelValue)!=null?$:[],...Hr(z)];t(dt,P),t(Ht,P),t("add-tag",z),i.value=void 0},p=z=>{var $,P;const L=z.split(e.delimiter).filter(V=>V&&V!==z);if(e.max){const V=e.max-((P=($=e.modelValue)==null?void 0:$.length)!=null?P:0);L.splice(V)}return L.length===1?L[0]:L},g=z=>{if(f.value){i.value=void 0;return}if(!E.value){if(e.delimiter&&i.value){const $=p(i.value);$.length&&h($)}t(dr,z.target.value)}},m=z=>{var $;if(E.value)return;switch(xn(z)){case e.trigger:z.preventDefault(),z.stopPropagation(),b();break;case ke.numpadEnter:e.trigger===ke.enter&&(z.preventDefault(),z.stopPropagation(),b());break;case ke.backspace:!i.value&&(($=e.modelValue)!=null&&$.length)&&(z.preventDefault(),z.stopPropagation(),w(e.modelValue.length-1));break}},y=z=>{if(E.value||!mZ())return;switch(xn(z)){case ke.space:e.trigger===ke.space&&(z.preventDefault(),z.stopPropagation(),b());break}},b=()=>{var z;const $=(z=i.value)==null?void 0:z.trim();!$||f.value||h($)},w=z=>{var $;const P=(($=e.modelValue)!=null?$:[]).slice(),[L]=P.splice(z,1);t(dt,P),t(Ht,P),t("remove-tag",L,z)},S=()=>{i.value=void 0,t(dt,void 0),t(Ht,void 0),t("clear")},x=(z,$,P)=>{var L;const V=((L=e.modelValue)!=null?L:[]).slice(),[B]=V.splice(z,1),F=$>z&&P==="before"?-1:$<z&&P==="after"?1:0;V.splice($+F,0,B),t(dt,V),t(Ht,V),t("drag-tag",z,$+F,B)},C=()=>{var z;(z=o.value)==null||z.focus()},T=()=>{var z;(z=o.value)==null||z.blur()},{wrapperRef:M,isFocused:k}=au(o,{disabled:r,beforeBlur(z){var $;return($=s.value)==null?void 0:$.isFocusInsideContent(z)},afterBlur(){var z;e.saveOnBlur?b():i.value=void 0,e.validateEvent&&((z=n==null?void 0:n.validate)==null||z.call(n,"blur").catch($=>void 0))}}),{isComposing:E,handleCompositionStart:A,handleCompositionUpdate:I,handleCompositionEnd:O}=u1({afterComposition:g});return he(()=>e.modelValue,()=>{var z;e.validateEvent&&((z=n==null?void 0:n.validate)==null||z.call(n,Ht).catch($=>void 0))}),{inputRef:o,wrapperRef:M,tagTooltipRef:s,isFocused:k,isComposing:E,inputValue:i,size:a,tagSize:l,placeholder:u,closable:c,disabled:r,inputLimit:f,showTagList:d,collapseTagList:v,handleDragged:x,handleInput:g,handleKeydown:m,handleKeyup:y,handleAddTag:b,handleRemoveTag:w,handleClear:S,handleCompositionStart:A,handleCompositionUpdate:I,handleCompositionEnd:O,focus:C,blur:T}}function SQe(){const e=K(!1);return{hovering:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}const L4=11,MQ=2;function lE(){const e=Ln(),t=K(0),n=R(()=>({minWidth:`${Math.max(t.value,L4)}px`}));return On(e,()=>{var a,o;t.value=(o=(a=e.value)==null?void 0:a.getBoundingClientRect().width)!=null?o:0}),{calculatorRef:e,calculatorWidth:t,inputStyle:n}}function xQe({wrapperRef:e,handleDragged:t,afterDragged:n}){const r=we("input-tag"),a=Ln(),o=K(!1);let i,s,l,u;function c(h){return`.${r.e("inner")} .${r.namespace.value}-tag:nth-child(${h+1})`}function f(h,p){i=p,s=e.value.querySelector(c(p)),s&&(s.style.opacity="0.5"),h.dataTransfer.effectAllowed="move"}function d(h,p){if(l=p,h.preventDefault(),h.dataTransfer.dropEffect="move",Jt(i)||i===p){o.value=!1;return}const g=e.value.querySelector(c(p)).getBoundingClientRect(),m=i+1!==p,y=i-1!==p,b=h.clientX-g.left,w=m?y?.5:1:-1,S=y?m?.5:0:1;b<=g.width*w?u="before":b>g.width*S?u="after":u=void 0;const x=e.value.querySelector(`.${r.e("inner")}`),C=x.getBoundingClientRect(),T=Number.parseFloat(Cl(x,"gap"))/2,M=g.top-C.top;let k=-9999;if(u==="before")k=Math.max(g.left-C.left-T,Math.floor(-T/2));else if(u==="after"){const E=g.right-C.left;k=E+(C.width===E?Math.floor(T/2):T)}KX(a.value,{top:`${M}px`,left:`${k}px`}),o.value=!!u}function v(h){h.preventDefault(),s&&(s.style.opacity=""),u&&!Jt(i)&&!Jt(l)&&i!==l&&t(i,l,u),o.value=!1,i=void 0,s=null,l=void 0,u=void 0,n==null||n()}return{dropIndicatorRef:a,showDropIndicator:o,handleDragStart:f,handleDragOver:d,handleDragEnd:v}}function CQe({props:e,isFocused:t,hovering:n,disabled:r,inputValue:a,size:o,validateState:i,validateIcon:s,needStatusIcon:l}){const u=el(),c=fr(),f=we("input-tag"),d=we("input"),v=K(),h=K(),p=R(()=>[f.b(),f.is("focused",t.value),f.is("hovering",n.value),f.is("disabled",r.value),f.m(o.value),f.e("wrapper"),u.class]),g=R(()=>[u.style]),m=R(()=>{var M,k;return[f.e("inner"),f.is("draggable",e.draggable),f.is("left-space",!((M=e.modelValue)!=null&&M.length)&&!c.prefix),f.is("right-space",!((k=e.modelValue)!=null&&k.length)&&!b.value)]}),y=R(()=>{var M;return e.clearable&&!r.value&&!e.readonly&&(((M=e.modelValue)==null?void 0:M.length)||a.value)&&(t.value||n.value)}),b=R(()=>c.suffix||y.value||i.value&&s.value&&l.value),w=sn({innerWidth:0,collapseItemWidth:0}),S=()=>{if(!h.value)return 0;const M=window.getComputedStyle(h.value);return Number.parseFloat(M.gap||"6px")},x=()=>{w.innerWidth=Number.parseFloat(window.getComputedStyle(h.value).width)},C=()=>{w.collapseItemWidth=v.value.getBoundingClientRect().width},T=R(()=>{if(!e.collapseTags)return{};const M=S(),k=M+L4,E=v.value&&e.maxCollapseTags===1?w.innerWidth-w.collapseItemWidth-M-k:w.innerWidth-k;return{maxWidth:`${Math.max(E,0)}px`}});return On(h,x),On(v,C),{ns:f,nsInput:d,containerKls:p,containerStyle:g,innerKls:m,showClear:y,showSuffix:b,tagStyle:T,collapseItemRef:v,innerRef:h}}const TQe=["id","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel"],kQe=["textContent"],MQe=q({name:"ElInputTag",inheritAttrs:!1,__name:"input-tag",props:bQe,emits:_Qe,setup(e,{expose:t,emit:n}){const r=e,a=n,o=S4(),i=fr(),{form:s,formItem:l}=Yr(),{inputId:u}=Ro(r,{formItemContext:l}),c=R(()=>{var Ee;return(Ee=s==null?void 0:s.statusIcon)!=null?Ee:!1}),f=R(()=>(l==null?void 0:l.validateState)||""),d=R(()=>f.value&&w4[f.value]),{inputRef:v,wrapperRef:h,tagTooltipRef:p,isFocused:g,inputValue:m,size:y,tagSize:b,placeholder:w,closable:S,disabled:x,showTagList:C,collapseTagList:T,handleDragged:M,handleInput:k,handleKeydown:E,handleKeyup:A,handleRemoveTag:I,handleClear:O,handleCompositionStart:z,handleCompositionUpdate:$,handleCompositionEnd:P,focus:L,blur:V}=wQe({props:r,emit:a,formItem:l}),{hovering:B,handleMouseEnter:F,handleMouseLeave:U}=SQe(),{calculatorRef:G,inputStyle:Y}=lE(),{dropIndicatorRef:X,showDropIndicator:te,handleDragStart:oe,handleDragOver:re,handleDragEnd:ce}=xQe({wrapperRef:h,handleDragged:M,afterDragged:L}),{ns:ie,nsInput:Z,containerKls:se,containerStyle:J,innerKls:ae,showClear:fe,showSuffix:ve,tagStyle:me,collapseItemRef:pe,innerRef:Ne}=CQe({props:r,hovering:B,isFocused:g,inputValue:m,disabled:x,size:y,validateState:f,validateIcon:d,needStatusIcon:c});return t({focus:L,blur:V}),(Ee,_e)=>(D(),H("div",{ref_key:"wrapperRef",ref:h,class:W(_(se)),style:et(_(J)),onMouseenter:_e[8]||(_e[8]=(...be)=>_(F)&&_(F)(...be)),onMouseleave:_e[9]||(_e[9]=(...be)=>_(U)&&_(U)(...be))},[_(i).prefix?(D(),H("div",{key:0,class:W(_(ie).e("prefix"))},[ue(Ee.$slots,"prefix")],2)):le("v-if",!0),N("div",{ref_key:"innerRef",ref:Ne,class:W(_(ae))},[(D(!0),H(qe,null,Wt(_(C),(be,Fe)=>(D(),de(_(Ol),{key:Fe,size:_(b),closable:_(S),type:Ee.tagType,effect:Ee.tagEffect,draggable:_(S)&&Ee.draggable,style:et(_(me)),"disable-transitions":"",onClose:Oe=>_(I)(Fe),onDragstart:Oe=>_(oe)(Oe,Fe),onDragover:Oe=>_(re)(Oe,Fe),onDragend:_(ce),onDrop:_e[0]||(_e[0]=ut(()=>{},["stop"]))},{default:ee(()=>[ue(Ee.$slots,"tag",{value:be,index:Fe},()=>[gt(Ae(be),1)])]),_:2},1032,["size","closable","type","effect","draggable","style","onClose","onDragstart","onDragover","onDragend"]))),128)),Ee.collapseTags&&Ee.modelValue&&Ee.modelValue.length>Ee.maxCollapseTags?(D(),de(_(ta),{key:0,ref_key:"tagTooltipRef",ref:p,disabled:!Ee.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:Ee.tagEffect,placement:"bottom"},{default:ee(()=>[N("div",{ref_key:"collapseItemRef",ref:pe},[Q(_(Ol),{closable:!1,size:_(b),type:Ee.tagType,effect:Ee.tagEffect,"disable-transitions":""},{default:ee(()=>[gt(" + "+Ae(Ee.modelValue.length-Ee.maxCollapseTags),1)]),_:1},8,["size","type","effect"])],512)]),content:ee(()=>[N("div",{class:W(_(ie).e("input-tag-list"))},[(D(!0),H(qe,null,Wt(_(T),(be,Fe)=>(D(),de(_(Ol),{key:Fe,size:_(b),closable:_(S),type:Ee.tagType,effect:Ee.tagEffect,"disable-transitions":"",onClose:Oe=>_(I)(Fe+Ee.maxCollapseTags)},{default:ee(()=>[ue(Ee.$slots,"tag",{value:be,index:Fe+Ee.maxCollapseTags},()=>[gt(Ae(be),1)])]),_:2},1032,["size","closable","type","effect","onClose"]))),128))],2)]),_:3},8,["disabled","effect"])):le("v-if",!0),N("div",{class:W(_(ie).e("input-wrapper"))},[xt(N("input",It({id:_(u),ref_key:"inputRef",ref:v,"onUpdate:modelValue":_e[1]||(_e[1]=be=>Dn(m)?m.value=be:null)},_(o),{type:"text",minlength:Ee.minlength,maxlength:Ee.maxlength,disabled:_(x),readonly:Ee.readonly,autocomplete:Ee.autocomplete,tabindex:Ee.tabindex,placeholder:_(w),autofocus:Ee.autofocus,ariaLabel:Ee.ariaLabel,class:_(ie).e("input"),style:_(Y),onCompositionstart:_e[2]||(_e[2]=(...be)=>_(z)&&_(z)(...be)),onCompositionupdate:_e[3]||(_e[3]=(...be)=>_($)&&_($)(...be)),onCompositionend:_e[4]||(_e[4]=(...be)=>_(P)&&_(P)(...be)),onInput:_e[5]||(_e[5]=(...be)=>_(k)&&_(k)(...be)),onKeydown:_e[6]||(_e[6]=(...be)=>_(E)&&_(E)(...be)),onKeyup:_e[7]||(_e[7]=(...be)=>_(A)&&_(A)(...be))}),null,16,TQe),[[oc,_(m)]]),N("span",{ref_key:"calculatorRef",ref:G,"aria-hidden":"true",class:W(_(ie).e("input-calculator")),textContent:Ae(_(m))},null,10,kQe)],2),xt(N("div",{ref_key:"dropIndicatorRef",ref:X,class:W(_(ie).e("drop-indicator"))},null,2),[[tn,_(te)]])],2),_(ve)?(D(),H("div",{key:1,class:W(_(ie).e("suffix"))},[ue(Ee.$slots,"suffix"),_(fe)?(D(),de(_(Xe),{key:0,class:W([_(ie).e("icon"),_(ie).e("clear")]),onMousedown:ut(_(cn),["prevent"]),onClick:_(O)},{default:ee(()=>[(D(),de(Tt(Ee.clearIcon)))]),_:1},8,["class","onMousedown","onClick"])):le("v-if",!0),f.value&&d.value&&c.value?(D(),de(_(Xe),{key:1,class:W([_(Z).e("icon"),_(Z).e("validateIcon"),_(Z).is("loading",f.value==="validating")])},{default:ee(()=>[(D(),de(Tt(d.value)))]),_:1},8,["class"])):le("v-if",!0)],2)):le("v-if",!0)],38))}});var AQe=De(MQe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-tag/src/input-tag.vue"]]);const EQe=_t(AQe),IQe=Ie({type:{type:String,values:["primary","success","warning","info","danger","default"],default:void 0},underline:{type:[Boolean,String],values:[!0,!1,"always","never","hover"],default:void 0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:pn}}),LQe={click:e=>e instanceof MouseEvent},DQe=["href","target"],PQe=q({name:"ElLink",__name:"link",props:IQe,emits:LQe,setup(e,{emit:t}){const n=e,r=t,a=hp("link");Os({scope:"el-link",from:"The underline option (boolean)",replacement:"'always' | 'hover' | 'never'",version:"3.0.0",ref:"https://element-plus.org/en-US/component/link.html#underline"},R(()=>hn(n.underline)));const o=we("link"),i=R(()=>{var u,c,f;return[o.b(),o.m((f=(c=n.type)!=null?c:(u=a.value)==null?void 0:u.type)!=null?f:"default"),o.is("disabled",n.disabled),o.is("underline",s.value==="always"),o.is("hover-underline",s.value==="hover"&&!n.disabled)]}),s=R(()=>{var u,c,f;return hn(n.underline)?n.underline?"hover":"never":(f=(c=n.underline)!=null?c:(u=a.value)==null?void 0:u.underline)!=null?f:"hover"});function l(u){n.disabled||r("click",u)}return(u,c)=>(D(),H("a",{class:W(i.value),href:u.disabled||!u.href?void 0:u.href,target:u.disabled||!u.href?void 0:u.target,onClick:l},[u.icon?(D(),de(_(Xe),{key:0},{default:ee(()=>[(D(),de(Tt(u.icon)))]),_:1})):le("v-if",!0),u.$slots.default?(D(),H("span",{key:1,class:W(_(o).e("inner"))},[ue(u.$slots,"default")],2)):le("v-if",!0),u.$slots.icon?ue(u.$slots,"icon",{key:2}):le("v-if",!0)],10,DQe))}});var RQe=De(PQe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const OQe=_t(RQe);let NQe=class{constructor(t,n){this.parent=t,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",r=>{const a=xn(r);let o=!1;switch(a){case ke.down:{this.gotoSubIndex(this.subIndex+1),o=!0;break}case ke.up:{this.gotoSubIndex(this.subIndex-1),o=!0;break}case ke.tab:{G2(t,"mouseleave");break}case ke.enter:case ke.numpadEnter:case ke.space:{o=!0,r.currentTarget.click();break}}return o&&(r.preventDefault(),r.stopPropagation()),!1})})}},BQe=class{constructor(t,n){this.domNode=t,this.submenu=null,this.submenu=null,this.init(n)}init(t){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${t}-menu`);n&&(this.submenu=new NQe(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{const n=xn(t);let r=!1;switch(n){case ke.down:{G2(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),r=!0;break}case ke.up:{G2(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),r=!0;break}case ke.tab:{G2(t.currentTarget,"mouseleave");break}case ke.enter:case ke.numpadEnter:case ke.space:{r=!0,t.currentTarget.click();break}}r&&t.preventDefault()})}},VQe=class{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(r=>{r.nodeType===1&&new BQe(r,t)})}};const $Qe=q({name:"ElMenuCollapseTransition",__name:"menu-collapse-transition",setup(e){const t=we("menu"),n={onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,a){Jo(r,`${t.namespace.value}-opacity-transition`),r.style.opacity="1",a()},onAfterEnter(r){Aa(r,`${t.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),Ds(r,t.m("collapse"))?(Aa(r,t.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Jo(r,t.m("collapse"))):(Jo(r,t.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Aa(r,t.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){Jo(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}};return(r,a)=>(D(),de(Ur,It({mode:"out-in"},n),{default:ee(()=>[ue(r.$slots,"default")]),_:3},16))}});var zQe=De($Qe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function AQ(e,t){const n=R(()=>{let a=e.parent;const o=[t.value];for(;a.type.name!=="ElMenu";)a.props.index&&o.unshift(a.props.index),a=a.parent;return o});return{parentMenu:R(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:n}}function FQe(e){return R(()=>{const n=e.backgroundColor;return n?new Ov(n).shade(20).toString():""})}const EQ=(e,t)=>{const n=we("menu");return R(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":FQe(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},uE="rootMenu",F_="subMenu:",HQe=Ie({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,popperStyle:{type:ne([String,Object])},disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:pn},expandOpenIcon:{type:pn},collapseCloseIcon:{type:pn},collapseOpenIcon:{type:pn}}),e8="ElSubMenu";var cE=q({name:e8,props:HQe,setup(e,{slots:t,expose:n}){const r=bt(),{indexPath:a,parentMenu:o}=AQ(r,R(()=>e.index)),i=we("menu"),s=we("sub-menu"),l=Ue(uE);l||cr(e8,"can not inject root menu");const u=Ue(`${F_}${o.value.uid}`);u||cr(e8,"can not inject sub menu");const c=K({}),f=K({});let d;const v=K(!1),h=K(),p=K(),g=R(()=>u.level===0),m=R(()=>T.value==="horizontal"&&g.value?"bottom-start":"right-start"),y=R(()=>T.value==="horizontal"&&g.value||T.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?x.value?e.expandOpenIcon:e.expandCloseIcon:Yi:e.collapseCloseIcon&&e.collapseOpenIcon?x.value?e.collapseOpenIcon:e.collapseCloseIcon:ca),b=R(()=>{const U=e.teleported;return Jt(U)?g.value:U}),w=R(()=>l.props.collapse?`${i.namespace.value}-zoom-in-left`:`${i.namespace.value}-zoom-in-top`),S=R(()=>T.value==="horizontal"&&g.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),x=R(()=>l.openedMenus.includes(e.index)),C=R(()=>[...Object.values(c.value),...Object.values(f.value)].some(({active:U})=>U)),T=R(()=>l.props.mode),M=R(()=>l.props.persistent),k=sn({index:e.index,indexPath:a,active:C}),E=EQ(l.props,u.level+1),A=R(()=>{var U;return(U=e.popperOffset)!=null?U:l.props.popperOffset}),I=R(()=>{var U;return(U=e.popperClass)!=null?U:l.props.popperClass}),O=R(()=>{var U;return(U=e.popperStyle)!=null?U:l.props.popperStyle}),z=R(()=>{var U;return(U=e.showTimeout)!=null?U:l.props.showTimeout}),$=R(()=>{var U;return(U=e.hideTimeout)!=null?U:l.props.hideTimeout}),P=()=>{var U,G,Y;return(Y=(G=(U=p.value)==null?void 0:U.popperRef)==null?void 0:G.popperInstanceRef)==null?void 0:Y.destroy()},L=U=>{U||P()},V=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:a.value,active:C.value})},B=(U,G=z.value)=>{var Y;if(U.type!=="focus"){if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled){u.mouseInChild.value=!0;return}u.mouseInChild.value=!0,d==null||d(),{stop:d}=Mh(()=>{l.openMenu(e.index,a.value)},G),b.value&&((Y=o.value.vnode.el)==null||Y.dispatchEvent(new MouseEvent("mouseenter"))),U.type==="mouseenter"&&U.target&&ze(()=>{l1(U.target,{preventScroll:!0})})}},F=(U=!1)=>{var G;if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"){u.mouseInChild.value=!1;return}d==null||d(),u.mouseInChild.value=!1,{stop:d}=Mh(()=>!v.value&&l.closeMenu(e.index,a.value),$.value),b.value&&U&&((G=u.handleMouseleave)==null||G.call(u,!0))};he(()=>l.props.collapse,U=>L(!!U));{const U=Y=>{f.value[Y.index]=Y},G=Y=>{delete f.value[Y.index]};Ut(`${F_}${r.uid}`,{addSubMenu:U,removeSubMenu:G,handleMouseleave:F,mouseInChild:v,level:u.level+1})}return n({opened:x}),Et(()=>{l.addSubMenu(k),u.addSubMenu(k)}),un(()=>{u.removeSubMenu(k),l.removeSubMenu(k)}),()=>{var U;const G=[(U=t.title)==null?void 0:U.call(t),ot(Xe,{class:s.e("icon-arrow"),style:{transform:x.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Ge(y.value)?ot(r.appContext.components[y.value]):ot(y.value)})],Y=l.isMenuPopup?ot(ta,{ref:p,visible:x.value,effect:"light",pure:!0,offset:A.value,showArrow:!1,persistent:M.value,popperClass:I.value,popperStyle:O.value,placement:m.value,teleported:b.value,fallbackPlacements:S.value,transition:w.value,gpuAcceleration:!1},{content:()=>{var X;return ot("div",{class:[i.m(T.value),i.m("popup-container"),I.value],onMouseenter:te=>B(te,100),onMouseleave:()=>F(!0),onFocus:te=>B(te,100)},[ot("ul",{class:[i.b(),i.m("popup"),i.m(`popup-${m.value}`)],style:E.value},[(X=t.default)==null?void 0:X.call(t)])])},default:()=>ot("div",{class:s.e("title"),onClick:V},G)}):ot(qe,{},[ot("div",{class:s.e("title"),ref:h,onClick:V},G),ot(M4,{},{default:()=>{var X;return xt(ot("ul",{role:"menu",class:[i.b(),i.m("inline")],style:E.value},[(X=t.default)==null?void 0:X.call(t)]),[[tn,x.value]])}})]);return ot("li",{class:[s.b(),s.is("active",C.value),s.is("opened",x.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:x.value,onMouseenter:B,onMouseleave:()=>F(),onFocus:B},[Y])}}});const WQe=Ie({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:ne(Array),default:()=>Gn([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:pn,default:()=>aZ},popperEffect:{type:ne(String),default:"dark"},popperClass:String,popperStyle:{type:ne([String,Object])},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),t8=e=>Ce(e)&&e.every(t=>Ge(t)),GQe={close:(e,t)=>Ge(e)&&t8(t),open:(e,t)=>Ge(e)&&t8(t),select:(e,t,n,r)=>Ge(e)&&t8(t)&&St(n)&&(Jt(r)||r instanceof Promise)},EV=64;var UQe=q({name:"ElMenu",props:WQe,emits:GQe,setup(e,{emit:t,slots:n,expose:r}){const a=bt(),o=a.appContext.config.globalProperties.$router,i=K(),s=K(),l=we("menu"),u=we("sub-menu");let c=EV;const f=K(-1),d=K(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),v=K(e.defaultActive),h=K({}),p=K({}),g=R(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),m=()=>{const P=v.value&&h.value[v.value];if(!P||e.mode==="horizontal"||e.collapse)return;P.indexPath.forEach(V=>{const B=p.value[V];B&&y(V,B.indexPath)})},y=(P,L)=>{d.value.includes(P)||(e.uniqueOpened&&(d.value=d.value.filter(V=>L.includes(V))),d.value.push(P),t("open",P,L))},b=P=>{const L=d.value.indexOf(P);L!==-1&&d.value.splice(L,1)},w=(P,L)=>{b(P),t("close",P,L)},S=({index:P,indexPath:L})=>{d.value.includes(P)?w(P,L):y(P,L)},x=P=>{(e.mode==="horizontal"||e.collapse)&&(d.value=[]);const{index:L,indexPath:V}=P;if(!(sr(L)||sr(V)))if(e.router&&o){const B=P.route||L,F=o.push(B).then(U=>(U||(v.value=L),U));t("select",L,V,{index:L,indexPath:V,route:B},F)}else v.value=L,t("select",L,V,{index:L,indexPath:V})},C=P=>{var L;const V=h.value,B=V[P]||v.value&&V[v.value]||V[e.defaultActive];v.value=(L=B==null?void 0:B.index)!=null?L:P},T=P=>{const L=getComputedStyle(P),V=Number.parseInt(L.marginLeft,10),B=Number.parseInt(L.marginRight,10);return P.offsetWidth+V+B||0},M=()=>{if(!i.value)return-1;const P=Array.from(i.value.childNodes).filter(Y=>Y.nodeName!=="#comment"&&(Y.nodeName!=="#text"||Y.nodeValue)),L=getComputedStyle(i.value),V=Number.parseInt(L.paddingLeft,10),B=Number.parseInt(L.paddingRight,10),F=i.value.clientWidth-V-B;let U=0,G=0;return P.forEach((Y,X)=>{U+=T(Y),U<=F-c&&(G=X+1)}),G===P.length?-1:G},k=P=>p.value[P].indexPath,E=(P,L=33.34)=>{let V;return()=>{V&&clearTimeout(V),V=setTimeout(()=>{P()},L)}};let A=!0;const I=()=>{const P=yr(s);if(P&&(c=T(P)||EV),f.value===M())return;const L=()=>{f.value=-1,ze(()=>{f.value=M()})};A?L():E(L)(),A=!1};he(()=>e.defaultActive,P=>{h.value[P]||(v.value=""),C(P)}),he(()=>e.collapse,P=>{P&&(d.value=[])}),he(h.value,m);let O;Ga(()=>{e.mode==="horizontal"&&e.ellipsis?O=On(i,I).stop:O==null||O()});const z=K(!1);{const P=F=>{p.value[F.index]=F},L=F=>{delete p.value[F.index]};Ut(uE,sn({props:e,openedMenus:d,items:h,subMenus:p,activeIndex:v,isMenuPopup:g,addMenuItem:F=>{h.value[F.index]=F},removeMenuItem:F=>{delete h.value[F.index]},addSubMenu:P,removeSubMenu:L,openMenu:y,closeMenu:w,handleMenuItemClick:x,handleSubMenuClick:S})),Ut(`${F_}${a.uid}`,{addSubMenu:P,removeSubMenu:L,mouseInChild:z,level:0})}Et(()=>{e.mode==="horizontal"&&new VQe(a.vnode.el,l.namespace.value)}),r({open:L=>{const{indexPath:V}=p.value[L];V.forEach(B=>y(B,V))},close:b,updateActiveIndex:C,handleResize:I});const $=EQ(e,0);return()=>{var P,L;let V=(L=(P=n.default)==null?void 0:P.call(n))!=null?L:[];const B=[];if(e.mode==="horizontal"&&i.value){const G=_i(V).filter(te=>(te==null?void 0:te.shapeFlag)!==8),Y=f.value===-1?G:G.slice(0,f.value),X=f.value===-1?[]:G.slice(f.value);X!=null&&X.length&&e.ellipsis&&(V=Y,B.push(ot(cE,{ref:s,index:"sub-menu-more",class:u.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>ot(Xe,{class:u.e("icon-more")},{default:()=>ot(e.ellipsisIcon)}),default:()=>X})))}const F=e.closeOnClickOutside?[[pc,()=>{d.value.length&&(z.value||(d.value.forEach(G=>t("close",G,k(G))),d.value=[]))}]]:[],U=xt(ot("ul",{key:String(e.collapse),role:"menubar",ref:i,style:$.value,class:{[l.b()]:!0,[l.m(e.mode)]:!0,[l.m("collapse")]:e.collapse}},[...V,...B]),F);return e.collapseTransition&&e.mode==="vertical"?ot(zQe,()=>U):U}}});const KQe=Ie({index:{type:ne([String,null]),default:null},route:{type:ne([String,Object])},disabled:Boolean}),jQe={click:e=>Ge(e.index)&&Ce(e.indexPath)},n8="ElMenuItem",YQe=q({name:n8,__name:"menu-item",props:KQe,emits:jQe,setup(e,{expose:t,emit:n}){const r=e,a=n;io(r.index)&&void 0;const o=bt(),i=Ue(uE),s=we("menu"),l=we("menu-item");i||cr(n8,"can not inject root menu");const{parentMenu:u,indexPath:c}=AQ(o,vn(r,"index")),f=Ue(`${F_}${u.value.uid}`);f||cr(n8,"can not inject sub menu");const d=R(()=>r.index===i.activeIndex),v=sn({index:r.index,indexPath:c,active:d}),h=()=>{r.disabled||(i.handleMenuItemClick({index:r.index,indexPath:c.value,route:r.route}),a("click",v))};return Et(()=>{f.addSubMenu(v),i.addMenuItem(v)}),un(()=>{f.removeSubMenu(v),i.removeMenuItem(v)}),t({parentMenu:u,rootMenu:i,active:d,nsMenu:s,nsMenuItem:l,handleClick:h}),(p,g)=>(D(),H("li",{class:W([_(l).b(),_(l).is("active",d.value),_(l).is("disabled",p.disabled)]),role:"menuitem",tabindex:"-1",onClick:h},[_(u).type.name==="ElMenu"&&_(i).props.collapse&&p.$slots.title?(D(),de(_(ta),{key:0,effect:_(i).props.popperEffect,placement:"right","fallback-placements":["left"],"popper-class":_(i).props.popperClass,"popper-style":_(i).props.popperStyle,persistent:_(i).props.persistent,"focus-on-target":""},{content:ee(()=>[ue(p.$slots,"title")]),default:ee(()=>[N("div",{class:W(_(s).be("tooltip","trigger"))},[ue(p.$slots,"default")],2)]),_:3},8,["effect","popper-class","popper-style","persistent"])):(D(),H(qe,{key:1},[ue(p.$slots,"default"),ue(p.$slots,"title")],64))],2))}});var IQ=De(YQe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const qQe={title:String},XQe=q({name:"ElMenuItemGroup",__name:"menu-item-group",props:qQe,setup(e){const t=we("menu-item-group");return(n,r)=>(D(),H("li",{class:W(_(t).b())},[N("div",{class:W(_(t).e("title"))},[n.$slots.title?ue(n.$slots,"title",{key:1}):(D(),H(qe,{key:0},[gt(Ae(n.title),1)],64))],2),N("ul",null,[ue(n.$slots,"default")])],2))}});var LQ=De(XQe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const ZQe=_t(UQe,{MenuItem:IQ,MenuItemGroup:LQ,SubMenu:cE}),JQe=Kn(IQ),QQe=Kn(LQ),eet=Kn(cE),tet=Ie({icon:{type:pn,default:()=>YX},title:String,content:{type:String,default:""}}),net={back:()=>!0},ret=["aria-label"],aet=q({name:"ElPageHeader",__name:"page-header",props:tet,emits:net,setup(e,{emit:t}){const n=t,{t:r}=Kt(),a=we("page-header");function o(){n("back")}return(i,s)=>(D(),H("div",{class:W([_(a).b(),_(a).is("contentful",!!i.$slots.default),{[_(a).m("has-breadcrumb")]:!!i.$slots.breadcrumb,[_(a).m("has-extra")]:!!i.$slots.extra}])},[i.$slots.breadcrumb?(D(),H("div",{key:0,class:W(_(a).e("breadcrumb"))},[ue(i.$slots,"breadcrumb")],2)):le("v-if",!0),N("div",{class:W(_(a).e("header"))},[N("div",{class:W(_(a).e("left"))},[N("div",{class:W(_(a).e("back")),role:"button",tabindex:"0",onClick:o},[i.icon||i.$slots.icon?(D(),H("div",{key:0,"aria-label":i.title||_(r)("el.pageHeader.title"),class:W(_(a).e("icon"))},[ue(i.$slots,"icon",{},()=>[i.icon?(D(),de(_(Xe),{key:0},{default:ee(()=>[(D(),de(Tt(i.icon)))]),_:1})):le("v-if",!0)])],10,ret)):le("v-if",!0),N("div",{class:W(_(a).e("title"))},[ue(i.$slots,"title",{},()=>[gt(Ae(i.title||_(r)("el.pageHeader.title")),1)])],2)],2),Q(_(vQ),{direction:"vertical"}),N("div",{class:W(_(a).e("content"))},[ue(i.$slots,"content",{},()=>[gt(Ae(i.content),1)])],2)],2),i.$slots.extra?(D(),H("div",{key:0,class:W(_(a).e("extra"))},[ue(i.$slots,"extra")],2)):le("v-if",!0)],2),i.$slots.default?(D(),H("div",{key:1,class:W(_(a).e("main"))},[ue(i.$slots,"default")],2)):le("v-if",!0)],2))}});var oet=De(aet,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const iet=_t(oet),DQ=Symbol("elPaginationKey"),set=Ie({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:pn}}),uet={click:e=>e instanceof MouseEvent},cet=["disabled","aria-label","aria-disabled"],fet={key:0},det=q({name:"ElPaginationPrev",__name:"prev",props:set,emits:uet,setup(e){const t=e,{t:n}=Kt(),r=R(()=>t.disabled||t.currentPage<=1);return(a,o)=>(D(),H("button",{type:"button",class:"btn-prev",disabled:r.value,"aria-label":a.prevText||_(n)("el.pagination.prev"),"aria-disabled":r.value,onClick:o[0]||(o[0]=i=>a.$emit("click",i))},[a.prevText?(D(),H("span",fet,Ae(a.prevText),1)):(D(),de(_(Xe),{key:1},{default:ee(()=>[(D(),de(Tt(a.prevIcon)))]),_:1}))],8,cet))}});var vet=De(det,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const het=Ie({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:pn}}),pet=["disabled","aria-label","aria-disabled"],get={key:0},met=q({name:"ElPaginationNext",__name:"next",props:het,emits:["click"],setup(e){const t=e,{t:n}=Kt(),r=R(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(a,o)=>(D(),H("button",{type:"button",class:"btn-next",disabled:r.value,"aria-label":a.nextText||_(n)("el.pagination.next"),"aria-disabled":r.value,onClick:o[0]||(o[0]=i=>a.$emit("click",i))},[a.nextText?(D(),H("span",get,Ae(a.nextText),1)):(D(),de(_(Xe),{key:1},{default:ee(()=>[(D(),de(Tt(a.nextIcon)))]),_:1}))],8,pet))}});var yet=De(met,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const H_={label:"label",value:"value",disabled:"disabled",options:"options"};function h1(e){const t=K({...H_,...e.props});let n={...e.props};return he(()=>e.props,s=>{Yn(s,n)||(t.value={...H_,...s},n={...s})},{deep:!0}),{aliasProps:t,getLabel:s=>ur(s,t.value.label),getValue:s=>ur(s,t.value.value),getDisabled:s=>ur(s,t.value.disabled),getOptions:s=>ur(s,t.value.options)}}const PQ=Symbol("ElSelectGroup"),p1=Symbol("ElSelect"),_T="ElOption",bet=Ie({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean}),fE=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Du=e=>Gh(e);function _et(e,t){const n=Ue(p1);n||cr(_T,"usage: <el-select><el-option /></el-select/>");const r=Ue(PQ,{disabled:!1}),a=R(()=>c(Hr(n.props.modelValue),e.value)),o=R(()=>{var v;if(n.props.multiple){const h=Hr((v=n.props.modelValue)!=null?v:[]);return!a.value&&h.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),i=R(()=>{var v;return(v=e.label)!=null?v:St(e.value)?"":e.value}),s=R(()=>e.value||e.label||""),l=R(()=>e.disabled||t.groupDisabled||o.value),u=bt(),c=(v=[],h)=>{if(St(e.value)){const p=n.props.valueKey;return v&&v.some(g=>Cn(ur(g,p))===ur(h,p))}else return v&&v.includes(h)},f=()=>{l.value||(n.states.hoveringIndex=n.optionsArray.indexOf(u.proxy))},d=v=>{const h=new RegExp(fE(v),"i");t.visible=h.test(String(i.value))||e.created};return he(()=>i.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),he(()=>e.value,(v,h)=>{const{remote:p,valueKey:g}=n.props;if((p?v!==h:!Yn(v,h))&&(n.onOptionDestroy(h,u.proxy),n.onOptionCreate(u.proxy)),!e.created&&!p){if(g&&St(v)&&St(h)&&v[g]===h[g])return;n.setSelected()}}),he(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0}),{select:n,currentLabel:i,currentValue:s,itemSelected:a,isDisabled:l,hoverItem:f,updateOption:d}}const wet=q({name:_T,componentName:_T,props:bet,setup(e){const t=we("select"),n=ea(),r=R(()=>[t.be("dropdown","item"),t.is("disabled",_(s)),t.is("selected",_(i)),t.is("hovering",_(d))]),a=sn({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:o,itemSelected:i,isDisabled:s,select:l,hoverItem:u,updateOption:c}=_et(e,a),{visible:f,hover:d}=kr(a),v=bt().proxy;l.onOptionCreate(v),un(()=>{const p=v.value;ze(()=>{const{selected:g}=l.states,m=g.some(y=>y.value===v.value);l.states.cachedOptions.get(p)===v&&!m&&l.states.cachedOptions.delete(p)}),l.onOptionDestroy(p,v)});function h(){s.value||l.handleOptionSelect(v)}return{ns:t,id:n,containerKls:r,currentLabel:o,itemSelected:i,isDisabled:s,select:l,visible:f,hover:d,states:a,hoverItem:u,updateOption:c,selectOptionClick:h}}}),xet=["id","aria-disabled","aria-selected"];function Cet(e,t,n,r,a,o){return xt((D(),H("li",{id:e.id,class:W(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:t[0]||(t[0]=(...i)=>e.hoverItem&&e.hoverItem(...i)),onClick:t[1]||(t[1]=ut((...i)=>e.selectOptionClick&&e.selectOptionClick(...i),["stop"])),onMousedown:t[2]||(t[2]=ut(()=>{},["prevent"]))},[ue(e.$slots,"default",{},()=>[N("span",null,Ae(e.currentLabel),1)])],42,xet)),[[tn,e.visible]])}var dE=De(wet,[["render",Cet],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const Tet=q({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Ue(p1),t=we("select"),n=R(()=>e.props.popperClass),r=R(()=>e.props.multiple),a=R(()=>e.props.fitInputWidth),o=K("");function i(){var s;const l=(s=e.selectRef)==null?void 0:s.offsetWidth;l?o.value=`${l-MQ}px`:o.value=""}return Et(()=>{i(),On(e.selectRef,i)}),{ns:t,minWidth:o,popperClass:n,isMultiple:r,isFitInputWidth:a}}});function ket(e,t,n,r,a,o){return D(),H("div",{class:W([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:et({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(D(),H("div",{key:0,class:W(e.ns.be("dropdown","header"))},[ue(e.$slots,"header")],2)):le("v-if",!0),ue(e.$slots,"default"),e.$slots.footer?(D(),H("div",{key:1,class:W(e.ns.be("dropdown","footer"))},[ue(e.$slots,"footer")],2)):le("v-if",!0)],6)}var Met=De(Tet,[["render",ket],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);const Aet=(e,t)=>{const{t:n}=Kt(),r=ea(),a=we("select"),o=we("input"),i=sn({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),s=K(),l=K(),u=K(),c=K(),f=K(),d=K(),v=K(),h=K(),p=K(),g=K(),m=K(),y=K(!1),b=K(),w=K(!1),{form:S,formItem:x}=Yr(),{inputId:C}=Ro(e,{formItemContext:x}),{valueOnClear:T,isEmptyValue:M}=n1(e),{isComposing:k,handleCompositionStart:E,handleCompositionUpdate:A,handleCompositionEnd:I}=u1({afterComposition:Le=>Ke(Le)}),O=jn(),{wrapperRef:z,isFocused:$,handleBlur:P}=au(f,{disabled:O,afterFocus(){e.automaticDropdown&&!y.value&&(y.value=!0,i.menuVisibleOnFocus=!0)},beforeBlur(Le){var vt,qt;return((vt=u.value)==null?void 0:vt.isFocusInsideContent(Le))||((qt=c.value)==null?void 0:qt.isFocusInsideContent(Le))},afterBlur(){var Le;y.value=!1,i.menuVisibleOnFocus=!1,e.validateEvent&&((Le=x==null?void 0:x.validate)==null||Le.call(x,"blur").catch(vt=>void 0))}}),L=R(()=>Ce(e.modelValue)?e.modelValue.length>0:!M(e.modelValue)),V=R(()=>{var Le;return(Le=S==null?void 0:S.statusIcon)!=null?Le:!1}),B=R(()=>e.clearable&&!O.value&&L.value&&($.value||i.inputHovering)),F=R(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),U=R(()=>a.is("reverse",!!(F.value&&y.value))),G=R(()=>(x==null?void 0:x.validateState)||""),Y=R(()=>G.value&&w4[G.value]),X=R(()=>e.remote?e.debounce:0),te=R(()=>e.remote&&!i.inputValue&&i.options.size===0),oe=R(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&i.inputValue&&i.options.size>0&&re.value===0?e.noMatchText||n("el.select.noMatch"):i.options.size===0?e.noDataText||n("el.select.noData"):null),re=R(()=>ce.value.filter(Le=>Le.visible).length),ce=R(()=>{const Le=Array.from(i.options.values()),vt=[];return i.optionValues.forEach(qt=>{const Nn=Le.findIndex(tr=>tr.value===qt);Nn>-1&&vt.push(Le[Nn])}),vt.length>=Le.length?vt:Le}),ie=R(()=>Array.from(i.cachedOptions.values())),Z=R(()=>{const Le=ce.value.filter(vt=>!vt.created).some(vt=>vt.currentLabel===i.inputValue);return e.filterable&&e.allowCreate&&i.inputValue!==""&&!Le}),se=()=>{e.filterable&&Je(e.filterMethod)||e.filterable&&e.remote&&Je(e.remoteMethod)||ce.value.forEach(Le=>{var vt;(vt=Le.updateOption)==null||vt.call(Le,i.inputValue)})},J=vr(),ae=R(()=>["small"].includes(J.value)?"small":"default"),fe=R({get(){return y.value&&(e.loading||!te.value)&&(!w.value||!Ha(i.previousQuery))},set(Le){y.value=Le}}),ve=R(()=>{if(e.multiple&&!Jt(e.modelValue))return Hr(e.modelValue).length===0&&!i.inputValue;const Le=Ce(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||Jt(Le)?!i.inputValue:!0}),me=R(()=>{var Le;const vt=(Le=e.placeholder)!=null?Le:n("el.select.placeholder");return e.multiple||!L.value?vt:i.selectedLabel}),pe=R(()=>D_?null:"mouseenter");he(()=>e.modelValue,(Le,vt)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(i.inputValue="",Ne("")),_e(),!Yn(Le,vt)&&e.validateEvent&&(x==null||x.validate("change").catch(qt=>void 0))},{flush:"post",deep:!0}),he(()=>y.value,Le=>{Le?Ne(i.inputValue):(i.inputValue="",i.previousQuery=null,i.isBeforeHide=!0)}),he(()=>i.options.entries(),()=>{on&&(_e(),e.defaultFirstOption&&(e.filterable||e.remote)&&re.value&&Ee())},{flush:"post"}),he([()=>i.hoveringIndex,ce],([Le])=>{rt(Le)&&Le>-1?b.value=ce.value[Le]||{}:b.value={},ce.value.forEach(vt=>{vt.hover=b.value===vt})}),Ga(()=>{i.isBeforeHide||se()});const Ne=Le=>{i.previousQuery===Le||k.value||(i.previousQuery=Le,e.filterable&&Je(e.filterMethod)?e.filterMethod(Le):e.filterable&&e.remote&&Je(e.remoteMethod)&&e.remoteMethod(Le),e.defaultFirstOption&&(e.filterable||e.remote)&&re.value?ze(Ee):ze(Fe))},Ee=()=>{const Le=ce.value.filter(tr=>tr.visible&&!tr.disabled&&!tr.states.groupDisabled),vt=Le.find(tr=>tr.created),qt=Le[0],Nn=ce.value.map(tr=>tr.value);i.hoveringIndex=ge(Nn,vt||qt)},_e=()=>{if(e.multiple)i.selectedLabel="";else{const vt=Ce(e.modelValue)?e.modelValue[0]:e.modelValue,qt=be(vt);i.selectedLabel=qt.currentLabel,i.selected=[qt];return}const Le=[];Jt(e.modelValue)||Hr(e.modelValue).forEach(vt=>{Le.push(be(vt))}),i.selected=Le},be=Le=>{let vt;const qt=Zf(Le);for(let va=i.cachedOptions.size-1;va>=0;va--){const na=ie.value[va];if(qt?ur(na.value,e.valueKey)===ur(Le,e.valueKey):na.value===Le){vt={index:ce.value.filter(sl=>!sl.created).indexOf(na),value:Le,currentLabel:na.currentLabel,get isDisabled(){return na.isDisabled}};break}}if(vt)return vt;const Nn=qt?Le.label:Le??"";return{index:-1,value:Le,currentLabel:Nn}},Fe=()=>{const Le=i.selected.length;if(Le>0){const vt=i.selected[Le-1];i.hoveringIndex=ce.value.findIndex(qt=>Pa(vt)===Pa(qt))}else i.hoveringIndex=-1},Oe=()=>{i.selectionWidth=Number.parseFloat(window.getComputedStyle(l.value).width)},Ze=()=>{i.collapseItemWidth=g.value.getBoundingClientRect().width},nt=()=>{var Le,vt;(vt=(Le=u.value)==null?void 0:Le.updatePopper)==null||vt.call(Le)},xe=()=>{var Le,vt;(vt=(Le=c.value)==null?void 0:Le.updatePopper)==null||vt.call(Le)},je=()=>{i.inputValue.length>0&&!y.value&&(y.value=!0),Ne(i.inputValue)},Ke=Le=>{if(i.inputValue=Le.target.value,e.remote)w.value=!0,en();else return je()},en=Qm(()=>{je(),w.value=!1},X),Qe=Le=>{Yn(e.modelValue,Le)||t(Ht,Le)},Ct=Le=>kX(Le,vt=>{const qt=i.cachedOptions.get(vt);return!(qt!=null&&qt.disabled)&&!(qt!=null&&qt.states.groupDisabled)}),mt=Le=>{const vt=xn(Le);if(e.multiple&&vt!==ke.delete&&Le.target.value.length<=0){const qt=Hr(e.modelValue).slice(),Nn=Ct(qt);if(Nn<0)return;const tr=qt[Nn];qt.splice(Nn,1),t(dt,qt),Qe(qt),t("remove-tag",tr)}},Nt=(Le,vt)=>{const qt=i.selected.indexOf(vt);if(qt>-1&&!O.value){const Nn=Hr(e.modelValue).slice();Nn.splice(qt,1),t(dt,Nn),Qe(Nn),t("remove-tag",vt.value)}Le.stopPropagation(),ct()},Te=Le=>{Le.stopPropagation();const vt=e.multiple?[]:T.value;if(e.multiple)for(const qt of i.selected)qt.isDisabled&&vt.push(qt.value);t(dt,vt),Qe(vt),i.hoveringIndex=-1,y.value=!1,t("clear"),ct()},He=Le=>{var vt;if(e.multiple){const qt=Hr((vt=e.modelValue)!=null?vt:[]).slice(),Nn=ge(qt,Le);Nn>-1?qt.splice(Nn,1):(e.multipleLimit<=0||qt.length<e.multipleLimit)&&qt.push(Le.value),t(dt,qt),Qe(qt),Le.created&&Ne(""),e.filterable&&!e.reserveKeyword&&(i.inputValue="")}else!Yn(e.modelValue,Le.value)&&t(dt,Le.value),Qe(Le.value),y.value=!1;ct(),!y.value&&ze(()=>{tt(Le)})},ge=(Le,vt)=>Jt(vt)?-1:St(vt.value)?Le.findIndex(qt=>Yn(ur(qt,e.valueKey),Pa(vt))):Le.indexOf(vt.value),tt=Le=>{var vt,qt,Nn,tr,va;const na=Ce(Le)?Le[Le.length-1]:Le;let Qi=null;if(!sr(na==null?void 0:na.value)){const sl=ce.value.filter($d=>$d.value===na.value);sl.length>0&&(Qi=sl[0].$el)}if(u.value&&Qi){const sl=(tr=(Nn=(qt=(vt=u.value)==null?void 0:vt.popperRef)==null?void 0:qt.contentRef)==null?void 0:Nn.querySelector)==null?void 0:tr.call(Nn,`.${a.be("dropdown","wrap")}`);sl&&SA(sl,Qi)}(va=m.value)==null||va.handleScroll()},Bt=Le=>{i.options.set(Le.value,Le),i.cachedOptions.set(Le.value,Le)},Mn=(Le,vt)=>{i.options.get(Le)===vt&&i.options.delete(Le)},Me=R(()=>{var Le,vt;return(vt=(Le=u.value)==null?void 0:Le.popperRef)==null?void 0:vt.contentRef}),Ye=()=>{i.isBeforeHide=!1,ze(()=>{var Le;(Le=m.value)==null||Le.update(),tt(i.selected)})},ct=()=>{var Le;(Le=f.value)==null||Le.focus()},Zn=()=>{var Le;if(y.value){y.value=!1,ze(()=>{var vt;return(vt=f.value)==null?void 0:vt.blur()});return}(Le=f.value)==null||Le.blur()},ho=Le=>{Te(Le)},hr=Le=>{if(y.value=!1,$.value){const vt=new FocusEvent("blur",Le);ze(()=>P(vt))}},We=()=>{i.inputValue.length>0?i.inputValue="":y.value=!1},it=Le=>{var vt;O.value||e.filterable&&y.value&&Le&&!((vt=v.value)!=null&&vt.contains(Le.target))||(D_&&(i.inputHovering=!0),i.menuVisibleOnFocus?i.menuVisibleOnFocus=!1:y.value=!y.value)},$t=()=>{if(!y.value)it();else{const Le=ce.value[i.hoveringIndex];Le&&!Le.isDisabled&&He(Le)}},Pa=Le=>St(Le.value)?ur(Le.value,e.valueKey):Le.value,Ji=R(()=>ce.value.filter(Le=>Le.visible).every(Le=>Le.isDisabled)),fi=R(()=>e.multiple?e.collapseTags?i.selected.slice(0,e.maxCollapseTags):i.selected:[]),w1=R(()=>e.multiple?e.collapseTags?i.selected.slice(e.maxCollapseTags):[]:[]),xc=Le=>{if(!y.value){y.value=!0;return}if(!(i.options.size===0||re.value===0||k.value)&&!Ji.value){Le==="next"?(i.hoveringIndex++,i.hoveringIndex===i.options.size&&(i.hoveringIndex=0)):Le==="prev"&&(i.hoveringIndex--,i.hoveringIndex<0&&(i.hoveringIndex=i.options.size-1));const vt=ce.value[i.hoveringIndex];(vt.isDisabled||!vt.visible)&&xc(Le),ze(()=>tt(b.value))}},S1=(Le,vt,qt,Nn)=>{for(let tr=vt;tr>=0&&tr<Nn;tr+=qt){const va=Le[tr];if(!(va!=null&&va.isDisabled)&&(va!=null&&va.visible))return tr}return null},il=(Le,vt)=>{var qt;const Nn=i.options.size;if(Nn===0)return;const tr=g4(Le,0,Nn-1),va=ce.value,na=vt==="up"?-1:1,Qi=(qt=S1(va,tr,na,Nn))!=null?qt:S1(va,tr-na,-na,Nn);Qi!=null&&(i.hoveringIndex=Qi,ze(()=>tt(b.value)))},z4=Le=>{const vt=xn(Le);let qt=!0;switch(vt){case ke.up:xc("prev");break;case ke.down:xc("next");break;case ke.enter:case ke.numpadEnter:k.value||$t();break;case ke.esc:We();break;case ke.backspace:qt=!1,mt(Le);return;case ke.home:if(!y.value)return;il(0,"down");break;case ke.end:if(!y.value)return;il(i.options.size-1,"up");break;case ke.pageUp:if(!y.value)return;il(i.hoveringIndex-10,"up");break;case ke.pageDown:if(!y.value)return;il(i.hoveringIndex+10,"down");break;default:qt=!1;break}qt&&(Le.preventDefault(),Le.stopPropagation())},F4=()=>{if(!l.value)return 0;const Le=window.getComputedStyle(l.value);return Number.parseFloat(Le.gap||"6px")},H4=R(()=>{const Le=F4(),vt=e.filterable?Le+L4:0;return{maxWidth:`${g.value&&e.maxCollapseTags===1?i.selectionWidth-i.collapseItemWidth-Le-vt:i.selectionWidth-vt}px`}}),W4=R(()=>({maxWidth:`${i.selectionWidth}px`})),G4=Le=>{t("popup-scroll",Le)};On(l,Oe),On(z,nt),On(p,xe),On(g,Ze);let Cc;return he(()=>fe.value,Le=>{Le?Cc=On(h,nt).stop:(Cc==null||Cc(),Cc=void 0),t("visible-change",Le)}),Et(()=>{_e()}),{inputId:C,contentId:r,nsSelect:a,nsInput:o,states:i,isFocused:$,expanded:y,optionsArray:ce,hoverOption:b,selectSize:J,filteredOptionsCount:re,updateTooltip:nt,updateTagTooltip:xe,debouncedOnInputChange:en,onInput:Ke,deletePrevTag:mt,deleteTag:Nt,deleteSelected:Te,handleOptionSelect:He,scrollToOption:tt,hasModelValue:L,shouldShowPlaceholder:ve,currentPlaceholder:me,mouseEnterEventName:pe,needStatusIcon:V,showClearBtn:B,iconComponent:F,iconReverse:U,validateState:G,validateIcon:Y,showNewOption:Z,updateOptions:se,collapseTagSize:ae,setSelected:_e,selectDisabled:O,emptyText:oe,handleCompositionStart:E,handleCompositionUpdate:A,handleCompositionEnd:I,handleKeydown:z4,onOptionCreate:Bt,onOptionDestroy:Mn,handleMenuEnter:Ye,focus:ct,blur:Zn,handleClearClick:ho,handleClickOutside:hr,handleEsc:We,toggleMenu:it,selectOption:$t,getValueKey:Pa,navigateOptions:xc,dropdownMenuVisible:fe,showTagList:fi,collapseTagList:w1,popupScroll:G4,getOption:be,tagStyle:H4,collapseTagStyle:W4,popperRef:Me,inputRef:f,tooltipRef:u,tagTooltipRef:c,prefixRef:d,suffixRef:v,selectRef:s,wrapperRef:z,selectionRef:l,scrollbarRef:m,menuRef:h,tagMenuRef:p,collapseItemRef:g}};var Eet=q({name:"ElOptions",setup(e,{slots:t}){const n=Ue(p1);let r=[];return()=>{var a,o;const i=(a=t.default)==null?void 0:a.call(t),s=[];function l(u){Ce(u)&&u.forEach(c=>{var f,d,v,h;const p=(f=(c==null?void 0:c.type)||{})==null?void 0:f.name;p==="ElOptionGroup"?l(!Ge(c.children)&&!Ce(c.children)&&Je((d=c.children)==null?void 0:d.default)?(v=c.children)==null?void 0:v.default():c.children):p==="ElOption"?s.push((h=c.props)==null?void 0:h.value):Ce(c.children)&&l(c.children)})}return i.length&&l((o=i[0])==null?void 0:o.children),Yn(s,r)||(r=s,n&&(n.states.optionValues=s)),i}}});const RQ=Ie({name:String,id:String,modelValue:{type:ne([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:wr,effect:{type:ne(String),default:"light"},disabled:{type:Boolean,default:void 0},clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:ne([String,Object])},popperOptions:{type:ne(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:ne(Function)},filterMethod:{type:ne(Function)},multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:bn.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:pn,default:rl},fitInputWidth:Boolean,suffixIcon:{type:pn,default:Yi},tagType:{...Zl.type,default:"info"},tagEffect:{...Zl.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:ne(String),values:ou,default:"bottom-start"},fallbackPlacements:{type:ne(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:bn.appendTo,options:{type:ne(Array)},props:{type:ne(Object),default:()=>H_},...Bd,...Da(["ariaLabel"])});dt+"",Ht+"",SZ.scroll;const Iet=q({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=we("select"),n=K(),r=bt(),a=K([]);Ut(PQ,sn({...kr(e)}));const o=R(()=>a.value.some(u=>u.visible===!0)),i=u=>{var c;return u.type.name==="ElOption"&&!!((c=u.component)!=null&&c.proxy)},s=u=>{const c=Hr(u),f=[];return c.forEach(d=>{var v;wn(d)&&(i(d)?f.push(d.component.proxy):Ce(d.children)&&d.children.length?f.push(...s(d.children)):(v=d.component)!=null&&v.subTree&&f.push(...s(d.component.subTree)))}),f},l=()=>{a.value=s(r.subTree)};return Et(()=>{l()}),e1(n,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:o,ns:t}}});function Let(e,t,n,r,a,o){return xt((D(),H("ul",{ref:"groupRef",class:W(e.ns.be("group","wrap"))},[N("li",{class:W(e.ns.be("group","title"))},Ae(e.label),3),N("li",null,[N("ul",{class:W(e.ns.b("group"))},[ue(e.$slots,"default")],2)])],2)),[[tn,e.visible]])}var vE=De(Iet,[["render",Let],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const IV="ElSelect",im=new WeakMap,Det=e=>(...t)=>{var n,r;const a=t[0];if(!a||a.includes('Slot "default" invoked outside of the render function')&&((n=t[2])!=null&&n.includes("ElTreeSelect")))return;const o=(r=im.get(e))==null?void 0:r.originalWarnHandler;if(o){o(...t);return}console.warn(...t)},Pet=e=>{let t=im.get(e);return t||(t={originalWarnHandler:e.config.warnHandler,handler:Det(e),count:0},im.set(e,t)),t},Ret=q({name:IV,componentName:IV,components:{ElSelectMenu:Met,ElOption:dE,ElOptions:Eet,ElOptionGroup:vE,ElTag:Ol,ElScrollbar:Ni,ElTooltip:ta,ElIcon:Xe},directives:{ClickOutside:pc},props:RQ,emits:[dt,Ht,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:t,slots:n}){const r=bt(),a=Pet(r.appContext);a.count+=1,r.appContext.config.warnHandler=a.handler;const o=R(()=>{const{modelValue:y,multiple:b}=e,w=b?[]:void 0;return Ce(y)?b?y:w:b?w:y}),i=sn({...kr(e),modelValue:o}),s=Aet(i,t),{calculatorRef:l,inputStyle:u}=lE(),{getLabel:c,getValue:f,getOptions:d,getDisabled:v}=h1(e),h=y=>({label:c(y),value:f(y),disabled:v(y)}),p=y=>y.reduce((b,w)=>(b.push(w),w.children&&w.children.length>0&&b.push(...p(w.children)),b),[]),g=y=>{_i(y||[]).forEach(w=>{var S;if(St(w)&&(w.type.name==="ElOption"||w.type.name==="ElTree")){const x=w.type.name;if(x==="ElTree"){const C=((S=w.props)==null?void 0:S.data)||[];p(C).forEach(M=>{M.currentLabel=M.label||(St(M.value)?"":M.value),s.onOptionCreate(M)})}else if(x==="ElOption"){const C={...w.props};C.currentLabel=C.label||(St(C.value)?"":C.value),s.onOptionCreate(C)}}})};he(()=>{var y;return[(y=n.default)==null?void 0:y.call(n),o.value]},()=>{var y;e.persistent||s.expanded.value||(s.states.options.clear(),g((y=n.default)==null?void 0:y.call(n)))},{immediate:!0}),Ut(p1,sn({props:i,states:s.states,selectRef:s.selectRef,optionsArray:s.optionsArray,setSelected:s.setSelected,handleOptionSelect:s.handleOptionSelect,onOptionCreate:s.onOptionCreate,onOptionDestroy:s.onOptionDestroy}));const m=R(()=>e.multiple?s.states.selected.map(y=>y.currentLabel):s.states.selectedLabel);return un(()=>{const y=im.get(r.appContext);y&&(y.count-=1,y.count<=0&&(r.appContext.config.warnHandler=y.originalWarnHandler,im.delete(r.appContext)))}),{...s,modelValue:o,selectedLabel:m,calculatorRef:l,inputStyle:u,getLabel:c,getValue:f,getOptions:d,getDisabled:v,getOptionProps:h}}}),Oet=["id","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],Net=["textContent"],Bet={key:1};function Vet(e,t,n,r,a,o){const i=Ft("el-tag"),s=Ft("el-tooltip"),l=Ft("el-icon"),u=Ft("el-option"),c=Ft("el-option-group"),f=Ft("el-options"),d=Ft("el-scrollbar"),v=Ft("el-select-menu"),h=xm("click-outside");return xt((D(),H("div",It({ref:"selectRef",class:[e.nsSelect.b(),e.nsSelect.m(e.selectSize)]},{[Fv(e.mouseEnterEventName)]:t[11]||(t[11]=p=>e.states.inputHovering=!0)},{onMouseleave:t[12]||(t[12]=p=>e.states.inputHovering=!1)}),[Q(s,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[10]||(t[10]=p=>e.states.isBeforeHide=!1)},{default:ee(()=>{var p;return[N("div",{ref:"wrapperRef",class:W([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[7]||(t[7]=ut((...g)=>e.toggleMenu&&e.toggleMenu(...g),["prevent"]))},[e.$slots.prefix?(D(),H("div",{key:0,ref:"prefixRef",class:W(e.nsSelect.e("prefix"))},[ue(e.$slots,"prefix")],2)):le("v-if",!0),N("div",{ref:"selectionRef",class:W([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?ue(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(D(!0),H(qe,null,Wt(e.showTagList,g=>(D(),H("div",{key:e.getValueKey(g),class:W(e.nsSelect.e("selected-item"))},[Q(i,{closable:!e.selectDisabled&&!g.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:et(e.tagStyle),onClose:m=>e.deleteTag(m,g)},{default:ee(()=>[N("span",{class:W(e.nsSelect.e("tags-text"))},[ue(e.$slots,"label",{index:g.index,label:g.currentLabel,value:g.value},()=>[gt(Ae(g.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(D(),de(s,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,teleported:e.teleported},{default:ee(()=>[N("div",{ref:"collapseItemRef",class:W(e.nsSelect.e("selected-item"))},[Q(i,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:et(e.collapseTagStyle)},{default:ee(()=>[N("span",{class:W(e.nsSelect.e("tags-text"))}," + "+Ae(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:ee(()=>[N("div",{ref:"tagMenuRef",class:W(e.nsSelect.e("selection"))},[(D(!0),H(qe,null,Wt(e.collapseTagList,g=>(D(),H("div",{key:e.getValueKey(g),class:W(e.nsSelect.e("selected-item"))},[Q(i,{class:"in-tooltip",closable:!e.selectDisabled&&!g.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:m=>e.deleteTag(m,g)},{default:ee(()=>[N("span",{class:W(e.nsSelect.e("tags-text"))},[ue(e.$slots,"label",{index:g.index,label:g.currentLabel,value:g.value},()=>[gt(Ae(g.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported"])):le("v-if",!0)]):le("v-if",!0),N("div",{class:W([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled)])},[xt(N("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":t[0]||(t[0]=g=>e.states.inputValue=g),type:"text",name:e.name,class:W([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:et(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((p=e.hoverOption)==null?void 0:p.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:t[1]||(t[1]=(...g)=>e.handleKeydown&&e.handleKeydown(...g)),onCompositionstart:t[2]||(t[2]=(...g)=>e.handleCompositionStart&&e.handleCompositionStart(...g)),onCompositionupdate:t[3]||(t[3]=(...g)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...g)),onCompositionend:t[4]||(t[4]=(...g)=>e.handleCompositionEnd&&e.handleCompositionEnd(...g)),onInput:t[5]||(t[5]=(...g)=>e.onInput&&e.onInput(...g)),onClick:t[6]||(t[6]=ut((...g)=>e.toggleMenu&&e.toggleMenu(...g),["stop"]))},null,46,Oet),[[oc,e.states.inputValue]]),e.filterable?(D(),H("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:W(e.nsSelect.e("input-calculator")),textContent:Ae(e.states.inputValue)},null,10,Net)):le("v-if",!0)],2),e.shouldShowPlaceholder?(D(),H("div",{key:1,class:W([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?ue(e.$slots,"label",{key:0,index:e.getOption(e.modelValue).index,label:e.currentPlaceholder,value:e.modelValue},()=>[N("span",null,Ae(e.currentPlaceholder),1)]):(D(),H("span",Bet,Ae(e.currentPlaceholder),1))],2)):le("v-if",!0)],2),N("div",{ref:"suffixRef",class:W(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClearBtn?(D(),de(l,{key:0,class:W([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:ee(()=>[(D(),de(Tt(e.iconComponent)))]),_:1},8,["class"])):le("v-if",!0),e.showClearBtn&&e.clearIcon?(D(),de(l,{key:1,class:W([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:ee(()=>[(D(),de(Tt(e.clearIcon)))]),_:1},8,["class","onClick"])):le("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(D(),de(l,{key:2,class:W([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:ee(()=>[(D(),de(Tt(e.validateIcon)))]),_:1},8,["class"])):le("v-if",!0)],2)],2)]}),content:ee(()=>[Q(v,{ref:"menuRef"},{default:ee(()=>[e.$slots.header?(D(),H("div",{key:0,class:W(e.nsSelect.be("dropdown","header")),onClick:t[8]||(t[8]=ut(()=>{},["stop"]))},[ue(e.$slots,"header")],2)):le("v-if",!0),xt(Q(d,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:W([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:ee(()=>[e.showNewOption?(D(),de(u,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):le("v-if",!0),Q(f,null,{default:ee(()=>[ue(e.$slots,"default",{},()=>[(D(!0),H(qe,null,Wt(e.options,(p,g)=>{var m;return D(),H(qe,{key:g},[(m=e.getOptions(p))!=null&&m.length?(D(),de(c,{key:0,label:e.getLabel(p),disabled:e.getDisabled(p)},{default:ee(()=>[(D(!0),H(qe,null,Wt(e.getOptions(p),y=>(D(),de(u,It({key:e.getValue(y)},{ref_for:!0},e.getOptionProps(y)),null,16))),128))]),_:2},1032,["label","disabled"])):(D(),de(u,It({key:1,ref_for:!0},e.getOptionProps(p)),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[tn,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(D(),H("div",{key:1,class:W(e.nsSelect.be("dropdown","loading"))},[ue(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(D(),H("div",{key:2,class:W(e.nsSelect.be("dropdown","empty"))},[ue(e.$slots,"empty",{},()=>[N("span",null,Ae(e.emptyText),1)])],2)):le("v-if",!0),e.$slots.footer?(D(),H("div",{key:3,class:W(e.nsSelect.be("dropdown","footer")),onClick:t[9]||(t[9]=ut(()=>{},["stop"]))},[ue(e.$slots,"footer")],2)):le("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],16)),[[h,e.handleClickOutside,e.popperRef]])}var $et=De(Ret,[["render",Vet],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const Bh=_t($et,{Option:dE,OptionGroup:vE}),W_=Kn(dE),zet=Kn(vE),hE=()=>Ue(DQ,{}),Fet=Ie({pageSize:{type:Number,required:!0},pageSizes:{type:ne(Array),default:()=>Gn([10,20,30,40,50,100])},popperClass:{type:String},popperStyle:{type:ne([String,Object])},disabled:Boolean,teleported:Boolean,size:{type:String,values:nl},appendSizeTo:String}),Het=q({name:"ElPaginationSizes",__name:"sizes",props:Fet,emits:["page-size-change"],setup(e,{emit:t}){const n=e,r=t,{t:a}=Kt(),o=we("pagination"),i=hE(),s=K(n.pageSize);he(()=>n.pageSizes,(c,f)=>{if(!Yn(c,f)&&Ce(c)){const d=c.includes(n.pageSize)?n.pageSize:n.pageSizes[0];r("page-size-change",d)}}),he(()=>n.pageSize,c=>{s.value=c});const l=R(()=>n.pageSizes);function u(c){var f;c!==s.value&&(s.value=c,(f=i.handleSizeChange)==null||f.call(i,Number(c)))}return(c,f)=>(D(),H("span",{class:W(_(o).e("sizes"))},[Q(_(Bh),{"model-value":s.value,disabled:c.disabled,"popper-class":c.popperClass,"popper-style":c.popperStyle,size:c.size,teleported:c.teleported,"validate-event":!1,"append-to":c.appendSizeTo,onChange:u},{default:ee(()=>[(D(!0),H(qe,null,Wt(l.value,d=>(D(),de(_(W_),{key:d,value:d,label:d+_(a)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","popper-style","size","teleported","append-to"])],2))}});var Wet=De(Het,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const Get=Ie({size:{type:String,values:nl}}),Uet=["disabled"],Ket=q({name:"ElPaginationJumper",__name:"jumper",props:Get,setup(e){const{t}=Kt(),n=we("pagination"),{pageCount:r,disabled:a,currentPage:o,changeEvent:i}=hE(),s=K(),l=R(()=>{var f;return(f=s.value)!=null?f:o==null?void 0:o.value});function u(f){s.value=f?+f:""}function c(f){f=Math.trunc(+f),i==null||i(f),s.value=void 0}return(f,d)=>(D(),H("span",{class:W(_(n).e("jump")),disabled:_(a)},[N("span",{class:W([_(n).e("goto")])},Ae(_(t)("el.pagination.goto")),3),Q(_(ka),{size:f.size,class:W([_(n).e("editor"),_(n).is("in-pagination")]),min:1,max:_(r),disabled:_(a),"model-value":l.value,"validate-event":!1,"aria-label":_(t)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:c},null,8,["size","class","max","disabled","model-value","aria-label"]),N("span",{class:W([_(n).e("classifier")])},Ae(_(t)("el.pagination.pageClassifier")),3)],10,Uet))}});var jet=De(Ket,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const Yet=Ie({total:{type:Number,default:1e3}}),qet=["disabled"],Xet=q({name:"ElPaginationTotal",__name:"total",props:Yet,setup(e){const{t}=Kt(),n=we("pagination"),{disabled:r}=hE();return(a,o)=>(D(),H("span",{class:W(_(n).e("total")),disabled:_(r)},Ae(_(t)("el.pagination.total",{total:a.total})),11,qet))}});var Zet=De(Xet,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const Jet=Ie({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),Qet=["aria-current","aria-label","tabindex"],ett=["tabindex","aria-label"],ttt=["aria-current","aria-label","tabindex"],ntt=["tabindex","aria-label"],rtt=["aria-current","aria-label","tabindex"],att=q({name:"ElPaginationPager",__name:"pager",props:Jet,emits:[Ht],setup(e,{emit:t}){const n=e,r=t,a=we("pager"),o=we("icon"),{t:i}=Kt(),s=K(!1),l=K(!1),u=K(!1),c=K(!1),f=K(!1),d=K(!1),v=R(()=>{const S=n.pagerCount,x=(S-1)/2,C=Number(n.currentPage),T=Number(n.pageCount);let M=!1,k=!1;T>S&&(C>S-x&&(M=!0),C<T-x&&(k=!0));const E=[];if(M&&!k){const A=T-(S-2);for(let I=A;I<T;I++)E.push(I)}else if(!M&&k)for(let A=2;A<S;A++)E.push(A);else if(M&&k){const A=Math.floor(S/2)-1;for(let I=C-A;I<=C+A;I++)E.push(I)}else for(let A=2;A<T;A++)E.push(A);return E}),h=R(()=>["more","btn-quickprev",o.b(),a.is("disabled",n.disabled)]),p=R(()=>["more","btn-quicknext",o.b(),a.is("disabled",n.disabled)]),g=R(()=>n.disabled?-1:0);he(()=>[n.pageCount,n.pagerCount,n.currentPage],([S,x,C])=>{const T=(x-1)/2;let M=!1,k=!1;S>x&&(M=C>x-T,k=C<S-T),u.value&&(u.value=M),c.value&&(c.value=k),s.value=M,l.value=k},{immediate:!0});function m(S=!1){n.disabled||(S?u.value=!0:c.value=!0)}function y(S=!1){S?f.value=!0:d.value=!0}function b(S){const x=S.target;if(x.tagName.toLowerCase()==="li"&&Array.from(x.classList).includes("number")){const C=Number(x.textContent);C!==n.currentPage&&r(Ht,C)}else x.tagName.toLowerCase()==="li"&&Array.from(x.classList).includes("more")&&w(S)}function w(S){const x=S.target;if(x.tagName.toLowerCase()==="ul"||n.disabled)return;let C=Number(x.textContent);const T=n.pageCount,M=n.currentPage,k=n.pagerCount-2;x.className.includes("more")&&(x.className.includes("quickprev")?C=M-k:x.className.includes("quicknext")&&(C=M+k)),Number.isNaN(+C)||(C<1&&(C=1),C>T&&(C=T)),C!==M&&r(Ht,C)}return(S,x)=>(D(),H("ul",{class:W(_(a).b()),onClick:w,onKeyup:Wn(b,["enter"])},[S.pageCount>0?(D(),H("li",{key:0,class:W([[_(a).is("active",S.currentPage===1),_(a).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===1,"aria-label":_(i)("el.pagination.currentPage",{pager:1}),tabindex:g.value}," 1 ",10,Qet)):le("v-if",!0),s.value?(D(),H("li",{key:1,class:W(h.value),tabindex:g.value,"aria-label":_(i)("el.pagination.prevPages",{pager:S.pagerCount-2}),onMouseenter:x[0]||(x[0]=C=>m(!0)),onMouseleave:x[1]||(x[1]=C=>u.value=!1),onFocus:x[2]||(x[2]=C=>y(!0)),onBlur:x[3]||(x[3]=C=>f.value=!1)},[(u.value||f.value)&&!S.disabled?(D(),de(_(Yl),{key:0})):(D(),de(_(eT),{key:1}))],42,ett)):le("v-if",!0),(D(!0),H(qe,null,Wt(v.value,C=>(D(),H("li",{key:C,class:W([[_(a).is("active",S.currentPage===C),_(a).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===C,"aria-label":_(i)("el.pagination.currentPage",{pager:C}),tabindex:g.value},Ae(C),11,ttt))),128)),l.value?(D(),H("li",{key:2,class:W(p.value),tabindex:g.value,"aria-label":_(i)("el.pagination.nextPages",{pager:S.pagerCount-2}),onMouseenter:x[4]||(x[4]=C=>m()),onMouseleave:x[5]||(x[5]=C=>c.value=!1),onFocus:x[6]||(x[6]=C=>y()),onBlur:x[7]||(x[7]=C=>d.value=!1)},[(c.value||d.value)&&!S.disabled?(D(),de(_(ql),{key:0})):(D(),de(_(eT),{key:1}))],42,ntt)):le("v-if",!0),S.pageCount>1?(D(),H("li",{key:3,class:W([[_(a).is("active",S.currentPage===S.pageCount),_(a).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===S.pageCount,"aria-label":_(i)("el.pagination.currentPage",{pager:S.pageCount}),tabindex:g.value},Ae(S.pageCount),11,rtt)):le("v-if",!0)],34))}});var ott=De(att,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const Oa=e=>typeof e!="number",itt=Ie({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>rt(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:ne(Array),default:()=>Gn([10,20,30,40,50,100])},popperClass:{type:String,default:""},popperStyle:{type:ne([String,Object])},prevText:{type:String,default:""},prevIcon:{type:pn,default:()=>Xs},nextText:{type:String,default:""},nextIcon:{type:pn,default:()=>ca},teleported:{type:Boolean,default:!0},small:Boolean,size:wr,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),stt={"update:current-page":e=>rt(e),"update:page-size":e=>rt(e),"size-change":e=>rt(e),change:(e,t)=>rt(e)&&rt(t),"current-change":e=>rt(e),"prev-click":e=>rt(e),"next-click":e=>rt(e)},LV="ElPagination";var ltt=q({name:LV,props:itt,emits:stt,setup(e,{emit:t,slots:n}){const{t:r}=Kt(),a=we("pagination"),o=bt().vnode.props||{},i=FX(),s=R(()=>{var S;return e.small?"small":(S=e.size)!=null?S:i.value});Os({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},R(()=>!!e.small));const l="onUpdate:currentPage"in o||"onUpdate:current-page"in o||"onCurrentChange"in o,u="onUpdate:pageSize"in o||"onUpdate:page-size"in o||"onSizeChange"in o,c=R(()=>{if(Oa(e.total)&&Oa(e.pageCount)||!Oa(e.currentPage)&&!l)return!1;if(e.layout.includes("sizes")){if(Oa(e.pageCount)){if(!Oa(e.total)&&!Oa(e.pageSize)&&!u)return!1}else if(!u)return!1}return!0}),f=K(Oa(e.defaultPageSize)?10:e.defaultPageSize),d=K(Oa(e.defaultCurrentPage)?1:e.defaultCurrentPage),v=R({get(){return Oa(e.pageSize)?f.value:e.pageSize},set(S){Oa(e.pageSize)&&(f.value=S),u&&(t("update:page-size",S),t("size-change",S))}}),h=R(()=>{let S=0;return Oa(e.pageCount)?Oa(e.total)||(S=Math.max(1,Math.ceil(e.total/v.value))):S=e.pageCount,S}),p=R({get(){return Oa(e.currentPage)?d.value:e.currentPage},set(S){let x=S;S<1?x=1:S>h.value&&(x=h.value),Oa(e.currentPage)&&(d.value=x),l&&(t("update:current-page",x),t("current-change",x))}});he(h,S=>{p.value>S&&(p.value=S)}),he([p,v],S=>{t(Ht,...S)},{flush:"post"});function g(S){p.value=S}function m(S){v.value=S;const x=h.value;p.value>x&&(p.value=x)}function y(){e.disabled||(p.value-=1,t("prev-click",p.value))}function b(){e.disabled||(p.value+=1,t("next-click",p.value))}function w(S,x){S&&(S.props||(S.props={}),S.props.class=[S.props.class,x].join(" "))}return Ut(DQ,{pageCount:h,disabled:R(()=>e.disabled),currentPage:p,changeEvent:g,handleSizeChange:m}),()=>{var S,x;if(!c.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&h.value<=1)return null;const C=[],T=[],M=ot("div",{class:a.e("rightwrapper")},T),k={prev:ot(vet,{disabled:e.disabled,currentPage:p.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:y}),jumper:ot(jet,{size:s.value}),pager:ot(ott,{currentPage:p.value,pageCount:h.value,pagerCount:e.pagerCount,onChange:g,disabled:e.disabled}),next:ot(yet,{disabled:e.disabled,currentPage:p.value,pageCount:h.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:b}),sizes:ot(Wet,{pageSize:v.value,pageSizes:e.pageSizes,popperClass:e.popperClass,popperStyle:e.popperStyle,disabled:e.disabled,teleported:e.teleported,size:s.value,appendSizeTo:e.appendSizeTo}),slot:(x=(S=n==null?void 0:n.default)==null?void 0:S.call(n))!=null?x:null,total:ot(Zet,{total:Oa(e.total)?0:e.total})},E=e.layout.split(",").map(I=>I.trim());let A=!1;return E.forEach(I=>{if(I==="->"){A=!0;return}A?T.push(k[I]):C.push(k[I])}),w(C[0],a.is("first")),w(C[C.length-1],a.is("last")),A&&T.length>0&&(w(T[0],a.is("first")),w(T[T.length-1],a.is("last")),C.push(M)),ot("div",{class:[a.b(),a.is("background",e.background),a.m(s.value)]},C)}}});const utt=_t(ltt),ctt=Ie({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:rT,default:"primary"},cancelButtonType:{type:String,values:rT,default:"text"},icon:{type:pn,default:()=>iZ},iconColor:{type:String,default:"#f90"},hideIcon:Boolean,hideAfter:{type:Number,default:200},effect:{...bn.effect,default:"light"},teleported:bn.teleported,persistent:bn.persistent,width:{type:[String,Number],default:150},virtualTriggering:Rs.virtualTriggering,virtualRef:Rs.virtualRef}),ftt={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},dtt=q({name:"ElPopconfirm",__name:"popconfirm",props:ctt,emits:ftt,setup(e,{expose:t,emit:n}){const r=e,a=n,{t:o}=Kt(),i=we("popconfirm"),s=K(),l=K(),u=R(()=>{var m;return(m=_(s))==null?void 0:m.popperRef}),c=()=>{var m,y;(y=(m=l.value)==null?void 0:m.focus)==null||y.call(m)},f=()=>{var m,y;(y=(m=s.value)==null?void 0:m.onClose)==null||y.call(m)},d=R(()=>({width:Un(r.width)})),v=m=>{a("confirm",m),f()},h=m=>{a("cancel",m),f()},p=R(()=>r.confirmButtonText||o("el.popconfirm.confirmButtonText")),g=R(()=>r.cancelButtonText||o("el.popconfirm.cancelButtonText"));return t({popperRef:u,hide:f}),(m,y)=>(D(),de(_(ta),It({ref_key:"tooltipRef",ref:s,trigger:"click",effect:m.effect},m.$attrs,{"virtual-triggering":m.virtualTriggering,"virtual-ref":m.virtualRef,"popper-class":`${_(i).namespace.value}-popover`,"popper-style":d.value,teleported:m.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":m.hideAfter,persistent:m.persistent,loop:"",onShow:c}),{content:ee(()=>[N("div",{ref_key:"rootRef",ref:l,tabindex:"-1",class:W(_(i).b())},[N("div",{class:W(_(i).e("main"))},[!m.hideIcon&&m.icon?(D(),de(_(Xe),{key:0,class:W(_(i).e("icon")),style:et({color:m.iconColor})},{default:ee(()=>[(D(),de(Tt(m.icon)))]),_:1},8,["class","style"])):le("v-if",!0),gt(" "+Ae(m.title),1)],2),N("div",{class:W(_(i).e("action"))},[ue(m.$slots,"actions",{confirm:v,cancel:h},()=>[Q(_(Gr),{size:"small",type:m.cancelButtonType==="text"?"":m.cancelButtonType,text:m.cancelButtonType==="text",onClick:h},{default:ee(()=>[gt(Ae(g.value),1)]),_:1},8,["type","text"]),Q(_(Gr),{size:"small",type:m.confirmButtonType==="text"?"":m.confirmButtonType,text:m.confirmButtonType==="text",onClick:v},{default:ee(()=>[gt(Ae(p.value),1)]),_:1},8,["type","text"])])],2)],2)]),default:ee(()=>[m.$slots.reference?ue(m.$slots,"reference",{key:0}):le("v-if",!0)]),_:3},16,["effect","virtual-triggering","virtual-ref","popper-class","popper-style","teleported","hide-after","persistent"]))}});var vtt=De(dtt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const htt=_t(vtt),ptt=Ie({trigger:Rs.trigger,triggerKeys:Rs.triggerKeys,placement:Y2.placement,disabled:Rs.disabled,visible:bn.visible,transition:bn.transition,popperOptions:Y2.popperOptions,tabindex:Y2.tabindex,content:bn.content,popperStyle:bn.popperStyle,popperClass:bn.popperClass,enterable:{...bn.enterable,default:!0},effect:{...bn.effect,default:"light"},teleported:bn.teleported,appendTo:bn.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),gtt={"update:visible":e=>hn(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},mtt="onUpdate:visible",ytt=q({name:"ElPopover",__name:"popover",props:ptt,emits:gtt,setup(e,{expose:t,emit:n}){const r=e,a=n,o=R(()=>r[mtt]),i=we("popover"),s=K(),l=R(()=>{var m;return(m=_(s))==null?void 0:m.popperRef}),u=R(()=>[{width:Un(r.width)},r.popperStyle]),c=R(()=>[i.b(),r.popperClass,{[i.m("plain")]:!!r.content}]),f=R(()=>r.transition===`${i.namespace.value}-fade-in-linear`),d=()=>{var m;(m=s.value)==null||m.hide()},v=()=>{a("before-enter")},h=()=>{a("before-leave")},p=()=>{a("after-enter")},g=()=>{a("update:visible",!1),a("after-leave")};return t({popperRef:l,hide:d}),(m,y)=>(D(),de(_(ta),It({ref_key:"tooltipRef",ref:s},m.$attrs,{trigger:m.trigger,"trigger-keys":m.triggerKeys,placement:m.placement,disabled:m.disabled,visible:m.visible,transition:m.transition,"popper-options":m.popperOptions,tabindex:m.tabindex,content:m.content,offset:m.offset,"show-after":m.showAfter,"hide-after":m.hideAfter,"auto-close":m.autoClose,"show-arrow":m.showArrow,"aria-label":m.title,effect:m.effect,enterable:m.enterable,"popper-class":c.value,"popper-style":u.value,teleported:m.teleported,"append-to":m.appendTo,persistent:m.persistent,"gpu-acceleration":f.value,"onUpdate:visible":o.value,onBeforeShow:v,onBeforeHide:h,onShow:p,onHide:g}),{content:ee(()=>[m.title?(D(),H("div",{key:0,class:W(_(i).e("title")),role:"title"},Ae(m.title),3)):le("v-if",!0),ue(m.$slots,"default",{},()=>[gt(Ae(m.content),1)])]),default:ee(()=>[m.$slots.reference?ue(m.$slots,"reference",{key:0}):le("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}});var btt=De(ytt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const DV=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var _tt={mounted(e,t){DV(e,t)},updated(e,t){DV(e,t)}};const wtt="popover",OQ=rDe(_tt,wtt),Stt=_t(btt,{directive:OQ}),xtt=Ie({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:ne(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:ne([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:ne(Function),default:e=>`${e}%`}}),Ctt=["aria-valuenow"],Ttt={viewBox:"0 0 100 100"},ktt=["d","stroke","stroke-linecap","stroke-width"],Mtt=["d","stroke","opacity","stroke-linecap","stroke-width"],Att={key:0},Ett=q({name:"ElProgress",__name:"progress",props:xtt,setup(e){const t={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},n=e,r=we("progress"),a=R(()=>{const b={width:`${n.percentage}%`,animationDuration:`${n.duration}s`},w=y(n.percentage);return w.includes("gradient")?b.background=w:b.backgroundColor=w,b}),o=R(()=>(n.strokeWidth/n.width*100).toFixed(1)),i=R(()=>["circle","dashboard"].includes(n.type)?Number.parseInt(`${50-Number.parseFloat(o.value)/2}`,10):0),s=R(()=>{const b=i.value,w=n.type==="dashboard";return`
|
||
M 50 50
|
||
m 0 ${w?"":"-"}${b}
|
||
a ${b} ${b} 0 1 1 0 ${w?"-":""}${b*2}
|
||
a ${b} ${b} 0 1 1 0 ${w?"":"-"}${b*2}
|
||
`}),l=R(()=>2*Math.PI*i.value),u=R(()=>n.type==="dashboard"?.75:1),c=R(()=>`${-1*l.value*(1-u.value)/2}px`),f=R(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:c.value})),d=R(()=>({strokeDasharray:`${l.value*u.value*(n.percentage/100)}px, ${l.value}px`,strokeDashoffset:c.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),v=R(()=>{let b;return n.color?b=y(n.percentage):b=t[n.status]||t.default,b}),h=R(()=>n.status==="warning"?i1:n.type==="line"?n.status==="success"?o1:rl:n.status==="success"?gp:Io),p=R(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),g=R(()=>n.format(n.percentage));function m(b){const w=100/b.length;return b.map((x,C)=>Ge(x)?{color:x,percentage:(C+1)*w}:x).sort((x,C)=>x.percentage-C.percentage)}const y=b=>{var w;const{color:S}=n;if(Je(S))return S(b);if(Ge(S))return S;{const x=m(S);for(const C of x)if(C.percentage>b)return C.color;return(w=x[x.length-1])==null?void 0:w.color}};return(b,w)=>(D(),H("div",{class:W([_(r).b(),_(r).m(b.type),_(r).is(b.status),{[_(r).m("without-text")]:!b.showText,[_(r).m("text-inside")]:b.textInside}]),role:"progressbar","aria-valuenow":b.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[b.type==="line"?(D(),H("div",{key:0,class:W(_(r).b("bar"))},[N("div",{class:W(_(r).be("bar","outer")),style:et({height:`${b.strokeWidth}px`})},[N("div",{class:W([_(r).be("bar","inner"),{[_(r).bem("bar","inner","indeterminate")]:b.indeterminate},{[_(r).bem("bar","inner","striped")]:b.striped},{[_(r).bem("bar","inner","striped-flow")]:b.stripedFlow}]),style:et(a.value)},[(b.showText||b.$slots.default)&&b.textInside?(D(),H("div",{key:0,class:W(_(r).be("bar","innerText"))},[ue(b.$slots,"default",{percentage:b.percentage},()=>[N("span",null,Ae(g.value),1)])],2)):le("v-if",!0)],6)],6)],2)):(D(),H("div",{key:1,class:W(_(r).b("circle")),style:et({height:`${b.width}px`,width:`${b.width}px`})},[(D(),H("svg",Ttt,[N("path",{class:W(_(r).be("circle","track")),d:s.value,stroke:`var(${_(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":b.strokeLinecap,"stroke-width":o.value,fill:"none",style:et(f.value)},null,14,ktt),N("path",{class:W(_(r).be("circle","path")),d:s.value,stroke:v.value,fill:"none",opacity:b.percentage?1:0,"stroke-linecap":b.strokeLinecap,"stroke-width":o.value,style:et(d.value)},null,14,Mtt)]))],6)),(b.showText||b.$slots.default)&&!b.textInside?(D(),H("div",{key:2,class:W(_(r).e("text")),style:et({fontSize:`${p.value}px`})},[ue(b.$slots,"default",{percentage:b.percentage},()=>[b.status?(D(),de(_(Xe),{key:1},{default:ee(()=>[(D(),de(Tt(h.value)))]),_:1})):(D(),H("span",Att,Ae(g.value),1))])],6)):le("v-if",!0)],10,Ctt))}});var Itt=De(Ett,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const NQ=_t(Itt),Ltt=Ie({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:ne([Array,Object]),default:()=>Gn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:ne([Array,Object]),default:()=>[k0,k0,k0]},voidIcon:{type:pn,default:()=>vZ},disabledVoidIcon:{type:pn,default:()=>k0},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:ne(Array),default:()=>Gn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:wr,clearable:Boolean,...Da(["ariaLabel"])}),Dtt={[Ht]:e=>rt(e),[dt]:e=>rt(e)},Ptt=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],Rtt=["onMousemove","onClick"],Ott=q({name:"ElRate",__name:"rate",props:Ltt,emits:Dtt,setup(e,{expose:t,emit:n}){function r(L,V){const B=G=>St(G),F=Object.keys(V).map(G=>+G).filter(G=>{const Y=V[G];return(B(Y)?Y.excluded:!1)?L<G:L<=G}).sort((G,Y)=>G-Y),U=V[F[0]];return B(U)&&U.value||U}const a=e,o=n,i=Ue(Zs,void 0),s=vr(),l=we("rate"),{inputId:u,isLabeledByFormItem:c}=Ro(a,{formItemContext:i}),f=K(a.modelValue),d=K(-1),v=K(!0),h=K([]),p=R(()=>h.value.map(L=>L.$el.clientWidth)),g=R(()=>[l.b(),l.m(s.value)]),m=jn(),y=R(()=>l.cssVarBlock({"void-color":a.voidColor,"disabled-void-color":a.disabledVoidColor,"fill-color":x.value})),b=R(()=>{let L="";return a.showScore?L=a.scoreTemplate.replace(/\{\s*value\s*\}/,m.value?`${a.modelValue}`:`${f.value}`):a.showText&&(L=a.texts[Math.ceil(f.value)-1]),L}),w=R(()=>a.modelValue*100-Math.floor(a.modelValue)*100),S=R(()=>Ce(a.colors)?{[a.lowThreshold]:a.colors[0],[a.highThreshold]:{value:a.colors[1],excluded:!0},[a.max]:a.colors[2]}:a.colors),x=R(()=>{const L=r(f.value,S.value);return St(L)?"":L}),C=R(()=>{let L="";return m.value?L=`${w.value}%`:a.allowHalf&&(L="50%"),{color:x.value,width:L}}),T=R(()=>{let L=Ce(a.icons)?[...a.icons]:{...a.icons};return L=Ts(L),Ce(L)?{[a.lowThreshold]:L[0],[a.highThreshold]:{value:L[1],excluded:!0},[a.max]:L[2]}:L}),M=R(()=>r(a.modelValue,T.value)),k=R(()=>m.value?Ge(a.disabledVoidIcon)?a.disabledVoidIcon:Ts(a.disabledVoidIcon):Ge(a.voidIcon)?a.voidIcon:Ts(a.voidIcon)),E=R(()=>r(f.value,T.value));function A(L){const V=m.value&&w.value>0&&L-1<a.modelValue&&L>a.modelValue,B=a.allowHalf&&v.value&&L-.5<=f.value&&L>f.value;return V||B}function I(L){a.clearable&&L===a.modelValue&&(L=0),o(dt,L),a.modelValue!==L&&o(Ht,L)}function O(L){m.value||(a.allowHalf&&v.value?I(f.value):I(L))}function z(L){if(m.value)return;const V=xn(L),B=a.allowHalf?.5:1;let F=f.value;switch(V){case ke.up:case ke.right:F+=B;break;case ke.left:case ke.down:F-=B;break}if(F=g4(F,0,a.max),F!==f.value)return L.stopPropagation(),L.preventDefault(),o(dt,F),o(Ht,F),F}function $(L,V){m.value||(a.allowHalf&&V?(v.value=V.offsetX*2<=p.value[L-1],f.value=v.value?L-.5:L):f.value=L,d.value=L)}function P(){m.value||(a.allowHalf&&(v.value=a.modelValue!==Math.floor(a.modelValue)),f.value=a.modelValue,d.value=-1)}return he(()=>a.modelValue,L=>{f.value=L,v.value=a.modelValue!==Math.floor(a.modelValue)}),a.modelValue||o(dt,0),t({setCurrentValue:$,resetCurrentValue:P}),(L,V)=>{var B;return D(),H("div",{id:_(u),class:W([g.value,_(l).is("disabled",_(m))]),role:"slider","aria-label":_(c)?void 0:L.ariaLabel||"rating","aria-labelledby":_(c)?(B=_(i))==null?void 0:B.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":b.value||void 0,"aria-valuemin":"0","aria-valuemax":L.max,tabindex:"0",style:et(y.value),onKeydown:z},[(D(!0),H(qe,null,Wt(L.max,(F,U)=>(D(),H("span",{key:U,class:W(_(l).e("item")),onMousemove:G=>$(F,G),onMouseleave:P,onClick:G=>O(F)},[Q(_(Xe),{ref_for:!0,ref_key:"iconRefs",ref:h,class:W([_(l).e("icon"),{hover:d.value===F},_(l).is("active",F<=f.value),_(l).is("focus-visible",F===Math.ceil(f.value||1))])},{default:ee(()=>[xt((D(),de(Tt(E.value),null,null,512)),[[tn,!A(F)&&F<=f.value]]),xt((D(),de(Tt(k.value),null,null,512)),[[tn,!A(F)&&F>f.value]]),xt((D(),de(Tt(k.value),{class:W([_(l).em("decimal","box")])},null,8,["class"])),[[tn,A(F)]]),xt(Q(_(Xe),{style:et(C.value),class:W([_(l).e("icon"),_(l).e("decimal")])},{default:ee(()=>[(D(),de(Tt(M.value)))]),_:1},8,["style","class"]),[[tn,A(F)]])]),_:2},1032,["class"])],42,Rtt))),128)),L.showText||L.showScore?(D(),H("span",{key:0,class:W(_(l).e("text")),style:et({color:L.textColor})},Ae(b.value),7)):le("v-if",!0)],46,Ptt)}}});var Ntt=De(Ott,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const Btt=_t(Ntt),gf={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},PV={[gf.primary]:Ah,[gf.success]:ZX,[gf.warning]:i1,[gf.error]:_4,[gf.info]:Ah},Vtt=Ie({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}}),$tt=q({name:"ElResult",__name:"result",props:Vtt,setup(e){const t=e,n=we("result"),r=R(()=>{const a=t.icon,o=a&&gf[a]?gf[a]:"icon-info",i=PV[o]||PV["icon-info"];return{class:o,component:i}});return(a,o)=>(D(),H("div",{class:W(_(n).b())},[N("div",{class:W(_(n).e("icon"))},[ue(a.$slots,"icon",{},()=>[r.value.component?(D(),de(Tt(r.value.component),{key:0,class:W(r.value.class)},null,8,["class"])):le("v-if",!0)])],2),a.title||a.$slots.title?(D(),H("div",{key:0,class:W(_(n).e("title"))},[ue(a.$slots,"title",{},()=>[N("p",null,Ae(a.title),1)])],2)):le("v-if",!0),a.subTitle||a.$slots["sub-title"]?(D(),H("div",{key:1,class:W(_(n).e("subtitle"))},[ue(a.$slots,"sub-title",{},()=>[N("p",null,Ae(a.subTitle),1)])],2)):le("v-if",!0),a.$slots.extra?(D(),H("div",{key:2,class:W(_(n).e("extra"))},[ue(a.$slots,"extra")],2)):le("v-if",!0)],2))}});var ztt=De($tt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const Ftt=_t(ztt),Htt=["start","center","end","space-around","space-between","space-evenly"],Wtt=["top","middle","bottom"],Gtt=Ie({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Htt,default:"start"},align:{type:String,values:Wtt}}),Utt=q({name:"ElRow",__name:"row",props:Gtt,setup(e){const t=e,n=we("row"),r=R(()=>t.gutter);Ut(kJ,{gutter:r});const a=R(()=>{const i={};return t.gutter&&(i.marginRight=i.marginLeft=`-${t.gutter/2}px`),i}),o=R(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(i,s)=>(D(),de(Tt(i.tag),{class:W(o.value),style:et(a.value)},{default:ee(()=>[ue(i.$slots,"default")]),_:3},8,["class","style"]))}});var Ktt=De(Utt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const jtt=_t(Ktt),Ytt=q({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:we("select")}}});function qtt(e,t,n,r,a,o){return D(),H("div",{class:W(e.ns.be("group","title")),style:et({...e.style,lineHeight:`${e.height}px`})},Ae(e.item.label),7)}var Xtt=De(Ytt,[["render",qtt],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function Ztt(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const Jtt=Ie({allowCreate:Boolean,autocomplete:{type:ne(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:pn,default:rl},effect:{type:ne(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:{type:Boolean,default:void 0},estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:{type:ne(Function)},height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:ne([Array,String,Number,Boolean,Object]),default:void 0},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:{type:ne(Function)},reserveKeyword:{type:Boolean,default:!0},options:{type:ne(Array),required:!0},placeholder:{type:String},teleported:bn.teleported,persistent:{type:Boolean,default:!0},popperClass:bn.popperClass,popperStyle:bn.popperStyle,popperOptions:{type:ne(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},size:wr,props:{type:ne(Object),default:()=>H_},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},placement:{type:ne(String),values:ou,default:"bottom-start"},fallbackPlacements:{type:ne(Array),default:["bottom-start","top-start","right","left"]},tagType:{...Zl.type,default:"info"},tagEffect:{...Zl.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:bn.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return hn(e)||rt(e)}},suffixIcon:{type:pn,default:Yi},...Bd,...Da(["ariaLabel"])}),Qtt=Ie({data:Array,disabled:Boolean,hovering:Boolean,item:{type:ne(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),ent={[dt]:e=>!0,[Ht]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},tnt={hover:e=>rt(e),select:(e,t)=>!0},pE=Symbol("ElSelectV2Injection"),nnt=q({props:Qtt,emits:tnt,setup(e,{emit:t}){const n=Ue(pE),r=we("select"),{hoverItem:a,selectOptionClick:o}=Ztt(e,{emit:t}),{getLabel:i}=h1(n.props),s=n.contentId;return{ns:r,contentId:s,hoverItem:a,selectOptionClick:o,getLabel:i}}}),rnt=["id","aria-selected","aria-disabled"];function ant(e,t,n,r,a,o){return D(),H("li",{id:`${e.contentId}-${e.index}`,role:"option","aria-selected":e.selected,"aria-disabled":e.disabled||void 0,style:et(e.style),class:W([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMousemove:t[0]||(t[0]=(...i)=>e.hoverItem&&e.hoverItem(...i)),onClick:t[1]||(t[1]=ut((...i)=>e.selectOptionClick&&e.selectOptionClick(...i),["stop"])),onMousedown:t[2]||(t[2]=ut(()=>{},["prevent"]))},[ue(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[N("span",null,Ae(e.getLabel(e.item)),1)])],46,rnt)}var ont=De(nnt,[["render",ant],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]),RV=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function int(e,t){return!!(e===t||RV(e)&&RV(t))}function snt(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!int(e[n],t[n]))return!1;return!0}function lnt(e,t){t===void 0&&(t=snt);var n=null;function r(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];if(n&&n.lastThis===this&&t(a,n.lastArgs))return n.lastResult;var i=e.apply(this,a);return n={lastResult:i,lastArgs:a,lastThis:this},i}return r.clear=function(){n=null},r}const BQ=()=>{const t=bt().proxy.$props;return R(()=>{const n=(r,a,o)=>({});return t.perfMode?h4(n):lnt(n)})},wT=50,G_="itemRendered",U_="scroll",Nv="forward",K_="backward",Qo="auto",D4="smart",sm="start",xs="center",lm="end",Vh="horizontal",gE="vertical",unt="ltr",eh="rtl",um="negative",mE="positive-ascending",yE="positive-descending",cnt={[Vh]:"left",[gE]:"top"},fnt=20,dnt={[Vh]:"deltaX",[gE]:"deltaY"},VQ=({atEndEdge:e,atStartEdge:t,layout:n},r)=>{let a,o=0;const i=l=>l<0&&t.value||l>0&&e.value;return{hasReachedEdge:i,onWheel:l=>{jl(a);const u=l[dnt[n.value]];i(o)&&i(o+u)||(o+=u,EA()||l.preventDefault(),a=qs(()=>{r(o),o=0}))}}},ST=ji({type:ne([Number,Function]),required:!0}),xT=ji({type:Number}),CT=ji({type:Number,default:2}),vnt=ji({type:String,values:["ltr","rtl"],default:"ltr"}),TT=ji({type:Number,default:0}),j_=ji({type:Number,required:!0}),$Q=ji({type:String,values:["horizontal","vertical"],default:gE}),zQ=Ie({className:{type:String,default:""},containerElement:{type:ne([String,Object]),default:"div"},data:{type:ne(Array),default:()=>Gn([])},direction:vnt,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},innerProps:{type:ne(Object),default:()=>({})},style:{type:ne([Object,String,Array])},useIsScrolling:Boolean,width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),FQ=Ie({cache:CT,estimatedItemSize:xT,layout:$Q,initScrollOffset:TT,total:j_,itemSize:ST,...zQ}),kT={type:Number,default:6},HQ={type:Number,default:0},WQ={type:Number,default:2},qf=Ie({columnCache:CT,columnWidth:ST,estimatedColumnWidth:xT,estimatedRowHeight:xT,initScrollLeft:TT,initScrollTop:TT,itemKey:{type:ne(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:CT,rowHeight:ST,totalColumn:j_,totalRow:j_,hScrollbarSize:kT,vScrollbarSize:kT,scrollbarStartGap:HQ,scrollbarEndGap:WQ,role:String,...zQ}),GQ=Ie({alwaysOn:Boolean,class:String,layout:$Q,total:j_,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:kT,startGap:HQ,endGap:WQ,visible:Boolean}),If=(e,t)=>e<t?Nv:K_,cm=e=>e===unt||e===eh||e===Vh,OV=e=>e===eh;let mv=null;function Y_(e=!1){if(mv===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?mv=yE:(t.scrollLeft=1,t.scrollLeft===0?mv=um:mv=mE),document.body.removeChild(t),mv}return mv}function hnt({move:e,size:t,bar:n},r){const a={},o=`translate${n.axis}(${e}px)`;return a[n.size]=t,a.transform=o,r==="horizontal"?a.height="100%":a.width="100%",a}const MT=q({name:"ElVirtualScrollBar",props:GQ,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=R(()=>e.startGap+e.endGap),r=we("virtual-scrollbar"),a=we("scrollbar"),o=K(),i=K();let s=null,l=null;const u=sn({isDragging:!1,traveled:0}),c=R(()=>wZ[e.layout]),f=R(()=>e.clientSize-_(n)),d=R(()=>({position:"absolute",width:`${Vh===e.layout?f.value:e.scrollbarSize}px`,height:`${Vh===e.layout?e.scrollbarSize:f.value}px`,[cnt[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),v=R(()=>{const x=e.ratio;if(x>=100)return Number.POSITIVE_INFINITY;if(x>=50)return x*f.value/100;const C=f.value/3;return Math.floor(Math.min(Math.max(x*f.value/100,fnt),C))}),h=R(()=>{if(!Number.isFinite(v.value))return{display:"none"};const x=`${v.value}px`;return hnt({bar:c.value,size:x,move:u.traveled},e.layout)}),p=R(()=>Math.ceil(e.clientSize-v.value-_(n))),g=()=>{window.addEventListener("mousemove",w),window.addEventListener("mouseup",b);const x=_(i);x&&(l=document.onselectstart,document.onselectstart=()=>!1,x.addEventListener("touchmove",w,{passive:!0}),x.addEventListener("touchend",b))},m=()=>{window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",b),document.onselectstart=l,l=null;const x=_(i);x&&(x.removeEventListener("touchmove",w),x.removeEventListener("touchend",b))},y=x=>{x.stopImmediatePropagation(),!(x.ctrlKey||[1,2].includes(x.button))&&(u.isDragging=!0,u[c.value.axis]=x.currentTarget[c.value.offset]-(x[c.value.client]-x.currentTarget.getBoundingClientRect()[c.value.direction]),t("start-move"),g())},b=()=>{u.isDragging=!1,u[c.value.axis]=0,t("stop-move"),m()},w=x=>{const{isDragging:C}=u;if(!C||!i.value||!o.value)return;const T=u[c.value.axis];if(!T)return;jl(s);const M=(o.value.getBoundingClientRect()[c.value.direction]-x[c.value.client])*-1,k=i.value[c.value.offset]-T,E=M-k;s=qs(()=>{u.traveled=Math.max(0,Math.min(E,p.value)),t("scroll",E,p.value)})},S=x=>{const C=Math.abs(x.target.getBoundingClientRect()[c.value.direction]-x[c.value.client]),T=i.value[c.value.offset]/2,M=C-T;u.traveled=Math.max(0,Math.min(M,p.value)),t("scroll",M,p.value)};return he(()=>e.scrollFrom,x=>{u.isDragging||(u.traveled=Math.ceil(x*p.value))}),un(()=>{m()}),()=>ot("div",{role:"presentation",ref:o,class:[r.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:d.value,onMousedown:ut(S,["stop","prevent"]),onTouchstartPrevent:y},ot("div",{ref:i,class:a.e("thumb"),style:h.value,onMousedown:y},[]))}}),UQ=({name:e,getOffset:t,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:a,getStartIndexForOffset:o,getStopIndexForStartIndex:i,initCache:s,clearCache:l,validateProps:u})=>q({name:e??"ElVirtualList",props:FQ,emits:[G_,U_],setup(c,{emit:f,expose:d}){u(c);const v=bt(),h=we("vl"),p=K(s(c,v)),g=BQ(),m=K(),y=K(),b=K(),w=K({isScrolling:!1,scrollDir:"forward",scrollOffset:rt(c.initScrollOffset)?c.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:c.scrollbarAlwaysOn}),S=R(()=>{const{total:G,cache:Y}=c,{isScrolling:X,scrollDir:te,scrollOffset:oe}=_(w);if(G===0)return[0,0,0,0];const re=o(c,oe,_(p)),ce=i(c,re,oe,_(p)),ie=!X||te===K_?Math.max(1,Y):1,Z=!X||te===Nv?Math.max(1,Y):1;return[Math.max(0,re-ie),Math.max(0,Math.min(G-1,ce+Z)),re,ce]}),x=R(()=>a(c,_(p))),C=R(()=>cm(c.layout)),T=R(()=>[{position:"relative",[`overflow-${C.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:c.direction,height:rt(c.height)?`${c.height}px`:c.height,width:rt(c.width)?`${c.width}px`:c.width},c.style]),M=R(()=>{const G=_(x),Y=_(C);return{height:Y?"100%":`${G}px`,pointerEvents:_(w).isScrolling?"none":void 0,width:Y?`${G}px`:"100%",margin:0,boxSizing:"border-box"}}),k=R(()=>C.value?c.width:c.height),{onWheel:E}=VQ({atStartEdge:R(()=>w.value.scrollOffset<=0),atEndEdge:R(()=>w.value.scrollOffset>=x.value),layout:R(()=>c.layout)},G=>{var Y,X;(X=(Y=b.value).onMouseUp)==null||X.call(Y),P(Math.min(w.value.scrollOffset+G,x.value-k.value))});fn(m,"wheel",E,{passive:!1});const A=()=>{const{total:G}=c;if(G>0){const[oe,re,ce,ie]=_(S);f(G_,oe,re,ce,ie)}const{scrollDir:Y,scrollOffset:X,updateRequested:te}=_(w);f(U_,Y,X,te)},I=G=>{const{clientHeight:Y,scrollHeight:X,scrollTop:te}=G.currentTarget,oe=_(w);if(oe.scrollOffset===te)return;const re=Math.max(0,Math.min(te,X-Y));w.value={...oe,isScrolling:!0,scrollDir:If(oe.scrollOffset,re),scrollOffset:re,updateRequested:!1},ze(B)},O=G=>{const{clientWidth:Y,scrollLeft:X,scrollWidth:te}=G.currentTarget,oe=_(w);if(oe.scrollOffset===X)return;const{direction:re}=c;let ce=X;if(re===eh)switch(Y_()){case um:{ce=-X;break}case yE:{ce=te-Y-X;break}}ce=Math.max(0,Math.min(ce,te-Y)),w.value={...oe,isScrolling:!0,scrollDir:If(oe.scrollOffset,ce),scrollOffset:ce,updateRequested:!1},ze(B)},z=G=>{_(C)?O(G):I(G),A()},$=(G,Y)=>{const X=(x.value-k.value)/Y*G;P(Math.min(x.value-k.value,X))},P=G=>{G=Math.max(G,0),G!==_(w).scrollOffset&&(w.value={..._(w),scrollOffset:G,scrollDir:If(_(w).scrollOffset,G),updateRequested:!0},ze(B))},L=(G,Y=Qo)=>{const{scrollOffset:X}=_(w);G=Math.max(0,Math.min(G,c.total-1)),P(t(c,G,Y,X,_(p)))},V=G=>{const{direction:Y,itemSize:X,layout:te}=c,oe=g.value(l&&X,l&&te,l&&Y);let re;if(nn(oe,String(G)))re=oe[G];else{const ce=r(c,G,_(p)),ie=n(c,G,_(p)),Z=_(C),se=Y===eh,J=Z?ce:0;oe[G]=re={position:"absolute",left:se?void 0:`${J}px`,right:se?`${J}px`:void 0,top:Z?0:`${ce}px`,height:Z?"100%":`${ie}px`,width:Z?`${ie}px`:"100%"}}return re},B=()=>{w.value.isScrolling=!1,ze(()=>{g.value(-1,null,null)})},F=()=>{const G=m.value;G&&(G.scrollTop=0)};Et(()=>{if(!on)return;const{initScrollOffset:G}=c,Y=_(m);rt(G)&&Y&&(_(C)?Y.scrollLeft=G:Y.scrollTop=G),A()}),Lo(()=>{const{direction:G,layout:Y}=c,{scrollOffset:X,updateRequested:te}=_(w),oe=_(m);if(te&&oe)if(Y===Vh)if(G===eh)switch(Y_()){case um:{oe.scrollLeft=-X;break}case mE:{oe.scrollLeft=X;break}default:{const{clientWidth:re,scrollWidth:ce}=oe;oe.scrollLeft=ce-re-X;break}}else oe.scrollLeft=X;else oe.scrollTop=X}),_m(()=>{_(m).scrollTop=_(w).scrollOffset});const U={ns:h,clientSize:k,estimatedTotalSize:x,windowStyle:T,windowRef:m,innerRef:y,innerStyle:M,itemsToRender:S,scrollbarRef:b,states:w,getItemStyle:V,onScroll:z,onScrollbarScroll:$,onWheel:E,scrollTo:P,scrollToItem:L,resetScrollTop:F};return d({windowRef:m,innerRef:y,getItemStyleCache:g,scrollTo:P,scrollToItem:L,resetScrollTop:F,states:w}),U},render(c){var f;const{$slots:d,className:v,clientSize:h,containerElement:p,data:g,getItemStyle:m,innerElement:y,itemsToRender:b,innerStyle:w,layout:S,total:x,onScroll:C,onScrollbarScroll:T,states:M,useIsScrolling:k,windowStyle:E,ns:A}=c,[I,O]=b,z=Tt(p),$=Tt(y),P=[];if(x>0)for(let F=I;F<=O;F++)P.push(ot(qe,{key:F},(f=d.default)==null?void 0:f.call(d,{data:g,index:F,isScrolling:k?M.isScrolling:void 0,style:m(F)})));const L=[ot($,It(c.innerProps,{style:w,ref:"innerRef"}),Ge($)?P:{default:()=>P})],V=ot(MT,{ref:"scrollbarRef",clientSize:h,layout:S,onScroll:T,ratio:h*100/this.estimatedTotalSize,scrollFrom:M.scrollOffset/(this.estimatedTotalSize-h),total:x,alwaysOn:M.scrollbarAlwaysOn}),B=ot(z,{class:[A.e("window"),v],style:E,onScroll:C,ref:"windowRef",key:0},Ge(z)?[L]:{default:()=>[L]});return ot("div",{key:0,class:[A.e("wrapper"),M.scrollbarAlwaysOn?"always-on":""]},[B,V])}}),KQ=UQ({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:r,width:a},o,i,s)=>{const l=cm(r)?a:e,u=Math.max(0,t*n-l),c=Math.min(u,o*n),f=Math.max(0,(o+1)*n-l);switch(i===D4&&(s>=f-l&&s<=c+l?i=Qo:i=xs),i){case sm:return c;case lm:return f;case xs:{const d=Math.round(f+(c-f)/2);return d<Math.ceil(l/2)?0:d>u+Math.floor(l/2)?u:d}case Qo:default:return s>=f&&s<=c?s:s<f?f:c}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:r,width:a},o,i)=>{const s=o*n,l=cm(r)?a:e,u=Math.ceil((l+i-s)/n);return Math.max(0,Math.min(t-1,o+u-1))},initCache(){},clearCache:!0,validateProps(){}}),Bv=(e,t,n)=>{const{itemSize:r}=e,{items:a,lastVisitedIndex:o}=n;if(t>o){let i=0;if(o>=0){const s=a[o];i=s.offset+s.size}for(let s=o+1;s<=t;s++){const l=r(s);a[s]={offset:i,size:l},i+=l}n.lastVisitedIndex=t}return a[t]},pnt=(e,t,n)=>{const{items:r,lastVisitedIndex:a}=t;return(a>0?r[a].offset:0)>=n?jQ(e,t,0,a,n):gnt(e,t,Math.max(0,a),n)},jQ=(e,t,n,r,a)=>{for(;n<=r;){const o=n+Math.floor((r-n)/2),i=Bv(e,o,t).offset;if(i===a)return o;i<a?n=o+1:i>a&&(r=o-1)}return Math.max(0,n-1)},gnt=(e,t,n,r)=>{const{total:a}=e;let o=1;for(;n<a&&Bv(e,n,t).offset<r;)n+=o,o*=2;return jQ(e,t,Math.floor(n/2),Math.min(n,a-1),r)},NV=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:r})=>{let a=0;if(r>=e&&(r=e-1),r>=0){const s=t[r];a=s.offset+s.size}const i=(e-r-1)*n;return a+i},mnt=UQ({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>Bv(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:NV,getOffset:(e,t,n,r,a)=>{const{height:o,layout:i,width:s}=e,l=cm(i)?s:o,u=Bv(e,t,a),c=NV(e,a),f=Math.max(0,Math.min(c-l,u.offset)),d=Math.max(0,u.offset-l+u.size);switch(n===D4&&(r>=d-l&&r<=f+l?n=Qo:n=xs),n){case sm:return f;case lm:return d;case xs:return Math.round(d+(f-d)/2);case Qo:default:return r>=d&&r<=f?r:r<d?d:f}},getStartIndexForOffset:(e,t,n)=>pnt(e,n,t),getStopIndexForStartIndex:(e,t,n,r)=>{const{height:a,total:o,layout:i,width:s}=e,l=cm(i)?s:a,u=Bv(e,t,r),c=n+l;let f=u.offset+u.size,d=t;for(;d<o-1&&f<c;)d++,f+=Bv(e,d,r).size;return d},initCache({estimatedItemSize:e=wT},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(r,a=!0)=>{var o,i;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,r-1),(o=t.exposed)==null||o.getItemStyleCache(-1),a&&((i=t.proxy)==null||i.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}}),ynt={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number,id:String,ariaLabel:String};var bnt=q({name:"ElSelectDropdown",props:ynt,setup(e,{slots:t,expose:n}){const r=Ue(pE),a=we("select"),{getLabel:o,getValue:i,getDisabled:s}=h1(r.props),l=K([]),u=K(),c=R(()=>e.data.length);he(()=>c.value,()=>{var E,A;(A=(E=r.tooltipRef.value)==null?void 0:E.updatePopper)==null||A.call(E)});const f=R(()=>Jt(r.props.estimatedOptionHeight)),d=R(()=>f.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:E=>l.value[E]}),v=(E=[],A)=>{const{props:{valueKey:I}}=r;return St(A)?E&&E.some(O=>Cn(ur(O,I))===ur(A,I)):E.includes(A)},h=(E,A)=>{if(St(A)){const{valueKey:I}=r.props;return ur(E,I)===ur(A,I)}else return E===A},p=(E,A)=>r.props.multiple?v(E,i(A)):h(E,i(A)),g=(E,A)=>{const{disabled:I,multiple:O,multipleLimit:z}=r.props;return I||!A&&(O?z>0&&E.length>=z:!1)},m=E=>e.hoveringIndex===E;n({listRef:u,isSized:f,isItemDisabled:g,isItemHovering:m,isItemSelected:p,scrollToItem:E=>{const A=u.value;A&&A.scrollToItem(E)},resetScrollTop:()=>{const E=u.value;E&&E.resetScrollTop()}});const S=E=>{const{index:A,data:I,style:O}=E,z=_(f),{itemSize:$,estimatedSize:P}=_(d),{modelValue:L}=r.props,{onSelect:V,onHover:B}=r,F=I[A];if(F.type==="Group")return Q(Xtt,{item:F,style:O,height:z?$:P},null);const U=p(L,F),G=g(L,U),Y=m(A);return Q(ont,It(E,{selected:U,disabled:s(F)||G,created:!!F.created,hovering:Y,item:F,onSelect:V,onHover:B}),{default:X=>{var te;return((te=t.default)==null?void 0:te.call(t,X))||Q("span",null,[o(F)])}})},{onKeyboardNavigate:x,onKeyboardSelect:C}=r,T=()=>{x("forward")},M=()=>{x("backward")},k=E=>{const A=xn(E),{tab:I,esc:O,down:z,up:$,enter:P,numpadEnter:L}=ke;switch([O,z,$,P,L].includes(A)&&(E.preventDefault(),E.stopPropagation()),A){case I:case O:break;case z:T();break;case $:M();break;case P:case L:C();break}};return()=>{var E,A,I,O;const{data:z,width:$}=e,{height:P,multiple:L,scrollbarAlwaysOn:V}=r.props,B=R(()=>D_?!0:V),F=_(f)?KQ:mnt;return Q("div",{class:[a.b("dropdown"),a.is("multiple",L)],style:{width:`${$}px`}},[(E=t.header)==null?void 0:E.call(t),((A=t.loading)==null?void 0:A.call(t))||((I=t.empty)==null?void 0:I.call(t))||Q(F,It({ref:u},_(d),{className:a.be("dropdown","list"),scrollbarAlwaysOn:B.value,data:z,height:P,width:$,total:z.length,innerElement:"ul",innerProps:{id:e.id,role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},onKeydown:k}),{default:U=>Q(S,U,null)}),(O=t.footer)==null?void 0:O.call(t)])}}});function _nt(e,t){const{aliasProps:n,getLabel:r,getValue:a}=h1(e),o=K(0),i=K(),s=R(()=>e.allowCreate&&e.filterable);he(()=>e.options,v=>{const h=new Set(v.map(p=>r(p)));t.createdOptions=t.createdOptions.filter(p=>!h.has(r(p)))});function l(v){const h=p=>r(p)===v;return e.options&&e.options.some(h)||t.createdOptions.some(h)}function u(v){s.value&&(e.multiple&&v.created?o.value++:i.value=v)}function c(v){if(s.value)if(v&&v.length>0){if(l(v)){t.createdOptions=t.createdOptions.filter(p=>r(p)!==t.previousQuery);return}const h={[n.value.value]:v,[n.value.label]:v,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=o.value?t.createdOptions[o.value]=h:t.createdOptions.push(h)}else if(e.multiple)t.createdOptions.length=o.value;else{const h=i.value;t.createdOptions.length=0,h&&h.created&&t.createdOptions.push(h)}}function f(v){if(!s.value||!v||!v.created||v.created&&e.reserveKeyword&&t.inputValue===r(v))return;const h=t.createdOptions.findIndex(p=>a(p)===a(v));~h&&(t.createdOptions.splice(h,1),o.value--)}function d(){s.value&&(t.createdOptions.length=0,o.value=0)}return{createNewOption:c,removeNewOption:f,selectNewOption:u,clearAllNewOption:d}}const wnt=(e,t)=>{const{t:n}=Kt(),r=we("select"),a=we("input"),{form:o,formItem:i}=Yr(),{inputId:s}=Ro(e,{formItemContext:i}),{aliasProps:l,getLabel:u,getValue:c,getDisabled:f,getOptions:d}=h1(e),{valueOnClear:v,isEmptyValue:h}=n1(e),p=sn({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),g=K(-1),m=K(!1),y=K(),b=K(),w=K(),S=K(),x=K(),C=K(),T=K(),M=K(),k=K(),E=K(),{isComposing:A,handleCompositionStart:I,handleCompositionEnd:O,handleCompositionUpdate:z}=u1({afterComposition:Re=>Nn(Re)}),$=jn(),{wrapperRef:P,isFocused:L,handleBlur:V}=au(x,{disabled:$,afterFocus(){e.automaticDropdown&&!G.value&&(G.value=!0,p.menuVisibleOnFocus=!0)},beforeBlur(Re){var ht,zt;return((ht=w.value)==null?void 0:ht.isFocusInsideContent(Re))||((zt=S.value)==null?void 0:zt.isFocusInsideContent(Re))},afterBlur(){var Re;G.value=!1,p.menuVisibleOnFocus=!1,e.validateEvent&&((Re=i==null?void 0:i.validate)==null||Re.call(i,"blur").catch(ht=>void 0))}}),B=R(()=>me("")),F=R(()=>e.loading?!1:e.options.length>0||p.createdOptions.length>0),U=K([]),G=K(!1),Y=R(()=>{var Re;return(Re=o==null?void 0:o.statusIcon)!=null?Re:!1}),X=R(()=>{const Re=U.value.length*e.itemHeight;return Re>e.height?e.height:Re}),te=R(()=>e.multiple?Ce(e.modelValue)&&e.modelValue.length>0:!h(e.modelValue)),oe=R(()=>e.clearable&&!$.value&&te.value&&(L.value||p.inputHovering)),re=R(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),ce=R(()=>re.value&&r.is("reverse",G.value)),ie=R(()=>(i==null?void 0:i.validateState)||""),Z=R(()=>{if(ie.value)return w4[ie.value]}),se=R(()=>e.remote?e.debounce:0),J=R(()=>e.remote&&!p.inputValue&&!F.value),ae=R(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&p.inputValue&&F.value&&U.value.length===0?e.noMatchText||n("el.select.noMatch"):F.value?null:e.noDataText||n("el.select.noData")),fe=R(()=>e.filterable&&Je(e.filterMethod)),ve=R(()=>e.filterable&&e.remote&&Je(e.remoteMethod)),me=Re=>{const ht=new RegExp(fE(Re),"i"),zt=jt=>fe.value||ve.value?!0:Re?ht.test(u(jt)||""):!0;return e.loading?[]:[...p.createdOptions,...e.options].reduce((jt,zr)=>{const Oo=d(zr);if(Ce(Oo)){const wp=Oo.filter(zt);wp.length>0&&jt.push({label:u(zr),type:"Group"},...wp)}else(e.remote||zt(zr))&&jt.push(zr);return jt},[])},pe=()=>{U.value=me(p.inputValue)},Ne=R(()=>{const Re=new Map;return B.value.forEach((ht,zt)=>{Re.set(it(c(ht)),{option:ht,index:zt})}),Re}),Ee=R(()=>{const Re=new Map;return U.value.forEach((ht,zt)=>{Re.set(it(c(ht)),{option:ht,index:zt})}),Re}),_e=R(()=>U.value.every(Re=>f(Re))),be=vr(),Fe=R(()=>be.value==="small"?"small":"default"),Oe=()=>{var Re;if(rt(e.fitInputWidth)){g.value=e.fitInputWidth;return}const ht=((Re=y.value)==null?void 0:Re.offsetWidth)||200;!e.fitInputWidth&&F.value?ze(()=>{g.value=Math.max(ht,Ze())}):g.value=ht},Ze=()=>{var Re,ht;const jt=document.createElement("canvas").getContext("2d"),zr=r.be("dropdown","item"),wp=(((ht=(Re=M.value)==null?void 0:Re.listRef)==null?void 0:ht.innerRef)||document).querySelector(`.${zr}`);if(wp===null||jt===null)return 0;const C1=getComputedStyle(wp),Tte=Number.parseFloat(C1.paddingLeft)+Number.parseFloat(C1.paddingRight);return jt.font=`bold ${C1.font.replace(new RegExp(`\\b${C1.fontWeight}\\b`),"")}`,U.value.reduce((kte,Mte)=>{const Ate=jt.measureText(u(Mte));return Math.max(Ate.width,kte)},0)+Tte},nt=()=>{if(!b.value)return 0;const Re=window.getComputedStyle(b.value);return Number.parseFloat(Re.gap||"6px")},xe=R(()=>{const Re=nt(),ht=e.filterable?Re+L4:0;return{maxWidth:`${E.value&&e.maxCollapseTags===1?p.selectionWidth-p.collapseItemWidth-Re-ht:p.selectionWidth-ht}px`}}),je=R(()=>({maxWidth:`${p.selectionWidth}px`})),Ke=R(()=>Ce(e.modelValue)?e.modelValue.length===0&&!p.inputValue:e.filterable?!p.inputValue:!0),en=R(()=>{var Re;const ht=(Re=e.placeholder)!=null?Re:n("el.select.placeholder");return e.multiple||!te.value?ht:p.selectedLabel}),Qe=R(()=>{var Re,ht;return(ht=(Re=w.value)==null?void 0:Re.popperRef)==null?void 0:ht.contentRef}),Ct=R(()=>{if(e.multiple){const Re=e.modelValue.length;if(Re>0&&Ee.value.has(e.modelValue[Re-1])){const{index:ht}=Ee.value.get(e.modelValue[Re-1]);return ht}}else if(!h(e.modelValue)&&Ee.value.has(e.modelValue)){const{index:Re}=Ee.value.get(e.modelValue);return Re}return-1}),mt=R({get(){return G.value&&(e.loading||!J.value)&&(!m.value||!Ha(p.previousQuery))},set(Re){G.value=Re}}),Nt=R(()=>e.multiple?e.collapseTags?p.cachedOptions.slice(0,e.maxCollapseTags):p.cachedOptions:[]),Te=R(()=>e.multiple?e.collapseTags?p.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:He,removeNewOption:ge,selectNewOption:tt,clearAllNewOption:Bt}=_nt(e,p),Mn=Re=>{var ht;$.value||e.filterable&&G.value&&Re&&!((ht=T.value)!=null&&ht.contains(Re.target))||(p.menuVisibleOnFocus?p.menuVisibleOnFocus=!1:G.value=!G.value)},Me=()=>{p.inputValue.length>0&&!G.value&&(G.value=!0),He(p.inputValue),ze(()=>{ct(p.inputValue)})},Ye=Qm(()=>{Me(),m.value=!1},se),ct=Re=>{p.previousQuery===Re||A.value||(p.previousQuery=Re,e.filterable&&Je(e.filterMethod)?e.filterMethod(Re):e.filterable&&e.remote&&Je(e.remoteMethod)&&e.remoteMethod(Re),e.defaultFirstOption&&(e.filterable||e.remote)&&U.value.length?ze(Zn):ze(qt))},Zn=()=>{const Re=U.value.filter(jt=>!jt.disabled&&jt.type!=="Group"),ht=Re.find(jt=>jt.created),zt=Re[0];p.hoveringIndex=We(U.value,ht||zt)},ho=Re=>{Yn(e.modelValue,Re)||t(Ht,Re)},hr=Re=>{t(dt,Re),ho(Re),p.previousValue=e.multiple?String(Re):Re,ze(()=>{if(e.multiple&&Ce(e.modelValue)){const ht=p.cachedOptions.slice(),zt=e.modelValue.map(jt=>Qi(jt,ht));Yn(p.cachedOptions,zt)||(p.cachedOptions=zt)}else $d(!0)})},We=(Re=[],ht)=>{if(!St(ht))return Re.indexOf(ht);const zt=e.valueKey;let jt=-1;return Re.some((zr,Oo)=>ur(zr,zt)===ur(ht,zt)?(jt=Oo,!0):!1),jt},it=Re=>St(Re)?ur(Re,e.valueKey):Re,$t=()=>{Oe()},Pa=()=>{p.selectionWidth=Number.parseFloat(window.getComputedStyle(b.value).width)},Ji=()=>{p.collapseItemWidth=E.value.getBoundingClientRect().width},fi=()=>{var Re,ht;(ht=(Re=w.value)==null?void 0:Re.updatePopper)==null||ht.call(Re)},w1=()=>{var Re,ht;(ht=(Re=S.value)==null?void 0:Re.updatePopper)==null||ht.call(Re)},xc=Re=>{const ht=c(Re);if(e.multiple){let zt=e.modelValue.slice();const jt=We(zt,ht);jt>-1?(zt=[...zt.slice(0,jt),...zt.slice(jt+1)],p.cachedOptions.splice(jt,1),ge(Re)):(e.multipleLimit<=0||zt.length<e.multipleLimit)&&(zt=[...zt,ht],p.cachedOptions.push(Re),tt(Re)),hr(zt),Re.created&&ct(""),e.filterable&&!e.reserveKeyword&&(p.inputValue="")}else p.selectedLabel=u(Re),!Yn(e.modelValue,ht)&&hr(ht),G.value=!1,tt(Re),Re.created||Bt();il()},S1=(Re,ht)=>{let zt=e.modelValue.slice();const jt=We(zt,c(ht));jt>-1&&!$.value&&(zt=[...e.modelValue.slice(0,jt),...e.modelValue.slice(jt+1)],p.cachedOptions.splice(jt,1),hr(zt),t("remove-tag",c(ht)),ge(ht)),Re.stopPropagation(),il()},il=()=>{var Re;(Re=x.value)==null||Re.focus()},z4=()=>{var Re;if(G.value){G.value=!1,ze(()=>{var ht;return(ht=x.value)==null?void 0:ht.blur()});return}(Re=x.value)==null||Re.blur()},F4=()=>{p.inputValue.length>0?p.inputValue="":G.value=!1},H4=Re=>kX(Re,ht=>!p.cachedOptions.some(zt=>c(zt)===ht&&f(zt))),W4=Re=>{const ht=xn(Re);if(e.multiple&&ht!==ke.delete&&p.inputValue.length===0){Re.preventDefault();const zt=e.modelValue.slice(),jt=H4(zt);if(jt<0)return;const zr=zt[jt];zt.splice(jt,1);const Oo=p.cachedOptions[jt];p.cachedOptions.splice(jt,1),ge(Oo),hr(zt),t("remove-tag",zr)}},G4=()=>{let Re;Ce(e.modelValue)?Re=[]:Re=v.value,p.selectedLabel="",G.value=!1,hr(Re),t("clear"),Bt(),il()},Cc=(Re,ht=void 0)=>{const zt=U.value;if(!["forward","backward"].includes(Re)||$.value||zt.length<=0||_e.value||A.value)return;if(!G.value)return Mn();Jt(ht)&&(ht=p.hoveringIndex);let jt=-1;Re==="forward"?(jt=ht+1,jt>=zt.length&&(jt=0)):Re==="backward"&&(jt=ht-1,(jt<0||jt>=zt.length)&&(jt=zt.length-1));const zr=zt[jt];if(f(zr)||zr.type==="Group")return Cc(Re,jt);p.hoveringIndex=jt,na(jt)},Le=()=>{if(G.value)~p.hoveringIndex&&U.value[p.hoveringIndex]&&xc(U.value[p.hoveringIndex]);else return Mn()},vt=Re=>{p.hoveringIndex=Re??-1},qt=()=>{if(!e.multiple)p.hoveringIndex=U.value.findIndex(Re=>it(c(Re))===it(e.modelValue));else{const Re=e.modelValue.length;if(Re>0){const ht=e.modelValue[Re-1];p.hoveringIndex=U.value.findIndex(zt=>it(ht)===it(c(zt)))}else p.hoveringIndex=-1}},Nn=Re=>{if(p.inputValue=Re.target.value,e.remote)m.value=!0,Ye();else return Me()},tr=Re=>{if(G.value=!1,L.value){const ht=new FocusEvent("blur",Re);V(ht)}},va=()=>(p.isBeforeHide=!1,ze(()=>{~Ct.value&&na(Ct.value)})),na=Re=>{M.value.scrollToItem(Re)},Qi=(Re,ht)=>{const zt=it(Re);if(Ne.value.has(zt)){const{option:jt}=Ne.value.get(zt);return jt}if(ht&&ht.length){const jt=ht.find(zr=>it(c(zr))===zt);if(jt)return jt}return{[l.value.value]:Re,[l.value.label]:Re}},sl=Re=>{var ht,zt;return(zt=(ht=Ne.value.get(c(Re)))==null?void 0:ht.index)!=null?zt:-1},$d=(Re=!1)=>{if(e.multiple)if(e.modelValue.length>0){const ht=p.cachedOptions.slice();p.cachedOptions.length=0,p.previousValue=e.modelValue.toString();for(const zt of e.modelValue){const jt=Qi(zt,ht);p.cachedOptions.push(jt)}}else p.cachedOptions=[],p.previousValue=void 0;else if(te.value){p.previousValue=e.modelValue;const ht=U.value,zt=ht.findIndex(jt=>it(c(jt))===it(e.modelValue));~zt?p.selectedLabel=u(ht[zt]):(!p.selectedLabel||Re)&&(p.selectedLabel=it(e.modelValue))}else p.selectedLabel="",p.previousValue=void 0;Bt(),Oe()};he(()=>e.fitInputWidth,()=>{Oe()}),he(G,Re=>{Re?(e.persistent||Oe(),ct("")):(p.inputValue="",p.previousQuery=null,p.isBeforeHide=!0,He(""))}),he(()=>e.modelValue,(Re,ht)=>{var zt;(!Re||Ce(Re)&&Re.length===0||e.multiple&&!Yn(Re.toString(),p.previousValue)||!e.multiple&&it(Re)!==it(p.previousValue))&&$d(!0),!Yn(Re,ht)&&e.validateEvent&&((zt=i==null?void 0:i.validate)==null||zt.call(i,"change").catch(zr=>void 0))},{deep:!0}),he(()=>e.options,()=>{const Re=x.value;(!Re||Re&&document.activeElement!==Re)&&$d()},{deep:!0,flush:"post"}),he(()=>U.value,()=>(Oe(),M.value&&ze(M.value.resetScrollTop))),Ga(()=>{p.isBeforeHide||pe()}),Ga(()=>{const{valueKey:Re,options:ht}=e,zt=new Map;for(const jt of ht){const zr=c(jt);let Oo=zr;if(St(Oo)&&(Oo=ur(zr,Re)),zt.get(Oo))break;zt.set(Oo,!0)}}),Et(()=>{$d()}),On(y,$t),On(b,Pa),On(P,fi),On(k,w1),On(E,Ji);let x1;return he(()=>mt.value,Re=>{Re?x1=On(M,fi).stop:(x1==null||x1(),x1=void 0),t("visible-change",Re)}),{inputId:s,collapseTagSize:Fe,currentPlaceholder:en,expanded:G,emptyText:ae,popupHeight:X,debounce:se,allOptions:B,allOptionsValueMap:Ne,filteredOptions:U,iconComponent:re,iconReverse:ce,tagStyle:xe,collapseTagStyle:je,popperSize:g,dropdownMenuVisible:mt,hasModelValue:te,shouldShowPlaceholder:Ke,selectDisabled:$,selectSize:be,needStatusIcon:Y,showClearBtn:oe,states:p,isFocused:L,nsSelect:r,nsInput:a,inputRef:x,menuRef:M,tagMenuRef:k,tooltipRef:w,tagTooltipRef:S,selectRef:y,wrapperRef:P,selectionRef:b,prefixRef:C,suffixRef:T,collapseItemRef:E,popperRef:Qe,validateState:ie,validateIcon:Z,showTagList:Nt,collapseTagList:Te,debouncedOnInputChange:Ye,deleteTag:S1,getLabel:u,getValue:c,getDisabled:f,getValueKey:it,getIndex:sl,handleClear:G4,handleClickOutside:tr,handleDel:W4,handleEsc:F4,focus:il,blur:z4,handleMenuEnter:va,handleResize:$t,resetSelectionWidth:Pa,updateTooltip:fi,updateTagTooltip:w1,updateOptions:pe,toggleMenu:Mn,scrollTo:na,onInput:Nn,onKeyboardNavigate:Cc,onKeyboardSelect:Le,onSelect:xc,onHover:vt,handleCompositionStart:I,handleCompositionEnd:O,handleCompositionUpdate:z}},Snt=q({name:"ElSelectV2",components:{ElSelectMenu:bnt,ElTag:Ol,ElTooltip:ta,ElIcon:Xe},directives:{ClickOutside:pc},props:Jtt,emits:ent,setup(e,{emit:t}){const n=R(()=>{const{modelValue:l,multiple:u}=e,c=u?[]:void 0;return Ce(l)?u?l:c:u?c:l}),r=wnt(sn({...kr(e),modelValue:n}),t),{calculatorRef:a,inputStyle:o}=lE(),i=ea();Ut(pE,{props:sn({...kr(e),height:r.popupHeight,modelValue:n}),expanded:r.expanded,tooltipRef:r.tooltipRef,contentId:i,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect});const s=R(()=>e.multiple?r.states.cachedOptions.map(l=>r.getLabel(l)):r.states.selectedLabel);return{...r,modelValue:n,selectedLabel:s,calculatorRef:a,inputStyle:o,contentId:i,BORDER_HORIZONTAL_WIDTH:MQ}}}),xnt=["id","autocomplete","tabindex","aria-expanded","aria-label","disabled","aria-controls","aria-activedescendant","readonly","name"],Cnt=["textContent"],Tnt={key:1};function knt(e,t,n,r,a,o){const i=Ft("el-tag"),s=Ft("el-tooltip"),l=Ft("el-icon"),u=Ft("el-select-menu"),c=xm("click-outside");return xt((D(),H("div",{ref:"selectRef",class:W([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[15]||(t[15]=f=>e.states.inputHovering=!0),onMouseleave:t[16]||(t[16]=f=>e.states.inputHovering=!1)},[Q(s,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[14]||(t[14]=f=>e.states.isBeforeHide=!1)},{default:ee(()=>{var f,d;return[N("div",{ref:"wrapperRef",class:W([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[11]||(t[11]=ut((...v)=>e.toggleMenu&&e.toggleMenu(...v),["prevent"]))},[e.$slots.prefix?(D(),H("div",{key:0,ref:"prefixRef",class:W(e.nsSelect.e("prefix"))},[ue(e.$slots,"prefix")],2)):le("v-if",!0),N("div",{ref:"selectionRef",class:W([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?ue(e.$slots,"tag",{key:0,data:e.states.cachedOptions,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(D(!0),H(qe,null,Wt(e.showTagList,v=>(D(),H("div",{key:e.getValueKey(e.getValue(v)),class:W(e.nsSelect.e("selected-item"))},[Q(i,{closable:!e.selectDisabled&&!e.getDisabled(v),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:et(e.tagStyle),onClose:h=>e.deleteTag(h,v)},{default:ee(()=>[N("span",{class:W(e.nsSelect.e("tags-text"))},[ue(e.$slots,"label",{index:e.getIndex(v),label:e.getLabel(v),value:e.getValue(v)},()=>[gt(Ae(e.getLabel(v)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?(D(),de(s,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,teleported:e.teleported},{default:ee(()=>[N("div",{ref:"collapseItemRef",class:W(e.nsSelect.e("selected-item"))},[Q(i,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:et(e.collapseTagStyle),"disable-transitions":""},{default:ee(()=>[N("span",{class:W(e.nsSelect.e("tags-text"))}," + "+Ae(e.modelValue.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:ee(()=>[N("div",{ref:"tagMenuRef",class:W(e.nsSelect.e("selection"))},[(D(!0),H(qe,null,Wt(e.collapseTagList,v=>(D(),H("div",{key:e.getValueKey(e.getValue(v)),class:W(e.nsSelect.e("selected-item"))},[Q(i,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(v),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:h=>e.deleteTag(h,v)},{default:ee(()=>[N("span",{class:W(e.nsSelect.e("tags-text"))},[ue(e.$slots,"label",{index:e.getIndex(v),label:e.getLabel(v),value:e.getValue(v)},()=>[gt(Ae(e.getLabel(v)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported"])):le("v-if",!0)]):le("v-if",!0),N("div",{class:W([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled)])},[xt(N("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":t[0]||(t[0]=v=>e.states.inputValue=v),style:et(e.inputStyle),autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-autocomplete":"none","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:W([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox","aria-controls":e.contentId,"aria-activedescendant":e.states.hoveringIndex>=0?`${e.contentId}-${e.states.hoveringIndex}`:"",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:t[1]||(t[1]=(...v)=>e.onInput&&e.onInput(...v)),onCompositionstart:t[2]||(t[2]=(...v)=>e.handleCompositionStart&&e.handleCompositionStart(...v)),onCompositionupdate:t[3]||(t[3]=(...v)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...v)),onCompositionend:t[4]||(t[4]=(...v)=>e.handleCompositionEnd&&e.handleCompositionEnd(...v)),onKeydown:[t[5]||(t[5]=Wn(ut(v=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[6]||(t[6]=Wn(ut(v=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[7]||(t[7]=Wn(ut((...v)=>e.onKeyboardSelect&&e.onKeyboardSelect(...v),["stop","prevent"]),["enter"])),t[8]||(t[8]=Wn(ut((...v)=>e.handleEsc&&e.handleEsc(...v),["stop","prevent"]),["esc"])),t[9]||(t[9]=Wn(ut((...v)=>e.handleDel&&e.handleDel(...v),["stop"]),["delete"]))],onClick:t[10]||(t[10]=ut((...v)=>e.toggleMenu&&e.toggleMenu(...v),["stop"]))},null,46,xnt),[[oc,e.states.inputValue]]),e.filterable?(D(),H("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:W(e.nsSelect.e("input-calculator")),textContent:Ae(e.states.inputValue)},null,10,Cnt)):le("v-if",!0)],2),e.shouldShowPlaceholder?(D(),H("div",{key:1,class:W([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?ue(e.$slots,"label",{key:0,index:(d=(f=e.allOptionsValueMap.get(e.modelValue))==null?void 0:f.index)!=null?d:-1,label:e.currentPlaceholder,value:e.modelValue},()=>[N("span",null,Ae(e.currentPlaceholder),1)]):(D(),H("span",Tnt,Ae(e.currentPlaceholder),1))],2)):le("v-if",!0)],2),N("div",{ref:"suffixRef",class:W(e.nsSelect.e("suffix"))},[e.iconComponent?xt((D(),de(l,{key:0,class:W([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:ee(()=>[(D(),de(Tt(e.iconComponent)))]),_:1},8,["class"])),[[tn,!e.showClearBtn]]):le("v-if",!0),e.showClearBtn&&e.clearIcon?(D(),de(l,{key:1,class:W([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:ut(e.handleClear,["prevent","stop"])},{default:ee(()=>[(D(),de(Tt(e.clearIcon)))]),_:1},8,["class","onClick"])):le("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(D(),de(l,{key:2,class:W([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:ee(()=>[(D(),de(Tt(e.validateIcon)))]),_:1},8,["class"])):le("v-if",!0)],2)],2)]}),content:ee(()=>[Q(u,{id:e.contentId,ref:"menuRef",data:e.filteredOptions,width:e.popperSize-e.BORDER_HORIZONTAL_WIDTH,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn,"aria-label":e.ariaLabel},Ua({default:ee(f=>[ue(e.$slots,"default",Cs(Ms(f)))]),_:2},[e.$slots.header?{name:"header",fn:ee(()=>[N("div",{class:W(e.nsSelect.be("dropdown","header")),onClick:t[12]||(t[12]=ut(()=>{},["stop"]))},[ue(e.$slots,"header")],2)]),key:"0"}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:ee(()=>[N("div",{class:W(e.nsSelect.be("dropdown","loading"))},[ue(e.$slots,"loading")],2)]),key:"1"}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:ee(()=>[N("div",{class:W(e.nsSelect.be("dropdown","empty"))},[ue(e.$slots,"empty",{},()=>[N("span",null,Ae(e.emptyText),1)])],2)]),key:"2"}:void 0,e.$slots.footer?{name:"footer",fn:ee(()=>[N("div",{class:W(e.nsSelect.be("dropdown","footer")),onClick:t[13]||(t[13]=ut(()=>{},["stop"]))},[ue(e.$slots,"footer")],2)]),key:"3"}:void 0]),1032,["id","data","width","hovering-index","scrollbar-always-on","aria-label"])]),_:3},8,["visible","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","placement","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],34)),[[c,e.handleClickOutside,e.popperRef]])}var Mnt=De(Snt,[["render",knt],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);const Ant=_t(Mnt),Ent=Ie({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:ne([Number,Object])}}),Int=Ie({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),Lnt=q({name:"ElSkeletonItem",__name:"skeleton-item",props:Int,setup(e){const t=we("skeleton");return(n,r)=>(D(),H("div",{class:W([_(t).e("item"),_(t).e(n.variant)])},[n.variant==="image"?(D(),de(_(oZ),{key:0})):le("v-if",!0)],2))}});var q_=De(Lnt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const Dnt=(e,t=0)=>{if(t===0)return e;const n=St(t)&&!!t.initVal,r=K(n);let a=null;const o=s=>{if(Jt(s)){r.value=e.value;return}a&&clearTimeout(a),a=setTimeout(()=>{r.value=e.value},s)},i=s=>{s==="leading"?rt(t)?o(t):o(t.leading):St(t)?o(t.trailing):r.value=!1};return Et(()=>i("leading")),he(()=>e.value,s=>{i(s?"leading":"trailing")}),r},Pnt=q({name:"ElSkeleton",__name:"skeleton",props:Ent,setup(e,{expose:t}){const n=e,r=we("skeleton"),a=Dnt(vn(n,"loading"),n.throttle);return t({uiLoading:a}),(o,i)=>_(a)?(D(),H("div",It({key:0,class:[_(r).b(),_(r).is("animated",o.animated)]},o.$attrs),[(D(!0),H(qe,null,Wt(o.count,s=>(D(),H(qe,{key:s},[_(a)?ue(o.$slots,"template",{key:s},()=>[Q(q_,{class:W(_(r).is("first")),variant:"p"},null,8,["class"]),(D(!0),H(qe,null,Wt(o.rows,l=>(D(),de(q_,{key:l,class:W([_(r).e("paragraph"),_(r).is("last",l===o.rows&&o.rows>1)]),variant:"p"},null,8,["class"]))),128))]):le("v-if",!0)],64))),128))],16)):ue(o.$slots,"default",Cs(It({key:1},o.$attrs)))}});var Rnt=De(Pnt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const Ont=_t(Rnt,{SkeletonItem:q_}),Nnt=Kn(q_),YQ=Symbol("sliderContextKey"),Bnt=Ie({modelValue:{type:ne([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:wr,inputSize:wr,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:ne(Function),default:void 0},disabled:{type:Boolean,default:void 0},range:Boolean,vertical:Boolean,height:String,rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:ne(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:ou,default:"top"},marks:{type:ne(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...Da(["ariaLabel"])}),r8=e=>rt(e)||Ce(e)&&e.every(rt),Vnt={[dt]:r8,[dr]:r8,[Ht]:r8},$nt=Ie({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:ou,default:"top"}}),znt={[dt]:e=>rt(e)},Fnt=(e,t,n)=>{const r=K(),a=K(!1),o=R(()=>t.value instanceof Function),i=R(()=>o.value&&t.value(e.modelValue)||e.modelValue),s=Ys(()=>{n.value&&(a.value=!0)},50),l=Ys(()=>{n.value&&(a.value=!1)},50);return{tooltip:r,tooltipVisible:a,formatValue:i,displayTooltip:s,hideTooltip:l}},Hnt=(e,t,n)=>{const{disabled:r,min:a,max:o,step:i,showTooltip:s,persistent:l,precision:u,sliderSize:c,formatTooltip:f,emitChange:d,resetSize:v,updateDragging:h}=Ue(YQ),{tooltip:p,tooltipVisible:g,formatValue:m,displayTooltip:y,hideTooltip:b}=Fnt(e,f,s),w=K(),S=R(()=>`${(e.modelValue-a.value)/(o.value-a.value)*100}%`),x=R(()=>e.vertical?{bottom:S.value}:{left:S.value}),C=()=>{t.hovering=!0,y()},T=()=>{t.hovering=!1,t.dragging||b()},M=G=>{r.value||(G.preventDefault(),V(G),window.addEventListener("mousemove",B),window.addEventListener("touchmove",B),window.addEventListener("mouseup",F),window.addEventListener("touchend",F),window.addEventListener("contextmenu",F),w.value.focus())},k=G=>{r.value||(t.newPosition=Number.parseFloat(S.value)+G/(o.value-a.value)*100,U(t.newPosition),d())},E=()=>{k(-i.value)},A=()=>{k(i.value)},I=()=>{k(-i.value*4)},O=()=>{k(i.value*4)},z=()=>{r.value||(U(0),d())},$=()=>{r.value||(U(100),d())},P=G=>{const Y=xn(G);let X=!0;switch(Y){case ke.left:case ke.down:E();break;case ke.right:case ke.up:A();break;case ke.home:z();break;case ke.end:$();break;case ke.pageDown:I();break;case ke.pageUp:O();break;default:X=!1;break}X&&G.preventDefault()},L=G=>{let Y,X;return G.type.startsWith("touch")?(X=G.touches[0].clientY,Y=G.touches[0].clientX):(X=G.clientY,Y=G.clientX),{clientX:Y,clientY:X}},V=G=>{t.dragging=!0,t.isClick=!0;const{clientX:Y,clientY:X}=L(G);e.vertical?t.startY=X:t.startX=Y,t.startPosition=Number.parseFloat(S.value),t.newPosition=t.startPosition},B=G=>{if(t.dragging){t.isClick=!1,y(),v();let Y;const{clientX:X,clientY:te}=L(G);e.vertical?(t.currentY=te,Y=(t.startY-t.currentY)/c.value*100):(t.currentX=X,Y=(t.currentX-t.startX)/c.value*100),t.newPosition=t.startPosition+Y,U(t.newPosition)}},F=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||b(),t.isClick||U(t.newPosition),d()},0),window.removeEventListener("mousemove",B),window.removeEventListener("touchmove",B),window.removeEventListener("mouseup",F),window.removeEventListener("touchend",F),window.removeEventListener("contextmenu",F))},U=async G=>{if(G===null||Number.isNaN(+G))return;G=g4(G,0,100);const Y=Math.floor((o.value-a.value)/i.value),X=Y*i.value/(o.value-a.value)*100,te=X+(100-X)/2;let oe;if(G<X){const re=X/Y,ce=Math.round(G/re);oe=a.value+ce*i.value}else G<te?oe=a.value+Y*i.value:oe=o.value;oe=Number.parseFloat(oe.toFixed(u.value)),oe!==e.modelValue&&n(dt,oe),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await ze(),t.dragging&&y(),p.value.updatePopper()};return he(()=>t.dragging,G=>{h(G)}),fn(w,"touchstart",M,{passive:!1}),{disabled:r,button:w,tooltip:p,tooltipVisible:g,showTooltip:s,persistent:l,wrapperStyle:x,formatValue:m,handleMouseEnter:C,handleMouseLeave:T,onButtonDown:M,onKeyDown:P,setPosition:U}},Wnt=["tabindex"],Gnt=q({name:"ElSliderButton",__name:"button",props:$nt,emits:znt,setup(e,{expose:t,emit:n}){const r=e,a=n,o=we("slider"),i=sn({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),s=R(()=>f.value?d.value:!1),{disabled:l,button:u,tooltip:c,showTooltip:f,persistent:d,tooltipVisible:v,wrapperStyle:h,formatValue:p,handleMouseEnter:g,handleMouseLeave:m,onButtonDown:y,onKeyDown:b,setPosition:w}=Hnt(r,i,a),{hovering:S,dragging:x}=kr(i);return t({onButtonDown:y,onKeyDown:b,setPosition:w,hovering:S,dragging:x}),(C,T)=>(D(),H("div",{ref_key:"button",ref:u,class:W([_(o).e("button-wrapper"),{hover:_(S),dragging:_(x)}]),style:et(_(h)),tabindex:_(l)?void 0:0,onMouseenter:T[0]||(T[0]=(...M)=>_(g)&&_(g)(...M)),onMouseleave:T[1]||(T[1]=(...M)=>_(m)&&_(m)(...M)),onMousedown:T[2]||(T[2]=(...M)=>_(y)&&_(y)(...M)),onFocus:T[3]||(T[3]=(...M)=>_(g)&&_(g)(...M)),onBlur:T[4]||(T[4]=(...M)=>_(m)&&_(m)(...M)),onKeydown:T[5]||(T[5]=(...M)=>_(b)&&_(b)(...M))},[Q(_(ta),{ref_key:"tooltip",ref:c,visible:_(v),placement:C.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":C.tooltipClass,disabled:!_(f),persistent:s.value},{content:ee(()=>[N("span",null,Ae(_(p)),1)]),default:ee(()=>[N("div",{class:W([_(o).e("button"),{hover:_(S),dragging:_(x)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,Wnt))}});var BV=De(Gnt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const Unt=Ie({mark:{type:ne([String,Object]),default:void 0}});var Knt=q({name:"ElSliderMarker",props:Unt,setup(e){const t=we("slider"),n=R(()=>Ge(e.mark)?e.mark:e.mark.label),r=R(()=>Ge(e.mark)?void 0:e.mark.style);return()=>ot("div",{class:t.e("marks-text"),style:r.value},n.value)}});const jnt=(e,t,n)=>{const{formItem:r}=Yr(),a=Ln(),o=K(),i=K(),s={firstButton:o,secondButton:i},l=jn(),u=R(()=>Math.min(t.firstValue,t.secondValue)),c=R(()=>Math.max(t.firstValue,t.secondValue)),f=R(()=>e.range?`${100*(c.value-u.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),d=R(()=>e.range?`${100*(u.value-e.min)/(e.max-e.min)}%`:"0%"),v=R(()=>e.vertical?{height:e.height}:{}),h=R(()=>e.vertical?{height:f.value,bottom:d.value}:{width:f.value,left:d.value}),p=()=>{if(a.value){const E=a.value.getBoundingClientRect();t.sliderSize=E[e.vertical?"height":"width"]}},g=E=>{const A=e.min+E*(e.max-e.min)/100;if(!e.range)return o;let I;return Math.abs(u.value-A)<Math.abs(c.value-A)?I=t.firstValue<t.secondValue?"firstButton":"secondButton":I=t.firstValue>t.secondValue?"firstButton":"secondButton",s[I]},m=E=>{const A=g(E);return A.value.setPosition(E),A},y=E=>{t.firstValue=E??e.min,w(e.range?[u.value,c.value]:E??e.min)},b=E=>{t.secondValue=E,e.range&&w([u.value,c.value])},w=E=>{n(dt,E),n(dr,E)},S=async()=>{await ze(),n(Ht,e.range?[u.value,c.value]:e.modelValue)},x=E=>{var A,I,O,z,$,P;if(l.value||t.dragging)return;p();let L=0;if(e.vertical){const V=(O=(I=(A=E.touches)==null?void 0:A.item(0))==null?void 0:I.clientY)!=null?O:E.clientY;L=(a.value.getBoundingClientRect().bottom-V)/t.sliderSize*100}else{const V=(P=($=(z=E.touches)==null?void 0:z.item(0))==null?void 0:$.clientX)!=null?P:E.clientX,B=a.value.getBoundingClientRect().left;L=(V-B)/t.sliderSize*100}if(!(L<0||L>100))return m(L)};return{elFormItem:r,slider:a,firstButton:o,secondButton:i,sliderDisabled:l,minValue:u,maxValue:c,runwayStyle:v,barStyle:h,resetSize:p,setPosition:m,emitChange:S,onSliderWrapperPrevent:E=>{var A,I;((A=s.firstButton.value)!=null&&A.dragging||(I=s.secondButton.value)!=null&&I.dragging)&&E.preventDefault()},onSliderClick:E=>{x(E)&&S()},onSliderDown:async E=>{const A=x(E);A&&(await ze(),A.value.onButtonDown(E))},onSliderMarkerDown:E=>{if(l.value||t.dragging)return;m(E)&&S()},setFirstValue:y,setSecondValue:b}},Ynt=(e,t,n,r)=>({stops:R(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const i=Math.ceil((e.max-e.min)/e.step),s=100*e.step/(e.max-e.min),l=Array.from({length:i-1}).map((u,c)=>(c+1)*s);return e.range?l.filter(u=>u<100*(n.value-e.min)/(e.max-e.min)||u>100*(r.value-e.min)/(e.max-e.min)):l.filter(u=>u>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:i=>e.vertical?{bottom:`${i}%`}:{left:`${i}%`}}),qnt=e=>R(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,r)=>n-r).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),Xnt=(e,t,n,r,a,o)=>{const i=u=>{a(dt,u),a(dr,u)},s=()=>e.range?![n.value,r.value].every((u,c)=>u===t.oldValue[c]):e.modelValue!==t.oldValue,l=()=>{var u,c;e.min>e.max&&cr("Slider","min should not be greater than max.");const f=e.modelValue;e.range&&Ce(f)?f[1]<e.min?i([e.min,e.min]):f[0]>e.max?i([e.max,e.max]):f[0]<e.min?i([e.min,f[1]]):f[1]>e.max?i([f[0],e.max]):(t.firstValue=f[0],t.secondValue=f[1],s()&&(e.validateEvent&&((u=o==null?void 0:o.validate)==null||u.call(o,"change").catch(d=>void 0)),t.oldValue=f.slice())):!e.range&&rt(f)&&!Number.isNaN(f)&&(f<e.min?i(e.min):f>e.max?i(e.max):(t.firstValue=f,s()&&(e.validateEvent&&((c=o==null?void 0:o.validate)==null||c.call(o,"change").catch(d=>void 0)),t.oldValue=f)))};l(),he(()=>t.dragging,u=>{u||l()}),he(()=>e.modelValue,(u,c)=>{t.dragging||Ce(u)&&Ce(c)&&u.every((f,d)=>f===c[d])&&t.firstValue===u[0]&&t.secondValue===u[1]||l()},{deep:!0}),he(()=>[e.min,e.max],()=>{l()})},Znt=(e,t,n)=>{const r=K();return Et(async()=>{e.range?(Ce(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(!rt(e.modelValue)||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),fn(window,"resize",n),await ze(),n()}),{sliderWrapper:r}},Jnt=["id","role","aria-label","aria-labelledby"],Qnt={key:1},ert=q({name:"ElSlider",__name:"slider",props:Bnt,emits:Vnt,setup(e,{expose:t,emit:n}){const r=e,a=n,o=we("slider"),{t:i}=Kt(),s=sn({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:l,slider:u,firstButton:c,secondButton:f,sliderDisabled:d,minValue:v,maxValue:h,runwayStyle:p,barStyle:g,resetSize:m,emitChange:y,onSliderWrapperPrevent:b,onSliderClick:w,onSliderDown:S,onSliderMarkerDown:x,setFirstValue:C,setSecondValue:T}=jnt(r,s,a),{stops:M,getStopStyle:k}=Ynt(r,s,v,h),{inputId:E,isLabeledByFormItem:A}=Ro(r,{formItemContext:l}),I=vr(),O=R(()=>r.inputSize||I.value),z=R(()=>r.ariaLabel||i("el.slider.defaultLabel",{min:r.min,max:r.max})),$=R(()=>r.range?r.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):z.value),P=R(()=>r.formatValueText?r.formatValueText(Y.value):`${Y.value}`),L=R(()=>r.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),V=R(()=>r.formatValueText?r.formatValueText(X.value):`${X.value}`),B=R(()=>[o.b(),o.m(I.value),o.is("vertical",r.vertical),{[o.m("with-input")]:r.showInput}]),F=qnt(r);Xnt(r,s,v,h,a,l);const U=R(()=>{const re=[r.min,r.max,r.step].map(ce=>{const ie=`${ce}`.split(".")[1];return ie?ie.length:0});return Math.max.apply(null,re)}),{sliderWrapper:G}=Znt(r,s,m),{firstValue:Y,secondValue:X,sliderSize:te}=kr(s),oe=re=>{s.dragging=re};return fn(G,"touchstart",b,{passive:!1}),fn(G,"touchmove",b,{passive:!1}),Ut(YQ,{...kr(r),sliderSize:te,disabled:d,precision:U,emitChange:y,resetSize:m,updateDragging:oe}),t({onSliderClick:w}),(re,ce)=>{var ie,Z;return D(),H("div",{id:re.range?_(E):void 0,ref_key:"sliderWrapper",ref:G,class:W(B.value),role:re.range?"group":void 0,"aria-label":re.range&&!_(A)?z.value:void 0,"aria-labelledby":re.range&&_(A)?(ie=_(l))==null?void 0:ie.labelId:void 0},[N("div",{ref_key:"slider",ref:u,class:W([_(o).e("runway"),{"show-input":re.showInput&&!re.range},_(o).is("disabled",_(d))]),style:et(_(p)),onMousedown:ce[0]||(ce[0]=(...se)=>_(S)&&_(S)(...se)),onTouchstartPassive:ce[1]||(ce[1]=(...se)=>_(S)&&_(S)(...se))},[N("div",{class:W(_(o).e("bar")),style:et(_(g))},null,6),Q(BV,{id:re.range?void 0:_(E),ref_key:"firstButton",ref:c,"model-value":_(Y),vertical:re.vertical,"tooltip-class":re.tooltipClass,placement:re.placement,role:"slider","aria-label":re.range||!_(A)?$.value:void 0,"aria-labelledby":!re.range&&_(A)?(Z=_(l))==null?void 0:Z.labelId:void 0,"aria-valuemin":re.min,"aria-valuemax":re.range?_(X):re.max,"aria-valuenow":_(Y),"aria-valuetext":P.value,"aria-orientation":re.vertical?"vertical":"horizontal","aria-disabled":_(d),"onUpdate:modelValue":_(C)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),re.range?(D(),de(BV,{key:0,ref_key:"secondButton",ref:f,"model-value":_(X),vertical:re.vertical,"tooltip-class":re.tooltipClass,placement:re.placement,role:"slider","aria-label":L.value,"aria-valuemin":_(Y),"aria-valuemax":re.max,"aria-valuenow":_(X),"aria-valuetext":V.value,"aria-orientation":re.vertical?"vertical":"horizontal","aria-disabled":_(d),"onUpdate:modelValue":_(T)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):le("v-if",!0),re.showStops?(D(),H("div",Qnt,[(D(!0),H(qe,null,Wt(_(M),(se,J)=>(D(),H("div",{key:J,class:W(_(o).e("stop")),style:et(_(k)(se))},null,6))),128))])):le("v-if",!0),_(F).length>0?(D(),H(qe,{key:2},[N("div",null,[(D(!0),H(qe,null,Wt(_(F),(se,J)=>(D(),H("div",{key:J,style:et(_(k)(se.position)),class:W([_(o).e("stop"),_(o).e("marks-stop")])},null,6))),128))]),N("div",{class:W(_(o).e("marks"))},[(D(!0),H(qe,null,Wt(_(F),(se,J)=>(D(),de(_(Knt),{key:J,mark:se.mark,style:et(_(k)(se.position)),onMousedown:ut(ae=>_(x)(se.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):le("v-if",!0)],38),re.showInput&&!re.range?(D(),de(_(kQ),{key:0,ref:"input","model-value":_(Y),class:W(_(o).e("input")),step:re.step,disabled:_(d),controls:re.showInputControls,min:re.min,max:re.max,precision:U.value,size:O.value,"onUpdate:modelValue":_(C),onChange:_(y)},null,8,["model-value","class","step","disabled","controls","min","max","precision","size","onUpdate:modelValue","onChange"])):le("v-if",!0)],10,Jnt)}}});var trt=De(ert,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const nrt=_t(trt),rrt=Ie({prefixCls:{type:String}}),VV=q({name:"ElSpaceItem",props:rrt,setup(e,{slots:t}){const n=we("space"),r=R(()=>`${e.prefixCls||n.b()}__item`);return()=>ot("div",{class:r.value},ue(t,"default"))}}),$V={small:8,default:12,large:16};function art(e){const t=we("space"),n=R(()=>[t.b(),t.m(e.direction),e.class]),r=K(0),a=K(0),o=R(()=>{const s=e.wrap||e.fill?{flexWrap:"wrap"}:{},l={alignItems:e.alignment},u={rowGap:`${a.value}px`,columnGap:`${r.value}px`};return[s,l,u,e.style]}),i=R(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return Ga(()=>{const{size:s="small",wrap:l,direction:u,fill:c}=e;if(Ce(s)){const[f=0,d=0]=s;r.value=f,a.value=d}else{let f;rt(s)?f=s:f=$V[s||"small"]||$V.small,(l||c)&&u==="horizontal"?r.value=a.value=f:u==="horizontal"?(r.value=f,a.value=0):(a.value=f,r.value=0)}}),{classes:n,containerStyle:o,itemStyle:i}}const ort=Ie({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:ne([String,Object,Array]),default:""},style:{type:ne([String,Array,Object]),default:""},alignment:{type:ne(String),default:"center"},prefixCls:{type:String},spacer:{type:ne([Object,String,Number,Array]),default:null,validator:e=>wn(e)||rt(e)||Ge(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:nl,validator:e=>rt(e)||Ce(e)&&e.length===2&&e.every(rt)}}),irt=q({name:"ElSpace",props:ort,setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:a}=art(e);function o(i,s="",l=[]){const{prefixCls:u}=e;return i.forEach((c,f)=>{sT(c)?Ce(c.children)&&c.children.forEach((d,v)=>{sT(d)&&Ce(d.children)?o(d.children,`${s+v}-`,l):wn(d)&&(d==null?void 0:d.type)===$n?l.push(d):l.push(Q(VV,{style:a.value,prefixCls:u,key:`nested-${s+v}`},{default:()=>[d]},Uo.PROPS|Uo.STYLE,["style","prefixCls"]))}):IUe(c)&&l.push(Q(VV,{style:a.value,prefixCls:u,key:`LoopKey${s+f}`},{default:()=>[c]},Uo.PROPS|Uo.STYLE,["style","prefixCls"]))}),l}return()=>{var i;const{spacer:s,direction:l}=e,u=ue(t,"default",{key:0},()=>[]);if(((i=u.children)!=null?i:[]).length===0)return null;if(Ce(u.children)){let c=o(u.children);if(s){const f=c.length-1;c=c.reduce((d,v,h)=>{const p=[...d,v];return h!==f&&p.push(Q("span",{style:[a.value,l==="vertical"?"width: 100%":null],key:h},[wn(s)?s:gt(s,Uo.TEXT)],Uo.STYLE)),p},[])}return Q("div",{class:n.value,style:r.value},c,Uo.STYLE|Uo.CLASS)}return u.children}}}),srt=_t(irt),lrt=Ie({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:ne([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:ne([String,Object,Array])}}),urt=q({name:"ElStatistic",__name:"statistic",props:lrt,setup(e,{expose:t}){const n=e,r=we("statistic"),a=R(()=>{const{value:o,formatter:i,precision:s,decimalSeparator:l,groupSeparator:u}=n;if(Je(i))return i(o);if(!rt(o)||Number.isNaN(o))return o;let[c,f=""]=String(o).split(".");return f=f.padEnd(s,"0").slice(0,s>0?s:0),c=c.replace(/\B(?=(\d{3})+(?!\d))/g,u),[c,f].join(f?l:"")});return t({displayValue:a}),(o,i)=>(D(),H("div",{class:W(_(r).b())},[o.$slots.title||o.title?(D(),H("div",{key:0,class:W(_(r).e("head"))},[ue(o.$slots,"title",{},()=>[gt(Ae(o.title),1)])],2)):le("v-if",!0),N("div",{class:W(_(r).e("content"))},[o.$slots.prefix||o.prefix?(D(),H("div",{key:0,class:W(_(r).e("prefix"))},[ue(o.$slots,"prefix",{},()=>[N("span",null,Ae(o.prefix),1)])],2)):le("v-if",!0),N("span",{class:W(_(r).e("number")),style:et(o.valueStyle)},Ae(a.value),7),o.$slots.suffix||o.suffix?(D(),H("div",{key:1,class:W(_(r).e("suffix"))},[ue(o.$slots,"suffix",{},()=>[N("span",null,Ae(o.suffix),1)])],2)):le("v-if",!0)],2)],2))}});var crt=De(urt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const qQ=_t(crt),frt=Ie({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:ne([Number,Object]),default:0},valueStyle:{type:ne([String,Object,Array])}}),drt={finish:()=>!0,[Ht]:e=>rt(e)},vrt=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],zV=e=>rt(e)?new Date(e).getTime():e.valueOf(),FV=(e,t)=>{let n=e;const r=/\[([^\]]*)]/g;return vrt.reduce((o,[i,s])=>{const l=new RegExp(`${i}+(?![^\\[\\]]*\\])`,"g");if(l.test(o)){const u=Math.floor(n/s);return n-=u*s,o.replace(l,c=>String(u).padStart(c.length,"0"))}return o},t).replace(r,"$1")},hrt=q({name:"ElCountdown",__name:"countdown",props:frt,emits:drt,setup(e,{expose:t,emit:n}){const r=e,a=n;let o;const i=K(0),s=R(()=>FV(i.value,r.format)),l=f=>FV(f,r.format),u=()=>{o&&(jl(o),o=void 0)},c=()=>{const f=zV(r.value),d=()=>{let v=f-Date.now();a(Ht,v),v<=0?(v=0,u(),a("finish")):o=qs(d),i.value=v};o=qs(d)};return Et(()=>{i.value=zV(r.value)-Date.now(),he(()=>[r.value,r.format],()=>{u(),c()},{immediate:!0})}),un(()=>{u()}),t({displayValue:s}),(f,d)=>(D(),de(_(qQ),{value:i.value,title:f.title,prefix:f.prefix,suffix:f.suffix,"value-style":f.valueStyle,formatter:l},Ua({_:2},[Wt(f.$slots,(v,h)=>({name:h,fn:ee(()=>[ue(f.$slots,h)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var prt=De(hrt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const grt=_t(prt),mrt=Ie({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),yrt={[Ht]:(e,t)=>[e,t].every(rt)},XQ="ElSteps",brt=q({name:"ElSteps",__name:"steps",props:mrt,emits:yrt,setup(e,{emit:t}){const n=e,r=t,a=we("steps"),{children:o,addChild:i,removeChild:s,ChildrenSorter:l}=T4(bt(),"ElStep");return he(o,()=>{o.value.forEach((u,c)=>{u.setIndex(c)})}),Ut(XQ,{props:n,steps:o,addStep:i,removeStep:s}),he(()=>n.active,(u,c)=>{r(Ht,u,c)}),(u,c)=>(D(),H("div",{class:W([_(a).b(),_(a).m(u.simple?"simple":u.direction)])},[ue(u.$slots,"default"),Q(_(l))],2))}});var _rt=De(brt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const wrt=Ie({title:{type:String,default:""},icon:{type:pn},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),Srt=q({name:"ElStep",__name:"item",props:wrt,setup(e){const t=e,n=we("step"),r=K(-1),a=K({}),o=K(""),i=Ue(XQ),s=bt();let l=0,u=0;Et(()=>{he([()=>i.props.active,()=>i.props.processStatus,()=>i.props.finishStatus],([T],[M])=>{u=M||0,l=T-u,x(T)},{immediate:!0})});const c=R(()=>t.status||o.value),f=R(()=>{const T=i.steps.value[r.value-1];return T?T.internalStatus.value:"wait"}),d=R(()=>i.props.alignCenter),v=R(()=>i.props.direction==="vertical"),h=R(()=>i.props.simple),p=R(()=>i.steps.value.length),g=R(()=>{var T;return((T=i.steps.value[p.value-1])==null?void 0:T.uid)===s.uid}),m=R(()=>h.value?"":i.props.space),y=R(()=>[n.b(),n.is(h.value?"simple":i.props.direction),n.is("flex",g.value&&!m.value&&!d.value),n.is("center",d.value&&!v.value&&!h.value)]),b=R(()=>{const T={flexBasis:rt(m.value)?`${m.value}px`:m.value?m.value:`${100/(p.value-(d.value?0:1))}%`};return v.value||g.value&&(T.maxWidth=`${100/p.value}%`),T}),w=T=>{r.value=T},S=T=>{const M=T==="wait",E={transitionDelay:`${Math.abs(l)===1?0:l>0?(r.value+1-u)*150:-(r.value+1-i.props.active)*150}ms`},A=T===i.props.processStatus||M?0:100;E.borderWidth=A&&!h.value?"1px":0,E[i.props.direction==="vertical"?"height":"width"]=`${A}%`,a.value=E},x=T=>{T>r.value?o.value=i.props.finishStatus:T===r.value&&f.value!=="error"?o.value=i.props.processStatus:o.value="wait";const M=i.steps.value[r.value-1];M&&M.calcProgress(o.value)},C={uid:s.uid,getVnode:()=>s.vnode,currentStatus:c,internalStatus:o,setIndex:w,calcProgress:S};return i.addStep(C),un(()=>{i.removeStep(C)}),(T,M)=>(D(),H("div",{style:et(b.value),class:W(y.value)},[le(" icon & line "),N("div",{class:W([_(n).e("head"),_(n).is(c.value)])},[h.value?le("v-if",!0):(D(),H("div",{key:0,class:W(_(n).e("line"))},[N("i",{class:W(_(n).e("line-inner")),style:et(a.value)},null,6)],2)),N("div",{class:W([_(n).e("icon"),_(n).is(T.icon||T.$slots.icon?"icon":"text")])},[ue(T.$slots,"icon",{},()=>[T.icon?(D(),de(_(Xe),{key:0,class:W(_(n).e("icon-inner"))},{default:ee(()=>[(D(),de(Tt(T.icon)))]),_:1},8,["class"])):c.value==="success"?(D(),de(_(Xe),{key:1,class:W([_(n).e("icon-inner"),_(n).is("status")])},{default:ee(()=>[Q(_(gp))]),_:1},8,["class"])):c.value==="error"?(D(),de(_(Xe),{key:2,class:W([_(n).e("icon-inner"),_(n).is("status")])},{default:ee(()=>[Q(_(Io))]),_:1},8,["class"])):h.value?le("v-if",!0):(D(),H("div",{key:3,class:W(_(n).e("icon-inner"))},Ae(r.value+1),3))])],2)],2),le(" title & description "),N("div",{class:W(_(n).e("main"))},[N("div",{class:W([_(n).e("title"),_(n).is(c.value)])},[ue(T.$slots,"title",{},()=>[gt(Ae(T.title),1)])],2),h.value?(D(),H("div",{key:0,class:W(_(n).e("arrow"))},null,2)):(D(),H("div",{key:1,class:W([_(n).e("description"),_(n).is(c.value)])},[ue(T.$slots,"description",{},()=>[gt(Ae(T.description),1)])],2))],2)],6))}});var ZQ=De(Srt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const xrt=_t(_rt,{Step:ZQ}),Crt=Kn(ZQ),JQ=e=>["",...nl].includes(e),Trt=Ie({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:JQ},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:pn},activeActionIcon:{type:pn},activeIcon:{type:pn},inactiveIcon:{type:pn},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:ne(Function)},id:String,tabindex:{type:[String,Number]},...Da(["ariaLabel"])}),krt={[dt]:e=>hn(e)||Ge(e)||rt(e),[Ht]:e=>hn(e)||Ge(e)||rt(e),[dr]:e=>hn(e)||Ge(e)||rt(e)},Mrt=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],Art=["aria-hidden"],Ert={key:1},Irt={key:1},Lrt=["aria-hidden"],HV="ElSwitch",Drt=q({name:HV,__name:"switch",props:Trt,emits:krt,setup(e,{expose:t,emit:n}){const r=e,a=n,{formItem:o}=Yr(),i=vr(),s=we("switch"),{inputId:l}=Ro(r,{formItemContext:o}),u=jn(R(()=>{if(r.loading)return!0})),c=K(r.modelValue!==!1),f=Ln(),d=R(()=>[s.b(),s.m(i.value),s.is("disabled",u.value),s.is("checked",m.value)]),v=R(()=>[s.e("label"),s.em("label","left"),s.is("active",!m.value)]),h=R(()=>[s.e("label"),s.em("label","right"),s.is("active",m.value)]),p=R(()=>({width:Un(r.width)}));he(()=>r.modelValue,()=>{c.value=!0});const g=R(()=>c.value?r.modelValue:!1),m=R(()=>g.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(g.value)||(a(dt,r.inactiveValue),a(Ht,r.inactiveValue),a(dr,r.inactiveValue)),he(m,S=>{var x;f.value.checked=S,r.validateEvent&&((x=o==null?void 0:o.validate)==null||x.call(o,"change").catch(C=>void 0))});const y=()=>{const S=m.value?r.inactiveValue:r.activeValue;a(dt,S),a(Ht,S),a(dr,S),ze(()=>{f.value.checked=m.value})},b=()=>{if(u.value)return;const{beforeChange:S}=r;if(!S){y();return}const x=S();[tc(x),hn(x)].includes(!0)||cr(HV,"beforeChange must return type `Promise<boolean>` or `boolean`"),tc(x)?x.then(T=>{T&&y()}).catch(T=>{}):x&&y()},w=()=>{var S,x;(x=(S=f.value)==null?void 0:S.focus)==null||x.call(S)};return Et(()=>{f.value.checked=m.value}),t({focus:w,checked:m}),(S,x)=>(D(),H("div",{class:W(d.value),onClick:ut(b,["prevent"])},[N("input",{id:_(l),ref_key:"input",ref:f,class:W(_(s).e("input")),type:"checkbox",role:"switch","aria-checked":m.value,"aria-disabled":_(u),"aria-label":S.ariaLabel,name:S.name,"true-value":S.activeValue,"false-value":S.inactiveValue,disabled:_(u),tabindex:S.tabindex,onChange:y,onKeydown:Wn(b,["enter"])},null,42,Mrt),!S.inlinePrompt&&(S.inactiveIcon||S.inactiveText||S.$slots.inactive)?(D(),H("span",{key:0,class:W(v.value)},[ue(S.$slots,"inactive",{},()=>[S.inactiveIcon?(D(),de(_(Xe),{key:0},{default:ee(()=>[(D(),de(Tt(S.inactiveIcon)))]),_:1})):le("v-if",!0),!S.inactiveIcon&&S.inactiveText?(D(),H("span",{key:1,"aria-hidden":m.value},Ae(S.inactiveText),9,Art)):le("v-if",!0)])],2)):le("v-if",!0),N("span",{class:W(_(s).e("core")),style:et(p.value)},[S.inlinePrompt?(D(),H("div",{key:0,class:W(_(s).e("inner"))},[m.value?(D(),H("div",{key:1,class:W(_(s).e("inner-wrapper"))},[ue(S.$slots,"active",{},()=>[S.activeIcon?(D(),de(_(Xe),{key:0},{default:ee(()=>[(D(),de(Tt(S.activeIcon)))]),_:1})):le("v-if",!0),!S.activeIcon&&S.activeText?(D(),H("span",Irt,Ae(S.activeText),1)):le("v-if",!0)])],2)):(D(),H("div",{key:0,class:W(_(s).e("inner-wrapper"))},[ue(S.$slots,"inactive",{},()=>[S.inactiveIcon?(D(),de(_(Xe),{key:0},{default:ee(()=>[(D(),de(Tt(S.inactiveIcon)))]),_:1})):le("v-if",!0),!S.inactiveIcon&&S.inactiveText?(D(),H("span",Ert,Ae(S.inactiveText),1)):le("v-if",!0)])],2))],2)):le("v-if",!0),N("div",{class:W(_(s).e("action"))},[S.loading?(D(),de(_(Xe),{key:0,class:W(_(s).is("loading"))},{default:ee(()=>[Q(_(si))]),_:1},8,["class"])):m.value?ue(S.$slots,"active-action",{key:1},()=>[S.activeActionIcon?(D(),de(_(Xe),{key:0},{default:ee(()=>[(D(),de(Tt(S.activeActionIcon)))]),_:1})):le("v-if",!0)]):m.value?le("v-if",!0):ue(S.$slots,"inactive-action",{key:2},()=>[S.inactiveActionIcon?(D(),de(_(Xe),{key:0},{default:ee(()=>[(D(),de(Tt(S.inactiveActionIcon)))]),_:1})):le("v-if",!0)])],2)],6),!S.inlinePrompt&&(S.activeIcon||S.activeText||S.$slots.active)?(D(),H("span",{key:1,class:W(h.value)},[ue(S.$slots,"active",{},()=>[S.activeIcon?(D(),de(_(Xe),{key:0},{default:ee(()=>[(D(),de(Tt(S.activeIcon)))]),_:1})):le("v-if",!0),!S.activeIcon&&S.activeText?(D(),H("span",{key:1,"aria-hidden":!m.value},Ae(S.activeText),9,Lrt)):le("v-if",!0)])],2)):le("v-if",!0)],2))}});var Prt=De(Drt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const Rrt=_t(Prt),a8=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},Ort=function(e,t,n,r,a){if(!t&&!r&&(!a||Ce(a)&&!a.length))return e;Ge(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const o=r?null:function(s,l){return a?MX(Hr(a),u=>Ge(u)?ur(s,u):u(s,l,e)):(t!=="$key"&&St(s)&&"$value"in s&&(s=s.$value),[St(s)?t?ur(s,t):null:s])},i=function(s,l){var u,c,f,d,v,h;if(r)return r(s.value,l.value);for(let p=0,g=(c=(u=s.key)==null?void 0:u.length)!=null?c:0;p<g;p++){if(((f=s.key)==null?void 0:f[p])<((d=l.key)==null?void 0:d[p]))return-1;if(((v=s.key)==null?void 0:v[p])>((h=l.key)==null?void 0:h[p]))return 1}return 0};return e.map((s,l)=>({value:s,index:l,key:o?o(s,l):null})).sort((s,l)=>{let u=i(s,l);return u||(u=s.index-l.index),u*+n}).map(s=>s.value)},QQ=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},Nrt=function(e,t){let n=null;for(let r=0;r<e.columns.length;r++){const a=e.columns[r];if(a.columnKey===t){n=a;break}}return n||cr("ElTable",`No column matching with column-key: ${t}`),n},WV=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?QQ(e,r[0]):null},ia=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(Ge(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const a of n)r=r[a];return`${r}`}else if(Je(t))return t.call(null,e);return""},th=function(e,t,n=!1,r="children"){const a=e||[],o={};return a.forEach((i,s)=>{if(o[ia(i,t)]={row:i,index:s},n){const l=i[r];Ce(l)&&Object.assign(o,th(l,t,!0,r))}}),o};function Brt(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(nn(t,r)){const a=t[r];Jt(a)||(n[r]=a)}return n}function bE(e){return e===""||Jt(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function eee(e){return e===""||Jt(e)||(e=bE(e),Number.isNaN(e)&&(e=80)),e}function Vrt(e){return rt(e)?e:Ge(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function $rt(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function X_(e,t,n,r,a,o,i){let s=o??0,l=!1;const c=(()=>{if(!i)return e.indexOf(t);const p=ia(t,i);return e.findIndex(g=>ia(g,i)===p)})(),f=c!==-1,d=a==null?void 0:a.call(null,t,s),v=p=>{p==="add"?e.push(t):e.splice(c,1),l=!0},h=p=>{let g=0;const m=(r==null?void 0:r.children)&&p[r.children];return m&&Ce(m)&&(g+=m.length,m.forEach(y=>{g+=h(y)})),g};return(!a||d)&&(hn(n)?n&&!f?v("add"):!n&&f&&v("remove"):v(f?"remove":"add")),!(r!=null&&r.checkStrictly)&&(r!=null&&r.children)&&Ce(t[r.children])&&t[r.children].forEach(p=>{const g=X_(e,p,n??!f,r,a,s+1,i);s+=h(p)+1,g&&(l=g)}),l}function zrt(e,t,n="children",r="hasChildren",a=!1){const o=s=>!(Ce(s)&&s.length);function i(s,l,u){t(s,l,u),l.forEach(c=>{if(c[r]&&a){t(c,null,u+1);return}const f=c[n];o(f)||i(c,f,u+1)})}e.forEach(s=>{if(s[r]&&a){t(s,null,0);return}const l=s[n];o(l)||i(s,l,0)})}const Frt=(e,t,n,r)=>{const a={strategy:"fixed",...e.popperOptions},o=Je(r==null?void 0:r.tooltipFormatter)?r.tooltipFormatter({row:n,column:r,cellValue:Q0(n,r.property).value}):void 0;return wn(o)?{slotContent:o,content:null,...e,popperOptions:a}:{slotContent:null,content:o??t,...e,popperOptions:a}};let ga=null;function Hrt(e,t,n,r,a,o){var i;const s=Frt(e,t,n,r),l={...s,slotContent:void 0};if((ga==null?void 0:ga.trigger)===a){const h=(i=ga.vm)==null?void 0:i.component;AX(h==null?void 0:h.props,l),h&&s.slotContent&&(h.slots.content=()=>[s.slotContent]);return}ga==null||ga();const u=o==null?void 0:o.refs.tableWrapper,c=u==null?void 0:u.dataset.prefix,f=Q(ta,{virtualTriggering:!0,virtualRef:a,appendTo:u,placement:"top",transition:"none",offset:0,hideAfter:0,...l},s.slotContent?{content:()=>s.slotContent}:void 0);f.appContext={...o.appContext,...o};const d=document.createElement("div");zs(f,d),f.component.exposed.onOpen();const v=u==null?void 0:u.querySelector(`.${c}-scrollbar__wrap`);ga=()=>{var h,p;(p=(h=f.component)==null?void 0:h.exposed)!=null&&p.onClose&&f.component.exposed.onClose(),zs(null,d);const g=ga;v==null||v.removeEventListener("scroll",g),g.trigger=void 0,g.vm=void 0,ga=null},ga.trigger=a??void 0,ga.vm=f,v==null||v.addEventListener("scroll",ga)}function tee(e){return e.children?MX(e.children,tee):[e]}function GV(e,t){return e+t.colSpan}const nee=(e,t,n,r)=>{let a=0,o=e;const i=n.states.columns.value;if(r){const l=tee(r[e]);a=i.slice(0,i.indexOf(l[0])).reduce(GV,0),o=a+l.reduce(GV,0)-1}else a=e;let s;switch(t){case"left":o<n.states.fixedLeafColumnsLength.value&&(s="left");break;case"right":a>=i.length-n.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:o<n.states.fixedLeafColumnsLength.value?s="left":a>=i.length-n.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:a,after:o}:{}},_E=(e,t,n,r,a,o=0)=>{const i=[],{direction:s,start:l,after:u}=nee(t,n,r,a);if(s){const c=s==="left";i.push(`${e}-fixed-column--${s}`),c&&u+o===r.states.fixedLeafColumnsLength.value-1?i.push("is-last-column"):!c&&l-o===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&i.push("is-first-column")}return i};function UV(e,t){return e+(Xm(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const wE=(e,t,n,r)=>{const{direction:a,start:o=0,after:i=0}=nee(e,t,n,r);if(!a)return;const s={},l=a==="left",u=n.states.columns.value;return l?s.left=u.slice(0,o).reduce(UV,0):s.right=u.slice(i+1).reverse().reduce(UV,0),s},$h=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function ree(e){return e.some(t=>wn(t)?!(t.type===$n||t.type===qe&&!ree(t.children)):!0)?e:null}function Wrt(e){const t=bt(),n=K(!1),r=K([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(n.value)r.value=l.slice();else if(u){const c=th(r.value,u);r.value=l.reduce((f,d)=>{const v=ia(d,u);return c[v]&&f.push(d),f},[])}else r.value=[]},toggleRowExpansion:(l,u)=>{X_(r.value,l,u,void 0,void 0,void 0,e.rowKey.value)&&t.emit("expand-change",l,r.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],c=e.rowKey.value,f=th(u,c);r.value=l.reduce((d,v)=>{const h=f[v];return h&&d.push(h.row),d},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!th(r.value,u)[ia(l,u)]:r.value.includes(l)},states:{expandRows:r,defaultExpandAll:n}}}function Grt(e){const t=bt(),n=K(null),r=K(null),a=u=>{t.store.assertRowKey(),n.value=u,i(u)},o=()=>{n.value=null},i=u=>{var c;const{data:f,rowKey:d}=e;let v=null;d.value&&(v=(c=(_(f)||[]).find(h=>ia(h,d.value)===u))!=null?c:null),r.value=v??null,t.emit("current-change",r.value,null)};return{setCurrentRowKey:a,restoreCurrentRowKey:o,setCurrentRowByKey:i,updateCurrentRow:u=>{const c=r.value;if(u&&u!==c){r.value=u,t.emit("current-change",r.value,c);return}!u&&c&&(r.value=null,t.emit("current-change",null,c))},updateCurrentRowData:()=>{const u=e.rowKey.value,c=e.data.value||[],f=r.value;if(f&&!c.includes(f)){if(u){const d=ia(f,u);i(d)}else r.value=null;Xm(r.value)&&t.emit("current-change",null,f)}else n.value&&(i(n.value),o())},states:{_currentRowKey:n,currentRow:r}}}function Urt(e){const t=K([]),n=K({}),r=K(16),a=K(!1),o=K({}),i=K("hasChildren"),s=K("children"),l=K(!1),u=bt(),c=R(()=>{if(!e.rowKey.value)return{};const w=e.data.value||[];return d(w)}),f=R(()=>{const w=e.rowKey.value,S=Object.keys(o.value),x={};return S.length&&S.forEach(C=>{if(o.value[C].length){const T={children:[]};o.value[C].forEach(M=>{const k=ia(M,w);T.children.push(k),M[i.value]&&!x[k]&&(x[k]={children:[]})}),x[C]=T}}),x}),d=w=>{const S=e.rowKey.value,x={};return zrt(w,(C,T,M)=>{const k=ia(C,S);Ce(T)?x[k]={children:T.map(E=>ia(E,S)),level:M}:a.value&&(x[k]={children:[],lazy:!0,level:M})},s.value,i.value,a.value),x},v=(w=!1,S)=>{var x,C;S||(S=(x=u.store)==null?void 0:x.states.defaultExpandAll.value);const T=c.value,M=f.value,k=Object.keys(T),E={};if(k.length){const A=_(n),I=[],O=($,P)=>{if(w)return t.value?S||t.value.includes(P):!!(S||$!=null&&$.expanded);{const L=S||t.value&&t.value.includes(P);return!!($!=null&&$.expanded||L)}};k.forEach($=>{const P=A[$],L={...T[$]};if(L.expanded=O(P,$),L.lazy){const{loaded:V=!1,loading:B=!1}=P||{};L.loaded=!!V,L.loading=!!B,I.push($)}E[$]=L});const z=Object.keys(M);a.value&&z.length&&I.length&&z.forEach($=>{var P;const L=A[$],V=M[$].children;if(I.includes($)){if(((P=E[$].children)==null?void 0:P.length)!==0)throw new Error("[ElTable]children must be an empty array.");E[$].children=V}else{const{loaded:B=!1,loading:F=!1}=L||{};E[$]={lazy:!0,loaded:!!B,loading:!!F,expanded:O(L,$),children:V,level:void 0}}})}n.value=E,(C=u.store)==null||C.updateTableScrollY()};he(()=>t.value,()=>{v(!0)}),he(()=>c.value,()=>{v()}),he(()=>f.value,()=>{v()});const h=w=>{t.value=w,v()},p=w=>a.value&&w&&"loaded"in w&&!w.loaded,g=(w,S)=>{u.store.assertRowKey();const x=e.rowKey.value,C=ia(w,x),T=C&&n.value[C];if(C&&T&&"expanded"in T){const M=T.expanded;S=Jt(S)?!T.expanded:S,n.value[C].expanded=S,M!==S&&u.emit("expand-change",w,S),S&&p(T)&&y(w,C,T),u.store.updateTableScrollY()}},m=w=>{u.store.assertRowKey();const S=e.rowKey.value,x=ia(w,S),C=n.value[x];p(C)?y(w,x,C):g(w,void 0)},y=(w,S,x)=>{const{load:C}=u.props;C&&!n.value[S].loaded&&(n.value[S].loading=!0,C(w,x,T=>{if(!Ce(T))throw new TypeError("[ElTable] data must be an array");n.value[S].loading=!1,n.value[S].loaded=!0,n.value[S].expanded=!0,T.length&&(o.value[S]=T),u.emit("expand-change",w,!0)}))};return{loadData:y,loadOrToggle:m,toggleTreeExpansion:g,updateTreeExpandKeys:h,updateTreeData:v,updateKeyChildren:(w,S)=>{const{lazy:x,rowKey:C}=u.props;if(x){if(!C)throw new Error("[Table] rowKey is required in updateKeyChild");o.value[w]&&(o.value[w]=S)}},normalize:d,states:{expandRowKeys:t,treeData:n,indent:r,lazy:a,lazyTreeNodeMap:o,lazyColumnIdentifier:i,childrenColumnName:s,checkStrictly:l}}}const Krt=(e,t)=>{const n=t.sortingColumn;return!n||Ge(n.sortable)?e:Ort(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},X2=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,X2(n.children)):t.push(n)}),t};function jrt(){var e;const t=bt(),{size:n}=kr((e=t.proxy)==null?void 0:e.$props),r=K(null),a=K([]),o=K([]),i=K(!1),s=K([]),l=K([]),u=K([]),c=K([]),f=K([]),d=K([]),v=K([]),h=K([]),p=[],g=K(0),m=K(0),y=K(0),b=K(!1),w=K([]),S=K(!1),x=K(!1),C=K(null),T=K({}),M=K(null),k=K(null),E=K(null),A=K(null),I=K(null),O=R(()=>r.value?th(w.value,r.value):void 0);he(a,()=>{var Qe;t.state&&(L(!1),t.props.tableLayout==="auto"&&((Qe=t.refs.tableHeaderRef)==null||Qe.updateFixedColumnStyle()))},{deep:!0});const z=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},$=Qe=>{var Ct;(Ct=Qe.children)==null||Ct.forEach(mt=>{mt.fixed=Qe.fixed,$(mt)})},P=()=>{s.value.forEach(ge=>{$(ge)}),c.value=s.value.filter(ge=>[!0,"left"].includes(ge.fixed));const Qe=s.value.find(ge=>ge.type==="selection");let Ct;Qe&&Qe.fixed!=="right"&&!c.value.includes(Qe)&&s.value.indexOf(Qe)===0&&c.value.length&&(c.value.unshift(Qe),Ct=!0),f.value=s.value.filter(ge=>ge.fixed==="right");const mt=s.value.filter(ge=>(Ct?ge.type!=="selection":!0)&&!ge.fixed);l.value=Array.from(c.value).concat(mt).concat(f.value);const Nt=X2(mt),Te=X2(c.value),He=X2(f.value);g.value=Nt.length,m.value=Te.length,y.value=He.length,u.value=Array.from(Te).concat(Nt).concat(He),i.value=c.value.length>0||f.value.length>0},L=(Qe,Ct=!1)=>{Qe&&P(),Ct?t.state.doLayout():t.state.debouncedUpdateLayout()},V=Qe=>O.value?!!O.value[ia(Qe,r.value)]:w.value.includes(Qe),B=()=>{b.value=!1;const Qe=w.value;w.value=[],Qe.length&&t.emit("selection-change",[])},F=()=>{var Qe,Ct;let mt;if(r.value){mt=[];const Nt=(Ct=(Qe=t==null?void 0:t.store)==null?void 0:Qe.states)==null?void 0:Ct.childrenColumnName.value,Te=th(a.value,r.value,!0,Nt);for(const He in O.value)nn(O.value,He)&&!Te[He]&&mt.push(O.value[He].row)}else mt=w.value.filter(Nt=>!a.value.includes(Nt));if(mt.length){const Nt=w.value.filter(Te=>!mt.includes(Te));w.value=Nt,t.emit("selection-change",Nt.slice())}},U=()=>(w.value||[]).slice(),G=(Qe,Ct,mt=!0,Nt=!1)=>{var Te,He,ge,tt;const Bt={children:(He=(Te=t==null?void 0:t.store)==null?void 0:Te.states)==null?void 0:He.childrenColumnName.value,checkStrictly:(tt=(ge=t==null?void 0:t.store)==null?void 0:ge.states)==null?void 0:tt.checkStrictly.value};if(X_(w.value,Qe,Ct,Bt,Nt?void 0:C.value,a.value.indexOf(Qe),r.value)){const Me=(w.value||[]).slice();mt&&t.emit("select",Me,Qe),t.emit("selection-change",Me)}},Y=()=>{var Qe,Ct;const mt=x.value?!b.value:!(b.value||w.value.length);b.value=mt;let Nt=!1,Te=0;const He=(Ct=(Qe=t==null?void 0:t.store)==null?void 0:Qe.states)==null?void 0:Ct.rowKey.value,{childrenColumnName:ge}=t.store.states,tt={children:ge.value,checkStrictly:!1};a.value.forEach((Bt,Mn)=>{const Me=Mn+Te;X_(w.value,Bt,mt,tt,C.value,Me,He)&&(Nt=!0),Te+=te(ia(Bt,He))}),Nt&&t.emit("selection-change",w.value?w.value.slice():[]),t.emit("select-all",(w.value||[]).slice())},X=()=>{var Qe;if(((Qe=a.value)==null?void 0:Qe.length)===0){b.value=!1;return}const{childrenColumnName:Ct}=t.store.states;let mt=0,Nt=0;const Te=ge=>{var tt;for(const Bt of ge){const Mn=C.value&&C.value.call(null,Bt,mt);if(V(Bt))Nt++;else if(!C.value||Mn)return!1;if(mt++,(tt=Bt[Ct.value])!=null&&tt.length&&!Te(Bt[Ct.value]))return!1}return!0},He=Te(a.value||[]);b.value=Nt===0?!1:He},te=Qe=>{var Ct;if(!t||!t.store)return 0;const{treeData:mt}=t.store.states;let Nt=0;const Te=(Ct=mt.value[Qe])==null?void 0:Ct.children;return Te&&(Nt+=Te.length,Te.forEach(He=>{Nt+=te(He)})),Nt},oe=(Qe,Ct)=>{const mt={};return Hr(Qe).forEach(Nt=>{T.value[Nt.id]=Ct,mt[Nt.columnKey||Nt.id]=Ct}),mt},re=(Qe,Ct,mt)=>{k.value&&k.value!==Qe&&(k.value.order=null),k.value=Qe,E.value=Ct,A.value=mt},ce=()=>{let Qe=_(o);Object.keys(T.value).forEach(Ct=>{const mt=T.value[Ct];if(!mt||mt.length===0)return;const Nt=QQ({columns:u.value},Ct);Nt&&Nt.filterMethod&&(Qe=Qe.filter(Te=>mt.some(He=>Nt.filterMethod.call(null,He,Te,Nt))))}),M.value=Qe},ie=()=>{var Qe;a.value=Krt((Qe=M.value)!=null?Qe:[],{sortingColumn:k.value,sortProp:E.value,sortOrder:A.value})},Z=(Qe=void 0)=>{Qe!=null&&Qe.filter||ce(),ie()},se=Qe=>{const{tableHeaderRef:Ct}=t.refs;if(!Ct)return;const mt=Object.assign({},Ct.filterPanels),Nt=Object.keys(mt);if(Nt.length)if(Ge(Qe)&&(Qe=[Qe]),Ce(Qe)){const Te=Qe.map(He=>Nrt({columns:u.value},He));Nt.forEach(He=>{const ge=Te.find(tt=>tt.id===He);ge&&(ge.filteredValue=[])}),t.store.commit("filterChange",{column:Te,values:[],silent:!0,multi:!0})}else Nt.forEach(Te=>{const He=u.value.find(ge=>ge.id===Te);He&&(He.filteredValue=[])}),T.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},J=()=>{k.value&&(re(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:ae,toggleRowExpansion:fe,updateExpandRows:ve,states:me,isRowExpanded:pe}=Wrt({data:a,rowKey:r}),{updateTreeExpandKeys:Ne,toggleTreeExpansion:Ee,updateTreeData:_e,updateKeyChildren:be,loadOrToggle:Fe,states:Oe}=Urt({data:a,rowKey:r}),{updateCurrentRowData:Ze,updateCurrentRow:nt,setCurrentRowKey:xe,states:je}=Grt({data:a,rowKey:r});return{assertRowKey:z,updateColumns:P,scheduleLayout:L,isSelected:V,clearSelection:B,cleanSelection:F,getSelectionRows:U,toggleRowSelection:G,_toggleAllSelection:Y,toggleAllSelection:null,updateAllSelected:X,updateFilters:oe,updateCurrentRow:nt,updateSort:re,execFilter:ce,execSort:ie,execQuery:Z,clearFilter:se,clearSort:J,toggleRowExpansion:fe,setExpandRowKeysAdapter:Qe=>{ae(Qe),Ne(Qe)},setCurrentRowKey:xe,toggleRowExpansionAdapter:(Qe,Ct)=>{u.value.some(({type:Nt})=>Nt==="expand")?fe(Qe,Ct):Ee(Qe,Ct)},isRowExpanded:pe,updateExpandRows:ve,updateCurrentRowData:Ze,loadOrToggle:Fe,updateTreeData:_e,updateKeyChildren:be,states:{tableSize:n,rowKey:r,data:a,_data:o,isComplex:i,_columns:s,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:f,leafColumns:d,fixedLeafColumns:v,rightFixedLeafColumns:h,updateOrderFns:p,leafColumnsLength:g,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:y,isAllSelected:b,selection:w,reserveSelection:S,selectOnIndeterminate:x,selectable:C,filters:T,filteredData:M,sortingColumn:k,sortProp:E,sortOrder:A,hoverRow:I,...me,...Oe,...je}}}function AT(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=AT(n.children,t)),n)})}function ET(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&ET(t.children)}),e.sort((t,n)=>t.no-n.no)}function Yrt(){const e=bt(),t=jrt(),n=we("table"),{t:r}=Kt();return{ns:n,t:r,...t,mutations:{setData(s,l){const u=_(s._data)!==l;s.data.value=l,s._data.value=l,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),_(s.reserveSelection)?e.store.assertRowKey():u?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(s,l,u,c){var f;const d=_(s._columns);let v=[];u?(u&&!u.children&&(u.children=[]),(f=u.children)==null||f.push(l),v=AT(d,u)):(d.push(l),v=d),ET(v),s._columns.value=v,s.updateOrderFns.push(c),l.type==="selection"&&(s.selectable.value=l.selectable,s.reserveSelection.value=l.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(s,l){var u;((u=l.getColumnIndex)==null?void 0:u.call(l))!==l.no&&(ET(s._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(s,l,u,c){var f;const d=_(s._columns)||[];if(u)(f=u.children)==null||f.splice(u.children.findIndex(h=>h.id===l.id),1),ze(()=>{var h;((h=u.children)==null?void 0:h.length)===0&&delete u.children}),s._columns.value=AT(d,u);else{const h=d.indexOf(l);h>-1&&(d.splice(h,1),s._columns.value=d)}const v=s.updateOrderFns.indexOf(c);v>-1&&s.updateOrderFns.splice(v,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(s,l){const{prop:u,order:c,init:f}=l;if(u){const d=_(s.columns).find(v=>v.property===u);d&&(d.order=c,e.store.updateSort(d,u,c),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(s,l){const{sortingColumn:u,sortProp:c,sortOrder:f}=s,d=_(u),v=_(c),h=_(f);Xm(h)&&(s.sortingColumn.value=null,s.sortProp.value=null);const p={filter:!0};e.store.execQuery(p),(!l||!(l.silent||l.init))&&e.emit("sort-change",{column:d,prop:v,order:h}),e.store.updateTableScrollY()},filterChange(s,l){const{column:u,values:c,silent:f}=l,d=e.store.updateFilters(u,c);e.store.execQuery(),f||e.emit("filter-change",d),e.store.updateTableScrollY()},toggleAllSelection(){var s,l;(l=(s=e.store).toggleAllSelection)==null||l.call(s)},rowSelectedChanged(s,l){e.store.toggleRowSelection(l),e.store.updateAllSelected()},setHoverRow(s,l){s.hoverRow.value=l},setCurrentRow(s,l){e.store.updateCurrentRow(l)}},commit:function(s,...l){const u=e.store.mutations;if(u[s])u[s].apply(e,[e.store.states,...l]);else throw new Error(`Action not found: ${s}`)},updateTableScrollY:function(){ze(()=>e.layout.updateScrollY.apply(e.layout))}}}const SE={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function qrt(e,t){if(!e)throw new Error("Table is required.");const n=Yrt();return n.toggleAllSelection=Ys(n._toggleAllSelection,10),Object.keys(SE).forEach(r=>{aee(oee(t,r),r,n)}),Xrt(n,t),n}function Xrt(e,t){Object.keys(SE).forEach(n=>{he(()=>oee(t,n),r=>{aee(r,n,e)})})}function aee(e,t,n){let r=e,a=SE[t];St(a)&&(r=r||a.default,a=a.key),n.states[a].value=r}function oee(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach(a=>{r=r[a]}),r}else return e[t]}class Zrt{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=K(null),this.scrollX=K(!1),this.scrollY=K(!1),this.bodyWidth=K(null),this.fixedWidth=K(null),this.rightFixedWidth=K(null),this.gutterWidth=0;for(const n in t)nn(t,n)&&(Dn(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const t=this.height.value;if(Xm(t))return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let r=!0;const a=this.scrollY.value;return r=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=r,a!==r}return!1}setHeight(t,n="height"){if(!on)return;const r=this.table.vnode.el;if(t=Vrt(t),this.height.value=Number(t),!r&&(t||t===0)){ze(()=>this.setHeight(t,n));return}r&&rt(t)?(r.style[n]=`${t}px`,this.updateElsHeight()):r&&Ge(t)&&(r.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?t.push.apply(t,r.columns):t.push(r)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){var t;if(!on)return;const n=this.fit,r=(t=this.table.vnode.el)==null?void 0:t.clientWidth;let a=0;const o=this.getFlattenColumns(),i=o.filter(u=>!rt(u.width));if(o.forEach(u=>{rt(u.width)&&u.realWidth&&(u.realWidth=null)}),i.length>0&&n){if(o.forEach(u=>{a+=Number(u.width||u.minWidth||80)}),a<=r){this.scrollX.value=!1;const u=r-a;if(i.length===1)i[0].realWidth=Number(i[0].minWidth||80)+u;else{const c=i.reduce((v,h)=>v+Number(h.minWidth||80),0),f=u/c;let d=0;i.forEach((v,h)=>{if(h===0)return;const p=Math.floor(Number(v.minWidth||80)*f);d+=p,v.realWidth=Number(v.minWidth||80)+p}),i[0].realWidth=Number(i[0].minWidth||80)+u-d}}else this.scrollX.value=!0,i.forEach(u=>{u.realWidth=Number(u.minWidth)});this.bodyWidth.value=Math.max(a,r),this.table.state.resizeState.value.width=this.bodyWidth.value}else o.forEach(u=>{!u.width&&!u.minWidth?u.realWidth=80:u.realWidth=Number(u.width||u.minWidth),a+=u.realWidth}),this.scrollX.value=a>r,this.bodyWidth.value=a;const s=this.store.states.fixedColumns.value;if(s.length>0){let u=0;s.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.fixedWidth.value=u}const l=this.store.states.rightFixedColumns.value;if(l.length>0){let u=0;l.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.rightFixedWidth.value=u}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(r=>{var a,o;switch(t){case"columns":(a=r.state)==null||a.onColumnsChange(this);break;case"scrollable":(o=r.state)==null||o.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const Jrt=q({name:"ElTableFilterPanel",components:{ElCheckbox:Bi,ElCheckboxGroup:UA,ElScrollbar:Ni,ElTooltip:ta,ElIcon:Xe,ArrowDown:Yi,ArrowUp:a1},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:bn.appendTo},setup(e){const t=bt(),{t:n}=Kt(),r=we("table-filter"),a=t==null?void 0:t.parent;e.column&&!a.filterPanels.value[e.column.id]&&(a.filterPanels.value[e.column.id]=t);const o=K(null),i=K(null),s=K(0),l=R(()=>e.column&&e.column.filters),u=R(()=>e.column&&e.column.filterClassName?`${r.b()} ${e.column.filterClassName}`:r.b()),c=R({get:()=>{var C;return(((C=e.column)==null?void 0:C.filteredValue)||[])[0]},set:C=>{f.value&&(io(C)?f.value.splice(0,1):f.value.splice(0,1,C))}}),f=R({get(){return e.column?e.column.filteredValue||[]:[]},set(C){var T;e.column&&((T=e.upDataColumn)==null||T.call(e,"filteredValue",C))}}),d=R(()=>e.column?e.column.filterMultiple:!0),v=C=>C.value===c.value,h=()=>{var C;(C=o.value)==null||C.onClose()},p=()=>{y(f.value),h()},g=()=>{f.value=[],y(f.value),h()},m=(C,T)=>{c.value=C,s.value=T,io(C)?y([]):y(f.value),h()},y=C=>{var T,M;(T=e.store)==null||T.commit("filterChange",{column:e.column,values:C}),(M=e.store)==null||M.updateAllSelected()},b=()=>{var C,T;(C=i.value)==null||C.focus(),!d.value&&S(),e.column&&((T=e.upDataColumn)==null||T.call(e,"filterOpened",!0))},w=()=>{var C;e.column&&((C=e.upDataColumn)==null||C.call(e,"filterOpened",!1))},S=()=>{if(io(c)){s.value=0;return}const C=(l.value||[]).findIndex(T=>T.value===c.value);s.value=C>=0?C+1:0};return{multiple:d,filterClassName:u,filteredValue:f,filterValue:c,filters:l,handleConfirm:p,handleReset:g,handleSelect:m,isPropAbsent:io,isActive:v,t:n,ns:r,tooltipRef:o,rootRef:i,checkedIndex:s,handleShowTooltip:b,handleHideTooltip:w,handleKeydown:C=>{var T,M;const k=xn(C),E=(l.value?l.value.length:0)+1;let A=s.value,I=!0;switch(k){case ke.down:case ke.right:A=(A+1)%E;break;case ke.up:case ke.left:A=(A-1+E)%E;break;case ke.tab:h(),I=!1;break;case ke.enter:case ke.space:if(A===0)m(null,0);else{const O=(l.value||[])[A-1];O.value&&m(O.value,A)}break;default:I=!1;break}I&&C.preventDefault(),s.value=A,(M=(T=i.value)==null?void 0:T.querySelector(`.${r.e("list-item")}:nth-child(${A+1})`))==null||M.focus()}}}}),Qrt=["disabled"],eat=["tabindex","aria-checked"],tat=["tabindex","aria-checked","onClick"],nat=["aria-label"];function rat(e,t,n,r,a,o){const i=Ft("el-checkbox"),s=Ft("el-checkbox-group"),l=Ft("el-scrollbar"),u=Ft("arrow-up"),c=Ft("arrow-down"),f=Ft("el-icon"),d=Ft("el-tooltip");return D(),de(d,{ref:"tooltipRef",offset:0,placement:e.placement,"show-arrow":!1,trigger:"click",role:"dialog",teleported:"",effect:"light",pure:"",loop:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo,onShow:e.handleShowTooltip,onHide:e.handleHideTooltip},{content:ee(()=>[e.multiple?(D(),H("div",{key:0,ref:"rootRef",tabindex:"-1",class:W(e.ns.e("multiple"))},[N("div",{class:W(e.ns.e("content"))},[Q(l,{"wrap-class":e.ns.e("wrap")},{default:ee(()=>[Q(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=v=>e.filteredValue=v),class:W(e.ns.e("checkbox-group"))},{default:ee(()=>[(D(!0),H(qe,null,Wt(e.filters,v=>(D(),de(i,{key:v.value,value:v.value},{default:ee(()=>[gt(Ae(v.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),N("div",{class:W(e.ns.e("bottom"))},[N("button",{class:W(e.ns.is("disabled",e.filteredValue.length===0)),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...v)=>e.handleConfirm&&e.handleConfirm(...v))},Ae(e.t("el.table.confirmFilter")),11,Qrt),N("button",{type:"button",onClick:t[2]||(t[2]=(...v)=>e.handleReset&&e.handleReset(...v))},Ae(e.t("el.table.resetFilter")),1)],2)],2)):(D(),H("ul",{key:1,ref:"rootRef",tabindex:"-1",role:"radiogroup",class:W(e.ns.e("list")),onKeydown:t[4]||(t[4]=(...v)=>e.handleKeydown&&e.handleKeydown(...v))},[N("li",{role:"radio",class:W([e.ns.e("list-item"),e.ns.is("active",e.isPropAbsent(e.filterValue))]),tabindex:e.checkedIndex===0?0:-1,"aria-checked":e.isPropAbsent(e.filterValue),onClick:t[3]||(t[3]=v=>e.handleSelect(null,0))},Ae(e.t("el.table.clearFilter")),11,eat),(D(!0),H(qe,null,Wt(e.filters,(v,h)=>(D(),H("li",{key:v.value,role:"radio",class:W([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),tabindex:e.checkedIndex===h+1?0:-1,"aria-checked":e.isActive(v),onClick:p=>e.handleSelect(v.value,h+1)},Ae(v.text),11,tat))),128))],34))]),default:ee(()=>{var v;return[N("button",{type:"button",class:W(`${e.ns.namespace.value}-table__column-filter-trigger`),"aria-label":e.t("el.table.filterLabel",{column:((v=e.column)==null?void 0:v.label)||""})},[Q(f,null,{default:ee(()=>[ue(e.$slots,"filter-icon",{},()=>{var h;return[(h=e.column)!=null&&h.filterOpened?(D(),de(u,{key:0})):(D(),de(c,{key:1}))]})]),_:3})],10,nat)]}),_:3},8,["placement","popper-class","append-to","onShow","onHide"])}var aat=De(Jrt,[["render",rat],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function xE(e){const t=bt();wm(()=>{n.value.addObserver(t)}),Et(()=>{r(n.value),a(n.value)}),Lo(()=>{r(n.value),a(n.value)}),mc(()=>{n.value.removeObserver(t)});const n=R(()=>{const o=e.layout;if(!o)throw new Error("Can not find table layout.");return o}),r=o=>{var i;const s=((i=e.vnode.el)==null?void 0:i.querySelectorAll("colgroup > col"))||[];if(!s.length)return;const l=o.getFlattenColumns(),u={};l.forEach(c=>{u[c.id]=c});for(let c=0,f=s.length;c<f;c++){const d=s[c],v=d.getAttribute("name"),h=u[v];h&&d.setAttribute("width",h.realWidth||h.width)}},a=o=>{var i,s;const l=((i=e.vnode.el)==null?void 0:i.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let c=0,f=l.length;c<f;c++)l[c].setAttribute("width",o.scrollY.value?o.gutterWidth:"0");const u=((s=e.vnode.el)==null?void 0:s.querySelectorAll("th.gutter"))||[];for(let c=0,f=u.length;c<f;c++){const d=u[c];d.style.width=o.scrollY.value?`${o.gutterWidth}px`:"0",d.style.display=o.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:a}}const Zi=Symbol("ElTable");function oat(e,t){const n=bt(),r=Ue(Zi),a=p=>{p.stopPropagation()},o=(p,g)=>{!g.filters&&g.sortable?h(p,g,!1):g.filterable&&!g.sortable&&a(p),r==null||r.emit("header-click",g,p)},i=(p,g)=>{r==null||r.emit("header-contextmenu",g,p)},s=K(null),l=K(!1),u=K(),c=(p,g)=>{var m,y;if(on&&!(g.children&&g.children.length>0)&&s.value&&e.border&&s.value.id===g.id){l.value=!0;const b=r;t("set-drag-visible",!0);const w=b==null?void 0:b.vnode.el,S=w==null?void 0:w.getBoundingClientRect().left,x=(y=(m=n==null?void 0:n.vnode)==null?void 0:m.el)==null?void 0:y.querySelector(`th.${g.id}`),C=x.getBoundingClientRect(),T=C.left-S+30;Jo(x,"noclick"),u.value={startMouseLeft:p.clientX,startLeft:C.right-S,startColumnLeft:C.left-S,tableLeft:S};const M=b==null?void 0:b.refs.resizeProxy;M.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const k=A=>{const I=A.clientX-u.value.startMouseLeft,O=u.value.startLeft+I;M.style.left=`${Math.max(T,O)}px`},E=()=>{if(l.value){const{startColumnLeft:A,startLeft:I}=u.value,z=Number.parseInt(M.style.left,10)-A;g.width=g.realWidth=z,b==null||b.emit("header-dragend",g.width,I-A,g,p),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,s.value=null,u.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",E),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Aa(x,"noclick")},0)};document.addEventListener("mousemove",k),document.addEventListener("mouseup",E)}},f=(p,g)=>{var m;if(!e.border||g.children&&g.children.length>0)return;const y=p.target,b=oo(y)?y.closest("th"):null;if(!b)return;const w=Ds(b,"is-sortable");if(w){const k=l.value?"col-resize":"";b.style.cursor=k;const E=b.querySelector(".caret-wrapper");E&&(E.style.cursor=k)}if(!g.resizable||l.value){s.value=null;return}const S=b.getBoundingClientRect(),x=((m=b.parentNode)==null?void 0:m.lastElementChild)===b,C=e.allowDragLastColumn||!x,T=S.width>12&&S.right-p.clientX<8&&C,M=T?"col-resize":"";document.body.style.cursor=M,s.value=T?g:null,w&&(b.style.cursor=M)},d=()=>{!on||l.value||(document.body.style.cursor="")},v=({order:p,sortOrders:g})=>{if(p==="")return g[0];const m=g.indexOf(p||null);return g[m>g.length-2?0:m+1]},h=(p,g,m)=>{var y;p.stopPropagation();const b=g.order===m?null:m||v(g),w=(y=p.target)==null?void 0:y.closest("th");if(w&&Ds(w,"noclick")){Aa(w,"noclick");return}if(!g.sortable)return;const S=p.currentTarget;if(["ascending","descending"].some(k=>Ds(S,k)&&!g.sortOrders.includes(k)))return;const x=e.store.states;let C=x.sortProp.value,T;const M=x.sortingColumn.value;(M!==g||M===g&&Xm(M.order))&&(M&&(M.order=null),x.sortingColumn.value=g,C=g.property),b?T=g.order=b:T=g.order=null,x.sortProp.value=C,x.sortOrder.value=T,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:o,handleHeaderContextMenu:i,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:a}}function iat(e){const t=Ue(Zi),n=we("table");return{getHeaderRowStyle:s=>{const l=t==null?void 0:t.props.headerRowStyle;return Je(l)?l.call(null,{rowIndex:s}):l},getHeaderRowClass:s=>{const l=[],u=t==null?void 0:t.props.headerRowClassName;return Ge(u)?l.push(u):Je(u)&&l.push(u.call(null,{rowIndex:s})),l.join(" ")},getHeaderCellStyle:(s,l,u,c)=>{var f;let d=(f=t==null?void 0:t.props.headerCellStyle)!=null?f:{};Je(d)&&(d=d.call(null,{rowIndex:s,columnIndex:l,row:u,column:c}));const v=wE(l,c.fixed,e.store,u);return $h(v,"left"),$h(v,"right"),Object.assign({},d,v)},getHeaderCellClass:(s,l,u,c)=>{const f=_E(n.b(),l,c.fixed,e.store,u),d=[c.id,c.order,c.headerAlign,c.className,c.labelClassName,...f];c.children||d.push("is-leaf"),c.sortable&&d.push("is-sortable");const v=t==null?void 0:t.props.headerCellClassName;return Ge(v)?d.push(v):Je(v)&&d.push(v.call(null,{rowIndex:s,columnIndex:l,row:u,column:c})),d.push(n.e("cell")),d.filter(h=>!!h).join(" ")}}}const iee=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,iee(n.children))):t.push(n)}),t},see=e=>{let t=1;const n=(o,i)=>{if(i&&(o.level=i.level+1,t<o.level&&(t=o.level)),o.children){let s=0;o.children.forEach(l=>{n(l,o),s+=l.colSpan}),o.colSpan=s}else o.colSpan=1};e.forEach(o=>{o.level=1,n(o,void 0)});const r=[];for(let o=0;o<t;o++)r.push([]);return iee(e).forEach(o=>{o.children?(o.rowSpan=1,o.children.forEach(i=>i.isSubColumn=!0)):o.rowSpan=t-o.level+1,r[o.level-1].push(o)}),r};function sat(e){const t=Ue(Zi),n=R(()=>see(e.store.states.originColumns.value));return{isGroup:R(()=>{const o=n.value.length>1;return o&&t&&(t.state.isGroup.value=!0),o}),toggleAllSelection:o=>{o.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var lat=q({name:"ElTableHeader",components:{ElCheckbox:Bi},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const n=bt(),r=Ue(Zi),a=we("table"),o=K({}),{onColumnsChange:i,onScrollableChange:s}=xE(r),l=(r==null?void 0:r.props.tableLayout)==="auto",u=sn(new Map),c=K();let f;const d=()=>{f=setTimeout(()=>{u.size>0&&(u.forEach((A,I)=>{const O=c.value.querySelector(`.${I.replace(/\s/g,".")}`);if(O){const z=O.getBoundingClientRect().width;A.width=z||A.width}}),u.clear())})};he(u,d),un(()=>{f&&(clearTimeout(f),f=void 0)}),Et(async()=>{await ze(),await ze();const{prop:A,order:I}=e.defaultSort;r==null||r.store.commit("sort",{prop:A,order:I,init:!0}),d()});const{handleHeaderClick:v,handleHeaderContextMenu:h,handleMouseDown:p,handleMouseMove:g,handleMouseOut:m,handleSortClick:y,handleFilterClick:b}=oat(e,t),{getHeaderRowStyle:w,getHeaderRowClass:S,getHeaderCellStyle:x,getHeaderCellClass:C}=iat(e),{isGroup:T,toggleAllSelection:M,columnRows:k}=sat(e),{t:E}=Kt();return n.state={onColumnsChange:i,onScrollableChange:s},n.filterPanels=o,{ns:a,t:E,filterPanels:o,onColumnsChange:i,onScrollableChange:s,columnRows:k,getHeaderRowClass:S,getHeaderRowStyle:w,getHeaderCellClass:C,getHeaderCellStyle:x,handleHeaderClick:v,handleHeaderContextMenu:h,handleMouseDown:p,handleMouseMove:g,handleMouseOut:m,handleSortClick:y,handleFilterClick:b,isGroup:T,toggleAllSelection:M,saveIndexSelection:u,isTableLayoutAuto:l,theadRef:c,updateFixedColumnStyle:d}},render(){const{ns:e,t,isGroup:n,columnRows:r,getHeaderCellStyle:a,getHeaderCellClass:o,getHeaderRowClass:i,getHeaderRowStyle:s,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleSortClick:d,handleMouseOut:v,store:h,$parent:p,saveIndexSelection:g,isTableLayoutAuto:m}=this;let y=1;return ot("thead",{ref:"theadRef",class:e.is("group",n)},r.map((b,w)=>ot("tr",{class:i(w),key:w,style:s(w)},b.map((S,x)=>{S.rowSpan>y&&(y=S.rowSpan);const C=o(w,x,b,S);return m&&S.fixed&&g.set(C,S),ot("th",{class:C,colspan:S.colSpan,key:`${S.id}-thead`,rowspan:S.rowSpan,scope:S.colSpan>1?"colgroup":"col",ariaSort:S.sortable?S.order:void 0,style:a(w,x,b,S),onClick:T=>{var M;(M=T.currentTarget)!=null&&M.classList.contains("noclick")||l(T,S)},onContextmenu:T=>u(T,S),onMousedown:T=>c(T,S),onMousemove:T=>f(T,S),onMouseout:v},[ot("div",{class:["cell",S.filteredValue&&S.filteredValue.length>0?"highlight":""]},[S.renderHeader?S.renderHeader({column:S,$index:x,store:h,_self:p}):S.label,S.sortable&&ot("button",{type:"button",class:"caret-wrapper","aria-label":t("el.table.sortLabel",{column:S.label||""}),onClick:T=>d(T,S)},[ot("i",{onClick:T=>d(T,S,"ascending"),class:"sort-caret ascending"}),ot("i",{onClick:T=>d(T,S,"descending"),class:"sort-caret descending"})]),S.filterable&&ot(aat,{store:h,placement:S.filterPlacement||"bottom-start",appendTo:p==null?void 0:p.appendFilterPanelTo,column:S,upDataColumn:(T,M)=>{S[T]=M}},{"filter-icon":()=>S.renderFilterIcon?S.renderFilterIcon({filterOpened:S.filterOpened}):null})])])}))))}});function o8(e,t,n=.03){return e-t>n}function uat(e){const t=Ue(Zi),n=K(""),r=K(ot("div")),a=(h,p,g)=>{var m,y,b;const w=t,S=a8(h);let x=null;const C=(m=w==null?void 0:w.vnode.el)==null?void 0:m.dataset.prefix;S&&(x=WV({columns:(b=(y=e.store)==null?void 0:y.states.columns.value)!=null?b:[]},S,C),x&&(w==null||w.emit(`cell-${g}`,p,x,S,h))),w==null||w.emit(`row-${g}`,p,x,h)},o=(h,p)=>{a(h,p,"dblclick")},i=(h,p)=>{var g;(g=e.store)==null||g.commit("setCurrentRow",p),a(h,p,"click")},s=(h,p)=>{a(h,p,"contextmenu")},l=Ys(h=>{var p;(p=e.store)==null||p.commit("setHoverRow",h)},30),u=Ys(()=>{var h;(h=e.store)==null||h.commit("setHoverRow",null)},30),c=h=>{const p=window.getComputedStyle(h,null),g=Number.parseInt(p.paddingLeft,10)||0,m=Number.parseInt(p.paddingRight,10)||0,y=Number.parseInt(p.paddingTop,10)||0,b=Number.parseInt(p.paddingBottom,10)||0;return{left:g,right:m,top:y,bottom:b}},f=(h,p,g)=>{var m;let y=(m=p==null?void 0:p.target)==null?void 0:m.parentNode;for(;h>1&&(y=y==null?void 0:y.nextSibling,!(!y||y.nodeName!=="TR"));)g(y,"hover-row hover-fixed-row"),h--};return{handleDoubleClick:o,handleClick:i,handleContextMenu:s,handleMouseEnter:l,handleMouseLeave:u,handleCellMouseEnter:(h,p,g)=>{var m,y,b,w,S,x,C,T,M;if(!t)return;const k=t,E=a8(h),A=(m=k==null?void 0:k.vnode.el)==null?void 0:m.dataset.prefix;let I=null;if(E){if(I=WV({columns:(b=(y=e.store)==null?void 0:y.states.columns.value)!=null?b:[]},E,A),!I)return;E.rowSpan>1&&f(E.rowSpan,h,Jo);const te=k.hoverState={cell:E,column:I,row:p};k==null||k.emit("cell-mouse-enter",te.row,te.column,te.cell,h)}if(!g){((w=ga)==null?void 0:w.trigger)===E&&((S=ga)==null||S());return}const O=h.target.querySelector(".cell");if(!(Ds(O,`${A}-tooltip`)&&O.childNodes.length&&((x=O.textContent)!=null&&x.trim())))return;const z=document.createRange();z.setStart(O,0),z.setEnd(O,O.childNodes.length);const{width:$,height:P}=z.getBoundingClientRect(),{width:L,height:V}=O.getBoundingClientRect(),{top:B,left:F,right:U,bottom:G}=c(O),Y=F+U,X=B+G;o8($+Y,L)||o8(P+X,V)||o8(O.scrollWidth,L)?Hrt(g,(C=(E==null?void 0:E.innerText)||(E==null?void 0:E.textContent))!=null?C:"",p,I,E,k):((T=ga)==null?void 0:T.trigger)===E&&((M=ga)==null||M())},handleCellMouseLeave:h=>{const p=a8(h);if(!p)return;p.rowSpan>1&&f(p.rowSpan,h,Aa);const g=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",g==null?void 0:g.row,g==null?void 0:g.column,g==null?void 0:g.cell,h)},tooltipContent:n,tooltipTrigger:r}}function cat(e){const t=Ue(Zi),n=we("table");return{getRowStyle:(u,c)=>{const f=t==null?void 0:t.props.rowStyle;return Je(f)?f.call(null,{row:u,rowIndex:c}):f||null},getRowClass:(u,c,f)=>{var d;const v=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&u===((d=e.store)==null?void 0:d.states.currentRow.value)&&v.push("current-row"),e.stripe&&f%2===1&&v.push(n.em("row","striped"));const h=t==null?void 0:t.props.rowClassName;return Ge(h)?v.push(h):Je(h)&&v.push(h.call(null,{row:u,rowIndex:c})),v},getCellStyle:(u,c,f,d)=>{const v=t==null?void 0:t.props.cellStyle;let h=v??{};Je(v)&&(h=v.call(null,{rowIndex:u,columnIndex:c,row:f,column:d}));const p=wE(c,e==null?void 0:e.fixed,e.store);return $h(p,"left"),$h(p,"right"),Object.assign({},h,p)},getCellClass:(u,c,f,d,v)=>{const h=_E(n.b(),c,e==null?void 0:e.fixed,e.store,void 0,v),p=[d.id,d.align,d.className,...h],g=t==null?void 0:t.props.cellClassName;return Ge(g)?p.push(g):Je(g)&&p.push(g.call(null,{rowIndex:u,columnIndex:c,row:f,column:d})),p.push(n.e("cell")),p.filter(m=>!!m).join(" ")},getSpan:(u,c,f,d)=>{let v=1,h=1;const p=t==null?void 0:t.props.spanMethod;if(Je(p)){const g=p({row:u,column:c,rowIndex:f,columnIndex:d});Ce(g)?(v=g[0],h=g[1]):St(g)&&(v=g.rowspan,h=g.colspan)}return{rowspan:v,colspan:h}},getColspanRealWidth:(u,c,f)=>{if(c<1)return u[f].realWidth;const d=u.map(({realWidth:v,width:h})=>v||h).slice(f,f+c);return Number(d.reduce((v,h)=>Number(v)+Number(h),-1))}}}const fat=["colspan","rowspan"],dat=q({name:"TableTdWrapper",__name:"td-wrapper",props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(D(),H("td",{colspan:e.colspan,rowspan:e.rowspan},[ue(t.$slots,"default")],8,fat))}});var vat=De(dat,[["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table-body/td-wrapper.vue"]]);function hat(e){const t=Ue(Zi),n=we("table"),{handleDoubleClick:r,handleClick:a,handleContextMenu:o,handleMouseEnter:i,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:f}=uat(e),{getRowStyle:d,getRowClass:v,getCellStyle:h,getCellClass:p,getSpan:g,getColspanRealWidth:m}=cat(e);let y=-1;const b=R(()=>{var T;return(T=e.store)==null?void 0:T.states.columns.value.findIndex(({type:M})=>M==="default")}),w=(T,M)=>{var k;const E=(k=t==null?void 0:t.props)==null?void 0:k.rowKey;return E?ia(T,E):M},S=(T,M,k,E=!1)=>{const{tooltipEffect:A,tooltipOptions:I,store:O}=e,{indent:z,columns:$}=O.states,P=[];let L=!0;return k&&(P.push(n.em("row",`level-${k.level}`)),L=!!k.display),M===0&&(y=-1),e.stripe&&L&&y++,P.push(...v(T,M,y)),ot("tr",{style:[L?null:{display:"none"},d(T,M)],class:P,key:w(T,M),onDblclick:B=>r(B,T),onClick:B=>a(B,T),onContextmenu:B=>o(B,T),onMouseenter:()=>i(M),onMouseleave:s},$.value.map((B,F)=>{const{rowspan:U,colspan:G}=g(T,B,M,F);if(!U||!G)return null;const Y=Object.assign({},B);Y.realWidth=m($.value,G,F);const X={store:O,_self:e.context||t,column:Y,row:T,$index:M,cellIndex:F,expanded:E};F===b.value&&k&&(X.treeNode={indent:k.level&&k.level*z.value,level:k.level},hn(k.expanded)&&(X.treeNode.expanded=k.expanded,"loading"in k&&(X.treeNode.loading=k.loading),"noLazyChildren"in k&&(X.treeNode.noLazyChildren=k.noLazyChildren)));const te=`${w(T,M)},${F}`,oe=Y.columnKey||Y.rawColumnKey||"",re=B.showOverflowTooltip&&AX({effect:A},I,B.showOverflowTooltip);return ot(vat,{style:h(M,F,T,B),class:p(M,F,T,B,G-1),key:`${oe}${te}`,rowspan:U,colspan:G,onMouseenter:ce=>l(ce,T,re),onMouseleave:u},{default:()=>x(F,B,X)})}))},x=(T,M,k)=>M.renderCell(k);return{wrappedRowRender:(T,M)=>{const k=e.store,{isRowExpanded:E,assertRowKey:A}=k,{treeData:I,lazyTreeNodeMap:O,childrenColumnName:z,rowKey:$}=k.states,P=k.states.columns.value;if(P.some(({type:V})=>V==="expand")){const V=E(T),B=S(T,M,void 0,V),F=t==null?void 0:t.renderExpanded;if(!F)return console.error("[Element Error]renderExpanded is required."),B;const U=[[B]];return(t.props.preserveExpandedContent||V)&&U[0].push(ot("tr",{key:`expanded-row__${B.key}`,style:{display:V?"":"none"}},[ot("td",{colspan:P.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[F({row:T,$index:M,store:k,expanded:V})])])),U}else if(Object.keys(I.value).length){A();const V=ia(T,$.value);let B=I.value[V],F=null;B&&(F={expanded:B.expanded,level:B.level,display:!0,noLazyChildren:void 0,loading:void 0},hn(B.lazy)&&(F&&hn(B.loaded)&&B.loaded&&(F.noLazyChildren=!(B.children&&B.children.length)),F.loading=B.loading));const U=[S(T,M,F??void 0)];if(B){let G=0;const Y=(te,oe)=>{te&&te.length&&oe&&te.forEach(re=>{const ce={display:oe.display&&oe.expanded,level:oe.level+1,expanded:!1,noLazyChildren:!1,loading:!1},ie=ia(re,$.value);if(io(ie))throw new Error("For nested data item, row-key is required.");if(B={...I.value[ie]},B&&(ce.expanded=B.expanded,B.level=B.level||ce.level,B.display=!!(B.expanded&&ce.display),hn(B.lazy)&&(hn(B.loaded)&&B.loaded&&(ce.noLazyChildren=!(B.children&&B.children.length)),ce.loading=B.loading)),G++,U.push(S(re,M+G,ce)),B){const Z=O.value[ie]||re[z.value];Y(Z,B)}})};B.display=!0;const X=O.value[V]||T[z.value];Y(X,B)}return U}else return S(T,M,void 0)},tooltipContent:c,tooltipTrigger:f}}const pat={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var gat=q({name:"ElTableBody",props:pat,setup(e){var t;const n=bt(),r=Ue(Zi),a=we("table"),{wrappedRowRender:o,tooltipContent:i,tooltipTrigger:s}=hat(e),{onColumnsChange:l,onScrollableChange:u}=xE(r),c=[];return he((t=e.store)==null?void 0:t.states.hoverRow,(f,d)=>{var v,h;const p=n==null?void 0:n.vnode.el,g=Array.from((p==null?void 0:p.children)||[]).filter(b=>b==null?void 0:b.classList.contains(`${a.e("row")}`));let m=f;const y=(v=g[m])==null?void 0:v.childNodes;if(y!=null&&y.length){let b=0;Array.from(y).reduce((S,x,C)=>{var T,M;return((T=y[C])==null?void 0:T.colSpan)>1&&(b=(M=y[C])==null?void 0:M.colSpan),x.nodeName!=="TD"&&b===0&&S.push(C),b>0&&b--,S},[]).forEach(S=>{var x;for(m=f;m>0;){const C=(x=g[m-1])==null?void 0:x.childNodes;if(C[S]&&C[S].nodeName==="TD"&&C[S].rowSpan>1){Jo(C[S],"hover-cell"),c.push(C[S]);break}m--}})}else c.forEach(b=>Aa(b,"hover-cell")),c.length=0;!((h=e.store)!=null&&h.states.isComplex.value)||!on||qs(()=>{const b=g[d],w=g[f];b&&!b.classList.contains("hover-fixed-row")&&Aa(b,"hover-row"),w&&Jo(w,"hover-row")})}),mc(()=>{var f;(f=ga)==null||f()}),{ns:a,onColumnsChange:l,onScrollableChange:u,wrappedRowRender:o,tooltipContent:i,tooltipTrigger:s}},render(){const{wrappedRowRender:e,store:t}=this,n=(t==null?void 0:t.states.data.value)||[];return ot("tbody",{tabIndex:-1},[n.reduce((r,a)=>r.concat(e(a,r.length)),[])])}});function mat(){const e=Ue(Zi),t=e==null?void 0:e.store,n=R(()=>{var s;return(s=t==null?void 0:t.states.fixedLeafColumnsLength.value)!=null?s:0}),r=R(()=>{var s;return(s=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?s:0}),a=R(()=>{var s;return(s=t==null?void 0:t.states.columns.value.length)!=null?s:0}),o=R(()=>{var s;return(s=t==null?void 0:t.states.fixedColumns.value.length)!=null?s:0}),i=R(()=>{var s;return(s=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?s:0});return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:a,leftFixedCount:o,rightFixedCount:i,columns:R(()=>{var s;return(s=t==null?void 0:t.states.columns.value)!=null?s:[]})}}function yat(e){const{columns:t}=mat(),n=we("table");return{getCellClasses:(o,i)=>{const s=o[i],l=[n.e("cell"),s.id,s.align,s.labelClassName,..._E(n.b(),i,s.fixed,e.store)];return s.className&&l.push(s.className),s.children||l.push(n.is("leaf")),l},getCellStyles:(o,i)=>{const s=wE(i,o.fixed,e.store);return $h(s,"left"),$h(s,"right"),s},columns:t}}var bat=q({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=Ue(Zi),n=we("table"),{getCellClasses:r,getCellStyles:a,columns:o}=yat(e),{onScrollableChange:i,onColumnsChange:s}=xE(t);return{ns:n,onScrollableChange:i,onColumnsChange:s,getCellClasses:r,getCellStyles:a,columns:o}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:a}=this,o=this.store.states.data.value;let i=[];return r?i=r({columns:e,data:o}):e.forEach((s,l)=>{if(l===0){i[l]=a;return}const u=o.map(v=>Number(v[s.property])),c=[];let f=!0;u.forEach(v=>{if(!Number.isNaN(+v)){f=!1;const h=`${v}`.split(".")[1];c.push(h?h.length:0)}});const d=Math.max.apply(null,c);f?i[l]="":i[l]=u.reduce((v,h)=>{const p=Number(h);return Number.isNaN(+p)?v:Number.parseFloat((v+h).toFixed(Math.min(d,20)))},0)}),ot(ot("tfoot",[ot("tr",{},[...e.map((s,l)=>ot("td",{key:l,colspan:s.colSpan,rowspan:s.rowSpan,class:n(e,l),style:t(s,l)},[ot("div",{class:["cell",s.labelClassName]},[i[l]])]))])]))}});function _at(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,d,v=!0)=>{e.toggleRowSelection(f,d,!1,v),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,d)=>{e.toggleRowExpansionAdapter(f,d)},clearSort:()=>{e.clearSort()},sort:(f,d)=>{e.commit("sort",{prop:f,order:d})},updateKeyChildren:(f,d)=>{e.updateKeyChildren(f,d)}}}function wat(e,t,n,r){const a=K(!1),o=K(null),i=K(!1),s=P=>{i.value=P},l=K({width:null,height:null,headerHeight:null}),u=K(!1),c={display:"inline-block",verticalAlign:"middle"},f=K(),d=K(0),v=K(0),h=K(0),p=K(0),g=K(0);he(()=>e.height,P=>{t.setHeight(P??null)},{immediate:!0}),he(()=>e.maxHeight,P=>{t.setMaxHeight(P??null)},{immediate:!0}),he(()=>[e.currentRowKey,n.states.rowKey],([P,L])=>{!_(L)||!_(P)||n.setCurrentRowKey(`${P}`)},{immediate:!0}),he(()=>e.data,P=>{r.store.commit("setData",P)},{immediate:!0,deep:!0}),Ga(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const m=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},y=(P,L)=>{const{pixelX:V,pixelY:B}=L;Math.abs(V)>=Math.abs(B)&&(r.refs.bodyWrapper.scrollLeft+=L.pixelX/5)},b=R(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),w=R(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),S=()=>{b.value&&t.updateElsHeight(),t.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(M)};Et(async()=>{await ze(),n.updateColumns(),k(),requestAnimationFrame(S);const P=r.vnode.el,L=r.refs.headerWrapper;e.flexible&&P&&P.parentElement&&(P.parentElement.style.minWidth="0"),l.value={width:f.value=P.offsetWidth,height:P.offsetHeight,headerHeight:e.showHeader&&L?L.offsetHeight:null},n.states.columns.value.forEach(V=>{V.filteredValue&&V.filteredValue.length&&r.store.commit("filterChange",{column:V,values:V.filteredValue,silent:!0})}),r.$ready=!0});const x=(P,L)=>{if(!P)return;const V=Array.from(P.classList).filter(B=>!B.startsWith("is-scrolling-"));V.push(t.scrollX.value?L:"is-scrolling-none"),P.className=V.join(" ")},C=P=>{const{tableWrapper:L}=r.refs;x(L,P)},T=P=>{const{tableWrapper:L}=r.refs;return!!(L&&L.classList.contains(P))},M=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const Y="is-scrolling-none";T(Y)||C(Y);return}const P=r.refs.scrollBarRef.wrapRef;if(!P)return;const{scrollLeft:L,offsetWidth:V,scrollWidth:B}=P,{headerWrapper:F,footerWrapper:U}=r.refs;F&&(F.scrollLeft=L),U&&(U.scrollLeft=L);const G=B-V-1;L>=G?C("is-scrolling-right"):C(L===0?"is-scrolling-left":"is-scrolling-middle")},k=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&fn(r.refs.scrollBarRef.wrapRef,"scroll",M,{passive:!0}),e.fit?On(r.vnode.el,E):fn(window,"resize",E),On(r.refs.tableInnerWrapper,()=>{var P,L;E(),(L=(P=r.refs)==null?void 0:P.scrollBarRef)==null||L.update()}))},E=()=>{var P,L,V,B;const F=r.vnode.el;if(!r.$ready||!F)return;let U=!1;const{width:G,height:Y,headerHeight:X}=l.value,te=f.value=F.offsetWidth;G!==te&&(U=!0);const oe=F.offsetHeight;(e.height||b.value)&&Y!==oe&&(U=!0);const re=e.tableLayout==="fixed"?r.refs.headerWrapper:(P=r.refs.tableHeaderRef)==null?void 0:P.$el;e.showHeader&&(re==null?void 0:re.offsetHeight)!==X&&(U=!0),d.value=((L=r.refs.tableWrapper)==null?void 0:L.scrollHeight)||0,h.value=(re==null?void 0:re.scrollHeight)||0,p.value=((V=r.refs.footerWrapper)==null?void 0:V.offsetHeight)||0,g.value=((B=r.refs.appendWrapper)==null?void 0:B.offsetHeight)||0,v.value=d.value-h.value-p.value-g.value,U&&(l.value={width:te,height:oe,headerHeight:e.showHeader&&(re==null?void 0:re.offsetHeight)||0},S())},A=vr(),I=R(()=>{const{bodyWidth:P,scrollY:L,gutterWidth:V}=t;return P.value?`${P.value-(L.value?V:0)}px`:""}),O=R(()=>e.maxHeight?"fixed":e.tableLayout),z=R(()=>{if(e.data&&e.data.length)return;let P="100%";e.height&&v.value&&(P=`${v.value}px`);const L=f.value;return{width:L?`${L}px`:"",height:P}}),$=R(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${h.value+p.value}px)`}:{maxHeight:`${+e.maxHeight-h.value-p.value}px`}:{});return{isHidden:a,renderExpanded:o,setDragVisible:s,isGroup:u,handleMouseLeave:m,handleHeaderFooterMousewheel:y,tableSize:A,emptyBlockStyle:z,resizeProxyVisible:i,bodyWidth:I,resizeState:l,doLayout:S,tableBodyStyles:w,tableLayout:O,scrollbarViewStyle:c,scrollbarStyle:$}}function Sat(e){const t=K(),n=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),o={childList:!0,subtree:!0},i=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{i.forEach(s=>s())}),t.value.observe(a,o)};Et(()=>{n()}),mc(()=>{var r;(r=t.value)==null||r.disconnect()})}var xat={data:{type:Array,default:()=>[]},size:wr,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:[String,Object,Array],default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:Boolean,nativeScrollbar:Boolean};function lee(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:a})=>Jt(a))&&(n=[]);const r=a=>{const o={key:`${e.tableLayout}_${a.id}`,style:{},name:void 0};return t?o.style={width:`${a.width}px`}:o.name=a.id,o};return ot("colgroup",{},n.map(a=>ot("col",r(a))))}lee.props=["columns","tableLayout"];const Cat=()=>{const e=K(),t=(o,i)=>{const s=e.value;s&&s.scrollTo(o,i)},n=(o,i)=>{const s=e.value;s&&rt(i)&&["Top","Left"].includes(o)&&s[`setScroll${o}`](i)};return{scrollBarRef:e,scrollTo:t,setScrollTop:o=>n("Top",o),setScrollLeft:o=>n("Left",o)}};var KV=!1,mf,IT,LT,Z2,J2,uee,Q2,DT,PT,RT,cee,OT,NT,fee,dee;function Qa(){if(!KV){KV=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(OT=/\b(iPhone|iP[ao]d)/.exec(e),NT=/\b(iP[ao]d)/.exec(e),RT=/Android/i.exec(e),fee=/FBAN\/\w+;/i.exec(e),dee=/Mobile/i.exec(e),cee=!!/Win64/.exec(e),t){mf=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,mf&&document&&document.documentMode&&(mf=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);uee=r?parseFloat(r[1])+4:mf,IT=t[2]?parseFloat(t[2]):NaN,LT=t[3]?parseFloat(t[3]):NaN,Z2=t[4]?parseFloat(t[4]):NaN,Z2?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),J2=t&&t[1]?parseFloat(t[1]):NaN):J2=NaN}else mf=IT=LT=J2=Z2=NaN;if(n){if(n[1]){var a=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Q2=a?parseFloat(a[1].replace("_",".")):!0}else Q2=!1;DT=!!n[2],PT=!!n[3]}else Q2=DT=PT=!1}}var BT={ie:function(){return Qa()||mf},ieCompatibilityMode:function(){return Qa()||uee>mf},ie64:function(){return BT.ie()&&cee},firefox:function(){return Qa()||IT},opera:function(){return Qa()||LT},webkit:function(){return Qa()||Z2},safari:function(){return BT.webkit()},chrome:function(){return Qa()||J2},windows:function(){return Qa()||DT},osx:function(){return Qa()||Q2},linux:function(){return Qa()||PT},iphone:function(){return Qa()||OT},mobile:function(){return Qa()||OT||NT||RT||dee},nativeApp:function(){return Qa()||fee},android:function(){return Qa()||RT},ipad:function(){return Qa()||NT}},Tat=BT,u2=!!(typeof window<"u"&&window.document&&window.document.createElement),kat={canUseDOM:u2,canUseWorkers:typeof Worker<"u",canUseEventListeners:u2&&!!(window.addEventListener||window.attachEvent),canUseViewport:u2&&!!window.screen,isInWorker:!u2},vee=kat,hee;vee.canUseDOM&&(hee=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function Mat(e,t){if(!vee.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r=typeof a[n]=="function"}return!r&&hee&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var Aat=Mat,jV=10,YV=40,qV=800;function pee(e){var t=0,n=0,r=0,a=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*jV,a=n*jV,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||a)&&e.deltaMode&&(e.deltaMode==1?(r*=YV,a*=YV):(r*=qV,a*=qV)),r&&!t&&(t=r<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:a}}pee.getEventType=function(){return Tat.firefox()?"DOMMouseScroll":Aat("wheel")?"wheel":"mousewheel"};var Eat=pee;/**
|
||
* Checks if an event is supported in the current execution environment.
|
||
*
|
||
* NOTE: This will not work correctly for non-generic events such as `change`,
|
||
* `reset`, `load`, `error`, and `select`.
|
||
*
|
||
* Borrows from Modernizr.
|
||
*
|
||
* @param {string} eventNameSuffix Event name, e.g. "click".
|
||
* @param {?boolean} capture Check if the capture phase is supported.
|
||
* @return {boolean} True if the event is supported.
|
||
* @internal
|
||
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
||
*/const eb="_Mousewheel",XV=function(e,t){if(e&&e.addEventListener){gee(e);const n=function(r){const a=Eat(r);t&&Reflect.apply(t,this,[r,a])};e[eb]={wheelHandler:n},e.addEventListener("wheel",n,{passive:!0})}},gee=e=>{var t;(t=e[eb])!=null&&t.wheelHandler&&(e.removeEventListener("wheel",e[eb].wheelHandler),e[eb]=null)},Iat={beforeMount(e,t){XV(e,t.value)},unmounted(e){gee(e)},updated(e,t){t.value!==t.oldValue&&XV(e,t.value)}};let Lat=1;const Dat=q({name:"ElTable",directives:{Mousewheel:Iat},components:{TableHeader:lat,TableBody:gat,TableFooter:bat,ElScrollbar:Ni,hColgroup:lee},props:xat,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t}=Kt(),n=we("table"),r=bt();Ut(Zi,r);const a=qrt(r,e);r.store=a;const o=new Zrt({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=o;const i=R(()=>(a.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:v,clearSort:h,sort:p,updateKeyChildren:g}=_at(a),{isHidden:m,renderExpanded:y,setDragVisible:b,isGroup:w,handleMouseLeave:S,handleHeaderFooterMousewheel:x,tableSize:C,emptyBlockStyle:T,resizeProxyVisible:M,bodyWidth:k,resizeState:E,doLayout:A,tableBodyStyles:I,tableLayout:O,scrollbarViewStyle:z,scrollbarStyle:$}=wat(e,o,a,r),{scrollBarRef:P,scrollTo:L,setScrollLeft:V,setScrollTop:B}=Cat(),F=Ys(A,50),U=`${n.namespace.value}-table_${Lat++}`;r.tableId=U,r.state={isGroup:w,resizeState:E,doLayout:A,debouncedUpdateLayout:F};const G=R(()=>{var te;return(te=e.sumText)!=null?te:t("el.table.sumText")}),Y=R(()=>{var te;return(te=e.emptyText)!=null?te:t("el.table.emptyText")}),X=R(()=>see(a.states.originColumns.value)[0]);return Sat(r),un(()=>{F.cancel()}),{ns:n,layout:o,store:a,columns:X,handleHeaderFooterMousewheel:x,handleMouseLeave:S,tableId:U,tableSize:C,isHidden:m,isEmpty:i,renderExpanded:y,resizeProxyVisible:M,resizeState:E,isGroup:w,bodyWidth:k,tableBodyStyles:I,emptyBlockStyle:T,debouncedUpdateLayout:F,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:v,clearSort:h,doLayout:A,sort:p,updateKeyChildren:g,t,setDragVisible:b,context:r,computedSumText:G,computedEmptyText:Y,tableLayout:O,scrollbarViewStyle:z,scrollbarStyle:$,scrollBarRef:P,scrollTo:L,setScrollLeft:V,setScrollTop:B,allowDragLastColumn:e.allowDragLastColumn}}}),Pat=["data-prefix"],Rat={ref:"hiddenColumns",class:"hidden-columns"};function Oat(e,t,n,r,a,o){const i=Ft("hColgroup"),s=Ft("table-header"),l=Ft("table-body"),u=Ft("table-footer"),c=Ft("el-scrollbar"),f=xm("mousewheel");return D(),H("div",{ref:"tableWrapper",class:W([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:et(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[1]||(t[1]=(...d)=>e.handleMouseLeave&&e.handleMouseLeave(...d))},[N("div",{ref:"tableInnerWrapper",class:W(e.ns.e("inner-wrapper"))},[N("div",Rat,[ue(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?xt((D(),H("div",{key:0,ref:"headerWrapper",class:W(e.ns.e("header-wrapper"))},[N("table",{ref:"tableHeader",class:W(e.ns.e("header")),style:et(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[Q(i,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Q(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):le("v-if",!0),N("div",{ref:"bodyWrapper",class:W(e.ns.e("body-wrapper"))},[Q(c,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,native:e.nativeScrollbar,onScroll:t[0]||(t[0]=d=>e.$emit("scroll",d))},{default:ee(()=>[N("table",{ref:"tableBody",class:W(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:et({width:e.bodyWidth,tableLayout:e.tableLayout})},[Q(i,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(D(),de(s,{key:0,ref:"tableHeaderRef",class:W(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):le("v-if",!0),Q(l,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(D(),de(u,{key:1,class:W(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):le("v-if",!0)],6),e.isEmpty?(D(),H("div",{key:0,ref:"emptyBlock",style:et(e.emptyBlockStyle),class:W(e.ns.e("empty-block"))},[N("span",{class:W(e.ns.e("empty-text"))},[ue(e.$slots,"empty",{},()=>[gt(Ae(e.computedEmptyText),1)])],2)],6)):le("v-if",!0),e.$slots.append?(D(),H("div",{key:1,ref:"appendWrapper",class:W(e.ns.e("append-wrapper"))},[ue(e.$slots,"append")],2)):le("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","native"])],2),e.showSummary&&e.tableLayout==="fixed"?xt((D(),H("div",{key:1,ref:"footerWrapper",class:W(e.ns.e("footer-wrapper"))},[N("table",{class:W(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:et(e.tableBodyStyles)},[Q(i,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Q(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[tn,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):le("v-if",!0),e.border||e.isGroup?(D(),H("div",{key:2,class:W(e.ns.e("border-left-patch"))},null,2)):le("v-if",!0)],2),xt(N("div",{ref:"resizeProxy",class:W(e.ns.e("column-resize-proxy"))},null,2),[[tn,e.resizeProxyVisible]])],46,Pat)}var Nat=De(Dat,[["render",Oat],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const Bat={selection:"table-column--selection",expand:"table__expand-column"},Vat={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},$at=e=>Bat[e]||"",zat={selection:{renderHeader({store:e}){var t;function n(){return e.states.data.value&&e.states.data.value.length===0}return ot(Bi,{disabled:n(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":(t=e.toggleAllSelection)!=null?t:void 0,modelValue:e.states.isAllSelected.value,ariaLabel:e.t("el.table.selectAllLabel")})},renderCell({row:e,column:t,store:n,$index:r}){return ot(Bi,{disabled:t.selectable?!t.selectable.call(null,e,r):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:a=>a.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:n.t("el.table.selectRowLabel")})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return rt(r)?n=t+r:Je(r)&&(n=r(t)),ot("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({column:e,row:t,store:n,expanded:r}){const{ns:a}=n,o=[a.e("expand-icon")];!e.renderExpand&&r&&o.push(a.em("expand-icon","expanded"));const i=function(s){s.stopPropagation(),n.toggleRowExpansion(t)};return ot("button",{type:"button","aria-label":n.t(r?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":r,class:o,onClick:i},{default:()=>e.renderExpand?[e.renderExpand({expanded:r})]:[ot(Xe,null,{default:()=>[ot(ca)]})]})},sortable:!1,resizable:!1}};function Fat({row:e,column:t,$index:n}){var r;const a=t.property,o=a&&Q0(e,a).value;return t&&t.formatter?t.formatter(e,t,o,n):((r=o==null?void 0:o.toString)==null?void 0:r.call(o))||""}function Hat({row:e,treeNode:t,store:n},r=!1){const{ns:a}=n;if(!t)return r?[ot("span",{class:a.e("placeholder")})]:null;const o=[],i=function(s){s.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&o.push(ot("span",{class:a.e("indent"),style:{"padding-left":`${t.indent}px`}})),hn(t.expanded)&&!t.noLazyChildren){const s=[a.e("expand-icon"),t.expanded?a.em("expand-icon","expanded"):""];let l=ca;t.loading&&(l=si),o.push(ot("button",{type:"button","aria-label":n.t(t.expanded?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":t.expanded,class:s,onClick:i},{default:()=>[ot(Xe,{class:a.is("loading",t.loading)},{default:()=>[ot(l)]})]}))}else o.push(ot("span",{class:a.e("placeholder")}));return o}function ZV(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function Wat(e,t){const n=bt();return{registerComplexWatchers:()=>{const o=["fixed"],i={realWidth:"width",realMinWidth:"minWidth"},s=ZV(o,i);Object.keys(s).forEach(l=>{const u=i[l];nn(t,u)&&he(()=>t[u],c=>{let f=c;u==="width"&&l==="realWidth"&&(f=bE(c)),u==="minWidth"&&l==="realMinWidth"&&(f=eee(c)),n.columnConfig.value[u]=f,n.columnConfig.value[l]=f;const d=u==="fixed";e.value.store.scheduleLayout(d)})})},registerNormalWatchers:()=>{const o=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter","resizable"],i=["showOverflowTooltip"],s={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},l=ZV(o,s);Object.keys(l).forEach(u=>{const c=s[u];nn(t,c)&&he(()=>t[c],f=>{n.columnConfig.value[u]=f,(u==="filters"||u==="filterMethod")&&(n.columnConfig.value.filterable=!!(n.columnConfig.value.filters||n.columnConfig.value.filterMethod))})}),i.forEach(u=>{nn(e.value.props,u)&&he(()=>e.value.props[u],c=>{n.columnConfig.value[u]=c})})}}}function Gat(e,t,n){const r=bt(),a=K(""),o=K(!1),i=K(),s=K(),l=we("table");Ga(()=>{i.value=e.align?`is-${e.align}`:null,i.value}),Ga(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:i.value,s.value});const u=R(()=>{let w=r.vnode.vParent||r.parent;for(;w&&!w.tableId&&!w.columnId;)w=w.vnode.vParent||w.parent;return w}),c=R(()=>{const{store:w}=r.parent;if(!w)return!1;const{treeData:S}=w.states,x=S.value;return x&&Object.keys(x).length>0}),f=K(bE(e.width)),d=K(eee(e.minWidth)),v=w=>(f.value&&(w.width=f.value),d.value&&(w.minWidth=d.value),!f.value&&d.value&&(w.width=void 0),w.minWidth||(w.minWidth=80),w.realWidth=Number(Jt(w.width)?w.minWidth:w.width),w),h=w=>{const S=w.type,x=zat[S]||{};Object.keys(x).forEach(T=>{const M=x[T];T!=="className"&&!Jt(M)&&(w[T]=M)});const C=$at(S);if(C){const T=`${_(l.namespace)}-${C}`;w.className=w.className?`${w.className} ${T}`:T}return w},p=w=>{Ce(w)?w.forEach(x=>S(x)):S(w);function S(x){var C;((C=x==null?void 0:x.type)==null?void 0:C.name)==="ElTableColumn"&&(x.vParent=r)}};return{columnId:a,realAlign:i,isSubColumn:o,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:v,setColumnForcedProps:h,setColumnRenders:w=>{e.renderHeader||w.type!=="selection"&&(w.renderHeader=x=>{if(r.columnConfig.value.label,t.header){const C=t.header(x);if(ree(C))return ot(qe,C)}return gt(w.label)}),t["filter-icon"]&&(w.renderFilterIcon=x=>ue(t,"filter-icon",x)),t.expand&&(w.renderExpand=x=>ue(t,"expand",x));let S=w.renderCell;return w.type==="expand"?(w.renderCell=x=>ot("div",{class:"cell"},[S(x)]),n.value.renderExpanded=x=>t.default?t.default(x):t.default):(S=S||Fat,w.renderCell=x=>{let C=null;if(t.default){const I=t.default(x);C=I.some(O=>O.type!==$n)?I:S(x)}else C=S(x);const{columns:T}=n.value.store.states,M=T.value.findIndex(I=>I.type==="default"),k=c.value&&x.cellIndex===M,E=Hat(x,k),A={class:"cell",style:{}};return w.showOverflowTooltip&&(A.class=`${A.class} ${_(l.namespace)}-tooltip`,A.style={width:`${(x.column.realWidth||Number(x.column.width))-1}px`}),p(C),ot("div",A,[E,C])}),w},getPropsData:(...w)=>w.reduce((S,x)=>(Ce(x)&&x.forEach(C=>{S[C]=e[C]}),S),{}),getColumnElIndex:(w,S)=>Array.prototype.indexOf.call(w,S),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var Uat={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let Kat=1;var mee=q({name:"ElTableColumn",components:{ElCheckbox:Bi},props:Uat,setup(e,{slots:t}){const n=bt(),r=K({}),a=R(()=>{let b=n.parent;for(;b&&!b.tableId;)b=b.parent;return b}),{registerNormalWatchers:o,registerComplexWatchers:i}=Wat(a,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:f,setColumnForcedProps:d,setColumnRenders:v,getPropsData:h,getColumnElIndex:p,realAlign:g,updateColumnOrder:m}=Gat(e,t,a),y=c.value;s.value=`${"tableId"in y&&y.tableId||"columnId"in y&&y.columnId}_column_${Kat++}`,wm(()=>{l.value=a.value!==y;const b=e.type||"default",w=e.sortable===""?!0:e.sortable,S=b==="selection"?!1:Jt(e.showOverflowTooltip)?y.props.showOverflowTooltip:e.showOverflowTooltip,x=Jt(e.tooltipFormatter)?y.props.tooltipFormatter:e.tooltipFormatter,C={...Vat[b],id:s.value,type:b,property:e.prop||e.property,align:g,headerAlign:u,showOverflowTooltip:S,tooltipFormatter:x,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:w,index:e.index,rawColumnKey:n.vnode.key};let A=h(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);A=Brt(C,A),A=$rt(v,f,d)(A),r.value=A,o(),i()}),Et(()=>{var b,w;const S=c.value,x=l.value?(b=S.vnode.el)==null?void 0:b.children:(w=S.refs.hiddenColumns)==null?void 0:w.children,C=()=>p(x||[],n.vnode.el);r.value.getColumnIndex=C,C()>-1&&a.value.store.commit("insertColumn",r.value,l.value?"columnConfig"in S&&S.columnConfig.value:null,m)}),un(()=>{const b=r.value.getColumnIndex;(b?b():-1)>-1&&a.value.store.commit("removeColumn",r.value,l.value?"columnConfig"in y&&y.columnConfig.value:null,m)}),n.columnId=s.value,n.columnConfig=r},render(){var e,t,n;try{const r=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),a=[];if(Ce(r))for(const i of r)((n=i.type)==null?void 0:n.name)==="ElTableColumn"||i.shapeFlag&2?a.push(i):i.type===qe&&Ce(i.children)&&i.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!Ge(s==null?void 0:s.children)&&a.push(s)});return ot("div",a)}catch{return ot("div",[])}}});const jat=_t(Nat,{TableColumn:mee}),Yat=Kn(mee);var Lf=(e=>(e.ASC="asc",e.DESC="desc",e))(Lf||{}),fm=(e=>(e.LEFT="left",e.CENTER="center",e.RIGHT="right",e))(fm||{}),yee=(e=>(e.LEFT="left",e.RIGHT="right",e))(yee||{});const VT={asc:"desc",desc:"asc"},dm=Symbol("placeholder"),qat=(e,t,n)=>{var r;const a={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(a.flexShrink=1);const o={...(r=e.style)!=null?r:{},...a,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(o.maxWidth=e.maxWidth),e.minWidth&&(o.minWidth=e.minWidth)),o};function Xat(e,t,n){const r=R(()=>_(t).map((g,m)=>{var y,b;return{...g,key:(b=(y=g.key)!=null?y:g.dataKey)!=null?b:m}})),a=R(()=>_(r).filter(g=>!g.hidden)),o=R(()=>_(a).filter(g=>g.fixed==="left"||g.fixed===!0)),i=R(()=>_(a).filter(g=>g.fixed==="right")),s=R(()=>_(a).filter(g=>!g.fixed)),l=R(()=>{const g=[];return _(o).forEach(m=>{g.push({...m,placeholderSign:dm})}),_(s).forEach(m=>{g.push(m)}),_(i).forEach(m=>{g.push({...m,placeholderSign:dm})}),g}),u=R(()=>_(o).length||_(i).length),c=R(()=>_(r).reduce((g,m)=>(g[m.key]=qat(m,_(n),e.fixed),g),{})),f=R(()=>_(a).reduce((g,m)=>g+m.width,0)),d=g=>_(r).find(m=>m.key===g),v=g=>_(c)[g],h=(g,m)=>{g.width=m};function p(g){var m;const{key:y}=g.currentTarget.dataset;if(!y)return;const{sortState:b,sortBy:w}=e;let S=Lf.ASC;St(b)?S=VT[b[y]]:S=VT[w.order],(m=e.onColumnSort)==null||m.call(e,{column:d(y),key:y,order:S})}return{columns:r,columnsStyles:c,columnsTotalWidth:f,fixedColumnsOnLeft:o,fixedColumnsOnRight:i,hasFixedColumns:u,mainColumns:l,normalColumns:s,visibleColumns:a,getColumn:d,getColumnStyle:v,updateColumnWidth:h,onColumnSorted:p}}const Zat=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:a})=>{const o=K({scrollLeft:0,scrollTop:0});function i(v){var h,p,g;const{scrollTop:m}=v;(h=t.value)==null||h.scrollTo(v),(p=n.value)==null||p.scrollToTop(m),(g=r.value)==null||g.scrollToTop(m)}function s(v){o.value=v,i(v)}function l(v){o.value.scrollTop=v,i(_(o))}function u(v){var h,p;o.value.scrollLeft=v,(p=(h=t.value)==null?void 0:h.scrollTo)==null||p.call(h,_(o))}function c(v){var h;s(v),(h=e.onScroll)==null||h.call(e,v)}function f({scrollTop:v}){const{scrollTop:h}=_(o);v!==h&&l(v)}function d(v,h="auto"){var p;(p=t.value)==null||p.scrollToRow(v,h)}return he(()=>_(o).scrollTop,(v,h)=>{v>h&&a()}),{scrollPos:o,scrollTo:s,scrollToLeft:u,scrollToTop:l,scrollToRow:d,onScroll:c,onVerticalScroll:f}},Jat=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,tableInstance:a,ns:o,isScrolling:i})=>{const s=bt(),{emit:l}=s,u=Ln(!1),c=K(e.defaultExpandedRowKeys||[]),f=K(-1),d=Ln(null),v=K({}),h=K({}),p=Ln({}),g=Ln({}),m=Ln({}),y=R(()=>rt(e.estimatedRowHeight));function b(k){var E;(E=e.onRowsRendered)==null||E.call(e,k),k.rowCacheEnd>_(f)&&(f.value=k.rowCacheEnd)}function w({hovered:k,rowKey:E}){if(i.value)return;a.vnode.el.querySelectorAll(`[rowkey="${String(E)}"]`).forEach(O=>{k?O.classList.add(o.is("hovered")):O.classList.remove(o.is("hovered"))})}function S({expanded:k,rowData:E,rowIndex:A,rowKey:I}){var O,z;const $=[..._(c)],P=$.indexOf(I);k?P===-1&&$.push(I):P>-1&&$.splice(P,1),c.value=$,l("update:expandedRowKeys",$),(O=e.onRowExpand)==null||O.call(e,{expanded:k,rowData:E,rowIndex:A,rowKey:I}),(z=e.onExpandedRowsChange)==null||z.call(e,$),a.vnode.el.querySelector(`.${o.is("hovered")}[rowkey="${String(I)}"]`)&&ze(()=>w({hovered:!0,rowKey:I}))}const x=Ys(()=>{var k,E,A,I;u.value=!0,v.value={..._(v),..._(h)},C(_(d),!1),h.value={},d.value=null,(k=t.value)==null||k.forceUpdate(),(E=n.value)==null||E.forceUpdate(),(A=r.value)==null||A.forceUpdate(),(I=s.proxy)==null||I.$forceUpdate(),u.value=!1},0);function C(k,E=!1){_(y)&&[t,n,r].forEach(A=>{const I=_(A);I&&I.resetAfterRowIndex(k,E)})}function T(k,E,A){const I=_(d);(I===null||I>A)&&(d.value=A),h.value[k]=E}function M({rowKey:k,height:E,rowIndex:A},I){I?I===yee.RIGHT?m.value[k]=E:p.value[k]=E:g.value[k]=E;const O=Math.max(...[p,m,g].map(z=>z.value[k]||0));_(v)[k]!==O&&(T(k,O,A),x())}return{expandedRowKeys:c,lastRenderedRowIndex:f,isDynamic:y,isResetting:u,rowHeights:v,resetAfterIndex:C,onRowExpanded:S,onRowHovered:w,onRowsRendered:b,onRowHeightChange:M}},Qat=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const a=K({}),o=R(()=>{const s={},{data:l,rowKey:u}=e,c=_(t);if(!c||!c.length)return l;const f=[],d=new Set;c.forEach(h=>d.add(h));let v=l.slice();for(v.forEach(h=>s[h[u]]=0);v.length>0;){const h=v.shift();f.push(h),d.has(h[u])&&Ce(h.children)&&h.children.length>0&&(v=[...h.children,...v],h.children.forEach(p=>s[p[u]]=s[h[u]]+1))}return a.value=s,f}),i=R(()=>{const{data:s,expandColumnKey:l}=e;return l?_(o):s});return he(i,(s,l)=>{s!==l&&(n.value=-1,r(0,!0))}),{data:i,depthMap:a}},eot=(e,t)=>e+t,tb=e=>Ce(e)?e.reduce(eot,0):e,fd=(e,t,n={})=>Je(e)?e(t):e??n,Gu=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=Un(e[t])}),e),bee=e=>wn(e)?t=>ot(e,t):e,tot=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:a})=>{const o=R(()=>{const{fixed:m,width:y,vScrollbarSize:b}=e,w=y-b;return m?Math.max(Math.round(_(t)),w):w}),i=R(()=>{const{height:m=0,maxHeight:y=0,footerHeight:b,hScrollbarSize:w}=e;if(y>0){const S=_(d),x=_(n),T=_(f)+S+x+w;return Math.min(T,y-b)}return m-b}),s=R(()=>{const{maxHeight:m}=e,y=_(i);if(rt(m)&&m>0)return y;const b=_(n)+_(f)+_(d);return Math.min(y,b)}),l=m=>m.width,u=R(()=>tb(_(r).map(l))),c=R(()=>tb(_(a).map(l))),f=R(()=>tb(e.headerHeight)),d=R(()=>{var m;return(((m=e.fixedData)==null?void 0:m.length)||0)*e.rowHeight}),v=R(()=>_(i)-_(f)-_(d)),h=R(()=>{const{style:m={},height:y,width:b}=e;return Gu({...m,height:y,width:b})}),p=R(()=>Gu({height:e.footerHeight})),g=R(()=>({top:Un(_(f)),bottom:Un(e.footerHeight),width:Un(e.width)}));return{bodyWidth:o,fixedTableHeight:s,mainTableHeight:i,leftTableWidth:u,rightTableWidth:c,windowHeight:v,footerHeight:p,emptyStyle:g,rootStyle:h,headerHeight:f}};function not(e){const t=K(),n=K(),r=K(),{columns:a,columnsStyles:o,columnsTotalWidth:i,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:c,onColumnSorted:f}=Xat(e,vn(e,"columns"),vn(e,"fixed")),{scrollTo:d,scrollToLeft:v,scrollToTop:h,scrollToRow:p,onScroll:g,onVerticalScroll:m,scrollPos:y}=Zat(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:J}),b=we("table-v2"),w=bt(),S=Ln(!1),{expandedRowKeys:x,lastRenderedRowIndex:C,isDynamic:T,isResetting:M,rowHeights:k,resetAfterIndex:E,onRowExpanded:A,onRowHeightChange:I,onRowHovered:O,onRowsRendered:z}=Jat(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,tableInstance:w,ns:b,isScrolling:S}),{data:$,depthMap:P}=Qat(e,{expandedRowKeys:x,lastRenderedRowIndex:C,resetAfterIndex:E}),L=R(()=>{const{estimatedRowHeight:ae,rowHeight:fe}=e,ve=_($);return rt(ae)?Object.values(_(k)).reduce((me,pe)=>me+pe,0):ve.length*fe}),{bodyWidth:V,fixedTableHeight:B,mainTableHeight:F,leftTableWidth:U,rightTableWidth:G,windowHeight:Y,footerHeight:X,emptyStyle:te,rootStyle:oe,headerHeight:re}=tot(e,{columnsTotalWidth:i,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,rowsHeight:L}),ce=K(),ie=R(()=>{const ae=_($).length===0;return Ce(e.fixedData)?e.fixedData.length===0&&ae:ae});function Z(ae){const{estimatedRowHeight:fe,rowHeight:ve,rowKey:me}=e;return fe?_(k)[_($)[ae][me]]||fe:ve}const se=K(!1);function J(){const{onEndReached:ae}=e;if(!ae)return;const{scrollTop:fe}=_(y),ve=_(L),me=_(Y),pe=ve-(fe+me)+e.hScrollbarSize;!se.value&&_(C)>=0&&ve<=fe+_(F)-_(re)?(se.value=!0,ae(pe)):se.value=!1}return he(()=>_(L),()=>se.value=!1),he(()=>e.expandedRowKeys,ae=>x.value=ae,{deep:!0}),{columns:a,containerRef:ce,mainTableRef:t,leftTableRef:n,rightTableRef:r,isDynamic:T,isResetting:M,isScrolling:S,hasFixedColumns:u,columnsStyles:o,columnsTotalWidth:i,data:$,expandedRowKeys:x,depthMap:P,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,mainColumns:c,bodyWidth:V,emptyStyle:te,rootStyle:oe,footerHeight:X,mainTableHeight:F,fixedTableHeight:B,leftTableWidth:U,rightTableWidth:G,showEmpty:ie,getRowHeight:Z,onColumnSorted:f,onRowHovered:O,onRowExpanded:A,onRowsRendered:z,onRowHeightChange:I,scrollTo:d,scrollToLeft:v,scrollToTop:h,scrollToRow:p,onScroll:g,onVerticalScroll:m}}const CE=Symbol("tableV2"),_ee="tableV2GridScrollLeft",wee=String,g1={type:ne(Array),required:!0},TE={type:ne(Array)},See={...TE,required:!0},rot=String,JV={type:ne(Array),default:()=>Gn([])},yf={type:Number,required:!0},xee={type:ne([String,Number,Symbol]),default:"id"},QV={type:ne(Object)},Df=Ie({class:String,columns:g1,columnsStyles:{type:ne(Object),required:!0},depth:Number,expandColumnKey:rot,estimatedRowHeight:{...qf.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:ne(Function)},onRowHover:{type:ne(Function)},onRowHeightChange:{type:ne(Function)},rowData:{type:ne(Object),required:!0},rowEventHandlers:{type:ne(Object)},rowIndex:{type:Number,required:!0},rowKey:xee,style:{type:ne(Object)}}),i8={type:Number,required:!0},kE=Ie({class:String,columns:g1,fixedHeaderData:{type:ne(Array)},headerData:{type:ne(Array),required:!0},headerHeight:{type:ne([Number,Array]),default:50},rowWidth:i8,rowHeight:{type:Number,default:50},height:i8,width:i8}),nb=Ie({columns:g1,data:See,fixedData:TE,estimatedRowHeight:Df.estimatedRowHeight,width:yf,height:yf,headerWidth:yf,headerHeight:kE.headerHeight,bodyWidth:yf,rowHeight:yf,cache:FQ.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:qf.scrollbarAlwaysOn,scrollbarStartGap:qf.scrollbarStartGap,scrollbarEndGap:qf.scrollbarEndGap,class:wee,style:QV,containerStyle:QV,getRowHeight:{type:ne(Function),required:!0},rowKey:Df.rowKey,onRowsRendered:{type:ne(Function)},onScroll:{type:ne(Function)}}),aot=Ie({cache:nb.cache,estimatedRowHeight:Df.estimatedRowHeight,rowKey:xee,headerClass:{type:ne([String,Function])},headerProps:{type:ne([Object,Function])},headerCellProps:{type:ne([Object,Function])},headerHeight:kE.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:ne([String,Function])},rowProps:{type:ne([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:ne([Object,Function])},columns:g1,data:See,dataGetter:{type:ne(Function)},fixedData:TE,expandColumnKey:Df.expandColumnKey,expandedRowKeys:JV,defaultExpandedRowKeys:JV,class:wee,fixed:Boolean,style:{type:ne(Object)},width:yf,height:yf,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:qf.hScrollbarSize,vScrollbarSize:qf.vScrollbarSize,scrollbarAlwaysOn:GQ.alwaysOn,sortBy:{type:ne(Object),default:()=>({})},sortState:{type:ne(Object),default:void 0},onColumnSort:{type:ne(Function)},onExpandedRowsChange:{type:ne(Function)},onEndReached:{type:ne(Function)},onRowExpand:Df.onRowExpand,onScroll:nb.onScroll,onRowsRendered:nb.onRowsRendered,rowEventHandlers:Df.rowEventHandlers}),oot="ElTableV2Header",iot=q({name:oot,props:kE,setup(e,{slots:t,expose:n}){const r=we("table-v2"),a=Ue(_ee),o=K(),i=R(()=>Gu({width:e.width,height:e.height})),s=R(()=>Gu({width:e.rowWidth,height:e.height})),l=R(()=>Hr(_(e.headerHeight))),u=d=>{const v=_(o);ze(()=>{v!=null&&v.scroll&&v.scroll({left:d})})},c=()=>{const d=r.e("fixed-header-row"),{columns:v,fixedHeaderData:h,rowHeight:p}=e;return h==null?void 0:h.map((g,m)=>{var y;const b=Gu({height:p,width:"100%"});return(y=t.fixed)==null?void 0:y.call(t,{class:d,columns:v,rowData:g,rowIndex:-(m+1),style:b})})},f=()=>{const d=r.e("dynamic-header-row"),{columns:v}=e;return _(l).map((h,p)=>{var g;const m=Gu({width:"100%",height:h});return(g=t.dynamic)==null?void 0:g.call(t,{class:d,columns:v,headerIndex:p,style:m})})};return Lo(()=>{a!=null&&a.value&&u(a.value)}),n({scrollToLeft:u}),()=>{if(!(e.height<=0))return Q("div",{ref:o,class:e.class,style:_(i),role:"rowgroup"},[Q("div",{style:_(s),class:r.e("header")},[f(),c()])])}}});var sot=iot;const lot=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:r},a)=>{let o=null,i=0,s=0;const l=(c,f)=>{const d=c<=0&&t.value||c>=0&&e.value,v=f<=0&&r.value||f>=0&&n.value;return d&&v};return{hasReachedEdge:l,onWheel:c=>{jl(o);let f=c.deltaX,d=c.deltaY;Math.abs(f)>Math.abs(d)?d=0:f=0,c.shiftKey&&d!==0&&(f=d,d=0),!(l(i,s)&&l(i+f,s+d))&&(i+=f,s+=d,c.preventDefault(),o=qs(()=>{a(i,s),i=0,s=0}))}}},uot=(e,t,n,r,a,o,i)=>{const s=K(0),l=K(0);let u,c=0,f=0;const d=h=>{jl(u),s.value=h.touches[0].clientX,l.value=h.touches[0].clientY,c=0,f=0},v=h=>{h.preventDefault(),jl(u),c+=s.value-h.touches[0].clientX,f+=l.value-h.touches[0].clientY,s.value=h.touches[0].clientX,l.value=h.touches[0].clientY,u=qs(()=>{const p=r.value-_(o),g=a.value-_(i),m=Math.min(t.value.scrollLeft+c,p),y=Math.min(t.value.scrollTop+f,g);n({scrollLeft:m,scrollTop:y}),c=0,f=0})};return fn(e,"touchstart",d,{passive:!0}),fn(e,"touchmove",v,{passive:!1}),{touchStartX:s,touchStartY:l,handleTouchStart:d,handleTouchMove:v}},Cee=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:r,getColumnStopIndexForStartIndex:a,getEstimatedTotalHeight:o,getEstimatedTotalWidth:i,getColumnOffset:s,getRowOffset:l,getRowPosition:u,getRowStartIndexForOffset:c,getRowStopIndexForStartIndex:f,initCache:d,injectToInstance:v,validateProps:h})=>q({name:e??"ElVirtualList",props:qf,emits:[G_,U_],setup(p,{emit:g,expose:m,slots:y}){const b=we("vl");h(p);const w=bt(),S=K(d(p,w));v==null||v(w,S);const x=K(),C=K(),T=K(),M=K(),k=K({isScrolling:!1,scrollLeft:rt(p.initScrollLeft)?p.initScrollLeft:0,scrollTop:rt(p.initScrollTop)?p.initScrollTop:0,updateRequested:!1,xAxisScrollDir:Nv,yAxisScrollDir:Nv}),E=BQ(),A=R(()=>Number.parseInt(`${p.height}`,10)),I=R(()=>Number.parseInt(`${p.width}`,10)),O=R(()=>{const{totalColumn:_e,totalRow:be,columnCache:Fe}=p,{isScrolling:Oe,xAxisScrollDir:Ze,scrollLeft:nt}=_(k);if(_e===0||be===0)return[0,0,0,0];const xe=r(p,nt,_(S)),je=a(p,xe,nt,_(S)),Ke=!Oe||Ze===K_?Math.max(1,Fe):1,en=!Oe||Ze===Nv?Math.max(1,Fe):1;return[Math.max(0,xe-Ke),Math.max(0,Math.min(_e-1,je+en)),xe,je]}),z=R(()=>{const{totalColumn:_e,totalRow:be,rowCache:Fe}=p,{isScrolling:Oe,yAxisScrollDir:Ze,scrollTop:nt}=_(k);if(_e===0||be===0)return[0,0,0,0];const xe=c(p,nt,_(S)),je=f(p,xe,nt,_(S)),Ke=!Oe||Ze===K_?Math.max(1,Fe):1,en=!Oe||Ze===Nv?Math.max(1,Fe):1;return[Math.max(0,xe-Ke),Math.max(0,Math.min(be-1,je+en)),xe,je]}),$=R(()=>o(p,_(S))),P=R(()=>i(p,_(S))),L=R(()=>{var _e;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:p.direction,height:rt(p.height)?`${p.height}px`:p.height,width:rt(p.width)?`${p.width}px`:p.width},(_e=p.style)!=null?_e:{}]}),V=R(()=>{const _e=`${_(P)}px`;return{height:`${_($)}px`,pointerEvents:_(k).isScrolling?"none":void 0,width:_e,margin:0,boxSizing:"border-box"}}),B=()=>{const{totalColumn:_e,totalRow:be}=p;if(_e>0&&be>0){const[je,Ke,en,Qe]=_(O),[Ct,mt,Nt,Te]=_(z);g(G_,{columnCacheStart:je,columnCacheEnd:Ke,rowCacheStart:Ct,rowCacheEnd:mt,columnVisibleStart:en,columnVisibleEnd:Qe,rowVisibleStart:Nt,rowVisibleEnd:Te})}const{scrollLeft:Fe,scrollTop:Oe,updateRequested:Ze,xAxisScrollDir:nt,yAxisScrollDir:xe}=_(k);g(U_,{xAxisScrollDir:nt,scrollLeft:Fe,yAxisScrollDir:xe,scrollTop:Oe,updateRequested:Ze})},F=_e=>{const{clientHeight:be,clientWidth:Fe,scrollHeight:Oe,scrollLeft:Ze,scrollTop:nt,scrollWidth:xe}=_e.currentTarget,je=_(k);if(je.scrollTop===nt&&je.scrollLeft===Ze)return;let Ke=Ze;if(OV(p.direction))switch(Y_()){case um:Ke=-Ze;break;case yE:Ke=xe-Fe-Ze;break}k.value={...je,isScrolling:!0,scrollLeft:Ke,scrollTop:Math.max(0,Math.min(nt,Oe-be)),updateRequested:!0,xAxisScrollDir:If(je.scrollLeft,Ke),yAxisScrollDir:If(je.scrollTop,nt)},ze(()=>se()),J(),B()},U=(_e,be)=>{const Fe=_(A),Oe=($.value-Fe)/be*_e;X({scrollTop:Math.min($.value-Fe,Oe)})},G=(_e,be)=>{const Fe=_(I),Oe=(P.value-Fe)/be*_e;X({scrollLeft:Math.min(P.value-Fe,Oe)})},{onWheel:Y}=lot({atXStartEdge:R(()=>k.value.scrollLeft<=0),atXEndEdge:R(()=>k.value.scrollLeft>=P.value-_(I)),atYStartEdge:R(()=>k.value.scrollTop<=0),atYEndEdge:R(()=>k.value.scrollTop>=$.value-_(A))},(_e,be)=>{var Fe,Oe,Ze,nt;(Oe=(Fe=C.value)==null?void 0:Fe.onMouseUp)==null||Oe.call(Fe),(nt=(Ze=T.value)==null?void 0:Ze.onMouseUp)==null||nt.call(Ze);const xe=_(I),je=_(A);X({scrollLeft:Math.min(k.value.scrollLeft+_e,P.value-xe),scrollTop:Math.min(k.value.scrollTop+be,$.value-je)})});fn(x,"wheel",Y,{passive:!1});const X=({scrollLeft:_e=k.value.scrollLeft,scrollTop:be=k.value.scrollTop})=>{_e=Math.max(_e,0),be=Math.max(be,0);const Fe=_(k);be===Fe.scrollTop&&_e===Fe.scrollLeft||(k.value={...Fe,xAxisScrollDir:If(Fe.scrollLeft,_e),yAxisScrollDir:If(Fe.scrollTop,be),scrollLeft:_e,scrollTop:be,updateRequested:!0},ze(()=>se()),J(),B())},{touchStartX:te,touchStartY:oe,handleTouchStart:re,handleTouchMove:ce}=uot(x,k,X,P,$,I,A),ie=(_e=0,be=0,Fe=Qo)=>{const Oe=_(k);be=Math.max(0,Math.min(be,p.totalColumn-1)),_e=Math.max(0,Math.min(_e,p.totalRow-1));const Ze=jX(b.namespace.value),nt=_(S),xe=o(p,nt),je=i(p,nt);X({scrollLeft:s(p,be,Fe,Oe.scrollLeft,nt,je>p.width?Ze:0),scrollTop:l(p,_e,Fe,Oe.scrollTop,nt,xe>p.height?Ze:0)})},Z=(_e,be)=>{const{columnWidth:Fe,direction:Oe,rowHeight:Ze}=p,nt=E.value(t&&Fe,t&&Ze,t&&Oe),xe=`${_e},${be}`;if(nn(nt,xe))return nt[xe];{const[,je]=n(p,be,_(S)),Ke=_(S),en=OV(Oe),[Qe,Ct]=u(p,_e,Ke),[mt]=n(p,be,Ke);return nt[xe]={position:"absolute",left:en?void 0:`${je}px`,right:en?`${je}px`:void 0,top:`${Ct}px`,height:`${Qe}px`,width:`${mt}px`},nt[xe]}},se=()=>{k.value.isScrolling=!1,ze(()=>{E.value(-1,null,null)})};Et(()=>{if(!on)return;const{initScrollLeft:_e,initScrollTop:be}=p,Fe=_(x);Fe&&(rt(_e)&&(Fe.scrollLeft=_e),rt(be)&&(Fe.scrollTop=be)),B()});const J=()=>{const{direction:_e}=p,{scrollLeft:be,scrollTop:Fe,updateRequested:Oe}=_(k),Ze=_(x);if(Oe&&Ze){if(_e===eh)switch(Y_()){case um:{Ze.scrollLeft=-be;break}case mE:{Ze.scrollLeft=be;break}default:{const{clientWidth:nt,scrollWidth:xe}=Ze;Ze.scrollLeft=xe-nt-be;break}}else Ze.scrollLeft=Math.max(0,be);Ze.scrollTop=Math.max(0,Fe)}},{resetAfterColumnIndex:ae,resetAfterRowIndex:fe,resetAfter:ve}=w.proxy;m({windowRef:x,innerRef:M,getItemStyleCache:E,touchStartX:te,touchStartY:oe,handleTouchStart:re,handleTouchMove:ce,scrollTo:X,scrollToItem:ie,states:k,resetAfterColumnIndex:ae,resetAfterRowIndex:fe,resetAfter:ve});const me=()=>{const{scrollbarAlwaysOn:_e,scrollbarStartGap:be,scrollbarEndGap:Fe,totalColumn:Oe,totalRow:Ze}=p,nt=_(I),xe=_(A),je=_(P),Ke=_($),{scrollLeft:en,scrollTop:Qe}=_(k),Ct=ot(MT,{ref:C,alwaysOn:_e,startGap:be,endGap:Fe,class:b.e("horizontal"),clientSize:nt,layout:"horizontal",onScroll:G,ratio:nt*100/je,scrollFrom:en/(je-nt),total:Ze,visible:!0}),mt=ot(MT,{ref:T,alwaysOn:_e,startGap:be,endGap:Fe,class:b.e("vertical"),clientSize:xe,layout:"vertical",onScroll:U,ratio:xe*100/Ke,scrollFrom:Qe/(Ke-xe),total:Oe,visible:!0});return{horizontalScrollbar:Ct,verticalScrollbar:mt}},pe=()=>{var _e;const[be,Fe]=_(O),[Oe,Ze]=_(z),{data:nt,totalColumn:xe,totalRow:je,useIsScrolling:Ke,itemKey:en}=p,Qe=[];if(je>0&&xe>0)for(let Ct=Oe;Ct<=Ze;Ct++)for(let mt=be;mt<=Fe;mt++){const Nt=en({columnIndex:mt,data:nt,rowIndex:Ct});Qe.push(ot(qe,{key:Nt},(_e=y.default)==null?void 0:_e.call(y,{columnIndex:mt,data:nt,isScrolling:Ke?_(k).isScrolling:void 0,style:Z(Ct,mt),rowIndex:Ct})))}return Qe},Ne=()=>{const _e=Tt(p.innerElement),be=pe();return[ot(_e,It(p.innerProps,{style:_(V),ref:M}),Ge(_e)?be:{default:()=>be})]};return()=>{const _e=Tt(p.containerElement),{horizontalScrollbar:be,verticalScrollbar:Fe}=me(),Oe=Ne();return ot("div",{key:0,class:b.e("wrapper"),role:p.role},[ot(_e,{class:p.className,style:_(L),onScroll:F,ref:x},Ge(_e)?Oe:{default:()=>Oe}),be,Fe])}}}),{max:Z_,min:Tee,floor:kee}=Math,cot={column:"columnWidth",row:"rowHeight"},$T={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},bl=(e,t,n,r)=>{const[a,o,i]=[n[r],e[cot[r]],n[$T[r]]];if(t>i){let s=0;if(i>=0){const l=a[i];s=l.offset+l.size}for(let l=i+1;l<=t;l++){const u=o(l);a[l]={offset:s,size:u},s+=u}n[$T[r]]=t}return a[t]},Mee=(e,t,n,r,a,o)=>{for(;n<=r;){const i=n+kee((r-n)/2),s=bl(e,i,t,o).offset;if(s===a)return i;s<a?n=i+1:r=i-1}return Z_(0,n-1)},fot=(e,t,n,r,a)=>{const o=a==="column"?e.totalColumn:e.totalRow;let i=1;for(;n<o&&bl(e,n,t,a).offset<r;)n+=i,i*=2;return Mee(e,t,kee(n/2),Tee(n,o-1),r,a)},e$=(e,t,n,r)=>{const[a,o]=[t[r],t[$T[r]]];return(o>0?a[o].offset:0)>=n?Mee(e,t,0,o,n,r):fot(e,t,Z_(0,o),n,r)},Aee=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:r})=>{let a=0;if(n>=e&&(n=e-1),n>=0){const s=r[n];a=s.offset+s.size}const i=(e-n-1)*t;return a+i},Eee=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:r})=>{let a=0;if(r>e&&(r=e-1),r>=0){const s=t[r];a=s.offset+s.size}const i=(e-r-1)*n;return a+i},dot={column:Eee,row:Aee},t$=(e,t,n,r,a,o,i)=>{const[s,l]=[o==="row"?e.height:e.width,dot[o]],u=bl(e,t,a,o),c=l(e,a),f=Z_(0,Tee(c-s,u.offset)),d=Z_(0,u.offset-s+i+u.size);switch(n===D4&&(r>=d-s&&r<=f+s?n=Qo:n=xs),n){case sm:return f;case lm:return d;case xs:return Math.round(d+(f-d)/2);case Qo:default:return r>=d&&r<=f?r:d>f||r<d?d:f}},vot=Cee({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const r=bl(e,t,n,"column");return[r.size,r.offset]},getRowPosition:(e,t,n)=>{const r=bl(e,t,n,"row");return[r.size,r.offset]},getColumnOffset:(e,t,n,r,a,o)=>t$(e,t,n,r,a,"column",o),getRowOffset:(e,t,n,r,a,o)=>t$(e,t,n,r,a,"row",o),getColumnStartIndexForOffset:(e,t,n)=>e$(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,r)=>{const a=bl(e,t,r,"column"),o=n+e.width;let i=a.offset+a.size,s=t;for(;s<e.totalColumn-1&&i<o;)s++,i+=bl(e,t,r,"column").size;return s},getEstimatedTotalHeight:Aee,getEstimatedTotalWidth:Eee,getRowStartIndexForOffset:(e,t,n)=>e$(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,r)=>{const{totalRow:a,height:o}=e,i=bl(e,t,r,"row"),s=n+o;let l=i.size+i.offset,u=t;for(;u<a-1&&l<s;)u++,l+=bl(e,u,r,"row").size;return u},injectToInstance:(e,t)=>{const n=({columnIndex:o,rowIndex:i},s)=>{var l,u;s=Jt(s)?!0:s,rt(o)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,o-1)),rt(i)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,i-1)),(l=e.exposed)==null||l.getItemStyleCache.value(-1,null,null),s&&((u=e.proxy)==null||u.$forceUpdate())},r=(o,i)=>{n({columnIndex:o},i)},a=(o,i)=>{n({rowIndex:o},i)};Object.assign(e.proxy,{resetAfterColumnIndex:r,resetAfterRowIndex:a,resetAfter:n})},initCache:({estimatedColumnWidth:e=wT,estimatedRowHeight:t=wT})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),hot=Cee({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},r,a,o,i,s)=>{n=Number(n);const l=Math.max(0,e*t-n),u=Math.min(l,r*t),c=Math.max(0,r*t-n+s+t);switch(a==="smart"&&(o>=c-n&&o<=u+n?a=Qo:a=xs),a){case sm:return u;case lm:return c;case xs:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(n/2)?0:f>l+Math.floor(n/2)?l:f}case Qo:default:return o>=c&&o<=u?o:c>u||o<c?c:u}},getRowOffset:({rowHeight:e,height:t,totalRow:n},r,a,o,i,s)=>{t=Number(t);const l=Math.max(0,n*e-t),u=Math.min(l,r*e),c=Math.max(0,r*e-t+s+e);switch(a===D4&&(o>=c-t&&o<=u+t?a=Qo:a=xs),a){case sm:return u;case lm:return c;case xs:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(t/2)?0:f>l+Math.floor(t/2)?l:f}case Qo:default:return o>=c&&o<=u?o:c>u||o<c?c:u}},getColumnStartIndexForOffset:({columnWidth:e,totalColumn:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},r,a)=>{const o=r*e,i=Math.ceil((n+a-o)/e);return Math.max(0,Math.min(t-1,r+i-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},r,a)=>{const o=r*e,i=Math.ceil((n+a-o)/e);return Math.max(0,Math.min(t-1,r+i-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),pot="ElTableV2Grid",got=e=>{const t=K(),n=K(),r=K(0),a=R(()=>{const{data:g,rowHeight:m,estimatedRowHeight:y}=e;if(!y)return g.length*m}),o=R(()=>{const{fixedData:g,rowHeight:m}=e;return((g==null?void 0:g.length)||0)*m}),i=R(()=>tb(e.headerHeight)),s=R(()=>{const{height:g}=e;return Math.max(0,g-_(i)-_(o))}),l=R(()=>_(i)+_(o)>0),u=({data:g,rowIndex:m})=>g[m][e.rowKey];function c({rowCacheStart:g,rowCacheEnd:m,rowVisibleStart:y,rowVisibleEnd:b}){var w;(w=e.onRowsRendered)==null||w.call(e,{rowCacheStart:g,rowCacheEnd:m,rowVisibleStart:y,rowVisibleEnd:b})}function f(g,m){var y;(y=n.value)==null||y.resetAfterRowIndex(g,m)}function d(g,m){const y=_(t),b=_(n);St(g)?(y==null||y.scrollToLeft(g.scrollLeft),r.value=g.scrollLeft,b==null||b.scrollTo(g)):(y==null||y.scrollToLeft(g),r.value=g,b==null||b.scrollTo({scrollLeft:g,scrollTop:m}))}function v(g){var m;(m=_(n))==null||m.scrollTo({scrollTop:g})}function h(g,m){var y;(y=_(n))==null||y.scrollToItem(g,1,m)}function p(){var g,m;(g=_(n))==null||g.$forceUpdate(),(m=_(t))==null||m.$forceUpdate()}return he(()=>e.bodyWidth,()=>{var g;rt(e.estimatedRowHeight)&&((g=n.value)==null||g.resetAfter({columnIndex:0},!1))}),{bodyRef:n,forceUpdate:p,fixedRowHeight:o,gridHeight:s,hasHeader:l,headerHeight:i,headerRef:t,totalHeight:a,itemKey:u,onItemRendered:c,resetAfterRowIndex:f,scrollTo:d,scrollToTop:v,scrollToRow:h,scrollLeft:r}},mot=q({name:pot,props:nb,setup(e,{slots:t,expose:n}){const{ns:r}=Ue(CE),{bodyRef:a,fixedRowHeight:o,gridHeight:i,hasHeader:s,headerRef:l,headerHeight:u,totalHeight:c,forceUpdate:f,itemKey:d,onItemRendered:v,resetAfterRowIndex:h,scrollTo:p,scrollToTop:g,scrollToRow:m,scrollLeft:y}=got(e);Ut(_ee,y),_m(async()=>{var w;await ze();const S=(w=a.value)==null?void 0:w.states.scrollTop;S&&g(Math.round(S)+1)}),n({forceUpdate:f,totalHeight:c,scrollTo:p,scrollToTop:g,scrollToRow:m,resetAfterRowIndex:h});const b=()=>e.bodyWidth;return()=>{const{cache:w,columns:S,data:x,fixedData:C,useIsScrolling:T,scrollbarAlwaysOn:M,scrollbarEndGap:k,scrollbarStartGap:E,style:A,rowHeight:I,bodyWidth:O,estimatedRowHeight:z,headerWidth:$,height:P,width:L,getRowHeight:V,onScroll:B}=e,F=rt(z),U=F?vot:hot,G=_(u);return Q("div",{role:"table",class:[r.e("table"),e.class],style:A},[Q(U,{ref:a,data:x,useIsScrolling:T,itemKey:d,columnCache:0,columnWidth:F?b:O,totalColumn:1,totalRow:x.length,rowCache:w,rowHeight:F?V:I,width:L,height:_(i),class:r.e("body"),role:"rowgroup",scrollbarStartGap:E,scrollbarEndGap:k,scrollbarAlwaysOn:M,onScroll:B,onItemRendered:v,perfMode:!1},{default:Y=>{var X;const te=x[Y.rowIndex];return(X=t.row)==null?void 0:X.call(t,{...Y,columns:S,rowData:te})}}),_(s)&&Q(sot,{ref:l,class:r.e("header-wrapper"),columns:S,headerData:x,headerHeight:e.headerHeight,fixedHeaderData:C,rowWidth:$,rowHeight:I,width:L,height:Math.min(G+_(o),P)},{dynamic:t.header,fixed:t.row})])}}});var ME=mot;function yot(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!wn(e)}const bot=(e,{slots:t})=>{const{mainTableRef:n,...r}=e;return Q(ME,It({ref:n},r),yot(t)?t:{default:()=>[t]})};var _ot=bot;function wot(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!wn(e)}const Sot=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...r}=e;return Q(ME,It({ref:n},r),wot(t)?t:{default:()=>[t]})};var xot=Sot;function Cot(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!wn(e)}const Tot=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...r}=e;return Q(ME,It({ref:n},r),Cot(t)?t:{default:()=>[t]})};var kot=Tot;const Mot=e=>{const{isScrolling:t}=Ue(CE),n=K(!1),r=K(),a=R(()=>rt(e.estimatedRowHeight)&&e.rowIndex>=0),o=(l=!1)=>{const u=_(r);if(!u)return;const{columns:c,onRowHeightChange:f,rowKey:d,rowIndex:v,style:h}=e,{height:p}=u.getBoundingClientRect();n.value=!0,ze(()=>{if(l||p!==Number.parseInt(h.height)){const g=c[0],m=(g==null?void 0:g.placeholderSign)===dm;f==null||f({rowKey:d,height:p,rowIndex:v},g&&!m&&g.fixed)}})},i=R(()=>{const{rowData:l,rowIndex:u,rowKey:c,onRowHover:f}=e,d=e.rowEventHandlers||{},v={};return Object.entries(d).forEach(([h,p])=>{Je(p)&&(v[h]=g=>{p({event:g,rowData:l,rowIndex:u,rowKey:c})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:h,hovered:p})=>{const g=v[h];v[h]=m=>{f({event:m,hovered:p,rowData:l,rowIndex:u,rowKey:c}),g==null||g(m)}}),v}),s=l=>{const{onRowExpand:u,rowData:c,rowIndex:f,rowKey:d}=e;u==null||u({expanded:l,rowData:c,rowIndex:f,rowKey:d})};return Et(()=>{_(a)&&o(!0)}),{isScrolling:t,measurable:a,measured:n,rowRef:r,eventHandlers:i,onExpand:s}},Aot="ElTableV2TableRow",Eot=q({name:Aot,props:Df,setup(e,{expose:t,slots:n,attrs:r}){const{eventHandlers:a,isScrolling:o,measurable:i,measured:s,rowRef:l,onExpand:u}=Mot(e);return t({onExpand:u}),()=>{const{columns:c,columnsStyles:f,expandColumnKey:d,depth:v,rowData:h,rowIndex:p,style:g}=e;let m=c.map((y,b)=>{const w=Ce(h.children)&&h.children.length>0&&y.key===d;return n.cell({column:y,columns:c,columnIndex:b,depth:v,style:f[y.key],rowData:h,rowIndex:p,isScrolling:_(o),expandIconProps:w?{rowData:h,rowIndex:p,onExpand:u}:void 0})});if(n.row&&(m=n.row({cells:m.map(y=>Ce(y)&&y.length===1?y[0]:y),style:g,columns:c,depth:v,rowData:h,rowIndex:p,isScrolling:_(o)})),_(i)){const{height:y,...b}=g||{},w=_(s);return Q("div",It({ref:l,class:e.class,style:w?g:b,role:"row"},r,_(a)),[m])}return Q("div",It(r,{ref:l,class:e.class,style:g,role:"row"},_(a)),[m])}}});var Iot=Eot;function Lot(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!wn(e)}const Dot=(e,{slots:t})=>{const{columns:n,columnsStyles:r,depthMap:a,expandColumnKey:o,expandedRowKeys:i,estimatedRowHeight:s,hasFixedColumns:l,rowData:u,rowIndex:c,style:f,isScrolling:d,rowProps:v,rowClass:h,rowKey:p,rowEventHandlers:g,ns:m,onRowHovered:y,onRowExpanded:b}=e,w=fd(h,{columns:n,rowData:u,rowIndex:c},""),S=fd(v,{columns:n,rowData:u,rowIndex:c}),x=u[p],C=a[x]||0,T=!!o,M=c<0,k=[m.e("row"),w,m.is("expanded",T&&i.includes(x)),m.is("fixed",!C&&M),m.is("customized",!!t.row),{[m.e(`row-depth-${C}`)]:T&&c>=0}],E=l?y:void 0,A={...S,columns:n,columnsStyles:r,class:k,depth:C,expandColumnKey:o,estimatedRowHeight:M?void 0:s,isScrolling:d,rowIndex:c,rowData:u,rowKey:x,rowEventHandlers:g,style:f};return Q(Iot,It(A,{onRowExpand:b,onMouseenter:z=>{E==null||E({hovered:!0,rowKey:x,event:z,rowData:u,rowIndex:c})},onMouseleave:z=>{E==null||E({hovered:!1,rowKey:x,event:z,rowData:u,rowIndex:c})},rowkey:x}),Lot(t)?t:{default:()=>[t]})};var Pot=Dot;const AE=(e,{slots:t})=>{var n;const{cellData:r,style:a}=e,o=((n=r==null?void 0:r.toString)==null?void 0:n.call(r))||"",i=ue(t,"default",e,()=>[o]);return Q("div",{class:e.class,title:o,style:a},[i])};AE.displayName="ElTableV2Cell";AE.inheritAttrs=!1;var Rot=AE;const Oot=e=>{const{expanded:t,expandable:n,onExpand:r,style:a,size:o,ariaLabel:i}=e,s={onClick:n?()=>r(!t):void 0,ariaLabel:i,ariaExpanded:t,class:e.class};return Q("button",It(s,{type:"button"}),[Q(Xe,{size:o,style:a},{default:()=>[Q(ca,null,null)]})])};var Not=Oot;const Iee=({columns:e,column:t,columnIndex:n,depth:r,expandIconProps:a,isScrolling:o,rowData:i,rowIndex:s,style:l,expandedRowKeys:u,ns:c,t:f,cellProps:d,expandColumnKey:v,indentSize:h,iconSize:p,rowKey:g},{slots:m})=>{const y=Gu(l);if(t.placeholderSign===dm)return Q("div",{class:c.em("row-cell","placeholder"),style:y},null);const{cellRenderer:b,dataKey:w,dataGetter:S}=t,x=Je(S)?S({columns:e,column:t,columnIndex:n,rowData:i,rowIndex:s}):ur(i,w??""),C=fd(d,{cellData:x,columns:e,column:t,columnIndex:n,rowIndex:s,rowData:i}),T={class:c.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:x,isScrolling:o,rowData:i,rowIndex:s},M=bee(b),k=M?M(T):ue(m,"default",T,()=>[Q(Rot,T,null)]),E=[c.e("row-cell"),t.class,t.align===fm.CENTER&&c.is("align-center"),t.align===fm.RIGHT&&c.is("align-right")],A=s>=0&&v&&t.key===v,I=s>=0&&u.includes(i[g]);let O;const z=`margin-inline-start: ${r*h}px;`;return A&&(St(a)?O=Q(Not,It(a,{class:[c.e("expand-icon"),c.is("expanded",I)],size:p,expanded:I,ariaLabel:f(I?"el.table.collapseRowLabel":"el.table.expandRowLabel"),style:z,expandable:!0}),null):O=Q("div",{style:[z,`width: ${p}px; height: ${p}px;`].join(" ")},null)),Q("div",It({class:E,style:y},C,{role:"cell"}),[O,k])};Iee.inheritAttrs=!1;var n$=Iee;const Bot=Ie({class:String,columns:g1,columnsStyles:{type:ne(Object),required:!0},headerIndex:Number,style:{type:ne(Object)}}),Vot=q({name:"ElTableV2HeaderRow",props:Bot,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:r,headerIndex:a,style:o}=e;let i=n.map((s,l)=>t.cell({columns:n,column:s,columnIndex:l,headerIndex:a,style:r[s.key]}));return t.header&&(i=t.header({cells:i.map(s=>Ce(s)&&s.length===1?s[0]:s),columns:n,headerIndex:a})),Q("div",{class:e.class,style:o,role:"row"},[i])}}});var $ot=Vot;function zot(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!wn(e)}const Fot=({columns:e,columnsStyles:t,headerIndex:n,style:r,headerClass:a,headerProps:o,ns:i},{slots:s})=>{const l={columns:e,headerIndex:n},u=[i.e("header-row"),fd(a,l,""),i.is("customized",!!s.header)],c={...fd(o,l),columnsStyles:t,class:u,columns:e,headerIndex:n,style:r};return Q($ot,c,zot(s)?s:{default:()=>[s]})};var Hot=Fot;const EE=(e,{slots:t})=>ue(t,"default",e,()=>{var n,r;return[Q("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(r=e.column)==null?void 0:r.title])]});EE.displayName="ElTableV2HeaderCell";EE.inheritAttrs=!1;var Wot=EE;const Got=e=>{const{sortOrder:t}=e;return Q("button",{type:"button","aria-label":e.ariaLabel,class:e.class},[Q(Xe,{size:14},{default:()=>[t===Lf.ASC?Q(dZ,null,null):Q(fZ,null,null)]})])};var Uot=Got;const Kot=(e,{slots:t})=>{const{column:n,ns:r,t:a,style:o,onColumnSorted:i}=e,s=Gu(o);if(n.placeholderSign===dm)return Q("div",{class:r.em("header-row-cell","placeholder"),style:s},null);const{headerCellRenderer:l,headerClass:u,sortable:c}=n,f={...e,class:r.e("header-cell-text")},d=bee(l),v=d?d(f):ue(t,"default",f,()=>[Q(Wot,f,null)]),{sortBy:h,sortState:p,headerCellProps:g}=e;let m,y,b;if(p){const x=p[n.key];m=!!VT[x],y=m?x:Lf.ASC}else m=n.key===h.key,y=m?h.order:Lf.ASC;y===Lf.ASC?b="ascending":y===Lf.DESC?b="descending":b=void 0;const w=[r.e("header-cell"),fd(u,e,""),n.align===fm.CENTER&&r.is("align-center"),n.align===fm.RIGHT&&r.is("align-right"),c&&r.is("sortable")],S={...fd(g,e),onClick:n.sortable?i:void 0,ariaSort:c?b:void 0,class:w,style:s,"data-key":n.key};return Q("div",It(S,{role:"columnheader"}),[v,c&&Q(Uot,{class:[r.e("sort-icon"),m&&r.is("sorting")],sortOrder:y,ariaLabel:a("el.table.sortLabel",{column:n.title||""})},null)])};var r$=Kot;const Lee=(e,{slots:t})=>{var n;return Q("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};Lee.displayName="ElTableV2Footer";var jot=Lee;const Dee=(e,{slots:t})=>{const n=ue(t,"default",{},()=>[Q(SQ,null,null)]);return Q("div",{class:e.class,style:e.style},[n])};Dee.displayName="ElTableV2Empty";var Yot=Dee;const Pee=(e,{slots:t})=>{var n;return Q("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};Pee.displayName="ElTableV2Overlay";var qot=Pee;function u0(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!wn(e)}const Xot="ElTableV2",Zot=q({name:Xot,props:aot,setup(e,{slots:t,expose:n}){const r=we("table-v2"),{t:a}=Kt(),{columnsStyles:o,fixedColumnsOnLeft:i,fixedColumnsOnRight:s,mainColumns:l,mainTableHeight:u,fixedTableHeight:c,leftTableWidth:f,rightTableWidth:d,data:v,depthMap:h,expandedRowKeys:p,hasFixedColumns:g,mainTableRef:m,leftTableRef:y,rightTableRef:b,isDynamic:w,isResetting:S,isScrolling:x,bodyWidth:C,emptyStyle:T,rootStyle:M,footerHeight:k,showEmpty:E,scrollTo:A,scrollToLeft:I,scrollToTop:O,scrollToRow:z,getRowHeight:$,onColumnSorted:P,onRowHeightChange:L,onRowHovered:V,onRowExpanded:B,onRowsRendered:F,onScroll:U,onVerticalScroll:G}=not(e);return n({scrollTo:A,scrollToLeft:I,scrollToTop:O,scrollToRow:z}),Ut(CE,{ns:r,isResetting:S,isScrolling:x}),()=>{const{cache:Y,cellProps:X,estimatedRowHeight:te,expandColumnKey:oe,fixedData:re,headerHeight:ce,headerClass:ie,headerProps:Z,headerCellProps:se,sortBy:J,sortState:ae,rowHeight:fe,rowClass:ve,rowEventHandlers:me,rowKey:pe,rowProps:Ne,scrollbarAlwaysOn:Ee,indentSize:_e,iconSize:be,useIsScrolling:Fe,vScrollbarSize:Oe,width:Ze}=e,nt=_(v),xe={cache:Y,class:r.e("main"),columns:_(l),data:nt,fixedData:re,estimatedRowHeight:te,bodyWidth:_(C),headerHeight:ce,headerWidth:_(C),height:_(u),mainTableRef:m,rowKey:pe,rowHeight:fe,scrollbarAlwaysOn:Ee,scrollbarStartGap:2,scrollbarEndGap:Oe,useIsScrolling:Fe,width:Ze,getRowHeight:$,onRowsRendered:F,onScroll:U},je=_(f),Ke=_(c),en={cache:Y,class:r.e("left"),columns:_(i),data:nt,fixedData:re,estimatedRowHeight:te,leftTableRef:y,rowHeight:fe,bodyWidth:je,headerWidth:je,headerHeight:ce,height:Ke,rowKey:pe,scrollbarAlwaysOn:Ee,scrollbarStartGap:2,scrollbarEndGap:Oe,useIsScrolling:Fe,width:je,getRowHeight:$,onScroll:G},Qe=_(d),Ct={cache:Y,class:r.e("right"),columns:_(s),data:nt,fixedData:re,estimatedRowHeight:te,rightTableRef:b,rowHeight:fe,bodyWidth:Qe,headerWidth:Qe,headerHeight:ce,height:Ke,rowKey:pe,scrollbarAlwaysOn:Ee,scrollbarStartGap:2,scrollbarEndGap:Oe,width:Qe,style:`${r.cssVarName("table-scrollbar-size")}: ${Oe}px`,useIsScrolling:Fe,getRowHeight:$,onScroll:G},mt=_(o),Nt={ns:r,depthMap:_(h),columnsStyles:mt,expandColumnKey:oe,expandedRowKeys:_(p),estimatedRowHeight:te,hasFixedColumns:_(g),rowProps:Ne,rowClass:ve,rowKey:pe,rowEventHandlers:me,onRowHovered:V,onRowExpanded:B,onRowHeightChange:L},Te={cellProps:X,expandColumnKey:oe,indentSize:_e,iconSize:be,rowKey:pe,expandedRowKeys:_(p),ns:r,t:a},He={ns:r,headerClass:ie,headerProps:Z,columnsStyles:mt},ge={ns:r,t:a,sortBy:J,sortState:ae,headerCellProps:se,onColumnSorted:P},tt={row:Me=>Q(Pot,It(Me,Nt),{row:t.row,cell:Ye=>{let ct;return t.cell?Q(n$,It(Ye,Te,{style:mt[Ye.column.key]}),u0(ct=t.cell(Ye))?ct:{default:()=>[ct]}):Q(n$,It(Ye,Te,{style:mt[Ye.column.key]}),null)}}),header:Me=>Q(Hot,It(Me,He),{header:t.header,cell:Ye=>{let ct;return t["header-cell"]?Q(r$,It(Ye,ge,{style:mt[Ye.column.key]}),u0(ct=t["header-cell"](Ye))?ct:{default:()=>[ct]}):Q(r$,It(Ye,ge,{style:mt[Ye.column.key]}),null)}})},Bt=[e.class,r.b(),r.e("root"),r.is("dynamic",_(w))],Mn={class:r.e("footer"),style:_(k)};return Q("div",{class:Bt,style:_(M)},[Q(_ot,xe,u0(tt)?tt:{default:()=>[tt]}),Q(xot,en,u0(tt)?tt:{default:()=>[tt]}),Q(kot,Ct,u0(tt)?tt:{default:()=>[tt]}),t.footer&&Q(jot,Mn,{default:t.footer}),_(E)&&Q(Yot,{class:r.e("empty"),style:_(T)},{default:t.empty}),t.overlay&&Q(qot,{class:r.e("overlay")},{default:t.overlay})])}}});var Jot=Zot;const Qot=Ie({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:ne(Function)}}),eit=e=>{const t=K(),n=K(0),r=K(0);let a;return Et(()=>{a=On(t,([o])=>{const{width:i,height:s}=o.contentRect,{paddingLeft:l,paddingRight:u,paddingTop:c,paddingBottom:f}=getComputedStyle(o.target),d=Number.parseInt(l)||0,v=Number.parseInt(u)||0,h=Number.parseInt(c)||0,p=Number.parseInt(f)||0;n.value=i-d-v,r.value=s-h-p}).stop}),un(()=>{a==null||a()}),he([n,r],([o,i])=>{var s;(s=e.onResize)==null||s.call(e,{width:o,height:i})}),{sizer:t,width:n,height:r}},tit=q({name:"ElAutoResizer",props:Qot,setup(e,{slots:t}){const n=we("auto-resizer"),{height:r,width:a,sizer:o}=eit(e),i={width:"100%",height:"100%"};return()=>{var s;return Q("div",{ref:o,class:n.b(),style:i},[(s=t.default)==null?void 0:s.call(t,{height:r.value,width:a.value})])}}});var nit=tit;const rit=_t(Jot),ait=_t(nit),P4=Symbol("tabsRootContextKey"),oit=Ie({tabs:{type:ne(Array),default:()=>Gn([])},tabRefs:{type:ne(Object),default:()=>Gn({})}}),a$="ElTabBar",iit=q({name:a$,__name:"tab-bar",props:oit,setup(e,{expose:t}){const n=e,r=Ue(P4);r||cr(a$,"<el-tabs><el-tab-bar /></el-tabs>");const a=we("tabs"),o=K(),i=K(),s=R(()=>{var v;return Jt(r.props.defaultValue)||!!((v=i.value)!=null&&v.transform)}),l=()=>{let v=0,h=0;const p=["top","bottom"].includes(r.props.tabPosition)?"width":"height",g=p==="width"?"x":"y",m=g==="x"?"left":"top";return n.tabs.every(y=>{if(Jt(y.paneName))return!1;const b=n.tabRefs[y.paneName];if(!b)return!1;if(!y.active)return!0;v=b[`offset${Du(m)}`],h=b[`client${Du(p)}`];const w=window.getComputedStyle(b);return p==="width"&&(h-=Number.parseFloat(w.paddingLeft)+Number.parseFloat(w.paddingRight),v+=Number.parseFloat(w.paddingLeft)),!1}),{[p]:`${h}px`,transform:`translate${Du(g)}(${v}px)`}},u=()=>i.value=l(),c=[],f=()=>{c.forEach(v=>v.stop()),c.length=0,Object.values(n.tabRefs).forEach(v=>{c.push(On(v,u))})};he(()=>n.tabs,async()=>{await ze(),u(),f()},{immediate:!0});const d=On(o,()=>u());return un(()=>{c.forEach(v=>v.stop()),c.length=0,d.stop()}),t({ref:o,update:u}),(v,h)=>s.value?(D(),H("div",{key:0,ref_key:"barRef",ref:o,class:W([_(a).e("active-bar"),_(a).is(_(r).props.tabPosition)]),style:et(i.value)},null,6)):le("v-if",!0)}});var sit=De(iit,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const lit=Ie({panes:{type:ne(Array),default:()=>Gn([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean,tabindex:{type:[String,Number],default:void 0}}),uit={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},o$="ElTabNav",cit=q({name:o$,props:lit,emits:uit,setup(e,{expose:t,emit:n}){const r=Ue(P4);r||cr(o$,"<el-tabs><tab-nav /></el-tabs>");const a=we("tabs"),o=HLe(),i=GLe(),s=K(),l=K(),u=K(),c=K({}),f=K(),d=K(!1),v=K(0),h=K(!1),p=K(!0),g=Ln(),m=R(()=>["top","bottom"].includes(r.props.tabPosition)),y=R(()=>m.value?"width":"height"),b=R(()=>({transform:`translate${y.value==="width"?"X":"Y"}(-${v.value}px)`})),{width:w,height:S}=QC(s),{width:x,height:C}=QC(l,{width:0,height:0},{box:"border-box"}),T=R(()=>m.value?w.value:S.value),M=R(()=>m.value?x.value:C.value),{onWheel:k}=VQ({atStartEdge:R(()=>v.value<=0),atEndEdge:R(()=>M.value-v.value<=T.value),layout:R(()=>m.value?"horizontal":"vertical")},B=>{v.value=g4(v.value+B,0,M.value-T.value)}),E=()=>{if(!s.value)return;const B=s.value[`offset${Du(y.value)}`],F=v.value;if(!F)return;const U=F>B?F-B:0;v.value=U},A=()=>{if(!s.value||!l.value)return;const B=l.value[`offset${Du(y.value)}`],F=s.value[`offset${Du(y.value)}`],U=v.value;if(B-U<=F)return;const G=B-U>F*2?U+F:B-F;v.value=G},I=async()=>{const B=l.value;if(!d.value||!u.value||!s.value||!B)return;await ze();const F=c.value[e.currentName];if(!F)return;const U=s.value,G=F.getBoundingClientRect(),Y=U.getBoundingClientRect(),X=m.value?B.offsetWidth-Y.width:B.offsetHeight-Y.height,te=v.value;let oe=te;m.value?(G.left<Y.left&&(oe=te-(Y.left-G.left)),G.right>Y.right&&(oe=te+G.right-Y.right)):(G.top<Y.top&&(oe=te-(Y.top-G.top)),G.bottom>Y.bottom&&(oe=te+(G.bottom-Y.bottom))),oe=Math.max(oe,0),v.value=Math.min(oe,X)},O=()=>{var B;if(!l.value||!s.value)return;e.stretch&&((B=f.value)==null||B.update());const F=l.value[`offset${Du(y.value)}`],U=s.value[`offset${Du(y.value)}`],G=v.value;U<F?(d.value=d.value||{},d.value.prev=G,d.value.next=G+U<F,F-G<U&&(v.value=F-U)):(d.value=!1,G>0&&(v.value=0))},z=B=>{const F=xn(B);let U=0;switch(F){case ke.left:case ke.up:U=-1;break;case ke.right:case ke.down:U=1;break;default:return}const G=Array.from(B.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let X=G.indexOf(B.target)+U;X<0?X=G.length-1:X>=G.length&&(X=0),G[X].focus({preventScroll:!0}),G[X].click(),$()},$=()=>{p.value&&(h.value=!0)},P=()=>h.value=!1,L=(B,F)=>{c.value[F]=B},V=async()=>{await ze();const B=c.value[e.currentName];B==null||B.focus({preventScroll:!0})};return he(o,B=>{B==="hidden"?p.value=!1:B==="visible"&&setTimeout(()=>p.value=!0,50)}),he(i,B=>{B?setTimeout(()=>p.value=!0,50):p.value=!1}),On(u,()=>{qs(O)}),Et(()=>setTimeout(()=>I(),0)),Lo(()=>O()),t({scrollToActiveTab:I,removeFocus:P,focusActiveTab:V,tabListRef:l,tabBarRef:f,scheduleRender:()=>P0(g)}),()=>{const B=d.value?[Q("span",{class:[a.e("nav-prev"),a.is("disabled",!d.value.prev)],onClick:E},[Q(Xe,null,{default:()=>[Q(Xs,null,null)]})]),Q("span",{class:[a.e("nav-next"),a.is("disabled",!d.value.next)],onClick:A},[Q(Xe,null,{default:()=>[Q(ca,null,null)]})])]:null,F=e.panes.map((U,G)=>{var Y,X,te,oe,re;const ce=U.uid,ie=U.props.disabled,Z=(X=(Y=U.props.name)!=null?Y:U.index)!=null?X:`${G}`,se=!ie&&(U.isClosable||U.props.closable!==!1&&e.editable);U.index=`${G}`;const J=se?Q(Xe,{class:"is-icon-close",onClick:ve=>n("tabRemove",U,ve)},{default:()=>[Q(Io,null,null)]}):null,ae=((oe=(te=U.slots).label)==null?void 0:oe.call(te))||U.props.label,fe=!ie&&U.active?(re=e.tabindex)!=null?re:r.props.tabindex:-1;return Q("div",{ref:ve=>L(ve,Z),class:[a.e("item"),a.is(r.props.tabPosition),a.is("active",U.active),a.is("disabled",ie),a.is("closable",se),a.is("focus",h.value)],id:`tab-${Z}`,key:`tab-${ce}`,"aria-controls":`pane-${Z}`,role:"tab","aria-selected":U.active,tabindex:fe,onFocus:()=>$(),onBlur:()=>P(),onClick:ve=>{P(),n("tabClick",U,Z,ve)},onKeydown:ve=>{const me=xn(ve);se&&(me===ke.delete||me===ke.backspace)&&n("tabRemove",U,ve)}},[ae,J])});return g.value,Q("div",{ref:u,class:[a.e("nav-wrap"),a.is("scrollable",!!d.value),a.is(r.props.tabPosition)]},[B,Q("div",{class:a.e("nav-scroll"),ref:s},[e.panes.length>0?Q("div",{class:[a.e("nav"),a.is(r.props.tabPosition),a.is("stretch",e.stretch&&["top","bottom"].includes(r.props.tabPosition))],ref:l,style:b.value,role:"tablist",onKeydown:z,onWheel:k},[e.type?null:Q(sit,{ref:f,tabs:[...e.panes],tabRefs:c.value},null),F]):null])])}}}),fit=Ie({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},defaultValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:ne(Function),default:()=>!0},stretch:Boolean,tabindex:{type:[String,Number],default:0}}),s8=e=>Ge(e)||rt(e),dit={[dt]:e=>s8(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>s8(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>s8(e),tabAdd:()=>!0},vit=q({name:"ElTabs",props:fit,emits:dit,setup(e,{emit:t,slots:n,expose:r}){var a;const o=we("tabs"),i=R(()=>["left","right"].includes(e.tabPosition)),{children:s,addChild:l,removeChild:u,ChildrenSorter:c}=T4(bt(),"ElTabPane"),f=K(),d=K((a=Jt(e.modelValue)?e.defaultValue:e.modelValue)!=null?a:"0"),v=async(b,w=!1)=>{var S,x,C,T;if(!(d.value===b||Jt(b)))try{let M;if(e.beforeLeave){const k=e.beforeLeave(b,d.value);M=k instanceof Promise?await k:k}else M=!0;if(M!==!1){const k=(S=s.value.find(E=>E.paneName===d.value))==null?void 0:S.isFocusInsidePane();d.value=b,w&&(t(dt,b),t("tabChange",b)),(C=(x=f.value)==null?void 0:x.removeFocus)==null||C.call(x),k&&((T=f.value)==null||T.focusActiveTab())}}catch{}},h=(b,w,S)=>{b.props.disabled||(t("tabClick",b,S),v(w,!0))},p=(b,w)=>{b.props.disabled||Jt(b.props.name)||(w.stopPropagation(),t("edit",b.props.name,"remove"),t("tabRemove",b.props.name))},g=()=>{t("edit",void 0,"add"),t("tabAdd")},m=b=>{const w=xn(b);[ke.enter,ke.numpadEnter].includes(w)&&g()},y=b=>{const w=b.el.firstChild,S=["bottom","right"].includes(e.tabPosition)?b.children[0].el:b.children[1].el;w!==S&&w.before(S)};return he(()=>e.modelValue,b=>v(b)),he(d,async()=>{var b;await ze(),(b=f.value)==null||b.scrollToActiveTab()}),Ut(P4,{props:e,currentName:d,registerPane:l,unregisterPane:u,nav$:f}),r({currentName:d,get tabNavRef(){return Zm(f.value,["scheduleRender"])}}),()=>{const b=n["add-icon"],w=e.editable||e.addable?Q("div",{class:[o.e("new-tab"),i.value&&o.e("new-tab-vertical")],tabindex:e.tabindex,onClick:g,onKeydown:m},[b?ue(n,"add-icon"):Q(Xe,{class:o.is("icon-plus")},{default:()=>[Q(TA,null,null)]})]):null,S=()=>Q(cit,{ref:f,currentName:d.value,editable:e.editable,type:e.type,panes:s.value,stretch:e.stretch,onTabClick:h,onTabRemove:p},null),x=Q("div",{class:[o.e("header"),i.value&&o.e("header-vertical"),o.is(e.tabPosition)]},[Q(c,null,{default:S,$stable:!0}),w]),C=Q("div",{class:o.e("content")},[ue(n,"default")]);return Q("div",{class:[o.b(),o.m(e.tabPosition),{[o.m("card")]:e.type==="card",[o.m("border-card")]:e.type==="border-card"}],onVnodeMounted:y,onVnodeUpdated:y},[C,x])}}}),hit=Ie({label:{type:String,default:""},name:{type:[String,Number]},closable:{type:Boolean,default:void 0},disabled:Boolean,lazy:Boolean}),pit=["id","aria-hidden","aria-labelledby"],i$="ElTabPane",git=q({name:i$,__name:"tab-pane",props:hit,setup(e){const t=e,n=bt(),r=fr(),a=Ue(P4);a||cr(i$,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const o=we("tab-pane"),i=K(),s=K(),l=R(()=>{var p;return(p=t.closable)!=null?p:a.props.closable}),u=R(()=>{var p;return a.currentName.value===((p=t.name)!=null?p:s.value)}),c=K(u.value),f=R(()=>{var p;return(p=t.name)!=null?p:s.value}),d=R(()=>!t.lazy||c.value||u.value),v=()=>{var p;return(p=i.value)==null?void 0:p.contains(document.activeElement)};he(u,p=>{p&&(c.value=!0)});const h=sn({uid:n.uid,getVnode:()=>n.vnode,slots:r,props:t,paneName:f,active:u,index:s,isClosable:l,isFocusInsidePane:v});return a.registerPane(h),un(()=>{a.unregisterPane(h)}),Sm(()=>{var p;r.label&&((p=a.nav$.value)==null||p.scheduleRender())}),(p,g)=>d.value?xt((D(),H("div",{key:0,id:`pane-${f.value}`,ref_key:"paneRef",ref:i,class:W(_(o).b()),role:"tabpanel","aria-hidden":!u.value,"aria-labelledby":`tab-${f.value}`},[ue(p.$slots,"default")],10,pit)),[[tn,u.value]]):le("v-if",!0)}});var Ree=De(git,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const mit=_t(vit,{TabPane:Ree}),yit=Kn(Ree),bit=Ie({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:nl,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),_it=q({name:"ElText",__name:"text",props:bit,setup(e){const t=e,n=K(),r=vr(),a=we("text"),o=R(()=>[a.b(),a.m(t.type),a.m(r.value),a.is("truncated",t.truncated),a.is("line-clamp",!Jt(t.lineClamp))]),i=()=>{var s,l,u,c,f,d,v;if(el().title)return;let p=!1;const g=((s=n.value)==null?void 0:s.textContent)||"";if(t.truncated){const m=(l=n.value)==null?void 0:l.offsetWidth,y=(u=n.value)==null?void 0:u.scrollWidth;m&&y&&y>m&&(p=!0)}else if(!Jt(t.lineClamp)){const m=(c=n.value)==null?void 0:c.offsetHeight,y=(f=n.value)==null?void 0:f.scrollHeight;m&&y&&y>m&&(p=!0)}p?(d=n.value)==null||d.setAttribute("title",g):(v=n.value)==null||v.removeAttribute("title")};return Et(i),Lo(i),(s,l)=>(D(),de(Tt(s.tag),{ref_key:"textRef",ref:n,class:W(o.value),style:et({"-webkit-line-clamp":s.lineClamp})},{default:ee(()=>[ue(s.$slots,"default")]),_:3},8,["class","style"]))}});var wit=De(_it,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const IE=_t(wit),Sit=Ie({format:{type:String,default:"HH:mm"},modelValue:{type:ne(String)},disabled:{type:Boolean,default:void 0},editable:{type:Boolean,default:!0},effect:{type:ne(String),default:"light"},clearable:{type:Boolean,default:!0},size:wr,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:{type:ne(String)},maxTime:{type:ne(String)},includeEndTime:Boolean,name:String,prefixIcon:{type:ne([String,Object]),default:()=>CA},clearIcon:{type:ne([String,Object]),default:()=>rl},popperClass:{type:String,default:""},popperStyle:{type:ne([String,Object])},...Bd}),Tl=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const r=Number.parseInt(t[1],10),a=e.toUpperCase();return a.includes("AM")&&n===12?n=0:a.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:r}}return null},l8=(e,t)=>{const n=Tl(e);if(!n)return-1;const r=Tl(t);if(!r)return-1;const a=n.minutes+n.hours*60,o=r.minutes+r.hours*60;return a===o?0:a>o?1:-1},s$=e=>`${e}`.padStart(2,"0"),kv=e=>`${s$(e.hours)}:${s$(e.minutes)}`,xit=(e,t)=>{const n=Tl(e);if(!n)return"";const r=Tl(t);if(!r)return"";const a={hours:n.hours,minutes:n.minutes};return a.minutes+=r.minutes,a.hours+=r.hours,a.hours+=Math.floor(a.minutes/60),a.minutes=a.minutes%60,kv(a)},Cit=q({name:"ElTimeSelect",__name:"time-select",props:Sit,emits:[Ht,"blur","focus","clear",dt],setup(e,{expose:t}){wt.extend(jA);const{Option:n}=Bh,r=e,a=we("input"),o=K(),i=jn(),{lang:s}=Kt(),l=R(()=>r.modelValue),u=R(()=>{const m=Tl(r.start);return m?kv(m):null}),c=R(()=>{const m=Tl(r.end);return m?kv(m):null}),f=R(()=>{const m=Tl(r.step);return m?kv(m):null}),d=R(()=>{const m=Tl(r.minTime||"");return m?kv(m):null}),v=R(()=>{const m=Tl(r.maxTime||"");return m?kv(m):null}),h=R(()=>{var m;const y=[],b=(w,S)=>{y.push({value:w,disabled:l8(S,d.value||"-1:-1")<=0||l8(S,v.value||"100:100")>=0})};if(r.start&&r.end&&r.step){let w=u.value,S;for(;w&&c.value&&l8(w,c.value)<=0;)S=wt(w,"HH:mm").locale(s.value).format(r.format),b(S,w),w=xit(w,f.value);if(r.includeEndTime&&c.value&&((m=y[y.length-1])==null?void 0:m.value)!==c.value){const x=wt(c.value,"HH:mm").locale(s.value).format(r.format);b(x,c.value)}}return y});return t({blur:()=>{var m,y;(y=(m=o.value)==null?void 0:m.blur)==null||y.call(m)},focus:()=>{var m,y;(y=(m=o.value)==null?void 0:m.focus)==null||y.call(m)}}),(m,y)=>(D(),de(_(Bh),{ref_key:"select",ref:o,"model-value":l.value,disabled:_(i),clearable:m.clearable,"clear-icon":m.clearIcon,size:m.size,effect:m.effect,placeholder:m.placeholder,"default-first-option":"",filterable:m.editable,"empty-values":m.emptyValues,"value-on-clear":m.valueOnClear,"popper-class":m.popperClass,"popper-style":m.popperStyle,"onUpdate:modelValue":y[0]||(y[0]=b=>m.$emit(_(dt),b)),onChange:y[1]||(y[1]=b=>m.$emit(_(Ht),b)),onBlur:y[2]||(y[2]=b=>m.$emit("blur",b)),onFocus:y[3]||(y[3]=b=>m.$emit("focus",b)),onClear:y[4]||(y[4]=()=>m.$emit("clear"))},{prefix:ee(()=>[m.prefixIcon?(D(),de(_(Xe),{key:0,class:W(_(a).e("prefix-icon"))},{default:ee(()=>[(D(),de(Tt(m.prefixIcon)))]),_:1},8,["class"])):le("v-if",!0)]),default:ee(()=>[(D(!0),H(qe,null,Wt(h.value,b=>(D(),de(_(n),{key:b.value,label:b.value,value:b.value,disabled:b.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","popper-class","popper-style"]))}});var Tit=De(Cit,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);const kit=_t(Tit),Mit="timeline",Ait=q({name:"ElTimeline",props:{reverse:Boolean},setup(e,{slots:t}){const n=we("timeline");return Ut(Mit,t),()=>{var r,a;const o=_i((a=(r=t.default)==null?void 0:r.call(t))!=null?a:[]).filter(i=>{var s;return((s=i==null?void 0:i.type)==null?void 0:s.name)==="ElTimelineItem"});return ot("ul",{class:[n.b()]},e.reverse?o.reverse():o)}}}),Eit=Ie({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:pn},hollow:Boolean}),Iit=q({name:"ElTimelineItem",__name:"timeline-item",props:Eit,setup(e){const t=e,n=we("timeline-item"),r=R(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(a,o)=>(D(),H("li",{class:W([_(n).b(),{[_(n).e("center")]:a.center}])},[N("div",{class:W(_(n).e("tail"))},null,2),a.$slots.dot?le("v-if",!0):(D(),H("div",{key:0,class:W(r.value),style:et({backgroundColor:a.color})},[a.icon?(D(),de(_(Xe),{key:0,class:W(_(n).e("icon"))},{default:ee(()=>[(D(),de(Tt(a.icon)))]),_:1},8,["class"])):le("v-if",!0)],6)),a.$slots.dot?(D(),H("div",{key:1,class:W(_(n).e("dot"))},[ue(a.$slots,"dot")],2)):le("v-if",!0),N("div",{class:W(_(n).e("wrapper"))},[!a.hideTimestamp&&a.placement==="top"?(D(),H("div",{key:0,class:W([_(n).e("timestamp"),_(n).is("top")])},Ae(a.timestamp),3)):le("v-if",!0),N("div",{class:W(_(n).e("content"))},[ue(a.$slots,"default")],2),!a.hideTimestamp&&a.placement==="bottom"?(D(),H("div",{key:1,class:W([_(n).e("timestamp"),_(n).is("bottom")])},Ae(a.timestamp),3)):le("v-if",!0)],2)],2))}});var Oee=De(Iit,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const Lit=_t(Ait,{TimelineItem:Oee}),Dit=Kn(Oee),Nee="left-check-change",Bee="right-check-change",Mv=Ie({data:{type:ne(Array),default:()=>[]},titles:{type:ne(Array),default:()=>[]},buttonTexts:{type:ne(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:ne(Function)},leftDefaultChecked:{type:ne(Array),default:()=>[]},rightDefaultChecked:{type:ne(Array),default:()=>[]},renderContent:{type:ne(Function)},modelValue:{type:ne(Array),default:()=>[]},format:{type:ne(Object),default:()=>({})},filterable:Boolean,props:{type:ne(Object),default:()=>Gn({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),zT=(e,t)=>[e,t].every(Ce)||Ce(e)&&sr(t),Pit={[Ht]:(e,t,n)=>[e,n].every(Ce)&&["left","right"].includes(t),[dt]:e=>Ce(e),[Nee]:zT,[Bee]:zT},FT="checked-change",Rit=Ie({data:Mv.data,optionRender:{type:ne(Function)},placeholder:String,title:String,filterable:Boolean,format:Mv.format,filterMethod:Mv.filterMethod,defaultChecked:Mv.leftDefaultChecked,props:Mv.props}),Oit={[FT]:zT},m1=e=>{const t={label:"label",key:"key",disabled:"disabled"};return R(()=>({...t,...e.props}))},Nit=(e,t,n)=>{const r=m1(e),a=R(()=>e.data.filter(c=>Je(e.filterMethod)?e.filterMethod(t.query,c):String(c[r.value.label]||c[r.value.key]).toLowerCase().includes(t.query.toLowerCase()))),o=R(()=>a.value.filter(c=>!c[r.value.disabled])),i=R(()=>{const c=t.checked.length,f=e.data.length,{noChecked:d,hasChecked:v}=e.format;return d&&v?c>0?v.replace(/\${checked}/g,c.toString()).replace(/\${total}/g,f.toString()):d.replace(/\${total}/g,f.toString()):`${c}/${f}`}),s=R(()=>{const c=t.checked.length;return c>0&&c<o.value.length}),l=()=>{const c=o.value.map(f=>f[r.value.key]);t.allChecked=c.length>0&&c.every(f=>t.checked.includes(f))},u=c=>{t.checked=c?o.value.map(f=>f[r.value.key]):[]};return he(()=>t.checked,(c,f)=>{if(l(),t.checkChangeByUser){const d=c.concat(f).filter(v=>!c.includes(v)||!f.includes(v));n(FT,c,d)}else n(FT,c),t.checkChangeByUser=!0}),he(o,()=>{l()}),he(()=>e.data,()=>{const c=[],f=a.value.map(d=>d[r.value.key]);t.checked.forEach(d=>{f.includes(d)&&c.push(d)}),t.checkChangeByUser=!1,t.checked=c}),he(()=>e.defaultChecked,(c,f)=>{if(f&&c.length===f.length&&c.every(h=>f.includes(h)))return;const d=[],v=o.value.map(h=>h[r.value.key]);c.forEach(h=>{v.includes(h)&&d.push(h)}),t.checkChangeByUser=!1,t.checked=d},{immediate:!0}),{filteredData:a,checkableData:o,checkedSummary:i,isIndeterminate:s,updateAllChecked:l,handleAllCheckedChange:u}},Bit=q({name:"ElTransferPanel",__name:"transfer-panel",props:Rit,emits:Oit,setup(e,{expose:t,emit:n}){const r=e,a=n,o=fr(),i=({option:w})=>w,{t:s}=Kt(),l=we("transfer"),u=sn({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),c=m1(r),{filteredData:f,checkedSummary:d,isIndeterminate:v,handleAllCheckedChange:h}=Nit(r,u,a),p=R(()=>!Ha(u.query)&&Ha(f.value)),g=R(()=>!Ha(o.default()[0].children)),{checked:m,allChecked:y,query:b}=kr(u);return t({query:b}),(w,S)=>(D(),H("div",{class:W(_(l).b("panel"))},[N("p",{class:W(_(l).be("panel","header"))},[Q(_(Bi),{modelValue:_(y),"onUpdate:modelValue":S[0]||(S[0]=x=>Dn(y)?y.value=x:null),indeterminate:_(v),"validate-event":!1,onChange:_(h)},{default:ee(()=>[gt(Ae(w.title)+" ",1),N("span",null,Ae(_(d)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),N("div",{class:W([_(l).be("panel","body"),_(l).is("with-footer",g.value)])},[w.filterable?(D(),de(_(ka),{key:0,modelValue:_(b),"onUpdate:modelValue":S[1]||(S[1]=x=>Dn(b)?b.value=x:null),class:W(_(l).be("panel","filter")),size:"default",placeholder:w.placeholder,"prefix-icon":_(cZ),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):le("v-if",!0),xt(Q(_(UA),{modelValue:_(m),"onUpdate:modelValue":S[2]||(S[2]=x=>Dn(m)?m.value=x:null),"validate-event":!1,class:W([_(l).is("filterable",w.filterable),_(l).be("panel","list")])},{default:ee(()=>[(D(!0),H(qe,null,Wt(_(f),x=>(D(),de(_(Bi),{key:x[_(c).key],class:W(_(l).be("panel","item")),value:x[_(c).key],disabled:x[_(c).disabled],"validate-event":!1},{default:ee(()=>{var C;return[Q(i,{option:(C=w.optionRender)==null?void 0:C.call(w,x)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[tn,!p.value&&!_(Ha)(w.data)]]),xt(N("div",{class:W(_(l).be("panel","empty"))},[ue(w.$slots,"empty",{},()=>[gt(Ae(p.value?_(s)("el.transfer.noMatch"):_(s)("el.transfer.noData")),1)])],2),[[tn,p.value||_(Ha)(w.data)]])],2),g.value?(D(),H("p",{key:0,class:W(_(l).be("panel","footer"))},[ue(w.$slots,"default")],2)):le("v-if",!0)],2))}});var l$=De(Bit,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const Vit=e=>{const t=m1(e),n=R(()=>e.data.reduce((o,i)=>(o[i[t.value.key]]=i)&&o,{})),r=R(()=>e.data.filter(o=>!e.modelValue.includes(o[t.value.key]))),a=R(()=>e.targetOrder==="original"?e.data.filter(o=>e.modelValue.includes(o[t.value.key])):e.modelValue.reduce((o,i)=>{const s=n.value[i];return s&&o.push(s),o},[]));return{sourceData:r,targetData:a}},$it=(e,t,n)=>{const r=m1(e),a=(s,l,u)=>{n(dt,s),n(Ht,s,l,u)};return{addToLeft:()=>{const s=e.modelValue.slice();t.rightChecked.forEach(l=>{const u=s.indexOf(l);u>-1&&s.splice(u,1)}),a(s,"left",t.rightChecked)},addToRight:()=>{let s=e.modelValue.slice();const l=e.data.filter(u=>{const c=u[r.value.key];return t.leftChecked.includes(c)&&!e.modelValue.includes(c)}).map(u=>u[r.value.key]);s=e.targetOrder==="unshift"?l.concat(s):s.concat(l),e.targetOrder==="original"&&(s=e.data.filter(u=>s.includes(u[r.value.key])).map(u=>u[r.value.key])),a(s,"right",t.leftChecked)}}},zit=(e,t)=>({onSourceCheckedChange:(a,o)=>{e.leftChecked=a,o&&t(Nee,a,o)},onTargetCheckedChange:(a,o)=>{e.rightChecked=a,o&&t(Bee,a,o)}}),Fit={key:0},Hit={key:0},Wit=q({name:"ElTransfer",__name:"transfer",props:Mv,emits:Pit,setup(e,{expose:t,emit:n}){const r=e,a=n,o=fr(),{t:i}=Kt(),s=we("transfer"),{formItem:l}=Yr(),u=sn({leftChecked:[],rightChecked:[]}),c=m1(r),{sourceData:f,targetData:d}=Vit(r),{onSourceCheckedChange:v,onTargetCheckedChange:h}=zit(u,a),{addToLeft:p,addToRight:g}=$it(r,u,a),m=K(),y=K(),b=M=>{switch(M){case"left":m.value.query="";break;case"right":y.value.query="";break}},w=R(()=>r.buttonTexts.length===2),S=R(()=>r.titles[0]||i("el.transfer.titles.0")),x=R(()=>r.titles[1]||i("el.transfer.titles.1")),C=R(()=>r.filterPlaceholder||i("el.transfer.filterPlaceholder"));he(()=>r.modelValue,()=>{var M;r.validateEvent&&((M=l==null?void 0:l.validate)==null||M.call(l,"change").catch(k=>void 0))});const T=R(()=>M=>{var k;if(r.renderContent)return r.renderContent(ot,M);const E=(((k=o.default)==null?void 0:k.call(o,{option:M}))||[]).filter(A=>A.type!==$n);return E.length?E:ot("span",M[c.value.label]||M[c.value.key])});return t({clearQuery:b,leftPanel:m,rightPanel:y}),(M,k)=>(D(),H("div",{class:W(_(s).b())},[Q(l$,{ref_key:"leftPanel",ref:m,data:_(f),"option-render":T.value,placeholder:C.value,title:S.value,filterable:M.filterable,format:M.format,"filter-method":M.filterMethod,"default-checked":M.leftDefaultChecked,props:r.props,onCheckedChange:_(v)},{empty:ee(()=>[ue(M.$slots,"left-empty")]),default:ee(()=>[ue(M.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),N("div",{class:W(_(s).e("buttons"))},[Q(_(Gr),{type:"primary",class:W([_(s).e("button"),_(s).is("with-texts",w.value)]),disabled:_(Ha)(u.rightChecked),onClick:_(p)},{default:ee(()=>[Q(_(Xe),null,{default:ee(()=>[Q(_(Xs))]),_:1}),_(Jt)(M.buttonTexts[0])?le("v-if",!0):(D(),H("span",Fit,Ae(M.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),Q(_(Gr),{type:"primary",class:W([_(s).e("button"),_(s).is("with-texts",w.value)]),disabled:_(Ha)(u.leftChecked),onClick:_(g)},{default:ee(()=>[_(Jt)(M.buttonTexts[1])?le("v-if",!0):(D(),H("span",Hit,Ae(M.buttonTexts[1]),1)),Q(_(Xe),null,{default:ee(()=>[Q(_(ca))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),Q(l$,{ref_key:"rightPanel",ref:y,data:_(d),"option-render":T.value,placeholder:C.value,filterable:M.filterable,format:M.format,"filter-method":M.filterMethod,title:x.value,"default-checked":M.rightDefaultChecked,props:r.props,onCheckedChange:_(h)},{empty:ee(()=>[ue(M.$slots,"right-empty")]),default:ee(()=>[ue(M.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var Git=De(Wit,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const Uit=_t(Git),nh="$treeNodeId",u$=function(e,t){!t||t[nh]||Object.defineProperty(t,nh,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},LE=(e,t)=>t==null?void 0:t[e||nh],HT=(e,t,n)=>{const r=e.value.currentNode;n();const a=e.value.currentNode;r!==a&&t("current-change",a?a.data:null,a)},Vee=e=>{let t=!0,n=!0,r=!0,a=!0;for(let o=0,i=e.length;o<i;o++){const s=e[o];(s.checked!==!0||s.indeterminate)&&(t=!1,s.disabled||(r=!1)),(s.checked!==!1||s.indeterminate)&&(n=!1),s.isEffectivelyChecked||(a=!1)}return{all:t,none:n,allWithoutDisable:r,half:!t&&!n,isEffectivelyChecked:a}},A0=function(e){if(e.childNodes.length===0||e.loading){e.isEffectivelyChecked=e.disabled||e.checked;return}const{all:t,none:n,half:r,isEffectivelyChecked:a}=Vee(e.childNodes);e.isEffectivelyChecked=a,t?(e.checked=!0,e.indeterminate=!1):r?(e.checked=!1,e.indeterminate=!0):n&&(e.checked=!1,e.indeterminate=!1);const o=e.parent;!o||o.level===0||e.store.checkStrictly||A0(o)},c2=function(e,t){const n=e.store.props,r=e.data||{},a=n[t];if(Je(a))return a(r,e);if(Ge(a))return r[a];if(Jt(a)){const o=r[t];return Jt(o)?"":o}},WT=function(e,t){e.forEach(n=>{n.canFocus=t,WT(n.childNodes,t)})};let Kit=0,GT=class rb{constructor(t){this.isLeafByUser=void 0,this.isLeaf=void 0,this.isEffectivelyChecked=!1,this.id=Kit++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)nn(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var t;const n=this.store;if(!n)throw new Error("[Node]store is required!");n.registerNode(this);const r=n.props;if(r&&typeof r.isLeaf<"u"){const i=c2(this,"isLeaf");hn(i)&&(this.isLeafByUser=i)}if(n.lazy!==!0&&this.data?(this.setData(this.data),n.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&n.lazy&&n.defaultExpandAll&&!this.isLeafByUser&&this.expand(),Ce(this.data)||u$(this,this.data),!this.data)return;const a=n.defaultExpandedKeys,o=n.key;o&&!sr(this.key)&&a&&a.includes(this.key)&&this.expand(null,n.autoExpandParent),o&&n.currentNodeKey!==void 0&&this.key===n.currentNodeKey&&(n.currentNode&&(n.currentNode.isCurrent=!1),n.currentNode=this,n.currentNode.isCurrent=!0),n.lazy&&n._initDefaultCheckedNode(this),this.updateLeafState(),(this.level===1||((t=this.parent)==null?void 0:t.expanded)===!0)&&(this.canFocus=!0)}setData(t){Ce(t)||u$(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Ce(this.data)?n=this.data:n=c2(this,"children")||[];for(let r=0,a=n.length;r<a;r++)this.insertChild({data:n[r]})}get label(){return c2(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return c2(this,"disabled")}get nextSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(r=>r===t||n&&r.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,r){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof rb)){if(!r){const a=this.getChildren(!0);a!=null&&a.includes(t.data)||(Jt(n)||n<0?a==null||a.push(t.data):a==null||a.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=sn(new rb(t)),t instanceof rb&&t.initialize()}t.level=this.level+1,Jt(n)||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let r;n&&(r=this.childNodes.indexOf(n)),this.insertChild(t,r)}insertAfter(t,n){let r;n&&(r=this.childNodes.indexOf(n),r!==-1&&(r+=1)),this.insertChild(t,r)}removeChild(t){const n=this.getChildren()||[],r=n.indexOf(t.data);r>-1&&n.splice(r,1);const a=this.childNodes.indexOf(t);a>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(t){const n=this.childNodes.find(r=>r.data===t);n&&this.removeChild(n)}expand(t,n){const r=()=>{if(n){let a=this.parent;for(;a&&a.level>0;)a.expanded=!0,a=a.parent}this.expanded=!0,t&&t(),WT(this.childNodes,!0)};this.shouldLoadData()?this.loadData(a=>{Ce(a)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||A0(this),r())}):r()}doCreateChildren(t,n={}){t.forEach(r=>{this.insertChild(Object.assign({data:r},n),void 0,!0)})}collapse(){this.expanded=!1,WT(this.childNodes,!1)}shouldLoadData(){return!!(this.store.lazy===!0&&this.store.load&&!this.loaded)}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}this.isLeaf=!1}setChecked(t,n,r,a){if(this.indeterminate=t==="half",this.checked=t===!0,this.isEffectivelyChecked=!this.childNodes.length&&(this.disabled||this.checked),this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const i=()=>{if(n){const s=this.childNodes;for(let f=0,d=s.length;f<d;f++){const v=s[f];a=a||t!==!1;const h=v.disabled&&v.isLeaf?v.checked:a;v.setChecked(h,n,!0,a)}const{half:l,all:u,isEffectivelyChecked:c}=Vee(s);u||(this.checked=u,this.indeterminate=l),this.isEffectivelyChecked=this.childNodes.length?c:this.disabled||this.checked}};if(this.shouldLoadData()){this.loadData(()=>{i(),A0(this)},{checked:t!==!1});return}else i()}const o=this.parent;!o||o.level===0||r||A0(o)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const r=this.store.props;let a="children";return r&&(a=r.children||"children"),Jt(n[a])&&(n[a]=null),t&&!n[a]&&(n[a]=[]),n[a]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(o=>o.data),r={},a=[];t.forEach((o,i)=>{const s=o[nh];!!s&&n.some(u=>(u==null?void 0:u[nh])===s)?r[s]={index:i,data:o}:a.push({index:i,data:o})}),this.store.lazy||n.forEach(o=>{r[o==null?void 0:o[nh]]||this.removeChildByData(o)}),a.forEach(({index:o,data:i})=>{this.insertChild({data:i},o)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const r=o=>{this.childNodes=[],this.doCreateChildren(o,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,o)},a=()=>{this.loading=!1};this.store.load(this,r,a)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const r=n.shift();n.unshift(...r.childNodes),t(r)}}reInitChecked(){this.store.checkStrictly||A0(this)}};class jit{constructor(t){this.lazy=!1,this.checkStrictly=!1,this.autoExpandParent=!1,this.defaultExpandAll=!1,this.checkDescendants=!1,this.currentNode=null,this.currentNodeKey=null;for(const n in t)nn(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new GT({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()},cn)}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,r=this.lazy,a=async function(o){const i=o.root?o.root.childNodes:o.childNodes;for(const[s,l]of i.entries())l.visible=!!(n!=null&&n.call(l,t,l.data,l)),s%80===0&&s>0&&await ze(),await a(l);if(!o.visible&&i.length){let s=!0;s=!i.some(l=>l.visible),o.root?o.root.visible=s===!1:o.visible=s===!1}t&&o.visible&&!o.isLeaf&&(!r||o.loaded)&&o.expand()};a(this)}setData(t){t!==this.root.data?(this.nodesMap={},this.root.setData(t),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(t){if(t instanceof GT)return t;const n=St(t)?LE(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){var r;const a=this.getNode(n);(r=a.parent)==null||r.insertBefore({data:t},a)}insertAfter(t,n){var r;const a=this.getNode(n);(r=a.parent)==null||r.insertAfter({data:t},a)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const r=io(n)?this.root:this.getNode(n);r&&r.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(r=>{const a=n[r];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){const n=this.defaultCheckedKeys||[];!sr(t.key)&&n.includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;if(!(!t||!t.data))if(!n)this.nodesMap[t.id]=t;else{const r=t.key;sr(r)||(this.nodesMap[r]=t)}}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const r=[],a=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(s=>{(s.checked||n&&s.indeterminate)&&(!t||t&&s.isLeaf)&&r.push(s.data),a(s)})};return a(this),r}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(o=>{o.indeterminate&&t.push(o.data),n(o)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const r in n)nn(n,r)&&t.push(n[r]);return t}updateChildren(t,n){const r=this.nodesMap[t];if(!r)return;const a=r.childNodes;for(let o=a.length-1;o>=0;o--){const i=a[o];this.remove(i.data)}for(let o=0,i=n.length;o<i;o++){const s=n[o];this.append(s,r.data)}}_setCheckedKeys(t,n=!1,r){const a=this._getAllNodes().sort((l,u)=>l.level-u.level),o=Object.create(null),i=Object.keys(r);a.forEach(l=>l.setChecked(!1,!1));const s=l=>{l.childNodes.forEach(u=>{var c;o[u.data[t]]=!0,(c=u.childNodes)!=null&&c.length&&s(u)})};for(let l=0,u=a.length;l<u;l++){const c=a[l],f=c.data[t].toString();if(!i.includes(f)){c.checked&&!o[f]&&c.setChecked(!1,!1);continue}if(c.childNodes.length&&s(c),c.isLeaf||this.checkStrictly){c.setChecked(!0,!1);continue}if(c.setChecked(!0,!0),n){c.setChecked(!1,!1);const v=function(h){h.childNodes.forEach(g=>{g.isLeaf||g.setChecked(!1,!1),v(g)})};v(c)}}}setCheckedNodes(t,n=!1){const r=this.key,a={};t.forEach(o=>{a[(o||{})[r]]=!0}),this._setCheckedKeys(r,n,a)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const r=this.key,a={};t.forEach(o=>{a[o]=!0}),this._setCheckedKeys(r,n,a)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const r=this.getNode(n);r&&r.expand(null,this.autoExpandParent)})}setChecked(t,n,r){const a=this.getNode(t);a&&a.setChecked(!!n,r)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){var r;const a=t[this.key],o=this.nodesMap[a];this.setCurrentNode(o),n&&this.currentNode&&this.currentNode.level>1&&((r=this.currentNode.parent)==null||r.expand(null,!0))}setCurrentNodeKey(t,n=!0){var r;if(this.currentNodeKey=t,io(t)){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const a=this.getNode(t);a&&(this.setCurrentNode(a),n&&this.currentNode&&this.currentNode.level>1&&((r=this.currentNode.parent)==null||r.expand(null,!0)))}}const DE="RootTree",$ee="NodeInstance",c$="TreeNodeMap",Yit=q({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=we("tree"),n=Ue($ee),r=Ue(DE);return()=>{const a=e.node,{data:o,store:i}=a;return e.renderContent?e.renderContent(ot,{_self:n,node:a,data:o,store:i}):ue(r.ctx.slots,"default",{node:a,data:o},()=>[ot(IE,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[a.label])])}}});var qit=De(Yit,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function zee(e){const t=Ue(c$,null);let n={treeNodeExpand:r=>{var a;e.node!==r&&((a=e.node)==null||a.collapse())},children:new Set};return t&&t.children.add(n),un(()=>{t&&t.children.delete(n),n=null}),Ut(c$,n),{broadcastExpanded:r=>{if(e.accordion)for(const a of n.children)a.treeNodeExpand(r)}}}const Fee=Symbol("dragEvents");function Xit({props:e,ctx:t,el$:n,dropIndicator$:r,store:a}){const o=we("tree"),i=K({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Ut(Fee,{treeNodeDragStart:({event:c,treeNode:f})=>{if(c.dataTransfer){if(Je(e.allowDrag)&&!e.allowDrag(f.node))return c.preventDefault(),!1;c.dataTransfer.effectAllowed="move";try{c.dataTransfer.setData("text/plain","")}catch{}i.value.draggingNode=f,t.emit("node-drag-start",f.node,c)}},treeNodeDragOver:({event:c,treeNode:f})=>{if(!c.dataTransfer)return;const d=f,v=i.value.dropNode;v&&v.node.id!==d.node.id&&Aa(v.$el,o.is("drop-inner"));const h=i.value.draggingNode;if(!h||!d)return;let p=!0,g=!0,m=!0,y=!0;Je(e.allowDrop)&&(p=e.allowDrop(h.node,d.node,"prev"),y=g=e.allowDrop(h.node,d.node,"inner"),m=e.allowDrop(h.node,d.node,"next")),c.dataTransfer.dropEffect=g||p||m?"move":"none",(p||g||m)&&(v==null?void 0:v.node.id)!==d.node.id&&(v&&t.emit("node-drag-leave",h.node,v.node,c),t.emit("node-drag-enter",h.node,d.node,c)),p||g||m?i.value.dropNode=d:i.value.dropNode=null,d.node.nextSibling===h.node&&(m=!1),d.node.previousSibling===h.node&&(p=!1),d.node.contains(h.node,!1)&&(g=!1),(h.node===d.node||h.node.contains(d.node))&&(p=!1,g=!1,m=!1);const b=d.$el,w=b.querySelector(`.${o.be("node","content")}`).getBoundingClientRect(),S=n.value.getBoundingClientRect(),x=n.value.scrollTop;let C;const T=p?g?.25:m?.45:1:Number.NEGATIVE_INFINITY,M=m?g?.75:p?.55:0:Number.POSITIVE_INFINITY;let k=-9999;const E=c.clientY-w.top;E<w.height*T?C="before":E>w.height*M?C="after":g?C="inner":C="none";const A=b.querySelector(`.${o.be("node","expand-icon")}`).getBoundingClientRect(),I=r.value;C==="before"?k=A.top-S.top+x:C==="after"&&(k=A.bottom-S.top+x),I.style.top=`${k}px`,I.style.left=`${A.right-S.left}px`,C==="inner"?Jo(b,o.is("drop-inner")):Aa(b,o.is("drop-inner")),i.value.showDropIndicator=C==="before"||C==="after",i.value.allowDrop=i.value.showDropIndicator||y,i.value.dropType=C,t.emit("node-drag-over",h.node,d.node,c)},treeNodeDragEnd:c=>{var f,d;const{draggingNode:v,dropType:h,dropNode:p}=i.value;if(c.preventDefault(),c.dataTransfer&&(c.dataTransfer.dropEffect="move"),v!=null&&v.node.data&&p){const g={data:v.node.data};h!=="none"&&v.node.remove(),h==="before"?(f=p.node.parent)==null||f.insertBefore(g,p.node):h==="after"?(d=p.node.parent)==null||d.insertAfter(g,p.node):h==="inner"&&p.node.insertChild(g),h!=="none"&&(a.value.registerNode(g),a.value.key&&v.node.eachNode(m=>{var y;(y=a.value.nodesMap[m.data[a.value.key]])==null||y.setChecked(m.checked,!a.value.checkStrictly)})),Aa(p.$el,o.is("drop-inner")),t.emit("node-drag-end",v.node,p.node,h,c),h!=="none"&&t.emit("node-drop",v.node,p.node,h,c)}v&&!p&&t.emit("node-drag-end",v.node,null,h,c),i.value.showDropIndicator=!1,i.value.draggingNode=null,i.value.dropNode=null,i.value.allowDrop=!0}}),{dragState:i}}const Zit=q({name:"ElTreeNode",components:{ElCollapseTransition:M4,ElCheckbox:Bi,NodeContent:qit,ElIcon:Xe,Loading:si},props:{node:{type:GT,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const n=we("tree"),{broadcastExpanded:r}=zee(e),a=Ue(DE),o=K(!1),i=K(!1),s=K(),l=K(),u=K(),c=Ue(Fee),f=bt();Ut($ee,f),e.node.expanded&&(o.value=!0,i.value=!0);const d=a.props.props.children||"children";he(()=>{var M;const k=(M=e.node.data)==null?void 0:M[d];return k&&[...k]},()=>{e.node.updateChildren()}),he(()=>e.node.indeterminate,M=>{p(e.node.checked,M)}),he(()=>e.node.checked,M=>{p(M,e.node.indeterminate)}),he(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),he(()=>e.node.expanded,M=>{ze(()=>o.value=M),M&&(i.value=!0)});const v=M=>LE(a.props.nodeKey,M.data),h=M=>{const k=e.props.class;if(!k)return{};let E;if(Je(k)){const{data:A}=M;E=k(A,M)}else E=k;return Ge(E)?{[E]:!0}:E},p=(M,k)=>{(s.value!==M||l.value!==k)&&a.ctx.emit("check-change",e.node.data,M,k),s.value=M,l.value=k},g=M=>{HT(a.store,a.ctx.emit,()=>{var k;if((k=a==null?void 0:a.props)==null?void 0:k.nodeKey){const A=v(e.node);a.store.value.setCurrentNodeKey(A)}else a.store.value.setCurrentNode(e.node)}),a.currentNode.value=e.node,a.props.expandOnClickNode&&y(),(a.props.checkOnClickNode||e.node.isLeaf&&a.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&b(!e.node.checked),a.ctx.emit("node-click",e.node.data,e.node,f,M)},m=M=>{var k;(k=a.instance.vnode.props)!=null&&k.onNodeContextmenu&&(M.stopPropagation(),M.preventDefault()),a.ctx.emit("node-contextmenu",M,e.node.data,e.node,f)},y=()=>{e.node.isLeaf||(o.value?(a.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,f)}))},b=M=>{const k=a==null?void 0:a.props.checkStrictly,E=e.node.childNodes;!k&&E.length&&(M=E.some(A=>!A.isEffectivelyChecked)),e.node.setChecked(M,!k),ze(()=>{const A=a.store.value;a.ctx.emit("check",e.node.data,{checkedNodes:A.getCheckedNodes(),checkedKeys:A.getCheckedKeys(),halfCheckedNodes:A.getHalfCheckedNodes(),halfCheckedKeys:A.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:a,expanded:o,childNodeRendered:i,oldChecked:s,oldIndeterminate:l,getNodeKey:v,getNodeClass:h,handleSelectChange:p,handleClick:g,handleContextMenu:m,handleExpandIconClick:y,handleCheckChange:b,handleChildNodeExpand:(M,k,E)=>{r(k),a.ctx.emit("node-expand",M,k,E)},handleDragStart:M=>{a.props.draggable&&c.treeNodeDragStart({event:M,treeNode:e})},handleDragOver:M=>{M.preventDefault(),a.props.draggable&&c.treeNodeDragOver({event:M,treeNode:{$el:u.value,node:e.node}})},handleDrop:M=>{M.preventDefault()},handleDragEnd:M=>{a.props.draggable&&c.treeNodeDragEnd(M)},CaretRight:xA}}}),Jit=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],Qit=["aria-expanded"];function est(e,t,n,r,a,o){const i=Ft("el-icon"),s=Ft("el-checkbox"),l=Ft("loading"),u=Ft("node-content"),c=Ft("el-tree-node"),f=Ft("el-collapse-transition");return xt((D(),H("div",{ref:"node$",class:W([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[2]||(t[2]=ut((...d)=>e.handleClick&&e.handleClick(...d),["stop"])),onContextmenu:t[3]||(t[3]=(...d)=>e.handleContextMenu&&e.handleContextMenu(...d)),onDragstart:t[4]||(t[4]=ut((...d)=>e.handleDragStart&&e.handleDragStart(...d),["stop"])),onDragover:t[5]||(t[5]=ut((...d)=>e.handleDragOver&&e.handleDragOver(...d),["stop"])),onDragend:t[6]||(t[6]=ut((...d)=>e.handleDragEnd&&e.handleDragEnd(...d),["stop"])),onDrop:t[7]||(t[7]=ut((...d)=>e.handleDrop&&e.handleDrop(...d),["stop"]))},[N("div",{class:W(e.ns.be("node","content")),style:et({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(D(),de(i,{key:0,class:W([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:ut(e.handleExpandIconClick,["stop"])},{default:ee(()=>[(D(),de(Tt(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):le("v-if",!0),e.showCheckbox?(D(),de(s,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=ut(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):le("v-if",!0),e.node.loading?(D(),de(i,{key:2,class:W([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:ee(()=>[Q(l)]),_:1},8,["class"])):le("v-if",!0),Q(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),Q(f,null,{default:ee(()=>[!e.renderAfterExpand||e.childNodeRendered?xt((D(),H("div",{key:0,class:W(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:t[1]||(t[1]=ut(()=>{},["stop"]))},[(D(!0),H(qe,null,Wt(e.node.childNodes,d=>(D(),de(c,{key:e.getNodeKey(d),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:d,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,Qit)),[[tn,e.expanded]]):le("v-if",!0)]),_:1})],42,Jit)),[[tn,e.node.visible]])}var tst=De(Zit,[["render",est],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function nst({el$:e},t){const n=we("tree");Et(()=>{o()}),Lo(()=>{var i;(i=e.value)==null||i.querySelectorAll("input[type=checkbox]").forEach(s=>{s.setAttribute("tabindex","-1")})});function r(i,s){var l,u;const c=t.value.getNode(i[s].dataset.key);return c.canFocus&&c.visible&&(((l=c.parent)==null?void 0:l.expanded)||((u=c.parent)==null?void 0:u.level)===0)}fn(e,"keydown",i=>{const s=i.target;if(!s.className.includes(n.b("node")))return;const l=xn(i),u=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),c=u.indexOf(s);let f;if([ke.up,ke.down].includes(l)){if(i.preventDefault(),l===ke.up){f=c===-1?0:c!==0?c-1:u.length-1;const v=f;for(;!r(u,f);){if(f--,f===v){f=-1;break}f<0&&(f=u.length-1)}}else{f=c===-1?0:c<u.length-1?c+1:0;const v=f;for(;!r(u,f);){if(f++,f===v){f=-1;break}f>=u.length&&(f=0)}}f!==-1&&u[f].focus()}[ke.left,ke.right].includes(l)&&(i.preventDefault(),s.click());const d=s.querySelector('[type="checkbox"]');[ke.enter,ke.numpadEnter,ke.space].includes(l)&&d&&(i.preventDefault(),d.click())});const o=()=>{var i;if(!e.value)return;const s=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(c=>{c.setAttribute("tabindex","-1")});const u=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(u.length){u[0].setAttribute("tabindex","0");return}(i=s[0])==null||i.setAttribute("tabindex","0")}}const Hee=Ie({data:{type:ne(Array),default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:{type:Array},defaultExpandedKeys:{type:Array},currentNodeKey:{type:[String,Number]},renderContent:{type:ne(Function)},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:ne(Function)},allowDrop:{type:ne(Function)},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:{type:Function},filterNodeMethod:{type:Function},accordion:Boolean,indent:{type:Number,default:18},icon:{type:pn}}),rst={"check-change":(e,t,n)=>e&&hn(t)&&hn(n),"current-change":(e,t)=>!0,"node-click":(e,t,n,r)=>e&&t&&r instanceof Event,"node-contextmenu":(e,t,n,r)=>e instanceof Event&&t&&n,"node-collapse":(e,t,n)=>e&&t,"node-expand":(e,t,n)=>e&&t,check:(e,t)=>e&&t,"node-drag-start":(e,t)=>e&&t,"node-drag-end":(e,t,n,r)=>e&&r,"node-drop":(e,t,n,r)=>e&&t&&r,"node-drag-leave":(e,t,n)=>e&&t&&n,"node-drag-enter":(e,t,n)=>e&&t&&n,"node-drag-over":(e,t,n)=>e&&t&&n},ast=q({name:"ElTree",components:{ElTreeNode:tst},props:Hee,emits:rst,setup(e,t){const{t:n}=Kt(),r=we("tree"),a=K(new jit({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));a.value.initialize();const o=K(a.value.root),i=K(null),s=K(null),l=K(null),{broadcastExpanded:u}=zee(e),{dragState:c}=Xit({props:e,ctx:t,el$:s,dropIndicator$:l,store:a});nst({el$:s},a);const f=bt(),d=R(()=>{let B=f==null?void 0:f.parent;for(;B;){if(B.type.name==="ElTreeSelect")return!0;B=B.parent}return!1}),v=R(()=>{const{childNodes:B}=o.value;return(!B||B.length===0||B.every(({visible:F})=>!F))&&!d.value});he(()=>e.currentNodeKey,B=>{a.value.setCurrentNodeKey(B??null)}),he(()=>e.defaultCheckedKeys,(B,F)=>{Yn(B,F)||a.value.setDefaultCheckedKey(B??[])}),he(()=>e.defaultExpandedKeys,B=>{a.value.setDefaultExpandedKeys(B??[])}),he(()=>e.data,B=>{a.value.setData(B)},{deep:!0}),he(()=>e.checkStrictly,B=>{a.value.checkStrictly=B});const h=B=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");a.value.filter(B)},p=B=>LE(e.nodeKey,B.data),g=B=>{if(!e.nodeKey)throw new Error(`[Tree] nodeKey is required in ${B}`)},m=B=>{g("getNodePath");const F=a.value.getNode(B);if(!F)return[];const U=[F.data];let G=F.parent;for(;G&&G!==o.value;)U.push(G.data),G=G.parent;return U.reverse()},y=(B,F)=>a.value.getCheckedNodes(B,F),b=B=>a.value.getCheckedKeys(B),w=()=>{const B=a.value.getCurrentNode();return B?B.data:null},S=()=>{g("getCurrentKey");const B=w();return B?B[e.nodeKey]:null},x=(B,F)=>{g("setCheckedNodes"),a.value.setCheckedNodes(B,F)},C=(B,F)=>{g("setCheckedKeys"),a.value.setCheckedKeys(B,F)},T=(B,F,U)=>{a.value.setChecked(B,F,U)},M=()=>a.value.getHalfCheckedNodes(),k=()=>a.value.getHalfCheckedKeys(),E=(B,F=!0)=>{g("setCurrentNode"),HT(a,t.emit,()=>{u(B),a.value.setUserCurrentNode(B,F)})},A=(B=null,F=!0)=>{g("setCurrentKey"),HT(a,t.emit,()=>{u(),a.value.setCurrentNodeKey(B,F)})},I=B=>a.value.getNode(B),O=B=>{a.value.remove(B)},z=(B,F)=>{a.value.append(B,F)},$=(B,F)=>{a.value.insertBefore(B,F)},P=(B,F)=>{a.value.insertAfter(B,F)},L=(B,F,U)=>{u(F),t.emit("node-expand",B,F,U)},V=(B,F)=>{g("updateKeyChild"),a.value.updateChildren(B,F)};return Ut(DE,{ctx:t,props:e,store:a,root:o,currentNode:i,instance:f}),Ut(Zs,void 0),{ns:r,store:a,root:o,currentNode:i,dragState:c,el$:s,dropIndicator$:l,isEmpty:v,filter:h,getNodeKey:p,getNodePath:m,getCheckedNodes:y,getCheckedKeys:b,getCurrentNode:w,getCurrentKey:S,setCheckedNodes:x,setCheckedKeys:C,setChecked:T,getHalfCheckedNodes:M,getHalfCheckedKeys:k,setCurrentNode:E,setCurrentKey:A,t:n,getNode:I,remove:O,append:z,insertBefore:$,insertAfter:P,handleNodeExpand:L,updateKeyChildren:V}}});function ost(e,t,n,r,a,o){const i=Ft("el-tree-node");return D(),H("div",{ref:"el$",class:W([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(D(!0),H(qe,null,Wt(e.root.childNodes,s=>(D(),de(i,{key:e.getNodeKey(s),node:s,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(D(),H("div",{key:0,class:W(e.ns.e("empty-block"))},[ue(e.$slots,"empty",{},()=>{var s;return[N("span",{class:W(e.ns.e("empty-text"))},Ae((s=e.emptyText)!=null?s:e.t("el.tree.emptyText")),3)]})],2)):le("v-if",!0),xt(N("div",{ref:"dropIndicator$",class:W(e.ns.e("drop-indicator"))},null,2),[[tn,e.dragState.showDropIndicator]])],2)}var ist=De(ast,[["render",ost],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);const PE=_t(ist),sst=(e,{attrs:t,emit:n},{select:r,tree:a,key:o})=>{const i=we("tree-select");he(()=>e.data,()=>{e.filterable&&ze(()=>{var u,c;(c=a.value)==null||c.filter((u=r.value)==null?void 0:u.states.inputValue)})},{flush:"post"});const s=u=>{var c;const f=u.at(-1);if(f.expanded&&f.childNodes.at(-1))s([f.childNodes.at(-1)]);else{const d=(c=a.value.el$)==null?void 0:c.querySelector(`[data-key="${u.at(-1).key}"]`);d==null||d.focus({preventScroll:!0});return}};return Et(()=>{fn(()=>{var u;return(u=r.value)==null?void 0:u.$el},"keydown",async u=>{const c=xn(u),{dropdownMenuVisible:f}=r.value;[ke.down,ke.up].includes(c)&&f&&(await ze(),setTimeout(()=>{var d,v,h;if(ke.up===c){const p=a.value.store.root.childNodes;s(p);return}(h=(v=(d=r.value.optionsArray[r.value.states.hoveringIndex].$el)==null?void 0:d.parentNode)==null?void 0:v.parentNode)==null||h.focus({preventScroll:!0})}))},{capture:!0})}),{...Kl(kr(e),Object.keys(Bh.props)),...t,class:R(()=>t.class),style:R(()=>t.style),"onUpdate:modelValue":u=>n(dt,u),valueKey:o,popperClass:R(()=>{const u=[i.e("popper")];return e.popperClass&&u.push(e.popperClass),u.join(" ")}),filterMethod:(u="")=>{var c;e.filterMethod?e.filterMethod(u):e.remoteMethod?e.remoteMethod(u):(c=a.value)==null||c.filter(u)}}},lst=q({extends:W_,setup(e,t){const n=W_.setup(e,t);delete n.selectOptionClick;const r=bt().proxy;return ze(()=>{n.select.states.cachedOptions.get(r.value)||n.select.onOptionCreate(r)}),he(()=>t.attrs.visible,a=>{ze(()=>{n.states.visible=a})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function UT(e){return e||e===0}function RE(e){return Ce(e)&&e.length}function yv(e){return Ce(e)?e:UT(e)?[e]:[]}function ab(e,t,n,r,a){for(let o=0;o<e.length;o++){const i=e[o];if(t(i,o,e,a))return r?r(i,o,e,a):i;{const s=n(i);if(RE(s)){const l=ab(s,t,n,r,i);if(l)return l}}}}function ob(e,t,n,r){for(let a=0;a<e.length;a++){const o=e[a];t(o,a,e,r);const i=n(o);RE(i)&&ob(i,t,n,o)}}const ust=(e,{attrs:t,slots:n,emit:r},{select:a,tree:o,key:i})=>{he([()=>e.modelValue,o],()=>{e.showCheckbox&&ze(()=>{const d=o.value;d&&!Yn(d.getCheckedKeys(),yv(e.modelValue))&&d.setCheckedKeys(yv(e.modelValue))})},{immediate:!0,deep:!0});const s=R(()=>({value:i.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),l=(d,v)=>{var h;const p=s.value[d];return Je(p)?p(v,(h=o.value)==null?void 0:h.getNode(l("value",v))):v[p]},u=yv(e.modelValue).map(d=>ab(e.data||[],v=>l("value",v)===d,v=>l("children",v),(v,h,p,g)=>g&&l("value",g))).filter(d=>UT(d)),c=R(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const d=[];return ob(e.data.concat(e.cacheData),v=>{const h=l("value",v);d.push({value:h,currentLabel:l("label",v),isDisabled:l("disabled",v)})},v=>l("children",v)),d}),f=()=>{var d;return(d=o.value)==null?void 0:d.getCheckedKeys().filter(v=>{var h;const p=(h=o.value)==null?void 0:h.getNode(v);return!sr(p)&&Ha(p.childNodes)})};return{...Kl(kr(e),Object.keys(PE.props)),...t,nodeKey:i,expandOnClickNode:R(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:R(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(d,{node:v,data:h,store:p})=>d(lst,{value:l("value",h),label:l("label",h),disabled:l("disabled",h),visible:v.visible},e.renderContent?()=>e.renderContent(d,{node:v,data:h,store:p}):n.default?()=>n.default({node:v,data:h,store:p}):void 0),filterNodeMethod:(d,v,h)=>e.filterNodeMethod?e.filterNodeMethod(d,v,h):d?new RegExp(fE(d),"i").test(l("label",v)||""):!0,onNodeClick:(d,v,h)=>{var p,g,m;if((p=t.onNodeClick)==null||p.call(t,d,v,h),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||v.isLeaf)){if(!l("disabled",d)){const y=(g=a.value)==null?void 0:g.states.options.get(l("value",d));(m=a.value)==null||m.handleOptionSelect(y)}}else e.expandOnClickNode&&h.proxy.handleExpandIconClick()},onCheck:(d,v)=>{var h;if(!e.showCheckbox)return;const p=l("value",d),g={};ob([o.value.store.root],w=>g[w.key]=w,w=>w.childNodes);const m=v.checkedKeys,y=e.multiple?yv(e.modelValue).filter(w=>!(w in g)&&!m.includes(w)):[],b=y.concat(m);if(e.checkStrictly)r(dt,e.multiple?b:b.includes(p)?p:void 0);else if(e.multiple){const w=f();r(dt,y.concat(w))}else{const w=ab([d],C=>!RE(l("children",C))&&!l("disabled",C),C=>l("children",C)),S=w?l("value",w):void 0,x=UT(e.modelValue)&&!!ab([d],C=>l("value",C)===e.modelValue,C=>l("children",C));r(dt,S===e.modelValue||x?void 0:S)}ze(()=>{var w;const S=yv(e.modelValue);o.value.setCheckedKeys(S),(w=t.onCheck)==null||w.call(t,d,{checkedKeys:o.value.getCheckedKeys(),checkedNodes:o.value.getCheckedNodes(),halfCheckedKeys:o.value.getHalfCheckedKeys(),halfCheckedNodes:o.value.getHalfCheckedNodes()})}),(h=a.value)==null||h.focus()},onNodeExpand:(d,v,h)=>{var p;(p=t.onNodeExpand)==null||p.call(t,d,v,h),ze(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&v.checked){const g={},m=o.value.getCheckedKeys();ob([o.value.store.root],w=>g[w.key]=w,w=>w.childNodes);const y=yv(e.modelValue).filter(w=>!(w in g)&&!m.includes(w)),b=f();r(dt,y.concat(b))}})},cacheOptions:c}};var cst=q({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Ue(p1);return he(()=>e.data,()=>{var n;e.data.forEach(a=>{t.states.cachedOptions.has(a.value)||t.states.cachedOptions.set(a.value,a)});const r=((n=t.selectRef)==null?void 0:n.querySelectorAll("input"))||[];on&&!Array.from(r).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const fst=q({name:"ElTreeSelect",inheritAttrs:!1,props:{...RQ,...Hee,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:r}=t,a=K(),o=K(),i=R(()=>e.nodeKey||e.valueKey||"value"),s=sst(e,t,{select:a,tree:o,key:i}),{cacheOptions:l,...u}=ust(e,t,{select:a,tree:o,key:i}),c=sn({});return r(c),Et(()=>{Object.assign(c,{...Kl(o.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...Kl(a.value,["focus","blur","selectedLabel"]),treeRef:o.value,selectRef:a.value})}),()=>ot(Bh,sn({...s,ref:f=>a.value=f}),{...n,default:()=>[ot(cst,{data:l.value}),ot(PE,sn({...u,ref:f=>o.value=f}))]})}});var dst=De(fst,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);const vst=_t(dst),OE=Symbol(),hst={key:-1,level:-1,data:{}};var E0=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e))(E0||{}),KT=(e=>(e.ADD="add",e.DELETE="delete",e))(KT||{});const Wee={type:Number,default:26},pst=Ie({data:{type:ne(Array),default:()=>Gn([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:ne(Object),default:()=>Gn({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:Boolean,showCheckbox:Boolean,defaultCheckedKeys:{type:ne(Array),default:()=>Gn([])},checkStrictly:Boolean,defaultExpandedKeys:{type:ne(Array),default:()=>Gn([])},indent:{type:Number,default:16},itemSize:Wee,icon:{type:pn},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:ne([String,Number])},accordion:Boolean,filterMethod:{type:ne(Function)},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),gst=Ie({node:{type:ne(Object),default:()=>Gn(hst)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize:Wee}),mst=Ie({node:{type:ne(Object),required:!0}}),Gee="node-click",Uee="node-drop",Kee="node-expand",jee="node-collapse",Yee="current-change",qee="check",Xee="check-change",Zee="node-contextmenu",yst={[Gee]:(e,t,n)=>e&&t&&n,[Uee]:(e,t,n)=>e&&t&&n,[Kee]:(e,t)=>e&&t,[jee]:(e,t)=>e&&t,[Yee]:(e,t)=>e&&t,[qee]:(e,t)=>e&&t,[Xee]:(e,t)=>e&&hn(t),[Zee]:(e,t,n)=>e&&t&&n},bst={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&hn(t)};function _st(e,t){const n=K(new Set),r=K(new Set),{emit:a}=bt();he([()=>t.value,()=>e.defaultCheckedKeys],()=>ze(()=>{y(e.defaultCheckedKeys)}),{immediate:!0});const o=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:b,maxLevel:w}=t.value,S=n.value,x=new Set;for(let C=w;C>=1;--C){const T=b.get(C);T&&T.forEach(M=>{const k=M.children;let E=!M.isLeaf||M.disabled||S.has(M.key);if(k){let A=!0,I=!1;for(const O of k){const z=O.key;if(O.isEffectivelyChecked||(E=!1),S.has(z))I=!0;else if(x.has(z)){A=!1,I=!0;break}else A=!1}A?S.add(M.key):I?(x.add(M.key),S.delete(M.key)):(S.delete(M.key),x.delete(M.key))}M.isEffectivelyChecked=E})}r.value=x},i=b=>n.value.has(b.key),s=b=>r.value.has(b.key),l=(b,w,S=!0,x=!0)=>{const C=n.value,T=b.children;!e.checkStrictly&&S&&(T!=null&&T.length)&&(w=T.some(k=>!k.isEffectivelyChecked));const M=(k,E)=>{C[E?KT.ADD:KT.DELETE](k.key);const A=k.children;!e.checkStrictly&&A&&A.forEach(I=>{(!I.disabled||I.children)&&M(I,E)})};M(b,w),x&&o(),S&&u(b,w)},u=(b,w)=>{const{checkedNodes:S,checkedKeys:x}=h(),{halfCheckedNodes:C,halfCheckedKeys:T}=p();a(qee,b.data,{checkedKeys:x,checkedNodes:S,halfCheckedKeys:T,halfCheckedNodes:C}),a(Xee,b.data,w)};function c(b=!1){return h(b).checkedKeys}function f(b=!1){return h(b).checkedNodes}function d(){return p().halfCheckedKeys}function v(){return p().halfCheckedNodes}function h(b=!1){const w=[],S=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:x}=t.value;n.value.forEach(C=>{const T=x.get(C);T&&(!b||b&&T.isLeaf)&&(S.push(C),w.push(T.data))})}return{checkedKeys:S,checkedNodes:w}}function p(){const b=[],w=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:S}=t.value;r.value.forEach(x=>{const C=S.get(x);C&&(w.push(x),b.push(C.data))})}return{halfCheckedNodes:b,halfCheckedKeys:w}}function g(b){n.value.clear(),r.value.clear(),ze(()=>{y(b)})}function m(b,w){if(t!=null&&t.value&&e.showCheckbox){const S=t.value.treeNodeMap.get(b);S&&l(S,w,!1)}}function y(b){if(t!=null&&t.value){const{treeNodeMap:w}=t.value;if(e.showCheckbox&&w&&(b==null?void 0:b.length)>0){for(const S of b){const x=w.get(S);x&&!i(x)&&l(x,!0,!1,!1)}o()}}}return{updateCheckedKeys:o,toggleCheckbox:l,isChecked:i,isIndeterminate:s,getCheckedKeys:c,getCheckedNodes:f,getHalfCheckedKeys:d,getHalfCheckedNodes:v,setChecked:m,setCheckedKeys:g}}function wst(e,t){const n=K(new Set([])),r=K(new Set([])),a=R(()=>Je(e.filterMethod));function o(s){var l;if(!a.value)return;const u=new Set,c=r.value,f=n.value,d=[],v=((l=t.value)==null?void 0:l.treeNodes)||[],h=e.filterMethod;f.clear();function p(g){g.forEach(m=>{d.push(m),h!=null&&h(s,m.data,m)?d.forEach(b=>{u.add(b.key),b.expanded=!0}):(m.expanded=!1,m.isLeaf&&f.add(m.key));const y=m.children;if(y&&p(y),!m.isLeaf){if(!u.has(m.key))f.add(m.key);else if(y){let b=!0;for(const w of y)if(!f.has(w.key)){b=!1;break}b?c.add(m.key):c.delete(m.key)}}d.pop()})}return p(v),u}function i(s){return r.value.has(s.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:n,doFilter:o,isForceHiddenExpandIcon:i}}function Sst(e,t){const n=K(new Set),r=K(),a=Ln(),o=K(),{isIndeterminate:i,isChecked:s,toggleCheckbox:l,getCheckedKeys:u,getCheckedNodes:c,getHalfCheckedKeys:f,getHalfCheckedNodes:d,setChecked:v,setCheckedKeys:h}=_st(e,a),{doFilter:p,hiddenNodeKeySet:g,isForceHiddenExpandIcon:m}=wst(e,a),y=R(()=>{var Z;return((Z=e.props)==null?void 0:Z.value)||E0.KEY}),b=R(()=>{var Z;return((Z=e.props)==null?void 0:Z.children)||E0.CHILDREN}),w=R(()=>{var Z;return((Z=e.props)==null?void 0:Z.disabled)||E0.DISABLED}),S=R(()=>{var Z;return((Z=e.props)==null?void 0:Z.label)||E0.LABEL}),x=R(()=>{var Z;const se=n.value,J=g.value,ae=[],fe=((Z=a.value)==null?void 0:Z.treeNodes)||[],ve=[];for(let me=fe.length-1;me>=0;--me)ve.push(fe[me]);for(;ve.length;){const me=ve.pop();if(!J.has(me.key)&&(ae.push(me),me.children&&se.has(me.key)))for(let pe=me.children.length-1;pe>=0;--pe)ve.push(me.children[pe])}return ae}),C=R(()=>x.value.length>0);function T(Z){const se=new Map,J=new Map;let ae=1;function fe(me,pe=1,Ne=void 0){var Ee;const _e=[];for(const be of me){const Fe=E(be),Oe={level:pe,key:Fe,data:be};Oe.label=I(be),Oe.parent=Ne;const Ze=k(be);Oe.disabled=A(be),Oe.isLeaf=!Ze||Ze.length===0,Oe.expanded=n.value.has(Fe),Ze&&Ze.length&&(Oe.children=fe(Ze,pe+1,Oe)),_e.push(Oe),se.set(Fe,Oe),J.has(pe)||J.set(pe,[]),(Ee=J.get(pe))==null||Ee.push(Oe)}return pe>ae&&(ae=pe),_e}const ve=fe(Z);return{treeNodeMap:se,levelTreeNodeMap:J,maxLevel:ae,treeNodes:ve}}function M(Z){const se=p(Z);se&&(n.value=se)}function k(Z){return Z[b.value]}function E(Z){return Z?Z[y.value]:""}function A(Z){return Z[w.value]}function I(Z){return Z[S.value]}function O(Z){n.value.has(Z.key)?F(Z):B(Z)}function z(Z){const se=new Set,J=a.value.treeNodeMap;n.value.forEach(ae=>{const fe=J.get(ae);n.value.delete(fe.key),fe.expanded=!1}),Z.forEach(ae=>{let fe=J.get(ae);for(;fe&&!se.has(fe.key);)se.add(fe.key),fe.expanded=!0,fe=fe.parent}),n.value=se}function $(Z,se){t(Gee,Z.data,Z,se),L(Z),e.expandOnClickNode&&O(Z),e.showCheckbox&&(e.checkOnClickNode||Z.isLeaf&&e.checkOnClickLeaf)&&!Z.disabled&&l(Z,!s(Z),!0)}function P(Z,se){t(Uee,Z.data,Z,se)}function L(Z){G(Z)||(r.value=Z.key,t(Yee,Z.data,Z))}function V(Z,se){l(Z,se)}function B(Z){const se=n.value;if(a.value&&e.accordion){const{treeNodeMap:ae}=a.value;se.forEach(fe=>{const ve=ae.get(fe);Z&&Z.level===(ve==null?void 0:ve.level)&&(se.delete(fe),ve.expanded=!1)})}se.add(Z.key);const J=re(Z.key);J&&(J.expanded=!0,t(Kee,J.data,J))}function F(Z){n.value.delete(Z.key);const se=re(Z.key);se&&(se.expanded=!1,t(jee,se.data,se))}function U(Z){return!!Z.disabled}function G(Z){const se=r.value;return se!==void 0&&se===Z.key}function Y(){var Z,se;if(r.value)return(se=(Z=a.value)==null?void 0:Z.treeNodeMap.get(r.value))==null?void 0:se.data}function X(){return r.value}function te(Z){r.value=Z}function oe(Z){a.value=T(Z)}function re(Z){var se;const J=St(Z)?E(Z):Z;return(se=a.value)==null?void 0:se.treeNodeMap.get(J)}function ce(Z,se="auto"){const J=re(Z);J&&o.value&&o.value.scrollToItem(x.value.indexOf(J),se)}function ie(Z){var se;(se=o.value)==null||se.scrollTo(Z)}return he(()=>e.currentNodeKey,Z=>{r.value=Z},{immediate:!0}),he(()=>e.defaultExpandedKeys,Z=>{n.value=new Set(Z)},{immediate:!0}),he(()=>e.data,Z=>{oe(Z)},{immediate:!0}),{tree:a,flattenTree:x,isNotEmpty:C,listRef:o,getKey:E,getChildren:k,toggleExpand:O,toggleCheckbox:l,isChecked:s,isIndeterminate:i,isDisabled:U,isCurrent:G,isForceHiddenExpandIcon:m,handleNodeClick:$,handleNodeDrop:P,handleNodeCheck:V,getCurrentNode:Y,getCurrentKey:X,setCurrentKey:te,getCheckedKeys:u,getCheckedNodes:c,getHalfCheckedKeys:f,getHalfCheckedNodes:d,setChecked:v,setCheckedKeys:h,filter:M,setData:oe,getNode:re,expandNode:B,collapseNode:F,setExpandedKeys:z,scrollToNode:ce,scrollTo:ie}}var xst=q({name:"ElTreeNodeContent",props:mst,setup(e){const t=Ue(OE),n=we("tree");return()=>{const r=e.node,{data:a}=r;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:r,data:a}):ot(IE,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[r==null?void 0:r.label])}}});const Cst=["aria-expanded","aria-disabled","aria-checked","data-key"],Tst=q({name:"ElTreeNode",__name:"tree-node",props:gst,emits:bst,setup(e,{emit:t}){const n=e,r=t,a=Ue(OE),o=we("tree"),i=R(()=>{var h;return(h=a==null?void 0:a.props.indent)!=null?h:16}),s=R(()=>{var h;return(h=a==null?void 0:a.props.icon)!=null?h:xA}),l=h=>{const p=a==null?void 0:a.props.props.class;if(!p)return{};let g;if(Je(p)){const{data:m}=h;g=p(m,h)}else g=p;return Ge(g)?{[g]:!0}:g},u=h=>{r("click",n.node,h)},c=h=>{r("drop",n.node,h)},f=()=>{r("toggle",n.node)},d=h=>{r("check",n.node,h)},v=h=>{var p,g,m,y;(m=(g=(p=a==null?void 0:a.instance)==null?void 0:p.vnode)==null?void 0:g.props)!=null&&m.onNodeContextmenu&&(h.stopPropagation(),h.preventDefault()),a==null||a.ctx.emit(Zee,h,(y=n.node)==null?void 0:y.data,n.node)};return(h,p)=>{var g,m,y;return D(),H("div",{ref:"node$",class:W([_(o).b("node"),_(o).is("expanded",h.expanded),_(o).is("current",h.current),_(o).is("focusable",!h.disabled),_(o).is("checked",!h.disabled&&h.checked),l(h.node)]),role:"treeitem",tabindex:"-1","aria-expanded":h.expanded,"aria-disabled":h.disabled,"aria-checked":h.checked,"data-key":(g=h.node)==null?void 0:g.key,onClick:ut(u,["stop"]),onContextmenu:v,onDragover:p[1]||(p[1]=ut(()=>{},["prevent"])),onDragenter:p[2]||(p[2]=ut(()=>{},["prevent"])),onDrop:ut(c,["stop"])},[N("div",{class:W(_(o).be("node","content")),style:et({paddingLeft:`${(h.node.level-1)*i.value}px`,height:h.itemSize+"px"})},[s.value?(D(),de(_(Xe),{key:0,class:W([_(o).is("leaf",!!((m=h.node)!=null&&m.isLeaf)),_(o).is("hidden",h.hiddenExpandIcon),{expanded:!((y=h.node)!=null&&y.isLeaf)&&h.expanded},_(o).be("node","expand-icon")]),onClick:ut(f,["stop"])},{default:ee(()=>[(D(),de(Tt(s.value)))]),_:1},8,["class"])):le("v-if",!0),h.showCheckbox?(D(),de(_(Bi),{key:1,"model-value":h.checked,indeterminate:h.indeterminate,disabled:h.disabled,onChange:d,onClick:p[0]||(p[0]=ut(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):le("v-if",!0),Q(_(xst),{node:{...h.node,expanded:h.expanded}},null,8,["node"])],6)],42,Cst)}}});var kst=De(Tst,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const Mst=q({name:"ElTreeV2",__name:"tree",props:pst,emits:yst,setup(e,{expose:t,emit:n}){const r=e,a=n,o=fr(),i=R(()=>r.itemSize);Ut(OE,{ctx:{emit:a,slots:o},props:r,instance:bt()}),Ut(Zs,void 0);const{t:s}=Kt(),l=we("tree"),{flattenTree:u,isNotEmpty:c,listRef:f,toggleExpand:d,isIndeterminate:v,isChecked:h,isDisabled:p,isCurrent:g,isForceHiddenExpandIcon:m,handleNodeClick:y,handleNodeDrop:b,handleNodeCheck:w,toggleCheckbox:S,getCurrentNode:x,getCurrentKey:C,setCurrentKey:T,getCheckedKeys:M,getCheckedNodes:k,getHalfCheckedKeys:E,getHalfCheckedNodes:A,setChecked:I,setCheckedKeys:O,filter:z,setData:$,getNode:P,expandNode:L,collapseNode:V,setExpandedKeys:B,scrollToNode:F,scrollTo:U}=Sst(r,a);return t({toggleCheckbox:S,getCurrentNode:x,getCurrentKey:C,setCurrentKey:T,getCheckedKeys:M,getCheckedNodes:k,getHalfCheckedKeys:E,getHalfCheckedNodes:A,setChecked:I,setCheckedKeys:O,filter:z,setData:$,getNode:P,expandNode:L,collapseNode:V,setExpandedKeys:B,scrollToNode:F,scrollTo:U}),(G,Y)=>(D(),H("div",{class:W([_(l).b(),{[_(l).m("highlight-current")]:G.highlightCurrent}]),role:"tree"},[_(c)?(D(),de(_(KQ),{key:0,ref_key:"listRef",ref:f,"class-name":_(l).b("virtual-list"),data:_(u),total:_(u).length,height:G.height,"item-size":i.value,"perf-mode":G.perfMode,"scrollbar-always-on":G.scrollbarAlwaysOn},{default:ee(({data:X,index:te,style:oe})=>[(D(),de(kst,{key:X[te].key,style:et(oe),node:X[te],expanded:X[te].expanded,"show-checkbox":G.showCheckbox,checked:_(h)(X[te]),indeterminate:_(v)(X[te]),"item-size":i.value,disabled:_(p)(X[te]),current:_(g)(X[te]),"hidden-expand-icon":_(m)(X[te]),onClick:_(y),onToggle:_(d),onCheck:_(w),onDrop:_(b)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode","scrollbar-always-on"])):(D(),H("div",{key:1,class:W(_(l).e("empty-block"))},[ue(G.$slots,"empty",{},()=>{var X;return[N("span",{class:W(_(l).e("empty-text"))},Ae((X=G.emptyText)!=null?X:_(s)("el.tree.emptyText")),3)]})],2))],2))}});var Ast=De(Mst,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const Est=_t(Ast),Jee=Symbol("uploadContextKey"),Ist="ElUpload";class Lst extends Error{constructor(t,n,r,a){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=a}}function f$(e,t,n){let r;return n.response?r=`${n.response.error||n.response}`:n.responseText?r=`${n.responseText}`:r=`fail to ${t.method} ${e} ${n.status}`,new Lst(r,n.status,t.method,e)}function Dst(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Pst=e=>{typeof XMLHttpRequest>"u"&&cr(Ist,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",o=>{const i=o;i.percent=o.total>0?o.loaded/o.total*100:0,e.onProgress(i)});const r=new FormData;if(e.data)for(const[o,i]of Object.entries(e.data))Ce(i)&&i.length?r.append(o,...i):r.append(o,i);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(f$(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(f$(n,e,t));e.onSuccess(Dst(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const a=e.headers||{};if(a instanceof Headers)a.forEach((o,i)=>t.setRequestHeader(i,o));else for(const[o,i]of Object.entries(a))sr(i)||t.setRequestHeader(o,String(i));return t.send(r),t},Qee=["text","picture","picture-card"];let Rst=1;const jT=()=>Date.now()+Rst++,ete=Ie({action:{type:String,default:"#"},headers:{type:ne(Object)},method:{type:String,default:"post"},data:{type:ne([Object,Function,Promise]),default:()=>Gn({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:ne(Array),default:()=>Gn([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:Qee,default:"text"},httpRequest:{type:ne(Function),default:Pst},disabled:{type:Boolean,default:void 0},limit:Number}),Ost=Ie({...ete,beforeUpload:{type:ne(Function),default:cn},beforeRemove:{type:ne(Function)},onRemove:{type:ne(Function),default:cn},onChange:{type:ne(Function),default:cn},onPreview:{type:ne(Function),default:cn},onSuccess:{type:ne(Function),default:cn},onProgress:{type:ne(Function),default:cn},onError:{type:ne(Function),default:cn},onExceed:{type:ne(Function),default:cn},crossorigin:{type:ne(String)}}),Nst=Ie({files:{type:ne(Array),default:()=>Gn([])},disabled:{type:Boolean,default:void 0},handlePreview:{type:ne(Function),default:cn},listType:{type:String,values:Qee,default:"text"},crossorigin:{type:ne(String)}}),Bst={remove:e=>!!e},Vst=["tabindex","aria-disabled","onKeydown"],$st=["src","crossorigin"],zst=["onClick"],Fst=["title"],Hst=["onClick"],Wst=["onClick"],Gst=q({name:"ElUploadList",__name:"upload-list",props:Nst,emits:Bst,setup(e,{emit:t}){const n=e,r=t,{t:a}=Kt(),o=we("upload"),i=we("icon"),s=we("list"),l=jn(),u=K(!1),c=R(()=>[o.b("list"),o.bm("list",n.listType),o.is("disabled",l.value)]),f=d=>{r("remove",d)};return(d,v)=>(D(),de(S5,{tag:"ul",class:W(c.value),name:_(s).b()},{default:ee(()=>[(D(!0),H(qe,null,Wt(d.files,(h,p)=>(D(),H("li",{key:h.uid||h.name,class:W([_(o).be("list","item"),_(o).is(h.status),{focusing:u.value}]),tabindex:_(l)?void 0:0,"aria-disabled":_(l),role:"button",onKeydown:Wn(g=>!_(l)&&f(h),["delete"]),onFocus:v[0]||(v[0]=g=>u.value=!0),onBlur:v[1]||(v[1]=g=>u.value=!1),onClick:v[2]||(v[2]=g=>u.value=!1)},[ue(d.$slots,"default",{file:h,index:p},()=>[d.listType==="picture"||h.status!=="uploading"&&d.listType==="picture-card"?(D(),H("img",{key:0,class:W(_(o).be("list","item-thumbnail")),src:h.url,crossorigin:d.crossorigin,alt:""},null,10,$st)):le("v-if",!0),h.status==="uploading"||d.listType!=="picture-card"?(D(),H("div",{key:1,class:W(_(o).be("list","item-info"))},[N("a",{class:W(_(o).be("list","item-name")),onClick:ut(g=>d.handlePreview(h),["prevent"])},[Q(_(Xe),{class:W(_(i).m("document"))},{default:ee(()=>[Q(_(eZ))]),_:1},8,["class"]),N("span",{class:W(_(o).be("list","item-file-name")),title:h.name},Ae(h.name),11,Fst)],10,zst),h.status==="uploading"?(D(),de(_(NQ),{key:0,type:d.listType==="picture-card"?"circle":"line","stroke-width":d.listType==="picture-card"?6:2,percentage:Number(h.percentage),style:et(d.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):le("v-if",!0)],2)):le("v-if",!0),N("label",{class:W(_(o).be("list","item-status-label"))},[d.listType==="text"?(D(),de(_(Xe),{key:0,class:W([_(i).m("upload-success"),_(i).m("circle-check")])},{default:ee(()=>[Q(_(o1))]),_:1},8,["class"])):["picture-card","picture"].includes(d.listType)?(D(),de(_(Xe),{key:1,class:W([_(i).m("upload-success"),_(i).m("check")])},{default:ee(()=>[Q(_(gp))]),_:1},8,["class"])):le("v-if",!0)],2),_(l)?le("v-if",!0):(D(),de(_(Xe),{key:2,class:W(_(i).m("close")),onClick:g=>f(h)},{default:ee(()=>[Q(_(Io))]),_:1},8,["class","onClick"])),le(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),le(" This is a bug which needs to be fixed "),le(" TODO: Fix the incorrect navigation interaction "),_(l)?le("v-if",!0):(D(),H("i",{key:3,class:W(_(i).m("close-tip"))},Ae(_(a)("el.upload.deleteTip")),3)),d.listType==="picture-card"?(D(),H("span",{key:4,class:W(_(o).be("list","item-actions"))},[N("span",{class:W(_(o).be("list","item-preview")),onClick:g=>d.handlePreview(h)},[Q(_(Xe),{class:W(_(i).m("zoom-in"))},{default:ee(()=>[Q(_(MA))]),_:1},8,["class"])],10,Hst),_(l)?le("v-if",!0):(D(),H("span",{key:0,class:W(_(o).be("list","item-delete")),onClick:g=>f(h)},[Q(_(Xe),{class:W(_(i).m("delete"))},{default:ee(()=>[Q(_(QX))]),_:1},8,["class"])],10,Wst))],2)):le("v-if",!0)])],42,Vst))),128)),ue(d.$slots,"append")]),_:3},8,["class","name"]))}});var d$=De(Gst,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const Ust=Ie({disabled:{type:Boolean,default:void 0}}),Kst={file:e=>Ce(e)},v$="ElUploadDrag",jst=q({name:v$,__name:"upload-dragger",props:Ust,emits:Kst,setup(e,{emit:t}){const n=t;Ue(Jee)||cr(v$,"usage: <el-upload><el-upload-dragger /></el-upload>");const a=we("upload"),o=K(!1),i=jn(),s=c=>{if(i.value)return;o.value=!1,c.stopPropagation();const f=Array.from(c.dataTransfer.files),d=c.dataTransfer.items||[];f.forEach((v,h)=>{var p;const g=d[h],m=(p=g==null?void 0:g.webkitGetAsEntry)==null?void 0:p.call(g);m&&(v.isDirectory=m.isDirectory)}),n("file",f)},l=()=>{i.value||(o.value=!0)},u=c=>{c.currentTarget.contains(c.relatedTarget)||(o.value=!1)};return(c,f)=>(D(),H("div",{class:W([_(a).b("dragger"),_(a).is("dragover",o.value)]),onDrop:ut(s,["prevent"]),onDragover:ut(l,["prevent"]),onDragleave:ut(u,["prevent"])},[ue(c.$slots,"default")],34))}});var Yst=De(jst,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const qst=Ie({...ete,beforeUpload:{type:ne(Function),default:cn},onRemove:{type:ne(Function),default:cn},onStart:{type:ne(Function),default:cn},onSuccess:{type:ne(Function),default:cn},onProgress:{type:ne(Function),default:cn},onError:{type:ne(Function),default:cn},onExceed:{type:ne(Function),default:cn}}),Xst=["tabindex","aria-disabled","onKeydown"],Zst=["name","disabled","multiple","accept"],Jst=q({name:"ElUploadContent",inheritAttrs:!1,__name:"upload-content",props:qst,setup(e,{expose:t}){const n=e,r=we("upload"),a=jn(),o=Ln({}),i=Ln(),s=p=>{if(p.length===0)return;const{autoUpload:g,limit:m,fileList:y,multiple:b,onStart:w,onExceed:S}=n;if(m&&y.length+p.length>m){S(p,y);return}b||(p=p.slice(0,1));for(const x of p){const C=x;C.uid=jT(),w(C),g&&l(C)}},l=async p=>{if(i.value.value="",!n.beforeUpload)return c(p);let g,m={};try{const b=n.data,w=n.beforeUpload(p);m=Zf(n.data)?L_(n.data):n.data,g=await w,Zf(n.data)&&Yn(b,m)&&(m=L_(n.data))}catch{g=!1}if(g===!1){n.onRemove(p);return}let y=p;g instanceof Blob&&(g instanceof File?y=g:y=new File([g],p.name,{type:p.type})),c(Object.assign(y,{uid:p.uid}),m)},u=async(p,g)=>Je(p)?p(g):p,c=async(p,g)=>{const{headers:m,data:y,method:b,withCredentials:w,name:S,action:x,onProgress:C,onSuccess:T,onError:M,httpRequest:k}=n;try{g=await u(g??y,p)}catch{n.onRemove(p);return}const{uid:E}=p,A={headers:m||{},withCredentials:w,file:p,data:g,method:b,filename:S,action:x,onProgress:O=>{C(O,p)},onSuccess:O=>{T(O,p),delete o.value[E]},onError:O=>{M(O,p),delete o.value[E]}},I=k(A);o.value[E]=I,I instanceof Promise&&I.then(A.onSuccess,A.onError)},f=p=>{const g=p.target.files;g&&s(Array.from(g))},d=()=>{a.value||(i.value.value="",i.value.click())},v=()=>{d()};return t({abort:p=>{WX(o.value).filter(p?([m])=>String(p.uid)===m:()=>!0).forEach(([m,y])=>{y instanceof XMLHttpRequest&&y.abort(),delete o.value[m]})},upload:l}),(p,g)=>(D(),H("div",{class:W([_(r).b(),_(r).m(p.listType),_(r).is("drag",p.drag),_(r).is("disabled",_(a))]),tabindex:_(a)?void 0:0,"aria-disabled":_(a),role:"button",onClick:d,onKeydown:Wn(ut(v,["self"]),["enter","space"])},[p.drag?(D(),de(Yst,{key:0,disabled:_(a),onFile:s},{default:ee(()=>[ue(p.$slots,"default")]),_:3},8,["disabled"])):ue(p.$slots,"default",{key:1}),N("input",{ref_key:"inputRef",ref:i,class:W(_(r).e("input")),name:p.name,disabled:_(a),multiple:p.multiple,accept:p.accept,type:"file",onChange:f,onClick:g[0]||(g[0]=ut(()=>{},["stop"]))},null,42,Zst)],42,Xst))}});var h$=De(Jst,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const p$="ElUpload",g$=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},Qst=(e,t)=>{const n=OX(e,"fileList",void 0,{passive:!0}),r=h=>n.value.find(p=>p.uid===h.uid);function a(h){var p;(p=t.value)==null||p.abort(h)}function o(h=["ready","uploading","success","fail"]){n.value=n.value.filter(p=>!h.includes(p.status))}function i(h){n.value=n.value.filter(p=>p.uid!==h.uid)}const s=h=>{ze(()=>e.onChange(h,n.value))},l=(h,p)=>{const g=r(p);g&&(console.error(h),g.status="fail",i(g),e.onError(h,g,n.value),s(g))},u=(h,p)=>{const g=r(p);g&&(e.onProgress(h,g,n.value),g.status="uploading",g.percentage=Math.round(h.percent))},c=(h,p)=>{const g=r(p);g&&(g.status="success",g.response=h,e.onSuccess(h,g,n.value),s(g))},f=h=>{sr(h.uid)&&(h.uid=jT());const p={name:h.name,percentage:0,status:"ready",size:h.size,raw:h,uid:h.uid};if(e.listType==="picture-card"||e.listType==="picture")try{p.url=URL.createObjectURL(h)}catch(g){g.message,e.onError(g,p,n.value)}n.value=[...n.value,p],s(p)},d=async h=>{const p=h instanceof File?r(h):h;p||cr(p$,"file to be removed not found");const g=m=>{a(m),i(m),e.onRemove(m,n.value),g$(m)};e.beforeRemove?await e.beforeRemove(p,n.value)!==!1&&g(p):g(p)};function v(){n.value.filter(({status:h})=>h==="ready").forEach(({raw:h})=>{var p;return h&&((p=t.value)==null?void 0:p.upload(h))})}return he(()=>e.listType,h=>{h!=="picture-card"&&h!=="picture"||(n.value=n.value.map(p=>{const{raw:g,url:m}=p;if(!m&&g)try{p.url=URL.createObjectURL(g)}catch(y){e.onError(y,p,n.value)}return p}))}),he(n,h=>{for(const p of h)p.uid||(p.uid=jT()),p.status||(p.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:a,clearFiles:o,handleError:l,handleProgress:u,handleStart:f,handleSuccess:c,handleRemove:d,submit:v,revokeFileObjectURL:g$}},elt=q({name:"ElUpload",__name:"upload",props:Ost,setup(e,{expose:t}){const n=e,r=jn(),a=Ln(),{abort:o,submit:i,clearFiles:s,uploadFiles:l,handleStart:u,handleError:c,handleRemove:f,handleSuccess:d,handleProgress:v,revokeFileObjectURL:h}=Qst(n,a),p=R(()=>n.listType==="picture-card"),g=R(()=>({...n,fileList:l.value,onStart:u,onProgress:v,onSuccess:d,onError:c,onRemove:f}));return un(()=>{l.value.forEach(h)}),Ut(Jee,{accept:vn(n,"accept")}),t({abort:o,submit:i,clearFiles:s,handleStart:u,handleRemove:f}),(m,y)=>(D(),H("div",null,[p.value&&m.showFileList?(D(),de(d$,{key:0,disabled:_(r),"list-type":m.listType,files:_(l),crossorigin:m.crossorigin,"handle-preview":m.onPreview,onRemove:_(f)},Ua({append:ee(()=>[Q(h$,It({ref_key:"uploadRef",ref:a},g.value),{default:ee(()=>[m.$slots.trigger?ue(m.$slots,"trigger",{key:0}):le("v-if",!0),!m.$slots.trigger&&m.$slots.default?ue(m.$slots,"default",{key:1}):le("v-if",!0)]),_:3},16)]),_:2},[m.$slots.file?{name:"default",fn:ee(({file:b,index:w})=>[ue(m.$slots,"file",{file:b,index:w})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):le("v-if",!0),!p.value||p.value&&!m.showFileList?(D(),de(h$,It({key:1,ref_key:"uploadRef",ref:a},g.value),{default:ee(()=>[m.$slots.trigger?ue(m.$slots,"trigger",{key:0}):le("v-if",!0),!m.$slots.trigger&&m.$slots.default?ue(m.$slots,"default",{key:1}):le("v-if",!0)]),_:3},16)):le("v-if",!0),m.$slots.trigger?ue(m.$slots,"default",{key:2}):le("v-if",!0),ue(m.$slots,"tip"),!p.value&&m.showFileList?(D(),de(d$,{key:3,disabled:_(r),"list-type":m.listType,files:_(l),crossorigin:m.crossorigin,"handle-preview":m.onPreview,onRemove:_(f)},Ua({_:2},[m.$slots.file?{name:"default",fn:ee(({file:b,index:w})=>[ue(m.$slots,"file",{file:b,index:w})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):le("v-if",!0)]))}});var tlt=De(elt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const nlt=_t(tlt),rlt=Ie({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:ne([String,Array]),default:"Element Plus"},font:{type:ne(Object)},gap:{type:ne(Array),default:()=>[100,100]},offset:{type:ne(Array)}});function alt(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function olt(e){return Object.keys(e).map(t=>`${alt(t)}: ${e[t]};`).join(" ")}function ilt(){return window.devicePixelRatio||1}const slt=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},llt={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function u8(e,t,n=1){const r=document.createElement("canvas"),a=r.getContext("2d"),o=e*n,i=t*n;return r.setAttribute("width",`${o}px`),r.setAttribute("height",`${i}px`),a.save(),[a,r,o,i]}function ult(){function e(t,n,r,a,o,i,s,l,u){const[c,f,d,v]=u8(a,o,r);let h=0;if(t instanceof HTMLImageElement)c.drawImage(t,0,0,d,v);else{const{color:G,fontSize:Y,fontStyle:X,fontWeight:te,fontFamily:oe,textAlign:re,textBaseline:ce}=i,ie=Number(Y)*r;c.font=`${X} normal ${te} ${ie}px/${o}px ${oe}`,c.fillStyle=G,c.textAlign=re,c.textBaseline=ce;const Z=Ce(t)?t:[t];if(ce!=="top"&&Z[0]){const se=c.measureText(Z[0]);c.textBaseline="top";const J=c.measureText(Z[0]);h=se.actualBoundingBoxAscent-J.actualBoundingBoxAscent}Z==null||Z.forEach((se,J)=>{const[ae,fe]=llt[re];c.fillText(se??"",d*ae+u*fe,J*(ie+i.fontGap*r))})}const p=Math.PI/180*Number(n),g=Math.max(a,o),[m,y,b]=u8(g,g,r);m.translate(b/2,b/2),m.rotate(p),d>0&&v>0&&m.drawImage(f,-d/2,-v/2);function w(G,Y){const X=G*Math.cos(p)-Y*Math.sin(p),te=G*Math.sin(p)+Y*Math.cos(p);return[X,te]}let S=0,x=0,C=0,T=0;const M=d/2,k=v/2;[[0-M,0-k],[0+M,0-k],[0+M,0+k],[0-M,0+k]].forEach(([G,Y])=>{const[X,te]=w(G,Y);S=Math.min(S,X),x=Math.max(x,X),C=Math.min(C,te),T=Math.max(T,te)});const A=S+b/2,I=C+b/2,O=x-S,z=T-C,$=s*r,P=l*r,L=(O+$)*2,V=z+P,[B,F]=u8(L,V);function U(G=0,Y=0){B.drawImage(y,A,I,O,z,G,Y+h,O,z)}return U(),U(O+$,-z/2-P/2),U(O+$,+z/2+P/2),[F.toDataURL(),L/r,V/r]}return e}const clt=q({name:"ElWatermark",__name:"watermark",props:rlt,setup(e){const t={position:"relative"},n=e,r=R(()=>{var E,A;return(A=(E=n.font)==null?void 0:E.fontGap)!=null?A:3}),a=R(()=>{var E,A;return(A=(E=n.font)==null?void 0:E.color)!=null?A:"rgba(0,0,0,.15)"}),o=R(()=>{var E,A;return(A=(E=n.font)==null?void 0:E.fontSize)!=null?A:16}),i=R(()=>{var E,A;return(A=(E=n.font)==null?void 0:E.fontWeight)!=null?A:"normal"}),s=R(()=>{var E,A;return(A=(E=n.font)==null?void 0:E.fontStyle)!=null?A:"normal"}),l=R(()=>{var E,A;return(A=(E=n.font)==null?void 0:E.fontFamily)!=null?A:"sans-serif"}),u=R(()=>{var E,A;return(A=(E=n.font)==null?void 0:E.textAlign)!=null?A:"center"}),c=R(()=>{var E,A;return(A=(E=n.font)==null?void 0:E.textBaseline)!=null?A:"hanging"}),f=R(()=>n.gap[0]),d=R(()=>n.gap[1]),v=R(()=>f.value/2),h=R(()=>d.value/2),p=R(()=>{var E,A;return(A=(E=n.offset)==null?void 0:E[0])!=null?A:v.value}),g=R(()=>{var E,A;return(A=(E=n.offset)==null?void 0:E[1])!=null?A:h.value}),m=()=>{const E={zIndex:n.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let A=p.value-v.value,I=g.value-h.value;return A>0&&(E.left=`${A}px`,E.width=`calc(100% - ${A}px)`,A=0),I>0&&(E.top=`${I}px`,E.height=`calc(100% - ${I}px)`,I=0),E.backgroundPosition=`${A}px ${I}px`,E},y=Ln(null),b=Ln(),w=K(!1),S=()=>{b.value&&(b.value.remove(),b.value=void 0)},x=(E,A)=>{var I;y.value&&b.value&&(w.value=!0,b.value.setAttribute("style",olt({...m(),backgroundImage:`url('${E}')`,backgroundSize:`${Math.floor(A)}px`})),(I=y.value)==null||I.append(b.value),setTimeout(()=>{w.value=!1}))},C=E=>{let A=120,I=64,O=0;const{image:z,content:$,width:P,height:L,rotate:V}=n;if(!z&&E.measureText){E.font=`${Number(o.value)}px ${l.value}`;const B=Ce($)?$:[$];let F=0,U=0;B.forEach(Y=>{const{width:X,fontBoundingBoxAscent:te,fontBoundingBoxDescent:oe,actualBoundingBoxAscent:re,actualBoundingBoxDescent:ce}=E.measureText(Y),ie=Jt(te)?re+ce:te+oe;X>F&&(F=Math.ceil(X)),ie>U&&(U=Math.ceil(ie))}),A=F,I=U*B.length+(B.length-1)*r.value;const G=Math.PI/180*Number(V);O=Math.ceil(Math.abs(Math.sin(G)*I)/2),A+=O}return[P??A,L??I,O]},T=ult(),M=()=>{const A=document.createElement("canvas").getContext("2d"),I=n.image,O=n.content,z=n.rotate;if(A){b.value||(b.value=document.createElement("div"));const $=ilt(),[P,L,V]=C(A),B=F=>{const[U,G]=T(F||"",z,$,P,L,{color:a.value,fontSize:o.value,fontStyle:s.value,fontWeight:i.value,fontFamily:l.value,fontGap:r.value,textAlign:u.value,textBaseline:c.value},f.value,d.value,V);x(U,G)};if(I){const F=new Image;F.onload=()=>{B(F)},F.onerror=()=>{B(O)},F.crossOrigin="anonymous",F.referrerPolicy="no-referrer",F.src=I}else B(O)}};return Et(()=>{M()}),he(()=>n,()=>{M()},{deep:!0,flush:"post"}),un(()=>{S()}),e1(y,E=>{w.value||E.forEach(A=>{slt(A,b.value)&&(S(),M())})},{attributes:!0,subtree:!0,childList:!0}),(E,A)=>(D(),H("div",{ref_key:"containerRef",ref:y,style:et([t])},[ue(E.$slots,"default")],4))}});var flt=De(clt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/watermark/src/watermark.vue"]]);const dlt=_t(flt),vlt=Ie({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:ne(Object)},targetAreaClickable:{type:Boolean,default:!0}}),zh=Math.min,Xf=Math.max,J_=Math.round,f2=Math.floor,Ns=e=>({x:e,y:e}),hlt={left:"right",right:"left",bottom:"top",top:"bottom"},plt={start:"end",end:"start"};function YT(e,t,n){return Xf(e,zh(t,n))}function y1(e,t){return typeof e=="function"?e(t):e}function dd(e){return e.split("-")[0]}function b1(e){return e.split("-")[1]}function tte(e){return e==="x"?"y":"x"}function NE(e){return e==="y"?"height":"width"}const glt=new Set(["top","bottom"]);function Uu(e){return glt.has(dd(e))?"y":"x"}function BE(e){return tte(Uu(e))}function mlt(e,t,n){n===void 0&&(n=!1);const r=b1(e),a=BE(e),o=NE(a);let i=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Q_(i)),[i,Q_(i)]}function ylt(e){const t=Q_(e);return[qT(e),t,qT(t)]}function qT(e){return e.replace(/start|end/g,t=>plt[t])}const m$=["left","right"],y$=["right","left"],blt=["top","bottom"],_lt=["bottom","top"];function wlt(e,t,n){switch(e){case"top":case"bottom":return n?t?y$:m$:t?m$:y$;case"left":case"right":return t?blt:_lt;default:return[]}}function Slt(e,t,n,r){const a=b1(e);let o=wlt(dd(e),n==="start",r);return a&&(o=o.map(i=>i+"-"+a),t&&(o=o.concat(o.map(qT)))),o}function Q_(e){return e.replace(/left|right|bottom|top/g,t=>hlt[t])}function xlt(e){return{top:0,right:0,bottom:0,left:0,...e}}function nte(e){return typeof e!="number"?xlt(e):{top:e,right:e,bottom:e,left:e}}function ew(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function b$(e,t,n){let{reference:r,floating:a}=e;const o=Uu(t),i=BE(t),s=NE(i),l=dd(t),u=o==="y",c=r.x+r.width/2-a.width/2,f=r.y+r.height/2-a.height/2,d=r[s]/2-a[s]/2;let v;switch(l){case"top":v={x:c,y:r.y-a.height};break;case"bottom":v={x:c,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:f};break;case"left":v={x:r.x-a.width,y:f};break;default:v={x:r.x,y:r.y}}switch(b1(t)){case"start":v[i]-=d*(n&&u?-1:1);break;case"end":v[i]+=d*(n&&u?-1:1);break}return v}const Clt=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,s=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:f}=b$(u,r,l),d=r,v={},h=0;for(let p=0;p<s.length;p++){const{name:g,fn:m}=s[p],{x:y,y:b,data:w,reset:S}=await m({x:c,y:f,initialPlacement:r,placement:d,strategy:a,middlewareData:v,rects:u,platform:i,elements:{reference:e,floating:t}});c=y??c,f=b??f,v={...v,[g]:{...v[g],...w}},S&&h<=50&&(h++,typeof S=="object"&&(S.placement&&(d=S.placement),S.rects&&(u=S.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:a}):S.rects),{x:c,y:f}=b$(u,d,l)),p=-1)}return{x:c,y:f,placement:d,strategy:a,middlewareData:v}};async function VE(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:o,rects:i,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:v=0}=y1(t,e),h=nte(v),g=s[d?f==="floating"?"reference":"floating":f],m=ew(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(g)))==null||n?g:g.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y=f==="floating"?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),w=await(o.isElement==null?void 0:o.isElement(b))?await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1}:{x:1,y:1},S=ew(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(m.top-S.top+h.top)/w.y,bottom:(S.bottom-m.bottom+h.bottom)/w.y,left:(m.left-S.left+h.left)/w.x,right:(S.right-m.right+h.right)/w.x}}const Tlt=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:i,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=y1(e,t)||{};if(u==null)return{};const f=nte(c),d={x:n,y:r},v=BE(a),h=NE(v),p=await i.getDimensions(u),g=v==="y",m=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=o.reference[h]+o.reference[v]-d[v]-o.floating[h],S=d[v]-o.reference[v],x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let C=x?x[b]:0;(!C||!await(i.isElement==null?void 0:i.isElement(x)))&&(C=s.floating[b]||o.floating[h]);const T=w/2-S/2,M=C/2-p[h]/2-1,k=zh(f[m],M),E=zh(f[y],M),A=k,I=C-p[h]-E,O=C/2-p[h]/2+T,z=YT(A,O,I),$=!l.arrow&&b1(a)!=null&&O!==z&&o.reference[h]/2-(O<A?k:E)-p[h]/2<0,P=$?O<A?O-A:O-I:0;return{[v]:d[v]+P,data:{[v]:z,centerOffset:O-z-P,...$&&{alignmentOffset:P}},reset:$}}}),klt=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:i,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:p=!0,...g}=y1(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const m=dd(a),y=Uu(s),b=dd(s)===s,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=d||(b||!p?[Q_(s)]:ylt(s)),x=h!=="none";!d&&x&&S.push(...Slt(s,p,h,w));const C=[s,...S],T=await VE(t,g),M=[];let k=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&M.push(T[m]),f){const O=mlt(a,i,w);M.push(T[O[0]],T[O[1]])}if(k=[...k,{placement:a,overflows:M}],!M.every(O=>O<=0)){var E,A;const O=(((E=o.flip)==null?void 0:E.index)||0)+1,z=C[O];if(z&&(!(f==="alignment"?y!==Uu(z):!1)||k.every(L=>Uu(L.placement)===y?L.overflows[0]>0:!0)))return{data:{index:O,overflows:k},reset:{placement:z}};let $=(A=k.filter(P=>P.overflows[0]<=0).sort((P,L)=>P.overflows[1]-L.overflows[1])[0])==null?void 0:A.placement;if(!$)switch(v){case"bestFit":{var I;const P=(I=k.filter(L=>{if(x){const V=Uu(L.placement);return V===y||V==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(V=>V>0).reduce((V,B)=>V+B,0)]).sort((L,V)=>L[1]-V[1])[0])==null?void 0:I[0];P&&($=P);break}case"initialPlacement":$=s;break}if(a!==$)return{reset:{placement:$}}}return{}}}},Mlt=new Set(["left","top"]);async function Alt(e,t){const{placement:n,platform:r,elements:a}=e,o=await(r.isRTL==null?void 0:r.isRTL(a.floating)),i=dd(n),s=b1(n),l=Uu(n)==="y",u=Mlt.has(i)?-1:1,c=o&&l?-1:1,f=y1(t,e);let{mainAxis:d,crossAxis:v,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof h=="number"&&(v=s==="end"?h*-1:h),l?{x:v*c,y:d*u}:{x:d*u,y:v*c}}const Elt=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:i,middlewareData:s}=t,l=await Alt(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:i}}}}},Ilt=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:g=>{let{x:m,y}=g;return{x:m,y}}},...l}=y1(e,t),u={x:n,y:r},c=await VE(t,l),f=Uu(dd(a)),d=tte(f);let v=u[d],h=u[f];if(o){const g=d==="y"?"top":"left",m=d==="y"?"bottom":"right",y=v+c[g],b=v-c[m];v=YT(y,v,b)}if(i){const g=f==="y"?"top":"left",m=f==="y"?"bottom":"right",y=h+c[g],b=h-c[m];h=YT(y,h,b)}const p=s.fn({...t,[d]:v,[f]:h});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[d]:o,[f]:i}}}}}};function R4(){return typeof window<"u"}function bp(e){return rte(e)?(e.nodeName||"").toLowerCase():"#document"}function Eo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ol(e){var t;return(t=(rte(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function rte(e){return R4()?e instanceof Node||e instanceof Eo(e).Node:!1}function $i(e){return R4()?e instanceof Element||e instanceof Eo(e).Element:!1}function Qs(e){return R4()?e instanceof HTMLElement||e instanceof Eo(e).HTMLElement:!1}function _$(e){return!R4()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Eo(e).ShadowRoot}const Llt=new Set(["inline","contents"]);function _1(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=zi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Llt.has(a)}const Dlt=new Set(["table","td","th"]);function Plt(e){return Dlt.has(bp(e))}const Rlt=[":popover-open",":modal"];function O4(e){return Rlt.some(t=>{try{return e.matches(t)}catch{return!1}})}const Olt=["transform","translate","scale","rotate","perspective"],Nlt=["transform","translate","scale","rotate","perspective","filter"],Blt=["paint","layout","strict","content"];function $E(e){const t=zE(),n=$i(e)?zi(e):e;return Olt.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Nlt.some(r=>(n.willChange||"").includes(r))||Blt.some(r=>(n.contain||"").includes(r))}function Vlt(e){let t=gc(e);for(;Qs(t)&&!Fh(t);){if($E(t))return t;if(O4(t))return null;t=gc(t)}return null}function zE(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const $lt=new Set(["html","body","#document"]);function Fh(e){return $lt.has(bp(e))}function zi(e){return Eo(e).getComputedStyle(e)}function N4(e){return $i(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gc(e){if(bp(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_$(e)&&e.host||ol(e);return _$(t)?t.host:t}function ate(e){const t=gc(e);return Fh(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qs(t)&&_1(t)?t:ate(t)}function vm(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=ate(e),o=a===((r=e.ownerDocument)==null?void 0:r.body),i=Eo(a);if(o){const s=XT(i);return t.concat(i,i.visualViewport||[],_1(a)?a:[],s&&n?vm(s):[])}return t.concat(a,vm(a,[],n))}function XT(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ote(e){const t=zi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Qs(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=J_(n)!==o||J_(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function FE(e){return $i(e)?e:e.contextElement}function rh(e){const t=FE(e);if(!Qs(t))return Ns(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=ote(t);let i=(o?J_(n.width):n.width)/r,s=(o?J_(n.height):n.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const zlt=Ns(0);function ite(e){const t=Eo(e);return!zE()||!t.visualViewport?zlt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Flt(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Eo(e)?!1:t}function vd(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=FE(e);let i=Ns(1);t&&(r?$i(r)&&(i=rh(r)):i=rh(e));const s=Flt(o,n,r)?ite(o):Ns(0);let l=(a.left+s.x)/i.x,u=(a.top+s.y)/i.y,c=a.width/i.x,f=a.height/i.y;if(o){const d=Eo(o),v=r&&$i(r)?Eo(r):r;let h=d,p=XT(h);for(;p&&r&&v!==h;){const g=rh(p),m=p.getBoundingClientRect(),y=zi(p),b=m.left+(p.clientLeft+parseFloat(y.paddingLeft))*g.x,w=m.top+(p.clientTop+parseFloat(y.paddingTop))*g.y;l*=g.x,u*=g.y,c*=g.x,f*=g.y,l+=b,u+=w,h=Eo(p),p=XT(h)}}return ew({width:c,height:f,x:l,y:u})}function B4(e,t){const n=N4(e).scrollLeft;return t?t.left+n:vd(ol(e)).left+n}function ste(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-B4(e,n),a=n.top+t.scrollTop;return{x:r,y:a}}function Hlt(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o=a==="fixed",i=ol(r),s=t?O4(t.floating):!1;if(r===i||s&&o)return n;let l={scrollLeft:0,scrollTop:0},u=Ns(1);const c=Ns(0),f=Qs(r);if((f||!f&&!o)&&((bp(r)!=="body"||_1(i))&&(l=N4(r)),Qs(r))){const v=vd(r);u=rh(r),c.x=v.x+r.clientLeft,c.y=v.y+r.clientTop}const d=i&&!f&&!o?ste(i,l):Ns(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-l.scrollTop*u.y+c.y+d.y}}function Wlt(e){return Array.from(e.getClientRects())}function Glt(e){const t=ol(e),n=N4(e),r=e.ownerDocument.body,a=Xf(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Xf(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+B4(e);const s=-n.scrollTop;return zi(r).direction==="rtl"&&(i+=Xf(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:s}}const w$=25;function Ult(e,t){const n=Eo(e),r=ol(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;const c=zE();(!c||c&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}const u=B4(r);if(u<=0){const c=r.ownerDocument,f=c.body,d=getComputedStyle(f),v=c.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,h=Math.abs(r.clientWidth-f.clientWidth-v);h<=w$&&(o-=h)}else u<=w$&&(o+=u);return{width:o,height:i,x:s,y:l}}const Klt=new Set(["absolute","fixed"]);function jlt(e,t){const n=vd(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=Qs(e)?rh(e):Ns(1),i=e.clientWidth*o.x,s=e.clientHeight*o.y,l=a*o.x,u=r*o.y;return{width:i,height:s,x:l,y:u}}function S$(e,t,n){let r;if(t==="viewport")r=Ult(e,n);else if(t==="document")r=Glt(ol(e));else if($i(t))r=jlt(t,n);else{const a=ite(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return ew(r)}function lte(e,t){const n=gc(e);return n===t||!$i(n)||Fh(n)?!1:zi(n).position==="fixed"||lte(n,t)}function Ylt(e,t){const n=t.get(e);if(n)return n;let r=vm(e,[],!1).filter(s=>$i(s)&&bp(s)!=="body"),a=null;const o=zi(e).position==="fixed";let i=o?gc(e):e;for(;$i(i)&&!Fh(i);){const s=zi(i),l=$E(i);!l&&s.position==="fixed"&&(a=null),(o?!l&&!a:!l&&s.position==="static"&&!!a&&Klt.has(a.position)||_1(i)&&!l&<e(e,i))?r=r.filter(c=>c!==i):a=s,i=gc(i)}return t.set(e,r),r}function qlt(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const i=[...n==="clippingAncestors"?O4(t)?[]:Ylt(t,this._c):[].concat(n),r],s=i[0],l=i.reduce((u,c)=>{const f=S$(t,c,a);return u.top=Xf(f.top,u.top),u.right=zh(f.right,u.right),u.bottom=zh(f.bottom,u.bottom),u.left=Xf(f.left,u.left),u},S$(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Xlt(e){const{width:t,height:n}=ote(e);return{width:t,height:n}}function Zlt(e,t,n){const r=Qs(t),a=ol(t),o=n==="fixed",i=vd(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=Ns(0);function u(){l.x=B4(a)}if(r||!r&&!o)if((bp(t)!=="body"||_1(a))&&(s=N4(t)),r){const v=vd(t,!0,o,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}else a&&u();o&&!r&&a&&u();const c=a&&!r&&!o?ste(a,s):Ns(0),f=i.left+s.scrollLeft-l.x-c.x,d=i.top+s.scrollTop-l.y-c.y;return{x:f,y:d,width:i.width,height:i.height}}function c8(e){return zi(e).position==="static"}function x$(e,t){if(!Qs(e)||zi(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ol(e)===n&&(n=n.ownerDocument.body),n}function ute(e,t){const n=Eo(e);if(O4(e))return n;if(!Qs(e)){let a=gc(e);for(;a&&!Fh(a);){if($i(a)&&!c8(a))return a;a=gc(a)}return n}let r=x$(e,t);for(;r&&Plt(r)&&c8(r);)r=x$(r,t);return r&&Fh(r)&&c8(r)&&!$E(r)?n:r||Vlt(e)||n}const Jlt=async function(e){const t=this.getOffsetParent||ute,n=this.getDimensions,r=await n(e.floating);return{reference:Zlt(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Qlt(e){return zi(e).direction==="rtl"}const eut={convertOffsetParentRelativeRectToViewportRelativeRect:Hlt,getDocumentElement:ol,getClippingRect:qlt,getOffsetParent:ute,getElementRects:Jlt,getClientRects:Wlt,getDimensions:Xlt,getScale:rh,isElement:$i,isRTL:Qlt};function cte(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tut(e,t){let n=null,r;const a=ol(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:v}=u;if(s||t(),!d||!v)return;const h=f2(f),p=f2(a.clientWidth-(c+d)),g=f2(a.clientHeight-(f+v)),m=f2(c),b={rootMargin:-h+"px "+-p+"px "+-g+"px "+-m+"px",threshold:Xf(0,zh(1,l))||1};let w=!0;function S(x){const C=x[0].intersectionRatio;if(C!==l){if(!w)return i();C?i(!1,C):r=setTimeout(()=>{i(!1,1e-7)},1e3)}C===1&&!cte(u,e.getBoundingClientRect())&&i(),w=!1}try{n=new IntersectionObserver(S,{...b,root:a.ownerDocument})}catch{n=new IntersectionObserver(S,b)}n.observe(e)}return i(!0),o}function nut(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=FE(e),c=a||o?[...u?vm(u):[],...vm(t)]:[];c.forEach(m=>{a&&m.addEventListener("scroll",n,{passive:!0}),o&&m.addEventListener("resize",n)});const f=u&&s?tut(u,n):null;let d=-1,v=null;i&&(v=new ResizeObserver(m=>{let[y]=m;y&&y.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var b;(b=v)==null||b.observe(t)})),n()}),u&&!l&&v.observe(u),v.observe(t));let h,p=l?vd(e):null;l&&g();function g(){const m=vd(e);p&&!cte(p,m)&&n(),p=m,h=requestAnimationFrame(g)}return n(),()=>{var m;c.forEach(y=>{a&&y.removeEventListener("scroll",n),o&&y.removeEventListener("resize",n)}),f==null||f(),(m=v)==null||m.disconnect(),v=null,l&&cancelAnimationFrame(h)}}const rut=VE,aut=Elt,out=Ilt,iut=klt,sut=Tlt,lut=(e,t,n)=>{const r=new Map,a={platform:eut,...n},o={...a.platform,_c:r};return Clt(e,t,{...a,platform:o})},uut=(e,t,n,r,a)=>{const o=K(null),i=()=>{let f;return Ge(e.value)?f=document.querySelector(e.value):Je(e.value)?f=e.value():f=e.value,f},s=()=>{const f=i();if(!f||!t.value){o.value=null;return}cut(f)||f.scrollIntoView(a.value);const{left:d,top:v,width:h,height:p}=f.getBoundingClientRect();o.value={left:d,top:v,width:h,height:p,radius:0}};Et(()=>{he([t,e],()=>{s()},{immediate:!0}),window.addEventListener("resize",s)}),un(()=>{window.removeEventListener("resize",s)});const l=f=>{var d;return(d=Ce(n.value.offset)?n.value.offset[f]:n.value.offset)!=null?d:6},u=R(()=>{var f;if(!o.value)return o.value;const d=l(0),v=l(1),h=((f=n.value)==null?void 0:f.radius)||2;return{left:o.value.left-d,top:o.value.top-v,width:o.value.width+d*2,height:o.value.height+v*2,radius:h}}),c=R(()=>{const f=i();return!r.value||!f||!window.DOMRect?f||void 0:{getBoundingClientRect(){var d,v,h,p;return window.DOMRect.fromRect({width:((d=u.value)==null?void 0:d.width)||0,height:((v=u.value)==null?void 0:v.height)||0,x:((h=u.value)==null?void 0:h.left)||0,y:((p=u.value)==null?void 0:p.top)||0})}}});return{mergedPosInfo:u,triggerTarget:c}},V4=Symbol("ElTour");function cut(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:r,right:a,bottom:o,left:i}=e.getBoundingClientRect();return r>=0&&i>=0&&a<=t&&o<=n}const fut=(e,t,n,r,a,o,i,s)=>{const l=K(),u=K(),c=K({}),f={x:l,y:u,placement:r,strategy:a,middlewareData:c},d=R(()=>{const m=[aut(_(o)),iut(),out(),dut()];return _(s)&&_(n)&&m.push(sut({element:_(n)})),m}),v=async()=>{if(!on)return;const m=_(e),y=_(t);if(!m||!y)return;const b=await lut(m,y,{placement:_(r),strategy:_(a),middleware:_(d)});Jg(f).forEach(w=>{f[w].value=b[w]})},h=R(()=>{if(!_(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:_(i)};const{overflow:m}=_(c);return{position:_(a),zIndex:_(i),top:_(u)!=null?`${_(u)}px`:"",left:_(l)!=null?`${_(l)}px`:"",maxWidth:m!=null&&m.maxWidth?`${m==null?void 0:m.maxWidth}px`:""}}),p=R(()=>{if(!_(s))return{};const{arrow:m}=_(c);return{left:(m==null?void 0:m.x)!=null?`${m==null?void 0:m.x}px`:"",top:(m==null?void 0:m.y)!=null?`${m==null?void 0:m.y}px`:""}});let g;return Et(()=>{const m=_(e),y=_(t);m&&y&&(g=nut(m,y,v)),Ga(()=>{v()})}),un(()=>{g&&g()}),{update:v,contentStyle:h,arrowStyle:p}},dut=()=>({name:"overflow",async fn(e){const t=await rut(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),vut={style:{width:"100%",height:"100%"}},hut=["d"],put=q({name:"ElTourMask",inheritAttrs:!1,__name:"mask",props:vlt,setup(e){const t=e,{ns:n}=Ue(V4),r=R(()=>{var c,f;return(f=(c=t.pos)==null?void 0:c.radius)!=null?f:2}),a=R(()=>{const c=r.value,f=`a${c},${c} 0 0 1`;return{topRight:`${f} ${c},${c}`,bottomRight:`${f} ${-c},${c}`,bottomLeft:`${f} ${-c},${-c}`,topLeft:`${f} ${c},${-c}`}}),{width:o,height:i}=bA(),s=R(()=>{const c=o.value,f=i.value,d=a.value,v=`M${c},0 L0,0 L0,${f} L${c},${f} L${c},0 Z`,h=r.value;return t.pos?`${v} M${t.pos.left+h},${t.pos.top} h${t.pos.width-h*2} ${d.topRight} v${t.pos.height-h*2} ${d.bottomRight} h${-t.pos.width+h*2} ${d.bottomLeft} v${-t.pos.height+h*2} ${d.topLeft} z`:v}),l=R(()=>({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:t.zIndex,pointerEvents:t.pos&&t.targetAreaClickable?"none":"auto"})),u=R(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return E4(vn(t,"visible"),{ns:n}),(c,f)=>c.visible?(D(),H("div",It({key:0,class:_(n).e("mask"),style:l.value},c.$attrs),[(D(),H("svg",vut,[N("path",{class:W(_(n).e("hollow")),style:et(u.value),d:s.value},null,14,hut)]))],16)):le("v-if",!0)}});var gut=De(put,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/mask.vue"]]);const mut=["absolute","fixed"],yut=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],HE=Ie({placement:{type:ne(String),values:yut,default:"bottom"},reference:{type:ne(Object),default:null},strategy:{type:ne(String),values:mut,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),but={close:()=>!0},_ut=["data-side"],wut=q({name:"ElTourContent",__name:"content",props:HE,emits:but,setup(e,{emit:t}){const n=e,r=t,a=K(n.placement),o=K(n.strategy),i=K(null),s=K(null);he(()=>n.placement,()=>{a.value=n.placement});const{contentStyle:l,arrowStyle:u}=fut(vn(n,"reference"),i,s,a,o,vn(n,"offset"),vn(n,"zIndex"),vn(n,"showArrow")),c=R(()=>a.value.split("-")[0]),{ns:f}=Ue(V4),d=()=>{r("close")},v=h=>{h.detail.focusReason==="pointer"&&h.preventDefault()};return(h,p)=>(D(),H("div",{ref_key:"contentRef",ref:i,style:et(_(l)),class:W(_(f).e("content")),"data-side":c.value,tabindex:"-1"},[Q(_(mp),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":i.value||void 0,onReleaseRequested:d,onFocusoutPrevented:v},{default:ee(()=>[ue(h.$slots,"default")]),_:3},8,["focus-trap-el"]),h.showArrow?(D(),H("span",{key:0,ref_key:"arrowRef",ref:s,style:et(_(u)),class:W(_(f).e("arrow"))},null,6)):le("v-if",!0)],14,_ut))}});var Sut=De(wut,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/content.vue"]]),xut=q({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let r=0;return()=>{var a,o;const i=(a=t.default)==null?void 0:a.call(t),s=[];let l=0;function u(c){Ce(c)&&c.forEach(f=>{var d;((d=(f==null?void 0:f.type)||{})==null?void 0:d.name)==="ElTourStep"&&(s.push(f),l+=1)})}return i.length&&u(_i((o=i[0])==null?void 0:o.children)),r!==l&&(r=l,n("update-total",l)),s.length?s[e.current]:null}}});const Cut=Ie({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:pn},placement:HE.placement,contentStyle:{type:ne([Object])},mask:{type:ne([Boolean,Object]),default:!0},gap:{type:ne(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:ne([Boolean,Object]),default:()=>({block:"center"})},type:{type:ne(String)},appendTo:{type:r1.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),Tut={[dt]:e=>hn(e),"update:current":e=>rt(e),close:e=>rt(e),finish:()=>!0,change:e=>rt(e)},kut=q({name:"ElTour",__name:"tour",props:Cut,emits:Tut,setup(e,{emit:t}){const n=e,r=t,a=we("tour"),o=K(0),i=K(),s=OX(n,"current",r,{passive:!0}),l=R(()=>{var k;return(k=i.value)==null?void 0:k.target}),u=R(()=>[a.b(),m.value==="primary"?a.m("primary"):""]),c=R(()=>{var k;return((k=i.value)==null?void 0:k.placement)||n.placement}),f=R(()=>{var k,E;return(E=(k=i.value)==null?void 0:k.contentStyle)!=null?E:n.contentStyle}),d=R(()=>{var k,E;return(E=(k=i.value)==null?void 0:k.mask)!=null?E:n.mask}),v=R(()=>!!d.value&&n.modelValue),h=R(()=>hn(d.value)?void 0:d.value),p=R(()=>{var k,E;return!!l.value&&((E=(k=i.value)==null?void 0:k.showArrow)!=null?E:n.showArrow)}),g=R(()=>{var k,E;return(E=(k=i.value)==null?void 0:k.scrollIntoViewOptions)!=null?E:n.scrollIntoViewOptions}),m=R(()=>{var k,E;return(E=(k=i.value)==null?void 0:k.type)!=null?E:n.type}),{nextZIndex:y}=t1(),b=y(),w=R(()=>{var k;return(k=n.zIndex)!=null?k:b}),{mergedPosInfo:S,triggerTarget:x}=uut(l,vn(n,"modelValue"),vn(n,"gap"),d,g);he(()=>n.modelValue,k=>{k||(s.value=0)});const C=()=>{n.closeOnPressEscape&&(r(dt,!1),r("close",s.value))},T=k=>{o.value=k},M=fr();return Ut(V4,{currentStep:i,current:s,total:o,showClose:vn(n,"showClose"),closeIcon:vn(n,"closeIcon"),mergedType:m,ns:a,slots:M,updateModelValue(k){r(dt,k)},onClose(){r("close",s.value)},onFinish(){r("finish")},onChange(){r(Ht,s.value)}}),(k,E)=>(D(),H(qe,null,[Q(_(pp),{to:k.appendTo},{default:ee(()=>{var A,I;return[N("div",It({class:u.value},k.$attrs),[Q(gut,{visible:v.value,fill:(A=h.value)==null?void 0:A.color,style:et((I=h.value)==null?void 0:I.style),pos:_(S),"z-index":w.value,"target-area-clickable":k.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),k.modelValue?(D(),de(Sut,{key:_(s),reference:_(x),placement:c.value,"show-arrow":p.value,"z-index":w.value,style:et(f.value),onClose:C},{default:ee(()=>[Q(_(xut),{current:_(s),onUpdateTotal:T},{default:ee(()=>[ue(k.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):le("v-if",!0)],16)]}),_:3},8,["to"]),le(" just for IDE "),le("v-if",!0)],64))}});var Mut=De(kut,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/tour.vue"]]);const Aut=Ie({target:{type:ne([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:pn},showArrow:{type:Boolean,default:void 0},placement:HE.placement,mask:{type:ne([Boolean,Object]),default:void 0},contentStyle:{type:ne([Object])},prevButtonProps:{type:ne(Object)},nextButtonProps:{type:ne(Object)},scrollIntoViewOptions:{type:ne([Boolean,Object]),default:void 0},type:{type:ne(String)}}),Eut={close:()=>!0},Iut=["aria-label"],Lut=q({name:"ElTourStep",__name:"step",props:Aut,emits:Eut,setup(e,{emit:t}){const n=e,r=t,{Close:a}=gZ,{t:o}=Kt(),{currentStep:i,current:s,total:l,showClose:u,closeIcon:c,mergedType:f,ns:d,slots:v,updateModelValue:h,onClose:p,onFinish:g,onChange:m}=Ue(V4);he(n,k=>{i.value=k},{immediate:!0});const y=R(()=>{var k;return(k=n.showClose)!=null?k:u.value}),b=R(()=>{var k,E;return(E=(k=n.closeIcon)!=null?k:c.value)!=null?E:a}),w=k=>{if(k)return Zm(k,["children","onClick"])},S=()=>{var k,E;s.value-=1,(k=n.prevButtonProps)!=null&&k.onClick&&((E=n.prevButtonProps)==null||E.onClick()),m()},x=()=>{var k;s.value>=l.value-1?C():s.value+=1,(k=n.nextButtonProps)!=null&&k.onClick&&n.nextButtonProps.onClick(),m()},C=()=>{T(),g()},T=()=>{h(!1),p(),r("close")},M=k=>{const E=k.target;if(E!=null&&E.isContentEditable)return;switch(xn(k)){case ke.left:k.preventDefault(),s.value>0&&S();break;case ke.right:k.preventDefault(),x();break}};return Et(()=>{window.addEventListener("keydown",M)}),un(()=>{window.removeEventListener("keydown",M)}),(k,E)=>(D(),H(qe,null,[y.value?(D(),H("button",{key:0,"aria-label":_(o)("el.tour.close"),class:W(_(d).e("closebtn")),type:"button",onClick:T},[Q(_(Xe),{class:W(_(d).e("close"))},{default:ee(()=>[(D(),de(Tt(b.value)))]),_:1},8,["class"])],10,Iut)):le("v-if",!0),N("header",{class:W([_(d).e("header"),{"show-close":_(u)}])},[ue(k.$slots,"header",{},()=>[N("span",{role:"heading",class:W(_(d).e("title"))},Ae(k.title),3)])],2),N("div",{class:W(_(d).e("body"))},[ue(k.$slots,"default",{},()=>[N("span",null,Ae(k.description),1)])],2),N("footer",{class:W(_(d).e("footer"))},[N("div",{class:W(_(d).b("indicators"))},[_(v).indicators?(D(),de(Tt(_(v).indicators),{key:0,current:_(s),total:_(l)},null,8,["current","total"])):(D(!0),H(qe,{key:1},Wt(_(l),(A,I)=>(D(),H("span",{key:A,class:W([_(d).b("indicator"),_(d).is("active",I===_(s))])},null,2))),128))],2),N("div",{class:W(_(d).b("buttons"))},[_(s)>0?(D(),de(_(Gr),It({key:0,size:"small",type:_(f)},w(k.prevButtonProps),{onClick:S}),{default:ee(()=>{var A,I;return[gt(Ae((I=(A=k.prevButtonProps)==null?void 0:A.children)!=null?I:_(o)("el.tour.previous")),1)]}),_:1},16,["type"])):le("v-if",!0),_(s)<=_(l)-1?(D(),de(_(Gr),It({key:1,size:"small",type:_(f)==="primary"?"default":"primary"},w(k.nextButtonProps),{onClick:x}),{default:ee(()=>{var A,I;return[gt(Ae((I=(A=k.nextButtonProps)==null?void 0:A.children)!=null?I:_(s)===_(l)-1?_(o)("el.tour.finish"):_(o)("el.tour.next")),1)]}),_:1},16,["type"])):le("v-if",!0)],2)],2)],64))}});var fte=De(Lut,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/step.vue"]]);const Dut=_t(Mut,{TourStep:fte}),Put=Kn(fte),Rut=Ie({container:{type:ne([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:ne(String),default:"default"},direction:{type:ne(String),default:"vertical"},selectScrollTop:Boolean}),Out={change:e=>Ge(e),click:(e,t)=>e instanceof MouseEvent&&(Ge(t)||Jt(t))},dte=Symbol("anchor"),d2=e=>{if(!on||e==="")return null;if(Ge(e))try{return document.querySelector(e)}catch{return null}return e};function Nut(e){let t=0;const n=(...r)=>{t&&jl(t),t=qs(()=>{e(...r),t=0})};return n.cancel=()=>{jl(t),t=0},n}const But=q({name:"ElAnchor",__name:"anchor",props:Rut,emits:Out,setup(e,{expose:t,emit:n}){const r=e,a=n,o=fr(),i=K(""),s=K({}),l=K(null),u=K(null),c=K(),f={};let d=!1,v=0;const h=we("anchor"),p=R(()=>[h.b(),r.type==="underline"?h.m("underline"):"",h.m(r.direction)]),g=A=>{f[A.href]=A.el},m=A=>{delete f[A]},y=A=>{i.value!==A&&(i.value=A,a(Ht,A))};let b=null,w="";const S=A=>{if(!c.value)return;const I=d2(A);if(!I)return;if(b){if(w===A)return;b()}w=A,d=!0;const O=wB(I,c.value),z=dT(I,O),$=O.scrollHeight-O.clientHeight,P=Math.min(z-r.offset,$);b=lDe(c.value,v,P,r.duration,()=>{setTimeout(()=>{d=!1,w=""},20)})},x=A=>{A&&(y(A),S(A))},C=(A,I)=>{a("click",A,I),x(I)},T=Nut(()=>{c.value&&(v=SB(c.value));const A=M();d||Jt(A)||y(A)}),M=()=>{if(!c.value)return;const A=SB(c.value),I=[];for(const O of Object.keys(f)){const z=d2(O);if(!z)continue;const $=wB(z,c.value),P=dT(z,$);I.push({top:P-r.offset-r.bound,href:O})}I.sort((O,z)=>O.top-z.top);for(let O=0;O<I.length;O++){const z=I[O],$=I[O+1];if(O===0&&A===0)return r.selectScrollTop?z.href:"";if(z.top<=A&&(!$||$.top>A))return z.href}},k=()=>{const A=d2(r.container);!A||Jm(A)?c.value=window:c.value=A};fn(c,"scroll",T);const E=()=>{ze(()=>{if(!l.value||!u.value||!i.value){s.value={};return}const A=f[i.value];if(!A){s.value={};return}const I=l.value.getBoundingClientRect(),O=u.value.getBoundingClientRect(),z=A.getBoundingClientRect();if(r.direction==="horizontal"){const $=z.left-I.left;s.value={left:`${$}px`,width:`${z.width}px`,opacity:1}}else{const $=z.top-I.top+(z.height-O.height)/2;s.value={top:`${$}px`,opacity:1}}})};return he(i,E),he(()=>{var A;return(A=o.default)==null?void 0:A.call(o)},E),Et(()=>{k();const A=decodeURIComponent(window.location.hash);d2(A)?x(A):T()}),he(()=>r.container,()=>{k()}),Ut(dte,{ns:h,direction:r.direction,currentAnchor:i,addLink:g,removeLink:m,handleClick:C}),t({scrollTo:x}),(A,I)=>(D(),H("div",{ref_key:"anchorRef",ref:l,class:W(p.value)},[A.marker?(D(),H("div",{key:0,ref_key:"markerRef",ref:u,class:W(_(h).e("marker")),style:et(s.value)},null,6)):le("v-if",!0),N("div",{class:W(_(h).e("list"))},[ue(A.$slots,"default")],2)],2))}});var Vut=De(But,[["__file","/home/runner/work/element-plus/element-plus/packages/components/anchor/src/anchor.vue"]]);const $ut=Ie({title:String,href:String}),zut=["href"],Fut=q({name:"ElAnchorLink",__name:"anchor-link",props:$ut,setup(e){const t=e,n=K(null),{ns:r,direction:a,currentAnchor:o,addLink:i,removeLink:s,handleClick:l}=Ue(dte),u=R(()=>[r.e("link"),r.is("active",o.value===t.href)]),c=f=>{l(f,t.href)};return he(()=>t.href,(f,d)=>{ze(()=>{d&&s(d),f&&i({href:f,el:n.value})})}),Et(()=>{const{href:f}=t;f&&i({href:f,el:n.value})}),un(()=>{const{href:f}=t;f&&s(f)}),(f,d)=>(D(),H("div",{class:W(_(r).e("item"))},[N("a",{ref_key:"linkRef",ref:n,class:W(u.value),href:f.href,onClick:c},[ue(f.$slots,"default",{},()=>[gt(Ae(f.title),1)])],10,zut),f.$slots["sub-link"]&&_(a)==="vertical"?(D(),H("div",{key:0,class:W(_(r).e("list"))},[ue(f.$slots,"sub-link")],2)):le("v-if",!0)],2))}});var vte=De(Fut,[["__file","/home/runner/work/element-plus/element-plus/packages/components/anchor/src/anchor-link.vue"]]);const Hut=_t(Vut,{AnchorLink:vte}),Wut=Kn(vte),hte={label:"label",value:"value",disabled:"disabled"},Gut=Ie({direction:{type:ne(String),default:"horizontal"},options:{type:ne(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:ne(Object),default:()=>hte},block:Boolean,size:wr,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},id:String,name:String,...Da(["ariaLabel"])}),Uut={[dt]:e=>Ge(e)||rt(e)||hn(e),[Ht]:e=>Ge(e)||rt(e)||hn(e)},Kut=["id","aria-label","aria-labelledby"],jut=["name","disabled","checked","onChange"],Yut=q({name:"ElSegmented",__name:"segmented",props:Gut,emits:Uut,setup(e,{emit:t}){const n=e,r=t,a=we("segmented"),o=ea(),i=vr(),s=jn(),{formItem:l}=Yr(),{inputId:u,isLabeledByFormItem:c}=Ro(n,{formItemContext:l}),f=K(null),d=VLe(),v=sn({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),h=(A,I)=>{const O=m(I);r(dt,O),r(Ht,O),A.target.checked=O===n.modelValue},p=R(()=>({...hte,...n.props})),g=A=>A,m=A=>St(A)?A[p.value.value]:A,y=A=>St(A)?A[p.value.label]:A,b=A=>!!(s.value||St(A)&&A[p.value.disabled]),w=A=>n.modelValue===m(A),S=A=>n.options.find(I=>m(I)===A),x=A=>[a.e("item"),a.is("selected",w(A)),a.is("disabled",b(A))],C=()=>{if(!f.value)return;const A=f.value.querySelector(".is-selected"),I=f.value.querySelector(".is-selected input");if(!A||!I){v.width=0,v.height=0,v.translateX=0,v.translateY=0,v.focusVisible=!1;return}v.isInit=!0,n.direction==="vertical"?(v.height=A.offsetHeight,v.translateY=A.offsetTop):(v.width=A.offsetWidth,v.translateX=A.offsetLeft);try{v.focusVisible=I.matches(":focus-visible")}catch{}},T=R(()=>[a.b(),a.m(i.value),a.is("block",n.block)]),M=R(()=>({width:n.direction==="vertical"?"100%":`${v.width}px`,height:n.direction==="vertical"?`${v.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${v.translateY}px)`:`translateX(${v.translateX}px)`,display:v.isInit?"block":"none"})),k=R(()=>[a.e("item-selected"),a.is("disabled",b(S(n.modelValue))),a.is("focus-visible",v.focusVisible)]),E=R(()=>n.name||o.value);return On(f,C),he(d,C),he(()=>n.modelValue,()=>{var A;C(),n.validateEvent&&((A=l==null?void 0:l.validate)==null||A.call(l,"change").catch(I=>void 0))},{flush:"post"}),(A,I)=>A.options.length?(D(),H("div",{key:0,id:_(u),ref_key:"segmentedRef",ref:f,class:W(T.value),role:"radiogroup","aria-label":_(c)?void 0:A.ariaLabel||"segmented","aria-labelledby":_(c)?_(l).labelId:void 0},[N("div",{class:W([_(a).e("group"),_(a).m(A.direction)])},[N("div",{style:et(M.value),class:W(k.value)},null,6),(D(!0),H(qe,null,Wt(A.options,(O,z)=>(D(),H("label",{key:z,class:W(x(O))},[N("input",{class:W(_(a).e("item-input")),type:"radio",name:E.value,disabled:b(O),checked:w(O),onChange:$=>h($,O)},null,42,jut),N("div",{class:W(_(a).e("item-label"))},[ue(A.$slots,"default",{item:g(O)},()=>[gt(Ae(y(O)),1)])],2)],2))),128))],2)],10,Kut)):le("v-if",!0)}});var qut=De(Yut,[["__file","/home/runner/work/element-plus/element-plus/packages/components/segmented/src/segmented.vue"]]);const Xut=_t(qut),Zut=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value||"").toLowerCase().includes(n)},Jut=(e,t,n)=>{const{selectionEnd:r}=e;if(r===null)return;const a=e.value,o=Hr(t);let i=-1,s;for(let l=r-1;l>=0;--l){const u=a[l];if(u===n||u===`
|
||
`||u==="\r"){i=l;continue}if(o.includes(u)){const c=i===-1?r:i;s={pattern:a.slice(l+1,c),start:l+1,end:c,prefix:u,prefixIndex:l,splitIndex:i,selectionEnd:r};break}}return s},Qut=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,r=e.selectionEnd!==null?e.selectionEnd:0,a=t.useSelectionEnd?r:n,o=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const d=document.querySelector("#input-textarea-caret-position-mirror-div");d!=null&&d.parentNode&&d.parentNode.removeChild(d)}const i=document.createElement("div");i.id="input-textarea-caret-position-mirror-div",document.body.appendChild(i);const s=i.style,l=window.getComputedStyle(e),u=e.nodeName==="INPUT";s.whiteSpace=u?"nowrap":"pre-wrap",u||(s.wordWrap="break-word"),s.position="absolute",t.debug||(s.visibility="hidden"),o.forEach(d=>{if(u&&d==="lineHeight")if(l.boxSizing==="border-box"){const v=Number.parseInt(l.height),h=Number.parseInt(l.paddingTop)+Number.parseInt(l.paddingBottom)+Number.parseInt(l.borderTopWidth)+Number.parseInt(l.borderBottomWidth),p=h+Number.parseInt(l.lineHeight);v>p?s.lineHeight=`${v-h}px`:v===p?s.lineHeight=l.lineHeight:s.lineHeight="0"}else s.lineHeight=l.height;else s[d]=l[d]}),EA()?e.scrollHeight>Number.parseInt(l.height)&&(s.overflowY="scroll"):s.overflow="hidden",i.textContent=e.value.slice(0,Math.max(0,a)),u&&i.textContent&&(i.textContent=i.textContent.replace(/\s/g," "));const c=document.createElement("span");c.textContent=e.value.slice(Math.max(0,a))||".",c.style.position="relative",c.style.left=`${-e.scrollLeft}px`,c.style.top=`${-e.scrollTop}px`,i.appendChild(c);const f={top:c.offsetTop+Number.parseInt(l.borderTopWidth),left:c.offsetLeft+Number.parseInt(l.borderLeftWidth),height:Number.parseInt(l.fontSize)*1.5};return t.debug?c.style.backgroundColor="#aaa":document.body.removeChild(i),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},ect=Ie({...s1,options:{type:ne(Array),default:()=>[]},prefix:{type:ne([String,Array]),default:"@",validator:e=>Ge(e)?e.length===1:e.every(t=>Ge(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:ne([Boolean,Function]),default:()=>Zut,validator:e=>e===!1?!0:Je(e)},placement:{type:ne(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:ne(Function)},modelValue:String,loading:Boolean,popperClass:bn.popperClass,popperStyle:bn.popperStyle,popperOptions:{type:ne(Object),default:()=>({})},props:{type:ne(Object),default:()=>pte}}),tct={[dt]:e=>Ge(e),"whole-remove":(e,t)=>Ge(e)&&Ge(t),input:e=>Ge(e),search:(e,t)=>Ge(e)&&Ge(t),select:(e,t)=>St(e)&&Ge(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},pte={value:"value",label:"label",disabled:"disabled"},nct=Ie({options:{type:ne(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),rct={select:e=>Ge(e.value)},act=["id","aria-disabled","aria-selected","onMousemove","onClick"],oct=q({name:"ElMentionDropdown",__name:"mention-dropdown",props:nct,emits:rct,setup(e,{expose:t,emit:n}){const r=e,a=n,o=we("mention"),{t:i}=Kt(),s=K(-1),l=K(),u=K(),c=K(),f=(w,S)=>[o.be("dropdown","item"),o.is("hovering",s.value===S),o.is("disabled",w.disabled||r.disabled)],d=w=>{w.disabled||r.disabled||a("select",w)},v=w=>{s.value=w},h=R(()=>r.disabled||r.options.every(w=>w.disabled)),p=R(()=>r.options[s.value]),g=()=>{p.value&&a("select",p.value)},m=w=>{const{options:S}=r;if(S.length===0||h.value)return;w==="next"?(s.value++,s.value===S.length&&(s.value=0)):w==="prev"&&(s.value--,s.value<0&&(s.value=S.length-1));const x=S[s.value];if(x.disabled){m(w);return}ze(()=>y(x))},y=w=>{var S,x,C,T;const{options:M}=r,k=M.findIndex(A=>A.value===w.value),E=(S=u.value)==null?void 0:S[k];if(E){const A=(C=(x=c.value)==null?void 0:x.querySelector)==null?void 0:C.call(x,`.${o.be("dropdown","wrap")}`);A&&SA(A,E)}(T=l.value)==null||T.handleScroll()};return he(()=>r.options,()=>{h.value||r.options.length===0?s.value=-1:s.value=0},{immediate:!0}),t({hoveringIndex:s,navigateOptions:m,selectHoverOption:g,hoverOption:p}),(w,S)=>(D(),H("div",{ref_key:"dropdownRef",ref:c,class:W(_(o).b("dropdown"))},[w.$slots.header?(D(),H("div",{key:0,class:W(_(o).be("dropdown","header"))},[ue(w.$slots,"header")],2)):le("v-if",!0),xt(Q(_(Ni),{id:w.contentId,ref_key:"scrollbarRef",ref:l,tag:"ul","wrap-class":_(o).be("dropdown","wrap"),"view-class":_(o).be("dropdown","list"),role:"listbox","aria-label":w.ariaLabel,"aria-orientation":"vertical"},{default:ee(()=>[(D(!0),H(qe,null,Wt(w.options,(x,C)=>(D(),H("li",{id:`${w.contentId}-${C}`,ref_for:!0,ref_key:"optionRefs",ref:u,key:C,class:W(f(x,C)),role:"option","aria-disabled":x.disabled||w.disabled||void 0,"aria-selected":s.value===C,onMousemove:T=>v(C),onClick:ut(T=>d(x),["stop"])},[ue(w.$slots,"label",{item:x,index:C},()=>{var T;return[N("span",null,Ae((T=x.label)!=null?T:x.value),1)]})],42,act))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[tn,w.options.length>0&&!w.loading]]),w.loading?(D(),H("div",{key:1,class:W(_(o).be("dropdown","loading"))},[ue(w.$slots,"loading",{},()=>[gt(Ae(_(i)("el.mention.loading")),1)])],2)):le("v-if",!0),w.$slots.footer?(D(),H("div",{key:2,class:W(_(o).be("dropdown","footer"))},[ue(w.$slots,"footer")],2)):le("v-if",!0)],2))}});var ict=De(oct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/mention/src/mention-dropdown.vue"]]);const sct=q({name:"ElMention",inheritAttrs:!1,__name:"mention",props:ect,emits:tct,setup(e,{expose:t,emit:n}){const r=e,a=n,o=R(()=>Kl(r,Object.keys(s1))),i=we("mention"),s=jn(),l=ea(),u=K(),c=K(),f=K(),d=K(!1),v=K(),h=K(),p=R(()=>r.showArrow?r.placement:`${r.placement}-start`),g=R(()=>r.showArrow?["bottom","top"]:["bottom-start","top-start"]),m=R(()=>({...pte,...r.props})),y=P=>{const L={label:P[m.value.label],value:P[m.value.value],disabled:P[m.value.disabled]};return{...P,...L}},b=R(()=>r.options.map(y)),w=R(()=>{const{filterOption:P}=r;return!h.value||!P?b.value:b.value.filter(L=>P(h.value.pattern,L))}),S=R(()=>d.value&&(!!w.value.length||r.loading)),x=R(()=>{var P;return`${l.value}-${(P=f.value)==null?void 0:P.hoveringIndex}`}),C=P=>{a(dt,P),a(dr,P),O()},T=P=>{var L,V,B,F;if((L=u.value)!=null&&L.isComposing)return;const U=xn(P);switch(U){case ke.left:case ke.right:O();break;case ke.up:case ke.down:if(!d.value)return;P.preventDefault(),(V=f.value)==null||V.navigateOptions(U===ke.up?"prev":"next");break;case ke.enter:case ke.numpadEnter:if(!d.value){r.type!=="textarea"&&O();return}P.preventDefault(),(B=f.value)!=null&&B.hoverOption?(F=f.value)==null||F.selectHoverOption():d.value=!1;break;case ke.esc:if(!d.value)return;P.preventDefault(),d.value=!1;break;case ke.backspace:if(r.whole&&h.value){const{splitIndex:G,selectionEnd:Y,pattern:X,prefixIndex:te,prefix:oe}=h.value,re=I();if(!re)return;const ce=re.value,ie=b.value.find(se=>se.value===X);if((Je(r.checkIsWhole)?r.checkIsWhole(X,oe):ie)&&G!==-1&&G+1===Y){P.preventDefault();const se=ce.slice(0,te)+ce.slice(G+1);a(dt,se),a(dr,se),a("whole-remove",X,oe);const J=te;ze(()=>{re.selectionStart=J,re.selectionEnd=J,$()})}}}},{wrapperRef:M}=au(u,{disabled:s,afterFocus(){O()},beforeBlur(P){var L;return(L=c.value)==null?void 0:L.isFocusInsideContent(P)},afterBlur(){d.value=!1}}),k=()=>{O()},E=P=>r.options.find(L=>P.value===L[m.value.value]),A=P=>{if(!h.value)return;const L=I();if(!L)return;const V=L.value,{split:B}=r,F=V.slice(h.value.end),U=F.startsWith(B),G=`${P.value}${U?"":B}`,Y=V.slice(0,h.value.start)+G+F;a(dt,Y),a(dr,Y),a("select",E(P),h.value.prefix);const X=h.value.start+G.length+(U?1:0);ze(()=>{L.selectionStart=X,L.selectionEnd=X,L.focus(),$()})},I=()=>{var P,L;return r.type==="textarea"?(P=u.value)==null?void 0:P.textarea:(L=u.value)==null?void 0:L.input},O=()=>{setTimeout(()=>{z(),$(),ze(()=>{var P;return(P=c.value)==null?void 0:P.updatePopper()})},0)},z=()=>{const P=I();if(!P)return;const L=Qut(P),V=P.getBoundingClientRect(),B=M.value.getBoundingClientRect();v.value={position:"absolute",width:0,height:`${L.height}px`,left:`${L.left+V.left-B.left}px`,top:`${L.top+V.top-B.top}px`}},$=()=>{const P=I();if(document.activeElement!==P){d.value=!1;return}const{prefix:L,split:V}=r;if(h.value=Jut(P,L,V),h.value&&h.value.splitIndex===-1){d.value=!0,a("search",h.value.pattern,h.value.prefix);return}d.value=!1};return t({input:u,tooltip:c,dropdownVisible:S}),(P,L)=>(D(),H("div",{ref_key:"wrapperRef",ref:M,class:W(_(i).b())},[Q(_(ka),It(It(o.value,P.$attrs),{ref_key:"elInputRef",ref:u,"model-value":P.modelValue,disabled:_(s),role:S.value?"combobox":void 0,"aria-activedescendant":S.value?x.value||"":void 0,"aria-controls":S.value?_(l):void 0,"aria-expanded":S.value||void 0,"aria-label":P.ariaLabel,"aria-autocomplete":S.value?"none":void 0,"aria-haspopup":S.value?"listbox":void 0,onInput:C,onKeydown:T,onMousedown:k}),Ua({_:2},[Wt(P.$slots,(V,B)=>({name:B,fn:ee(F=>[ue(P.$slots,B,Cs(Ms(F)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),Q(_(ta),{ref_key:"tooltipRef",ref:c,visible:S.value,"popper-class":[_(i).e("popper"),P.popperClass],"popper-style":P.popperStyle,"popper-options":P.popperOptions,placement:p.value,"fallback-placements":g.value,effect:"light",pure:"",offset:P.offset,"show-arrow":P.showArrow},{default:ee(()=>[N("div",{style:et(v.value)},null,4)]),content:ee(()=>[Q(ict,{ref_key:"dropdownRef",ref:f,options:w.value,disabled:_(s),loading:P.loading,"content-id":_(l),"aria-label":P.ariaLabel,onSelect:A,onClick:L[0]||(L[0]=ut(V=>{var B;return(B=u.value)==null?void 0:B.focus()},["stop"]))},Ua({_:2},[Wt(P.$slots,(V,B)=>({name:B,fn:ee(F=>[ue(P.$slots,B,Cs(Ms(F)))])}))]),1032,["options","disabled","loading","content-id","aria-label"])]),_:3},8,["visible","popper-class","popper-style","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});var lct=De(sct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/mention/src/mention.vue"]]);const uct=_t(lct),cct=Ie({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]},lazy:Boolean}),fct={resizeStart:(e,t)=>!0,resize:(e,t)=>!0,resizeEnd:(e,t)=>!0,collapse:(e,t,n)=>!0},gte=Symbol("splitterRootContextKey");function dct(e){const t=K(),{width:n,height:r}=QC(t),a=R(()=>e.value==="horizontal"?n.value:r.value);return{containerEl:t,containerSize:a}}function WE(e){return Number(e.slice(0,-1))/100}function GE(e){return Number(e.slice(0,-2))}function UE(e){return Ge(e)&&e.endsWith("%")}function KE(e){return Ge(e)&&e.endsWith("px")}function vct(e,t){const n=R(()=>e.value.map(s=>s.size)),r=R(()=>e.value.length),a=K([]);he([n,r,t],()=>{var s;let l=[],u=0;for(let f=0;f<r.value;f+=1){const d=(s=e.value[f])==null?void 0:s.size;if(UE(d))l[f]=WE(d);else if(KE(d))l[f]=GE(d)/t.value;else if(d||d===0){const v=Number(d);Number.isNaN(v)||(l[f]=v/t.value)}else u+=1,l[f]=void 0}const c=l.reduce((f,d)=>f+(d||0),0);if(c>1||!u){const f=1/c;l=l.map(d=>d===void 0?0:d*f)}else{const f=(1-c)/u;l=l.map(d=>d===void 0?f:d)}a.value=l});const o=s=>s*t.value,i=R(()=>a.value.map(o));return{percentSizes:a,pxSizes:i}}function hct(e,t,n,r){const a=g=>g*t.value||0;function o(g,m){return UE(g)?a(WE(g)):KE(g)?GE(g):g??m}const i=K(0),s=K(null);let l=[],u=cn;const c=R(()=>e.value.map(g=>[g.min,g.max]));he(r,()=>{if(i.value){const g=new MouseEvent("mouseup",{bubbles:!0});window.dispatchEvent(g)}});const f=g=>{i.value=0,s.value={index:g,confirmed:!1},l=n.value},d=(g,m)=>{var y,b;let w=null;if((!s.value||!s.value.confirmed)&&m!==0){if(m>0)w=g,s.value={index:g,confirmed:!0};else for(let I=g;I>=0;I-=1)if(l[I]>0){w=I,s.value={index:I,confirmed:!0};break}}const S=(b=w??((y=s.value)==null?void 0:y.index))!=null?b:g,x=[...l],C=S+1,T=o(c.value[S][0],0),M=o(c.value[C][0],0),k=o(c.value[S][1],t.value||0),E=o(c.value[C][1],t.value||0);let A=m;x[S]+A<T&&(A=T-x[S]),x[C]-A<M&&(A=x[C]-M),x[S]+A>k&&(A=k-x[S]),x[C]-A>E&&(A=x[C]-E),x[S]+=A,x[C]-=A,i.value=A,u=()=>{e.value.forEach((I,O)=>{I.size=x[O]}),u=cn},r.value||u()},v=()=>{r.value&&u(),i.value=0,s.value=null,l=[]},h=[];return{lazyOffset:i,onMoveStart:f,onMoving:d,onMoveEnd:v,movingIndex:s,onCollapse:(g,m)=>{h.length||h.push(...n.value);const y=n.value,b=m==="start"?g:g+1,w=m==="start"?g+1:g,S=y[b],x=y[w];if(S!==0&&x!==0)y[b]=0,y[w]+=S,h[g]=S;else{const C=S+x,T=h[g],M=C-T;y[w]=T,y[b]=M}e.value.forEach((C,T)=>{C.size=y[T]})}}}const pct=q({name:"ElSplitter",__name:"splitter",props:cct,emits:fct,setup(e,{emit:t}){const n=we("splitter"),r=t,a=e,o=vn(a,"layout"),i=vn(a,"lazy"),{containerEl:s,containerSize:l}=dct(o),{removeChild:u,children:c,addChild:f,ChildrenSorter:d}=T4(bt(),"ElSplitterPanel");he(c,()=>{g.value=null,c.value.forEach((k,E)=>{k.setIndex(E)})});const{percentSizes:v,pxSizes:h}=vct(c,l),{lazyOffset:p,movingIndex:g,onMoveStart:m,onMoving:y,onMoveEnd:b,onCollapse:w}=hct(c,l,h,i),S=R(()=>({[n.cssVarBlockName("bar-offset")]:i.value?`${p.value}px`:void 0}));return Ut(gte,sn({panels:c,percentSizes:v,pxSizes:h,layout:o,lazy:i,movingIndex:g,containerSize:l,onMoveStart:k=>{m(k),r("resizeStart",k,h.value)},onMoving:(k,E)=>{y(k,E),i.value||r("resize",k,h.value)},onMoveEnd:async k=>{b(),await ze(),r("resizeEnd",k,h.value)},onCollapse:(k,E)=>{w(k,E),r("collapse",k,E,h.value)},registerPanel:f,unregisterPanel:u})),(k,E)=>(D(),H("div",{ref_key:"containerEl",ref:s,class:W([_(n).b(),_(n).e(o.value)]),style:et(S.value)},[ue(k.$slots,"default"),Q(_(d)),le(" Prevent iframe touch events from breaking "),_(g)?(D(),H("div",{key:0,class:W([_(n).e("mask"),_(n).e(`mask-${o.value}`)])},null,2)):le("v-if",!0)],6))}});var gct=De(pct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/splitter/src/splitter.vue"]]);function mct(e){return e&&St(e)?e:{start:!!e,end:!!e}}function C$(e,t,n,r){return!!(e!=null&&e.collapsible.end&&t>0||n!=null&&n.collapsible.start&&r===0&&t>0)}const yct=q({name:"ElSplitterBar",__name:"split-bar",props:{index:{type:Number,required:!0},layout:{type:String,values:["horizontal","vertical"],default:"horizontal"},resizable:{type:Boolean,default:!0},lazy:Boolean,startCollapsible:Boolean,endCollapsible:Boolean},emits:["moveStart","moving","moveEnd","collapse"],setup(e,{emit:t}){const n=we("splitter-bar"),r=e,a=t,o=R(()=>r.layout==="horizontal"),i=R(()=>o.value?{width:0}:{height:0}),s=R(()=>({width:o.value?"16px":"100%",height:o.value?"100%":"16px",cursor:r.resizable?o.value?"ew-resize":"ns-resize":"auto",touchAction:"none"})),l=R(()=>{const y=n.e("dragger");return{[`${y}-horizontal`]:o.value,[`${y}-vertical`]:!o.value,[`${y}-active`]:!!u.value}}),u=K(null),c=y=>{r.resizable&&(u.value=[y.pageX,y.pageY],a("moveStart",r.index),window.addEventListener("mouseup",h),window.addEventListener("mousemove",d))},f=y=>{if(r.resizable&&y.touches.length===1){y.preventDefault();const b=y.touches[0];u.value=[b.pageX,b.pageY],a("moveStart",r.index),window.addEventListener("touchend",p),window.addEventListener("touchmove",v)}},d=y=>{const{pageX:b,pageY:w}=y,S=b-u.value[0],x=w-u.value[1],C=o.value?S:x;a("moving",r.index,C)},v=y=>{if(y.touches.length===1){y.preventDefault();const b=y.touches[0],w=b.pageX-u.value[0],S=b.pageY-u.value[1],x=o.value?w:S;a("moving",r.index,x)}},h=()=>{u.value=null,window.removeEventListener("mouseup",h),window.removeEventListener("mousemove",d),a("moveEnd",r.index)},p=()=>{u.value=null,window.removeEventListener("touchend",p),window.removeEventListener("touchmove",v),a("moveEnd",r.index)},g=R(()=>o.value?Xs:a1),m=R(()=>o.value?ca:Yi);return(y,b)=>(D(),H("div",{class:W([_(n).b()]),style:et(i.value)},[e.startCollapsible?(D(),H("div",{key:0,class:W([_(n).e("collapse-icon"),_(n).e(`${e.layout}-collapse-icon-start`)]),onClick:b[0]||(b[0]=w=>a("collapse",e.index,"start"))},[ue(y.$slots,"start-collapsible",{},()=>[(D(),de(Tt(g.value),{style:{width:"12px",height:"12px"}}))])],2)):le("v-if",!0),N("div",{class:W([_(n).e("dragger"),l.value,_(n).is("disabled",!e.resizable),_(n).is("lazy",e.resizable&&e.lazy)]),style:et(s.value),onMousedown:c,onTouchstart:f},null,38),e.endCollapsible?(D(),H("div",{key:1,class:W([_(n).e("collapse-icon"),_(n).e(`${e.layout}-collapse-icon-end`)]),onClick:b[1]||(b[1]=w=>a("collapse",e.index,"end"))},[ue(y.$slots,"end-collapsible",{},()=>[(D(),de(Tt(m.value),{style:{width:"12px",height:"12px"}}))])],2)):le("v-if",!0)],6))}});var bct=De(yct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/splitter/src/split-bar.vue"]]);const _ct=Ie({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:Boolean}),wct={"update:size":e=>typeof e=="number"||typeof e=="string"},T$="ElSplitterPanel",Sct=q({name:T$,__name:"split-panel",props:_ct,emits:wct,setup(e,{expose:t,emit:n}){const r=we("splitter-panel"),a=e,o=n,i=Ue(gte);i||cr(T$,"usage: <el-splitter><el-splitter-panel /></el-splitter/>");const{panels:s,layout:l,lazy:u,containerSize:c,pxSizes:f}=kr(i),{registerPanel:d,unregisterPanel:v,onCollapse:h,onMoveEnd:p,onMoveStart:g,onMoving:m}=i,y=K(),b=bt(),w=b.uid,S=K(0),x=R(()=>s.value[S.value]),C=L=>{S.value=L},T=R(()=>{var L;return x.value&&(L=f.value[S.value])!=null?L:0}),M=R(()=>{var L;return x.value&&(L=f.value[S.value+1])!=null?L:0}),k=R(()=>x.value?s.value[S.value+1]:null),E=R(()=>{var L;return k.value?a.resizable&&((L=k.value)==null?void 0:L.resizable)&&(T.value!==0||!a.min)&&(M.value!==0||!k.value.min):!1}),A=R(()=>x.value?S.value!==s.value.length-1:!1),I=R(()=>C$(x.value,T.value,k.value,M.value)),O=R(()=>C$(k.value,M.value,x.value,T.value));function z(L){return UE(L)?WE(L)*c.value||0:KE(L)?GE(L):L??0}let $=!1;he(()=>a.size,()=>{if(!$&&x.value){if(!c.value){x.value.size=a.size;return}const L=z(a.size),V=z(a.max),B=z(a.min),F=Math.min(Math.max(L,B||0),V||L);F!==L&&o("update:size",F),x.value.size=F}}),he(()=>{var L;return(L=x.value)==null?void 0:L.size},L=>{L!==a.size&&($=!0,o("update:size",L),ze(()=>$=!1))}),he(()=>a.resizable,L=>{x.value&&(x.value.resizable=L)});const P=sn({el:y.value,uid:w,getVnode:()=>b.vnode,setIndex:C,...a,collapsible:R(()=>mct(a.collapsible))});return d(P),un(()=>v(P)),t({splitterPanelRef:y}),(L,V)=>(D(),H(qe,null,[N("div",It({ref_key:"panelEl",ref:y,class:[_(r).b()],style:{flexBasis:`${T.value}px`}},L.$attrs),[ue(L.$slots,"default")],16),A.value?(D(),de(bct,{key:0,index:S.value,layout:_(l),lazy:_(u),resizable:E.value,"start-collapsible":I.value,"end-collapsible":O.value,onMoveStart:_(g),onMoving:_(m),onMoveEnd:_(p),onCollapse:_(h)},{"start-collapsible":ee(()=>[ue(L.$slots,"start-collapsible")]),"end-collapsible":ee(()=>[ue(L.$slots,"end-collapsible")]),_:3},8,["index","layout","lazy","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):le("v-if",!0)],64))}});var mte=De(Sct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/splitter/src/split-panel.vue"]]);const xct=_t(gct,{SplitPanel:mte}),Cct=Kn(mte);var Tct=[fDe,CFe,cGe,ait,gGe,SGe,qZ,DGe,PGe,Gr,tJ,SUe,kUe,KUe,jUe,KKe,TJ,ZKe,Bi,oKe,UA,tje,mje,yje,M4,BJ,Kje,qje,nYe,rYe,aYe,oYe,iYe,sXe,aQ,gXe,mXe,LXe,vQ,GXe,IZe,LZe,DZe,SQ,QJe,eQe,Xe,dQe,TQ,ka,kQ,EQe,OQe,ZQe,JQe,QQe,eet,iet,utt,htt,Stt,KZ,NQ,xJ,mKe,gKe,Btt,Ftt,jtt,Ni,Bh,W_,zet,Ant,Ont,Nnt,nrt,srt,qQ,grt,xrt,Crt,Rrt,jat,Yat,rit,mit,yit,Ol,IE,AYe,kit,Lit,Dit,ta,Uit,PE,vst,Est,nlt,dlt,Dut,Put,Hut,Wut,Xut,uct,xct,Cct];const yo="ElInfiniteScroll",kct=50,Mct=200,Act=0,Ect={delay:{type:Number,default:Mct},distance:{type:Number,default:Act},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},jE=(e,t)=>Object.entries(Ect).reduce((n,[r,a])=>{var o,i;const{type:s,default:l}=a,u=e.getAttribute(`infinite-scroll-${r}`);let c=(i=(o=t[u])!=null?o:u)!=null?i:l;return c=c==="false"?!1:c,c=s(c),n[r]=Number.isNaN(c)?l:c,n},{}),yte=e=>{const{observer:t}=e[yo];t&&(t.disconnect(),delete e[yo].observer)},Ict=(e,t)=>{const{container:n,containerEl:r,instance:a,observer:o,lastScrollTop:i}=e[yo],{disabled:s,distance:l}=jE(e,a),{clientHeight:u,scrollHeight:c,scrollTop:f}=r,d=f-i;if(e[yo].lastScrollTop=f,o||s||d<0)return;let v=!1;if(n===e)v=c-(u+f)<=l;else{const{clientTop:h,scrollHeight:p}=e,g=dT(e,r);v=f+u>=g+h+p-l}v&&t.call(a)};function f8(e,t){const{containerEl:n,instance:r}=e[yo],{disabled:a}=jE(e,r);a||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(r):yte(e))}const Lct={async mounted(e,t){const{instance:n,value:r}=t;Os({scope:yo,from:"the directive v-infinite-scroll",replacement:"the el-scrollbar infinite scroll",version:"3.0.0",ref:"https://element-plus.org/en-US/component/scrollbar#infinite-scroll"},!0),Je(r)||cr(yo,"'v-infinite-scroll' binding value must be a function"),await ze();const{delay:a,immediate:o}=jE(e,n),i=wA(e,!0),s=i===window?document.documentElement:i,l=Hu(Ict.bind(null,e,r),a);if(i){if(e[yo]={instance:n,container:i,containerEl:s,delay:a,cb:r,onScroll:l,lastScrollTop:s.scrollTop},o){const u=new MutationObserver(Hu(f8.bind(null,e,r),kct));e[yo].observer=u,u.observe(e,{childList:!0,subtree:!0}),f8(e,r)}i.addEventListener("scroll",l)}},unmounted(e){if(!e[yo])return;const{container:t,onScroll:n}=e[yo];t==null||t.removeEventListener("scroll",n),yte(e)},async updated(e){if(!e[yo])await ze();else{const{containerEl:t,cb:n,observer:r}=e[yo];t.clientHeight&&r&&f8(e,n)}}},ZT=Lct;ZT.install=e=>{e.directive("InfiniteScroll",ZT)};const Dct=ZT;function Pct(e,t){let n;const r=K(!1),a=sn({...e,originalPosition:"",originalOverflow:"",visible:!1});function o(v){a.text=v}function i(){const v=a.parent,h=d.ns;if(!v.vLoadingAddClassList){let p=v.getAttribute("loading-number");p=Number.parseInt(p)-1,p?v.setAttribute("loading-number",p.toString()):(Aa(v,h.bm("parent","relative")),v.removeAttribute("loading-number")),Aa(v,h.bm("parent","hidden"))}s(),f.unmount()}function s(){var v,h;(h=(v=d.$el)==null?void 0:v.parentNode)==null||h.removeChild(d.$el)}function l(){var v;e.beforeClose&&!e.beforeClose()||(r.value=!0,clearTimeout(n),n=setTimeout(u,400),a.visible=!1,(v=e.closed)==null||v.call(e))}function u(){if(!r.value)return;const v=a.parent;r.value=!1,v.vLoadingAddClassList=void 0,i()}const f=vg(q({name:"ElLoading",setup(v,{expose:h}){const{ns:p,zIndex:g}=b4("loading");return h({ns:p,zIndex:g}),()=>{const m=a.spinner||a.svg,y=ot("svg",{class:"circular",viewBox:a.svgViewBox?a.svgViewBox:"0 0 50 50",...m?{innerHTML:m}:{}},[ot("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),b=a.text?ot("p",{class:p.b("text")},[a.text]):void 0;return ot(Ur,{name:p.b("fade"),onAfterLeave:u},{default:ee(()=>[xt(Q("div",{style:{backgroundColor:a.background||""},class:[p.b("mask"),a.customClass,p.is("fullscreen",a.fullscreen)]},[ot("div",{class:p.b("spinner")},[y,b])]),[[tn,a.visible]])])})}}}));Object.assign(f._context,t??{});const d=f.mount(document.createElement("div"));return{...kr(a),setText:o,removeElLoadingChild:s,close:l,handleAfterLeave:u,vm:d,get $el(){return d.$el}}}let v2;const ah=function(e={},t){if(!on)return;const n=Rct(e);if(n.fullscreen&&v2)return v2;const r=Pct({...n,closed:()=>{var o;(o=n.closed)==null||o.call(n),n.fullscreen&&(v2=void 0)}},t??ah._context);Oct(n,n.parent,r),k$(n,n.parent,r),n.parent.vLoadingAddClassList=()=>k$(n,n.parent,r);let a=n.parent.getAttribute("loading-number");return a?a=`${Number.parseInt(a)+1}`:a="1",n.parent.setAttribute("loading-number",a),n.parent.appendChild(r.$el),ze(()=>r.visible.value=n.visible),n.fullscreen&&(v2=r),r},Rct=e=>{var t,n,r,a;let o;return Ge(e.target)?o=(t=document.querySelector(e.target))!=null?t:document.body:o=e.target||document.body,{parent:o===document.body||e.body?document.body:o,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:o===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,beforeClose:e.beforeClose,closed:e.closed,target:o}},Oct=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,a={};if(e.fullscreen)n.originalPosition.value=Cl(document.body,"position"),n.originalOverflow.value=Cl(document.body,"overflow"),a.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=Cl(document.body,"position"),await ze();for(const o of["top","left"]){const i=o==="top"?"scrollTop":"scrollLeft";a[o]=`${e.target.getBoundingClientRect()[o]+document.body[i]+document.documentElement[i]-Number.parseInt(Cl(document.body,`margin-${o}`),10)}px`}for(const o of["height","width"])a[o]=`${e.target.getBoundingClientRect()[o]}px`}else n.originalPosition.value=Cl(t,"position");for(const[o,i]of Object.entries(a))n.$el.style[o]=i},k$=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?Aa(t,r.bm("parent","relative")):Jo(t,r.bm("parent","relative")),e.fullscreen&&e.lock?Jo(t,r.bm("parent","hidden")):Aa(t,r.bm("parent","hidden"))};ah._context=null;const I0=Symbol("ElLoading"),uf=e=>`element-loading-${Sa(e)}`,M$=(e,t)=>{var n,r,a,o;const i=t.instance,s=v=>St(t.value)?t.value[v]:void 0,l=v=>{const h=Ge(v)&&(i==null?void 0:i[v])||v;return K(h)},u=v=>l(s(v)||e.getAttribute(uf(v))),c=(n=s("fullscreen"))!=null?n:t.modifiers.fullscreen,f={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:c,target:(r=s("target"))!=null?r:c?void 0:e,body:(a=s("body"))!=null?a:t.modifiers.body,lock:(o=s("lock"))!=null?o:t.modifiers.lock},d=ah(f);d._context=rg._context,e[I0]={options:f,instance:d}},Nct=(e,t)=>{for(const n of Object.keys(e))Dn(e[n])&&(e[n].value=t[n])},rg={mounted(e,t){t.value&&M$(e,t)},updated(e,t){const n=e[I0];if(!t.value){n==null||n.instance.close(),e[I0]=null;return}n?Nct(n.options,St(t.value)?t.value:{text:e.getAttribute(uf("text")),svg:e.getAttribute(uf("svg")),svgViewBox:e.getAttribute(uf("svgViewBox")),spinner:e.getAttribute(uf("spinner")),background:e.getAttribute(uf("background")),customClass:e.getAttribute(uf("customClass"))}):M$(e,t)},unmounted(e){var t;(t=e[I0])==null||t.instance.close(),e[I0]=null}};rg._context=null;const Bct={install(e){ah._context=e._context,rg._context=e._context,e.directive("loading",rg),e.config.globalProperties.$loading=ah},directive:rg,service:ah},bte=["primary","success","info","warning","error"],_te=["top","top-left","top-right","bottom","bottom-left","bottom-right"],oh="top",pa=Gn({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:on?document.body:void 0}),Vct=Ie({customClass:{type:String,default:pa.customClass},dangerouslyUseHTMLString:{type:Boolean,default:pa.dangerouslyUseHTMLString},duration:{type:Number,default:pa.duration},icon:{type:pn,default:pa.icon},id:{type:String,default:pa.id},message:{type:ne([String,Object,Function]),default:pa.message},onClose:{type:ne(Function),default:pa.onClose},showClose:{type:Boolean,default:pa.showClose},type:{type:String,values:bte,default:pa.type},plain:{type:Boolean,default:pa.plain},offset:{type:Number,default:pa.offset},placement:{type:String,values:_te,default:pa.placement},zIndex:{type:Number,default:pa.zIndex},grouping:{type:Boolean,default:pa.grouping},repeatNum:{type:Number,default:pa.repeatNum}}),$ct={destroy:()=>!0},Ai=uw({}),zct=e=>(Ai[e]||(Ai[e]=uw([])),Ai[e]),Fct=(e,t)=>{const n=Ai[t]||[],r=n.findIndex(i=>i.id===e),a=n[r];let o;return r>0&&(o=n[r-1]),{current:a,prev:o}},Hct=(e,t)=>{const{prev:n}=Fct(e,t);return n?n.vm.exposed.bottom.value:0},Wct=(e,t,n)=>(Ai[n]||[]).findIndex(o=>o.id===e)>0?16:t,Gct=["id"],Uct=["innerHTML"],Kct=q({name:"ElMessage",__name:"message",props:Vct,emits:$ct,setup(e,{expose:t,emit:n}){const{Close:r}=AA,a=e,o=n,i=K(!1),{ns:s,zIndex:l}=b4("message"),{currentZIndex:u,nextZIndex:c}=l,f=K(),d=K(!1),v=K(0);let h;const p=R(()=>a.type?a.type==="error"?"danger":a.type:"info"),g=R(()=>{const I=a.type;return{[s.bm("icon",I)]:I&&hc[I]}}),m=R(()=>a.icon||hc[a.type]||""),y=R(()=>a.placement||oh),b=R(()=>Hct(a.id,y.value)),w=R(()=>Wct(a.id,a.offset,y.value)+b.value),S=R(()=>v.value+w.value),x=R(()=>y.value.includes("left")?s.is("left"):y.value.includes("right")?s.is("right"):s.is("center")),C=R(()=>y.value.startsWith("top")?"top":"bottom"),T=R(()=>({[C.value]:`${w.value}px`,zIndex:u.value}));function M(){a.duration!==0&&({stop:h}=Mh(()=>{E()},a.duration))}function k(){h==null||h()}function E(){d.value=!1,ze(()=>{var I;i.value||((I=a.onClose)==null||I.call(a),o("destroy"))})}function A(I){xn(I)===ke.esc&&E()}return Et(()=>{M(),c(),d.value=!0}),he(()=>a.repeatNum,()=>{k(),M()}),fn(document,"keydown",A),On(f,()=>{v.value=f.value.getBoundingClientRect().height}),t({visible:d,bottom:S,close:E}),(I,O)=>(D(),de(Ur,{name:_(s).b("fade"),onBeforeEnter:O[0]||(O[0]=z=>i.value=!0),onBeforeLeave:I.onClose,onAfterLeave:O[1]||(O[1]=z=>I.$emit("destroy")),persisted:""},{default:ee(()=>[xt(N("div",{id:I.id,ref_key:"messageRef",ref:f,class:W([_(s).b(),{[_(s).m(I.type)]:I.type},_(s).is("closable",I.showClose),_(s).is("plain",I.plain),_(s).is("bottom",C.value==="bottom"),x.value,I.customClass]),style:et(T.value),role:"alert",onMouseenter:k,onMouseleave:M},[I.repeatNum>1?(D(),de(_(qZ),{key:0,value:I.repeatNum,type:p.value,class:W(_(s).e("badge"))},null,8,["value","type","class"])):le("v-if",!0),m.value?(D(),de(_(Xe),{key:1,class:W([_(s).e("icon"),g.value])},{default:ee(()=>[(D(),de(Tt(m.value)))]),_:1},8,["class"])):le("v-if",!0),ue(I.$slots,"default",{},()=>[I.dangerouslyUseHTMLString?(D(),H(qe,{key:1},[le(" Caution here, message could've been compromised, never use user's input as message "),N("p",{class:W(_(s).e("content")),innerHTML:I.message},null,10,Uct)],2112)):(D(),H("p",{key:0,class:W(_(s).e("content"))},Ae(I.message),3))]),I.showClose?(D(),de(_(Xe),{key:2,class:W(_(s).e("closeBtn")),onClick:ut(E,["stop"])},{default:ee(()=>[Q(_(r))]),_:1},8,["class"])):le("v-if",!0)],46,Gct),[[tn,d.value]])]),_:3},8,["name","onBeforeLeave"]))}});var jct=De(Kct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let Yct=1;const qct=e=>{if(!e.appendTo)e.appendTo=document.body;else if(Ge(e.appendTo)){let n=document.querySelector(e.appendTo);oo(n)||(n=document.body),e.appendTo=n}},Xct=e=>{!e.placement&&Ge(ya.placement)&&ya.placement&&(e.placement=ya.placement),e.placement||(e.placement=oh),_te.includes(e.placement)||(`${e.placement}${oh}`,e.placement=oh)},wte=e=>{const t=!e||Ge(e)||wn(e)||Je(e)?{message:e}:e,n={...pa,...t};return qct(n),Xct(n),hn(ya.grouping)&&!n.grouping&&(n.grouping=ya.grouping),rt(ya.duration)&&n.duration===3e3&&(n.duration=ya.duration),rt(ya.offset)&&n.offset===16&&(n.offset=ya.offset),hn(ya.showClose)&&!n.showClose&&(n.showClose=ya.showClose),hn(ya.plain)&&!n.plain&&(n.plain=ya.plain),n},Zct=e=>{const t=e.props.placement||oh,n=Ai[t],r=n.indexOf(e);if(r===-1)return;n.splice(r,1);const{handler:a}=e;a.close()},Jct=({appendTo:e,...t},n)=>{const r=`message_${Yct++}`,a=t.onClose,o=document.createElement("div"),i={...t,id:r,onClose:()=>{a==null||a(),Zct(c)},onDestroy:()=>{zs(null,o)}},s=Q(jct,i,Je(i.message)||wn(i.message)?{default:Je(i.message)?i.message:()=>i.message}:null);s.appContext=n||hd._context,zs(s,o),e.appendChild(o.firstElementChild);const l=s.component,c={id:r,vnode:s,vm:l,handler:{close:()=>{l.exposed.close()}},props:s.component.props};return c},hd=(e={},t)=>{if(!on)return{close:()=>{}};const n=wte(e),r=zct(n.placement||oh);if(n.grouping&&r.length){const o=r.find(({vnode:i})=>{var s;return((s=i.props)==null?void 0:s.message)===n.message});if(o)return o.props.repeatNum+=1,o.props.type=n.type,o.handler}if(rt(ya.max)&&r.length>=ya.max)return{close:()=>{}};const a=Jct(n,t);return r.push(a),a.handler};bte.forEach(e=>{hd[e]=(t={},n)=>{const r=wte(t);return hd({...r,type:e},n)}});function Qct(e){for(const t in Ai)if(nn(Ai,t)){const n=[...Ai[t]];for(const r of n)(!e||e===r.props.type)&&r.handler.close()}}function eft(e){if(!Ai[e])return;[...Ai[e]].forEach(n=>n.handler.close())}hd.closeAll=Qct;hd.closeAllByPlacement=eft;hd._context=null;const cf=GX(hd,"$message"),JT="_trap-focus-children",Pf=[],A$=e=>{if(Pf.length===0)return;const t=xn(e),n=Pf[Pf.length-1][JT];if(n.length>0&&t===ke.tab){if(n.length===1){e.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const r=e.shiftKey,a=e.target===n[0],o=e.target===n[n.length-1];a&&r&&(e.preventDefault(),n[n.length-1].focus()),o&&!r&&(e.preventDefault(),n[0].focus())}},tft={beforeMount(e){e[JT]=AB(e),Pf.push(e),Pf.length<=1&&document.addEventListener("keydown",A$)},updated(e){ze(()=>{e[JT]=AB(e)})},unmounted(){Pf.shift(),Pf.length===0&&document.removeEventListener("keydown",A$)}},nft=q({name:"ElMessageBox",directives:{TrapFocus:tft},components:{ElButton:Gr,ElFocusTrap:mp,ElInput:ka,ElOverlay:oE,ElIcon:Xe,...AA},inheritAttrs:!1,props:{buttonSize:{type:String,validator:JQ},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:r,ns:a,size:o}=b4("message-box",R(()=>e.buttonSize)),{t:i}=n,{nextZIndex:s}=r,l=K(!1),u=sn({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:Ts(si),cancelButtonLoadingIcon:Ts(si),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),c=R(()=>{const P=u.type;return{[a.bm("icon",P)]:P&&hc[P]}}),f=ea(),d=ea(),v=R(()=>{const P=u.type;return u.icon||P&&hc[P]||""}),h=R(()=>!!u.message),p=K(),g=K(),m=K(),y=K(),b=K(),w=R(()=>u.confirmButtonClass);he(()=>u.inputValue,async P=>{await ze(),e.boxType==="prompt"&&P&&I()},{immediate:!0}),he(()=>l.value,P=>{var L,V;P&&(e.boxType!=="prompt"&&(u.autofocus?m.value=(V=(L=b.value)==null?void 0:L.$el)!=null?V:p.value:m.value=p.value),u.zIndex=s()),e.boxType==="prompt"&&(P?ze().then(()=>{var B;y.value&&y.value.$el&&(u.autofocus?m.value=(B=O())!=null?B:p.value:m.value=p.value)}):(u.editorErrorMessage="",u.validateError=!1))});const S=R(()=>e.draggable),x=R(()=>e.overflow),{isDragging:C}=uQ(p,g,S,x);Et(async()=>{await ze(),e.closeOnHashChange&&window.addEventListener("hashchange",T)}),un(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",T)});function T(){l.value&&(l.value=!1,ze(()=>{u.action&&t("action",u.action)}))}const M=()=>{e.closeOnClickModal&&A(u.distinguishCancelAndClose?"close":"cancel")},k=aE(M),E=P=>{if(u.inputType!=="textarea")return P.preventDefault(),A("confirm")},A=P=>{var L;e.boxType==="prompt"&&P==="confirm"&&!I()||(u.action=P,u.beforeClose?(L=u.beforeClose)==null||L.call(u,P,u,T):T())},I=()=>{if(e.boxType==="prompt"){const P=u.inputPattern;if(P&&!P.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||i("el.messagebox.error"),u.validateError=!0,!1;const L=u.inputValidator;if(Je(L)){const V=L(u.inputValue);if(V===!1)return u.editorErrorMessage=u.inputErrorMessage||i("el.messagebox.error"),u.validateError=!0,!1;if(Ge(V))return u.editorErrorMessage=V,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},O=()=>{var P,L;const V=(P=y.value)==null?void 0:P.$refs;return(L=V==null?void 0:V.input)!=null?L:V==null?void 0:V.textarea},z=()=>{A("close")},$=()=>{e.closeOnPressEscape&&z()};return e.lockScroll&&E4(l,{ns:a}),{...kr(u),ns:a,overlayEvent:k,visible:l,hasMessage:h,typeClass:c,contentId:f,inputId:d,btnSize:o,iconComponent:v,confirmButtonClasses:w,rootRef:p,focusStartRef:m,headerRef:g,inputRef:y,isDragging:C,confirmRef:b,doClose:T,handleClose:z,onCloseRequested:$,handleWrapperClick:M,handleInputEnter:E,handleAction:A,t:i}}}),rft=["aria-label","aria-describedby"],aft=["aria-label"],oft=["id"];function ift(e,t,n,r,a,o){const i=Ft("el-icon"),s=Ft("el-input"),l=Ft("el-button"),u=Ft("el-focus-trap"),c=Ft("el-overlay");return D(),de(Ur,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=f=>e.$emit("vanish")),persisted:""},{default:ee(()=>[xt(Q(c,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:ee(()=>[N("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:W(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...f)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...f)),onMousedown:t[9]||(t[9]=(...f)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...f)),onMouseup:t[10]||(t[10]=(...f)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...f))},[Q(u,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:ee(()=>[N("div",{ref:"rootRef",class:W([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),e.ns.is("dragging",e.isDragging),{[e.ns.m("center")]:e.center}]),style:et(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=ut(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(D(),H("div",{key:0,ref:"headerRef",class:W([e.ns.e("header"),{"show-close":e.showClose}])},[N("div",{class:W(e.ns.e("title"))},[e.iconComponent&&e.center?(D(),de(i,{key:0,class:W([e.ns.e("status"),e.typeClass])},{default:ee(()=>[(D(),de(Tt(e.iconComponent)))]),_:1},8,["class"])):le("v-if",!0),N("span",null,Ae(e.title),1)],2),e.showClose?(D(),H("button",{key:0,type:"button",class:W(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=Wn(ut(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[Q(i,{class:W(e.ns.e("close"))},{default:ee(()=>[(D(),de(Tt(e.closeIcon||"close")))]),_:1},8,["class"])],42,aft)):le("v-if",!0)],2)):le("v-if",!0),N("div",{id:e.contentId,class:W(e.ns.e("content"))},[N("div",{class:W(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(D(),de(i,{key:0,class:W([e.ns.e("status"),e.typeClass])},{default:ee(()=>[(D(),de(Tt(e.iconComponent)))]),_:1},8,["class"])):le("v-if",!0),e.hasMessage?(D(),H("div",{key:1,class:W(e.ns.e("message"))},[ue(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(D(),de(Tt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(D(),de(Tt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0,textContent:Ae(e.message)},null,8,["for","textContent"]))])],2)):le("v-if",!0)],2),xt(N("div",{class:W(e.ns.e("input"))},[Q(s,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=f=>e.inputValue=f),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:W({invalid:e.validateError}),onKeydown:Wn(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),N("div",{class:W(e.ns.e("errormsg")),style:et({visibility:e.editorErrorMessage?"visible":"hidden"})},Ae(e.editorErrorMessage),7)],2),[[tn,e.showInput]])],10,oft),N("div",{class:W(e.ns.e("btns"))},[e.showCancelButton?(D(),de(l,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:W([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=f=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Wn(ut(f=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:ee(()=>[gt(Ae(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size"])):le("v-if",!0),xt(Q(l,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:W([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=f=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=Wn(ut(f=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:ee(()=>[gt(Ae(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size"]),[[tn,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,rft)]),_:3},8,["z-index","overlay-class","mask"]),[[tn,e.visible]])]),_:3})}var sft=De(nft,[["render",ift],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const hm=new Map,lft=e=>{let t=document.body;return e.appendTo&&(Ge(e.appendTo)&&(t=document.querySelector(e.appendTo)),oo(e.appendTo)&&(t=e.appendTo),oo(t)||(t=document.body)),t},uft=(e,t,n=null)=>{const r=Q(sft,e,Je(e.message)||wn(e.message)?{default:Je(e.message)?e.message:()=>e.message}:null);return r.appContext=n,zs(r,t),lft(e).appendChild(t.firstElementChild),r.component},cft=()=>document.createElement("div"),fft=(e,t)=>{const n=cft();e.onVanish=()=>{zs(null,n),hm.delete(a)},e.onAction=o=>{const i=hm.get(a);let s;e.showInput?s={value:a.inputValue,action:o}:s=o,e.callback?e.callback(s,r.proxy):o==="cancel"||o==="close"?e.distinguishCancelAndClose&&o!=="cancel"?i.reject("close"):i.reject("cancel"):i.resolve(s)};const r=uft(e,n,t),a=r.proxy;for(const o in e)nn(e,o)&&!nn(a.$props,o)&&(o==="closeIcon"&&St(e[o])?a[o]=Ts(e[o]):a[o]=e[o]);return a.visible=!0,a};function _p(e,t=null){if(!on)return Promise.reject();let n;return Ge(e)||wn(e)?e={message:e}:n=e.callback,new Promise((r,a)=>{const o=fft(e,t??_p._context);hm.set(o,{options:e,callback:n,resolve:r,reject:a})})}const dft=["alert","confirm","prompt"],vft={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};dft.forEach(e=>{_p[e]=hft(e)});function hft(e){return(t,n,r,a)=>{let o="";return St(n)?(r=n,o=""):Jt(n)?o="":o=n,_p(Object.assign({title:o,message:t,type:"",...vft[e]},r,{boxType:e}),a)}}_p.close=()=>{hm.forEach((e,t)=>{t.doClose()}),hm.clear()};_p._context=null;const Cu=_p;Cu.install=e=>{Cu._context=e._context,e.config.globalProperties.$msgbox=Cu,e.config.globalProperties.$messageBox=Cu,e.config.globalProperties.$alert=Cu.alert,e.config.globalProperties.$confirm=Cu.confirm,e.config.globalProperties.$prompt=Cu.prompt};const Ste=Cu,xte=["primary","success","info","warning","error"],pft=Ie({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:pn},id:{type:String,default:""},message:{type:ne([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:ne(Function),default:()=>{}},onClose:{type:ne(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...xte,""],default:""},zIndex:Number,closeIcon:{type:pn,default:Io}}),gft={destroy:()=>!0},mft=["id"],yft=["textContent"],bft={key:0},_ft=["innerHTML"],wft=q({name:"ElNotification",__name:"notification",props:pft,emits:gft,setup(e,{expose:t}){const n=e,{ns:r,zIndex:a}=b4("notification"),{nextZIndex:o,currentZIndex:i}=a,s=K(!1);let l;const u=R(()=>{const y=n.type;return y&&hc[n.type]?r.m(y):""}),c=R(()=>n.type&&hc[n.type]||n.icon),f=R(()=>n.position.endsWith("right")?"right":"left"),d=R(()=>n.position.startsWith("top")?"top":"bottom"),v=R(()=>{var y;return{[d.value]:`${n.offset}px`,zIndex:(y=n.zIndex)!=null?y:i.value}});function h(){n.duration>0&&({stop:l}=Mh(()=>{s.value&&g()},n.duration))}function p(){l==null||l()}function g(){s.value=!1}function m(y){switch(xn(y)){case ke.delete:case ke.backspace:p();break;case ke.esc:s.value&&g();break;default:h();break}}return Et(()=>{h(),o(),s.value=!0}),fn(document,"keydown",m),t({visible:s,close:g}),(y,b)=>(D(),de(Ur,{name:_(r).b("fade"),onBeforeLeave:y.onClose,onAfterLeave:b[1]||(b[1]=w=>y.$emit("destroy")),persisted:""},{default:ee(()=>[xt(N("div",{id:y.id,class:W([_(r).b(),y.customClass,f.value]),style:et(v.value),role:"alert",onMouseenter:p,onMouseleave:h,onClick:b[0]||(b[0]=(...w)=>y.onClick&&y.onClick(...w))},[c.value?(D(),de(_(Xe),{key:0,class:W([_(r).e("icon"),u.value])},{default:ee(()=>[(D(),de(Tt(c.value)))]),_:1},8,["class"])):le("v-if",!0),N("div",{class:W(_(r).e("group"))},[N("h2",{class:W(_(r).e("title")),textContent:Ae(y.title)},null,10,yft),xt(N("div",{class:W(_(r).e("content")),style:et(y.title?void 0:{margin:0})},[ue(y.$slots,"default",{},()=>[y.dangerouslyUseHTMLString?(D(),H(qe,{key:1},[le(" Caution here, message could've been compromised, never use user's input as message "),N("p",{innerHTML:y.message},null,8,_ft)],2112)):(D(),H("p",bft,Ae(y.message),1))])],6),[[tn,y.message]]),y.showClose?(D(),de(_(Xe),{key:0,class:W(_(r).e("closeBtn")),onClick:ut(g,["stop"])},{default:ee(()=>[(D(),de(Tt(y.closeIcon)))]),_:1},8,["class"])):le("v-if",!0)],2)],46,mft),[[tn,s.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Sft=De(wft,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const Hh={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},tw=16;let xft=1;const pd=function(e={},t){if(!on)return{close:()=>{}};(Ge(e)||wn(e))&&(e={message:e});const n=e.position||"top-right";let r=e.offset||0;Hh[n].forEach(({vm:c})=>{var f;r+=(((f=c.el)==null?void 0:f.offsetHeight)||0)+tw}),r+=tw;const a=`notification_${xft++}`,o=e.onClose,i={...e,offset:r,id:a,onClose:()=>{Cft(a,n,o)}};let s=document.body;oo(e.appendTo)?s=e.appendTo:Ge(e.appendTo)&&(s=document.querySelector(e.appendTo)),oo(s)||(s=document.body);const l=document.createElement("div"),u=Q(Sft,i,Je(i.message)?i.message:wn(i.message)?()=>i.message:null);return u.appContext=Jt(t)?pd._context:t,u.props.onDestroy=()=>{zs(null,l)},zs(u,l),Hh[n].push({vm:u}),s.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};xte.forEach(e=>{pd[e]=(t={},n)=>((Ge(t)||wn(t))&&(t={message:t}),pd({...t,type:e},n))});function Cft(e,t,n){const r=Hh[t],a=r.findIndex(({vm:u})=>{var c;return((c=u.component)==null?void 0:c.props.id)===e});if(a===-1)return;const{vm:o}=r[a];if(!o)return;n==null||n(o);const i=o.el.offsetHeight,s=t.split("-")[0];r.splice(a,1);const l=r.length;if(!(l<1))for(let u=a;u<l;u++){const{el:c,component:f}=r[u].vm,d=Number.parseInt(c.style[s],10)-i-tw;f.props.offset=d}}function Tft(){for(const e of Object.values(Hh))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}function kft(e="top-right"){var t,n,r,a;let o=((r=(n=(t=Hh[e][0])==null?void 0:t.vm.component)==null?void 0:n.props)==null?void 0:r.offset)||0;for(const{vm:i}of Hh[e])i.component.props.offset=o,o+=(((a=i.el)==null?void 0:a.offsetHeight)||0)+tw}pd.closeAll=Tft;pd.updateOffsets=kft;pd._context=null;const Mft=GX(pd,"$notify");var Aft=[Dct,Bct,cf,Ste,Mft,OQ],Eft=eDe([...Tct,...Aft]);const Ift=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Lft={class:"container"},Dft={class:"header-row"},Pft={class:"left-panel"},Rft={class:"sys-status"},Oft={key:0,class:"status-running"},Nft={key:1,class:"status-idle"},Bft={class:"header-actions"},Vft={class:"status-summary"},$ft={class:"filter-section"},zft={class:"action-section"},Fft={class:"name-cell"},Hft={key:0,class:"drawer-content"},Wft={class:"info-banner"},Gft={class:"visual-section"},Uft={class:"section-title"},Kft={key:0,class:"empty-hint"},jft={key:0,class:"chart-header"},Yft={class:"tag-group"},qft={class:"module-tag"},Xft={class:"sn-tag"},Zft=["id"],Jft={__name:"App",setup(e){const t=K(window.innerWidth),n=R(()=>t.value<768),r=()=>{t.value=window.innerWidth,v.forEach(B=>B&&B.resize())},a=K([]),o=K(!1),i=K("N/A"),s=K([]),l=K(!1),u=K(!1),c=K(null),f=sn({site:"all",keyword:""}),d=K();let v=[];const h=K(JSON.parse(localStorage.getItem("hide_list")||"[]"));let p=null;const g=B=>B?B.split("_").map(F=>F.charAt(0).toUpperCase()+F.slice(1).toLowerCase()).join("_"):"",m=B=>{if(!B||B==="N/A")return null;try{let F=B.toString().split(".")[0].replace(/[_/]/g,"-");const U=new Date(F);return isNaN(U.getTime())?null:U}catch{return null}},y=B=>{if(!B||B==="N/A")return 999;const F=m(B);return F?(new Date-F)/(1e3*3600):999},b=B=>{if(B.status==="已离线"||B.status==="异常"||!B.content||B.content==="{}")return 4;const F=m(B.latest_time);if(!F)return 4;const U=new Date,G=(U-F)/(1e3*3600*24);return G>7?4:G>2?3:U.getDate()!==F.getDate()?2:1},w=B=>{if(B.status==="已离线")return"已离线";if(B.status==="异常")return"异常";const F=b(B);return F===4?"缺失":F===3?">2天":F===2?"昨日":"在线"},S=B=>{const F=b(B);return["#909399","#67C23A","#E6A23C","#ff8c00","#F56C6C"][F]},x=B=>{const F=S(B);return{backgroundColor:F,borderColor:F,color:"white",border:"none"}},C=B=>B.reason&&B.reason!=="同步成功"?B.reason:b(B)===2?"⚠️ 待今日更新":"✅ 同步正常",T=B=>h.value.includes(B),M=B=>{B&&(h.value=h.value.filter(F=>F!==B),localStorage.setItem("hide_list",JSON.stringify(h.value)),cf.success("设备已恢复显示"))},k=()=>{if(s.value.length===0)return;const B=s.value.map(U=>U.name);let F=0;B.forEach(U=>{h.value.includes(U)||(h.value.push(U),F++)}),F>0?(localStorage.setItem("hide_list",JSON.stringify(h.value)),cf.warning(`已屏蔽 ${F} 个设备`),d.value&&d.value.clearSelection()):cf.info("选中的设备已在屏蔽列表中")},E=B=>{c.value=B,u.value=!0},A=R(()=>a.value.filter(B=>{const F=(f.site==="all"||B.source.includes(f.site))&&B.name.toLowerCase().includes(f.keyword.toLowerCase());return l.value?F:F&&!T(B.name)}).sort((B,F)=>b(F)-b(B))),I=({row:B})=>B.status==="已离线"?"offline-row":"",O=async()=>{try{const B=await i3.get("/api/logs");if(a.value=B.data,B.data.length>0){const F=B.data.reduce((U,G)=>U.check_time>G.check_time?U:G);i.value=F.check_time}}catch{console.warn("API Error, using mock data for display")}},z=async()=>{try{const B=await i3.get("/api/status");o.value=B.data.is_running,o.value?setTimeout(z,2e3):O()}catch{o.value=!1}},$=async(B=!1)=>{const F=y(i.value);if(!B&&F<6)try{await Ste.confirm(`数据更新于 ${F.toFixed(1)} 小时前。后端每日10点自动更新,通常无需手动操作。
|
||
是否强制重新爬取?`,"数据尚新",{confirmButtonText:"强制爬取",cancelButtonText:"仅加载最新",type:"warning"})}catch{O(),cf.success("已加载最新数据库记录");return}try{o.value=!0,await i3.post("/api/run"),z(),cf.success("任务已下发")}catch{o.value=!1,cf.warning("后台已有任务在运行")}},P=R(()=>{var B,F;return(F=(B=c.value)==null?void 0:B.source)==null?void 0:F.includes("106")}),L=R(()=>{var B;if(!((B=c.value)!=null&&B.content)||c.value.content==="{}")return[];if(P.value){const F=[],U=/FS\d_Info,Model,([^,]+),SN,([^,]+).*?Wavelength,([\d\.,\s]+)/gs;let G;const Y=c.value.content;for(;(G=U.exec(Y))!==null;){const X=G[3].split(",").map(Number).filter(oe=>!isNaN(oe)),te=[];for(let oe=1;oe<=4;oe++){const re=Y.match(new RegExp(`${G[1].trim()}_P${oe}[^0-9-]*([\\d\\.,\\s-]+)`,"i"));if(re){const ce=re[1].split(",").map(ie=>parseFloat(ie));ce.some(ie=>ie!==null)&&te.push({name:`P${oe}`,data:ce,color:["#5470c6","#91cc75","#fac858","#ee6666"][oe-1]})}}te.length&&F.push({model:G[1],sn:G[2],xAxis:X,series:te})}return F}else try{const F=JSON.parse(c.value.content);return F.wavelenth?[{title:c.value.name,xAxis:F.wavelenth,series:[{name:"DownSpec",data:F.downspec,color:"#409EFF"},{name:"UpSpec",data:F.upspec,color:"#67C23A"}]}]:[]}catch{return[]}}),V=()=>{v=[],ze(()=>{L.value.forEach((B,F)=>{const U=document.getElementById(`chart-${F}`);if(U){Wx(U)&&Wx(U).dispose();const G=bhe(U);v.push(G),G.setOption({title:{text:P.value?`SN: ${B.sn}`:B.title,left:"center",top:10,textStyle:{fontSize:n.value?14:18}},tooltip:{trigger:"axis",confine:!0},legend:{top:35,type:"scroll"},grid:{top:70,bottom:30,right:n.value?10:30,left:n.value?40:50},xAxis:{type:"category",data:B.xAxis,boundaryGap:!1},yAxis:{type:"value",min:"dataMin",max:"dataMax"},series:B.series.map(Y=>({name:Y.name,type:"line",data:Y.data,connectNulls:!1,smooth:!0,showSymbol:!1,lineStyle:{width:2,color:Y.color},areaStyle:{opacity:.1,color:Y.color}}))})}})})};return Et(()=>{document.title="光谱数据监控",O(),window.addEventListener("resize",r),p=setInterval(()=>{o.value||O()},3e5)}),un(()=>{window.removeEventListener("resize",r),p&&clearInterval(p),v.forEach(B=>B&&B.dispose())}),(B,F)=>{const U=Ft("el-icon"),G=Ft("el-button"),Y=Ft("el-tag"),X=Ft("el-radio-button"),te=Ft("el-radio-group"),oe=Ft("el-input"),re=Ft("el-checkbox"),ce=Ft("el-table-column"),ie=Ft("el-link"),Z=Ft("el-table"),se=Ft("el-card"),J=Ft("el-descriptions-item"),ae=Ft("el-descriptions"),fe=Ft("el-empty"),ve=Ft("el-drawer"),me=xm("loading");return D(),H("div",Lft,[Q(se,{shadow:"never",class:"main-card"},{header:ee(()=>[N("div",Dft,[N("div",Pft,[F[7]||(F[7]=N("h2",{class:"sys-title"},"📡 光谱数据监控",-1)),N("div",Rft,[o.value?(D(),H("span",Oft,[Q(U,{class:"is-loading"},{default:ee(()=>[Q(_(si))]),_:1}),F[6]||(F[6]=gt(" 正在执行同步任务... ",-1))])):(D(),H("span",Nft,[Q(U,null,{default:ee(()=>[Q(_(o1))]),_:1}),gt(" 系统就绪 (最后更新: "+Ae(i.value)+") ",1)]))])]),N("div",Bft,[Q(G,{type:"primary",loading:o.value,onClick:F[0]||(F[0]=pe=>$(!1)),round:"",icon:"Refresh",size:n.value?"small":"default"},{default:ee(()=>[...F[8]||(F[8]=[gt("手动同步",-1)])]),_:1},8,["loading","size"])])])]),default:ee(()=>[N("div",Vft,[Q(Y,{type:"danger",effect:"dark",class:"res-tag"},{default:ee(()=>[...F[9]||(F[9]=[gt("红色:已离线 / 异常 / 滞后>7天",-1)])]),_:1}),Q(Y,{type:"warning",color:"#ff8c00",effect:"dark",class:"res-tag",style:{"border-color":"#ff8c00"}},{default:ee(()=>[...F[10]||(F[10]=[gt("橘色:滞后 2-7 天",-1)])]),_:1}),Q(Y,{type:"warning",effect:"dark",class:"res-tag"},{default:ee(()=>[...F[11]||(F[11]=[gt("黄色:滞后 1-2 天",-1)])]),_:1}),Q(Y,{type:"success",effect:"dark",class:"res-tag"},{default:ee(()=>[...F[12]||(F[12]=[gt("绿色:正常且今日已同步",-1)])]),_:1})]),N("div",{class:W(["toolbar",{"mobile-toolbar":n.value}])},[N("div",$ft,[Q(te,{modelValue:f.site,"onUpdate:modelValue":F[1]||(F[1]=pe=>f.site=pe),size:n.value?"small":"default"},{default:ee(()=>[Q(X,{value:"all"},{default:ee(()=>[...F[13]||(F[13]=[gt("全部",-1)])]),_:1}),Q(X,{value:"106"},{default:ee(()=>[...F[14]||(F[14]=[gt("106 塔上光谱仪",-1)])]),_:1}),Q(X,{value:"82"},{default:ee(()=>[...F[15]||(F[15]=[gt("82 高光谱传感器",-1)])]),_:1})]),_:1},8,["modelValue","size"]),Q(oe,{modelValue:f.keyword,"onUpdate:modelValue":F[2]||(F[2]=pe=>f.keyword=pe),placeholder:"搜索设备名称...",class:"search-input",clearable:""},null,8,["modelValue"])]),N("div",zft,[Q(re,{modelValue:l.value,"onUpdate:modelValue":F[3]||(F[3]=pe=>l.value=pe),label:"显示屏蔽",border:"",style:{"margin-right":"10px"},size:n.value?"small":"default"},null,8,["modelValue","size"]),Q(G,{type:"warning",plain:"",disabled:s.value.length===0,onClick:k,size:n.value?"small":"default"},{default:ee(()=>[...F[16]||(F[16]=[gt("屏蔽选中",-1)])]),_:1},8,["disabled","size"])])],2),xt((D(),de(Z,{ref_key:"multipleTableRef",ref:d,data:A.value,border:"",height:"600",onSelectionChange:F[4]||(F[4]=pe=>s.value=pe),"row-class-name":I,style:{width:"100%"}},{default:ee(()=>[Q(ce,{type:"selection",width:"40",align:"center",fixed:"left"}),Q(ce,{label:"状态",width:n.value?90:120,align:"center"},{default:ee(({row:pe})=>[Q(Y,{style:et(x(pe)),effect:"dark",size:"small"},{default:ee(()=>[gt(Ae(w(pe)),1)]),_:2},1032,["style"])]),_:1},8,["width"]),Q(ce,{label:"名称","min-width":"180"},{default:ee(({row:pe})=>[N("div",Fft,[Q(ie,{type:"primary",underline:"hover",onClick:Ne=>E(pe),style:{"font-weight":"bold","font-size":"14px"}},{default:ee(()=>[gt(Ae(g(pe.name)),1)]),_:2},1032,["onClick"]),T(pe.name)?(D(),de(Y,{key:0,type:"info",size:"small",style:{"margin-left":"5px"}},{default:ee(()=>[...F[17]||(F[17]=[gt("隐藏",-1)])]),_:1})):le("",!0)])]),_:1}),n.value?le("",!0):(D(),de(ce,{key:0,prop:"reason",label:"反馈","min-width":"150"},{default:ee(({row:pe})=>[N("span",{style:et({color:S(pe),fontWeight:"bold"})},Ae(C(pe)),5)]),_:1})),n.value?le("",!0):(D(),de(ce,{key:1,prop:"offset",label:"时效",width:"80",align:"center"})),Q(ce,{prop:"latest_time",label:"数据时间",width:"170",align:"center"}),l.value?(D(),de(ce,{key:2,label:"操作",width:"70",align:"center",fixed:"right"},{default:ee(({row:pe})=>[T(pe.name)?(D(),de(G,{key:0,type:"primary",link:"",onClick:Ne=>M(pe.name)},{default:ee(()=>[...F[18]||(F[18]=[gt("恢复",-1)])]),_:1},8,["onClick"])):le("",!0)]),_:1})):le("",!0)]),_:1},8,["data"])),[[me,o.value]])]),_:1}),Q(ve,{modelValue:u.value,"onUpdate:modelValue":F[5]||(F[5]=pe=>u.value=pe),title:"设备详情",size:n.value?"100%":"80%",onOpened:V,direction:"rtl"},{default:ee(()=>[c.value?(D(),H("div",Hft,[N("div",Wft,[Q(ae,{column:n.value?1:4,border:"",size:"small"},{default:ee(()=>[Q(J,{label:"设备名称"},{default:ee(()=>[gt(Ae(g(c.value.name)),1)]),_:1}),Q(J,{label:"当前状态"},{default:ee(()=>[Q(Y,{size:"small",style:et(x(c.value))},{default:ee(()=>[gt(Ae(w(c.value)),1)]),_:1},8,["style"])]),_:1}),Q(J,{label:"数据时间"},{default:ee(()=>[gt(Ae(c.value.latest_time),1)]),_:1}),Q(J,{label:"检查时间"},{default:ee(()=>[gt(Ae(c.value.check_time),1)]),_:1})]),_:1},8,["column"])]),N("div",Gft,[N("h3",Uft,[Q(U,null,{default:ee(()=>[Q(_(JX))]),_:1}),gt(" "+Ae(P.value?"光谱能量分布 (完整原始数据)":"高光谱传感器数据 (Up/Down Spec)"),1)]),L.value.length===0?(D(),H("div",Kft,[Q(fe,{description:"暂无有效的图表数据"})])):le("",!0),(D(!0),H(qe,null,Wt(L.value,(pe,Ne)=>(D(),H("div",{key:Ne,class:"chart-container"},[P.value?(D(),H("div",jft,[N("div",Yft,[N("span",qft,"型号: "+Ae(pe.model),1),N("span",Xft,"SN: "+Ae(pe.sn),1)])])):le("",!0),N("div",{id:"chart-"+Ne,class:W(["echart-box",{"no-header":!P.value}])},null,10,Zft)]))),128))])])):le("",!0)]),_:1},8,["modelValue","size"])])}}},Qft=Ift(Jft,[["__scopeId","data-v-9872596e"]]);var Cte={exports:{}};const edt=eUe(soe);var d8={exports:{}};/*!
|
||
* clipboard.js v2.0.11
|
||
* https://clipboardjs.com/
|
||
*
|
||
* Licensed MIT © Zeno Rocha
|
||
*/var E$;function tdt(){return E$||(E$=1,function(e,t){(function(r,a){e.exports=a()})(Xi,function(){return function(){var n={686:function(o,i,s){s.d(i,{default:function(){return F}});var l=s(279),u=s.n(l),c=s(370),f=s.n(c),d=s(817),v=s.n(d);function h(U){try{return document.execCommand(U)}catch{return!1}}var p=function(G){var Y=v()(G);return h("cut"),Y},g=p;function m(U){var G=document.documentElement.getAttribute("dir")==="rtl",Y=document.createElement("textarea");Y.style.fontSize="12pt",Y.style.border="0",Y.style.padding="0",Y.style.margin="0",Y.style.position="absolute",Y.style[G?"right":"left"]="-9999px";var X=window.pageYOffset||document.documentElement.scrollTop;return Y.style.top="".concat(X,"px"),Y.setAttribute("readonly",""),Y.value=U,Y}var y=function(G,Y){var X=m(G);Y.container.appendChild(X);var te=v()(X);return h("copy"),X.remove(),te},b=function(G){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},X="";return typeof G=="string"?X=y(G,Y):G instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(G==null?void 0:G.type)?X=y(G.value,Y):(X=v()(G),h("copy")),X},w=b;function S(U){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(Y){return typeof Y}:S=function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},S(U)}var x=function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Y=G.action,X=Y===void 0?"copy":Y,te=G.container,oe=G.target,re=G.text;if(X!=="copy"&&X!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(oe!==void 0)if(oe&&S(oe)==="object"&&oe.nodeType===1){if(X==="copy"&&oe.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(X==="cut"&&(oe.hasAttribute("readonly")||oe.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(re)return w(re,{container:te});if(oe)return X==="cut"?g(oe):w(oe,{container:te})},C=x;function T(U){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?T=function(Y){return typeof Y}:T=function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},T(U)}function M(U,G){if(!(U instanceof G))throw new TypeError("Cannot call a class as a function")}function k(U,G){for(var Y=0;Y<G.length;Y++){var X=G[Y];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(U,X.key,X)}}function E(U,G,Y){return G&&k(U.prototype,G),Y&&k(U,Y),U}function A(U,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function");U.prototype=Object.create(G&&G.prototype,{constructor:{value:U,writable:!0,configurable:!0}}),G&&I(U,G)}function I(U,G){return I=Object.setPrototypeOf||function(X,te){return X.__proto__=te,X},I(U,G)}function O(U){var G=P();return function(){var X=L(U),te;if(G){var oe=L(this).constructor;te=Reflect.construct(X,arguments,oe)}else te=X.apply(this,arguments);return z(this,te)}}function z(U,G){return G&&(T(G)==="object"||typeof G=="function")?G:$(U)}function $(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}function P(){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 L(U){return L=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},L(U)}function V(U,G){var Y="data-clipboard-".concat(U);if(G.hasAttribute(Y))return G.getAttribute(Y)}var B=function(U){A(Y,U);var G=O(Y);function Y(X,te){var oe;return M(this,Y),oe=G.call(this),oe.resolveOptions(te),oe.listenClick(X),oe}return E(Y,[{key:"resolveOptions",value:function(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof te.action=="function"?te.action:this.defaultAction,this.target=typeof te.target=="function"?te.target:this.defaultTarget,this.text=typeof te.text=="function"?te.text:this.defaultText,this.container=T(te.container)==="object"?te.container:document.body}},{key:"listenClick",value:function(te){var oe=this;this.listener=f()(te,"click",function(re){return oe.onClick(re)})}},{key:"onClick",value:function(te){var oe=te.delegateTarget||te.currentTarget,re=this.action(oe)||"copy",ce=C({action:re,container:this.container,target:this.target(oe),text:this.text(oe)});this.emit(ce?"success":"error",{action:re,text:ce,trigger:oe,clearSelection:function(){oe&&oe.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(te){return V("action",te)}},{key:"defaultTarget",value:function(te){var oe=V("target",te);if(oe)return document.querySelector(oe)}},{key:"defaultText",value:function(te){return V("text",te)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(te){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return w(te,oe)}},{key:"cut",value:function(te){return g(te)}},{key:"isSupported",value:function(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],oe=typeof te=="string"?[te]:te,re=!!document.queryCommandSupported;return oe.forEach(function(ce){re=re&&!!document.queryCommandSupported(ce)}),re}}]),Y}(u()),F=B},828:function(o){var i=9;if(typeof Element<"u"&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function l(u,c){for(;u&&u.nodeType!==i;){if(typeof u.matches=="function"&&u.matches(c))return u;u=u.parentNode}}o.exports=l},438:function(o,i,s){var l=s(828);function u(d,v,h,p,g){var m=f.apply(this,arguments);return d.addEventListener(h,m,g),{destroy:function(){d.removeEventListener(h,m,g)}}}function c(d,v,h,p,g){return typeof d.addEventListener=="function"?u.apply(null,arguments):typeof h=="function"?u.bind(null,document).apply(null,arguments):(typeof d=="string"&&(d=document.querySelectorAll(d)),Array.prototype.map.call(d,function(m){return u(m,v,h,p,g)}))}function f(d,v,h,p){return function(g){g.delegateTarget=l(g.target,v),g.delegateTarget&&p.call(d,g)}}o.exports=c},879:function(o,i){i.node=function(s){return s!==void 0&&s instanceof HTMLElement&&s.nodeType===1},i.nodeList=function(s){var l=Object.prototype.toString.call(s);return s!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in s&&(s.length===0||i.node(s[0]))},i.string=function(s){return typeof s=="string"||s instanceof String},i.fn=function(s){var l=Object.prototype.toString.call(s);return l==="[object Function]"}},370:function(o,i,s){var l=s(879),u=s(438);function c(h,p,g){if(!h&&!p&&!g)throw new Error("Missing required arguments");if(!l.string(p))throw new TypeError("Second argument must be a String");if(!l.fn(g))throw new TypeError("Third argument must be a Function");if(l.node(h))return f(h,p,g);if(l.nodeList(h))return d(h,p,g);if(l.string(h))return v(h,p,g);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function f(h,p,g){return h.addEventListener(p,g),{destroy:function(){h.removeEventListener(p,g)}}}function d(h,p,g){return Array.prototype.forEach.call(h,function(m){m.addEventListener(p,g)}),{destroy:function(){Array.prototype.forEach.call(h,function(m){m.removeEventListener(p,g)})}}}function v(h,p,g){return u(document.body,h,p,g)}o.exports=c},817:function(o){function i(s){var l;if(s.nodeName==="SELECT")s.focus(),l=s.value;else if(s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"){var u=s.hasAttribute("readonly");u||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),u||s.removeAttribute("readonly"),l=s.value}else{s.hasAttribute("contenteditable")&&s.focus();var c=window.getSelection(),f=document.createRange();f.selectNodeContents(s),c.removeAllRanges(),c.addRange(f),l=c.toString()}return l}o.exports=i},279:function(o){function i(){}i.prototype={on:function(s,l,u){var c=this.e||(this.e={});return(c[s]||(c[s]=[])).push({fn:l,ctx:u}),this},once:function(s,l,u){var c=this;function f(){c.off(s,f),l.apply(u,arguments)}return f._=l,this.on(s,f,u)},emit:function(s){var l=[].slice.call(arguments,1),u=((this.e||(this.e={}))[s]||[]).slice(),c=0,f=u.length;for(c;c<f;c++)u[c].fn.apply(u[c].ctx,l);return this},off:function(s,l){var u=this.e||(this.e={}),c=u[s],f=[];if(c&&l)for(var d=0,v=c.length;d<v;d++)c[d].fn!==l&&c[d].fn._!==l&&f.push(c[d]);return f.length?u[s]=f:delete u[s],this}},o.exports=i,o.exports.TinyEmitter=i}},r={};function a(o){if(r[o])return r[o].exports;var i=r[o]={exports:{}};return n[o](i,i.exports,a),i.exports}return function(){a.n=function(o){var i=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(i,{a:i}),i}}(),function(){a.d=function(o,i){for(var s in i)a.o(i,s)&&!a.o(o,s)&&Object.defineProperty(o,s,{enumerable:!0,get:i[s]})}}(),function(){a.o=function(o,i){return Object.prototype.hasOwnProperty.call(o,i)}}(),a(686)}().default})}(d8)),d8.exports}(function(e,t){(function(n,r){e.exports=r(edt,tdt())})(Xi,function(n,r){return i={},a.m=o=[function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.default=(c,f)=>{const d=c.__vccOpts||c;for(var[v,h]of f)d[v]=h;return d}},function(s,l){s.exports=n},function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0}),v(u(1));var c=v(u(22)),f=v(u(42)),d=u(43);function v(h){return h&&h.__esModule?h:{default:h}}l.default={name:"JsonViewer",components:{JsonBox:c.default},props:{value:{type:[Object,Array,String,Number,Boolean,Function],required:!0},expanded:{type:Boolean,default:!1},expandDepth:{type:Number,default:1},copyable:{type:[Boolean,Object],default:!1},sort:{type:Boolean,default:!1},boxed:{type:Boolean,default:!1},theme:{type:String,default:"jv-light"},timeformat:{type:Function,default:function(h){return h.toLocaleString()}},previewMode:{type:Boolean,default:!1},showArrayIndex:{type:Boolean,default:!0},showDoubleQuotes:{type:Boolean,default:!1}},provide:function(){return{expandDepth:this.expandDepth,timeformat:this.timeformat,onKeyclick:this.onKeyclick}},data:function(){return{copied:!1,expandableCode:!1,expandCode:this.expanded}},computed:{jvClass:function(){return"jv-container "+this.theme+(this.boxed?" boxed":"")},copyText:function(){var h=this.copyable;return{copyText:h.copyText||"copy",copiedText:h.copiedText||"copied!",timeout:h.timeout||2e3,align:h.align}}},watch:{value:function(){this.onResized()}},mounted:function(){var h=this;this.debounceResized=(0,d.debounce)(this.debResized.bind(this),200),this.boxed&&this.$refs.jsonBox&&(this.onResized(),this.$refs.jsonBox.$el.addEventListener("resized",this.onResized,!0)),this.copyable&&new f.default(this.$refs.clip,{container:this.$refs.viewer,text:function(){return JSON.stringify(h.value,null,2)}}).on("success",function(p){h.onCopied(p)})},methods:{onResized:function(){this.debounceResized()},debResized:function(){var h=this;this.$nextTick(function(){h.$refs.jsonBox&&(250<=h.$refs.jsonBox.$el.clientHeight?h.expandableCode=!0:h.expandableCode=!1)})},onCopied:function(h){var p=this;this.copied||(this.copied=!0,setTimeout(function(){p.copied=!1},this.copyText.timeout),this.$emit("copied",h))},toggleExpandCode:function(){this.expandCode=!this.expandCode},onKeyclick:function(h){this.$emit("keyclick",h)}}}},function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0});var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},f=u(1),d=w(u(31)),v=w(u(32)),h=w(u(33)),p=w(u(34)),g=w(u(35)),m=w(u(36)),y=w(u(37)),b=w(u(38));function w(S){return S&&S.__esModule?S:{default:S}}l.default={name:"JsonBox",inject:["expandDepth","onKeyclick"],props:{value:{type:[Object,Array,String,Number,Boolean,Function,Date],default:null},keyName:{type:String,default:""},sort:Boolean,depth:{type:Number,default:0},previewMode:Boolean,forceExpand:Boolean,showArrayIndex:Boolean,showDoubleQuotes:Boolean,path:{type:String,default:"$"}},data:function(){return{expand:!0,forceExpandMe:this.forceExpand}},mounted:function(){this.expand=this.previewMode||!(this.depth>=this.expandDepth)||this.forceExpandMe},methods:{toggle:function(){this.expand=!this.expand,this.dispatchEvent()},toggleAll:function(){this.expand=!this.expand,this.forceExpandMe=this.expand,this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch{var S=document.createEvent("Event");S.initEvent("resized",!0,!1),this.$el.dispatchEvent(S)}},getPath:function(){for(var S=[this.keyName],x=this.$parent;x.depth;)x.$el.classList.contains("jv-node")&&S.push(x.keyName),x=x.$parent;return S.reverse()}},render:function(){var S=this,x=[],C=void 0;this.value===null||this.value===void 0?C=v.default:Array.isArray(this.value)?C=m.default:Object.prototype.toString.call(this.value)==="[object Date]"?C=b.default:c(this.value)==="object"?C=g.default:typeof this.value=="number"?C=h.default:typeof this.value=="string"?C=d.default:typeof this.value=="boolean"?C=p.default:typeof this.value=="function"&&(C=y.default);var T=this.keyName&&this.value&&(Array.isArray(this.value)||c(this.value)==="object"&&Object.prototype.toString.call(this.value)!=="[object Date]");return!this.previewMode&&T&&x.push((0,f.h)("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:function(M){M.altKey?S.toggleAll():S.toggle()}})),this.keyName&&x.push((0,f.h)("span",{class:{"jv-key":!0},innerText:this.showDoubleQuotes?'"'+this.keyName+'":':this.keyName+":",onClick:function(){S.onKeyclick(S.path)}})),x.push((0,f.h)(C,{class:{"jv-push":!0},jsonValue:this.value,keyName:this.keyName,sort:this.sort,depth:this.depth,expand:this.expand,previewMode:this.previewMode,forceExpand:this.forceExpandMe,showArrayIndex:this.showArrayIndex,showDoubleQuotes:this.showDoubleQuotes,path:this.path,"onUpdate:expand":function(M){S.expand=M},"onUpdate:expandAll":function(M){S.expand=M,S.forceExpandMe=S.expand}})),(0,f.h)("div",{class:{"jv-node":!0,"jv-key-node":!!this.keyName&&!T,toggle:!this.previewMode&&T}},x)}}},function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0});var c=u(1),f=/^\w+:\/\//;l.default={name:"JsonString",props:{jsonValue:{type:String,required:!0}},data:function(){return{expand:!0,canExtend:!1}},mounted:function(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle:function(){this.expand=!this.expand}},render:function(){var d=this.jsonValue,v=f.test(d),h=void 0;return this.expand?(h={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},v?h.innerHTML='"'+(d='<a href="'+d+'" target="_blank" class="jv-link">'+d+"</a>").toString()+'"':h.innerText='"'+d.toString()+'"'):h={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},(0,c.h)("span",{},[this.canExtend&&(0,c.h)("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),(0,c.h)("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),(0,c.h)("span",h)])}}},function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0});var c=u(1);l.default={name:"JsonUndefined",functional:!0,props:{jsonValue:{type:Object,default:null}},render:function(){return(0,c.h)("span",{class:{"jv-item":!0,"jv-undefined":!0},innerText:this.jsonValue===null?"null":"undefined"})}}},function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0});var c=u(1);l.default={name:"JsonNumber",functional:!0,props:{jsonValue:{type:Number,required:!0}},render:function(){var f=Number.isInteger(this.jsonValue);return(0,c.h)("span",{class:{"jv-item":!0,"jv-number":!0,"jv-number-integer":f,"jv-number-float":!f},innerText:this.jsonValue.toString()})}}},function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0});var c=u(1);l.default={name:"JsonBoolean",functional:!0,props:{jsonValue:Boolean},render:function(){return(0,c.h)("span",{class:{"jv-item":!0,"jv-boolean":!0},innerText:this.jsonValue.toString()})}}},function(s,l,f){Object.defineProperty(l,"__esModule",{value:!0});var c=f(1),f=f(22),d=(f=f)&&f.__esModule?f:{default:f};l.default={name:"JsonObject",props:{jsonValue:{type:Object,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean,forceExpand:Boolean,sort:Boolean,previewMode:Boolean,showArrayIndex:Boolean,showDoubleQuotes:Boolean,path:String},data:function(){return{value:{}}},computed:{ordered:function(){var v=this;if(!this.sort)return this.value;var h={};return Object.keys(this.value).sort().forEach(function(p){h[p]=v.value[p]}),h}},watch:{jsonValue:function(v){this.setValue(v)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(v){var h=this;setTimeout(function(){h.value=v},0)},toggle:function(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},toggleAll:function(){this.$emit("update:expandAll",!this.expand),this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch{var v=document.createEvent("Event");v.initEvent("resized",!0,!1),this.$el.dispatchEvent(v)}}},render:function(){var v,h=this,p=[];if(this.previewMode||this.keyName||p.push((0,c.h)("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:function(m){m.altKey?h.toggleAll():h.toggle()}})),p.push((0,c.h)("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"{"})),this.expand)for(var g in this.ordered)this.ordered.hasOwnProperty(g)&&(v=this.ordered[g],p.push((0,c.h)(d.default,{key:g,style:{display:this.expand?void 0:"none"},sort:this.sort,keyName:g,depth:this.depth+1,value:v,previewMode:this.previewMode,forceExpand:this.forceExpand,showArrayIndex:this.showArrayIndex,showDoubleQuotes:this.showDoubleQuotes,path:this.path+"."+g})));return!this.expand&&Object.keys(this.value).length&&p.push((0,c.h)("span",{class:{"jv-ellipsis":!0},onClick:function(m){m.altKey?h.toggleAll():h.toggle()},title:"click to reveal object content (keys: "+Object.keys(this.ordered).join(", ")+")",innerText:"..."})),p.push((0,c.h)("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"}"})),(0,c.h)("span",p)}}},function(s,l,f){Object.defineProperty(l,"__esModule",{value:!0});var c=f(1),f=f(22),d=(f=f)&&f.__esModule?f:{default:f};l.default={name:"JsonArray",props:{jsonValue:{type:Array,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},sort:Boolean,expand:Boolean,forceExpand:Boolean,previewMode:Boolean,showArrayIndex:Boolean,showDoubleQuotes:Boolean,path:String},data:function(){return{value:[]}},watch:{jsonValue:function(v){this.setValue(v)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(v){var h=this,p=1<arguments.length&&arguments[1]!==void 0?arguments[1]:0;p===0&&(this.value=[]),setTimeout(function(){v.length>p&&(h.value.push(v[p]),h.setValue(v,p+1))},0)},toggle:function(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},toggleAll:function(){this.$emit("update:expandAll",!this.expand),this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch{var v=document.createEvent("Event");v.initEvent("resized",!0,!1),this.$el.dispatchEvent(v)}}},render:function(){var v=this,h=[];return this.previewMode||this.keyName||h.push((0,c.h)("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:function(p){p.altKey?v.toggleAll():v.toggle()}})),h.push((0,c.h)("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"["})),this.expand&&this.value.forEach(function(p,g){h.push((0,c.h)(d.default,{key:g,style:{display:v.expand?void 0:"none"},sort:v.sort,keyName:v.showArrayIndex?""+g:"",depth:v.depth+1,value:p,previewMode:v.previewMode,forceExpand:v.forceExpand,showArrayIndex:v.showArrayIndex,showDoubleQuotes:v.showDoubleQuotes,path:v.path+"."+g}))}),!this.expand&&this.value.length&&h.push((0,c.h)("span",{class:{"jv-ellipsis":!0},onClick:function(p){p.altKey?v.toggleAll():v.toggle()},title:"click to reveal "+this.value.length+" hidden items",innerText:"..."})),h.push((0,c.h)("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"]"})),(0,c.h)("span",h)}}},function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0});var c=u(1);l.default={name:"JsonFunction",functional:!0,props:{jsonValue:{type:Function,required:!0}},render:function(){return(0,c.h)("span",{class:{"jv-item":!0,"jv-function":!0},attrs:{title:this.jsonValue.toString()},innerHTML:"<function>"})}}},function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0});var c=u(1);l.default={name:"JsonDate",inject:["timeformat"],functional:!0,props:{jsonValue:{type:Date,required:!0}},render:function(){var f=this.jsonValue,d=this.timeformat;return(0,c.h)("span",{class:{"jv-item":!0,"jv-string":!0},innerText:'"'+d(f)+'"'})}}},function(s,l,u){u.r(l);var c,f=u(2),d=u.n(f);for(c in u.d(l,"default",function(){return d.a}),f)["default","default"].indexOf(c)<0&&function(v){u.d(l,v,function(){return f[v]})}(c)},function(s,l,u){u.r(l);var c,f=u(3),d=u.n(f);for(c in u.d(l,"default",function(){return d.a}),f)["default","default"].indexOf(c)<0&&function(v){u.d(l,v,function(){return f[v]})}(c)},function(s,l,u){u.r(l);var c,f=u(4),d=u.n(f);for(c in u.d(l,"default",function(){return d.a}),f)["default","default"].indexOf(c)<0&&function(v){u.d(l,v,function(){return f[v]})}(c)},function(s,l,u){u.r(l);var c,f=u(5),d=u.n(f);for(c in u.d(l,"default",function(){return d.a}),f)["default","default"].indexOf(c)<0&&function(v){u.d(l,v,function(){return f[v]})}(c)},function(s,l,u){u.r(l);var c,f=u(6),d=u.n(f);for(c in u.d(l,"default",function(){return d.a}),f)["default","default"].indexOf(c)<0&&function(v){u.d(l,v,function(){return f[v]})}(c)},function(s,l,u){u.r(l);var c,f=u(7),d=u.n(f);for(c in u.d(l,"default",function(){return d.a}),f)["default","default"].indexOf(c)<0&&function(v){u.d(l,v,function(){return f[v]})}(c)},function(s,l,u){u.r(l);var c,f=u(8),d=u.n(f);for(c in u.d(l,"default",function(){return d.a}),f)["default","default"].indexOf(c)<0&&function(v){u.d(l,v,function(){return f[v]})}(c)},function(s,l,u){u.r(l);var c,f=u(9),d=u.n(f);for(c in u.d(l,"default",function(){return d.a}),f)["default","default"].indexOf(c)<0&&function(v){u.d(l,v,function(){return f[v]})}(c)},function(s,l,u){u.r(l);var c,f=u(10),d=u.n(f);for(c in u.d(l,"default",function(){return d.a}),f)["default","default"].indexOf(c)<0&&function(v){u.d(l,v,function(){return f[v]})}(c)},function(s,l,u){u.r(l);var c,f=u(11),d=u.n(f);for(c in u.d(l,"default",function(){return d.a}),f)["default","default"].indexOf(c)<0&&function(v){u.d(l,v,function(){return f[v]})}(c)},function(s,l,u){u.r(l);var c,f=u(13);for(c in f)c!=="default"&&function(v){u.d(l,v,function(){return f[v]})}(c);u(39);var d=u(0),d=u.n(d)()(f.default,[["__file","lib/json-box.vue"]]);l.default=d},function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.render=function(f,d,v,h,p,g){var m=(0,c.resolveComponent)("json-box");return(0,c.openBlock)(),(0,c.createElementBlock)("div",{ref:"viewer",class:(0,c.normalizeClass)(g.jvClass)},[v.copyable?((0,c.openBlock)(),(0,c.createElementBlock)("div",{key:0,class:(0,c.normalizeClass)("jv-tooltip "+(g.copyText.align||"right"))},[(0,c.createElementVNode)("span",{ref:"clip",class:(0,c.normalizeClass)(["jv-button",{copied:p.copied}])},[(0,c.renderSlot)(f.$slots,"copy",{copied:p.copied},function(){return[(0,c.createTextVNode)((0,c.toDisplayString)(p.copied?g.copyText.copiedText:g.copyText.copyText),1)]})],2)],2)):(0,c.createCommentVNode)("v-if",!0),(0,c.createElementVNode)("div",{class:(0,c.normalizeClass)(["jv-code",{open:p.expandCode,boxed:v.boxed}])},[(0,c.createVNode)(m,{ref:"jsonBox",value:v.value,sort:v.sort,"preview-mode":v.previewMode,"show-array-index":v.showArrayIndex,"show-double-quotes":v.showDoubleQuotes,onKeyclick:g.onKeyclick},null,8,["value","sort","preview-mode","show-array-index","show-double-quotes","onKeyclick"])],2),p.expandableCode&&v.boxed?((0,c.openBlock)(),(0,c.createElementBlock)("div",{key:1,class:"jv-more",onClick:d[0]||(d[0]=function(){return g.toggleExpandCode&&g.toggleExpandCode.apply(g,arguments)})},[(0,c.createElementVNode)("span",{class:(0,c.normalizeClass)(["jv-toggle",{open:!!p.expandCode}])},null,2)])):(0,c.createCommentVNode)("v-if",!0)],2)};var c=u(1)},function(s,l,u){var c=u(40);typeof c=="string"&&(c=[[s.i,c,""]]);var f={hmr:!0,transform:void 0};u(26)(c,f),c.locals&&(s.exports=c.locals)},function(s,l,u){s.exports=function(c){var f=[];return f.toString=function(){return this.map(function(d){var v=function(h,p){var g=h[1]||"",m=h[3];return m?p&&typeof btoa=="function"?(h=function(y){return y=btoa(unescape(encodeURIComponent(JSON.stringify(y)))),y="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(y),"/*# ".concat(y," */")}(m),p=m.sources.map(function(y){return"/*# sourceURL=".concat(m.sourceRoot||"").concat(y," */")}),[g].concat(p).concat([h]).join(`
|
||
`)):[g].join(`
|
||
`):g}(d,c);return d[2]?"@media ".concat(d[2]," {").concat(v,"}"):v}).join("")},f.i=function(d,v,h){typeof d=="string"&&(d=[[null,d,""]]);var p={};if(h)for(var g=0;g<this.length;g++){var m=this[g][0];m!=null&&(p[m]=!0)}for(var y=0;y<d.length;y++){var b=[].concat(d[y]);h&&p[b[0]]||(v&&(b[2]?b[2]="".concat(v," and ").concat(b[2]):b[2]=v),f.push(b))}},f}},function(s,l,u){var c,f,d,v={},h=(c=function(){return window&&document&&document.all&&!window.atob},function(){return f=f===void 0?c.apply(this,arguments):f}),p=(d={},function(O){if(d[O]===void 0){var z=(function($){return document.querySelector($)}).call(this,O);if(z instanceof window.HTMLIFrameElement)try{z=z.contentDocument.head}catch{z=null}d[O]=z}return d[O]}),g=null,m=0,y=[],b=u(41);function w(O,z){for(var $=0;$<O.length;$++){var P=O[$],L=v[P.id];if(L){L.refs++;for(var V=0;V<L.parts.length;V++)L.parts[V](P.parts[V]);for(;V<P.parts.length;V++)L.parts.push(k(P.parts[V],z))}else{for(var B=[],V=0;V<P.parts.length;V++)B.push(k(P.parts[V],z));v[P.id]={id:P.id,refs:1,parts:B}}}}function S(O,z){for(var $=[],P={},L=0;L<O.length;L++){var B=O[L],V=z.base?B[0]+z.base:B[0],B={css:B[1],media:B[2],sourceMap:B[3]};P[V]?P[V].parts.push(B):$.push(P[V]={id:V,parts:[B]})}return $}function x(O,z){var $=p(O.insertInto);if(!$)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var P=y[y.length-1];if(O.insertAt==="top")P?P.nextSibling?$.insertBefore(z,P.nextSibling):$.appendChild(z):$.insertBefore(z,$.firstChild),y.push(z);else if(O.insertAt==="bottom")$.appendChild(z);else{if(typeof O.insertAt!="object"||!O.insertAt.before)throw new Error(`[Style Loader]
|
||
|
||
Invalid value for parameter 'insertAt' ('options.insertAt') found.
|
||
Must be 'top', 'bottom', or Object.
|
||
(https://github.com/webpack-contrib/style-loader#insertat)
|
||
`);O=p(O.insertInto+" "+O.insertAt.before),$.insertBefore(z,O)}}function C(O){O.parentNode!==null&&(O.parentNode.removeChild(O),0<=(O=y.indexOf(O))&&y.splice(O,1))}function T(O){var z=document.createElement("style");return O.attrs.type="text/css",M(z,O.attrs),x(O,z),z}function M(O,z){Object.keys(z).forEach(function($){O.setAttribute($,z[$])})}function k(O,z){var $,P,L,V,B;if(z.transform&&O.css){if(!(V=z.transform(O.css)))return function(){};O.css=V}return L=z.singleton?(B=m++,$=g=g||T(z),P=I.bind(null,$,B,!1),I.bind(null,$,B,!0)):O.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(V=z,B=document.createElement("link"),V.attrs.type="text/css",V.attrs.rel="stylesheet",M(B,V.attrs),x(V,B),$=B,P=(function(F,U,te){var Y=te.css,X=te.sourceMap,te=U.convertToAbsoluteUrls===void 0&&X;(U.convertToAbsoluteUrls||te)&&(Y=b(Y)),X&&(Y+=`
|
||
/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(X))))+" */"),X=new Blob([Y],{type:"text/css"}),Y=F.href,F.href=URL.createObjectURL(X),Y&&URL.revokeObjectURL(Y)}).bind(null,$,z),function(){C($),$.href&&URL.revokeObjectURL($.href)}):($=T(z),P=(function(F,Y){var G=Y.css,Y=Y.media;if(Y&&F.setAttribute("media",Y),F.styleSheet)F.styleSheet.cssText=G;else{for(;F.firstChild;)F.removeChild(F.firstChild);F.appendChild(document.createTextNode(G))}}).bind(null,$),function(){C($)}),P(O),function(F){F?F.css===O.css&&F.media===O.media&&F.sourceMap===O.sourceMap||P(O=F):L()}}s.exports=function(O,z){if(typeof DEBUG<"u"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");(z=z||{}).attrs=typeof z.attrs=="object"?z.attrs:{},z.singleton||typeof z.singleton=="boolean"||(z.singleton=h()),z.insertInto||(z.insertInto="head"),z.insertAt||(z.insertAt="bottom");var $=S(O,z);return w($,z),function(P){for(var L=[],V=0;V<$.length;V++){var B=$[V];(F=v[B.id]).refs--,L.push(F)}P&&w(S(P,z),z);for(var F,V=0;V<L.length;V++)if((F=L[V]).refs===0){for(var U=0;U<F.parts.length;U++)F.parts[U]();delete v[F.id]}}};var E,A=(E=[],function(O,z){return E[O]=z,E.filter(Boolean).join(`
|
||
`)});function I(O,z,L,P){var L=L?"":P.css;O.styleSheet?O.styleSheet.cssText=A(z,L):(P=document.createTextNode(L),(L=O.childNodes)[z]&&O.removeChild(L[z]),L.length?O.insertBefore(P,L[z]):O.appendChild(P))}},function(s,l,u){var c=u(45);typeof c=="string"&&(c=[[s.i,c,""]]);var f={hmr:!0,transform:void 0};u(26)(c,f),c.locals&&(s.exports=c.locals)},function(s,l,u){var c=u(23);u.o(c,"render")&&u.d(l,"render",function(){return c.render})},function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0});var c=c(30),f=(c=c)&&c.__esModule?c:{default:c};l.default=Object.assign(f.default,{install:function(d){d.component("JsonViewer",f.default)}})},function(s,l,u){u.r(l);var c,v=u(28),f=u(12);for(c in f)c!=="default"&&function(h){u.d(l,h,function(){return f[h]})}(c);u(44);var d=u(0),v=u.n(d)()(f.default,[["render",v.render],["__file","lib/json-viewer.vue"]]);l.default=v},function(s,l,u){u.r(l);var c,f=u(14);for(c in f)c!=="default"&&function(v){u.d(l,v,function(){return f[v]})}(c);var d=u(0),d=u.n(d)()(f.default,[["__file","lib/types/json-string.vue"]]);l.default=d},function(s,l,u){u.r(l);var c,f=u(15);for(c in f)c!=="default"&&function(v){u.d(l,v,function(){return f[v]})}(c);var d=u(0),d=u.n(d)()(f.default,[["__file","lib/types/json-undefined.vue"]]);l.default=d},function(s,l,u){u.r(l);var c,f=u(16);for(c in f)c!=="default"&&function(v){u.d(l,v,function(){return f[v]})}(c);var d=u(0),d=u.n(d)()(f.default,[["__file","lib/types/json-number.vue"]]);l.default=d},function(s,l,u){u.r(l);var c,f=u(17);for(c in f)c!=="default"&&function(v){u.d(l,v,function(){return f[v]})}(c);var d=u(0),d=u.n(d)()(f.default,[["__file","lib/types/json-boolean.vue"]]);l.default=d},function(s,l,u){u.r(l);var c,f=u(18);for(c in f)c!=="default"&&function(v){u.d(l,v,function(){return f[v]})}(c);var d=u(0),d=u.n(d)()(f.default,[["__file","lib/types/json-object.vue"]]);l.default=d},function(s,l,u){u.r(l);var c,f=u(19);for(c in f)c!=="default"&&function(v){u.d(l,v,function(){return f[v]})}(c);var d=u(0),d=u.n(d)()(f.default,[["__file","lib/types/json-array.vue"]]);l.default=d},function(s,l,u){u.r(l);var c,f=u(20);for(c in f)c!=="default"&&function(v){u.d(l,v,function(){return f[v]})}(c);var d=u(0),d=u.n(d)()(f.default,[["__file","lib/types/json-function.vue"]]);l.default=d},function(s,l,u){u.r(l);var c,f=u(21);for(c in f)c!=="default"&&function(v){u.d(l,v,function(){return f[v]})}(c);var d=u(0),d=u.n(d)()(f.default,[["__file","lib/types/json-date.vue"]]);l.default=d},function(s,l,u){u(24)},function(s,l,u){(l=u(25)(!1)).push([s.i,`.jv-node{position:relative}.jv-node:after{content:','}.jv-node:last-of-type:after{content:''}.jv-node.toggle{margin-left:13px !important}.jv-node .jv-node{margin-left:25px}
|
||
`,""]),s.exports=l},function(s,l){s.exports=function(u){var c=typeof window<"u"&&window.location;if(!c)throw new Error("fixUrls requires window.location");if(!u||typeof u!="string")return u;var f=c.protocol+"//"+c.host,d=f+c.pathname.replace(/\/[^\/]*$/,"/");return u.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(v,p){var p=p.trim().replace(/^"(.*)"$/,function(g,m){return m}).replace(/^'(.*)'$/,function(g,m){return m});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(p)?v:(p=p.indexOf("//")===0?p:p.indexOf("/")===0?f+p:d+p.replace(/^\.\//,""),"url("+JSON.stringify(p)+")")})}},function(s,l){s.exports=r},function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.debounce=function(c,f){var d=Date.now(),v=void 0;return function(){for(var h=arguments.length,p=Array(h),g=0;g<h;g++)p[g]=arguments[g];Date.now()-d<f&&v&&clearTimeout(v),v=setTimeout(function(){c.apply(void 0,p)},f),d=Date.now()}}},function(s,l,u){u(27)},function(s,l,d){var c=d(25),f=d(46),d=d(47);l=c(!1),d=f(d),l.push([s.i,".jv-container{box-sizing:border-box;position:relative}.jv-container.boxed{border:1px solid #eee;border-radius:6px}.jv-container.boxed:hover{box-shadow:0 2px 7px rgba(0,0,0,0.15);border-color:transparent;position:relative}.jv-container.jv-light{background:#fff;white-space:nowrap;color:#525252;font-size:14px;font-family:Consolas, Menlo, Courier, monospace}.jv-container.jv-light .jv-ellipsis{color:#999;background-color:#eee;display:inline-block;line-height:0.9;font-size:0.9em;padding:0px 4px 2px 4px;margin:0 4px;border-radius:3px;vertical-align:2px;cursor:pointer;-webkit-user-select:none;user-select:none}.jv-container.jv-light .jv-button{color:#49b3ff}.jv-container.jv-light .jv-key{color:#111111;margin-right:4px}.jv-container.jv-light .jv-item.jv-array{color:#111111}.jv-container.jv-light .jv-item.jv-boolean{color:#fc1e70}.jv-container.jv-light .jv-item.jv-function{color:#067bca}.jv-container.jv-light .jv-item.jv-number{color:#fc1e70}.jv-container.jv-light .jv-item.jv-object{color:#111111}.jv-container.jv-light .jv-item.jv-undefined{color:#e08331}.jv-container.jv-light .jv-item.jv-string{color:#42b983;word-break:break-word;white-space:normal}.jv-container.jv-light .jv-item.jv-string .jv-link{color:#0366d6}.jv-container.jv-light .jv-code .jv-toggle:before{padding:0px 2px;border-radius:2px}.jv-container.jv-light .jv-code .jv-toggle:hover:before{background:#eee}.jv-container .jv-code{overflow:hidden;padding:30px 20px}.jv-container .jv-code.boxed{max-height:300px}.jv-container .jv-code.open{max-height:initial !important;overflow:visible;overflow-x:auto;padding-bottom:45px}.jv-container .jv-toggle{background-image:url("+d+`);background-repeat:no-repeat;background-size:contain;background-position:center center;cursor:pointer;width:10px;height:10px;margin-right:2px;display:inline-block;-webkit-transition:-webkit-transform 0.1s;transition:-webkit-transform 0.1s;transition:transform 0.1s;transition:transform 0.1s, -webkit-transform 0.1s}.jv-container .jv-toggle.open{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.jv-container .jv-more{position:absolute;z-index:1;bottom:0;left:0;right:0;height:40px;width:100%;text-align:center;cursor:pointer}.jv-container .jv-more .jv-toggle{position:relative;top:40%;z-index:2;color:#888;-webkit-transition:all 0.1s;transition:all 0.1s;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.jv-container .jv-more .jv-toggle.open{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.jv-container .jv-more:after{content:"";width:100%;height:100%;position:absolute;bottom:0;left:0;z-index:1;background:-webkit-linear-gradient(top, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);background:linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);-webkit-transition:all 0.1s;transition:all 0.1s}.jv-container .jv-more:hover .jv-toggle{top:50%;color:#111}.jv-container .jv-more:hover:after{background:-webkit-linear-gradient(top, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);background:linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%)}.jv-container .jv-button{position:relative;cursor:pointer;display:inline-block;padding:5px;z-index:5}.jv-container .jv-button.copied{opacity:0.4;cursor:default}.jv-container .jv-tooltip{position:absolute}.jv-container .jv-tooltip.right{right:15px}.jv-container .jv-tooltip.left{left:15px}.jv-container .j-icon{font-size:12px}
|
||
`,""]),s.exports=l},function(s,l,u){s.exports=function(c,f){return f=f||{},typeof(c=c&&c.__esModule?c.default:c)!="string"?c:(/^['"].*['"]$/.test(c)&&(c=c.slice(1,-1)),f.hash&&(c+=f.hash),/["'() \t\n]/.test(c)||f.needQuotes?'"'.concat(c.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):c)}},function(s,l){s.exports="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE2IiB3aWR0aD0iOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KIAo8cG9seWdvbiBwb2ludHM9IjAsMCA4LDggMCwxNiIKc3R5bGU9ImZpbGw6IzY2NjtzdHJva2U6cHVycGxlO3N0cm9rZS13aWR0aDowIiAvPgo8L3N2Zz4="}],a.c=i,a.d=function(s,l,u){a.o(s,l)||Object.defineProperty(s,l,{enumerable:!0,get:u})},a.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.t=function(s,l){if(1&l&&(s=a(s)),8&l||4&l&&typeof s=="object"&&s&&s.__esModule)return s;var u=Object.create(null);if(a.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:s}),2&l&&typeof s!="string")for(var c in s)a.d(u,c,(function(f){return s[f]}).bind(null,c));return u},a.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(l,"a",l),l},a.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)},a.p="",a(a.s=29);function a(s){if(i[s])return i[s].exports;var l=i[s]={i:s,l:!1,exports:{}};return o[s].call(l.exports,l,l.exports,a),l.l=!0,l.exports}var o,i})})(Cte);var ndt=Cte.exports;const rdt=al(ndt),$4=vg(Qft);for(const[e,t]of Object.entries(yFe))$4.component(e,t);$4.use(Eft);$4.use(rdt);$4.mount("#app")});export default adt();
|