(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}})();function pR(e,t){const r=Object.create(null),n=e.split(",");for(let a=0;a!!r[a.toLowerCase()]:a=>!!r[a]}const In={},wp=[],zr=()=>{},hoe=()=>!1,B2=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),gR=e=>e.startsWith("onUpdate:"),ma=Object.assign,mR=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},voe=Object.prototype.hasOwnProperty,or=(e,t)=>voe.call(e,t),We=Array.isArray,Sp=e=>U_(e)==="[object Map]",F2=e=>U_(e)==="[object Set]",Rh=e=>U_(e)==="[object Date]",dt=e=>typeof e=="function",wt=e=>typeof e=="string",vf=e=>typeof e=="symbol",Vt=e=>e!==null&&typeof e=="object",p0=e=>(Vt(e)||dt(e))&&dt(e.then)&&dt(e.catch),jW=Object.prototype.toString,U_=e=>jW.call(e),Ow=e=>U_(e).slice(8,-1),US=e=>U_(e)==="[object Object]",yR=e=>wt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,kw=pR(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),V2=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},poe=/-(\w)/g,os=V2(e=>e.replace(poe,(t,r)=>r?r.toUpperCase():"")),goe=/\B([A-Z])/g,If=V2(e=>e.replace(goe,"-$1").toLowerCase()),$_=V2(e=>e.charAt(0).toUpperCase()+e.slice(1)),Nw=V2(e=>e?`on${$_(e)}`:""),Oh=(e,t)=>!Object.is(e,t),Bw=(e,t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},OD=e=>{const t=parseFloat(e);return isNaN(t)?e:t},moe=e=>{const t=wt(e)?Number(e):NaN;return isNaN(t)?e:t};let P4;const kD=()=>P4||(P4=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Xe(e){if(We(e)){const t={};for(let r=0;r{if(r){const n=r.split(_oe);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function H(e){let t="";if(wt(e))t=e;else if(We(e))for(let r=0;rGp(r,t))}const me=e=>wt(e)?e:e==null?"":We(e)||Vt(e)&&(e.toString===jW||!dt(e.toString))?JSON.stringify(e,ZW,2):String(e),ZW=(e,t)=>t&&t.__v_isRef?ZW(e,t.value):Sp(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,a],i)=>(r[KT(n,i)+" =>"]=a,r),{})}:F2(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>KT(r))}:vf(t)?KT(t):Vt(t)&&!We(t)&&!US(t)?String(t):t,KT=(e,t="")=>{var r;return vf(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};let go;class qW{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=go,!t&&go&&(this.index=(go.scopes||(go.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=go;try{return go=this,t()}finally{go=r}}}on(){go=this}off(){go=this.parent}stop(t){if(this._active){let r,n;for(r=0,n=this.effects.length;r{const t=new Set(e);return t.w=0,t.n=0,t},e9=e=>(e.w&pf)>0,t9=e=>(e.n&pf)>0,Eoe=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n{(c==="length"||!vf(c)&&c>=l)&&s.push(u)})}else switch(r!==void 0&&s.push(o.get(r)),t){case"add":We(e)?yR(r)&&s.push(o.get("length")):(s.push(o.get(ph)),Sp(e)&&s.push(o.get(BD)));break;case"delete":We(e)||(s.push(o.get(ph)),Sp(e)&&s.push(o.get(BD)));break;case"set":Sp(e)&&s.push(o.get(ph));break}if(s.length===1)s[0]&&FD(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);FD(_R(l))}}function FD(e,t){const r=We(e)?e:[...e];for(const n of r)n.computed&&I4(n);for(const n of r)n.computed||I4(n)}function I4(e,t){(e!==Is||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Doe(e,t){var r;return(r=WS.get(e))==null?void 0:r.get(t)}const Poe=pR("__proto__,__v_isRef,__isVue"),a9=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(vf)),R4=Loe();function Loe(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=Er(this);for(let i=0,o=this.length;i{e[t]=function(...r){Lg();const n=Er(this)[t].apply(this,r);return Ig(),n}}),e}function Ioe(e){const t=Er(this);return oo(t,"has",e),t.hasOwnProperty(e)}class i9{constructor(t=!1,r=!1){this._isReadonly=t,this._shallow=r}get(t,r,n){const a=this._isReadonly,i=this._shallow;if(r==="__v_isReactive")return!a;if(r==="__v_isReadonly")return a;if(r==="__v_isShallow")return i;if(r==="__v_raw")return n===(a?i?Woe:u9:i?l9:s9).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=We(t);if(!a){if(o&&or(R4,r))return Reflect.get(R4,r,n);if(r==="hasOwnProperty")return Ioe}const s=Reflect.get(t,r,n);return(vf(r)?a9.has(r):Poe(r))||(a||oo(t,"get",r),i)?s:Qr(s)?o&&yR(r)?s:s.value:Vt(s)?a?Rg(s):Ar(s):s}}class o9 extends i9{constructor(t=!1){super(!1,t)}set(t,r,n,a){let i=t[r];if(Up(i)&&Qr(i)&&!Qr(n))return!1;if(!this._shallow&&(!YS(n)&&!Up(n)&&(i=Er(i),n=Er(n)),!We(t)&&Qr(i)&&!Qr(n)))return i.value=n,!0;const o=We(t)&&yR(r)?Number(r)e,z2=e=>Reflect.getPrototypeOf(e);function $1(e,t,r=!1,n=!1){e=e.__v_raw;const a=Er(e),i=Er(t);r||(Oh(t,i)&&oo(a,"get",t),oo(a,"get",i));const{has:o}=z2(a),s=n?wR:r?TR:g0;if(o.call(a,t))return s(e.get(t));if(o.call(a,i))return s(e.get(i));e!==a&&e.get(t)}function W1(e,t=!1){const r=this.__v_raw,n=Er(r),a=Er(e);return t||(Oh(e,a)&&oo(n,"has",e),oo(n,"has",a)),e===a?r.has(e):r.has(e)||r.has(a)}function Y1(e,t=!1){return e=e.__v_raw,!t&&oo(Er(e),"iterate",ph),Reflect.get(e,"size",e)}function O4(e){e=Er(e);const t=Er(this);return z2(t).has.call(t,e)||(t.add(e),Pu(t,"add",e,e)),this}function k4(e,t){t=Er(t);const r=Er(this),{has:n,get:a}=z2(r);let i=n.call(r,e);i||(e=Er(e),i=n.call(r,e));const o=a.call(r,e);return r.set(e,t),i?Oh(t,o)&&Pu(r,"set",e,t):Pu(r,"add",e,t),this}function N4(e){const t=Er(this),{has:r,get:n}=z2(t);let a=r.call(t,e);a||(e=Er(e),a=r.call(t,e)),n&&n.call(t,e);const i=t.delete(e);return a&&Pu(t,"delete",e,void 0),i}function B4(){const e=Er(this),t=e.size!==0,r=e.clear();return t&&Pu(e,"clear",void 0,void 0),r}function j1(e,t){return function(n,a){const i=this,o=i.__v_raw,s=Er(o),l=t?wR:e?TR:g0;return!e&&oo(s,"iterate",ph),o.forEach((u,c)=>n.call(a,l(u),l(c),i))}}function K1(e,t,r){return function(...n){const a=this.__v_raw,i=Er(a),o=Sp(i),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=a[e](...n),c=r?wR:t?TR:g0;return!t&&oo(i,"iterate",l?BD:ph),{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 dc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Boe(){const e={get(i){return $1(this,i)},get size(){return Y1(this)},has:W1,add:O4,set:k4,delete:N4,clear:B4,forEach:j1(!1,!1)},t={get(i){return $1(this,i,!1,!0)},get size(){return Y1(this)},has:W1,add:O4,set:k4,delete:N4,clear:B4,forEach:j1(!1,!0)},r={get(i){return $1(this,i,!0)},get size(){return Y1(this,!0)},has(i){return W1.call(this,i,!0)},add:dc("add"),set:dc("set"),delete:dc("delete"),clear:dc("clear"),forEach:j1(!0,!1)},n={get(i){return $1(this,i,!0,!0)},get size(){return Y1(this,!0)},has(i){return W1.call(this,i,!0)},add:dc("add"),set:dc("set"),delete:dc("delete"),clear:dc("clear"),forEach:j1(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=K1(i,!1,!1),r[i]=K1(i,!0,!1),t[i]=K1(i,!1,!0),n[i]=K1(i,!0,!0)}),[e,r,t,n]}const[Foe,Voe,zoe,Hoe]=Boe();function SR(e,t){const r=t?e?Hoe:zoe:e?Voe:Foe;return(n,a,i)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?n:Reflect.get(or(r,a)&&a in n?r:n,a,i)}const Goe={get:SR(!1,!1)},Uoe={get:SR(!1,!0)},$oe={get:SR(!0,!1)},s9=new WeakMap,l9=new WeakMap,u9=new WeakMap,Woe=new WeakMap;function Yoe(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function joe(e){return e.__v_skip||!Object.isExtensible(e)?0:Yoe(Ow(e))}function Ar(e){return Up(e)?e:AR(e,!1,Ooe,Goe,s9)}function xR(e){return AR(e,!1,Noe,Uoe,l9)}function Rg(e){return AR(e,!0,koe,$oe,u9)}function AR(e,t,r,n,a){if(!Vt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=a.get(e);if(i)return i;const o=joe(e);if(o===0)return e;const s=new Proxy(e,o===2?n:r);return a.set(e,s),s}function xp(e){return Up(e)?xp(e.__v_raw):!!(e&&e.__v_isReactive)}function Up(e){return!!(e&&e.__v_isReadonly)}function YS(e){return!!(e&&e.__v_isShallow)}function c9(e){return xp(e)||Up(e)}function Er(e){const t=e&&e.__v_raw;return t?Er(t):e}function gh(e){return $S(e,"__v_skip",!0),e}const g0=e=>Vt(e)?Ar(e):e,TR=e=>Vt(e)?Rg(e):e;function f9(e){rf&&Is&&(e=Er(e),n9(e.dep||(e.dep=_R())))}function CR(e,t){e=Er(e);const r=e.dep;r&&FD(r)}function Qr(e){return!!(e&&e.__v_isRef===!0)}function G(e){return d9(e,!1)}function yr(e){return d9(e,!0)}function d9(e,t){return Qr(e)?e:new Koe(e,t)}class Koe{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:Er(t),this._value=r?t:g0(t)}get value(){return f9(this),this._value}set value(t){const r=this.__v_isShallow||YS(t)||Up(t);t=r?t:Er(t),Oh(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:g0(t),CR(this))}}function gm(e){CR(e)}function b(e){return Qr(e)?e.value:e}const Xoe={get:(e,t,r)=>b(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const a=e[t];return Qr(a)&&!Qr(r)?(a.value=r,!0):Reflect.set(e,t,r,n)}};function h9(e){return xp(e)?e:new Proxy(e,Xoe)}function Da(e){const t=We(e)?new Array(e.length):{};for(const r in e)t[r]=v9(e,r);return t}class Zoe{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Doe(Er(this._object),this._key)}}class qoe{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Sn(e,t,r){return Qr(e)?e:dt(e)?new qoe(e):Vt(e)&&arguments.length>1?v9(e,t,r):G(e)}function v9(e,t,r){const n=e[t];return Qr(n)?n:new Zoe(e,t,r)}class Qoe{constructor(t,r,n,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new bR(t,()=>{this._dirty||(this._dirty=!0,CR(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=n}get value(){const t=Er(this);return f9(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function p9(e,t,r=!1){let n,a;const i=dt(e);return i?(n=e,a=zr):(n=e.get,a=e.set),new Qoe(n,a,i||!a,r)}function Joe(e,...t){}function nf(e,t,r,n){let a;try{a=n?e(...n):e()}catch(i){H2(i,t,r)}return a}function es(e,t,r,n){if(dt(e)){const i=nf(e,t,r,n);return i&&p0(i)&&i.catch(o=>{H2(o,t,r)}),i}const a=[];for(let i=0;i>>1,a=si[n],i=y0(a);iwl&&si.splice(t,1)}function nse(e){We(e)?Ap.push(...e):(!vu||!vu.includes(e,e.allowRecurse?zd+1:zd))&&Ap.push(e),m9()}function F4(e,t,r=m0?wl+1:0){for(;ry0(r)-y0(n)),zd=0;zde.id==null?1/0:e.id,ase=(e,t)=>{const r=y0(e)-y0(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function _9(e){VD=!1,m0=!0,si.sort(ase);const t=zr;try{for(wl=0;wlwt(h)?h.trim():h)),f&&(a=r.map(OD))}let s,l=n[s=Nw(t)]||n[s=Nw(os(t))];!l&&i&&(l=n[s=Nw(If(t))]),l&&es(l,e,6,a);const u=n[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,es(u,e,6,a)}}function b9(e,t,r=!1){const n=t.emitsCache,a=n.get(e);if(a!==void 0)return a;const i=e.emits;let o={},s=!1;if(!dt(e)){const l=u=>{const c=b9(u,t,!0);c&&(s=!0,ma(o,c))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(Vt(e)&&n.set(e,null),null):(We(i)?i.forEach(l=>o[l]=null):ma(o,i),Vt(e)&&n.set(e,o),o)}function G2(e,t){return!e||!B2(t)?!1:(t=t.slice(2).replace(/Once$/,""),or(e,t[0].toLowerCase()+t.slice(1))||or(e,If(t))||or(e,t))}let Xa=null,U2=null;function jS(e){const t=Xa;return Xa=e,U2=e&&e.type.__scopeId||null,t}function jl(e){U2=e}function Kl(){U2=null}function le(e,t=Xa,r){if(!t||e._n)return e;const n=(...a)=>{n._d&&q4(-1);const i=jS(t);let o;try{o=e(...a)}finally{jS(i),n._d&&q4(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function XT(e){const{type:t,vnode:r,proxy:n,withProxy:a,props:i,propsOptions:[o],slots:s,attrs:l,emit:u,render:c,renderCache:f,data:d,setupState:h,ctx:v,inheritAttrs:p}=e;let g,m;const y=jS(e);try{if(r.shapeFlag&4){const w=a||n,x=w;g=bl(c.call(x,w,f,i,h,d,v)),m=l}else{const w=t;g=bl(w.length>1?w(i,{attrs:l,slots:s,emit:u}):w(i,null)),m=t.props?l:ose(l)}}catch(w){Ny.length=0,H2(w,e,1),g=J(Ei)}let _=g;if(m&&p!==!1){const w=Object.keys(m),{shapeFlag:x}=_;w.length&&x&7&&(o&&w.some(gR)&&(m=sse(m,o)),_=Fu(_,m))}return r.dirs&&(_=Fu(_),_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&(_.transition=r.transition),g=_,jS(y),g}const ose=e=>{let t;for(const r in e)(r==="class"||r==="style"||B2(r))&&((t||(t={}))[r]=e[r]);return t},sse=(e,t)=>{const r={};for(const n in e)(!gR(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function lse(e,t,r){const{props:n,children:a,component:i}=e,{props:o,children:s,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?V4(n,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;function dse(e,t){t&&t.pendingBranch?We(e)?t.effects.push(...e):t.effects.push(e):nse(e)}function xo(e,t){return LR(e,null,t)}const X1={};function Ae(e,t,r){return LR(e,t,r)}function LR(e,t,{immediate:r,deep:n,flush:a,onTrack:i,onTrigger:o}=In){var s;const l=QW()===((s=Ha)==null?void 0:s.scope)?Ha:null;let u,c=!1,f=!1;if(Qr(e)?(u=()=>e.value,c=YS(e)):xp(e)?(u=()=>e,n=!0):We(e)?(f=!0,c=e.some(w=>xp(w)||YS(w)),u=()=>e.map(w=>{if(Qr(w))return w.value;if(xp(w))return Xd(w);if(dt(w))return nf(w,l,2)})):dt(e)?t?u=()=>nf(e,l,2):u=()=>{if(!(l&&l.isUnmounted))return d&&d(),es(e,l,3,[h])}:u=zr,t&&n){const w=u;u=()=>Xd(w())}let d,h=w=>{d=y.onStop=()=>{nf(w,l,4),d=y.onStop=void 0}},v;if(x0)if(h=zr,t?r&&es(t,l,3,[u(),f?[]:void 0,h]):u(),a==="sync"){const w=ele();v=w.__watcherHandles||(w.__watcherHandles=[])}else return zr;let p=f?new Array(e.length).fill(X1):X1;const g=()=>{if(y.active)if(t){const w=y.run();(n||c||(f?w.some((x,S)=>Oh(x,p[S])):Oh(w,p)))&&(d&&d(),es(t,l,3,[w,p===X1?void 0:f&&p[0]===X1?[]:p,h]),p=w)}else y.run()};g.allowRecurse=!!t;let m;a==="sync"?m=g:a==="post"?m=()=>Ki(g,l&&l.suspense):(g.pre=!0,l&&(g.id=l.uid),m=()=>MR(g));const y=new bR(u,m);t?r?g():p=y.run():a==="post"?Ki(y.run.bind(y),l&&l.suspense):y.run();const _=()=>{y.stop(),l&&l.scope&&mR(l.scope.effects,y)};return v&&v.push(_),_}function hse(e,t,r){const n=this.proxy,a=wt(e)?e.includes(".")?S9(n,e):()=>n[e]:e.bind(n,n);let i;dt(t)?i=t:(i=t.handler,r=t);const o=Ha;$p(this);const s=LR(a,i.bind(n),r);return o?$p(o):mh(),s}function S9(e,t){const r=t.split(".");return()=>{let n=e;for(let a=0;a{Xd(r,t)});else if(US(e))for(const r in e)Xd(e[r],t);return e}function Ct(e,t){const r=Xa;if(r===null)return e;const n=X2(r)||r.proxy,a=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0}),un(()=>{e.isUnmounting=!0}),e}const Ro=[Function,Array],A9={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ro,onEnter:Ro,onAfterEnter:Ro,onEnterCancelled:Ro,onBeforeLeave:Ro,onLeave:Ro,onAfterLeave:Ro,onLeaveCancelled:Ro,onBeforeAppear:Ro,onAppear:Ro,onAfterAppear:Ro,onAppearCancelled:Ro},vse={name:"BaseTransition",props:A9,setup(e,{slots:t}){const r=It(),n=x9();let a;return()=>{const i=t.default&&IR(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const p of i)if(p.type!==Ei){o=p;break}}const s=Er(e),{mode:l}=s;if(n.isLeaving)return ZT(o);const u=H4(o);if(!u)return ZT(o);const c=b0(u,s,n,r);w0(u,c);const f=r.subTree,d=f&&H4(f);let h=!1;const{getTransitionKey:v}=u.type;if(v){const p=v();a===void 0?a=p:p!==a&&(a=p,h=!0)}if(d&&d.type!==Ei&&(!Hd(u,d)||h)){const p=b0(d,s,n,r);if(w0(d,p),l==="out-in")return n.isLeaving=!0,p.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&r.update()},ZT(o);l==="in-out"&&u.type!==Ei&&(p.delayLeave=(g,m,y)=>{const _=T9(n,d);_[String(d.key)]=d,g[Nc]=()=>{m(),g[Nc]=void 0,delete c.delayedLeave},c.delayedLeave=y})}return o}}},pse=vse;function T9(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function b0(e,t,r,n){const{appear:a,mode:i,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:v,onBeforeAppear:p,onAppear:g,onAfterAppear:m,onAppearCancelled:y}=t,_=String(e.key),w=T9(r,e),x=(A,C)=>{A&&es(A,n,9,C)},S=(A,C)=>{const M=C[1];x(A,C),We(A)?A.every(E=>E.length<=1)&&M():A.length<=1&&M()},T={mode:i,persisted:o,beforeEnter(A){let C=s;if(!r.isMounted)if(a)C=p||s;else return;A[Nc]&&A[Nc](!0);const M=w[_];M&&Hd(e,M)&&M.el[Nc]&&M.el[Nc](),x(C,[A])},enter(A){let C=l,M=u,E=c;if(!r.isMounted)if(a)C=g||l,M=m||u,E=y||c;else return;let D=!1;const P=A[Z1]=L=>{D||(D=!0,L?x(E,[A]):x(M,[A]),T.delayedLeave&&T.delayedLeave(),A[Z1]=void 0)};C?S(C,[A,P]):P()},leave(A,C){const M=String(e.key);if(A[Z1]&&A[Z1](!0),r.isUnmounting)return C();x(f,[A]);let E=!1;const D=A[Nc]=P=>{E||(E=!0,C(),P?x(v,[A]):x(h,[A]),A[Nc]=void 0,w[M]===e&&delete w[M])};w[M]=e,d?S(d,[A,D]):D()},clone(A){return b0(A,t,r,n)}};return T}function ZT(e){if($2(e))return e=Fu(e),e.children=null,e}function H4(e){return $2(e)?e.children?e.children[0]:void 0:e}function w0(e,t){e.shapeFlag&6&&e.component?w0(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 IR(e,t=!1,r){let n=[],a=0;for(let i=0;i1)for(let i=0;ima({name:e.name},t,{setup:e}))():e}const Ry=e=>!!e.type.__asyncLoader,$2=e=>e.type.__isKeepAlive;function gse(e,t){E9(e,"a",t)}function C9(e,t){E9(e,"da",t)}function E9(e,t,r=Ha){const n=e.__wdc||(e.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(W2(t,n,r),r){let a=r.parent;for(;a&&a.parent;)$2(a.parent.vnode)&&mse(n,t,r,a),a=a.parent}}function mse(e,t,r,n){const a=W2(t,e,n,!0);Xl(()=>{mR(n[t],a)},r)}function W2(e,t,r=Ha,n=!1){if(r){const a=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(r.isUnmounted)return;Lg(),$p(r);const s=es(t,r,e,o);return mh(),Ig(),s});return n?a.unshift(i):a.push(i),i}}const Zu=e=>(t,r=Ha)=>(!x0||e==="sp")&&W2(e,(...n)=>t(...n),r),Y2=Zu("bm"),xt=Zu("m"),M9=Zu("bu"),qu=Zu("u"),un=Zu("bum"),Xl=Zu("um"),yse=Zu("sp"),_se=Zu("rtg"),bse=Zu("rtc");function wse(e,t=Ha){W2("ec",e,t)}function ht(e,t,r,n){let a;const i=r&&r[n];if(We(e)||wt(e)){a=new Array(e.length);for(let o=0,s=e.length;ot(o,s,void 0,i&&i[s]));else{const o=Object.keys(e);a=new Array(o.length);for(let s=0,l=o.length;s{const i=n.fn(...a);return i&&(i.key=n.key),i}:n.fn)}return e}function ye(e,t,r={},n,a){if(Xa.isCE||Xa.parent&&Ry(Xa.parent)&&Xa.parent.isCE)return t!=="default"&&(r.name=t),J("slot",r,n&&n());let i=e[t];i&&i._c&&(i._d=!1),N();const o=i&&D9(i(r)),s=he(Be,{key:r.key||o&&o.key||`_${t}`},o||(n?n():[]),o&&e._===1?64:-2);return!a&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function D9(e){return e.some(t=>hn(t)?!(t.type===Ei||t.type===Be&&!D9(t.children)):!0)?e:null}function Sse(e,t){const r={};for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:Nw(n)]=e[n];return r}const zD=e=>e?G9(e)?X2(e)||e.proxy:zD(e.parent):null,Oy=ma(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=>zD(e.parent),$root:e=>zD(e.root),$emit:e=>e.emit,$options:e=>RR(e),$forceUpdate:e=>e.f||(e.f=()=>MR(e.update)),$nextTick:e=>e.n||(e.n=qe.bind(e.proxy)),$watch:e=>hse.bind(e)}),qT=(e,t)=>e!==In&&!e.__isScriptSetup&&or(e,t),xse={get({_:e},t){const{ctx:r,setupState:n,data:a,props:i,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return a[t];case 4:return r[t];case 3:return i[t]}else{if(qT(n,t))return o[t]=1,n[t];if(a!==In&&or(a,t))return o[t]=2,a[t];if((u=e.propsOptions[0])&&or(u,t))return o[t]=3,i[t];if(r!==In&&or(r,t))return o[t]=4,r[t];HD&&(o[t]=0)}}const c=Oy[t];let f,d;if(c)return t==="$attrs"&&oo(e,"get",t),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(r!==In&&or(r,t))return o[t]=4,r[t];if(d=l.config.globalProperties,or(d,t))return d[t]},set({_:e},t,r){const{data:n,setupState:a,ctx:i}=e;return qT(a,t)?(a[t]=r,!0):n!==In&&or(n,t)?(n[t]=r,!0):or(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:a,propsOptions:i}},o){let s;return!!r[o]||e!==In&&or(e,o)||qT(t,o)||(s=i[0])&&or(s,o)||or(n,o)||or(Oy,o)||or(a.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:or(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function $a(){return P9().slots}function Jh(){return P9().attrs}function P9(){const e=It();return e.setupContext||(e.setupContext=$9(e))}function G4(e){return We(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let HD=!0;function Ase(e){const t=RR(e),r=e.proxy,n=e.ctx;HD=!1,t.beforeCreate&&U4(t.beforeCreate,e,"bc");const{data:a,computed:i,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:v,activated:p,deactivated:g,beforeDestroy:m,beforeUnmount:y,destroyed:_,unmounted:w,render:x,renderTracked:S,renderTriggered:T,errorCaptured:A,serverPrefetch:C,expose:M,inheritAttrs:E,components:D,directives:P,filters:L}=t;if(u&&Tse(u,n,null),o)for(const R in o){const B=o[R];dt(B)&&(n[R]=B.bind(r))}if(a){const R=a.call(r,r);Vt(R)&&(e.data=Ar(R))}if(HD=!0,i)for(const R in i){const B=i[R],k=dt(B)?B.bind(r,r):dt(B.get)?B.get.bind(r,r):zr,z=!dt(B)&&dt(B.set)?B.set.bind(r):zr,$=F({get:k,set:z});Object.defineProperty(n,R,{enumerable:!0,configurable:!0,get:()=>$.value,set:j=>$.value=j})}if(s)for(const R in s)L9(s[R],n,r,R);if(l){const R=dt(l)?l.call(r):l;Reflect.ownKeys(R).forEach(B=>{Wt(B,R[B])})}c&&U4(c,e,"c");function O(R,B){We(B)?B.forEach(k=>R(k.bind(r))):B&&R(B.bind(r))}if(O(Y2,f),O(xt,d),O(M9,h),O(qu,v),O(gse,p),O(C9,g),O(wse,A),O(bse,S),O(_se,T),O(un,y),O(Xl,w),O(yse,C),We(M))if(M.length){const R=e.exposed||(e.exposed={});M.forEach(B=>{Object.defineProperty(R,B,{get:()=>r[B],set:k=>r[B]=k})})}else e.exposed||(e.exposed={});x&&e.render===zr&&(e.render=x),E!=null&&(e.inheritAttrs=E),D&&(e.components=D),P&&(e.directives=P)}function Tse(e,t,r=zr){We(e)&&(e=GD(e));for(const n in e){const a=e[n];let i;Vt(a)?"default"in a?i=Ye(a.from||n,a.default,!0):i=Ye(a.from||n):i=Ye(a),Qr(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function U4(e,t,r){es(We(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function L9(e,t,r,n){const a=n.includes(".")?S9(r,n):()=>r[n];if(wt(e)){const i=t[e];dt(i)&&Ae(a,i)}else if(dt(e))Ae(a,e.bind(r));else if(Vt(e))if(We(e))e.forEach(i=>L9(i,t,r,n));else{const i=dt(e.handler)?e.handler.bind(r):t[e.handler];dt(i)&&Ae(a,i,e)}}function RR(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,s=i.get(t);let l;return s?l=s:!a.length&&!r&&!n?l=t:(l={},a.length&&a.forEach(u=>KS(l,u,o,!0)),KS(l,t,o)),Vt(t)&&i.set(t,l),l}function KS(e,t,r,n=!1){const{mixins:a,extends:i}=t;i&&KS(e,i,r,!0),a&&a.forEach(o=>KS(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=Cse[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const Cse={data:$4,props:W4,emits:W4,methods:hy,computed:hy,beforeCreate:bi,created:bi,beforeMount:bi,mounted:bi,beforeUpdate:bi,updated:bi,beforeDestroy:bi,beforeUnmount:bi,destroyed:bi,unmounted:bi,activated:bi,deactivated:bi,errorCaptured:bi,serverPrefetch:bi,components:hy,directives:hy,watch:Mse,provide:$4,inject:Ese};function $4(e,t){return t?e?function(){return ma(dt(e)?e.call(this,this):e,dt(t)?t.call(this,this):t)}:t:e}function Ese(e,t){return hy(GD(e),GD(t))}function GD(e){if(We(e)){const t={};for(let r=0;r1)return r&&dt(t)?t.call(n&&n.proxy):t}}function Lse(e,t,r,n=!1){const a={},i={};$S(i,j2,1),e.propsDefaults=Object.create(null),R9(e,t,a,i);for(const o in e.propsOptions[0])o in a||(a[o]=void 0);r?e.props=n?a:xR(a):e.type.props?e.props=a:e.props=i,e.attrs=i}function Ise(e,t,r,n){const{props:a,attrs:i,vnode:{patchFlag:o}}=e,s=Er(a),[l]=e.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,h]=O9(f,t,!0);ma(o,d),h&&s.push(...h)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return Vt(e)&&n.set(e,wp),wp;if(We(i))for(let c=0;c-1,h[1]=p<0||v-1||or(h,"default"))&&s.push(f)}}}const u=[o,s];return Vt(e)&&n.set(e,u),u}function Y4(e){return e[0]!=="$"}function j4(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function K4(e,t){return j4(e)===j4(t)}function X4(e,t){return We(t)?t.findIndex(r=>K4(r,e)):dt(t)&&K4(t,e)?0:-1}const k9=e=>e[0]==="_"||e==="$stable",OR=e=>We(e)?e.map(bl):[bl(e)],Rse=(e,t,r)=>{if(t._n)return t;const n=le((...a)=>OR(t(...a)),r);return n._c=!1,n},N9=(e,t,r)=>{const n=e._ctx;for(const a in e){if(k9(a))continue;const i=e[a];if(dt(i))t[a]=Rse(a,i,n);else if(i!=null){const o=OR(i);t[a]=()=>o}}},B9=(e,t)=>{const r=OR(t);e.slots.default=()=>r},Ose=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=Er(t),$S(t,"_",r)):N9(t,e.slots={})}else e.slots={},t&&B9(e,t);$S(e.slots,j2,1)},kse=(e,t,r)=>{const{vnode:n,slots:a}=e;let i=!0,o=In;if(n.shapeFlag&32){const s=t._;s?r&&s===1?i=!1:(ma(a,t),!r&&s===1&&delete a._):(i=!t.$stable,N9(t,a)),o=t}else t&&(B9(e,t),o={default:1});if(i)for(const s in a)!k9(s)&&o[s]==null&&delete a[s]};function $D(e,t,r,n,a=!1){if(We(e)){e.forEach((d,h)=>$D(d,t&&(We(t)?t[h]:t),r,n,a));return}if(Ry(n)&&!a)return;const i=n.shapeFlag&4?X2(n.component)||n.component.proxy:n.el,o=a?null:i,{i:s,r:l}=e,u=t&&t.r,c=s.refs===In?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==l&&(wt(u)?(c[u]=null,or(f,u)&&(f[u]=null)):Qr(u)&&(u.value=null)),dt(l))nf(l,s,12,[o,c]);else{const d=wt(l),h=Qr(l);if(d||h){const v=()=>{if(e.f){const p=d?or(f,l)?f[l]:c[l]:l.value;a?We(p)&&mR(p,i):We(p)?p.includes(i)||p.push(i):d?(c[l]=[i],or(f,l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else d?(c[l]=o,or(f,l)&&(f[l]=o)):h&&(l.value=o,e.k&&(c[e.k]=o))};o?(v.id=-1,Ki(v,r)):v()}}}const Ki=dse;function Nse(e){return Bse(e)}function Bse(e,t){const r=kD();r.__VUE__=!0;const{insert:n,remove:a,patchProp:i,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=zr,insertStaticContent:v}=e,p=(Y,q,oe,ve=null,_e=null,ge=null,Le=!1,Se=null,xe=!!q.dynamicChildren)=>{if(Y===q)return;Y&&!Hd(Y,q)&&(ve=K(Y),j(Y,_e,ge,!0),Y=null),q.patchFlag===-2&&(xe=!1,q.dynamicChildren=null);const{type:Te,ref:Ve,shapeFlag:He}=q;switch(Te){case Og:g(Y,q,oe,ve);break;case Ei:m(Y,q,oe,ve);break;case Fw:Y==null&&y(q,oe,ve,Le);break;case Be:D(Y,q,oe,ve,_e,ge,Le,Se,xe);break;default:He&1?x(Y,q,oe,ve,_e,ge,Le,Se,xe):He&6?P(Y,q,oe,ve,_e,ge,Le,Se,xe):(He&64||He&128)&&Te.process(Y,q,oe,ve,_e,ge,Le,Se,xe,ne)}Ve!=null&&_e&&$D(Ve,Y&&Y.ref,ge,q||Y,!q)},g=(Y,q,oe,ve)=>{if(Y==null)n(q.el=s(q.children),oe,ve);else{const _e=q.el=Y.el;q.children!==Y.children&&u(_e,q.children)}},m=(Y,q,oe,ve)=>{Y==null?n(q.el=l(q.children||""),oe,ve):q.el=Y.el},y=(Y,q,oe,ve)=>{[Y.el,Y.anchor]=v(Y.children,q,oe,ve,Y.el,Y.anchor)},_=({el:Y,anchor:q},oe,ve)=>{let _e;for(;Y&&Y!==q;)_e=d(Y),n(Y,oe,ve),Y=_e;n(q,oe,ve)},w=({el:Y,anchor:q})=>{let oe;for(;Y&&Y!==q;)oe=d(Y),a(Y),Y=oe;a(q)},x=(Y,q,oe,ve,_e,ge,Le,Se,xe)=>{Le=Le||q.type==="svg",Y==null?S(q,oe,ve,_e,ge,Le,Se,xe):C(Y,q,_e,ge,Le,Se,xe)},S=(Y,q,oe,ve,_e,ge,Le,Se)=>{let xe,Te;const{type:Ve,props:He,shapeFlag:je,transition:Pe,dirs:Ue}=Y;if(xe=Y.el=o(Y.type,ge,He&&He.is,He),je&8?c(xe,Y.children):je&16&&A(Y.children,xe,null,ve,_e,ge&&Ve!=="foreignObject",Le,Se),Ue&&Xf(Y,null,ve,"created"),T(xe,Y,Y.scopeId,Le,ve),He){for(const At in He)At!=="value"&&!kw(At)&&i(xe,At,null,He[At],ge,Y.children,ve,_e,ee);"value"in He&&i(xe,"value",null,He.value),(Te=He.onVnodeBeforeMount)&&ul(Te,ve,Y)}Ue&&Xf(Y,null,ve,"beforeMount");const gt=Fse(_e,Pe);gt&&Pe.beforeEnter(xe),n(xe,q,oe),((Te=He&&He.onVnodeMounted)||gt||Ue)&&Ki(()=>{Te&&ul(Te,ve,Y),gt&&Pe.enter(xe),Ue&&Xf(Y,null,ve,"mounted")},_e)},T=(Y,q,oe,ve,_e)=>{if(oe&&h(Y,oe),ve)for(let ge=0;ge{for(let Te=xe;Te{const Se=q.el=Y.el;let{patchFlag:xe,dynamicChildren:Te,dirs:Ve}=q;xe|=Y.patchFlag&16;const He=Y.props||In,je=q.props||In;let Pe;oe&&Zf(oe,!1),(Pe=je.onVnodeBeforeUpdate)&&ul(Pe,oe,q,Y),Ve&&Xf(q,Y,oe,"beforeUpdate"),oe&&Zf(oe,!0);const Ue=_e&&q.type!=="foreignObject";if(Te?M(Y.dynamicChildren,Te,Se,oe,ve,Ue,ge):Le||B(Y,q,Se,null,oe,ve,Ue,ge,!1),xe>0){if(xe&16)E(Se,q,He,je,oe,ve,_e);else if(xe&2&&He.class!==je.class&&i(Se,"class",null,je.class,_e),xe&4&&i(Se,"style",He.style,je.style,_e),xe&8){const gt=q.dynamicProps;for(let At=0;At{Pe&&ul(Pe,oe,q,Y),Ve&&Xf(q,Y,oe,"updated")},ve)},M=(Y,q,oe,ve,_e,ge,Le)=>{for(let Se=0;Se{if(oe!==ve){if(oe!==In)for(const Se in oe)!kw(Se)&&!(Se in ve)&&i(Y,Se,oe[Se],null,Le,q.children,_e,ge,ee);for(const Se in ve){if(kw(Se))continue;const xe=ve[Se],Te=oe[Se];xe!==Te&&Se!=="value"&&i(Y,Se,Te,xe,Le,q.children,_e,ge,ee)}"value"in ve&&i(Y,"value",oe.value,ve.value)}},D=(Y,q,oe,ve,_e,ge,Le,Se,xe)=>{const Te=q.el=Y?Y.el:s(""),Ve=q.anchor=Y?Y.anchor:s("");let{patchFlag:He,dynamicChildren:je,slotScopeIds:Pe}=q;Pe&&(Se=Se?Se.concat(Pe):Pe),Y==null?(n(Te,oe,ve),n(Ve,oe,ve),A(q.children,oe,Ve,_e,ge,Le,Se,xe)):He>0&&He&64&&je&&Y.dynamicChildren?(M(Y.dynamicChildren,je,oe,_e,ge,Le,Se),(q.key!=null||_e&&q===_e.subTree)&&kR(Y,q,!0)):B(Y,q,oe,Ve,_e,ge,Le,Se,xe)},P=(Y,q,oe,ve,_e,ge,Le,Se,xe)=>{q.slotScopeIds=Se,Y==null?q.shapeFlag&512?_e.ctx.activate(q,oe,ve,Le,xe):L(q,oe,ve,_e,ge,Le,xe):I(Y,q,xe)},L=(Y,q,oe,ve,_e,ge,Le)=>{const Se=Y.component=jse(Y,ve,_e);if($2(Y)&&(Se.ctx.renderer=ne),Kse(Se),Se.asyncDep){if(_e&&_e.registerDep(Se,O),!Y.el){const xe=Se.subTree=J(Ei);m(null,xe,q,oe)}return}O(Se,Y,q,oe,_e,ge,Le)},I=(Y,q,oe)=>{const ve=q.component=Y.component;if(lse(Y,q,oe))if(ve.asyncDep&&!ve.asyncResolved){R(ve,q,oe);return}else ve.next=q,rse(ve.update),ve.update();else q.el=Y.el,ve.vnode=q},O=(Y,q,oe,ve,_e,ge,Le)=>{const Se=()=>{if(Y.isMounted){let{next:Ve,bu:He,u:je,parent:Pe,vnode:Ue}=Y,gt=Ve,At;Zf(Y,!1),Ve?(Ve.el=Ue.el,R(Y,Ve,Le)):Ve=Ue,He&&Bw(He),(At=Ve.props&&Ve.props.onVnodeBeforeUpdate)&&ul(At,Pe,Ve,Ue),Zf(Y,!0);const Gt=XT(Y),tt=Y.subTree;Y.subTree=Gt,p(tt,Gt,f(tt.el),K(tt),Y,_e,ge),Ve.el=Gt.el,gt===null&&use(Y,Gt.el),je&&Ki(je,_e),(At=Ve.props&&Ve.props.onVnodeUpdated)&&Ki(()=>ul(At,Pe,Ve,Ue),_e)}else{let Ve;const{el:He,props:je}=q,{bm:Pe,m:Ue,parent:gt}=Y,At=Ry(q);if(Zf(Y,!1),Pe&&Bw(Pe),!At&&(Ve=je&&je.onVnodeBeforeMount)&&ul(Ve,gt,q),Zf(Y,!0),He&&ie){const Gt=()=>{Y.subTree=XT(Y),ie(He,Y.subTree,Y,_e,null)};At?q.type.__asyncLoader().then(()=>!Y.isUnmounted&&Gt()):Gt()}else{const Gt=Y.subTree=XT(Y);p(null,Gt,oe,ve,Y,_e,ge),q.el=Gt.el}if(Ue&&Ki(Ue,_e),!At&&(Ve=je&&je.onVnodeMounted)){const Gt=q;Ki(()=>ul(Ve,gt,Gt),_e)}(q.shapeFlag&256||gt&&Ry(gt.vnode)&>.vnode.shapeFlag&256)&&Y.a&&Ki(Y.a,_e),Y.isMounted=!0,q=oe=ve=null}},xe=Y.effect=new bR(Se,()=>MR(Te),Y.scope),Te=Y.update=()=>xe.run();Te.id=Y.uid,Zf(Y,!0),Te()},R=(Y,q,oe)=>{q.component=Y;const ve=Y.vnode.props;Y.vnode=q,Y.next=null,Ise(Y,q.props,ve,oe),kse(Y,q.children,oe),Lg(),F4(Y),Ig()},B=(Y,q,oe,ve,_e,ge,Le,Se,xe=!1)=>{const Te=Y&&Y.children,Ve=Y?Y.shapeFlag:0,He=q.children,{patchFlag:je,shapeFlag:Pe}=q;if(je>0){if(je&128){z(Te,He,oe,ve,_e,ge,Le,Se,xe);return}else if(je&256){k(Te,He,oe,ve,_e,ge,Le,Se,xe);return}}Pe&8?(Ve&16&&ee(Te,_e,ge),He!==Te&&c(oe,He)):Ve&16?Pe&16?z(Te,He,oe,ve,_e,ge,Le,Se,xe):ee(Te,_e,ge,!0):(Ve&8&&c(oe,""),Pe&16&&A(He,oe,ve,_e,ge,Le,Se,xe))},k=(Y,q,oe,ve,_e,ge,Le,Se,xe)=>{Y=Y||wp,q=q||wp;const Te=Y.length,Ve=q.length,He=Math.min(Te,Ve);let je;for(je=0;jeVe?ee(Y,_e,ge,!0,!1,He):A(q,oe,ve,_e,ge,Le,Se,xe,He)},z=(Y,q,oe,ve,_e,ge,Le,Se,xe)=>{let Te=0;const Ve=q.length;let He=Y.length-1,je=Ve-1;for(;Te<=He&&Te<=je;){const Pe=Y[Te],Ue=q[Te]=xe?Bc(q[Te]):bl(q[Te]);if(Hd(Pe,Ue))p(Pe,Ue,oe,null,_e,ge,Le,Se,xe);else break;Te++}for(;Te<=He&&Te<=je;){const Pe=Y[He],Ue=q[je]=xe?Bc(q[je]):bl(q[je]);if(Hd(Pe,Ue))p(Pe,Ue,oe,null,_e,ge,Le,Se,xe);else break;He--,je--}if(Te>He){if(Te<=je){const Pe=je+1,Ue=Peje)for(;Te<=He;)j(Y[Te],_e,ge,!0),Te++;else{const Pe=Te,Ue=Te,gt=new Map;for(Te=Ue;Te<=je;Te++){const ae=q[Te]=xe?Bc(q[Te]):bl(q[Te]);ae.key!=null&>.set(ae.key,Te)}let At,Gt=0;const tt=je-Ue+1;let be=!1,pe=0;const de=new Array(tt);for(Te=0;Te=tt){j(ae,_e,ge,!0);continue}let Ge;if(ae.key!=null)Ge=gt.get(ae.key);else for(At=Ue;At<=je;At++)if(de[At-Ue]===0&&Hd(ae,q[At])){Ge=At;break}Ge===void 0?j(ae,_e,ge,!0):(de[Ge-Ue]=Te+1,Ge>=pe?pe=Ge:be=!0,p(ae,q[Ge],oe,null,_e,ge,Le,Se,xe),Gt++)}const Me=be?Vse(de):wp;for(At=Me.length-1,Te=tt-1;Te>=0;Te--){const ae=Ue+Te,Ge=q[ae],St=ae+1{const{el:ge,type:Le,transition:Se,children:xe,shapeFlag:Te}=Y;if(Te&6){$(Y.component.subTree,q,oe,ve);return}if(Te&128){Y.suspense.move(q,oe,ve);return}if(Te&64){Le.move(Y,q,oe,ne);return}if(Le===Be){n(ge,q,oe);for(let He=0;HeSe.enter(ge),_e);else{const{leave:He,delayLeave:je,afterLeave:Pe}=Se,Ue=()=>n(ge,q,oe),gt=()=>{He(ge,()=>{Ue(),Pe&&Pe()})};je?je(ge,Ue,gt):gt()}else n(ge,q,oe)},j=(Y,q,oe,ve=!1,_e=!1)=>{const{type:ge,props:Le,ref:Se,children:xe,dynamicChildren:Te,shapeFlag:Ve,patchFlag:He,dirs:je}=Y;if(Se!=null&&$D(Se,null,oe,Y,!0),Ve&256){q.ctx.deactivate(Y);return}const Pe=Ve&1&&je,Ue=!Ry(Y);let gt;if(Ue&&(gt=Le&&Le.onVnodeBeforeUnmount)&&ul(gt,q,Y),Ve&6)se(Y.component,oe,ve);else{if(Ve&128){Y.suspense.unmount(oe,ve);return}Pe&&Xf(Y,null,q,"beforeUnmount"),Ve&64?Y.type.remove(Y,q,oe,_e,ne,ve):Te&&(ge!==Be||He>0&&He&64)?ee(Te,q,oe,!1,!0):(ge===Be&&He&384||!_e&&Ve&16)&&ee(xe,q,oe),ve&&X(Y)}(Ue&&(gt=Le&&Le.onVnodeUnmounted)||Pe)&&Ki(()=>{gt&&ul(gt,q,Y),Pe&&Xf(Y,null,q,"unmounted")},oe)},X=Y=>{const{type:q,el:oe,anchor:ve,transition:_e}=Y;if(q===Be){Q(oe,ve);return}if(q===Fw){w(Y);return}const ge=()=>{a(oe),_e&&!_e.persisted&&_e.afterLeave&&_e.afterLeave()};if(Y.shapeFlag&1&&_e&&!_e.persisted){const{leave:Le,delayLeave:Se}=_e,xe=()=>Le(oe,ge);Se?Se(Y.el,ge,xe):xe()}else ge()},Q=(Y,q)=>{let oe;for(;Y!==q;)oe=d(Y),a(Y),Y=oe;a(q)},se=(Y,q,oe)=>{const{bum:ve,scope:_e,update:ge,subTree:Le,um:Se}=Y;ve&&Bw(ve),_e.stop(),ge&&(ge.active=!1,j(Le,Y,q,oe)),Se&&Ki(Se,q),Ki(()=>{Y.isUnmounted=!0},q),q&&q.pendingBranch&&!q.isUnmounted&&Y.asyncDep&&!Y.asyncResolved&&Y.suspenseId===q.pendingId&&(q.deps--,q.deps===0&&q.resolve())},ee=(Y,q,oe,ve=!1,_e=!1,ge=0)=>{for(let Le=ge;LeY.shapeFlag&6?K(Y.component.subTree):Y.shapeFlag&128?Y.suspense.next():d(Y.anchor||Y.el),Z=(Y,q,oe)=>{Y==null?q._vnode&&j(q._vnode,null,null,!0):p(q._vnode||null,Y,q,null,null,null,oe),F4(),y9(),q._vnode=Y},ne={p,um:j,m:$,r:X,mt:L,mc:A,pc:B,pbc:M,n:K,o:e};let re,ie;return t&&([re,ie]=t(ne)),{render:Z,hydrate:re,createApp:Pse(Z,re)}}function Zf({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function Fse(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function kR(e,t,r=!1){const n=e.children,a=t.children;if(We(n)&&We(a))for(let i=0;i>1,e[r[s]]0&&(t[n]=r[i-1]),r[i]=n)}}for(i=r.length,o=r[i-1];i-- >0;)r[i]=o,o=t[o];return r}const zse=e=>e.__isTeleport,ky=e=>e&&(e.disabled||e.disabled===""),Z4=e=>typeof SVGElement<"u"&&e instanceof SVGElement,WD=(e,t)=>{const r=e&&e.to;return wt(r)?t?t(r):null:r},Hse={name:"Teleport",__isTeleport:!0,process(e,t,r,n,a,i,o,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:v,createText:p,createComment:g}}=u,m=ky(t.props);let{shapeFlag:y,children:_,dynamicChildren:w}=t;if(e==null){const x=t.el=p(""),S=t.anchor=p("");h(x,r,n),h(S,r,n);const T=t.target=WD(t.props,v),A=t.targetAnchor=p("");T&&(h(A,T),o=o||Z4(T));const C=(M,E)=>{y&16&&c(_,M,E,a,i,o,s,l)};m?C(r,S):T&&C(T,A)}else{t.el=e.el;const x=t.anchor=e.anchor,S=t.target=e.target,T=t.targetAnchor=e.targetAnchor,A=ky(e.props),C=A?r:S,M=A?x:T;if(o=o||Z4(S),w?(d(e.dynamicChildren,w,C,a,i,o,s),kR(e,t,!0)):l||f(e,t,C,M,a,i,o,s,!1),m)A?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):q1(t,r,x,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const E=t.target=WD(t.props,v);E&&q1(t,E,null,u,0)}else A&&q1(t,S,T,u,1)}F9(t)},remove(e,t,r,n,{um:a,o:{remove:i}},o){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:f,props:d}=e;if(f&&i(c),o&&i(u),s&16){const h=o||!ky(d);for(let v=0;v0?Os||wp:null,Use(),S0>0&&Os&&Os.push(e),e}function U(e,t,r,n,a,i){return V9(V(e,t,r,n,a,i,!0))}function he(e,t,r,n,a){return V9(J(e,t,r,n,a,!0))}function hn(e){return e?e.__v_isVNode===!0:!1}function Hd(e,t){return e.type===t.type&&e.key===t.key}const j2="__vInternal",z9=({key:e})=>e??null,Vw=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?wt(e)||Qr(e)||dt(e)?{i:Xa,r:e,k:t,f:!!r}:e:null);function V(e,t=null,r=null,n=0,a=null,i=e===Be?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&z9(t),ref:t&&Vw(t),scopeId:U2,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Xa};return s?(NR(l,r),i&128&&e.normalize(l)):r&&(l.shapeFlag|=wt(r)?8:16),S0>0&&!o&&Os&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Os.push(l),l}const J=$se;function $se(e,t=null,r=null,n=0,a=null,i=!1){if((!e||e===w9)&&(e=Ei),hn(e)){const s=Fu(e,t,!0);return r&&NR(s,r),S0>0&&!i&&Os&&(s.shapeFlag&6?Os[Os.indexOf(e)]=s:Os.push(s)),s.patchFlag|=-2,s}if(Qse(e)&&(e=e.__vccOpts),t){t=K2(t);let{class:s,style:l}=t;s&&!wt(s)&&(t.class=H(s)),Vt(l)&&(c9(l)&&!We(l)&&(l=ma({},l)),t.style=Xe(l))}const o=wt(e)?1:fse(e)?128:zse(e)?64:Vt(e)?4:dt(e)?2:0;return V(e,t,r,n,a,o,i,!0)}function K2(e){return e?c9(e)||j2 in e?ma({},e):e:null}function Fu(e,t,r=!1){const{props:n,ref:a,patchFlag:i,children:o}=e,s=t?Ut(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&z9(s),ref:t&&t.ref?r&&a?We(a)?a.concat(Vw(t)):[a,Vw(t)]:Vw(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Be?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Fu(e.ssContent),ssFallback:e.ssFallback&&Fu(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function nr(e=" ",t=0){return J(Og,null,e,t)}function H9(e,t){const r=J(Fw,null,e);return r.staticCount=t,r}function ce(e="",t=!1){return t?(N(),he(Ei,null,e)):J(Ei,null,e)}function bl(e){return e==null||typeof e=="boolean"?J(Ei):We(e)?J(Be,null,e.slice()):typeof e=="object"?Bc(e):J(Og,null,String(e))}function Bc(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Fu(e)}function NR(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(We(t))r=16;else if(typeof t=="object")if(n&65){const a=t.default;a&&(a._c&&(a._d=!1),NR(e,a()),a._c&&(a._d=!0));return}else{r=32;const a=t._;!a&&!(j2 in t)?t._ctx=Xa:a===3&&Xa&&(Xa.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else dt(t)?(t={default:t,_ctx:Xa},r=32):(t=String(t),n&64?(r=16,t=[nr(t)]):r=8);e.children=t,e.shapeFlag|=r}function Ut(...e){const t={};for(let r=0;rHa||Xa;let BR,mv,Q4="__VUE_INSTANCE_SETTERS__";(mv=kD()[Q4])||(mv=kD()[Q4]=[]),mv.push(e=>Ha=e),BR=e=>{mv.length>1?mv.forEach(t=>t(e)):mv[0](e)};const $p=e=>{BR(e),e.scope.on()},mh=()=>{Ha&&Ha.scope.off(),BR(null)};function G9(e){return e.vnode.shapeFlag&4}let x0=!1;function Kse(e,t=!1){x0=t;const{props:r,children:n}=e.vnode,a=G9(e);Lse(e,r,a,t),Ose(e,n);const i=a?Xse(e,t):void 0;return x0=!1,i}function Xse(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=gh(new Proxy(e.ctx,xse));const{setup:n}=r;if(n){const a=e.setupContext=n.length>1?$9(e):null;$p(e),Lg();const i=nf(n,e,0,[e.props,a]);if(Ig(),mh(),p0(i)){if(i.then(mh,mh),t)return i.then(o=>{J4(e,o,t)}).catch(o=>{H2(o,e,0)});e.asyncDep=i}else J4(e,i,t)}else U9(e,t)}function J4(e,t,r){dt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Vt(t)&&(e.setupState=h9(t)),U9(e,r)}let eB;function U9(e,t,r){const n=e.type;if(!e.render){if(!t&&eB&&!n.render){const a=n.template||RR(e).template;if(a){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=ma(ma({isCustomElement:i,delimiters:s},o),l);n.render=eB(a,u)}}e.render=n.render||zr}{$p(e),Lg();try{Ase(e)}finally{Ig(),mh()}}}function Zse(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,r){return oo(e,"get","$attrs"),t[r]}}))}function $9(e){const t=r=>{e.exposed=r||{}};return{get attrs(){return Zse(e)},slots:e.slots,emit:e.emit,expose:t}}function X2(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(h9(gh(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Oy)return Oy[r](e)},has(t,r){return r in t||r in Oy}}))}function qse(e,t=!0){return dt(e)?e.displayName||e.name:e.name||t&&e.__name}function Qse(e){return dt(e)&&"__vccOpts"in e}const F=(e,t)=>p9(e,t,x0);function et(e,t,r){const n=arguments.length;return n===2?Vt(t)&&!We(t)?hn(t)?J(e,null,[t]):J(e,t):J(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&hn(r)&&(r=[r]),J(e,t,r))}const Jse=Symbol.for("v-scx"),ele=()=>Ye(Jse),tle="3.3.11",rle="http://www.w3.org/2000/svg",Gd=typeof document<"u"?document:null,tB=Gd&&Gd.createElement("template"),nle={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const a=t?Gd.createElementNS(rle,e):Gd.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:e=>Gd.createTextNode(e),createComment:e=>Gd.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Gd.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,a,i){const o=r?r.previousSibling:t.lastChild;if(a&&(a===i||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),r),!(a===i||!(a=a.nextSibling)););else{tB.innerHTML=n?`${e}`:e;const s=tB.content;if(n){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},hc="transition",mm="animation",Wp=Symbol("_vtc"),Yn=(e,{slots:t})=>et(pse,Y9(e),t);Yn.displayName="Transition";const W9={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},ale=Yn.props=ma({},A9,W9),qf=(e,t=[])=>{We(e)?e.forEach(r=>r(...t)):e&&e(...t)},rB=e=>e?We(e)?e.some(t=>t.length>1):e.length>1:!1;function Y9(e){const t={};for(const D in e)D in W9||(t[D]=e[D]);if(e.css===!1)return t;const{name:r="v",type:n,duration:a,enterFromClass:i=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=s,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:d=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,v=ile(a),p=v&&v[0],g=v&&v[1],{onBeforeEnter:m,onEnter:y,onEnterCancelled:_,onLeave:w,onLeaveCancelled:x,onBeforeAppear:S=m,onAppear:T=y,onAppearCancelled:A=_}=t,C=(D,P,L)=>{Pc(D,P?c:s),Pc(D,P?u:o),L&&L()},M=(D,P)=>{D._isLeaving=!1,Pc(D,f),Pc(D,h),Pc(D,d),P&&P()},E=D=>(P,L)=>{const I=D?T:y,O=()=>C(P,D,L);qf(I,[P,O]),nB(()=>{Pc(P,D?l:i),du(P,D?c:s),rB(I)||aB(P,n,p,O)})};return ma(t,{onBeforeEnter(D){qf(m,[D]),du(D,i),du(D,o)},onBeforeAppear(D){qf(S,[D]),du(D,l),du(D,u)},onEnter:E(!1),onAppear:E(!0),onLeave(D,P){D._isLeaving=!0;const L=()=>M(D,P);du(D,f),K9(),du(D,d),nB(()=>{D._isLeaving&&(Pc(D,f),du(D,h),rB(w)||aB(D,n,g,L))}),qf(w,[D,L])},onEnterCancelled(D){C(D,!1),qf(_,[D])},onAppearCancelled(D){C(D,!0),qf(A,[D])},onLeaveCancelled(D){M(D),qf(x,[D])}})}function ile(e){if(e==null)return null;if(Vt(e))return[QT(e.enter),QT(e.leave)];{const t=QT(e);return[t,t]}}function QT(e){return moe(e)}function du(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Wp]||(e[Wp]=new Set)).add(t)}function Pc(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[Wp];r&&(r.delete(t),r.size||(e[Wp]=void 0))}function nB(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ole=0;function aB(e,t,r,n){const a=e._endId=++ole,i=()=>{a===e._endId&&n()};if(r)return setTimeout(i,r);const{type:o,timeout:s,propCount:l}=j9(e,t);if(!o)return n();const u=o+"end";let c=0;const f=()=>{e.removeEventListener(u,d),i()},d=h=>{h.target===e&&++c>=l&&f()};setTimeout(()=>{c(r[v]||"").split(", "),a=n(`${hc}Delay`),i=n(`${hc}Duration`),o=iB(a,i),s=n(`${mm}Delay`),l=n(`${mm}Duration`),u=iB(s,l);let c=null,f=0,d=0;t===hc?o>0&&(c=hc,f=o,d=i.length):t===mm?u>0&&(c=mm,f=u,d=l.length):(f=Math.max(o,u),c=f>0?o>u?hc:mm:null,d=c?c===hc?i.length:l.length:0);const h=c===hc&&/\b(transform|all)(,|$)/.test(n(`${hc}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function iB(e,t){for(;e.lengthoB(r)+oB(e[n])))}function oB(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function K9(){return document.body.offsetHeight}function sle(e,t,r){const n=e[Wp];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const FR=Symbol("_vod"),hr={beforeMount(e,{value:t},{transition:r}){e[FR]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):ym(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),ym(e,!0),n.enter(e)):n.leave(e,()=>{ym(e,!1)}):ym(e,t))},beforeUnmount(e,{value:t}){ym(e,t)}};function ym(e,t){e.style.display=t?e[FR]:"none"}function lle(e,t,r){const n=e.style,a=wt(r);if(r&&!a){if(t&&!wt(t))for(const i in t)r[i]==null&&YD(n,i,"");for(const i in r)YD(n,i,r[i])}else{const i=n.display;a?t!==r&&(n.cssText=r):t&&e.removeAttribute("style"),FR in e&&(n.display=i)}}const sB=/\s*!important$/;function YD(e,t,r){if(We(r))r.forEach(n=>YD(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=ule(e,t);sB.test(r)?e.setProperty(If(n),r.replace(sB,""),"important"):e[n]=r}}const lB=["Webkit","Moz","ms"],JT={};function ule(e,t){const r=JT[t];if(r)return r;let n=os(t);if(n!=="filter"&&n in e)return JT[t]=n;n=$_(n);for(let a=0;aeC||(ple.then(()=>eC=0),eC=Date.now());function mle(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;es(yle(n,r.value),t,5,[n])};return r.value=e,r.attached=gle(),r}function yle(e,t){if(We(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>a=>!a._stopped&&n&&n(a))}else return t}const dB=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_le=(e,t,r,n,a=!1,i,o,s,l)=>{t==="class"?sle(e,n,a):t==="style"?lle(e,r,n):B2(t)?gR(t)||hle(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ble(e,t,n,a))?fle(e,t,n,i,o,s,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),cle(e,t,n,a))};function ble(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&dB(t)&&dt(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||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 dB(t)&&wt(r)?!1:t in e}const X9=new WeakMap,Z9=new WeakMap,ZS=Symbol("_moveCb"),hB=Symbol("_enterCb"),q9={name:"TransitionGroup",props:ma({},ale,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=It(),n=x9();let a,i;return qu(()=>{if(!a.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Tle(a[0].el,r.vnode.el,o))return;a.forEach(Sle),a.forEach(xle);const s=a.filter(Ale);K9(),s.forEach(l=>{const u=l.el,c=u.style;du(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[ZS]=d=>{d&&d.target!==u||(!d||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u[ZS]=null,Pc(u,o))};u.addEventListener("transitionend",f)})}),()=>{const o=Er(e),s=Y9(o);let l=o.tag||Be;a=i,i=t.default?IR(t.default()):[];for(let u=0;udelete e.mode;q9.props;const Q9=q9;function Sle(e){const t=e.el;t[ZS]&&t[ZS](),t[hB]&&t[hB]()}function xle(e){Z9.set(e,e.el.getBoundingClientRect())}function Ale(e){const t=X9.get(e),r=Z9.get(e),n=t.left-r.left,a=t.top-r.top;if(n||a){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${n}px,${a}px)`,i.transitionDuration="0s",e}}function Tle(e,t,r){const n=e.cloneNode(),a=e[Wp];a&&a.forEach(s=>{s.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(s=>s&&n.classList.add(s)),n.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(n);const{hasTransform:o}=j9(n);return i.removeChild(n),o}const Yp=e=>{const t=e.props["onUpdate:modelValue"]||!1;return We(t)?r=>Bw(t,r):t};function Cle(e){e.target.composing=!0}function vB(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Lu=Symbol("_assign"),VR={created(e,{modifiers:{lazy:t,trim:r,number:n}},a){e[Lu]=Yp(a);const i=n||a.props&&a.props.type==="number";zc(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;r&&(s=s.trim()),i&&(s=OD(s)),e[Lu](s)}),r&&zc(e,"change",()=>{e.value=e.value.trim()}),t||(zc(e,"compositionstart",Cle),zc(e,"compositionend",vB),zc(e,"change",vB))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:n,number:a}},i){if(e[Lu]=Yp(i),e.composing)return;const o=a||e.type==="number"?OD(e.value):e.value,s=t??"";o!==s&&(document.activeElement===e&&e.type!=="range"&&(r||n&&e.value.trim()===s)||(e.value=s))}},qS={deep:!0,created(e,t,r){e[Lu]=Yp(r),zc(e,"change",()=>{const n=e._modelValue,a=e7(e),i=e.checked,o=e[Lu];if(We(n)){const s=XW(n,a),l=s!==-1;if(i&&!l)o(n.concat(a));else if(!i&&l){const u=[...n];u.splice(s,1),o(u)}}else if(F2(n)){const s=new Set(n);i?s.add(a):s.delete(a),o(s)}else o(t7(e,i))})},mounted:pB,beforeUpdate(e,t,r){e[Lu]=Yp(r),pB(e,t,r)}};function pB(e,{value:t,oldValue:r},n){e._modelValue=t,We(t)?e.checked=XW(t,n.props.value)>-1:F2(t)?e.checked=t.has(n.props.value):t!==r&&(e.checked=Gp(t,t7(e,!0)))}const J9={created(e,{value:t},r){e.checked=Gp(t,r.props.value),e[Lu]=Yp(r),zc(e,"change",()=>{e[Lu](e7(e))})},beforeUpdate(e,{value:t,oldValue:r},n){e[Lu]=Yp(n),t!==r&&(e.checked=Gp(t,n.props.value))}};function e7(e){return"_value"in e?e._value:e.value}function t7(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const Ele=["ctrl","shift","alt","meta"],Mle={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)=>Ele.some(r=>e[`${r}Key`]&&!t.includes(r))},it=(e,t)=>e._withMods||(e._withMods=(r,...n)=>{for(let a=0;ae._withKeys||(e._withKeys=r=>{if(!("key"in r))return;const n=If(r.key);if(t.some(a=>a===n||Dle[a]===n))return e(r)}),Ple=ma({patchProp:_le},nle);let gB;function r7(){return gB||(gB=Nse(Ple))}const jp=(...e)=>{r7().render(...e)},n7=(...e)=>{const t=r7().createApp(...e),{mount:r}=t;return t.mount=n=>{const a=Lle(n);if(!a)return;const i=t._component;!dt(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.innerHTML="";const o=r(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},t};function Lle(e){return wt(e)?document.querySelector(e):e}//! moment.js //! version : 2.29.4 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com var a7;function vt(){return a7.apply(null,arguments)}function Ile(e){a7=e}function js(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function yh(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function en(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function zR(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(en(e,t))return!1;return!0}function Xi(e){return e===void 0}function Vu(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Y_(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function i7(e,t){var r=[],n,a=e.length;for(n=0;n>>0,n;for(n=0;n0)for(r=0;r=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var $R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Q1=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,rC={},Tp={};function Zt(e,t,r,n){var a=n;typeof n=="string"&&(a=function(){return this[n]()}),e&&(Tp[e]=a),t&&(Tp[t[0]]=function(){return Fl(a.apply(this,arguments),t[1],t[2])}),r&&(Tp[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function Ble(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Fle(e){var t=e.match($R),r,n;for(r=0,n=t.length;r=0&&Q1.test(e);)e=e.replace(Q1,n),Q1.lastIndex=0,r-=1;return e}var Vle={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"};function zle(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match($R).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var Hle="Invalid date";function Gle(){return this._invalidDate}var Ule="%d",$le=/\d{1,2}/;function Wle(e){return this._ordinal.replace("%d",e)}var Yle={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function jle(e,t,r,n){var a=this._relativeTime[r];return ql(a)?a(e,t,r,n):a.replace(/%d/i,e)}function Kle(e,t){var r=this._relativeTime[e>0?"future":"past"];return ql(r)?r(t):r.replace(/%s/i,t)}var By={};function vi(e,t){var r=e.toLowerCase();By[r]=By[r+"s"]=By[t]=e}function ps(e){return typeof e=="string"?By[e]||By[e.toLowerCase()]:void 0}function WR(e){var t={},r,n;for(n in e)en(e,n)&&(r=ps(n),r&&(t[r]=e[n]));return t}var u7={};function pi(e,t){u7[e]=t}function Xle(e){var t=[],r;for(r in e)en(e,r)&&t.push({unit:r,priority:u7[r]});return t.sort(function(n,a){return n.priority-a.priority}),t}function q2(e){return e%4===0&&e%100!==0||e%400===0}function Wo(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Nr(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=Wo(t)),r}function kg(e,t){return function(r){return r!=null?(c7(this,e,r),vt.updateOffset(this,t),this):QS(this,e)}}function QS(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function c7(e,t,r){e.isValid()&&!isNaN(r)&&(t==="FullYear"&&q2(e.year())&&e.month()===1&&e.date()===29?(r=Nr(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),nA(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}function Zle(e){return e=ps(e),ql(this[e])?this[e]():this}function qle(e,t){if(typeof e=="object"){e=WR(e);var r=Xle(e),n,a=r.length;for(n=0;n68?1900:2e3)};var b7=kg("FullYear",!0);function gue(){return q2(this.year())}function mue(e,t,r,n,a,i,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,r,n,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,r,n,a,i,o),s}function A0(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function ex(e,t,r){var n=7+t-r,a=(7+A0(e,0,n).getUTCDay()-t)%7;return-a+n-1}function w7(e,t,r,n,a){var i=(7+r-n)%7,o=ex(e,n,a),s=1+7*(t-1)+i+o,l,u;return s<=0?(l=e-1,u=Fy(l)+s):s>Fy(e)?(l=e+1,u=s-Fy(e)):(l=e,u=s),{year:l,dayOfYear:u}}function T0(e,t,r){var n=ex(e.year(),t,r),a=Math.floor((e.dayOfYear()-n-1)/7)+1,i,o;return a<1?(o=e.year()-1,i=a+Iu(o,t,r)):a>Iu(e.year(),t,r)?(i=a-Iu(e.year(),t,r),o=e.year()+1):(o=e.year(),i=a),{week:i,year:o}}function Iu(e,t,r){var n=ex(e,t,r),a=ex(e+1,t,r);return(Fy(e)-n+a)/7}Zt("w",["ww",2],"wo","week");Zt("W",["WW",2],"Wo","isoWeek");vi("week","w");vi("isoWeek","W");pi("week",5);pi("isoWeek",5);Lt("w",Nn);Lt("ww",Nn,Eo);Lt("W",Nn);Lt("WW",Nn,Eo);X_(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=Nr(e)});function yue(e){return T0(e,this._week.dow,this._week.doy).week}var _ue={dow:0,doy:6};function bue(){return this._week.dow}function wue(){return this._week.doy}function Sue(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function xue(e){var t=T0(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Zt("d",0,"do","day");Zt("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Zt("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Zt("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Zt("e",0,0,"weekday");Zt("E",0,0,"isoWeekday");vi("day","d");vi("weekday","e");vi("isoWeekday","E");pi("day",11);pi("weekday",11);pi("isoWeekday",11);Lt("d",Nn);Lt("e",Nn);Lt("E",Nn);Lt("dd",function(e,t){return t.weekdaysMinRegex(e)});Lt("ddd",function(e,t){return t.weekdaysShortRegex(e)});Lt("dddd",function(e,t){return t.weekdaysRegex(e)});X_(["dd","ddd","dddd"],function(e,t,r,n){var a=r._locale.weekdaysParse(e,n,r._strict);a!=null?t.d=a:Tr(r).invalidWeekday=e});X_(["d","e","E"],function(e,t,r,n){t[n]=Nr(e)});function Aue(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Tue(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function KR(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Cue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),S7="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Eue="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Mue=K_,Due=K_,Pue=K_;function Lue(e,t){var r=js(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?KR(r,this._week.dow):e?r[e.day()]:r}function Iue(e){return e===!0?KR(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Rue(e){return e===!0?KR(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Oue(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=Zl([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return r?t==="dddd"?(a=ea.call(this._weekdaysParse,o),a!==-1?a:null):t==="ddd"?(a=ea.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=ea.call(this._minWeekdaysParse,o),a!==-1?a:null):t==="dddd"?(a=ea.call(this._weekdaysParse,o),a!==-1||(a=ea.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=ea.call(this._minWeekdaysParse,o),a!==-1?a:null)):t==="ddd"?(a=ea.call(this._shortWeekdaysParse,o),a!==-1||(a=ea.call(this._weekdaysParse,o),a!==-1)?a:(a=ea.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=ea.call(this._minWeekdaysParse,o),a!==-1||(a=ea.call(this._weekdaysParse,o),a!==-1)?a:(a=ea.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function kue(e,t,r){var n,a,i;if(this._weekdaysParseExact)return Oue.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=Zl([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function Nue(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=Aue(e,this.localeData()),this.add(e-t,"d")):t}function Bue(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Fue(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Tue(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Vue(e){return this._weekdaysParseExact?(en(this,"_weekdaysRegex")||XR.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(en(this,"_weekdaysRegex")||(this._weekdaysRegex=Mue),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function zue(e){return this._weekdaysParseExact?(en(this,"_weekdaysRegex")||XR.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(en(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Due),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Hue(e){return this._weekdaysParseExact?(en(this,"_weekdaysRegex")||XR.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(en(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Pue),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function XR(){function e(c,f){return f.length-c.length}var t=[],r=[],n=[],a=[],i,o,s,l,u;for(i=0;i<7;i++)o=Zl([2e3,1]).day(i),s=yo(this.weekdaysMin(o,"")),l=yo(this.weekdaysShort(o,"")),u=yo(this.weekdays(o,"")),t.push(s),r.push(l),n.push(u),a.push(s),a.push(l),a.push(u);t.sort(e),r.sort(e),n.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ZR(){return this.hours()%12||12}function Gue(){return this.hours()||24}Zt("H",["HH",2],0,"hour");Zt("h",["hh",2],0,ZR);Zt("k",["kk",2],0,Gue);Zt("hmm",0,0,function(){return""+ZR.apply(this)+Fl(this.minutes(),2)});Zt("hmmss",0,0,function(){return""+ZR.apply(this)+Fl(this.minutes(),2)+Fl(this.seconds(),2)});Zt("Hmm",0,0,function(){return""+this.hours()+Fl(this.minutes(),2)});Zt("Hmmss",0,0,function(){return""+this.hours()+Fl(this.minutes(),2)+Fl(this.seconds(),2)});function x7(e,t){Zt(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}x7("a",!0);x7("A",!1);vi("hour","h");pi("hour",13);function A7(e,t){return t._meridiemParse}Lt("a",A7);Lt("A",A7);Lt("H",Nn);Lt("h",Nn);Lt("k",Nn);Lt("HH",Nn,Eo);Lt("hh",Nn,Eo);Lt("kk",Nn,Eo);Lt("hmm",h7);Lt("hmmss",v7);Lt("Hmm",h7);Lt("Hmmss",v7);wn(["H","HH"],xa);wn(["k","kk"],function(e,t,r){var n=Nr(e);t[xa]=n===24?0:n});wn(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});wn(["h","hh"],function(e,t,r){t[xa]=Nr(e),Tr(r).bigHour=!0});wn("hmm",function(e,t,r){var n=e.length-2;t[xa]=Nr(e.substr(0,n)),t[ks]=Nr(e.substr(n)),Tr(r).bigHour=!0});wn("hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[xa]=Nr(e.substr(0,n)),t[ks]=Nr(e.substr(n,2)),t[xu]=Nr(e.substr(a)),Tr(r).bigHour=!0});wn("Hmm",function(e,t,r){var n=e.length-2;t[xa]=Nr(e.substr(0,n)),t[ks]=Nr(e.substr(n))});wn("Hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[xa]=Nr(e.substr(0,n)),t[ks]=Nr(e.substr(n,2)),t[xu]=Nr(e.substr(a))});function Uue(e){return(e+"").toLowerCase().charAt(0)==="p"}var $ue=/[ap]\.?m?\.?/i,Wue=kg("Hours",!0);function Yue(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var T7={calendar:kle,longDateFormat:Vle,invalidDate:Hle,ordinal:Ule,dayOfMonthOrdinalParse:$le,relativeTime:Yle,months:oue,monthsShort:p7,week:_ue,weekdays:Cue,weekdaysMin:Eue,weekdaysShort:S7,meridiemParse:$ue},Vn={},_m={},C0;function jue(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r0;){if(a=aA(i.slice(0,r).join("-")),a)return a;if(n&&n.length>=r&&jue(i,n)>=r-1)break;r--}t++}return C0}function Xue(e){return e.match("^[^/\\\\]*$")!=null}function aA(e){var t=null,r;if(Vn[e]===void 0&&typeof module<"u"&&module&&module.exports&&Xue(e))try{t=C0._abbr,r=require,r("./locale/"+e),af(t)}catch{Vn[e]=null}return Vn[e]}function af(e,t){var r;return e&&(Xi(t)?r=Qu(e):r=qR(e,t),r?C0=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),C0._abbr}function qR(e,t){if(t!==null){var r,n=T7;if(t.abbr=e,Vn[e]!=null)s7("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Vn[e]._config;else if(t.parentLocale!=null)if(Vn[t.parentLocale]!=null)n=Vn[t.parentLocale]._config;else if(r=aA(t.parentLocale),r!=null)n=r._config;else return _m[t.parentLocale]||(_m[t.parentLocale]=[]),_m[t.parentLocale].push({name:e,config:t}),null;return Vn[e]=new UR(KD(n,t)),_m[e]&&_m[e].forEach(function(a){qR(a.name,a.config)}),af(e),Vn[e]}else return delete Vn[e],null}function Zue(e,t){if(t!=null){var r,n,a=T7;Vn[e]!=null&&Vn[e].parentLocale!=null?Vn[e].set(KD(Vn[e]._config,t)):(n=aA(e),n!=null&&(a=n._config),t=KD(a,t),n==null&&(t.abbr=e),r=new UR(t),r.parentLocale=Vn[e],Vn[e]=r),af(e)}else Vn[e]!=null&&(Vn[e].parentLocale!=null?(Vn[e]=Vn[e].parentLocale,e===af()&&af(e)):Vn[e]!=null&&delete Vn[e]);return Vn[e]}function Qu(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return C0;if(!js(e)){if(t=aA(e),t)return t;e=[e]}return Kue(e)}function que(){return XD(Vn)}function QR(e){var t,r=e._a;return r&&Tr(e).overflow===-2&&(t=r[Su]<0||r[Su]>11?Su:r[Sl]<1||r[Sl]>nA(r[ui],r[Su])?Sl:r[xa]<0||r[xa]>24||r[xa]===24&&(r[ks]!==0||r[xu]!==0||r[Zd]!==0)?xa:r[ks]<0||r[ks]>59?ks:r[xu]<0||r[xu]>59?xu:r[Zd]<0||r[Zd]>999?Zd:-1,Tr(e)._overflowDayOfYear&&(tSl)&&(t=Sl),Tr(e)._overflowWeeks&&t===-1&&(t=nue),Tr(e)._overflowWeekday&&t===-1&&(t=aue),Tr(e).overflow=t),e}var Que=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Jue=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ece=/Z|[+-]\d\d(?::?\d\d)?/,J1=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],nC=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],tce=/^\/?Date\((-?\d+)/i,rce=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,nce={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function C7(e){var t,r,n=e._i,a=Que.exec(n)||Jue.exec(n),i,o,s,l,u=J1.length,c=nC.length;if(a){for(Tr(e).iso=!0,t=0,r=u;tFy(o)||e._dayOfYear===0)&&(Tr(e)._overflowDayOfYear=!0),r=A0(o,0,e._dayOfYear),e._a[Su]=r.getUTCMonth(),e._a[Sl]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=a[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[xa]===24&&e._a[ks]===0&&e._a[xu]===0&&e._a[Zd]===0&&(e._nextDay=!0,e._a[xa]=0),e._d=(e._useUTC?A0:mue).apply(null,n),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[xa]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(Tr(e).weekdayMismatch=!0)}}function fce(e){var t,r,n,a,i,o,s,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,o=4,r=Jv(t.GG,e._a[ui],T0(On(),1,4).year),n=Jv(t.W,1),a=Jv(t.E,1),(a<1||a>7)&&(l=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,u=T0(On(),i,o),r=Jv(t.gg,e._a[ui],u.year),n=Jv(t.w,u.week),t.d!=null?(a=t.d,(a<0||a>6)&&(l=!0)):t.e!=null?(a=t.e+i,(t.e<0||t.e>6)&&(l=!0)):a=i),n<1||n>Iu(r,i,o)?Tr(e)._overflowWeeks=!0:l!=null?Tr(e)._overflowWeekday=!0:(s=w7(r,n,a,i,o),e._a[ui]=s.year,e._dayOfYear=s.dayOfYear)}vt.ISO_8601=function(){};vt.RFC_2822=function(){};function eO(e){if(e._f===vt.ISO_8601){C7(e);return}if(e._f===vt.RFC_2822){E7(e);return}e._a=[],Tr(e).empty=!0;var t=""+e._i,r,n,a,i,o,s=t.length,l=0,u,c;for(a=l7(e._f,e._locale).match($R)||[],c=a.length,r=0;r0&&Tr(e).unusedInput.push(o),t=t.slice(t.indexOf(n)+n.length),l+=n.length),Tp[i]?(n?Tr(e).empty=!1:Tr(e).unusedTokens.push(i),rue(i,n,e)):e._strict&&!n&&Tr(e).unusedTokens.push(i);Tr(e).charsLeftOver=s-l,t.length>0&&Tr(e).unusedInput.push(t),e._a[xa]<=12&&Tr(e).bigHour===!0&&e._a[xa]>0&&(Tr(e).bigHour=void 0),Tr(e).parsedDateParts=e._a.slice(0),Tr(e).meridiem=e._meridiem,e._a[xa]=dce(e._locale,e._a[xa],e._meridiem),u=Tr(e).era,u!==null&&(e._a[ui]=e._locale.erasConvertYear(u,e._a[ui])),JR(e),QR(e)}function dce(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function hce(e){var t,r,n,a,i,o,s=!1,l=e._f.length;if(l===0){Tr(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;athis?this:e:Z2()});function P7(e,t){var r,n;if(t.length===1&&js(t[0])&&(t=t[0]),!t.length)return On();for(r=t[0],n=1;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Oce(){if(!Xi(this._isDSTShifted))return this._isDSTShifted;var e={},t;return GR(e,this),e=M7(e),e._a?(t=e._isUTC?Zl(e._a):On(e._a),this._isDSTShifted=this.isValid()&&Tce(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function kce(){return this.isValid()?!this._isUTC:!1}function Nce(){return this.isValid()?this._isUTC:!1}function I7(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Bce=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Fce=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function nl(e,t){var r=e,n=null,a,i,o;return Hw(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:Vu(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=Bce.exec(e))?(a=n[1]==="-"?-1:1,r={y:0,d:Nr(n[Sl])*a,h:Nr(n[xa])*a,m:Nr(n[ks])*a,s:Nr(n[xu])*a,ms:Nr(qD(n[Zd]*1e3))*a}):(n=Fce.exec(e))?(a=n[1]==="-"?-1:1,r={y:Qf(n[2],a),M:Qf(n[3],a),w:Qf(n[4],a),d:Qf(n[5],a),h:Qf(n[6],a),m:Qf(n[7],a),s:Qf(n[8],a)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(o=Vce(On(r.from),On(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),i=new iA(r),Hw(e)&&en(e,"_locale")&&(i._locale=e._locale),Hw(e)&&en(e,"_isValid")&&(i._isValid=e._isValid),i}nl.fn=iA.prototype;nl.invalid=Ace;function Qf(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function bB(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Vce(e,t){var r;return e.isValid()&&t.isValid()?(t=rO(t,e),e.isBefore(t)?r=bB(e,t):(r=bB(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function R7(e,t){return function(r,n){var a,i;return n!==null&&!isNaN(+n)&&(s7(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),a=nl(r,n),O7(this,a,e),this}}function O7(e,t,r,n){var a=t._milliseconds,i=qD(t._days),o=qD(t._months);e.isValid()&&(n=n??!0,o&&m7(e,QS(e,"Month")+o*r),i&&c7(e,"Date",QS(e,"Date")+i*r),a&&e._d.setTime(e._d.valueOf()+a*r),n&&vt.updateOffset(e,i||o))}var zce=R7(1,"add"),Hce=R7(-1,"subtract");function k7(e){return typeof e=="string"||e instanceof String}function Gce(e){return Ks(e)||Y_(e)||k7(e)||Vu(e)||$ce(e)||Uce(e)||e===null||e===void 0}function Uce(e){var t=yh(e)&&!zR(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=n.length;for(a=0;ar.valueOf():r.valueOf()9999?zw(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ql(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",zw(r,"Z")):zw(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function afe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,a,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(r+n+a+i)}function ife(e){e||(e=this.isUtc()?vt.defaultFormatUtc:vt.defaultFormat);var t=zw(this,e);return this.localeData().postformat(t)}function ofe(e,t){return this.isValid()&&(Ks(e)&&e.isValid()||On(e).isValid())?nl({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function sfe(e){return this.from(On(),e)}function lfe(e,t){return this.isValid()&&(Ks(e)&&e.isValid()||On(e).isValid())?nl({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ufe(e){return this.to(On(),e)}function N7(e){var t;return e===void 0?this._locale._abbr:(t=Qu(e),t!=null&&(this._locale=t),this)}var B7=vs("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function F7(){return this._locale}var tx=1e3,Cp=60*tx,rx=60*Cp,V7=(365*400+97)*24*rx;function Ep(e,t){return(e%t+t)%t}function z7(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-V7:new Date(e,t,r).valueOf()}function H7(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-V7:Date.UTC(e,t,r)}function cfe(e){var t,r;if(e=ps(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?H7:z7,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Ep(t+(this._isUTC?0:this.utcOffset()*Cp),rx);break;case"minute":t=this._d.valueOf(),t-=Ep(t,Cp);break;case"second":t=this._d.valueOf(),t-=Ep(t,tx);break}return this._d.setTime(t),vt.updateOffset(this,!0),this}function ffe(e){var t,r;if(e=ps(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?H7:z7,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=rx-Ep(t+(this._isUTC?0:this.utcOffset()*Cp),rx)-1;break;case"minute":t=this._d.valueOf(),t+=Cp-Ep(t,Cp)-1;break;case"second":t=this._d.valueOf(),t+=tx-Ep(t,tx)-1;break}return this._d.setTime(t),vt.updateOffset(this,!0),this}function dfe(){return this._d.valueOf()-(this._offset||0)*6e4}function hfe(){return Math.floor(this.valueOf()/1e3)}function vfe(){return new Date(this.valueOf())}function pfe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function gfe(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function mfe(){return this.isValid()?this.toISOString():null}function yfe(){return HR(this)}function _fe(){return Gc({},Tr(this))}function bfe(){return Tr(this).overflow}function wfe(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Zt("N",0,0,"eraAbbr");Zt("NN",0,0,"eraAbbr");Zt("NNN",0,0,"eraAbbr");Zt("NNNN",0,0,"eraName");Zt("NNNNN",0,0,"eraNarrow");Zt("y",["y",1],"yo","eraYear");Zt("y",["yy",2],0,"eraYear");Zt("y",["yyy",3],0,"eraYear");Zt("y",["yyyy",4],0,"eraYear");Lt("N",nO);Lt("NN",nO);Lt("NNN",nO);Lt("NNNN",Ife);Lt("NNNNN",Rfe);wn(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var a=r._locale.erasParse(e,n,r._strict);a?Tr(r).era=a:Tr(r).invalidEra=e});Lt("y",Ng);Lt("yy",Ng);Lt("yyy",Ng);Lt("yyyy",Ng);Lt("yo",Ofe);wn(["y","yy","yyy","yyyy"],ui);wn(["yo"],function(e,t,r,n){var a;r._locale._eraYearOrdinalRegex&&(a=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[ui]=r._locale.eraYearOrdinalParse(e,a):t[ui]=parseInt(e,10)});function Sfe(e,t){var r,n,a,i=this._eras||Qu("en")._eras;for(r=0,n=i.length;r=0)return i[n]}function Afe(e,t){var r=e.since<=e.until?1:-1;return t===void 0?vt(e.since).year():vt(e.since).year()+(t-e.offset)*r}function Tfe(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;ei&&(t=i),Hfe.call(this,e,t,r,n,a))}function Hfe(e,t,r,n,a){var i=w7(e,t,r,n,a),o=A0(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Zt("Q",0,"Qo","quarter");vi("quarter","Q");pi("quarter",7);Lt("Q",f7);wn("Q",function(e,t){t[Su]=(Nr(e)-1)*3});function Gfe(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Zt("D",["DD",2],"Do","date");vi("date","D");pi("date",9);Lt("D",Nn);Lt("DD",Nn,Eo);Lt("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});wn(["D","DD"],Sl);wn("Do",function(e,t){t[Sl]=Nr(e.match(Nn)[0])});var U7=kg("Date",!0);Zt("DDD",["DDDD",3],"DDDo","dayOfYear");vi("dayOfYear","DDD");pi("dayOfYear",4);Lt("DDD",J2);Lt("DDDD",d7);wn(["DDD","DDDD"],function(e,t,r){r._dayOfYear=Nr(e)});function Ufe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Zt("m",["mm",2],0,"minute");vi("minute","m");pi("minute",14);Lt("m",Nn);Lt("mm",Nn,Eo);wn(["m","mm"],ks);var $fe=kg("Minutes",!1);Zt("s",["ss",2],0,"second");vi("second","s");pi("second",15);Lt("s",Nn);Lt("ss",Nn,Eo);wn(["s","ss"],xu);var Wfe=kg("Seconds",!1);Zt("S",0,0,function(){return~~(this.millisecond()/100)});Zt(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Zt(0,["SSS",3],0,"millisecond");Zt(0,["SSSS",4],0,function(){return this.millisecond()*10});Zt(0,["SSSSS",5],0,function(){return this.millisecond()*100});Zt(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Zt(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Zt(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Zt(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});vi("millisecond","ms");pi("millisecond",16);Lt("S",J2,f7);Lt("SS",J2,Eo);Lt("SSS",J2,d7);var Uc,$7;for(Uc="SSSS";Uc.length<=9;Uc+="S")Lt(Uc,Ng);function Yfe(e,t){t[Zd]=Nr(("0."+e)*1e3)}for(Uc="S";Uc.length<=9;Uc+="S")wn(Uc,Yfe);$7=kg("Milliseconds",!1);Zt("z",0,0,"zoneAbbr");Zt("zz",0,0,"zoneName");function jfe(){return this._isUTC?"UTC":""}function Kfe(){return this._isUTC?"Coordinated Universal Time":""}var at=j_.prototype;at.add=zce;at.calendar=jce;at.clone=Kce;at.diff=tfe;at.endOf=ffe;at.format=ife;at.from=ofe;at.fromNow=sfe;at.to=lfe;at.toNow=ufe;at.get=Zle;at.invalidAt=bfe;at.isAfter=Xce;at.isBefore=Zce;at.isBetween=qce;at.isSame=Qce;at.isSameOrAfter=Jce;at.isSameOrBefore=efe;at.isValid=yfe;at.lang=B7;at.locale=N7;at.localeData=F7;at.max=yce;at.min=mce;at.parsingFlags=_fe;at.set=qle;at.startOf=cfe;at.subtract=Hce;at.toArray=pfe;at.toObject=gfe;at.toDate=vfe;at.toISOString=nfe;at.inspect=afe;typeof Symbol<"u"&&Symbol.for!=null&&(at[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});at.toJSON=mfe;at.toString=rfe;at.unix=hfe;at.valueOf=dfe;at.creationData=wfe;at.eraName=Tfe;at.eraNarrow=Cfe;at.eraAbbr=Efe;at.eraYear=Mfe;at.year=b7;at.isLeapYear=gue;at.weekYear=kfe;at.isoWeekYear=Nfe;at.quarter=at.quarters=Gfe;at.month=y7;at.daysInMonth=hue;at.week=at.weeks=Sue;at.isoWeek=at.isoWeeks=xue;at.weeksInYear=Vfe;at.weeksInWeekYear=zfe;at.isoWeeksInYear=Bfe;at.isoWeeksInISOWeekYear=Ffe;at.date=U7;at.day=at.days=Nue;at.weekday=Bue;at.isoWeekday=Fue;at.dayOfYear=Ufe;at.hour=at.hours=Wue;at.minute=at.minutes=$fe;at.second=at.seconds=Wfe;at.millisecond=at.milliseconds=$7;at.utcOffset=Ece;at.utc=Dce;at.local=Pce;at.parseZone=Lce;at.hasAlignedHourOffset=Ice;at.isDST=Rce;at.isLocal=kce;at.isUtcOffset=Nce;at.isUtc=I7;at.isUTC=I7;at.zoneAbbr=jfe;at.zoneName=Kfe;at.dates=vs("dates accessor is deprecated. Use date instead.",U7);at.months=vs("months accessor is deprecated. Use month instead",y7);at.years=vs("years accessor is deprecated. Use year instead",b7);at.zone=vs("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Mce);at.isDSTShifted=vs("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Oce);function Xfe(e){return On(e*1e3)}function Zfe(){return On.apply(null,arguments).parseZone()}function W7(e){return e}var nn=UR.prototype;nn.calendar=Nle;nn.longDateFormat=zle;nn.invalidDate=Gle;nn.ordinal=Wle;nn.preparse=W7;nn.postformat=W7;nn.relativeTime=jle;nn.pastFuture=Kle;nn.set=Ole;nn.eras=Sfe;nn.erasParse=xfe;nn.erasConvertYear=Afe;nn.erasAbbrRegex=Pfe;nn.erasNameRegex=Dfe;nn.erasNarrowRegex=Lfe;nn.months=uue;nn.monthsShort=cue;nn.monthsParse=due;nn.monthsRegex=pue;nn.monthsShortRegex=vue;nn.week=yue;nn.firstDayOfYear=wue;nn.firstDayOfWeek=bue;nn.weekdays=Lue;nn.weekdaysMin=Rue;nn.weekdaysShort=Iue;nn.weekdaysParse=kue;nn.weekdaysRegex=Vue;nn.weekdaysShortRegex=zue;nn.weekdaysMinRegex=Hue;nn.isPM=Uue;nn.meridiem=Yue;function nx(e,t,r,n){var a=Qu(),i=Zl().set(n,t);return a[r](i,e)}function Y7(e,t,r){if(Vu(e)&&(t=e,e=void 0),e=e||"",t!=null)return nx(e,t,r,"month");var n,a=[];for(n=0;n<12;n++)a[n]=nx(e,n,r,"month");return a}function iO(e,t,r,n){typeof e=="boolean"?(Vu(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,Vu(t)&&(r=t,t=void 0),t=t||"");var a=Qu(),i=e?a._week.dow:0,o,s=[];if(r!=null)return nx(t,(r+i)%7,n,"day");for(o=0;o<7;o++)s[o]=nx(t,(o+i)%7,n,"day");return s}function qfe(e,t){return Y7(e,t,"months")}function Qfe(e,t){return Y7(e,t,"monthsShort")}function Jfe(e,t,r){return iO(e,t,r,"weekdays")}function ede(e,t,r){return iO(e,t,r,"weekdaysShort")}function tde(e,t,r){return iO(e,t,r,"weekdaysMin")}af("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=Nr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});vt.lang=vs("moment.lang is deprecated. Use moment.locale instead.",af);vt.langData=vs("moment.langData is deprecated. Use moment.localeData instead.",Qu);var au=Math.abs;function rde(){var e=this._data;return this._milliseconds=au(this._milliseconds),this._days=au(this._days),this._months=au(this._months),e.milliseconds=au(e.milliseconds),e.seconds=au(e.seconds),e.minutes=au(e.minutes),e.hours=au(e.hours),e.months=au(e.months),e.years=au(e.years),this}function j7(e,t,r,n){var a=nl(t,r);return e._milliseconds+=n*a._milliseconds,e._days+=n*a._days,e._months+=n*a._months,e._bubble()}function nde(e,t){return j7(this,e,t,1)}function ade(e,t){return j7(this,e,t,-1)}function wB(e){return e<0?Math.floor(e):Math.ceil(e)}function ide(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,a,i,o,s,l;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=wB(JD(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,a=Wo(e/1e3),n.seconds=a%60,i=Wo(a/60),n.minutes=i%60,o=Wo(i/60),n.hours=o%24,t+=Wo(o/24),l=Wo(K7(t)),r+=l,t-=wB(JD(l)),s=Wo(r/12),r%=12,n.days=t,n.months=r,n.years=s,this}function K7(e){return e*4800/146097}function JD(e){return e*146097/4800}function ode(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=ps(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+K7(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(JD(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function sde(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+Nr(this._months/12)*31536e6:NaN}function Ju(e){return function(){return this.as(e)}}var lde=Ju("ms"),ude=Ju("s"),cde=Ju("m"),fde=Ju("h"),dde=Ju("d"),hde=Ju("w"),vde=Ju("M"),pde=Ju("Q"),gde=Ju("y");function mde(){return nl(this)}function yde(e){return e=ps(e),this.isValid()?this[e+"s"]():NaN}function ev(e){return function(){return this.isValid()?this._data[e]:NaN}}var _de=ev("milliseconds"),bde=ev("seconds"),wde=ev("minutes"),Sde=ev("hours"),xde=ev("days"),Ade=ev("months"),Tde=ev("years");function Cde(){return Wo(this.days()/7)}var pu=Math.round,cp={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ede(e,t,r,n,a){return a.relativeTime(t||1,!!r,e,n)}function Mde(e,t,r,n){var a=nl(e).abs(),i=pu(a.as("s")),o=pu(a.as("m")),s=pu(a.as("h")),l=pu(a.as("d")),u=pu(a.as("M")),c=pu(a.as("w")),f=pu(a.as("y")),d=i<=r.ss&&["s",i]||i0,d[4]=n,Ede.apply(null,d)}function Dde(e){return e===void 0?pu:typeof e=="function"?(pu=e,!0):!1}function Pde(e,t){return cp[e]===void 0?!1:t===void 0?cp[e]:(cp[e]=t,e==="s"&&(cp.ss=t-1),!0)}function Lde(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=cp,a,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},cp,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),a=this.localeData(),i=Mde(this,!r,n,a),r&&(i=a.pastFuture(+this,i)),a.postformat(i)}var aC=Math.abs;function yv(e){return(e>0)-(e<0)||+e}function sA(){if(!this.isValid())return this.localeData().invalidDate();var e=aC(this._milliseconds)/1e3,t=aC(this._days),r=aC(this._months),n,a,i,o,s=this.asSeconds(),l,u,c,f;return s?(n=Wo(e/60),a=Wo(n/60),e%=60,n%=60,i=Wo(r/12),r%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=yv(this._months)!==yv(s)?"-":"",c=yv(this._days)!==yv(s)?"-":"",f=yv(this._milliseconds)!==yv(s)?"-":"",l+"P"+(i?u+i+"Y":"")+(r?u+r+"M":"")+(t?c+t+"D":"")+(a||n||e?"T":"")+(a?f+a+"H":"")+(n?f+n+"M":"")+(e?f+o+"S":"")):"P0D"}var qr=iA.prototype;qr.isValid=xce;qr.abs=rde;qr.add=nde;qr.subtract=ade;qr.as=ode;qr.asMilliseconds=lde;qr.asSeconds=ude;qr.asMinutes=cde;qr.asHours=fde;qr.asDays=dde;qr.asWeeks=hde;qr.asMonths=vde;qr.asQuarters=pde;qr.asYears=gde;qr.valueOf=sde;qr._bubble=ide;qr.clone=mde;qr.get=yde;qr.milliseconds=_de;qr.seconds=bde;qr.minutes=wde;qr.hours=Sde;qr.days=xde;qr.weeks=Cde;qr.months=Ade;qr.years=Tde;qr.humanize=Lde;qr.toISOString=sA;qr.toString=sA;qr.toJSON=sA;qr.locale=N7;qr.localeData=F7;qr.toIsoString=vs("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",sA);qr.lang=B7;Zt("X",0,0,"unix");Zt("x",0,0,"valueOf");Lt("x",tA);Lt("X",Jle);wn("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});wn("x",function(e,t,r){r._d=new Date(Nr(e))});//! moment.js vt.version="2.29.4";Ile(On);vt.fn=at;vt.min=_ce;vt.max=bce;vt.now=wce;vt.utc=Zl;vt.unix=Xfe;vt.months=qfe;vt.isDate=Y_;vt.locale=af;vt.invalid=Z2;vt.duration=nl;vt.isMoment=Ks;vt.weekdays=Jfe;vt.parseZone=Zfe;vt.localeData=Qu;vt.isDuration=Hw;vt.monthsShort=Qfe;vt.weekdaysMin=tde;vt.defineLocale=qR;vt.updateLocale=Zue;vt.locales=que;vt.weekdaysShort=ede;vt.normalizeUnits=ps;vt.relativeTimeRounding=Dde;vt.relativeTimeThreshold=Pde;vt.calendarFormat=Yce;vt.prototype=at;vt.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const X7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAiRJREFUOE+lk99LU2EYx593J2vqIFApii6KLr3YKoKiNQ8Jiq0fImULCgliZj+gpAgCKSQKDIluLKEudtMfIPtpRLsoo4vAY3NDPaNNtrOz1Q7nuHPm1nmPb+zAxmZoA9/LD+/z4eH7PA+CLT5UT/3Onp6DyECsosfvKv8vs80FNG1qMRkfApDba2uURfR647CObSjY1Wu/glXtOUKwjwC5K7gDr/Y4Ll4t5nLPqtk/grOjI+08n55Y5jgbxhgIIbO2M/ZBUZTG2VDIuipJOhOU4nEIBgsVwS2Xq3UbLo4y4fnBCMtSWNOgsakJTvf3z2TzyrEfDGOQkknAsgIaEIvoDjClPNARp7Ph5sDAjYXY0hPfx08tXCYNBooCurMTzB0d8JVdhDgbhXyKB4VPAZblN1l3YKgcJppaiLyPxmOXx15PwB9V1fm94WHYbzaDa/Y7SElOL87zPBTTGVCElQOi3x+rCAgh6O3M5zs/l+MjUx+m21KZDCCE4FRXF1hsNvhS1UFJosq52g7KJufkZNsOCp4ykfC1xWh0u4oxNDY3k+6+PkYsFtpDc3MNYiIBak7GiBBr1jv9Tc9g/SJ1P3pwOCtKLxMcZytJSomf6D0/tPLr91g0PH9yVaxM4SgEg3jDPdh9zu5QNe2FPnNC7guewPjeSxccBVmuYf/bRGOryfiYAFwHDR0SfL4E0HQNq/sWKAOhBY//XfUtlFhdgs0ObsuCvx2fLq2T8QEMAAAAAElFTkSuQmCC",Ide=Object.freeze(Object.defineProperty({__proto__:null,default:X7},Symbol.toStringTag,{value:"Module"})),Z7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAYAAAAiYZ4HAAAAAXNSR0IArs4c6QAAAXFJREFUOE9jZCARMBKrnt/TU5mR6b8NYQ0ODjxCPBzlDAz/c/79YzbAq0EyIjT25+fPbYyMDDL/Gf4XvNuycyJWDZELF+o9f/Zo6p0rV2y+f/zI8P///wvvvv60ZDhw4AeKhpKjR8W4mRmar9y6kXL54kWmj0+fMvz58pXhL8N/gw9bdl4E+ReswXPbNvZYY72cZ58/Ve+/eFHw4Z27DN+ev2D4+uI5w58vX2a83bIzExY4YA3bP73b8Pb3b/+FF84yfHz6DKz424sXDD9fvmL4+u6T4ocdOx6gaPj//z/jkhdPSt58+VK+59IFYZgNIE2/v3zGtAGmu3T/fglODpaWq7dvxV25dIn1w5MnDL8/f/nD+P+/zdttu07C/YAeecFz55q8efm07+61q7bfP8BDyZThwIE/eONBKjwk4seXL93gePj/v+Td1p29xMQ0hzAPR/1/BoYUhr+MhoQ1QN0LSkvMTP8diNaAEqzEpliQOgBqdbuezOClhAAAAABJRU5ErkJggg==",Rde=Object.freeze(Object.defineProperty({__proto__:null,default:Z7},Symbol.toStringTag,{value:"Module"})),q7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAYAAAAiYZ4HAAAAAXNSR0IArs4c6QAAAXhJREFUOE9jZCARMAp5eyT//cd44OP27XeJ0cso5Okpw8D8/zwjA8Oct19+NDIcOPADn0ZGkKSQt3sxIyNjz///DE84+HlKny1bswKXJrAGBgcHFiFu9tOMjIwGnPz8DCra2oeFZaSL1sYln0HXCNHAwMAg7OVm/p+R8QgbLw8Ln4wMg66e3m9tVbVF33/8qel2dHwBUwfXANbk4z6dlYcng0tCkoFLUoJBXkWZwUXf4K0IN09njIRMDyMj438UDQIeHgrcQnz32cXEwBq4JSUY+KWlGOIMjBiEWdk2evIJBeC1QUFFhcFBX++9FDdf6+Lzl6Zs9/L6Cdcg4OOuz8zAeIGVh5uBT1qGQVdf75+Omtqcr3+/1fZYu79C9YODA4cQN/txeCjp6ByRlJLLXh4ffwlrKAn5uOczMjBOAMUDOy9X1fMV6xbjjAcBLy95Jqa/FxgYGKe8+/Kjk+HAgS94Y1rA2yP+/z/GI0SnJWISHLIalGAlRjMAqCRnEX5NiqoAAAAASUVORK5CYII=",Ode=Object.freeze(Object.defineProperty({__proto__:null,default:q7},Symbol.toStringTag,{value:"Module"})),Q7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAhVJREFUOE9jZKAQMAp5eyT//cd44OP27XdhZmETw2UPo5CnpwwD8//zjAwMc95++dHIcODAD2xiOA0ASQh5uxczMjL2/P/P8ISDn6f02bI1K5DFWJmZS19u2roCmyGMYEEHBxYhbvbTjIyMBpz8/Awq2tqHeUVFyo5u2DgdJMbKwsIgIyV1SFiAv3BnW/c5ZIMgBjAwMAh7uZn/Z2Q8wsbLw8InI8Ogq6f3W4Cd/erOdev1v3/9yggyRE1Z5Ze+pub8n38Zamalp78B6YMbADbEx306Kw9PBpeEJAOXpASDvIoyg7WKGsOFQ4cY9u3axfD//38GSTExBh9XtzfKcvLNKVY2k1EMEPDwUOAW4rvPLiYGNoBbUoKBX1qKIc7AiOHBxUsM/X19YNeysbIylGVmMyjLyy/H6wIFFRUGSxVVhgsHDzIc2LuX4d/fvwxSYuIMns5O79SVVBqmzV84A26AgI+7PjMD4wVWHm4GPmkZBl19vX/CXNwntq1aZfX92zcGFmYWBk0V5b/6Wtoz/7Cw102Nj3+LCAMHBw4hbvbj8FjQ0TkiwM1ffGjn1pkgMRYWFgY5KalDEhLiWZvrmq9ixIKQj3s+IwPjBFA6YOflqnq+Yt1iZDEWZubKV5u2LsGaDgS8vOSZmP5eYGBgnPLuy49OhgMHvmATw5kSBbw94v//YzyCnBewieFNypRkSJRoJMcgALuqwRtB4dPnAAAAAElFTkSuQmCC",kde=Object.freeze(Object.defineProperty({__proto__:null,default:Q7},Symbol.toStringTag,{value:"Module"}));function J7(e,t){return function(){return e.apply(t,arguments)}}const{toString:Nde}=Object.prototype,{getPrototypeOf:oO}=Object,lA=(e=>t=>{const r=Nde.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ql=e=>(e=e.toLowerCase(),t=>lA(t)===e),uA=e=>t=>typeof t===e,{isArray:Bg}=Array,E0=uA("undefined");function Bde(e){return e!==null&&!E0(e)&&e.constructor!==null&&!E0(e.constructor)&&ts(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const eY=Ql("ArrayBuffer");function Fde(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&eY(e.buffer),t}const Vde=uA("string"),ts=uA("function"),tY=uA("number"),cA=e=>e!==null&&typeof e=="object",zde=e=>e===!0||e===!1,Uw=e=>{if(lA(e)!=="object")return!1;const t=oO(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Hde=Ql("Date"),Gde=Ql("File"),Ude=Ql("Blob"),$de=Ql("FileList"),Wde=e=>cA(e)&&ts(e.pipe),Yde=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ts(e.append)&&((t=lA(e))==="formdata"||t==="object"&&ts(e.toString)&&e.toString()==="[object FormData]"))},jde=Ql("URLSearchParams"),Kde=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Z_(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),Bg(e))for(n=0,a=e.length;n0;)if(a=r[n],t===a.toLowerCase())return a;return null}const nY=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),aY=e=>!E0(e)&&e!==nY;function eP(){const{caseless:e}=aY(this)&&this||{},t={},r=(n,a)=>{const i=e&&rY(t,a)||a;Uw(t[i])&&Uw(n)?t[i]=eP(t[i],n):Uw(n)?t[i]=eP({},n):Bg(n)?t[i]=n.slice():t[i]=n};for(let n=0,a=arguments.length;n(Z_(t,(a,i)=>{r&&ts(a)?e[i]=J7(a,r):e[i]=a},{allOwnKeys:n}),e),Zde=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),qde=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Qde=(e,t,r,n)=>{let a,i,o;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!n||n(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=r!==!1&&oO(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Jde=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},ehe=e=>{if(!e)return null;if(Bg(e))return e;let t=e.length;if(!tY(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},the=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&oO(Uint8Array)),rhe=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},nhe=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},ahe=Ql("HTMLFormElement"),ihe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),SB=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ohe=Ql("RegExp"),iY=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Z_(r,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(n[i]=o||a)}),Object.defineProperties(e,n)},she=e=>{iY(e,(t,r)=>{if(ts(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ts(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},lhe=(e,t)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return Bg(e)?n(e):n(String(e).split(t)),r},uhe=()=>{},che=(e,t)=>(e=+e,Number.isFinite(e)?e:t),iC="abcdefghijklmnopqrstuvwxyz",xB="0123456789",oY={DIGIT:xB,ALPHA:iC,ALPHA_DIGIT:iC+iC.toUpperCase()+xB},fhe=(e=16,t=oY.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function dhe(e){return!!(e&&ts(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const hhe=e=>{const t=new Array(10),r=(n,a)=>{if(cA(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const i=Bg(n)?[]:{};return Z_(n,(o,s)=>{const l=r(o,a+1);!E0(l)&&(i[s]=l)}),t[a]=void 0,i}}return n};return r(e,0)},vhe=Ql("AsyncFunction"),phe=e=>e&&(cA(e)||ts(e))&&ts(e.then)&&ts(e.catch),Ke={isArray:Bg,isArrayBuffer:eY,isBuffer:Bde,isFormData:Yde,isArrayBufferView:Fde,isString:Vde,isNumber:tY,isBoolean:zde,isObject:cA,isPlainObject:Uw,isUndefined:E0,isDate:Hde,isFile:Gde,isBlob:Ude,isRegExp:ohe,isFunction:ts,isStream:Wde,isURLSearchParams:jde,isTypedArray:the,isFileList:$de,forEach:Z_,merge:eP,extend:Xde,trim:Kde,stripBOM:Zde,inherits:qde,toFlatObject:Qde,kindOf:lA,kindOfTest:Ql,endsWith:Jde,toArray:ehe,forEachEntry:rhe,matchAll:nhe,isHTMLForm:ahe,hasOwnProperty:SB,hasOwnProp:SB,reduceDescriptors:iY,freezeMethods:she,toObjectSet:lhe,toCamelCase:ihe,noop:uhe,toFiniteNumber:che,findKey:rY,global:nY,isContextDefined:aY,ALPHABET:oY,generateString:fhe,isSpecCompliantForm:dhe,toJSONObject:hhe,isAsyncFn:vhe,isThenable:phe};function Kr(e,t,r,n,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),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a)}Ke.inherits(Kr,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:Ke.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const sY=Kr.prototype,lY={};["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=>{lY[e]={value:e}});Object.defineProperties(Kr,lY);Object.defineProperty(sY,"isAxiosError",{value:!0});Kr.from=(e,t,r,n,a,i)=>{const o=Object.create(sY);return Ke.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Kr.call(o,e.message,t,r,n,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const ghe=null;function tP(e){return Ke.isPlainObject(e)||Ke.isArray(e)}function uY(e){return Ke.endsWith(e,"[]")?e.slice(0,-2):e}function AB(e,t,r){return e?e.concat(t).map(function(a,i){return a=uY(a),!r&&i?"["+a+"]":a}).join(r?".":""):t}function mhe(e){return Ke.isArray(e)&&!e.some(tP)}const yhe=Ke.toFlatObject(Ke,{},null,function(t){return/^is[A-Z]/.test(t)});function fA(e,t,r){if(!Ke.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Ke.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,g){return!Ke.isUndefined(g[p])});const n=r.metaTokens,a=r.visitor||c,i=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&Ke.isSpecCompliantForm(t);if(!Ke.isFunction(a))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(Ke.isDate(v))return v.toISOString();if(!l&&Ke.isBlob(v))throw new Kr("Blob is not supported. Use a Buffer instead.");return Ke.isArrayBuffer(v)||Ke.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,p,g){let m=v;if(v&&!g&&typeof v=="object"){if(Ke.endsWith(p,"{}"))p=n?p:p.slice(0,-2),v=JSON.stringify(v);else if(Ke.isArray(v)&&mhe(v)||(Ke.isFileList(v)||Ke.endsWith(p,"[]"))&&(m=Ke.toArray(v)))return p=uY(p),m.forEach(function(_,w){!(Ke.isUndefined(_)||_===null)&&t.append(o===!0?AB([p],w,i):o===null?p:p+"[]",u(_))}),!1}return tP(v)?!0:(t.append(AB(g,p,i),u(v)),!1)}const f=[],d=Object.assign(yhe,{defaultVisitor:c,convertValue:u,isVisitable:tP});function h(v,p){if(!Ke.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(v),Ke.forEach(v,function(m,y){(!(Ke.isUndefined(m)||m===null)&&a.call(t,m,Ke.isString(y)?y.trim():y,p,d))===!0&&h(m,p?p.concat(y):[y])}),f.pop()}}if(!Ke.isObject(e))throw new TypeError("data must be an object");return h(e),t}function TB(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function sO(e,t){this._pairs=[],e&&fA(e,this,t)}const cY=sO.prototype;cY.append=function(t,r){this._pairs.push([t,r])};cY.toString=function(t){const r=t?function(n){return t.call(this,n,TB)}:TB;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function _he(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fY(e,t,r){if(!t)return e;const n=r&&r.encode||_he,a=r&&r.serialize;let i;if(a?i=a(t,r):i=Ke.isURLSearchParams(t)?t.toString():new sO(t,r).toString(n),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class bhe{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ke.forEach(this.handlers,function(n){n!==null&&t(n)})}}const CB=bhe,dY={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},whe=typeof URLSearchParams<"u"?URLSearchParams:sO,She=typeof FormData<"u"?FormData:null,xhe=typeof Blob<"u"?Blob:null,Ahe={isBrowser:!0,classes:{URLSearchParams:whe,FormData:She,Blob:xhe},protocols:["http","https","file","blob","url","data"]},hY=typeof window<"u"&&typeof document<"u",The=(e=>hY&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Che=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ehe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hY,hasStandardBrowserEnv:The,hasStandardBrowserWebWorkerEnv:Che},Symbol.toStringTag,{value:"Module"})),Cl={...Ehe,...Ahe};function Mhe(e,t){return fA(e,new Cl.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,i){return Cl.isNode&&Ke.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Dhe(e){return Ke.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Phe(e){const t={},r=Object.keys(e);let n;const a=r.length;let i;for(n=0;n=r.length;return o=!o&&Ke.isArray(a)?a.length:o,l?(Ke.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!s):((!a[o]||!Ke.isObject(a[o]))&&(a[o]=[]),t(r,n,a[o],i)&&Ke.isArray(a[o])&&(a[o]=Phe(a[o])),!s)}if(Ke.isFormData(e)&&Ke.isFunction(e.entries)){const r={};return Ke.forEachEntry(e,(n,a)=>{t(Dhe(n),a,r,0)}),r}return null}function Lhe(e,t,r){if(Ke.isString(e))try{return(t||JSON.parse)(e),Ke.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const lO={transitional:dY,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=Ke.isObject(t);if(i&&Ke.isHTMLForm(t)&&(t=new FormData(t)),Ke.isFormData(t))return a?JSON.stringify(vY(t)):t;if(Ke.isArrayBuffer(t)||Ke.isBuffer(t)||Ke.isStream(t)||Ke.isFile(t)||Ke.isBlob(t))return t;if(Ke.isArrayBufferView(t))return t.buffer;if(Ke.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Mhe(t,this.formSerializer).toString();if((s=Ke.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return fA(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||a?(r.setContentType("application/json",!1),Lhe(t)):t}],transformResponse:[function(t){const r=this.transitional||lO.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(t&&Ke.isString(t)&&(n&&!this.responseType||a)){const o=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?Kr.from(s,Kr.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:Cl.classes.FormData,Blob:Cl.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ke.forEach(["delete","get","head","post","put","patch"],e=>{lO.headers[e]={}});const uO=lO,Ihe=Ke.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"]),Rhe=e=>{const t={};let r,n,a;return e&&e.split(` `).forEach(function(o){a=o.indexOf(":"),r=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!r||t[r]&&Ihe[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},EB=Symbol("internals");function wm(e){return e&&String(e).trim().toLowerCase()}function $w(e){return e===!1||e==null?e:Ke.isArray(e)?e.map($w):String(e)}function Ohe(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const khe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function oC(e,t,r,n,a){if(Ke.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!Ke.isString(t)){if(Ke.isString(n))return t.indexOf(n)!==-1;if(Ke.isRegExp(n))return n.test(t)}}function Nhe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Bhe(e,t){const r=Ke.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,i,o){return this[n].call(this,t,a,i,o)},configurable:!0})})}class dA{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function i(s,l,u){const c=wm(l);if(!c)throw new Error("header name must be a non-empty string");const f=Ke.findKey(a,c);(!f||a[f]===void 0||u===!0||u===void 0&&a[f]!==!1)&&(a[f||l]=$w(s))}const o=(s,l)=>Ke.forEach(s,(u,c)=>i(u,c,l));return Ke.isPlainObject(t)||t instanceof this.constructor?o(t,r):Ke.isString(t)&&(t=t.trim())&&!khe(t)?o(Rhe(t),r):t!=null&&i(r,t,n),this}get(t,r){if(t=wm(t),t){const n=Ke.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return Ohe(a);if(Ke.isFunction(r))return r.call(this,a,n);if(Ke.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=wm(t),t){const n=Ke.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||oC(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function i(o){if(o=wm(o),o){const s=Ke.findKey(n,o);s&&(!r||oC(n,n[s],s,r))&&(delete n[s],a=!0)}}return Ke.isArray(t)?t.forEach(i):i(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const i=r[n];(!t||oC(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const r=this,n={};return Ke.forEach(this,(a,i)=>{const o=Ke.findKey(n,i);if(o){r[o]=$w(a),delete r[i];return}const s=t?Nhe(i):String(i).trim();s!==i&&delete r[i],r[s]=$w(a),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return Ke.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&Ke.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[EB]=this[EB]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=wm(o);n[s]||(Bhe(a,o),n[s]=!0)}return Ke.isArray(t)?t.forEach(i):i(t),this}}dA.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ke.reduceDescriptors(dA.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});Ke.freezeMethods(dA);const Ru=dA;function sC(e,t){const r=this||uO,n=t||r,a=Ru.from(n.headers);let i=n.data;return Ke.forEach(e,function(s){i=s.call(r,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function pY(e){return!!(e&&e.__CANCEL__)}function q_(e,t,r){Kr.call(this,e??"canceled",Kr.ERR_CANCELED,t,r),this.name="CanceledError"}Ke.inherits(q_,Kr,{__CANCEL__:!0});function Fhe(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Kr("Request failed with status code "+r.status,[Kr.ERR_BAD_REQUEST,Kr.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const Vhe=Cl.hasStandardBrowserEnv?{write(e,t,r,n,a,i){const o=[e+"="+encodeURIComponent(t)];Ke.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),Ke.isString(n)&&o.push("path="+n),Ke.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zhe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Hhe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function gY(e,t){return e&&!zhe(t)?Hhe(e,t):t}const Ghe=Cl.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function a(i){let o=i;return t&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=a(window.location.href),function(o){const s=Ke.isString(o)?a(o):o;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function Uhe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function $he(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=n[i];o||(o=u),r[a]=l,n[a]=u;let f=i,d=0;for(;f!==a;)d+=r[f++],f=f%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o{const i=a.loaded,o=a.lengthComputable?a.total:void 0,s=i-r,l=n(s),u=i<=o;r=i;const c={loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&u?(o-i)/l:void 0,event:a};c[t?"download":"upload"]=!0,e(c)}}const Whe=typeof XMLHttpRequest<"u",Yhe=Whe&&function(e){return new Promise(function(r,n){let a=e.data;const i=Ru.from(e.headers).normalize();let{responseType:o,withXSRFToken:s}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let c;if(Ke.isFormData(a)){if(Cl.hasStandardBrowserEnv||Cl.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((c=i.getContentType())!==!1){const[p,...g]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([p||"multipart/form-data",...g].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+g))}const d=gY(e.baseURL,e.url);f.open(e.method.toUpperCase(),fY(d,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function h(){if(!f)return;const p=Ru.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),m={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:p,config:e,request:f};Fhe(function(_){r(_),u()},function(_){n(_),u()},m),f=null}if("onloadend"in f?f.onloadend=h:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(h)},f.onabort=function(){f&&(n(new Kr("Request aborted",Kr.ECONNABORTED,e,f)),f=null)},f.onerror=function(){n(new Kr("Network Error",Kr.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||dY;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),n(new Kr(g,m.clarifyTimeoutError?Kr.ETIMEDOUT:Kr.ECONNABORTED,e,f)),f=null},Cl.hasStandardBrowserEnv&&(s&&Ke.isFunction(s)&&(s=s(e)),s||s!==!1&&Ghe(d))){const p=e.xsrfHeaderName&&e.xsrfCookieName&&Vhe.read(e.xsrfCookieName);p&&i.set(e.xsrfHeaderName,p)}a===void 0&&i.setContentType(null),"setRequestHeader"in f&&Ke.forEach(i.toJSON(),function(g,m){f.setRequestHeader(m,g)}),Ke.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),o&&o!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",MB(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",MB(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=p=>{f&&(n(!p||p.type?new q_(null,e,f):p),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const v=Uhe(d);if(v&&Cl.protocols.indexOf(v)===-1){n(new Kr("Unsupported protocol "+v+":",Kr.ERR_BAD_REQUEST,e));return}f.send(a||null)})},rP={http:ghe,xhr:Yhe};Ke.forEach(rP,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const DB=e=>`- ${e}`,jhe=e=>Ke.isFunction(e)||e===null||e===!1,mY={getAdapter:e=>{e=Ke.isArray(e)?e:[e];const{length:t}=e;let r,n;const a={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since : `+i.map(DB).join(` `):" "+DB(i[0]):"as no adapter specified";throw new Kr("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:rP};function lC(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new q_(null,e)}function PB(e){return lC(e),e.headers=Ru.from(e.headers),e.data=sC.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),mY.getAdapter(e.adapter||uO.adapter)(e).then(function(n){return lC(e),n.data=sC.call(e,e.transformResponse,n),n.headers=Ru.from(n.headers),n},function(n){return pY(n)||(lC(e),n&&n.response&&(n.response.data=sC.call(e,e.transformResponse,n.response),n.response.headers=Ru.from(n.response.headers))),Promise.reject(n)})}const LB=e=>e instanceof Ru?e.toJSON():e;function Kp(e,t){t=t||{};const r={};function n(u,c,f){return Ke.isPlainObject(u)&&Ke.isPlainObject(c)?Ke.merge.call({caseless:f},u,c):Ke.isPlainObject(c)?Ke.merge({},c):Ke.isArray(c)?c.slice():c}function a(u,c,f){if(Ke.isUndefined(c)){if(!Ke.isUndefined(u))return n(void 0,u,f)}else return n(u,c,f)}function i(u,c){if(!Ke.isUndefined(c))return n(void 0,c)}function o(u,c){if(Ke.isUndefined(c)){if(!Ke.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function s(u,c,f){if(f in t)return n(u,c);if(f in e)return n(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,c)=>a(LB(u),LB(c),!0)};return Ke.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||a,d=f(e[c],t[c],c);Ke.isUndefined(d)&&f!==s||(r[c]=d)}),r}const yY="1.6.7",cO={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{cO[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const IB={};cO.transitional=function(t,r,n){function a(i,o){return"[Axios v"+yY+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,s)=>{if(t===!1)throw new Kr(a(o," has been removed"+(r?" in "+r:"")),Kr.ERR_DEPRECATED);return r&&!IB[o]&&(IB[o]=!0,console.warn(a(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,o,s):!0}};function Khe(e,t,r){if(typeof e!="object")throw new Kr("options must be an object",Kr.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const i=n[a],o=t[i];if(o){const s=e[i],l=s===void 0||o(s,i,e);if(l!==!0)throw new Kr("option "+i+" must be "+l,Kr.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Kr("Unknown option "+i,Kr.ERR_BAD_OPTION)}}const nP={assertOptions:Khe,validators:cO},vc=nP.validators;class ax{constructor(t){this.defaults=t,this.interceptors={request:new CB,response:new CB}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=` `+i):n.stack=i}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Kp(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:i}=r;n!==void 0&&nP.assertOptions(n,{silentJSONParsing:vc.transitional(vc.boolean),forcedJSONParsing:vc.transitional(vc.boolean),clarifyTimeoutError:vc.transitional(vc.boolean)},!1),a!=null&&(Ke.isFunction(a)?r.paramsSerializer={serialize:a}:nP.assertOptions(a,{encode:vc.function,serialize:vc.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=i&&Ke.merge(i.common,i[r.method]);i&&Ke.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),r.headers=Ru.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!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 v=[PB.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),d=v.length,c=Promise.resolve(r);f{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{n.subscribe(s),i=s}).then(a);return o.cancel=function(){n.unsubscribe(i)},o},t(function(i,o,s){n.reason||(n.reason=new q_(i,o,s),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new fO(function(a){t=a}),cancel:t}}}const Xhe=fO;function Zhe(e){return function(r){return e.apply(null,r)}}function qhe(e){return Ke.isObject(e)&&e.isAxiosError===!0}const aP={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};Object.entries(aP).forEach(([e,t])=>{aP[t]=e});const Qhe=aP;function _Y(e){const t=new Ww(e),r=J7(Ww.prototype.request,t);return Ke.extend(r,Ww.prototype,t,{allOwnKeys:!0}),Ke.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return _Y(Kp(e,a))},r}const ya=_Y(uO);ya.Axios=Ww;ya.CanceledError=q_;ya.CancelToken=Xhe;ya.isCancel=pY;ya.VERSION=yY;ya.toFormData=fA;ya.AxiosError=Kr;ya.Cancel=ya.CanceledError;ya.all=function(t){return Promise.all(t)};ya.spread=Zhe;ya.isAxiosError=qhe;ya.mergeConfig=Kp;ya.AxiosHeaders=Ru;ya.formToJSON=e=>vY(Ke.isHTMLForm(e)?new FormData(e):e);ya.getAdapter=mY.getAdapter;ya.HttpStatusCode=Qhe;ya.default=ya;const Jhe=ya;console.log("");const ir=Jhe.create({baseURL:"",timeout:6e3});ir.interceptors.request.use(e=>Promise.resolve(e),e=>Promise.reject(e));ir.interceptors.response.use(e=>{if(e.status>=200&&e.status<300||e.status===304)return e.data},e=>Promise.reject(e.response));function eve(e){return console.log(e,ir),ir({url:"/api/GetElctricityConsumption",method:"get",params:e})}function tve(){return ir({url:"/api/GetRealtimeLoad",method:"get"})}function rve(e){return ir({url:"/api/GetEnergyCalendar",method:"get",params:e})}function nve(e){return ir({url:"/api/GetCarbonEmission",method:"get",params:e})}function ave(e){return ir({url:"/api/GetMeteorologicalStation",method:"get",params:e})}function ive(e){return ir({url:"/api/GetSystemRanking",method:"get",params:e})}const al=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},ove={class:"day"},sve={class:"value"},lve={__name:"index",setup(e){const t=G();G(new Date);const r=G(new Date),n=()=>{},a=u=>{t.value&&(t.value.selectDate(u),o())},i=G([{time:"01",EH:"10"},{time:"02",EH:"12"}]);function o(){let u=vt(r.value).format("YYYY-MM"),c=vt(r.value).format("MM");rve({date:u}).then(f=>{if(f.code==200)i.value=f.data,s(u,c);else return!1}).catch(f=>{console.log(f)})}function s(u,c){let f=vt(r.value).format("MM");if(i.value!=null&&c==f){const d=i.value.find(h=>h.time===u);if(d)return d?l(Number(d.EH)):""}}function l(u){if(typeof u=="number"&&!isNaN(u))return Number.isInteger(u)?u:Number.parseFloat(u).toFixed(2);throw new Error("Invalid input")}return xt(()=>{o()}),(u,c)=>{const f=bt("el-calendar");return N(),he(f,{ref_key:"calendar",ref:t,modelValue:r.value,"onUpdate:modelValue":c[5]||(c[5]=d=>r.value=d),row:5},{header:le(({date:d})=>[V("div",null,[V("img",{onClick:c[0]||(c[0]=h=>a("prev-year")),src:X7,style:{width:"1rem",height:"1rem",cursor:"pointer"}}),V("img",{onClick:c[1]||(c[1]=h=>a("prev-month")),src:Z7,style:{width:"1rem",height:"1rem",cursor:"pointer"}}),V("span",{onClick:n,style:{"font-size":"13px"}},me(d),1),V("img",{onClick:c[2]||(c[2]=h=>a("next-month")),src:q7,style:{width:"1rem",height:"1rem",cursor:"pointer"}}),V("img",{onClick:c[3]||(c[3]=h=>a("next-year")),src:Q7,style:{width:"1rem",height:"1rem",cursor:"pointer"}})]),V("div",{class:"returningToThisMonth",onClick:c[4]||(c[4]=h=>a("today"))})]),"date-cell":le(({data:d})=>[V("p",ove,me(d.day.split("-").slice(1)[1]),1),V("p",sve,me(s(d.day.split("-").slice(1)[1],d.day.split("-").slice(1)[0])),1)]),_:1},8,["modelValue"])}}},uve=al(lve,[["__scopeId","data-v-52b28142"]]);/*! ***************************************************************************** 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 iP=function(e,t){return iP=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},iP(e,t)};function De(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");iP(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var cve=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),fve=function(){function e(){this.browser=new cve,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}(),Id=new fve;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Id.wxa=!0,Id.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Id.worker=!0:typeof navigator>"u"?(Id.node=!0,Id.svgSupported=!0):dve(navigator.userAgent,Id);function dve(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const Cr=Id;var dO=12,bY="sans-serif",gf=dO+"px "+bY,hve=20,vve=100,pve="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function gve(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)s=o*r.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function zve(e,t,r){for(var n=r?"invTrans":"trans",a=t[n],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;o.push(d,h),l=l&&i&&d===i[f]&&h===i[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[n]=r?OB(s,o):OB(o,s))}function IY(e){return e.nodeName.toUpperCase()==="CANVAS"}var Hve=/([&<>"'])/g,Gve={"&":"&","<":"<",">":">",'"':""","'":"'"};function na(e){return e==null?"":(e+"").replace(Hve,function(t,r){return Gve[r]})}var Uve=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cC=[],$ve=Cr.browser.firefox&&+Cr.browser.version.split(".")[0]<39;function fP(e,t,r,n){return r=r||{},n?NB(e,t,r):$ve&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):NB(e,t,r),r}function NB(e,t,r){if(Cr.domSupported&&e.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(IY(e)){var i=e.getBoundingClientRect();r.zrX=n-i.left,r.zrY=a-i.top;return}else if(cP(cC,e,n,a)){r.zrX=cC[0],r.zrY=cC[1];return}}r.zrX=r.zrY=0}function yO(e){return e||window.event}function zo(e,t,r){if(t=yO(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&fP(e,o,t,r)}else{fP(e,t,t,r);var i=Wve(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Uve.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Wve(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var a=Math.abs(n!==0?n:r),i=n>0?-1:n<0?1:r>0?-1:1;return 3*a*i}function dP(e,t,r,n){e.addEventListener(t,r,n)}function Yve(e,t,r,n){e.removeEventListener(t,r,n)}var zu=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function BB(e){return e.which===2||e.which===3}var jve=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var a=t.touches;if(a){for(var i={points:[],touches:[],target:r,event:t},o=0,s=a.length;o1&&n&&n.length>1){var i=FB(n)/FB(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=Kve(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function lo(){return[1,0,0,1,0,0]}function t1(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function yA(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 Rl(e,t,r){var n=t[0]*r[0]+t[2]*r[1],a=t[1]*r[0]+t[3]*r[1],i=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e}function Zs(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Of(e,t,r){var n=t[0],a=t[2],i=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(r),c=Math.cos(r);return e[0]=n*c+o*u,e[1]=-n*u+o*c,e[2]=a*c+s*u,e[3]=-a*u+c*s,e[4]=c*i+u*l,e[5]=c*l-u*i,e}function _A(e,t,r){var n=r[0],a=r[1];return e[0]=t[0]*n,e[1]=t[1]*a,e[2]=t[2]*n,e[3]=t[3]*a,e[4]=t[4]*n,e[5]=t[5]*a,e}function kf(e,t){var r=t[0],n=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=r*o-i*n;return l?(l=1/l,e[0]=o*l,e[1]=-i*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*a)*l,e[5]=(i*a-r*s)*l,e):null}function RY(e){var t=lo();return yA(t,e),t}const Xve=Object.freeze(Object.defineProperty({__proto__:null,clone:RY,copy:yA,create:lo,identity:t1,invert:kf,mul:Rl,rotate:Of,scale:_A,translate:Zs},Symbol.toStringTag,{value:"Module"}));var Zve=function(){function e(t,r){this.x=t||0,this.y=r||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,r){return this.x=t,this.y=r,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,r){this.x+=t.x*r,this.y+=t.y*r},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 r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+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,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.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,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,a){t.x=r.x+n.x*a,t.y=r.y+n.y*a},e.lerp=function(t,r,n,a){var i=1-a;t.x=i*r.x+a*n.x,t.y=i*r.y+a*n.y},e}();const qt=Zve;var tb=Math.min,rb=Math.max,Jf=new qt,ed=new qt,td=new qt,rd=new qt,Sm=new qt,xm=new qt,qve=function(){function e(t,r,n,a){n<0&&(t=t+n,n=-n),a<0&&(r=r+a,a=-a),this.x=t,this.y=r,this.width=n,this.height=a}return e.prototype.union=function(t){var r=tb(t.x,this.x),n=tb(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=rb(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=rb(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,a=t.height/r.height,i=lo();return Zs(i,i,[-r.x,-r.y]),_A(i,i,[n,a]),Zs(i,i,[t.x,t.y]),i},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,a=n.x,i=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(iv&&(v=_,pv&&(v=w,m=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},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,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];t.x=r.x*a+o,t.y=r.y*i+s,t.width=r.width*a,t.height=r.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Jf.x=td.x=r.x,Jf.y=rd.y=r.y,ed.x=rd.x=r.x+r.width,ed.y=td.y=r.y+r.height,Jf.transform(n),rd.transform(n),ed.transform(n),td.transform(n),t.x=tb(Jf.x,ed.x,td.x,rd.x),t.y=tb(Jf.y,ed.y,td.y,rd.y);var l=rb(Jf.x,ed.x,td.x,rd.x),u=rb(Jf.y,ed.y,td.y,rd.y);t.width=l-t.x,t.height=u-t.y},e}();const Xt=qve;var OY="silent";function Qve(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Jve}}function Jve(){zu(this.event)}var epe=function(e){bn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(gs),Am=function(){function e(t,r){this.x=t,this.y=r}return e}(),tpe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],dC=new Xt(0,0,0,0),kY=function(e){bn(t,e);function t(r,n,a,i,o){var s=e.call(this)||this;return s._hovered=new Am(0,0),s.storage=r,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new epe,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new kve(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(W(tpe,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,i=NY(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Am(n,a):this.findHover(n,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Am(0,0)},t.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,a){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var o="on"+n,s=Qve(n,r,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,a){var i=this.storage.getDisplayList(),o=new Am(r,n);if(VB(i,o,r,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Xt(r-u,n-u,l,l),f=i.length-1;f>=0;f--){var d=i[f];d!==a&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(dC.copy(d.getBoundingRect()),d.transform&&dC.applyTransform(d.transform),dC.intersect(c)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,p=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function rpe(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1;n.silent&&(a=!0)}var s=n.__hostTarget;n=s||n.parent}return a?OY:!0}return!1}function VB(e,t,r,n,a){for(var i=e.length-1;i>=0;i--){var o=e[i],s=void 0;if(o!==a&&!o.ignore&&(s=rpe(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==OY)){t.target=o;break}}}function NY(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const npe=kY;var BY=32,Tm=7;function ape(e){for(var t=0;e>=BY;)t|=e&1,e>>=1;return e+t}function zB(e,t,r,n){var a=t+1;if(a===r)return 1;if(n(e[a++],e[t])<0){for(;a=0;)a++;return a-t}function ipe(e,t,r){for(r--;t>>1,a(i,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=i}}function hC(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])>0){for(s=n-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);i(e,t[r+c])>0?o=c+1:l=c}return l}function vC(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);i(e,t[r+c])<0?l=c:o=c+1}return l}function ope(e,t){var r=Tm,n,a,i=0;e.length;var o=[];n=[],a=[];function s(h,v){n[i]=h,a[i]=v,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]=Tm||T>=Tm);if(A)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),v===1){for(m=0;m=0;m--)e[S+m]=e[x+m];e[w]=o[_];return}for(var T=r;;){var A=0,C=0,M=!1;do if(t(o[_],e[y])<0){if(e[w--]=e[y--],A++,C=0,--v===0){M=!0;break}}else if(e[w--]=o[_--],C++,A=0,--g===1){M=!0;break}while((A|C)=0;m--)e[S+m]=e[x+m];if(v===0){M=!0;break}}if(e[w--]=o[_--],--g===1){M=!0;break}if(C=g-hC(e[y],o,0,g,g-1,t),C!==0){for(w-=C,_-=C,g-=C,S=w+1,x=_+1,m=0;m=Tm||C>=Tm);if(M)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),g===1){for(w-=v,y-=v,S=w+1,x=y+1,m=v-1;m>=0;m--)e[S+m]=e[x+m];e[w]=o[_]}else{if(g===0)throw new Error;for(x=w-(g-1),m=0;ms&&(l=s),HB(e,r,r+l,r+i,t),i=l}o.pushRun(r,i),o.mergeRuns(),a-=i,r+=i}while(a!==0);o.forceMergeRuns()}}var _o=1,vy=2,ep=4,GB=!1;function pC(){GB||(GB=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function UB(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var spe=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=UB}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(pC(),c.z=0),isNaN(c.z2)&&(pC(),c.z2=0),isNaN(c.zlevel)&&(pC(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},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 r=0,n=t.length;r=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 lpe=spe;var FY;FY=Cr.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const qp=FY;var jw={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,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.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-jw.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?jw.bounceIn(e*2)*.5:jw.bounceOut(e*2-1)*.5+.5}};const VY=jw;var nb=Math.pow,sf=Math.sqrt,lx=1e-8,zY=1e-4,$B=sf(3),ab=1/3,xl=Rf(),Yo=Rf(),Dp=Rf();function Wc(e){return e>-lx&&elx||e<-lx}function wa(e,t,r,n,a){var i=1-a;return i*i*(i*e+3*a*t)+a*a*(a*n+3*i*r)}function WB(e,t,r,n,a){var i=1-a;return 3*(((t-e)*i+2*(r-t)*a)*i+(n-r)*a*a)}function ux(e,t,r,n,a,i){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-a,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,h=0;if(Wc(c)&&Wc(f))if(Wc(s))i[0]=0;else{var v=-l/s;v>=0&&v<=1&&(i[h++]=v)}else{var p=f*f-4*c*d;if(Wc(p)){var g=f/c,v=-s/o+g,m=-g/2;v>=0&&v<=1&&(i[h++]=v),m>=0&&m<=1&&(i[h++]=m)}else if(p>0){var y=sf(p),_=c*s+1.5*o*(-f+y),w=c*s+1.5*o*(-f-y);_<0?_=-nb(-_,ab):_=nb(_,ab),w<0?w=-nb(-w,ab):w=nb(w,ab);var v=(-s-(_+w))/(3*o);v>=0&&v<=1&&(i[h++]=v)}else{var x=(2*c*s-3*o*f)/(2*sf(c*c*c)),S=Math.acos(x)/3,T=sf(c),A=Math.cos(S),v=(-s-2*T*A)/(3*o),m=(-s+T*(A+$B*Math.sin(S)))/(3*o),C=(-s+T*(A-$B*Math.sin(S)))/(3*o);v>=0&&v<=1&&(i[h++]=v),m>=0&&m<=1&&(i[h++]=m),C>=0&&C<=1&&(i[h++]=C)}}return h}function GY(e,t,r,n,a){var i=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Wc(o)){if(HY(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(Wc(c))a[0]=-i/(2*o);else if(c>0){var f=sf(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 mf(e,t,r,n,a,i){var o=(t-e)*a+e,s=(r-t)*a+t,l=(n-r)*a+r,u=(s-o)*a+o,c=(l-s)*a+s,f=(c-u)*a+u;i[0]=e,i[1]=o,i[2]=u,i[3]=f,i[4]=f,i[5]=c,i[6]=l,i[7]=n}function UY(e,t,r,n,a,i,o,s,l,u,c){var f,d=.005,h=1/0,v,p,g,m;xl[0]=l,xl[1]=u;for(var y=0;y<1;y+=.05)Yo[0]=wa(e,r,a,o,y),Yo[1]=wa(t,n,i,s,y),g=of(xl,Yo),g=0&&g=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(Wc(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=sf(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 $Y(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function P0(e,t,r,n,a){var i=(t-e)*n+e,o=(r-t)*n+t,s=(o-i)*n+i;a[0]=e,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function WY(e,t,r,n,a,i,o,s,l){var u,c=.005,f=1/0;xl[0]=o,xl[1]=s;for(var d=0;d<1;d+=.05){Yo[0]=Fa(e,r,a,d),Yo[1]=Fa(t,n,i,d);var h=of(xl,Yo);h=0&&h=1?1:ux(0,n,i,1,l,s)&&wa(0,a,o,1,s[0])}}}var hpe=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||Wn,this.ondestroy=t.ondestroy||Wn,this.onrestart=t.onrestart||Wn,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%n;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=Tt(t)?t:VY[t]||_O(t)},e}();const vpe=hpe;var YY=function(){function e(t){this.value=t}return e}(),ppe=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new YY(t);return this.insertEntry(r),r},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 r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,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}(),gpe=function(){function e(t){this._list=new ppe,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,a=this._map,i=null;if(a[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new YY(r),s.key=t,n.insertEntry(s),a[t]=s}return i},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const Vg=gpe;var YB={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 Hs(e){return e=Math.round(e),e<0?0:e>255?255:e}function mpe(e){return e=Math.round(e),e<0?0:e>360?360:e}function L0(e){return e<0?0:e>1?1:e}function gC(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Hs(parseFloat(t)/100*255):Hs(parseInt(t,10))}function _h(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?L0(parseFloat(t)/100):L0(parseFloat(t))}function mC(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Yc(e,t,r){return e+(t-e)*r}function Vo(e,t,r,n,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e}function vP(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var jY=new Vg(20),ib=null;function bv(e,t){ib&&vP(ib,t),ib=jY.put(e,ib||t.slice())}function Za(e,t){if(e){t=t||[];var r=jY.get(e);if(r)return vP(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in YB)return vP(t,YB[n]),bv(e,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){Vo(t,0,0,0,1);return}return Vo(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),bv(e,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){Vo(t,0,0,0,1);return}return Vo(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),bv(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Vo(t,+u[0],+u[1],+u[2],1):Vo(t,0,0,0,1);c=_h(u.pop());case"rgb":if(u.length>=3)return Vo(t,gC(u[0]),gC(u[1]),gC(u[2]),u.length===3?c:_h(u[3])),bv(e,t),t;Vo(t,0,0,0,1);return;case"hsla":if(u.length!==4){Vo(t,0,0,0,1);return}return u[3]=_h(u[3]),pP(u,t),bv(e,t),t;case"hsl":if(u.length!==3){Vo(t,0,0,0,1);return}return pP(u,t),bv(e,t),t;default:return}}Vo(t,0,0,0,1)}}function pP(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=_h(e[1]),a=_h(e[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],Vo(t,Hs(mC(o,i,r+1/3)*255),Hs(mC(o,i,r)*255),Hs(mC(o,i,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function ype(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-t)/6+o/2)/o,f=((i-r)/6+o/2)/o,d=((i-n)/6+o/2)/o;t===i?l=d-f:r===i?l=1/3+c-d:n===i&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return e[3]!=null&&h.push(e[3]),h}}function Nh(e,t){var r=Za(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Gs(r,r.length===4?"rgba":"rgb")}}function _pe(e){var t=Za(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Gy(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=t[a],s=t[i],l=n-a;return r[0]=Hs(Yc(o[0],s[0],l)),r[1]=Hs(Yc(o[1],s[1],l)),r[2]=Hs(Yc(o[2],s[2],l)),r[3]=L0(Yc(o[3],s[3],l)),r}}var bpe=Gy;function bO(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=Za(t[a]),s=Za(t[i]),l=n-a,u=Gs([Hs(Yc(o[0],s[0],l)),Hs(Yc(o[1],s[1],l)),Hs(Yc(o[2],s[2],l)),L0(Yc(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}var wpe=bO;function Pp(e,t,r,n){var a=Za(e);if(e)return a=ype(a),t!=null&&(a[0]=mpe(t)),r!=null&&(a[1]=_h(r)),n!=null&&(a[2]=_h(n)),Gs(pP(a),"rgba")}function I0(e,t){var r=Za(e);if(r&&t!=null)return r[3]=L0(t),Gs(r,"rgba")}function Gs(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function R0(e,t){var r=Za(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function Spe(){return Gs([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const xpe=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Gy,fastMapToColor:bpe,lerp:bO,lift:Nh,lum:R0,mapToColor:wpe,modifyAlpha:I0,modifyHSL:Pp,parse:Za,random:Spe,stringify:Gs,toHex:_pe},Symbol.toStringTag,{value:"Module"}));var cx=Math.round;function O0(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Za(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var jB=1e-4;function jc(e){return e-jB}function ob(e){return cx(e*1e3)/1e3}function gP(e){return cx(e*1e4)/1e4}function Ape(e){return"matrix("+ob(e[0])+","+ob(e[1])+","+ob(e[2])+","+ob(e[3])+","+gP(e[4])+","+gP(e[5])+")"}var Tpe={left:"start",right:"end",center:"middle",middle:"middle"};function Cpe(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function Epe(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Mpe(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function KY(e){return e&&!!e.image}function Dpe(e){return e&&!!e.svgElement}function wO(e){return KY(e)||Dpe(e)}function XY(e){return e.type==="linear"}function ZY(e){return e.type==="radial"}function qY(e){return e&&(e.type==="linear"||e.type==="radial")}function bA(e){return"url(#"+e+")"}function QY(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function JY(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*Vy,a=Qt(e.scaleX,1),i=Qt(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+cx(o*Vy)+"deg, "+cx(s*Vy)+"deg)"),l.join(" ")}var Ppe=function(){return Cr.hasGlobalWindow&&Tt(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}}(),mP=Array.prototype.slice;function gu(e,t,r){return(t-e)*r+e}function yC(e,t,r,n){for(var a=t.length,i=0;in?t:e,i=Math.min(r,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)n.length=o;else for(var l=i;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=XB,l=r;if(ei(r)){var u=Ope(r);s=u,(u===1&&!Mr(r[0])||u===2&&!Mr(r[0][0]))&&(o=!0)}else if(Mr(r)&&!Zp(r))s=lb;else if(rt(r))if(!isNaN(+r))s=lb;else{var c=Za(r);c&&(l=c,s=py)}else if(J_(r)){var f=Ie({},l);f.colorStops=Fe(r.colorStops,function(h){return{offset:h.offset,color:Za(h.color)}}),XY(r)?s=yP:ZY(r)&&(s=_P),l=f}i===0?this.valType=s:(s!==this.valType||s===XB)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=Tt(n)?n:VY[n]||_O(n)),a.push(d),d},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=ub(a),u=ZB(a),c=0;c=0&&!(o[c].percent<=r);c--);c=d(c,s-2)}else{for(c=f;cr);c++);c=d(c-1,s-2)}v=o[c+1],h=o[c]}if(h&&v){this._lastFr=c,this._lastFrP=r;var g=v.percent-h.percent,m=g===0?1:d((r-h.percent)/g,1);v.easingFunc&&(m=v.easingFunc(m));var y=n?this._additiveValue:u?Cm:t[l];if((ub(i)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:v.rawValue;else if(ub(i))i===Xw?yC(y,h[a],v[a],m):Lpe(y,h[a],v[a],m);else if(ZB(i)){var _=h[a],w=v[a],x=i===yP;t[l]={type:x?"linear":"radial",x:gu(_.x,w.x,m),y:gu(_.y,w.y,m),colorStops:Fe(_.colorStops,function(T,A){var C=w.colorStops[A];return{offset:gu(T.offset,C.offset,m),color:Kw(yC([],T.color,C.color,m))}}),global:w.global},x?(t[l].x2=gu(_.x2,w.x2,m),t[l].y2=gu(_.y2,w.y2,m)):t[l].r=gu(_.r,w.r,m)}else if(u)yC(y,h[a],v[a],m),n||(t[l]=Kw(y));else{var S=gu(h[a],v[a],m);n?this._additiveValue=S:t[l]=S}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,a=this._additiveValue;r===lb?t[n]=t[n]+a:r===py?(Za(t[n],Cm),sb(Cm,Cm,a,1),t[n]=Kw(Cm)):r===Xw?sb(t[n],t[n],a,1):r===ej&&KB(t[n],t[n],a,1)},e}(),Npe=function(){function e(t,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&a){vA("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,vr(r),n)},e.prototype.whenWithKeys=function(t,r,n,a){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,Uy(u),a),this._trackKeys.push(s)}l.addKeyframe(t,Uy(r[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 r=t.length,n=0;n0)){this._started=1;for(var r=this,n=[],a=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();const wA=Npe;function fp(){return new Date().getTime()}var Bpe=function(e){bn(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=fp()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(qp(n),!r._paused&&r.update())}qp(n)},t.prototype.start=function(){this._running||(this._time=fp(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=fp(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=fp()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var a=new wA(r,n.loop);return this.addAnimator(a),a},t}(gs);const Fpe=Bpe;var Vpe=300,_C=Cr.domSupported,bC=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Fe(e,function(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:n}}(),qB={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},QB=!1;function bP(e){var t=e.pointerType;return t==="pen"||t==="touch"}function zpe(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 wC(e){e&&(e.zrByTouch=!0)}function Hpe(e,t){return zo(e.dom,new Gpe(e,t),!0)}function tj(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var Gpe=function(){function e(t,r){this.stopPropagation=Wn,this.stopImmediatePropagation=Wn,this.preventDefault=Wn,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Ms={mousedown:function(e){e=zo(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=zo(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=zo(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=zo(this.dom,e);var t=e.toElement||e.relatedTarget;tj(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){QB=!0,e=zo(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){QB||(e=zo(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=zo(this.dom,e),wC(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ms.mousemove.call(this,e),Ms.mousedown.call(this,e)},touchmove:function(e){e=zo(this.dom,e),wC(e),this.handler.processGesture(e,"change"),Ms.mousemove.call(this,e)},touchend:function(e){e=zo(this.dom,e),wC(e),this.handler.processGesture(e,"end"),Ms.mouseup.call(this,e),+new Date-+this.__lastTouchMomentt5||e<-t5}var ad=[],wv=[],xC=lo(),AC=Math.abs,Kpe=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 nd(this.rotation)||nd(this.x)||nd(this.y)||nd(this.scaleX-1)||nd(this.scaleY-1)||nd(this.skewX)||nd(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(e5(n),this.invTransform=null);return}n=n||lo(),r?this.getLocalTransform(n):e5(n),t&&(r?Rl(n,t,n):yA(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(ad);var n=ad[0]<0?-1:1,a=ad[1]<0?-1:1,i=((ad[0]-n)*r+n)/ad[0]||0,o=((ad[1]-a)*r+a)/ad[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||lo(),kf(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(Rl(wv,t.invTransform,r),r=wv);var n=this.originX,a=this.originY;(n||a)&&(xC[4]=n,xC[5]=a,Rl(wv,r,xC),wv[4]-=n,wv[5]-=a,r=wv),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],a=this.invTransform;return a&&va(n,n,a),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],a=this.transform;return a&&va(n,n,a),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&AC(t[0]-1)>1e-10&&AC(t[3]-1)>1e-10?Math.sqrt(AC(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){nj(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,o=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,h=t.skewY?Math.tan(-t.skewY):0;if(n||a||s||l){var v=n+s,p=a+l;r[4]=-v*i-d*p*o,r[5]=-p*o-h*v*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=h*i,r[2]=d*o,u&&Of(r,r,u),r[4]+=n+c,r[5]+=a+f,r},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}(),Vl=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function nj(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function dx(e,t,r){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=r.height,o=r.width,s=i/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=qs(n[0],r.width),u+=qs(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=a,u+=s,c="right",f="middle";break;case"right":l+=a+o,u+=s,f="middle";break;case"top":l+=o/2,u-=a,c="center",f="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=a,u+=s,f="middle";break;case"insideRight":l+=o-a,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",f="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,f="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var TC="__zr_normal__",CC=Vl.concat(["ignore"]),Xpe=Co(Vl,function(e,t){return e[t]=!0,e},{ignore:!1}),Sv={},Zpe=new Xt(0,0,0,0),SO=function(){function e(t){this.id=pO(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=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]+=r,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 r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=r.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(r),n.position!=null){var c=Zpe;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Sv,n,c):dx(Sv,n,c),i.x=Sv.x,i.y=Sv.y,o=Sv.align,s=Sv.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=qs(f[0],c.width),h=qs(f[1],c.height)),u=!0,i.originX=-i.x+d+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}n.rotation!=null&&(i.rotation=n.rotation);var v=n.offset;v&&(i.x+=v[0],i.y+=v[1],u||(i.originX=-v[0],i.originY=-v[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,_=void 0;p&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=_,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=_o,l&&r.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()?AP:xP},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Za(r);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,Gs(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},Ie(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Mt(t))for(var n=t,a=vr(n),i=0;i0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(TC,!1,t)},e.prototype.useState=function(t,r,n,a){var i=t===TC,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(tr(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){vA("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,r,n,c),d&&d.useState(t,r,n,c),i?(this.currentStates=[],this._normalState={}):r?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,r,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l0,v);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,r,d),g&&g.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~_o)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var a=this.currentStates.slice(),i=tr(a,t),o=tr(a,r)>=0;i>=0?o?a.splice(i,1):a[i]=r:n&&!o&&a.push(r),this.useStates(a)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,a=0;a=0&&i.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,a=n.length,i=[],o=0;o0&&r.during&&i[0].during(function(v,p){r.during(p)});for(var d=0;d0||a.force&&!o.length){var A=void 0,C=void 0,M=void 0;if(s){C={},d&&(A={});for(var w=0;w<_;w++){var m=p[w];C[m]=r[m],d?A[m]=n[m]:r[m]=n[m]}}else if(d){M={};for(var w=0;w<_;w++){var m=p[w];M[m]=Uy(r[m]),Qpe(r,n,m)}}var x=new wA(r,!1,!1,f?Yr(v,function(D){return D.targetName===t}):null);x.targetName=t,a.scope&&(x.scope=a.scope),d&&A&&x.whenWithKeys(0,A,p),M&&x.whenWithKeys(0,M,p),x.whenWithKeys(u??500,s?C:n,p).delay(c||0),e.addAnimator(x,t),o.push(x)}}const ij=SO;var oj=function(e){bn(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,a=0;a=0&&(a.splice(i,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var a=tr(this._children,r);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(r,n){var a=this._children,i=a[n];if(r&&r!==this&&r.parent!==this&&r!==i){a[n]=r,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,a=this._children,i=tr(a,r);return i<0?this:(a.splice(i,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r0){if(e<=a)return o;if(e>=i)return s}else{if(e>=a)return o;if(e<=i)return s}else{if(e===a)return o;if(e===i)return s}return(e-a)/l*u+o}function Je(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return rt(e)?uge(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function yn(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),lj),e=(+e).toFixed(t),r?e:+e}function wo(e){return e.sort(function(t,r){return t-r}),e}function Ns(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return xA(e)}function xA(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,a=r>0?r:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function xO(e,t){var r=Math.log,n=Math.LN10,a=Math.floor(r(e[1]-e[0])/n),i=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function cge(e,t,r){if(!e[t])return 0;var n=uj(e,r);return n[t]||0}function uj(e,t){var r=Co(e,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),a=Fe(e,function(h){return(isNaN(h)?0:h)/r*n*100}),i=n*100,o=Fe(a,function(h){return Math.floor(h)}),s=Co(o,function(h,v){return h+v},0),l=Fe(a,function(h,v){return h-o[v]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Fe(o,function(h){return h/n})}function fge(e,t){var r=Math.max(Ns(e),Ns(t)),n=e+t;return r>lj?n:yn(n,r)}var TP=9007199254740991;function AO(e){var t=Math.PI*2;return(e%t+t)%t}function k0(e){return e>-a5&&e=10&&t++,t}function TO(e,t){var r=AA(e),n=Math.pow(10,r),a=e/n,i;return t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,e=i*n,r>=-20?+e.toFixed(r<0?-r:0):e}function Qw(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),a=+e[n-1],i=r-n;return i?a+i*(e[n]-a):a}function CP(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n=0||i&&tr(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var Nge=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Bge=Vh(Nge),Fge=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return Bge(this,t,r)},e}(),MP=new Vg(50);function Vge(e){if(typeof e=="string"){var t=MP.get(e);return t&&t.image}else return e}function PO(e,t,r,n,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var i=MP.get(e),o={hostEl:r,cb:n,cbPayload:a};return i?(t=i.image,!CA(t)&&i.pending.push(o)):(t=Xs.loadImage(e,l5,l5),t.__zrImageSrc=e,MP.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function l5(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Ao(r,t);return u>s&&(r="",u=0),s=e-u,a.ellipsis=r,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=e,a}function xj(e,t){var r=t.containerWidth,n=t.font,a=t.contentWidth;if(!r)return"";var i=Ao(e,n);if(i<=r)return e;for(var o=0;;o++){if(i<=a||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?zge(e,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(e.length*a/i):0;e=e.substr(0,s),i=Ao(e,n)}return e===""&&(e=t.placeholder),e}function zge(e,t,r,n){for(var a=0,i=0,o=e.length;ih&&u){var v=Math.floor(h/s);f=f.slice(0,v)}if(e&&i&&c!=null)for(var p=Sj(c,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;gs&&PC(r,e.substring(s,u),t,o),PC(r,l[2],t,o,l[1]),s=DC.lastIndex}sa){x>0?(y.tokens=y.tokens.slice(0,x),g(y,w,_),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m);break e}var D=T.width,P=D==null||D==="auto";if(typeof D=="string"&&D.charAt(D.length-1)==="%")S.percentWidth=D,c.push(S),S.contentWidth=Ao(S.text,M);else{if(P){var L=T.backgroundColor,I=L&&L.image;I&&(I=Vge(I),CA(I)&&(S.width=Math.max(S.width,I.width*E/I.height)))}var O=v&&n!=null?n-w:null;O!=null&&O0&&v+n.accumWidth>n.width&&(c=t.split(` `),u=!0),n.accumWidth=v}else{var p=Aj(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,f=p.linesWidths,c=p.lines}}else c=t.split(` `);for(var g=0;g=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Yge=Co(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function jge(e){return Wge(e)?!!Yge[e]:!0}function Aj(e,t,r,n,a){for(var i=[],o=[],s="",l="",u=0,c=0,f=0;fr:a+c+h>r){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=d,c=h)):v?(i.push(l),o.push(u),l=d,u=h):(i.push(d),o.push(h));continue}c+=h,v?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!i.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var DP="__zr_style_"+Math.round(Math.random()*10),bh={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},EA={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};bh[DP]=!0;var c5=["z","z2","invisible"],Kge=["invisible"],Xge=function(e){bn(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=vr(r),a=0;a1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(cb[0]=OC(a)*r+e,cb[1]=RC(a)*n+t,fb[0]=OC(i)*r+e,fb[1]=RC(i)*n+t,u(s,cb,fb),c(l,cb,fb),a=a%od,a<0&&(a=a+od),i=i%od,i<0&&(i=i+od),a>i&&!o?i+=od:aa&&(db[0]=OC(h)*r+e,db[1]=RC(h)*n+t,u(s,db,s),c(l,db,l))}var on={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},sd=[],ld=[],cl=[],pc=[],fl=[],dl=[],kC=Math.min,NC=Math.max,ud=Math.cos,cd=Math.sin,iu=Math.abs,PP=Math.PI,Lc=PP*2,BC=typeof Float32Array<"u",Em=[];function FC(e){var t=Math.round(e/PP*1e8)/1e8;return t%2*PP}function Tj(e,t){var r=FC(e[0]);r<0&&(r+=Lc);var n=r-e[0],a=e[1];a+=n,!t&&a-r>=Lc?a=r+Lc:t&&r-a>=Lc?a=r-Lc:!t&&r>a?a=r+(Lc-FC(r-a)):t&&r0&&(this._ux=iu(n/fx/t)||0,this._uy=iu(n/fx/r)||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,r){return this._drawPendingPt(),this.addData(on.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=iu(t-this._xi),a=iu(r-this._yi),i=n>this._ux||a>this._uy;if(this.addData(on.L,t,r),this._ctx&&i&&this._ctx.lineTo(t,r),i)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,a,i,o){return this._drawPendingPt(),this.addData(on.C,t,r,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,a,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,a){return this._drawPendingPt(),this.addData(on.Q,t,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,a),this._xi=n,this._yi=a,this},e.prototype.arc=function(t,r,n,a,i,o){this._drawPendingPt(),Em[0]=a,Em[1]=i,Tj(Em,o),a=Em[0],i=Em[1];var s=i-a;return this.addData(on.A,t,r,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,a,i,o),this._xi=ud(i)*n+t,this._yi=cd(i)*n+r,this},e.prototype.arcTo=function(t,r,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,a,i),this},e.prototype.rect=function(t,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,a),this.addData(on.R,t,r,n,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(on.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,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){var r=t.length;!(this.data&&this.data.length===r)&&BC&&(this.data=new Float32Array(r));for(var n=0;nc.length&&(this._expandData(),c=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){cl[0]=cl[1]=fl[0]=fl[1]=Number.MAX_VALUE,pc[0]=pc[1]=dl[0]=dl[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,a=0,i=0,o;for(o=0;on||iu(_)>a||d===r-1)&&(p=Math.sqrt(y*y+_*_),i=g,o=m);break}case on.C:{var w=t[d++],x=t[d++],g=t[d++],m=t[d++],S=t[d++],T=t[d++];p=upe(i,o,w,x,g,m,S,T,10),i=S,o=T;break}case on.Q:{var w=t[d++],x=t[d++],g=t[d++],m=t[d++];p=fpe(i,o,w,x,g,m,10),i=g,o=m;break}case on.A:var A=t[d++],C=t[d++],M=t[d++],E=t[d++],D=t[d++],P=t[d++],L=P+D;d+=1,t[d++],v&&(s=ud(D)*M+A,l=cd(D)*E+C),p=NC(M,E)*kC(Lc,Math.abs(P)),i=ud(L)*M+A,o=cd(L)*E+C;break;case on.R:{s=i=t[d++],l=o=t[d++];var I=t[d++],O=t[d++];p=I*2+O*2;break}case on.Z:{var y=s-i,_=l-o;p=Math.sqrt(y*y+_*_),i=s,o=l;break}}p>=0&&(u[f++]=p,c+=p)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,f,d,h=r<1,v,p,g=0,m=0,y,_=0,w,x;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,y=r*p,!y)))e:for(var S=0;S0&&(t.lineTo(w,x),_=0),T){case on.M:s=u=n[S++],l=c=n[S++],t.moveTo(u,c);break;case on.L:{f=n[S++],d=n[S++];var C=iu(f-u),M=iu(d-c);if(C>a||M>i){if(h){var E=v[m++];if(g+E>y){var D=(y-g)/E;t.lineTo(u*(1-D)+f*D,c*(1-D)+d*D);break e}g+=E}t.lineTo(f,d),u=f,c=d,_=0}else{var P=C*C+M*M;P>_&&(w=f,x=d,_=P)}break}case on.C:{var L=n[S++],I=n[S++],O=n[S++],R=n[S++],B=n[S++],k=n[S++];if(h){var E=v[m++];if(g+E>y){var D=(y-g)/E;mf(u,L,O,B,D,sd),mf(c,I,R,k,D,ld),t.bezierCurveTo(sd[1],ld[1],sd[2],ld[2],sd[3],ld[3]);break e}g+=E}t.bezierCurveTo(L,I,O,R,B,k),u=B,c=k;break}case on.Q:{var L=n[S++],I=n[S++],O=n[S++],R=n[S++];if(h){var E=v[m++];if(g+E>y){var D=(y-g)/E;P0(u,L,O,D,sd),P0(c,I,R,D,ld),t.quadraticCurveTo(sd[1],ld[1],sd[2],ld[2]);break e}g+=E}t.quadraticCurveTo(L,I,O,R),u=O,c=R;break}case on.A:var z=n[S++],$=n[S++],j=n[S++],X=n[S++],Q=n[S++],se=n[S++],ee=n[S++],K=!n[S++],Z=j>X?j:X,ne=iu(j-X)>.001,re=Q+se,ie=!1;if(h){var E=v[m++];g+E>y&&(re=Q+se*(y-g)/E,ie=!0),g+=E}if(ne&&t.ellipse?t.ellipse(z,$,j,X,ee,Q,re,K):t.arc(z,$,Z,Q,re,K),ie)break e;A&&(s=ud(Q)*j+z,l=cd(Q)*X+$),u=ud(re)*j+z,c=cd(re)*X+$;break;case on.R:s=u=n[S],l=c=n[S+1],f=n[S++],d=n[S++];var Y=n[S++],q=n[S++];if(h){var E=v[m++];if(g+E>y){var oe=y-g;t.moveTo(f,d),t.lineTo(f+kC(oe,Y),d),oe-=Y,oe>0&&t.lineTo(f+Y,d+kC(oe,q)),oe-=q,oe>0&&t.lineTo(f+NC(Y-oe,0),d+q),oe-=Y,oe>0&&t.lineTo(f,d+NC(q-oe,0));break e}g+=E}t.rect(f,d,Y,q);break;case on.Z:if(h){var E=v[m++];if(g+E>y){var D=(y-g)/E;t.lineTo(u*(1-D)+s*D,c*(1-D)+l*D);break e}g+=E}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=on,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const Hl=eme;function yu(e,t,r,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=e;if(o>t+s&&o>n+s||oe+s&&i>r+s||it+f&&c>n+f&&c>i+f&&c>s+f||ce+f&&u>r+f&&u>a+f&&u>o+f||ut+u&&l>n+u&&l>i+u||le+u&&s>r+u&&s>a+u||sr||c+ua&&(a+=Mm);var d=Math.atan2(l,s);return d<0&&(d+=Mm),d>=n&&d<=a||d+Mm>=n&&d+Mm<=a}function mu(e,t,r,n,a,i){if(i>t&&i>n||ia?s:0}var gc=Hl.CMD,fd=Math.PI*2,nme=1e-4;function ame(e,t){return Math.abs(e-t)t&&u>n&&u>i&&u>s||u1&&ime(),h=wa(t,n,i,s,Go[0]),d>1&&(v=wa(t,n,i,s,Go[1]))),d===2?gt&&s>n&&s>i||s=0&&u<=1){for(var c=0,f=Fa(t,n,i,u),d=0;dr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Si[0]=-l,Si[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=fd-1e-4){n=0,a=fd;var c=i?1:-1;return o>=Si[0]+e&&o<=Si[1]+e?c:0}if(n>a){var f=n;n=a,a=f}n<0&&(n+=fd,a+=fd);for(var d=0,h=0;h<2;h++){var v=Si[h];if(v+e>o){var p=Math.atan2(s,v),c=i?1:-1;p<0&&(p=fd+p),(p>=n&&p<=a||p+fd>=n&&p+fd<=a)&&(p>Math.PI/2&&p1&&(r||(s+=mu(l,u,c,f,n,a))),g&&(l=i[v],u=i[v+1],c=l,f=u),p){case gc.M:c=i[v++],f=i[v++],l=c,u=f;break;case gc.L:if(r){if(yu(l,u,i[v],i[v+1],t,n,a))return!0}else s+=mu(l,u,i[v],i[v+1],n,a)||0;l=i[v++],u=i[v++];break;case gc.C:if(r){if(tme(l,u,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],t,n,a))return!0}else s+=ome(l,u,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],n,a)||0;l=i[v++],u=i[v++];break;case gc.Q:if(r){if(Cj(l,u,i[v++],i[v++],i[v],i[v+1],t,n,a))return!0}else s+=sme(l,u,i[v++],i[v++],i[v],i[v+1],n,a)||0;l=i[v++],u=i[v++];break;case gc.A:var m=i[v++],y=i[v++],_=i[v++],w=i[v++],x=i[v++],S=i[v++];v+=1;var T=!!(1-i[v++]);d=Math.cos(x)*_+m,h=Math.sin(x)*w+y,g?(c=d,f=h):s+=mu(l,u,d,h,n,a);var A=(n-m)*w/_+m;if(r){if(rme(m,y,w,x,x+S,T,t,A,a))return!0}else s+=lme(m,y,w,x,x+S,T,A,a);l=Math.cos(x+S)*_+m,u=Math.sin(x+S)*w+y;break;case gc.R:c=l=i[v++],f=u=i[v++];var C=i[v++],M=i[v++];if(d=c+C,h=f+M,r){if(yu(c,f,d,f,t,n,a)||yu(d,f,d,h,t,n,a)||yu(d,h,c,h,t,n,a)||yu(c,h,c,f,t,n,a))return!0}else s+=mu(d,f,d,h,n,a),s+=mu(c,h,c,f,n,a);break;case gc.Z:if(r){if(yu(l,u,c,f,t,n,a))return!0}else s+=mu(l,u,c,f,n,a);l=c,u=f;break}}return!r&&!ame(u,f)&&(s+=mu(l,u,c,f,n,a)||0),s!==0}function ume(e,t,r){return Ej(e,0,!1,t,r)}function cme(e,t,r,n){return Ej(e,t,!0,r,n)}var vx=yt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},bh),fme={style:yt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},EA.style)},VC=Vl.concat(["invisible","culling","z","z2","zlevel","parent"]),dme=function(e){bn(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){r.buildPath(l,r.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s.5?xP:n>.2?jpe:AP}else if(r)return AP}return xP},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(rt(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=R0(r,0)0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,a=!r;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&ep)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||a){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.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 r},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect(),o=this.style;if(r=a[0],n=a[1],i.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),cme(s,l/u,r,n)))return!0}if(this.hasFill())return ume(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ep,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=n:Ie(a,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&ep)},t.prototype.createStyle=function(r){return e1(vx,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Ie({},this.shape))},t.prototype._applyStateObj=function(r,n,a,i,o,s){e.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=Ie({},a.shape),Ie(u,n.shape)):(u=Ie({},i?this.shape:a.shape),Ie(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=Ie({},this.shape);for(var c={},f=vr(u),d=0;d0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return e1(hme,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var a=r1(n,r.font,r.textAlign,r.textBaseline);if(a.x+=r.x||0,a.y+=r.y||0,this.hasStroke()){var i=r.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(ss);Mj.prototype.type="tspan";const B0=Mj;var vme=yt({x:0,y:0},bh),pme={style:yt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},EA.style)};function gme(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Dj=function(e){bn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return e1(vme,r)},t.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var i=gme(n.image)?n.image:this.__image;if(!i)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?i[r]:i[r]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return pme},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Xt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ss);Dj.prototype.type="image";const Oa=Dj;function mme(e,t){var r=t.x,n=t.y,a=t.width,i=t.height,o=t.r,s,l,u,c;a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[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>i&&(f=l+u,l*=i/f,u*=i/f),s+c>i&&(f=s+c,s*=i/f,c*=i/f),e.moveTo(r+s,n),e.lineTo(r+a-l,n),l!==0&&e.arc(r+a-l,n+l,l,-Math.PI/2,0),e.lineTo(r+a,n+i-u),u!==0&&e.arc(r+a-u,n+i-u,u,0,Math.PI/2),e.lineTo(r+c,n+i),c!==0&&e.arc(r+c,n+i-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var dp=Math.round;function Pj(e,t,r){if(t){var n=t.x1,a=t.x2,i=t.y1,o=t.y2;e.x1=n,e.x2=a,e.y1=i,e.y2=o;var s=r&&r.lineWidth;return s&&(dp(n*2)===dp(a*2)&&(e.x1=e.x2=Qd(n,s,!0)),dp(i*2)===dp(o*2)&&(e.y1=e.y2=Qd(i,s,!0))),e}}function Lj(e,t,r){if(t){var n=t.x,a=t.y,i=t.width,o=t.height;e.x=n,e.y=a,e.width=i,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Qd(n,s,!0),e.y=Qd(a,s,!0),e.width=Math.max(Qd(n+i,s,!1)-e.x,i===0?0:1),e.height=Math.max(Qd(a+o,s,!1)-e.y,o===0?0:1)),e}}function Qd(e,t,r){if(!t)return e;var n=dp(e*2);return(n+dp(t))%2===0?n/2:(n+(r?1:-1))/2}var yme=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),_me={},Ij=function(e){bn(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new yme},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=Lj(_me,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?mme(r,n):r.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(cr);Ij.prototype.type="rect";const br=Ij;var p5={fill:"#000"},g5=2,bme={style:yt({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},EA.style)},Rj=function(e){bn(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=p5,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,D=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),P=o.calculatedLineHeight,L=0;L=0&&(L=S[P],L.align==="right");)this._placeToken(L,r,A,m,D,"right",_),C-=L.width,D-=L.width,P--;for(E+=(i-(E-g)-(y-D)-C)/2;M<=P;)L=S[M],this._placeToken(L,r,A,m,E+L.width/2,"center",_),E+=L.width,M++;m+=A}},t.prototype._placeToken=function(r,n,a,i,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=i+a/2;c==="top"?f=i+r.height/2:c==="bottom"&&(f=i+a-r.height/2);var d=!r.isLineHolder&&zC(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(o=S5(o,s,v),f-=r.height/2-v[0]-r.innerHeight/2);var p=this._getOrCreateChild(B0),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,w=w5("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),x=b5("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(_=g5,m.stroke):null),S=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=f,S&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||gf,g.opacity=zs(u.opacity,n.opacity,1),y5(g,u),x&&(g.lineWidth=zs(u.lineWidth,n.lineWidth,_),g.lineDash=Qt(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=x),w&&(g.fill=w);var T=r.contentWidth,A=r.contentHeight;p.setBoundingRect(new Xt(gy(g.x,T,g.textAlign),tp(g.y,A,g.textBaseline),T,A))},t.prototype._renderBackground=function(r,n,a,i,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,d=l&&!f,h=r.borderRadius,v=this,p,g;if(d||r.lineHeight||u&&c){p=this._getOrCreateChild(br),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=a,m.y=i,m.width=o,m.height=s,m.r=h,p.dirtyShape()}if(d){var y=p.style;y.fill=l||null,y.fillOpacity=Qt(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild(Oa),g.onload=function(){v.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var y=p.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=Qt(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var w=(p||g).style;w.shadowBlur=r.shadowBlur||0,w.shadowColor=r.shadowColor||"transparent",w.shadowOffsetX=r.shadowOffsetX||0,w.shadowOffsetY=r.shadowOffsetY||0,w.opacity=zs(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return kj(r)&&(n=[r.fontStyle,r.fontWeight,Oj(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Qo(n)||r.textFont||r.font},t}(ss),wme={left:!0,right:1,center:1},Sme={top:1,bottom:1,middle:1},m5=["fontStyle","fontWeight","fontSize","fontFamily"];function Oj(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?dO+"px":e+"px"}function y5(e,t){for(var r=0;r=0,i=!1;if(e instanceof cr){var o=Nj(e),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(xv(s)||xv(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=Ie({},n),u=Ie({},u),u.fill=s):!xv(u.fill)&&xv(s)?(i=!0,n=Ie({},n),u=Ie({},u),u.fill=E5(s)):!xv(u.stroke)&&xv(l)&&(i||(n=Ie({},n),u=Ie({},u)),u.stroke=E5(l)),n.style=u}}if(n&&n.z2==null){i||(n=Ie({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Hg)}return n}function Dme(e,t,r){if(r&&r.z2==null){r=Ie({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??Ame)}return r}function Pme(e,t,r){var n=tr(e.currentStates,t)>=0,a=e.style.opacity,i=n?null:Eme(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=Ie({},r),o=Ie({opacity:n?a:i.opacity*.1},o),r.style=o),r}function HC(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return Mme(this,e,t,r);if(e==="blur")return Pme(this,e,r);if(e==="select")return Dme(this,e,r)}return r}function zh(e){e.stateProxy=HC;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=HC),r&&(r.stateProxy=HC)}function D5(e,t){!Uj(e,t)&&!e.__highByOuter&&ec(e,Bj)}function P5(e,t){!Uj(e,t)&&!e.__highByOuter&&ec(e,Fj)}function Hu(e,t){e.__highByOuter|=1<<(t||0),ec(e,Bj)}function Gu(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ec(e,Fj)}function zj(e){ec(e,RO)}function OO(e){ec(e,Vj)}function Hj(e){ec(e,Tme)}function Gj(e){ec(e,Cme)}function Uj(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function $j(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(a,i){var o=LO(i),s=a==="series",l=s?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){Vj(u)}),s&&r.push(i)),o.isBlured=!1}),W(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,t)})}function IP(e,t,r,n){var a=n.getModel();r=r||"coordinateSystem";function i(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:r.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function lf(e,t,r){Jd(e,!0),ec(e,zh),OP(e,t,r)}function Nme(e){Jd(e,!1)}function Gn(e,t,r,n){n?Nme(e):lf(e,t,r)}function OP(e,t,r){var n=Ht(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var I5=["emphasis","blur","select"],Bme={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ti(e,t,r,n){r=r||"itemStyle";for(var a=0;a1&&(o*=GC(v),s*=GC(v));var p=(a===i?-1:1)*GC((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=p*o*h/s,m=p*-s*d/o,y=(e+r)/2+vb(f)*g-hb(f)*m,_=(t+n)/2+hb(f)*g+vb(f)*m,w=N5([1,0],[(d-g)/o,(h-m)/s]),x=[(d-g)/o,(h-m)/s],S=[(-1*d-g)/o,(-1*h-m)/s],T=N5(x,S);if(NP(x,S)<=-1&&(T=Dm),NP(x,S)>=1&&(T=0),T<0){var A=Math.round(T/Dm*1e6)/1e6;T=Dm*2+A%2*Dm}c.addData(u,y,_,o,s,w,T,f,i)}var Ume=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,$me=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Wme(e){var t=new Hl;if(!e)return t;var r=0,n=0,a=r,i=n,o,s=Hl.CMD,l=e.match(Ume);if(!l)return t;for(var u=0;uL*L+I*I&&(A=M,C=E),{cx:A,cy:C,x0:-c,y0:-f,x1:A*(a/x-1),y1:C*(a/x-1)}}function Qme(e){var t;if(Ne(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function Jme(e,t){var r,n=my(t.r,0),a=my(t.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=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,h=F5(u-l),v=h>UC&&h%UC;if(v>Ts&&(h=v),!(n>Ts))e.moveTo(c,f);else if(h>UC-Ts)e.moveTo(c+n*Tv(l),f+n*dd(l)),e.arc(c,f,n,l,u,!d),a>Ts&&(e.moveTo(c+a*Tv(u),f+a*dd(u)),e.arc(c,f,a,u,l,d));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,w=void 0,x=void 0,S=void 0,T=void 0,A=void 0,C=void 0,M=void 0,E=void 0,D=void 0,P=void 0,L=void 0,I=n*Tv(l),O=n*dd(l),R=a*Tv(u),B=a*dd(u),k=h>Ts;if(k){var z=t.cornerRadius;z&&(r=Qme(z),p=r[0],g=r[1],m=r[2],y=r[3]);var $=F5(n-a)/2;if(_=hl($,m),w=hl($,y),x=hl($,p),S=hl($,g),C=T=my(_,w),M=A=my(x,S),(T>Ts||A>Ts)&&(E=n*Tv(u),D=n*dd(u),P=a*Tv(l),L=a*dd(l),hTs){var ne=hl(m,C),re=hl(y,C),ie=pb(P,L,I,O,n,ne,d),Y=pb(E,D,R,B,n,re,d);e.moveTo(c+ie.cx+ie.x0,f+ie.cy+ie.y0),C0&&e.arc(c+ie.cx,f+ie.cy,ne,ni(ie.y0,ie.x0),ni(ie.y1,ie.x1),!d),e.arc(c,f,n,ni(ie.cy+ie.y1,ie.cx+ie.x1),ni(Y.cy+Y.y1,Y.cx+Y.x1),!d),re>0&&e.arc(c+Y.cx,f+Y.cy,re,ni(Y.y1,Y.x1),ni(Y.y0,Y.x0),!d))}else e.moveTo(c+I,f+O),e.arc(c,f,n,l,u,!d);if(!(a>Ts)||!k)e.lineTo(c+R,f+B);else if(M>Ts){var ne=hl(p,M),re=hl(g,M),ie=pb(R,B,E,D,a,-re,d),Y=pb(I,O,P,L,a,-ne,d);e.lineTo(c+ie.cx+ie.x0,f+ie.cy+ie.y0),M0&&e.arc(c+ie.cx,f+ie.cy,re,ni(ie.y0,ie.x0),ni(ie.y1,ie.x1),!d),e.arc(c,f,a,ni(ie.cy+ie.y1,ie.cx+ie.x1),ni(Y.cy+Y.y1,Y.cx+Y.x1),d),ne>0&&e.arc(c+Y.cx,f+Y.cy,ne,ni(Y.y1,Y.x1),ni(Y.y0,Y.x0),!d))}else e.lineTo(c+R,f+B),e.arc(c,f,a,u,l,d)}e.closePath()}}}var eye=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}(),Jj=function(e){bn(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new eye},t.prototype.buildPath=function(r,n){Jme(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(cr);Jj.prototype.type="sector";const Ii=Jj;var tye=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),eK=function(e){bn(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new tye},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.PI*2;r.moveTo(a+n.r,i),r.arc(a,i,n.r,0,o,!1),r.moveTo(a+n.r0,i),r.arc(a,i,n.r0,0,o,!0)},t}(cr);eK.prototype.type="ring";const i1=eK;function rye(e,t,r,n){var a=[],i=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d=2){if(n){var i=rye(a,n,r,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(r?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];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;svd[1]){if(s=!1,i)return s;var c=Math.abs(vd[0]-hd[1]),f=Math.abs(hd[0]-vd[1]);Math.min(c,f)>a.len()&&(c0){var f=c.duration,d=c.delay,h=c.easing,v={duration:f,delay:d||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,v):t.animateTo(r,v)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),i&&i()}function Lr(e,t,r,n,a,i){FO("update",e,t,r,n,a,i)}function _n(e,t,r,n,a,i){FO("enter",e,t,r,n,a,i)}function Lp(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function H5(e){return!e.isGroup}function _ye(e){return e.shape!=null}function l1(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){H5(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return _ye(o)&&(s.shape=Ie({},o.shape)),s}var i=n(e);t.traverse(function(o){if(H5(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),Lr(o,l,r,Ht(o).dataIndex)}}})}function HO(e,t){return Fe(e,function(r){var n=r[0];n=mx(n,t.x),n=yx(n,t.x+t.width);var a=r[1];return a=mx(a,t.y),a=yx(a,t.y+t.height),[n,a]})}function dK(e,t){var r=mx(e.x,t.x),n=yx(e.x+e.width,t.x+t.width),a=mx(e.y,t.y),i=yx(e.y+e.height,t.y+t.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function Ug(e,t,r){var n=Ie({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),yt(a,r),new Oa(n)):s1(e.replace("path://",""),n,r,"center")}function yy(e,t,r,n,a){for(var i=0,o=a[a.length-1];i1)return!1;var g=$C(h,v,c,f)/d;return!(g<0||g>1)}function $C(e,t,r,n){return e*n-r*t}function bye(e){return e<=1e-6&&e>=-1e-6}function $g(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,a=rt(t)?{formatter:t}:t,i=r.mainType,o=r.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=e.formatterParamsExtra;l&&W(vr(l),function(c){lt(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Ht(e.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:yt({content:n,formatterParams:s},a)}}function G5(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Nf(e,t){if(e)if(Ne(e))for(var r=0;r=0&&s.push(l)}),s}}function Bf(e,t){return st(st({},e,!0),t,!0)}const Rye={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"}},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:". "}}}},Oye={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:"旭日图"}},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 bx="ZH",GO="EN",H0=GO,rS={},UO={},bK=Cr.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(bx)>-1?bx:H0}():H0;function $O(e,t){e=e.toUpperCase(),UO[e]=new $r(t),rS[e]=t}function kye(e){if(rt(e)){var t=rS[e.toUpperCase()]||{};return e===bx||e===GO?Pt(t):st(Pt(t),Pt(rS[H0]),!1)}else return st(Pt(e),Pt(rS[H0]),!1)}function VP(e){return UO[e]}function Nye(){return UO[H0]}$O(GO,Rye);$O(bx,Oye);var WO=1e3,YO=WO*60,Xy=YO*60,Zo=Xy*24,j5=Zo*365,_y={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},yb="{yyyy}-{MM}-{dd}",K5={year:"{yyyy}",month:"{yyyy}-{MM}",day:yb,hour:yb+" "+_y.hour,minute:yb+" "+_y.minute,second:yb+" "+_y.second,millisecond:_y.none},jC=["year","month","day","hour","minute","second","millisecond"],wK=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function xi(e,t){return e+="","0000".substr(0,t-e.length)+e}function Ip(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 Bye(e){return e===Ip(e)}function Fye(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function c1(e,t,r,n){var a=uo(e),i=a[jO(r)](),o=a[Rp(r)]()+1,s=Math.floor((o-1)/3)+1,l=a[BA(r)](),u=a["get"+(r?"UTC":"")+"Day"](),c=a[G0(r)](),f=(c-1)%12+1,d=a[FA(r)](),h=a[VA(r)](),v=a[zA(r)](),p=n instanceof $r?n:VP(n||bK)||Nye(),g=p.getModel("time"),m=g.get("month"),y=g.get("monthAbbr"),_=g.get("dayOfWeek"),w=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,xi(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,xi(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,xi(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,xi(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,xi(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,xi(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,xi(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,xi(v,3)).replace(/{S}/g,v+"")}function Vye(e,t,r,n,a){var i=null;if(rt(r))i=r;else if(Tt(r))i=r(e.value,t,{level:e.level});else{var o=Ie({},_y);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(Ne(i)){var f=e.level==null?0:e.level>=0?e.level:i.length+e.level;f=Math.min(f,i.length-1),i=i[f]}}return c1(new Date(e.value),i,a,n)}function SK(e,t){var r=uo(e),n=r[Rp(t)]()+1,a=r[BA(t)](),i=r[G0(t)](),o=r[FA(t)](),s=r[VA(t)](),l=r[zA(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&i===0,h=d&&a===1,v=h&&n===1;return v?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function X5(e,t,r){var n=Mr(e)?uo(e):e;switch(t=t||SK(e,r),t){case"year":return n[jO(r)]();case"half-year":return n[Rp(r)]()>=6?1:0;case"quarter":return Math.floor((n[Rp(r)]()+1)/4);case"month":return n[Rp(r)]();case"day":return n[BA(r)]();case"half-day":return n[G0(r)]()/24;case"hour":return n[G0(r)]();case"minute":return n[FA(r)]();case"second":return n[VA(r)]();case"millisecond":return n[zA(r)]()}}function jO(e){return e?"getUTCFullYear":"getFullYear"}function Rp(e){return e?"getUTCMonth":"getMonth"}function BA(e){return e?"getUTCDate":"getDate"}function G0(e){return e?"getUTCHours":"getHours"}function FA(e){return e?"getUTCMinutes":"getMinutes"}function VA(e){return e?"getUTCSeconds":"getSeconds"}function zA(e){return e?"getUTCMilliseconds":"getMilliseconds"}function zye(e){return e?"setUTCFullYear":"setFullYear"}function xK(e){return e?"setUTCMonth":"setMonth"}function AK(e){return e?"setUTCDate":"setDate"}function TK(e){return e?"setUTCHours":"setHours"}function CK(e){return e?"setUTCMinutes":"setMinutes"}function EK(e){return e?"setUTCSeconds":"setSeconds"}function MK(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Hye(e,t,r,n,a,i,o,s){var l=new pr({style:{text:e,font:t,align:r,verticalAlign:n,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function U0(e){if(!CO(e))return rt(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function KO(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var nv=mA;function zP(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Qo(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?uo(e):e;if(isNaN(+l)){if(s)return"-"}else return c1(l,n,r)}if(t==="ordinal")return ix(e)?a(e):Mr(e)&&i(e)?e+"":"-";var u=zl(e);return i(u)?U0(u):ix(e)?a(e):typeof e=="boolean"?e+"":"-"}var Z5=["a","b","c","d","e","f","g"],KC=function(e,t){return"{"+e+(t??"")+"}"};function HA(e,t,r){Ne(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i':'';var o=r.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function DK(e,t,r){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd yyyy`);var n=uo(t),a=r?"getUTC":"get",i=n[a+"FullYear"](),o=n[a+"Month"]()+1,s=n[a+"Date"](),l=n[a+"Hours"](),u=n[a+"Minutes"](),c=n[a+"Seconds"](),f=n[a+"Milliseconds"]();return e=e.replace("MM",xi(o,2)).replace("M",o).replace("yyyy",i).replace("yy",xi(i%100+"",2)).replace("dd",xi(s,2)).replace("d",s).replace("hh",xi(l,2)).replace("h",l).replace("mm",xi(u,2)).replace("m",u).replace("ss",xi(c,2)).replace("s",c).replace("SSS",xi(f,3)),e}function Uye(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function Hh(e,t){return t=t||"transparent",rt(e)?e:Mt(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Sx(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var nS=W,PK=["left","right","top","bottom","width","height"],eh=[["width","left","right"],["height","top","bottom"]];function ZO(e,t,r,n,a){var i=0,o=0;n==null&&(n=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(),h,v;if(e==="horizontal"){var p=c.width+(d?-d.x+c.x:0);h=i+p,h>n||l.newline?(i=0,h=p,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);v=o+g,v>a||l.newline?(i+=s+r,o=0,v=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),e==="horizontal"?i=h+r:o=v+r)})}var Sh=ZO;zt(ZO,"vertical");zt(ZO,"horizontal");function $ye(e,t,r){var n=t.width,a=t.height,i=Je(e.left,n),o=Je(e.top,a),s=Je(e.right,n),l=Je(e.bottom,a);return(isNaN(i)||isNaN(parseFloat(e.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=a),r=nv(r||0),{width:Math.max(s-i-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function kn(e,t,r){r=nv(r||0);var n=t.width,a=t.height,i=Je(e.left,n),o=Je(e.top,a),s=Je(e.right,n),l=Je(e.bottom,a),u=Je(e.width,n),c=Je(e.height,a),f=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-d-i),isNaN(c)&&(c=a-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>n/a?u=n*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=n-s-u-d),isNaN(o)&&(o=a-l-c-f),e.left||e.right){case"center":i=n/2-u/2-r[3];break;case"right":i=n-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=a/2-c/2-r[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=n-d-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var v=new Xt(i+r[3],o+r[0],u,c);return v.margin=r,v}function GA(e,t,r,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||e,i.x=e.x,i.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new Xt(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=kn(yt({width:u.width,height:u.height},t),r,n),d=o?f.x-u.x:0,h=s?f.y-u.y:0;return l==="raw"?(i.x=d,i.y=h):(i.x+=d,i.y+=h),i===e&&e.markRedraw(),!0}function Wye(e,t){return e[eh[t][0]]!=null||e[eh[t][1]]!=null&&e[eh[t][2]]!=null}function $0(e){var t=e.layoutMode||e.constructor.layoutMode;return Mt(t)?t:t?{type:t}:null}function _f(e,t,r){var n=r&&r.ignoreSize;!Ne(n)&&(n=[n,n]);var a=o(eh[0],0),i=o(eh[1],1);u(eh[0],e,a),u(eh[1],e,i);function o(c,f){var d={},h=0,v={},p=0,g=2;if(nS(c,function(_){v[_]=e[_]}),nS(c,function(_){s(t,_)&&(d[_]=v[_]=t[_]),l(d,_)&&h++,l(v,_)&&p++}),n[f])return l(t,c[1])?v[c[2]]=null:l(t,c[2])&&(v[c[1]]=null),v;if(p===g||!h)return v;if(h>=g)return d;for(var m=0;m=0;l--)s=st(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var a=r+"Index",i=r+"Id";return n1(this.ecModel,r,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}($r);bj(Kg,$r);TA(Kg);Lye(Kg);Iye(Kg,jye);function jye(e){var t=[];return W(Kg.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Fe(t,function(r){return El(r).main}),e!=="dataset"&&tr(t,"dataset")<=0&&t.unshift("dataset"),t}const sr=Kg;var IK="";typeof navigator<"u"&&(IK=navigator.platform||"");var Cv="rgba(0, 0, 0, 0.2)";const Kye={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Cv,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Cv,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Cv,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Cv,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Cv,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Cv,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:IK.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 RK=_t(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),ms="original",fi="arrayRows",ys="objectRows",Jl="keyedColumns",cf="typedArray",OK="unknown",Ol="column",Xg="row",ja={Must:1,Might:2,Not:3},kK=Pr();function Xye(e){kK(e).datasetMap=_t()}function NK(e,t,r){var n={},a=QO(t);if(!a||!e)return n;var i=[],o=[],s=t.ecModel,l=kK(s).datasetMap,u=a.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),W(e,function(p,g){var m=Mt(p)?p:e[g]={name:p};m.type==="ordinal"&&c==null&&(c=g,f=v(m)),n[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});W(e,function(p,g){var m=p.name,y=v(p);if(c==null){var _=d.valueWayDim;h(n[m],_,y),h(o,_,y),d.valueWayDim+=y}else if(c===g)h(n[m],0,y),h(i,0,y);else{var _=d.categoryWayDim;h(n[m],_,y),h(o,_,y),d.categoryWayDim+=y}});function h(p,g,m){for(var y=0;yt)return e[n];return e[r-1]}function VK(e,t,r,n,a,i,o){i=i||e;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!n?r:e0e(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function t0e(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var _b,Pm,Q5,J5="\0_ec_inner",r0e=1,zK=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new $r(i),this._locale=new $r(o),this._optionManager=s},t.prototype.setOption=function(r,n,a){var i=rF(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(r,n){return this._resetOption(r,rF(n))},t.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||r==="recreate"){var o=i.mountOption(r==="recreate");!this.option||r==="recreate"?Q5(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=i.getMediaOption(this);l.length&&W(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=_t(),u=n&&n.replaceMergeMainTypeMap;Xye(this),W(r,function(f,d){f!=null&&(sr.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?Pt(f):st(a[d],f,!0))}),u&&u.each(function(f,d){sr.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),sr.topologicalTravel(s,sr.getAllClassMainTypes(),c,this);function c(f){var d=Qye(this,f,tn(r[f])),h=i.get(f),v=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=pj(h,d,v);wge(p,f,sr),a[f]=null,i.set(f,null),o.set(f,0);var g=[],m=[],y=0,_;W(p,function(w,x){var S=w.existing,T=w.newOption;if(!T)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var A=f==="series",C=sr.getClass(f,w.keyInfo.subType,!A);if(!C)return;if(f==="tooltip"){if(_)return;_=!0}if(S&&S.constructor===C)S.name=w.keyInfo.name,S.mergeOption(T,this),S.optionUpdated(T,!1);else{var M=Ie({componentIndex:x},w.keyInfo);S=new C(T,this,this,M),Ie(S,M),w.brandNew&&(S.__requireNewView=!0),S.init(T,this,this),S.optionUpdated(null,!0)}}S?(g.push(S.option),m.push(S),y++):(g.push(void 0),m.push(void 0))},this),a[f]=g,i.set(f,m),o.set(f,y),f==="series"&&_b(this)}this._seriesIndices||_b(this)},t.prototype.getOption=function(){var r=Pt(this.option);return W(r,function(n,a){if(sr.hasClass(a)){for(var i=tn(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!N0(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[J5],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var a=this._componentsMap.get(r);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o=t:r==="max"?e<=t:e===t}function h0e(e,t){return e.join(",")===t.join(",")}const v0e=u0e;var ws=W,W0=Mt,nF=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ZC(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=nF.length;r=0;g--){var m=e[g];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,h)),v>=0){var y=m.data.getByRawIndex(m.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&d>=0&&y>0||l==="samesign"&&d<=0&&y<0){d=fge(d,y),p=y;break}}}return n[0]=d,n[1]=p,n})})}var UA=function(){function e(t){this.data=t.data||(t.sourceFormat===Jl?{}:[]),this.sourceFormat=t.sourceFormat||OK,this.seriesLayoutBy=t.seriesLayoutBy||Ol,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;np&&(p=_)}h[0]=v,h[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};cF=(t={},t[fi+"_"+Ol]={pure:!0,appendData:i},t[fi+"_"+Xg]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ys]={pure:!0,appendData:i},t[Jl]={pure:!0,appendData:function(o){var s=this._data;W(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[ms]={appendData:i},t[cf]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return Jp(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function vF(e){var t,r;return Mt(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Zy(e){return new L0e(e)}var L0e=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 r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||h1&&n>0?s:o}};return i;function o(){return t=e?null:lt},gte:function(e,t){return e>=t}},R0e=function(){function e(t,r){if(!Mr(r)){var n="";Gr(n)}this._opFn=QK[t],this._rvalFloat=zl(r)}return e.prototype.evaluate=function(t){return Mr(t)?this._opFn(t,this._rvalFloat):this._opFn(zl(t),this._rvalFloat)},e}(),JK=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=Mr(t)?t:zl(t),a=Mr(r)?r:zl(r),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=rt(t),l=rt(r);s&&(n=l?t:0),l&&(a=s?r:0)}return na?-this._resultLT:0},e}(),O0e=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=zl(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=zl(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function k0e(e,t){return e==="eq"||e==="ne"?new O0e(e==="eq",t):lt(QK,e)?new R0e(e,t):null}var N0e=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,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return ff(t,r)},e}();function B0e(e,t){var r=new N0e,n=e.data,a=r.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==Ol&&Gr(o);var s=[],l={},u=e.dimensionsDefine;if(u)W(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";lt(l,m)&&Gr(_),l[m]=y}});else for(var c=0;c65535?W0e:Y0e}function Ev(){return[1/0,-1/0]}function j0e(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function mF(e,t,r,n,a){var i=rX[r||"float"];if(a){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Fe(o,function(y){return y.property}),c=0;cm[1]&&(m[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&nt)i=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var a=this._chunks,i=a[t],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=v,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i=f&&y<=d||isNaN(y))&&(l[u++]=p),p++}v=!0}else if(i===2){for(var g=h[a[0]],_=h[a[1]],w=t[a[1]][0],x=t[a[1]][1],m=0;m=f&&y<=d||isNaN(y))&&(S>=w&&S<=x||isNaN(S))&&(l[u++]=p),p++}v=!0}}if(!v)if(i===1)for(var m=0;m=f&&y<=d||isNaN(y))&&(l[u++]=T)}else for(var m=0;mt[M][1])&&(A=!1)}A&&(l[u++]=r.getRawIndex(m))}return um[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,d,h=new(Im(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;vc&&(c=f,d=w)}E>0&&Ec-v&&(l=c-v,s.length=l);for(var p=0;pf[1]&&(f[1]=m),d[h++]=y}return i._count=h,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();il&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],a=this._chunks,i=0;i=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,a,i){return ff(r[i],this._dimensions[i])}JC={arrayRows:t,objectRows:function(r,n,a,i){return ff(r[n],this._dimensions[i])},keyedColumns:t,original:function(r,n,a,i){var o=r&&(r.value==null?r:r.value);return ff(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}}(),e}();const $P=K0e;var nX=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,r){this._sourceList=t,this._upstreamSignList=r,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,r=this._getUpstreamSourceManagers(),n=!!r.length,a,i;if(bb(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=so(s)?cf:ms,i=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=Qt(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=Qt(f.sourceHeader,d.sourceHeader),p=Qt(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||p;a=g?[UP(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:p},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(r);a=y.sourceList,i=y.upstreamSignList}else{var _=m.get("source",!0);a=[UP(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&_F(i)}var o,s=[],l=[];return W(t,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&_F(f),s.push(c),l.push(u._getVersionSign())}),n?o=U0e(n,s,{datasetIndex:r.componentIndex}):a!=null&&(o=[A0e(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!e.noHeader;return W(e.blocks,function(a){var i=sX(a);i>=t&&(t=i+ +(n&&(!i||WP(a)&&!a.noHeader)))}),t}return 0}function q0e(e,t,r,n){var a=t.noHeader,i=J0e(sX(t)),o=[],s=t.blocks||[];ci(!s||Ne(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(lt(u,l)){var c=new JK(u[l],null);s.sort(function(v,p){return c.evaluate(v.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}W(s,function(v,p){var g=t.valueFormatter,m=oX(v)(g?Ie(Ie({},e),{valueFormatter:g}):e,v,p>0?i.html:0,n);m!=null&&o.push(m)});var f=e.renderMode==="richText"?o.join(i.richText):YP(o.join(""),a?r:i.html);if(a)return f;var d=zP(t.header,"ordinal",e.useUTC),h=iX(n,e.renderMode).nameStyle;return e.renderMode==="richText"?lX(e,d,h)+i.richText+f:YP('
'+na(d)+"
"+f,r)}function Q0e(e,t,r,n){var a=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(w){return w=Ne(w)?w:[w],Fe(w,function(x,S){return zP(x,Ne(h)?h[S]:h,u)})};if(!(i&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),d=i?"":zP(l,"ordinal",u),h=t.valueType,v=o?[]:c(t.value),p=!s||!i,g=!s&&i,m=iX(n,a),y=m.nameStyle,_=m.valueStyle;return a==="richText"?(s?"":f)+(i?"":lX(e,d,y))+(o?"":r_e(e,v,p,g,_)):YP((s?"":f)+(i?"":e_e(d,!s,y))+(o?"":t_e(v,p,g,_)),r)}}function bF(e,t,r,n,a,i){if(e){var o=oX(e),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function J0e(e){return{html:X0e[e],richText:Z0e[e]}}function YP(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function e_e(e,t,r){var n=t?"margin-left:2px":"";return''+na(e)+""}function t_e(e,t,r,n){var a=r?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return e=Ne(e)?e:[e],''+Fe(e,function(o){return na(o)}).join("  ")+""}function lX(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function r_e(e,t,r,n,a){var i=[a],o=n?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Ne(t)?t.join(" "):t,i)}function uX(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Hh(n)}function cX(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var eE=function(){function e(){this.richTextStyles={},this._nextStyleNameId=fj()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var a=n==="richText"?this._generateStyleName():null,i=XO({color:r,type:t,renderMode:n,markerId:a});return rt(i)?i:(this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};Ne(r)?W(r,function(i){return Ie(n,i)}):Ie(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},e}();function fX(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(r),l=Ne(s),u=uX(t,r),c,f,d,h;if(o>1||l&&!o){var v=n_e(s,t,r,i,u);c=v.inlineValues,f=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);h=c=Jp(a,r,i[0]),f=p.type}else h=c=l?s[0]:s;var g=EO(t),m=g&&t.name||"",y=a.getName(r),_=n?m:y;return La("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[La("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Qo(_),value:c,valueType:f})].concat(d||[])})}function n_e(e,t,r,n,a){var i=t.getData(),o=Co(e,function(f,d,h){var v=i.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?W(n,function(f){c(Jp(i,r,f),f)}):W(e,c);function c(f,d){var h=i.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(La("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var mc=Pr();function wb(e,t){return e.getName(t)||e.getId(t)}var aS="__universalTransitionEnabled",WA=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Zy({count:i_e,reset:o_e}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var i=mc(this).sourceManager=new nX(this);i.prepareSource();var o=this.getInitialData(r,a);SF(o,this),this.dataTask.context.data=o,mc(this).dataBeforeProcessed=o,wF(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=$0(this),i=a?jg(r):{},o=this.subType;sr.hasClass(o)&&(o+="Series"),st(r,n.getTheme().get(this.subType)),st(r,this.getDefaultOption()),Bh(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&_f(r,i,a)},t.prototype.mergeOption=function(r,n){r=st(this.option,r,!0),this.fillDataTextStyle(r.data);var a=$0(this);a&&_f(this.option,r,a);var i=mc(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);SF(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,mc(this).dataBeforeProcessed=o,wF(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!so(r))for(var n=["show"],a=0;athis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,a){var i=this.ecModel,o=JO.prototype.getColorFromPalette.call(this,r,n,a);return o||(o=i.getColorFromPalette(r,n,a)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},t.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[wb(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[aS])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Mt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(r,n)}},t.registerClass=function(r){return sr.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(sr);Kn(WA,nk);Kn(WA,JO);bj(WA,sr);function wF(e){var t=e.name;EO(e)||(e.name=a_e(e)||t)}function a_e(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return W(r,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function i_e(e){return e.model.getRawData().count()}function o_e(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),s_e}function s_e(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function SF(e,t){W(kh(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,zt(l_e,t))})}function l_e(e,t){var r=jP(e);return r&&r.setOutputEnd((t||this).count()),t}function jP(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(e.uid))}return n}}const Ir=WA;var ik=function(){function e(){this.group=new Ot,this.uid=Yg("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){},e.prototype.updateLayout=function(t,r,n,a){},e.prototype.updateVisual=function(t,r,n,a){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();DO(ik);TA(ik);const rn=ik;function qg(){var e=Pr();return function(t){var r=e(t),n=t.pipelineContext,a=!!r.large,i=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var dX=Pr(),u_e=qg(),ok=function(){function e(){this.group=new Ot,this.uid=Yg("viewChart"),this.renderTask=Zy({plan:c_e,reset:f_e}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.highlight=function(t,r,n,a){var i=t.getData(a&&a.dataType);i&&AF(i,a,"emphasis")},e.prototype.downplay=function(t,r,n,a){var i=t.getData(a&&a.dataType);i&&AF(i,a,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateLayout=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateVisual=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.eachRendered=function(t){Nf(this.group,t)},e.markUpdateMethod=function(t,r){dX(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function xF(e,t,r){e&&V0(e)&&(t==="emphasis"?Hu:Gu)(e,r)}function AF(e,t,r){var n=Fh(e,t),a=t&&t.highlightKey!=null?Vme(t.highlightKey):null;n!=null?W(tn(n),function(i){xF(e.getItemGraphicEl(i),r,a)}):e.eachItemGraphicEl(function(i){xF(i,r,a)})}DO(ok);TA(ok);function c_e(e){return u_e(e.model)}function f_e(e){var t=e.model,r=e.ecModel,n=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&dX(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,a),d_e[l]}var d_e={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 xr=ok;var xx="\0__throttleOriginMethod",TF="\0__throttleRate",CF="\0__throttleType";function YA(e,t,r){var n,a=0,i=0,o=null,s,l,u,c;t=t||0;function f(){i=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var h=[],v=0;v=0?f():o=setTimeout(f,-s),a=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function Qg(e,t,r,n){var a=e[t];if(a){var i=a[xx]||a,o=a[CF],s=a[TF];if(s!==r||o!==n){if(r==null||!n)return e[t]=i;a=e[t]=YA(i,r,n==="debounce"),a[xx]=i,a[CF]=n,a[TF]=r}return a}}function Y0(e,t){var r=e[t];r&&r[xx]&&(r.clear&&r.clear(),e[t]=r[xx])}var EF=Pr(),MF={itemStyle:Vh(_K,!0),lineStyle:Vh(yK,!0)},h_e={lineStyle:"stroke",itemStyle:"fill"};function hX(e,t){var r=e.visualStyleMapper||MF[t];return r||(console.warn("Unknown style type '"+t+"'."),MF.itemStyle)}function vX(e,t){var r=e.visualDrawType||h_e[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var v_e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=e.getModel(n),i=hX(e,n),o=i(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=vX(e,n),u=o[l],c=Tt(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Tt(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||Tt(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var p=e.getDataParams(v),g=Ie({},o);g[l]=c(p),h.setItemVisual(v,"style",g)}}}},Rm=new $r,p_e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=hX(e,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Rm.option=l[n];var u=a(Rm),c=o.ensureUniqueItemVisual(s,"style");Ie(c,u),Rm.option.decal&&(o.setItemVisual(s,"decal",Rm.option.decal),Rm.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},g_e={performRawSeries:!0,overallReset:function(e){var t=_t();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),EF(r).scope=i}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),a={},i=r.getData(),o=EF(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=vX(r,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),n.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var d=i.ensureUniqueItemVisual(c,"style"),h=n.getName(u)||u+"",v=n.count();d[l]=r.getColorFromPalette(h,o,v)}})}})}},Sb=Math.PI;function m_e(e,t){t=t||{},yt(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Ot,n=new br({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var a=new pr({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new br({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(i);var o;return t.showSpinner&&(o=new IA({shape:{startAngle:-Sb/2,endAngle:-Sb/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Sb*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Sb*3/2}).delay(300).start("circularInOut"),r.add(o)),r.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&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var y_e=function(){function e(t,r,n,a){this._stageTaskMap=_t(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=_t();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),r._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;W(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";ci(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},e.prototype.prepareView=function(t,r,n,a){var i=t.renderTask,o=i.context;o.model=r,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(r,i)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,a){a=a||{};var i=!1,o=this;W(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,v=d.agentStubMap;v.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,n);var p=o.getPerformArgs(d,a.block);v.each(function(g){g.perform(p)}),d.perform(p)&&(i=!0)}else f&&f.each(function(g,m){s(a,g)&&g.dirty();var y=o.getPerformArgs(g,a.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,a){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=_t(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,a).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||Zy({plan:x_e,reset:A_e,count:C_e}));h.context={model:f,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,r,n,a){var i=this,o=r.overallTask=r.overallTask||Zy({reset:__e});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=_t(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";ci(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,v):c?c(n,a).each(v):(f=!1,W(n.getSeries(),v));function v(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(d=!0,Zy({reset:b_e,onDirty:S_e})));m.context={model:p,overallProgress:f},m.agent=o,m.__block=f,i._pipe(p,m)}d&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},e.wrapStageHandler=function(t,r){return Tt(t)&&(t={overallReset:t,seriesType:E_e(t)}),t.uid=Yg("stageHandler"),r&&(t.visualType=r),t},e}();function __e(e){e.overallReset(e.ecModel,e.api,e.payload)}function b_e(e){return e.overallProgress&&w_e}function w_e(){this.agent.dirty(),this.getDownstream().dirty()}function S_e(){this.agent&&this.agent.dirty()}function x_e(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function A_e(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=tn(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Fe(t,function(r,n){return pX(n)}):T_e}var T_e=pX(0);function pX(e){return function(t,r){var n=r.data,a=r.resetDefines[e];if(a&&a.dataEach)for(var i=t.start;i0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(r.mainType=v,r[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,a,i));function c(f,d,h,v){return f[h]==null||d[v||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),KP=["symbol","symbolSize","symbolRotate","symbolOffset"],IF=KP.concat(["symbolKeepAspect"]),L_e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o=0&&rh(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function XP(e,t,r){for(var n=t.type==="radial"?j_e(e,t,r):Y_e(e,t,r),a=t.colorStops,i=0;i0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Mr(e)?[e]:Ne(e)?e:null}function lk(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&X_e(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(r=Fe(r,function(i){return i/a}),n/=a)}return[r,n]}var Z_e=new Hl(!0);function Cx(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function RF(e){return typeof e=="string"&&e!=="none"}function Ex(e){var t=e.fill;return t!=null&&t!=="none"}function OF(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function kF(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function ZP(e,t,r){var n=PO(t.image,t.__image,r);if(CA(n)){var a=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Vy),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function q_e(e,t,r,n){var a,i=Cx(r),o=Ex(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||Z_e,f=t.__dirty;if(!n){var d=r.fill,h=r.stroke,v=o&&!!d.colorStops,p=i&&!!h.colorStops,g=o&&!!d.image,m=i&&!!h.image,y=void 0,_=void 0,w=void 0,x=void 0,S=void 0;(v||p)&&(S=t.getBoundingRect()),v&&(y=f?XP(e,d,S):t.__canvasFillGradient,t.__canvasFillGradient=y),p&&(_=f?XP(e,h,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(w=f||!t.__canvasFillPattern?ZP(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=w),m&&(x=f||!t.__canvasStrokePattern?ZP(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),v?e.fillStyle=y:g&&(w?e.fillStyle=w:o=!1),p?e.strokeStyle=_:m&&(x?e.strokeStyle=x:i=!1)}var T=t.getGlobalScale();c.setScale(T[0],T[1],t.segmentIgnoreThreshold);var A,C;e.setLineDash&&r.lineDash&&(a=lk(t),A=a[0],C=a[1]);var M=!0;(u||f&ep)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),M=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),M&&c.rebuildPath(e,l?s:1),A&&(e.setLineDash(A),e.lineDashOffset=C),n||(r.strokeFirst?(i&&kF(e,r),o&&OF(e,r)):(o&&OF(e,r),i&&kF(e,r))),A&&e.setLineDash([])}function Q_e(e,t,r){var n=t.__image=PO(r.image,t.__image,t,t.onload);if(!(!n||!CA(n))){var a=r.x||0,i=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,a,i,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,d=s-c;e.drawImage(n,u,c,f,d,a,i,o,s)}else e.drawImage(n,a,i,o,s)}}function J_e(e,t,r){var n,a=r.text;if(a!=null&&(a+=""),a){e.font=r.font||gf,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var i=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=lk(t),i=n[0],o=n[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),r.strokeFirst?(Cx(r)&&e.strokeText(a,r.x,r.y),Ex(r)&&e.fillText(a,r.x,r.y)):(Ex(r)&&e.fillText(a,r.x,r.y),Cx(r)&&e.strokeText(a,r.x,r.y)),i&&e.setLineDash([])}}var NF=["shadowBlur","shadowOffsetX","shadowOffsetY"],BF=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function SX(e,t,r,n,a){var i=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Qi(e,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?bh.opacity:o}(n||t.blend!==r.blend)&&(i||(Qi(e,a),i=!0),e.globalCompositeOperation=t.blend||bh.blend);for(var s=0;s0&&r.unfinished);r.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(r,n,a){if(!this[ai]){if(this._disposed){this.id;return}var i,o,s;if(Mt(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[ai]=!0,!this._model||n){var l=new v0e(this._api),u=this._theme,c=this._model=new HK;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},QP);var f={seriesTransition:s,optionChanged:!0};if(a)this[Ui]={silent:i,updateParams:f},this[ai]=!1,this.getZr().wakeUp();else{try{Dv(this),yc.update.call(this,null,f)}catch(d){throw this[Ui]=null,this[ai]=!1,d}this._ssr||this._zr.flush(),this[Ui]=null,this[ai]=!1,Om.call(this,i),km.call(this,i)}}},t.prototype.setTheme=function(){},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||Cr.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(Cr.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return W(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,a=this._model,i=[],o=this;W(n,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return W(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Lx[a]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();W(xh,function(_,w){if(_.group===a){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Pt(r)),S=_.getDom().getBoundingClientRect();l=i(S.left,l),u=i(S.top,u),c=o(S.right,c),f=o(S.bottom,f),d.push({dom:x,left:S.left,top:S.top})}}),l*=h,u*=h,c*=h,f*=h;var v=c-l,p=f-u,g=Xs.createCanvas(),m=hx(g,{renderer:n?"svg":"canvas"});if(m.resize({width:v,height:p}),n){var y="";return W(d,function(_){var w=_.left-l,x=_.top-u;y+=''+_.dom+""}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new br({shape:{x:0,y:0,width:v,height:p},style:{fill:r.connectedBackgroundColor}})),W(d,function(_){var w=new Oa({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});m.add(w)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return iE(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return iE(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var a=this._model,i,o=Wy(a,r);return W(o,function(s,l){l.indexOf("Models")>=0&&W(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(r,n){var a=this._model,i=Wy(a,r,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?sk(s,l,n):f1(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;W(T1e,function(n){var a=function(i){var o=r.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&th(s,function(v){var p=Ht(v);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=Ie({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),h=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=i,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},r.trigger(n,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)}),W(qy,function(n,a){r._messageCenter.on(a,function(i){this.trigger(a,i)},r)}),W(["selectchanged"],function(n){r._messageCenter.on(n,function(a){this.trigger(n,a)},r)}),R_e(this._messageCenter,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 r=this.getDom();r&&mj(this.getDom(),fk,"");var n=this,a=n._api,i=n._model;W(n._componentsViews,function(o){o.dispose(i,a)}),W(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete xh[n.id]},t.prototype.resize=function(r){if(!this[ai]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=r&&r.silent;this[Ui]&&(i==null&&(i=this[Ui].silent),a=!0,this[Ui]=null),this[ai]=!0;try{a&&Dv(this),yc.update.call(this,{type:"resize",animation:Ie({duration:0},r&&r.animation)})}catch(o){throw this[ai]=!1,o}this[ai]=!1,Om.call(this,i),km.call(this,i)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Mt(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!JP[r]){var a=JP[r](this._api,n),i=this._zr;this._loadingFX=a,i.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(r){var n=Ie({},r);return n.type=qy[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Mt(n)||(n={silent:!!n}),!!Dx[r.type]&&this._model){if(this[ai]){this._pendingActions.push(r);return}var a=n.silent;sE.call(this,r,a);var i=n.flush;i?this._zr.flush():i!==!1&&Cr.browser.weChat&&this._throttledZrFlush(),Om.call(this,a),km.call(this,a)}},t.prototype.updateLabelLayout=function(){Ds.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Dv=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),aE(f,!0),aE(f,!1),d.plan()},aE=function(f,d){for(var h=f._model,v=f._scheduler,p=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,_=0;_d.get("hoverLayerThreshold")&&!Cr.node&&!Cr.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 o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;d.eachRendered(function(p){return l(p,h,v,-1/0),!0})}}function l(f,d,h,v){var p=f.getTextContent(),g=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),_=0;_0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Lp(m))return;if(m instanceof cr&&zme(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(v){m.stateTransition=g;var _=m.getTextContent(),w=m.getTextGuideLine();_&&(_.stateTransition=g),w&&(w.stateTransition=g)}m.__dirty&&a(m)}})}ZF=function(f){return new(function(d){De(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var p=v.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);v=v.parent}},h.prototype.enterEmphasis=function(v,p){Hu(v,p),Oo(f)},h.prototype.leaveEmphasis=function(v,p){Gu(v,p),Oo(f)},h.prototype.enterBlur=function(v){zj(v),Oo(f)},h.prototype.leaveBlur=function(v){OO(v),Oo(f)},h.prototype.enterSelect=function(v){Hj(v),Oo(f)},h.prototype.leaveSelect=function(v){Gj(v),Oo(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},h}(GK))(f)},FX=function(f){function d(h,v){for(var p=0;p=0)){QF.push(r);var i=yX.wrapStageHandler(r,a);i.__prio=t,i.__raw=r,e.push(i)}}function _k(e,t){JP[e]=t}function I1e(e){wY({createCanvas:e})}function UX(e,t,r){var n=MX("registerMap");n&&n(e,t,r)}function Ix(e){var t=MX("getMap");return t&&t(e)}var $X=G0e;Ff(uk,v_e);Ff(jA,p_e);Ff(jA,g_e);Ff(uk,L_e);Ff(jA,I_e);Ff(LX,s1e);KA($K);vk(v1e,S0e);_k("default",m_e);il({type:wh,event:wh,update:wh},Wn);il({type:Jw,event:Jw,update:Jw},Wn);il({type:Yy,event:Yy,update:Yy},Wn);il({type:eS,event:eS,update:eS},Wn);il({type:jy,event:jy,update:jy},Wn);hk("light",M_e);hk("dark",D_e);var R1e={},JF=[],O1e={registerPreprocessor:KA,registerProcessor:vk,registerPostInit:pk,registerPostUpdate:gk,registerUpdateLifecycle:XA,registerAction:il,registerCoordinateSystem:HX,registerLayout:GX,registerVisual:Ff,registerTransform:$X,registerLoading:_k,registerMap:UX,registerImpl:u1e,PRIORITY:IX,ComponentModel:sr,ComponentView:rn,SeriesModel:Ir,ChartView:xr,registerComponentModel:function(e){sr.registerClass(e)},registerComponentView:function(e){rn.registerClass(e)},registerSeriesModel:function(e){Ir.registerClass(e)},registerChartView:function(e){xr.registerClass(e)},registerSubTypeDefaulter:function(e,t){sr.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){sj(e,t)}};function Dt(e){if(Ne(e)){W(e,function(t){Dt(t)});return}tr(JF,e)>=0||(JF.push(e),Tt(e)&&(e={install:e}),e.install(O1e))}function Nm(e){return e==null?0:e.length||1}function eV(e){return e}var k1e=function(){function e(t,r,n,a,i,o){this._old=t,this._new=r,this._oldKeyGetter=n||eV,this._newKeyGetter=a||eV,this.context=i,this._diffModeMultiple=o==="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,r=this._new,n={},a=new Array(t.length),i=new Array(r.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(r,a,o,"_newKeyGetter");for(var s=0;s1&&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 h=0;h1)for(var s=0;s30}var Bm=Mt,_c=Fe,G1e=typeof Int32Array>"u"?Array:Int32Array,U1e="e\0\0",tV=-1,$1e=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],W1e=["_approximateExtent"],rV,Eb,Fm,Vm,cE,Mb,fE,Y1e=function(){function e(t,r){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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;YX(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===ms;if(l&&!a.pure)for(var u=[],c=t;c0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[r];return i==null&&(i=this.getVisual(r),Ne(i)?i=i.slice():Bm(i)&&(i=Ie({},i)),a[r]=i),i},e.prototype.setItemVisual=function(t,r,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Bm(r)?Ie(a,r):a[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Bm(t)?Ie(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?Ie(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;LP(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){W(this._graphicEls,function(n,a){n&&t&&t.call(r,n,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:_c(this.dimensions,this._getDimInfo,this),this.hostModel)),cE(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];Tt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(gA(arguments)))})},e.internalField=function(){rV=function(t){var r=t._invertedIndicesMap;W(r,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=r[a]=new G1e(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[r]=l}}}(),e}();const Dn=Y1e;function em(e,t){return tm(e,t).dimensions}function tm(e,t){ek(e)||(e=tk(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],a=_t(),i=[],o=K1e(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&XX(o),l=n===e.dimensionsDefine,u=l?KX(e):jX(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=_t(c),d=new tX(o),h=0;h0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function K1e(e,t,r,n){var a=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return W(t,function(i){var o;Mt(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function X1e(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var Z1e=function(){function e(t){this.coordSysDims=[],this.axisMap=_t(),this.categoryAxisMap=_t(),this.coordSysName=t}return e}();function q1e(e){var t=e.get("coordinateSystem"),r=new Z1e(t),n=Q1e[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var Q1e={cartesian2d:function(e,t,r,n){var a=e.getReferringComponents("xAxis",ia).models[0],i=e.getReferringComponents("yAxis",ia).models[0];t.coordSysDims=["x","y"],r.set("x",a),r.set("y",i),Pv(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),Pv(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var a=e.getReferringComponents("singleAxis",ia).models[0];t.coordSysDims=["single"],r.set("single",a),Pv(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var a=e.getReferringComponents("polar",ia).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",o),Pv(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),Pv(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var a=e.ecModel,i=a.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();W(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];r.set(c,u),Pv(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Pv(e){return e.get("type")==="category"}function ZX(e,t,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,i,o,s;J1e(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(W(i,function(y,_){rt(y)&&(i[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(c=y))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,v=c.type,p=0;W(i,function(y){y.coordDim===h&&p++});var g={name:f,coordDim:h,coordDimIndex:p,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:d,coordDim:d,coordDimIndex:p+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,v),m.storeDimIndex=s.ensureCalculationDimension(f,v)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(i.push(g),i.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function J1e(e){return!YX(e.schema)}function $u(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function bk(e,t){return $u(e,t)?e.getCalculationInfo("stackResultDimension"):t}function ebe(e,t){var r=e.get("coordinateSystem"),n=Zg.get(r),a;return t&&t.coordSysDims&&(a=Fe(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Rx(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function tbe(e,t,r){var n,a;return r&&W(e,function(i,o){var s=i.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(e[n].otherDims.itemName=0),n}function eu(e,t,r){r=r||{};var n=t.getSourceManager(),a,i=!1;e?(i=!0,a=tk(e)):(a=n.getSource(),i=a.sourceFormat===ms);var o=q1e(t),s=ebe(t,o),l=r.useEncodeDefaulter,u=Tt(l)?l:l?zt(NK,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=tm(a,c),d=tbe(f.dimensions,r.createInvertedIndices,o),h=i?null:n.getSharedDataStore(f),v=ZX(t,{schema:f,store:h}),p=new Dn(f,t);p.setCalculationInfo(v);var g=d!=null&&rbe(a)?function(m,y,_,w){return w===d?_:this.defaultDimValueGetter(m,y,_,w)}:null;return p.hasItemOption=!1,p.initData(i?a:h,null,g),p}function rbe(e){if(e.sourceFormat===ms){var t=nbe(e.data||[]);return!Ne(zg(t))}}function nbe(e){for(var t=0;tr[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},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}();TA(qX);const tc=qX;var abe=0,ibe=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++abe}return e.createByAxisModel=function(t){var r=t.option,n=r.data,a=n&&Fe(n,obe);return new e({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!rt(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var a=this._getOrCreateMap();return r=a.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,a.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=_t(this.categories))},e}();function obe(e){return Mt(e)&&e.value!=null?e.value:e+""}const Ox=ibe;function eL(e){return e.type==="interval"||e.type==="log"}function sbe(e,t,r,n){var a={},i=e[1]-e[0],o=a.interval=TO(i/t,!0);r!=null&&on&&(o=a.interval=n);var s=a.intervalPrecision=QX(o),l=a.niceTickExtent=[yn(Math.ceil(e[0]/o)*o,s),yn(Math.floor(e[1]/o)*o,s)];return lbe(l,e),a}function dE(e){var t=Math.pow(10,AA(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,yn(r*t)}function QX(e){return Ns(e)+2}function nV(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function lbe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),nV(e,0,t),nV(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function ZA(e,t){return e>=t[0]&&e<=t[1]}function qA(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function QA(e,t){return e*(t[1]-t[0])+t[0]}var JX=function(e){De(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new Ox({})),Ne(a)&&(a=new Ox({categories:Fe(a,function(i){return Mt(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:rt(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),ZA(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),qA(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(QA(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,a=n[0];a<=n[1];)r.push({value:a}),a++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&r=0&&r=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(tc);tc.registerClass(JX);const wk=JX;var yd=yn,eZ=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return ZA(r,this._extent)},t.prototype.normalize=function(r){return qA(r,this._extent)},t.prototype.scale=function(r){return QA(r,this._extent)},t.prototype.setExtent=function(r,n){var a=this._extent;isNaN(r)||(a[0]=parseFloat(r)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=QX(r)},t.prototype.getTicks=function(r){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(r?s.push({value:yd(c+n,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&h0&&(i=i===null?s:Math.min(i,s))}r[n]=i}}return r}function nZ(e){var t=fbe(e),r=[];return W(e,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var v=Je(n.get("barWidth"),s),p=Je(n.get("barMaxWidth"),s),g=Je(n.get("barMinWidth")||(lZ(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:xk(i),stackId:Sk(n)})}),aZ(r)}function aZ(e){var t={};W(e,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var d=n.barMinWidth;d&&(l[u].minWidth=d);var h=n.barGap;h!=null&&(s.gap=h);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return W(t,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=vr(i).length;s=Math.max(35-l*4,15)+"%"}var u=Je(s,o),c=Je(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),W(i,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var w=m.width;y&&(w=Math.min(w,y)),_&&(w=Math.max(w,_)),m.width=w,f-=w+c*w,d--}else{var w=h;y&&yw&&(w=_),w!==h&&(m.width=w,f-=w+c*w,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var v=0,p;W(i,function(m,y){m.width||(m.width=h),p=m,v+=m.width*(1+c)}),p&&(v-=p.width*c);var g=-v/2;W(i,function(m,y){r[a][y]=r[a][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),r}function dbe(e,t,r){if(e&&t){var n=e[xk(t)];return n!=null&&r!=null?n[Sk(r)]:n}}function iZ(e,t){var r=rZ(e,t),n=nZ(r);W(r,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=Sk(a),u=n[xk(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function oZ(e){return{seriesType:e,plan:qg(),reset:function(t){if(sZ(t)){var r=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getDimensionIndex(r.mapDimension(a.dim)),l=t.get("showBackground",!0),u=r.mapDimension(i.dim),c=r.getCalculationInfo("stackResultDimension"),f=$u(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),h=hbe(a,i),v=lZ(t),p=t.get("barMinHeight")||0,g=c&&r.getDimensionIndex(c),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,w){for(var x=_.count,S=v&&Ml(x*3),T=v&&l&&Ml(x*3),A=v&&Ml(x),C=n.master.getRect(),M=d?C.width:C.height,E,D=w.getStore(),P=0;(E=_.next())!=null;){var L=D.get(f?g:o,E),I=D.get(s,E),O=h,R=void 0;f&&(R=+L-D.get(o,E));var B=void 0,k=void 0,z=void 0,$=void 0;if(d){var j=n.dataToPoint([L,I]);if(f){var X=n.dataToPoint([R,I]);O=X[0]}B=O,k=j[1]+y,z=j[0]-O,$=m,Math.abs(z)>>1;e[a][1]a&&(this._approxInterval=a);var s=Db.length,l=Math.min(vbe(Db,this._approxInterval,0,s),s-1);this._interval=Db[l][1],this._minLevelUnit=Db[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return Mr(r)?r:+uo(r)},t.prototype.contain=function(r){return ZA(this.parse(r),this._extent)},t.prototype.normalize=function(r){return qA(this.parse(r),this._extent)},t.prototype.scale=function(r){return QA(r,this._extent)},t.type="time",t}(bf),Db=[["second",WO],["minute",YO],["hour",Xy],["quarter-day",Xy*6],["half-day",Xy*12],["day",Zo*1.2],["half-week",Zo*3.5],["week",Zo*7],["month",Zo*31],["quarter",Zo*95],["half-year",j5/2],["year",j5]];function pbe(e,t,r,n){var a=uo(t),i=uo(r),o=function(v){return X5(a,v,n)===X5(i,v,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},h=function(){return d()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return h()}}function gbe(e,t){return e/=Zo,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function mbe(e){var t=30*Zo;return e/=t,e>6?6:e>3?3:e>2?2:1}function ybe(e){return e/=Xy,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function aV(e,t){return e/=t?YO:WO,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function _be(e){return TO(e,!0)}function bbe(e,t,r){var n=new Date(e);switch(Ip(t)){case"year":case"month":n[xK(r)](0);case"day":n[AK(r)](1);case"hour":n[TK(r)](0);case"minute":n[CK(r)](0);case"second":n[EK(r)](0),n[MK(r)](0)}return n.getTime()}function wbe(e,t,r,n){var a=1e4,i=wK,o=0;function s(M,E,D,P,L,I,O){for(var R=new Date(E),B=E,k=R[P]();B1&&I===0&&D.unshift({value:D[0].value-B})}}for(var I=0;I=n[0]&&y<=n[1]&&f++)}var _=(n[1]-n[0])/t;if(f>_*1.5&&d>_/1.5||(u.push(g),f>_||e===i[h]))break}c=[]}}}for(var w=Yr(Fe(u,function(M){return Yr(M,function(E){return E.value>=n[0]&&E.value<=n[1]&&!E.notAdd})}),function(M){return M.length>0}),x=[],S=w.length-1,h=0;h0;)i*=10;var s=[yn(Abe(n[0]/i)*i),yn(xbe(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Qy.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=Ss(r)/Ss(this.base),ZA(r,this._extent)},t.prototype.normalize=function(r){return r=Ss(r)/Ss(this.base),qA(r,this._extent)},t.prototype.scale=function(r){return r=QA(r,this._extent),Pb(this.base,r)},t.type="log",t}(tc),fZ=Ak.prototype;fZ.getMinorTicks=Qy.getMinorTicks;fZ.getLabel=Qy.getLabel;function Lb(e,t){return Sbe(e,Ns(t))}tc.registerClass(Ak);const Tbe=Ak;var Cbe=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){this[Mbe[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=Ebe[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),Ebe={min:"_determinedMin",max:"_determinedMax"},Mbe={min:"_dataMin",max:"_dataMax"};function dZ(e,t,r){var n=e.rawExtentInfo;return n||(n=new Cbe(e,t,r),e.rawExtentInfo=n,n)}function Ib(e,t){return t==null?null:Zp(t)?NaN:e.parse(t)}function hZ(e,t){var r=e.type,n=dZ(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&r==="time"){var s=rZ("bar",o),l=!1;if(W(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=nZ(s),c=Dbe(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function Dbe(e,t,r,n){var a=r.axis.getExtent(),i=a[1]-a[0],o=dbe(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;W(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;W(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/i,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function Gh(e,t){var r=t,n=hZ(e,r),a=n.extent,i=r.get("splitNumber");e instanceof Tbe&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(a[0],a[1]),e.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function h1(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new wk({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new cZ({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(tc.getClass(t)||bf)}}function Pbe(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function v1(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(a,i){return e.scale.getFormattedLabel(a,i,n)}}(t):rt(t)?function(n){return function(a){var i=e.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(t):Tt(t)?function(n){return function(a,i){return r!=null&&(i=a.value-r),n(Tk(e,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function Tk(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Lbe(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,a,i=r.getExtent();r instanceof wk?a=r.count():(n=r.getTicks(),a=n.length);var o=e.getLabelModel(),s=v1(e),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;ce[1]&&(e[1]=a[1])})}var rm=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}();function pZ(e){return eu(null,e)}var JA={isDimensionStacked:$u,enableDataStack:ZX,getStackedDimension:bk};function eT(e,t){var r=t;t instanceof $r||(r=new $r(t));var n=h1(r);return n.setExtent(e[0],e[1]),Gh(n,r),n}function gZ(e){Kn(e,rm)}function Obe(e,t){return t=t||{},Xr(e,null,null,t.state!=="normal")}const kbe=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:em,createList:pZ,createScale:eT,createSymbol:jn,createTextStyle:Obe,dataStack:JA,enableHoverEmphasis:lf,getECData:Ht,getLayoutRect:kn,mixinAxisModelCommonMethods:gZ},Symbol.toStringTag,{value:"Module"}));var Nbe=1e-8;function oV(e,t){return Math.abs(e-t)a&&(n=o,a=l)}if(n)return Fbe(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return W(o,function(s){s.type==="polygon"?sV(s.exterior,a,i,r):W(s.points,function(l){sV(l,a,i,r)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new Xt(a[0],a[1],i[0]-a[0],i[1]-a[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var i=0,o=a.length;i>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,n.push([s/r,l/r])}return n}function X0(e,t){return e=zbe(e),Fe(Yr(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,a=r.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new lV(o[0],o.slice(1)));break;case"MultiPolygon":W(a.coordinates,function(l){l[0]&&i.push(new lV(l[0],l.slice(1)))});break;case"LineString":i.push(new uV([a.coordinates]));break;case"MultiLineString":i.push(new uV(a.coordinates))}var s=new yZ(n[t||"name"],i,n.cp);return s.properties=n,s})}const Hbe=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:TP,asc:wo,getPercentWithPrecision:cge,getPixelPrecision:xO,getPrecision:Ns,getPrecisionSafe:xA,isNumeric:CO,isRadianAroundZero:k0,linearMap:Vr,nice:TO,numericToNumber:zl,parseDate:uo,quantile:Qw,quantity:cj,quantityExponent:AA,reformIntervals:CP,remRadian:AO,round:yn},Symbol.toStringTag,{value:"Module"})),Gbe=Object.freeze(Object.defineProperty({__proto__:null,format:c1,parse:uo},Symbol.toStringTag,{value:"Module"})),Ube=Object.freeze(Object.defineProperty({__proto__:null,Arc:IA,BezierCurve:o1,BoundingRect:Xt,Circle:Qs,CompoundPath:RA,Ellipse:LA,Group:Ot,Image:Oa,IncrementalDisplayable:lK,Line:Ta,LinearGradient:kr,Polygon:Ri,Polyline:Fi,RadialGradient:BO,Rect:br,Ring:i1,Sector:Ii,Text:pr,clipPointsByRect:HO,clipRectByRect:dK,createIcon:Ug,extendPath:cK,extendShape:eo,getShapeClass:OA,getTransform:uf,initProps:_n,makeImage:VO,makePath:s1,mergePath:bo,registerShape:zn,resizePath:zO,updateProps:Lr},Symbol.toStringTag,{value:"Module"})),$be=Object.freeze(Object.defineProperty({__proto__:null,addCommas:U0,capitalFirst:Uye,encodeHTML:na,formatTime:DK,formatTpl:HA,getTextRect:Hye,getTooltipMarker:XO,normalizeCssArray:nv,toCamelCase:KO,truncateText:wj},Symbol.toStringTag,{value:"Module"})),Wbe=Object.freeze(Object.defineProperty({__proto__:null,bind:ot,clone:Pt,curry:zt,defaults:yt,each:W,extend:Ie,filter:Yr,indexOf:tr,inherits:Q_,isArray:Ne,isFunction:Tt,isObject:Mt,isString:rt,map:Fe,merge:st,reduce:Co},Symbol.toStringTag,{value:"Module"}));var Z0=Pr();function Ybe(e){return e.type==="category"?Kbe(e):Zbe(e)}function jbe(e,t){return e.type==="category"?Xbe(e,t):{ticks:Fe(e.scale.getTicks(),function(r){return r.value})}}function Kbe(e){var t=e.getLabelModel(),r=bZ(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function bZ(e,t){var r=wZ(e,"labels"),n=Ck(t),a=SZ(r,n);if(a)return a;var i,o;return Tt(n)?i=TZ(e,n):(o=n==="auto"?qbe(e):n,i=AZ(e,o)),xZ(r,n,{labels:i,labelCategoryInterval:o})}function Xbe(e,t){var r=wZ(e,"ticks"),n=Ck(t),a=SZ(r,n);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),Tt(n))i=TZ(e,n,!0);else if(n==="auto"){var s=bZ(e,e.getLabelModel());o=s.labelCategoryInterval,i=Fe(s.labels,function(l){return l.tickValue})}else o=n,i=AZ(e,o,!0);return xZ(r,n,{ticks:i,tickCategoryInterval:o})}function Zbe(e){var t=e.scale.getTicks(),r=v1(e);return{labels:Fe(t,function(n,a){return{level:n.level,formattedLabel:r(n,a),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function wZ(e,t){return Z0(e)[t]||(Z0(e)[t]=[])}function SZ(e,t){for(var r=0;r40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),d=0,h=0;l<=i[1];l+=s){var v=0,p=0,g=r1(r({value:l}),t.font,"center","top");v=g.width*1.3,p=g.height*1.3,d=Math.max(d,v,7),h=Math.max(h,p,7)}var m=d/c,y=h/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),w=Z0(e.model),x=e.getExtent(),S=w.lastAutoInterval,T=w.lastTickCount;return S!=null&&T!=null&&Math.abs(S-_)<=1&&Math.abs(T-o)<=1&&S>_&&w.axisExtent0===x[0]&&w.axisExtent1===x[1]?_=S:(w.lastTickCount=o,w.lastAutoInterval=_,w.axisExtent0=x[0],w.axisExtent1=x[1]),_}function Jbe(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 AZ(e,t,r){var n=v1(e),a=e.scale,i=a.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=vZ(e),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==i[0]&&p(i[0]);for(var v=u;v<=i[1];v+=l)p(v);h&&v-l!==i[1]&&p(i[1]);function p(g){var m={value:g};s.push(r?g:{formattedLabel:n(m),rawLabel:a.getLabel(m),tickValue:g})}return s}function TZ(e,t,r){var n=e.scale,a=v1(e),i=[];return W(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(r?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var cV=[0,1],ewe=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return t>=n&&t<=a},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return xO(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),fV(n,a.count())),Vr(t,cV,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),fV(n,a.count()));var i=Vr(t,n,cV,r);return this.scale.scale(i)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=jbe(this,r),a=n.ticks,i=Fe(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return twe(this,i,o,t.clamp),i},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),a=Fe(n,function(i){return Fe(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(){return Ybe(this).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,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},e.prototype.calculateCategoryInterval=function(){return Qbe(this)},e}();function fV(e,t){var r=e[1]-e[0],n=t,a=r/n/2;e[0]+=a,e[1]-=a}function twe(e,t,r,n){var a=t.length;if(!e.onBand||r||!a)return;var i=e.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;W(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var f=i[0]>i[1];d(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&d(i[0],t[0].coord)&&t.unshift({coord:i[0]}),d(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&d(o.coord,i[1])&&t.push({coord:i[1]});function d(h,v){return h=yn(h),v=yn(v),f?h>v:ha&&(a+=zm);var h=Math.atan2(s,o);if(h<0&&(h+=zm),h>=n&&h<=a||h+zm>=n&&h+zm<=a)return l[0]=c,l[1]=f,u-r;var v=r*Math.cos(n)+e,p=r*Math.sin(n)+t,g=r*Math.cos(a)+e,m=r*Math.sin(a)+t,y=(v-o)*(v-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(l[0]=v,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(_))}function Nx(e,t,r,n,a,i,o,s){var l=a-e,u=i-t,c=r-e,f=n-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var h=l*c+u*f,v=h/d;s&&(v=Math.min(Math.max(v,0),1)),v*=d;var p=o[0]=e+v*c,g=o[1]=t+v*f;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function CZ(e,t,r,n,a,i,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,l=t+n,u=o[0]=Math.min(Math.max(a,e),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var Ps=[];function uwe(e,t,r){var n=CZ(t.x,t.y,t.width,t.height,e.x,e.y,Ps);return r.set(Ps[0],Ps[1]),n}function cwe(e,t,r){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,c=t.data,f=e.x,d=e.y,h=0;h0){t=t/180*Math.PI,Fs.fromArray(e[0]),fn.fromArray(e[1]),qn.fromArray(e[2]),qt.sub(Dl,Fs,fn),qt.sub(Al,qn,fn);var r=Dl.len(),n=Al.len();if(!(r<.001||n<.001)){Dl.scale(1/r),Al.scale(1/n);var a=Dl.dot(Al),i=Math.cos(t);if(i1&&qt.copy(Ai,qn),Ai.toArray(e[1])}}}}function fwe(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Fs.fromArray(e[0]),fn.fromArray(e[1]),qn.fromArray(e[2]),qt.sub(Dl,fn,Fs),qt.sub(Al,qn,fn);var n=Dl.len(),a=Al.len();if(!(n<.001||a<.001)){Dl.scale(1/n),Al.scale(1/a);var i=Dl.dot(t),o=Math.cos(r);if(i=l)qt.copy(Ai,qn);else{Ai.scaleAndAdd(Al,s/Math.tan(Math.PI/2-c));var f=qn.x!==fn.x?(Ai.x-fn.x)/(qn.x-fn.x):(Ai.y-fn.y)/(qn.y-fn.y);if(isNaN(f))return;f<0?qt.copy(Ai,fn):f>1&&qt.copy(Ai,qn)}Ai.toArray(e[1])}}}}function hV(e,t,r,n){var a=r==="normal",i=a?e:e.ensureState(r);i.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?e.useStyle(s):i.style=s}function dwe(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var a=Au(n[0],n[1]),i=Au(n[1],n[2]);if(!a||!i){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*r,s=Hy([],n[1],n[0],o/a),l=Hy([],n[1],n[2],o/i),u=Hy([],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],n[2][0],n[2][1])}else for(var c=1;c0&&i&&x(-c/o,0,o);var p=e[0],g=e[o-1],m,y;_(),m<0&&S(-m,.8),y<0&&S(y,.8),_(),w(m,y,1),w(y,m,-1),_(),m<0&&T(-m),y<0&&T(y);function _(){m=p.rect[t]-n,y=a-g.rect[t]-g.rect[r]}function w(A,C,M){if(A<0){var E=Math.min(C,-A);if(E>0){x(E*M,0,o);var D=E+A;D<0&&S(-D*M,1)}else S(-A*M,1)}}function x(A,C,M){A!==0&&(u=!0);for(var E=C;E0)for(var D=0;D0;D--){var O=M[D-1]*I;x(-O,D,o)}}}function T(A){var C=A<0?-1:1;A=Math.abs(A);for(var M=Math.ceil(A/(o-1)),E=0;E0?x(M,0,E+1):x(-M,o-E-1,o),A-=M,A<=0)return}return u}function hwe(e,t,r,n){return DZ(e,"x","width",t,r,n)}function PZ(e,t,r,n){return DZ(e,"y","height",t,r,n)}function LZ(e){var t=[];e.sort(function(p,g){return g.priority-p.priority});var r=new Xt(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var a=0;a=0&&n.attr(i.oldLayoutSelect),tr(d,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Lr(n,u,r,l)}else if(n.attr(u),!Wg(n).valueAnimation){var f=Qt(n.style.opacity,1);n.style.opacity=0,_n(n,{style:{opacity:f}},r,l)}if(i.oldLayout=u,n.states.select){var h=i.oldLayoutSelect={};Rb(h,u,Ob),Rb(h,n.states.select,Ob)}if(n.states.emphasis){var v=i.oldLayoutEmphasis={};Rb(v,u,Ob),Rb(v,n.states.emphasis,Ob)}mK(n,l,c,r,r)}if(a&&!a.ignore&&!a.invisible){var i=gwe(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),Lr(a,{shape:p},r)):(a.setShape(p),a.style.strokePercent=0,_n(a,{style:{strokePercent:1}},r)),i.oldLayout=p}},e}();const ywe=mwe;var gE=Pr();function IZ(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var a=gE(r).labelManager;a||(a=gE(r).labelManager=new ywe),a.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var a=gE(r).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(r.getViewOfSeriesModel(i))}),a.updateLayoutConfig(r),a.layout(r),a.processLabelsOverall()})}var mE=Math.sin,yE=Math.cos,RZ=Math.PI,bd=Math.PI*2,_we=180/RZ,bwe=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,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,a,i,o){this._add("C",t,r,n,a,i,o)},e.prototype.quadraticCurveTo=function(t,r,n,a){this._add("Q",t,r,n,a)},e.prototype.arc=function(t,r,n,a,i,o){this.ellipse(t,r,n,n,0,a,i,o)},e.prototype.ellipse=function(t,r,n,a,i,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=jc(f-bd)||(c?u>=bd:-u>=bd),h=u>0?u%bd:u%bd+bd,v=!1;d?v=!0:jc(f)?v=!1:v=h>=RZ==!!c;var p=t+n*yE(o),g=r+a*mE(o);this._start&&this._add("M",p,g);var m=Math.round(i*_we);if(d){var y=1/this._p,_=(c?1:-1)*(bd-y);this._add("A",n,a,m,1,+c,t+n*yE(o+_),r+a*mE(o+_)),y>.01&&this._add("A",n,a,m,0,+c,p,g)}else{var w=t+n*yE(s),x=r+a*mE(s);this._add("A",n,a,m,+v,+c,w,x)}},e.prototype.rect=function(t,r,n,a){this._add("M",t,r),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,a,i,o,s,l,u){for(var c=[],f=this._p,d=1;d"}function Dwe(e){return""}function Dk(e,t){t=t||{};var r=t.newline?` `:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return Mwe(o,s)+(o!=="style"?na(l):l||"")+(i?""+r+Fe(i,function(u){return n(u)}).join(r)+r:"")+Dwe(o)}return n(e)}function Pwe(e,t,r){r=r||{};var n=r.newline?` `:"",a=" {"+n,i=n+"}",o=Fe(vr(e),function(l){return l+a+Fe(vr(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+i}).join(n),s=Fe(vr(t),function(l){return"@keyframes "+l+a+Fe(vr(t[l]),function(u){return u+a+Fe(vr(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":[""].join(n)}function nL(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function pV(e,t,r,n){return Ca("svg","root",{width:e,height:t,xmlns:kZ,"xmlns:xlink":NZ,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var gV={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"},Rd="transform-origin";function Lwe(e,t,r){var n=Ie({},e.shape);Ie(n,t),e.buildPath(r,n);var a=new OZ;return a.reset(QY(e)),r.rebuildPath(a,1),a.generateStr(),a.getStr()}function Iwe(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[Rd]=r+"px "+n+"px")}var Rwe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function FZ(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function Owe(e,t,r){var n=e.shape.paths,a={},i,o;if(W(n,function(l){var u=nL(r.zrId);u.animation=!0,tT(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=vr(c),h=d.length;if(h){o=d[h-1];var v=c[o];for(var p in v){var g=v[p];a[p]=a[p]||{d:""},a[p].d+=g.d||""}for(var m in f){var y=f[m].animation;y.indexOf(o)>=0&&(i=y)}}}),!!i){t.d=!1;var s=FZ(a,r);return i.replace(o,s)}}function mV(e){return rt(e)?gV[e]?"cubic-bezier("+gV[e]+")":_O(e)?e:"":""}function tT(e,t,r,n){var a=e.animators,i=a.length,o=[];if(e instanceof RA){var s=Owe(e,t,r);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var K=FZ(T,r);return K+" "+y[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var m=r.zrId+"-cls-"+r.cssClassIdx++;r.cssNodes["."+m]={animation:o.join(",")},t.class=m}}var q0=Math.round;function VZ(e){return e&&rt(e.src)}function zZ(e){return e&&Tt(e.toDataURL)}function Pk(e,t,r,n){Twe(function(a,i){var o=a==="fill"||a==="stroke";o&&qY(i)?GZ(t,e,a,n):o&&wO(i)?UZ(r,e,a,n):e[a]=i},t,r,!1),Hwe(r,e,n)}function yV(e){return jc(e[0]-1)&&jc(e[1])&&jc(e[2])&&jc(e[3]-1)}function kwe(e){return jc(e[4])&&jc(e[5])}function Lk(e,t,r){if(t&&!(kwe(t)&&yV(t))){var n=r?10:1e4;e.transform=yV(t)?"translate("+q0(t[4]*n)/n+" "+q0(t[5]*n)/n+")":Ape(t)}}function _V(e,t,r){for(var n=e.points,a=[],i=0;i"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";ci(d,g),ci(h,g)}else if(d==null||h==null){var m=function(M,E){if(M){var D=M.elm,P=d||E.width,L=h||E.height;M.tag==="pattern"&&(u?(L=1,P/=i.width):c&&(P=1,L/=i.height)),M.attrs.width=P,M.attrs.height=L,D&&(D.setAttribute("width",P),D.setAttribute("height",L))}},y=PO(v,null,e,function(M){l||m(S,M),m(f,M)});y&&y.width&&y.height&&(d=d||y.width,h=h||y.height)}f=Ca("image","img",{href:v,width:d,height:h}),o.width=d,o.height=h}else a.svgElement&&(f=Pt(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(f){var _,w;l?_=w=1:u?(w=1,_=o.width/i.width):c?(_=1,w=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),w!=null&&!isNaN(w)&&(o.height=w);var x=JY(a);x&&(o.patternTransform=x);var S=Ca("pattern","",o,[f]),T=Dk(S),A=n.patternCache,C=A[T];C||(C=n.zrId+"-p"+n.patternIdx++,A[T]=C,o.id=C,S=n.defs[C]=Ca("pattern",C,o,[f])),t[r]=bA(C)}}function Gwe(e,t,r){var n=r.clipPathCache,a=r.defs,i=n[e.id];if(!i){i=r.zrId+"-c"+r.clipPathIdx++;var o={id:i};n[e.id]=i,a[i]=Ca("clipPath",i,o,[HZ(e,r)])}t["clip-path"]=bA(i)}function SV(e){return document.createTextNode(e)}function $d(e,t,r){e.insertBefore(t,r)}function xV(e,t){e.removeChild(t)}function AV(e,t){e.appendChild(t)}function $Z(e){return e.parentNode}function WZ(e){return e.nextSibling}function _E(e,t){e.textContent=t}var TV=58,Uwe=120,$we=Ca("","");function aL(e){return e===void 0}function yl(e){return e!==void 0}function Wwe(e,t,r){for(var n={},a=t;a<=r;++a){var i=e[a].key;i!==void 0&&(n[i]=a)}return n}function wy(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Q0(e){var t,r=e.children,n=e.tag;if(yl(n)){var a=e.elm=BZ(n);if(Ik($we,e),Ne(r))for(t=0;ti?(v=r[l+1]==null?null:r[l+1].elm,YZ(e,v,r,a,l)):Fx(e,t,n,i))}function rp(e,t){var r=t.elm=e.elm,n=e.children,a=t.children;e!==t&&(Ik(e,t),aL(t.text)?yl(n)&&yl(a)?n!==a&&Ywe(r,n,a):yl(a)?(yl(e.text)&&_E(r,""),YZ(r,null,a,0,a.length-1)):yl(n)?Fx(r,n,0,n.length-1):yl(e.text)&&_E(r,""):e.text!==t.text&&(yl(n)&&Fx(r,n,0,n.length-1),_E(r,t.text)))}function jwe(e,t){if(wy(e,t))rp(e,t);else{var r=e.elm,n=$Z(r);Q0(t),n!==null&&($d(n,t.elm,WZ(r)),Fx(n,[e],0,0))}return t}var Kwe=0,Xwe=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=CV(),this.configLayer=CV(),this.storage=r,this._opts=n=Ie({},n),this.root=t,this._id="zr"+Kwe++,this._oldVNode=pV(n.width,n.height),t&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=BZ("svg");Ik(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}this.resize(n.width,n.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",jwe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return wV(t,nL(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=nL(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress;var o=[],s=this._bgVNode=Zwe(n,a,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=Ca("g","main",{},[]);this._paintList(r,i,l?l.children:o),l&&o.push(l);var u=Fe(vr(i.defs),function(d){return i.defs[d]});if(u.length&&o.push(Ca("defs","defs",{},u)),t.animation){var c=Pwe(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=Ca("style","stl",{},[],c);o.push(f)}}return pV(n,a,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},Dk(this.renderToVNode({animation:Qt(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Qt(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,r,n){for(var a=t.length,i=[],o=0,s,l,u=0,c=0;c=0&&!(d&&l&&d[p]===l[p]);p--);for(var g=v-1;g>p;g--)o--,s=i[o-1];for(var m=p+1;m=s)}}for(var f=this.__startIndex;f15)break}}L.prevElClipPaths&&m.restore()};if(y)if(y.length===0)A=g.__endIndex;else for(var M=h.dpr,E=0;E0&&t>a[0]){for(l=0;lt);l++);s=n[a[l]]}if(a.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,a=0;a0?kb:0),this._needsManuallyCompositing),c.__builtin__||vA("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),i=c),a.__dirty&_o&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(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,W(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?st(n[t],r,!0):n[t]=r;for(var a=0;a-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},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:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Ir);const oSe=iSe;function tg(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=Jp(e,t,r[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o=0&&n.push(t[i])}return n.join(" ")}var sSe=function(e){De(t,e);function t(r,n,a,i){var o=e.call(this)||this;return o.updateData(r,n,a,i),o}return t.prototype._createSymbol=function(r,n,a,i,o){this.removeAll();var s=jn(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=lSe,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Hu(this.childAt(0))},t.prototype.downplay=function(){Gu(this.childAt(0))},t.prototype.setZ=function(r,n){var a=this.childAt(0);a.zlevel=r,a.z=n},t.prototype.setDraggable=function(r,n){var a=this.childAt(0);a.draggable=r,a.cursor=!n&&r?"move":a.cursor},t.prototype.updateData=function(r,n,a,i){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,f)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(h):Lr(d,h,s,n),Js(d)}if(this._updateCommon(r,n,l,a,i),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,_n(d,h,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,a,i,o){var s=this.childAt(0),l=r.hostModel,u,c,f,d,h,v,p,g,m;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,d=i.focus,h=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,m=i.cursorStyle,v=i.emphasisDisabled),!i||r.hasItemOption){var y=i&&i.itemModel?i.itemModel:r.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),d=_.get("focus"),h=_.get("blurScope"),v=_.get("disabled"),p=Pa(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var w=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var x=av(r.getItemVisual(n,"symbolOffset"),a);x&&(s.x=x[0],s.y=x[1]),m&&s.attr("cursor",m);var S=r.getItemVisual(n,"style"),T=S.fill;if(s instanceof Oa){var A=s.style;s.useStyle(Ie({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},S))}else s.__isEmptyBrush?s.useStyle(Ie({},S)):s.useStyle(S),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=r.getItemVisual(n,"liftZ"),M=this._z2;C!=null?M==null&&(this._z2=s.z2,s.z2+=C):M!=null&&(s.z2=M,this._z2=null);var E=o&&o.useNameLabel;ri(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:D,inheritColor:T,defaultOpacity:S.opacity});function D(I){return E?r.getName(I):tg(r,I)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var L=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*L,P.scaleY=this._sizeY*L,this.setSymbolScale(1),Gn(this,d,h,v)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,a){var i=this.childAt(0),o=Ht(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&yf(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();yf(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return Jg(r.getItemVisual(n,"symbolSize"))},t}(Ot);function lSe(e,t){this.parent.drift(e,t)}const p1=sSe;function wE(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function DV(e){return e!=null&&!Mt(e)&&(e={isIgnore:e}),e||{}}function PV(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Pa(t),cursorStyle:t.get("cursor")}}var uSe=function(){function e(t){this.group=new Ot,this._SymbolCtor=t||p1}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=DV(r);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=PV(t),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};i||n.removeAll(),t.diff(i).add(function(f){var d=c(f);if(wE(t,d,f,r)){var h=new o(t,f,l,u);h.setPosition(d),t.setItemGraphicEl(f,h),n.add(h)}}).update(function(f,d){var h=i.getItemGraphicEl(d),v=c(f);if(!wE(t,v,f,r)){n.remove(h);return}var p=t.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)n.remove(h),h=new o(t,f,l,u),h.setPosition(v);else{h.updateData(t,f,l,u);var m={x:v[0],y:v[1]};s?h.attr(m):Lr(h,m,a)}n.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=i.getItemGraphicEl(f);d&&d.fadeOut(function(){n.remove(d)},a)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=PV(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=DV(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0?r=n[0]:n[1]<0&&(r=n[1]),r}function ZZ(e,t,r,n){var a=NaN;e.stacked&&(a=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=e.valueStart);var i=e.baseDataOffset,o=[];return o[i]=r.get(e.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function fSe(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,a){r.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function dSe(e,t,r,n,a,i,o,s){for(var l=fSe(e,t),u=[],c=[],f=[],d=[],h=[],v=[],p=[],g=XZ(a,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=a||p<0)break;if(Ah(m,y)){if(l){p+=i;continue}break}if(p===r)e[i>0?"moveTo":"lineTo"](m,y),f=m,d=y;else{var _=m-u,w=y-c;if(_*_+w*w<.5){p+=i;continue}if(o>0){for(var x=p+i,S=t[x*2],T=t[x*2+1];S===m&&T===y&&g=n||Ah(S,T))h=m,v=y;else{M=S-u,E=T-c;var L=m-u,I=S-m,O=y-c,R=T-y,B=void 0,k=void 0;if(s==="x"){B=Math.abs(L),k=Math.abs(I);var z=M>0?1:-1;h=m-z*B*o,v=y,D=m+z*k*o,P=y}else if(s==="y"){B=Math.abs(O),k=Math.abs(R);var $=E>0?1:-1;h=m,v=y-$*B*o,D=m,P=y+$*k*o}else B=Math.sqrt(L*L+O*O),k=Math.sqrt(I*I+R*R),C=k/(k+B),h=m-M*o*(1-C),v=y-E*o*(1-C),D=m+M*o*C,P=y+E*o*C,D=bc(D,wc(S,m)),P=bc(P,wc(T,y)),D=wc(D,bc(S,m)),P=wc(P,bc(T,y)),M=D-m,E=P-y,h=m-M*B/k,v=y-E*B/k,h=bc(h,wc(u,m)),v=bc(v,wc(c,y)),h=wc(h,bc(u,m)),v=wc(v,bc(c,y)),M=m-h,E=y-v,D=m+M*k/B,P=y+E*k/B}e.bezierCurveTo(f,d,h,v,m,y),f=D,d=P}else e.lineTo(m,y)}u=m,c=y,p+=i}return g}var qZ=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),hSe=function(e){De(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new qZ},t.prototype.buildPath=function(r,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Ah(a[o*2-2],a[o*2-1]);o--);for(;i=0){var w=u?(v-l)*_+l:(h-s)*_+s;return u?[r,w]:[w,r]}s=h,l=v;break;case o.C:h=i[f++],v=i[f++],p=i[f++],g=i[f++],m=i[f++],y=i[f++];var x=u?ux(s,h,p,m,r,c):ux(l,v,g,y,r,c);if(x>0)for(var S=0;S=0){var w=u?wa(l,v,g,y,T):wa(s,h,p,m,T);return u?[r,w]:[w,r]}}s=m,l=y;break}}},t}(cr),vSe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(qZ),QZ=function(e){De(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new vSe},t.prototype.buildPath=function(r,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Ah(a[s*2-2],a[s*2-1]);s--);for(;ot){i?r.push(o(i,l,t)):a&&r.push(o(a,l,0),o(a,l,t));break}else a&&(r.push(o(a,l,0)),a=null),r.push(l),i=l}return r}function mSe(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=t.getAxis(a),u=Fe(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=gSe(u,a==="x"?r.getWidth():r.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var v=10,p=d[0].coord-v,g=d[h-1].coord+v,m=g-p;if(m<.001)return"transparent";W(d,function(_){_.offset=(_.coord-p)/m}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var y=new kr(0,0,0,0,d,!0);return y[a]=p,y[a+"2"]=g,y}}}function ySe(e,t,r){var n=e.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=r.getAxesByScale("ordinal")[0];if(i&&!(a&&_Se(i,t))){var o=t.mapDimension(i.dim),s={};return W(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function _Se(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;on)return!1;return!0}function bSe(e,t){return isNaN(e)||isNaN(t)}function wSe(e){for(var t=e.length/2;t>0&&bSe(e[t*2-2],e[t*2-1]);t--);return t-1}function kV(e,t){return[e[t*2],e[t*2+1]]}function SSe(e,t,r){for(var n=e.length/2,a=r==="x"?0:1,i,o,s=0,l=-1,u=0;u=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function tq(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var z=p.getState("emphasis").style;z.lineWidth=+p.style.lineWidth+1}Ht(p).seriesIndex=r.seriesIndex,Gn(p,R,B,k);var $=OV(r.get("smooth")),j=r.get("smoothMonotone");if(p.setShape({smooth:$,smoothMonotone:j,connectNulls:A}),g){var X=l.getCalculationInfo("stackedOnSeries"),Q=0;g.useStyle(yt(c.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),X&&(Q=OV(X.get("smooth"))),g.setShape({smooth:$,stackedOnSmooth:Q,smoothMonotone:j,connectNulls:A}),ti(g,r,"areaStyle"),Ht(g).seriesIndex=r.seriesIndex,Gn(g,R,B,k)}var se=function(ee){i._changePolyState(ee)};l.eachItemGraphicEl(function(ee){ee&&(ee.onHoverStateChange=se)}),this._polyline.onHoverStateChange=se,this._data=l,this._coordSys=o,this._stackedOnPoints=S,this._points=f,this._step=E,this._valueOrigin=w,r.get("triggerLineEvent")&&(this.packEventData(r,p),g&&this.packEventData(r,g))},t.prototype.packEventData=function(r,n){Ht(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,a,i){var o=r.getData(),s=Fh(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.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=r.get("zlevel")||0,h=r.get("z")||0;u=new p1(o,s),u.x=c,u.y=f,u.setZ(d,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=d,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else xr.prototype.highlight.call(this,r,n,a,i)},t.prototype.downplay=function(r,n,a,i){var o=r.getData(),s=Fh(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else xr.prototype.downplay.call(this,r,n,a,i)},t.prototype._changePolyState=function(r){var n=this._polygon;px(this._polyline,r),n&&px(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new hSe({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new QZ({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(r,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");Tt(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=Tt(f)?f(null):f;r.eachItemGraphicEl(function(h,v){var p=h;if(p){var g=[h.x,h.y],m=void 0,y=void 0,_=void 0;if(a)if(o){var w=a,x=n.pointToCoord(g);i?(m=w.startAngle,y=w.endAngle,_=-x[1]/180*Math.PI):(m=w.r0,y=w.r,_=x[0])}else{var S=a;i?(m=S.x,y=S.x+S.width,_=h.x):(m=S.y+S.height,y=S.y,_=h.y)}var T=y===m?0:(_-m)/(y-m);l&&(T=1-T);var A=Tt(f)?f(v):c*T+d,C=p.getSymbolPath(),M=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:A}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,a){var i=r.getModel("endLabel");if(tq(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new pr({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=wSe(l);c>=0&&(ri(s,Pa(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?KZ(o,h):tg(o,f)},enableTextSetter:!0},xSe(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=a.getLayout("points"),d=a.hostModel,h=d.get("connectNulls"),v=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=n.shape,w=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,x=(m?p:0)*(y?-1:1),S=(m?0:-p)*(y?-1:1),T=m?"x":"y",A=SSe(f,w,T),C=A.range,M=C[1]-C[0],E=void 0;if(M>=1){if(M>1&&!h){var D=kV(f,C[0]);u.attr({x:D[0]+x,y:D[1]+S}),o&&(E=d.getRawValue(C[0]))}else{var D=c.getPointOn(w,T);D&&u.attr({x:D[0]+x,y:D[1]+S});var P=d.getRawValue(C[0]),L=d.getRawValue(C[1]);o&&(E=yj(a,v,P,L,A.t))}i.lastFrameIndex=C[0]}else{var I=r===1||i.lastFrameIndex>0?C[0]:0,D=kV(f,I);o&&(E=d.getRawValue(I)),u.attr({x:D[0]+x,y:D[1]+S})}if(o){var O=Wg(u);typeof O.setLabelText=="function"&&O.setLabelText(E)}}},t.prototype._doUpdateAnimation=function(r,n,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,d=dSe(this._data,r,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),h=d.current,v=d.stackedOnCurrent,p=d.next,g=d.stackedOnNext;if(o&&(h=Sc(d.current,a,o,l),v=Sc(d.stackedOnCurrent,a,o,l),p=Sc(d.next,a,o,l),g=Sc(d.stackedOnNext,a,o,l)),RV(h,p)>3e3||c&&RV(v,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=h;var m={shape:{points:p}};d.current!==h&&(m.shape.__points=d.next),u.stopAnimation(),Lr(u,m,f),c&&(c.setShape({points:h,stackedOnPoints:v}),c.stopAnimation(),Lr(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],_=d.status,w=0;w<_.length;w++){var x=_[w].cmd;if(x==="="){var S=r.getItemGraphicEl(_[w].idx1);S&&y.push({el:S,ptIdx:w})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,A=0;At&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var v=void 0;rt(i)?v=CSe[i]:Tt(i)&&(v=i),v&&t.setData(a.downSample(a.mapDimension(u.dim),1/h,v,ESe))}}}}}function MSe(e){e.registerChartView(TSe),e.registerSeriesModel(oSe),e.registerLayout(m1("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,rq("line"))}var nq=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return eu(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(r),s=i.dataToPoint(o);if(a)W(i.getAxes(),function(d,h){if(d.type==="category"&&n!=null){var v=d.getTicksCoords(),p=o[h],g=n[h]==="x1"||n[h]==="y1";if(g&&(p+=1),v.length<2)return;if(v.length===2){s[h]=d.toGlobalCoord(d.getExtent()[g?1:0]);return}for(var m=void 0,y=void 0,_=1,w=0;wp){y=(x+m)/2;break}w===1&&(_=S-v[0].tickValue)}y==null&&(m?m&&(y=v[v.length-1].coord):y=v[0].coord),s[h]=d.toGlobalCoord(y)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.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"},t}(Ir);Ir.registerClass(nq);const Vx=nq;var DSe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return eu(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 r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,a){return a.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Bf(Vx.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:"#212121"}},realtimeSort:!1}),t}(Vx);const PSe=DSe;var LSe=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}(),ISe=function(e){De(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new LSe},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,h=Math.PI*2,v=d?f-cMath.PI/2&&cs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,a,i){if(this._isOrderChangedWithinSameData(r,n,a)){var o=this._dataSort(r,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,a){var i=n.baseAxis,o=this._dataSort(r,i,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,a=this._data;r&&r.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){z0(i,r,Ht(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(xr),NV={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=e.x+e.width,i=e.y+e.height,o=xE(t.x,e.x),s=AE(t.x+t.width,a),l=xE(t.y,e.y),u=AE(t.y+t.height,i),c=sa?s:o,t.y=f&&l>i?u:l,t.width=c?0:s-o,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var a=AE(t.r,e.r),i=xE(t.r0,e.r0);t.r=a,t.r0=i;var o=a-i<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},BV={cartesian2d:function(e,t,r,n,a,i,o,s,l){var u=new br({shape:Ie({},n),z2:1});if(u.__dataIndex=r,u.name="item",i){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,a,i,o,s,l){var u=!a&&l?zx:Ii,c=new u({shape:n,z2:1});c.name="item";var f=aq(a);if(c.calculateTextPosition=RSe(f,{isRoundCap:u===zx}),i){var d=c.shape,h=a?"r":"endAngle",v={};d[h]=a?n.r0:n.startAngle,v[h]=n[h],(s?Lr:_n)(c,{shape:v},i)}return c}};function BSe(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function FV(e,t,r,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Lr:_n)(r,{shape:l},t,a,null);var c=t?e.baseAxis.model:null;(o?Lr:_n)(r,{shape:u},c,a)}function VV(e,t){for(var r=0;r0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function zSe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function aq(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function HV(e,t,r,n,a,i,o,s){var l=t.getItemVisual(r,"style");if(s){if(!i.get("roundCap")){var c=e.shape,f=ah(n.getModel("itemStyle"),c,!0);Ie(c,f),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=n.getShallow("cursor");d&&e.attr("cursor",d);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",v=Pa(n);ri(e,v,{labelFetcher:i,labelDataIndex:r,defaultText:tg(i.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=e.getTextContent();if(s&&p){var g=n.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,OSe(e,g==="outside"?h:g,aq(o),n.get(["label","rotate"]))}gK(p,v,i.getRawValue(r),function(y){return KZ(t,y)});var m=n.getModel(["emphasis"]);Gn(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),ti(e,n),zSe(a)&&(e.style.fill="none",e.style.stroke="none",W(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function HSe(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var GSe=function(){function e(){}return e}(),GV=function(e){De(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new GSe},t.prototype.buildPath=function(r,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?r:null},30,!1);function USe(e,t,r){for(var n=e.baseDimIdx,a=1-n,i=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=i.length/3;c=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function iq(e,t,r){if(iv(r,"cartesian2d")){var n=t,a=r.getArea();return{x:e?n.x:a.x,y:e?a.y:n.y,width:e?n.width:a.width,height:e?a.height:n.height}}else{var a=r.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:e?a.r0:i.r0,r:e?a.r:i.r,startAngle:e?i.startAngle:0,endAngle:e?i.endAngle:Math.PI*2}}}function $Se(e,t,r){var n=e.type==="polar"?Ii:br;return new n({shape:iq(t,r,e),silent:!0,z2:0})}const WSe=NSe;function YSe(e){e.registerChartView(WSe),e.registerSeriesModel(PSe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,zt(iZ,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,oZ("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,rq("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var Vb=Math.PI*2,WV=Math.PI/180;function oq(e,t){return kn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function sq(e,t){var r=oq(e,t),n=e.get("center"),a=e.get("radius");Ne(a)||(a=[0,a]);var i=Je(r.width,t.getWidth()),o=Je(r.height,t.getHeight()),s=Math.min(i,o),l=Je(a[0],s/2),u=Je(a[1],s/2),c,f,d=e.coordinateSystem;if(d){var h=d.dataToPoint(n);c=h[0]||0,f=h[1]||0}else Ne(n)||(n=[n,n]),c=Je(n[0],i)+r.x,f=Je(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function jSe(e,t,r){t.eachSeriesByType(e,function(n){var a=n.getData(),i=a.mapDimension("value"),o=oq(n,r),s=sq(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*WV,h=n.get("minAngle")*WV,v=0;a.each(i,function(M){!isNaN(M)&&v++});var p=a.getSum(i),g=Math.PI/(p||v)*2,m=n.get("clockwise"),y=n.get("roseType"),_=n.get("stillShowZeroSum"),w=a.getDataExtent(i);w[0]=0;var x=Vb,S=0,T=d,A=m?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(M,E){var D;if(isNaN(M)){a.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:f,r:y?NaN:c});return}y!=="area"?D=p===0&&_?g:M*g:D=Vb/v,Dr?m:g,x=Math.abs(_.label.y-r);if(x>=w.maxY){var S=_.label.x-t-_.len2*a,T=n+_.len,A=Math.abs(S)e.unconstrainedWidth?null:h:null;n.setStyle("width",v)}var p=n.getBoundingRect();i.width=p.width;var g=(n.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-f)/2}}}function TE(e){return e.position==="center"}function ZSe(e){var t=e.getData(),r=[],n,a,i=!1,o=(e.get("minShowLabelAngle")||0)*KSe,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(S){S.ignore=!0}function v(S){if(!S.ignore)return!0;for(var T in S.states)if(S.states[T].ignore===!1)return!0;return!1}t.each(function(S){var T=t.getItemGraphicEl(S),A=T.shape,C=T.getTextContent(),M=T.getTextGuideLine(),E=t.getItemModel(S),D=E.getModel("label"),P=D.get("position")||E.get(["emphasis","label","position"]),L=D.get("distanceToLabelLine"),I=D.get("alignTo"),O=Je(D.get("edgeDistance"),u),R=D.get("bleedMargin"),B=E.getModel("labelLine"),k=B.get("length");k=Je(k,u);var z=B.get("length2");if(z=Je(z,u),Math.abs(A.endAngle-A.startAngle)0?"right":"left":j>0?"left":"right"}var ve=Math.PI,_e=0,ge=D.get("rotate");if(Mr(ge))_e=ge*(ve/180);else if(P==="center")_e=0;else if(ge==="radial"||ge===!0){var Le=j<0?-$+ve:-$;_e=Le}else if(ge==="tangential"&&P!=="outside"&&P!=="outer"){var Se=Math.atan2(j,X);Se<0&&(Se=ve*2+Se);var xe=X>0;xe&&(Se=ve+Se),_e=Se-ve}if(i=!!_e,C.x=Q,C.y=se,C.rotation=_e,C.setStyle({verticalAlign:"middle"}),Z){C.setStyle({align:K});var He=C.states.select;He&&(He.x+=C.x,He.y+=C.y)}else{var Te=C.getBoundingRect().clone();Te.applyTransform(C.getComputedTransform());var Ve=(C.style.margin||0)+2.1;Te.y-=Ve/2,Te.height+=Ve,r.push({label:C,labelLine:M,position:P,len:k,len2:z,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new qt(j,X),linePoints:ee,textAlign:K,labelDistance:L,labelAlignTo:I,edgeDistance:O,bleedMargin:R,rect:Te,unconstrainedWidth:Te.width,labelStyleWidth:C.style.width})}T.setTextConfig({inside:Z})}}),!i&&e.get("avoidLabelOverlap")&&XSe(r,n,a,l,u,d,c,f);for(var p=0;p0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=i.r0}},t.type="pie",t}(xr);const JSe=QSe;function nm(e,t,r){t=Ne(t)&&{coordDimensions:t}||Ie({encodeDefine:e.getEncode()},t);var n=e.getSource(),a=tm(n,t).dimensions,i=new Dn(a,e);return i.initData(n,r),i}var exe=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}();const _1=exe;var txe=Pr(),rxe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new _1(ot(this.getData,this),ot(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return nm(this,{coordDimensions:["value"],encodeDefaulter:zt(qO,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),a=txe(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=uj(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=i[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){Bh(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,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%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,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}(Ir);const nxe=rxe;function axe(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(Mr(o)&&!isNaN(o)&&o<0)})}}}function ixe(e){e.registerChartView(JSe),e.registerSeriesModel(nxe),wX("pie",e.registerAction),e.registerLayout(zt(jSe,"pie")),e.registerProcessor(y1("pie")),e.registerProcessor(axe("pie"))}var oxe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return eu(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(r,n,a){return a.point(n.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],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:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Ir);const sxe=oxe;var uq=4,lxe=function(){function e(){}return e}(),uxe=function(e){De(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new lxe},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&i[0]=0;u--){var c=u*2,f=i[c]-s/2,d=i[c+1]-l/2;if(r>=f&&n>=d&&r<=f+s&&n<=d+l)return u}return-1},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(r=a[0],n=a[1],i.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const fxe=cxe;var dxe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.updateData(i,{clipShape:this._getClipShape(r)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,a){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(r,n,a){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,a){var i=r.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=m1("").reset(r,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._getClipShape=function(r){var n=r.coordinateSystem,a=n&&n.getArea&&n.getArea();return r.get("clip",!0)?a:null},t.prototype._updateSymbolDraw=function(r,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new fxe:new g1,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(xr);const hxe=dxe;var vxe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(sr);const pxe=vxe;var oL=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ia).models[0]},t.type="cartesian2dAxis",t}(sr);Kn(oL,rm);var cq={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:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},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},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},gxe=st({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},cq),Rk=st({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},cq),mxe=st({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Rk),yxe=yt({logBase:10},Rk);const fq={category:gxe,value:Rk,time:mxe,log:yxe};var _xe={value:1,category:1,time:1,log:1};function rg(e,t,r,n){W(_xe,function(a,i){var o=st(st({},fq[i],!0),n,!0),s=function(l){De(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=$0(this),h=d?jg(c):{},v=f.getTheme();st(c,v.get(i+"Axis")),st(c,this.getDefaultOption()),c.type=jV(c),d&&_f(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=Ox.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.type=t+"Axis."+i,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",jV)}function jV(e){return e.type||(e.data?"category":"value")}var bxe=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 Fe(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Yr(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}();const Ok=bxe;var sL=["x","y"];function KV(e){return e.type==="interval"||e.type==="time"}var wxe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=sL,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!KV(r)||!KV(n))){var a=r.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-a[0]*c,h=o[1]-i[0]*f,v=this._transform=[c,0,0,f,d,h];this._invTransform=kf([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&a.contain(a.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var a=this.dataToPoint(r),i=this.dataToPoint(n),o=this.getArea(),s=new Xt(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,a){a=a||[];var i=r[0],o=r[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return va(a,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(r,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(r[0]),u=i.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var a=[];if(this._invTransform)return va(a,r,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(r[0]),n),a[1]=o.coordToData(o.toLocalCoord(r[1]),n),a},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(r[0],r[1]),i=Math.min(n[0],n[1]),o=Math.max(r[0],r[1])-a,s=Math.max(n[0],n[1])-i;return new Xt(a,i,o,s)},t}(Ok),Sxe=function(e){De(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(gi);const xxe=Sxe;function lL(e,t,r){r=r||{};var n=e.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));v[d.onZero]=Math.max(Math.min(p,v[1]),v[0])}i.position=[u==="y"?v[d[l]]:f[0],u==="x"?v[d[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?v[d[s]]-v[d.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Aa(r.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-m:m,i.z2=1,i}function XV(e){return e.get("coordinateSystem")==="cartesian2d"}function ZV(e){var t={xAxisModel:null,yAxisModel:null};return W(t,function(r,n){var a=n.replace(/Model$/,""),i=e.getReferringComponents(a,ia).models[0];t[n]=i}),t}var CE=Math.log;function dq(e,t,r){var n=bf.prototype,a=n.getTicks.call(r),i=n.getTicks.call(r,!0),o=a.length-1,s=n.getInterval.call(r),l=hZ(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=CE(e.base);u=[CE(u[0])/d,CE(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=n.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var v=n.getInterval.call(e),p=u[0],g=u[1];if(c&&f)v=(g-p)/o;else if(c)for(g=u[0]+v*o;gu[0]&&isFinite(p)&&isFinite(u[0]);)v=dE(v),p=u[1]-v*o;else{var m=e.getTicks().length-1;m>o&&(v=dE(v));var y=v*o;g=Math.ceil(u[1]/v)*v,p=yn(g-y),p<0&&u[0]>=0?(p=0,g=yn(y)):g>0&&u[1]<=0&&(g=0,p=-yn(y))}var _=(a[0].value-i[0].value)/s,w=(a[o].value-i[o].value)/s;n.setExtent.call(e,p+v*_,g+v*w),n.setInterval.call(e,v),(_||w)&&n.setNiceExtent.call(e,p+v,g-v)}var Axe=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=sL,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=vr(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],v=h.model,p=h.scale;eL(p)&&v.get("alignTicks")&&v.get("interval")==null?c.push(h):(Gh(p,v),eL(p)&&(s=h))}c.length&&(s||(s=c.pop(),Gh(s.scale,s.model)),W(c,function(g){dq(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var i={};W(n.x,function(o){qV(n,"y",o,i)}),W(n.y,function(o){qV(n,"x",o,i)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=kn(a,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(W(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Lbe(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),W(this._coordsList,function(u){u.calcAffineTransform()});function l(){W(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),Txe(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}Mt(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):k0(a-Kc)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),JV={axisLine:function(e,t,r,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&e.handleAutoShown&&(a=e.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(va(s,s,o),va(l,l,o));var c=Ie({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Ta({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Qp(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);rt(d)&&(d=[d,d]),(rt(h)||Mr(h))&&(h=[h,h]);var v=av(t.get(["axisLine","symbolOffset"])||0,h),p=h[0],g=h[1];W([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(d[y]!=="none"&&d[y]!=null){var _=jn(d[y],-p/2,-g/2,p,g,c.stroke,!0),w=m.r+m.offset,x=u?l:s;_.attr({rotation:m.rotate,x:x[0]+w*Math.cos(e.rotation),y:x[1]-w*Math.sin(e.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(e,t,r,n){var a=Dxe(r,n,t,e),i=Lxe(r,n,t,e);if(Mxe(t,i,a),Pxe(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=MZ(Fe(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));LZ(o)}},axisName:function(e,t,r,n){var a=Aa(e.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,tz(i)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*Kc/180);var v;tz(i)?d=Th.innerTextLayout(e.rotation,h??e.rotation,o):(d=Exe(e.rotation,i,h||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=Aa(e.nameTruncateMaxWidth,g.maxWidth,v),_=new pr({x:f[0],y:f[1],rotation:d.rotation,silent:Th.isLabelSilent(t),style:Xr(s,{text:a,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if($g({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var w=Th.makeAxisEventDataBase(t);w.targetType="axisName",w.name=a,Ht(_).eventData=w}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function Exe(e,t,r,n){var a=AO(r-e),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return k0(a-Kc/2)?(o=l?"bottom":"top",i="center"):k0(a-Kc*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",aKc/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function Mxe(e,t,r){if(!vZ(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),a=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],f=r[r.length-1],d=r[r.length-2];n===!1?(ko(i),ko(u)):ez(i,o)&&(n?(ko(o),ko(c)):(ko(i),ko(u))),a===!1?(ko(s),ko(f)):ez(l,s)&&(a?(ko(l),ko(d)):(ko(s),ko(f)))}}function ko(e){e&&(e.ignore=!0)}function ez(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var a=t1([]);return Of(a,a,-e.rotation),r.applyTransform(Rl([],a,e.getLocalTransform())),n.applyTransform(Rl([],a,t.getLocalTransform())),r.intersect(n)}}function tz(e){return e==="middle"||e==="center"}function hq(e,t,r,n,a){for(var i=[],o=[],s=[],l=0;l=0||e===t}function Bxe(e){var t=kk(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,a=r.option,i=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=uL(r);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var p=l;v.color!=null&&(p=yt({color:v.color},l));var g=st(Pt(v),{boundaryGap:r,splitNumber:n,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:v.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:p,triggerEvent:d},!1);if(rt(c)){var m=g.name;g.name=c.replace("{value}",m??"")}else Tt(c)&&(g.name=c(g.name,g));var y=new $r(g,null,this.ecModel);return Kn(y,rm.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:st({lineStyle:{color:"#bbb"}},Hm.axisLine),axisLabel:zb(Hm.axisLabel,!1),axisTick:zb(Hm.axisTick,!1),splitLine:zb(Hm.splitLine,!0),splitArea:zb(Hm.splitArea,!0),indicator:[]},t}(sr);const Jxe=Qxe;var e2e=["axisLine","axisTickLabel","axisName"],t2e=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=this.group;i.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r){var n=r.coordinateSystem,a=n.getIndicatorAxes(),i=Fe(a,function(o){var s=o.model.get("showName")?o.name:"",l=new Wu(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});W(i,function(o){W(e2e,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),h=u.get("color"),v=Ne(d)?d:[d],p=Ne(h)?h:[h],g=[],m=[];function y(I,O,R){var B=R%O.length;return I[B]=I[B]||[],B}if(i==="circle")for(var _=a[0].getTicksCoords(),w=n.cx,x=n.cy,S=0;S<_.length;S++){if(c){var T=y(g,v,S);g[T].push(new Qs({shape:{cx:w,cy:x,r:_[S].coord}}))}if(f&&S<_.length-1){var T=y(m,p,S);m[T].push(new i1({shape:{cx:w,cy:x,r0:_[S].coord,r:_[S+1].coord}}))}}else for(var A,C=Fe(a,function(I,O){var R=I.getTicksCoords();return A=A==null?R.length-1:Math.min(R.length-1,A),Fe(R,function(B){return n.coordToPoint(B.coord,O)})}),M=[],S=0;S<=A;S++){for(var E=[],D=0;D3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;DE(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var f=Math.abs(i),d=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);DE(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!sz(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;DE(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(gs);function DE(e,t,r,n,a){e.pointerChecker&&e.pointerChecker(n,a.originX,a.originY)&&(zu(n.event),_q(e,t,r,n,a))}function _q(e,t,r,n,a){a.isAvailableBehavior=ot(oS,null,r,n),e.trigger(t,a)}function oS(e,t,r){var n=r[e];return!e||n&&(!rt(n)||t.event[n+"Key"])}const b1=f2e;function Bk(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function Fk(e,t,r,n){var a=e.target,i=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,a.x-=(r-a.x)*(u-1),a.y-=(n-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var d2e={axisPointer:1,tooltip:1,brush:1};function nT(e,t,r){var n=t.getComponentByElement(e.topTarget),a=n&&n.coordinateSystem;return n&&n!==r&&!d2e.hasOwnProperty(n.mainType)&&a&&a.model!==r}function bq(e){if(rt(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var PE,Hx={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"},lz=vr(Hx),Gx={"alignment-baseline":"textBaseline","stop-color":"stopColor"},uz=vr(Gx),h2e=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=bq(t);this._defsUsePending=[];var a=new Ot;this._root=a;var i=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),vo(n,a,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;g2e(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=aT(o);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=Sq(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var h=a;a=new Ot,a.add(h),h.scaleX=h.scaleY=f.scale,h.x=f.x,h.y=f.y}return!r.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new br({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:i}},e.prototype._parseNode=function(t,r,n,a,i,o){var s=t.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!i){var c=PE[s];if(c&<(PE,s)){l=c.call(this,t,r);var f=t.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};n.push(d),s==="g"&&(u=d)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});r.add(l)}}var h=cz[s];if(h&<(cz,s)){var v=h.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=v)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},e.prototype._parseText=function(t,r){var n=new B0({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});No(r,n),vo(t,n,this._defsUsePending,!1,!1),v2e(n,r);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){PE={g:function(t,r){var n=new Ot;return No(r,n),vo(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new br;return No(r,n),vo(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},circle:function(t,r){var n=new Qs;return No(r,n),vo(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,r){var n=new Ta;return No(r,n),vo(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},ellipse:function(t,r){var n=new LA;return No(r,n),vo(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},polygon:function(t,r){var n=t.getAttribute("points"),a;n&&(a=hz(n));var i=new Ri({shape:{points:a||[]},silent:!0});return No(r,i),vo(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,r){var n=t.getAttribute("points"),a;n&&(a=hz(n));var i=new Fi({shape:{points:a||[]},silent:!0});return No(r,i),vo(t,i,this._defsUsePending,!1,!1),i},image:function(t,r){var n=new Oa;return No(r,n),vo(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Ot;return No(r,s),vo(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),a=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new Ot;return No(r,s),vo(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",a=Xj(n);return No(r,a),vo(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),e}(),cz={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),a=parseInt(e.getAttribute("y2")||"0",10),i=new kr(t,r,n,a);return fz(e,i),dz(e,i),i},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),a=new BO(t,r,n);return fz(e,a),dz(e,a),a}};function fz(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function dz(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};wq(r,i,i);var o=i.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:o})}r=r.nextSibling}}function No(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),yt(t.__inheritedStyle,e.__inheritedStyle))}function hz(e){for(var t=aT(e),r=[],n=0;n0;i-=2){var o=n[i],s=n[i-1],l=aT(o);switch(a=a||lo(),s){case"translate":Zs(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":_A(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Of(a,a,-parseFloat(l[0])*LE);break;case"skewX":var u=Math.tan(parseFloat(l[0])*LE);Rl(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*LE);Rl(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 pz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function wq(e,t,r){var n=e.getAttribute("style");if(n){pz.lastIndex=0;for(var a;(a=pz.exec(n))!=null;){var i=a[1],o=lt(Hx,i)?Hx[i]:null;o&&(t[o]=a[2]);var s=lt(Gx,i)?Gx[i]:null;s&&(r[s]=a[2])}}}function b2e(e,t,r){for(var n=0;n0,g={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,r,n),this._updateMapSelectHandler(t,u,n,a)},e.prototype._buildGeoJSON=function(t){var r=this._regionsGroupByName=_t(),n=_t(),a=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(h,v){return v&&(h=v(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function f(h){for(var v=[],p=!u&&l&&l.project,g=0;g=0)&&(d=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;ri(t,Pa(n),{labelFetcher:d,labelDataIndex:f,defaultText:r},h);var v=t.getTextContent();if(v&&(Aq(v).ignore=v.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function bz(e,t,r,n,a,i){e.data?e.data.setItemGraphicEl(i,t):Ht(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:r,region:n&&n.option||{}}}function wz(e,t,r,n,a){e.data||$g({el:t,componentModel:a,itemName:r,itemTooltipOption:n.get("tooltip")})}function Sz(e,t,r,n,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),o=i.get("focus");return Gn(t,o,i.get("blurScope"),i.get("disabled")),e.isGeo&&Fme(t,a,r),o}function xz(e,t,r){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),W(e,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",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:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Ir);const H2e=z2e;function G2e(e,t){var r={};return W(e,function(n){n.each(n.mapDimension("value"),function(a,i){var o="ec-"+n.getName(i);r[o]=r[o]||[],isNaN(a)||r[o].push(a)})}),e[0].map(e[0].mapDimension("value"),function(n,a){for(var i="ec-"+e[0].getName(a),o=0,s=1/0,l=-1/0,u=r[i].length,c=0;c1?(w.width=_,w.height=_/g):(w.height=_,w.width=_*g),w.y=y[1]-w.height/2,w.x=y[0]-w.width/2;else{var x=e.getBoxLayoutParams();x.aspect=g,w=kn(x,{width:v,height:p})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function j2e(e,t){W(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var K2e=function(){function e(){this.dimensions=Cq}return e.prototype.create=function(t,r){var n=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Ez(l+s,l,Ie({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=Mz,u.resize(o,r)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),W(i,function(o,s){var l=Fe(o,function(c){return c.get("nameMap")}),u=new Ez(s,s,Ie({nameMap:pA(l)},a(o[0])));u.zoomLimit=Aa.apply(null,Fe(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=Mz,u.resize(o[0],r),W(o,function(c){c.coordinateSystem=u,j2e(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,a){for(var i=(t||[]).slice(),o=_t(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function nAe(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,a=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){oAe(e);var i=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;a?(e.hierNode.prelim=a.hierNode.prelim+t(e,a),e.hierNode.modifier=e.hierNode.prelim-i):e.hierNode.prelim=i}else a&&(e.hierNode.prelim=a.hierNode.prelim+t(e,a));e.parentNode.hierNode.defaultAncestor=sAe(e,a,e.parentNode.hierNode.defaultAncestor||n[0],t)}function aAe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function Pz(e){return arguments.length?e:cAe}function Sy(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function iAe(e,t){return kn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function oAe(e){for(var t=e.children,r=t.length,n=0,a=0;--r>=0;){var i=t[r];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function sAe(e,t,r,n){if(t){for(var a=e,i=e,o=i.parentNode.children[0],s=t,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=IE(s),i=RE(i),s&&i;){a=IE(a),o=RE(o),a.hierNode.ancestor=e;var d=s.hierNode.prelim+f-i.hierNode.prelim-u+n(s,i);d>0&&(uAe(lAe(s,e,r),e,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!IE(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=f-l),i&&!RE(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,r=e)}return r}function IE(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function RE(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function lAe(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function uAe(e,t,r){var n=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=n}function cAe(e,t){return e.parentNode===t.parentNode?1:2}var fAe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),dAe=function(e){De(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new fAe},t.prototype.buildPath=function(r,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],l=a[i-1];if(i===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=Je(n.forkPosition,1),h=[];h[c]=o[c],h[f]=o[f]+(l[f]-o[f])*d,r.moveTo(o[0],o[1]),r.lineTo(h[0],h[1]),r.moveTo(s[0],s[1]),h[c]=s[c],r.lineTo(h[0],h[1]),h[c]=l[c],r.lineTo(h[0],h[1]),r.lineTo(l[0],l[1]);for(var v=1;vy.x,x||(w=w-Math.PI));var T=x?"left":"right",A=s.getModel("label"),C=A.get("rotate"),M=C*(Math.PI/180),E=g.getTextContent();E&&(g.setTextConfig({position:A.get("position")||T,rotation:C==null?-w:M,origin:"center"}),E.setStyle("verticalAlign","middle"))}var D=s.get(["emphasis","focus"]),P=D==="relative"?kh(o.getAncestorsIndices(),o.getDescendantIndices()):D==="ancestor"?o.getAncestorsIndices():D==="descendant"?o.getDescendantIndices():null;P&&(Ht(r).focus=P),vAe(a,o,c,r,v,h,p,n),r.__edge&&(r.onHoverStateChange=function(L){if(L!=="blur"){var I=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);I&&I.hoverState===a1||px(r.__edge,L)}})}function vAe(e,t,r,n,a,i,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),d=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),v=l.getModel("lineStyle").getLineStyle(),p=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(p||(p=n.__edge=new o1({shape:dL(c,f,d,a,a)})),Lr(p,{shape:dL(c,f,d,i,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==r&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,m=[],y=0;yr&&(r=a.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,a=n.length;r=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},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,r=0;r=0){var n=r.getData().tree.root,a=e.targetNode;if(rt(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=e.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function Iq(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function $k(e,t){var r=Iq(e);return tr(r,t)>=0}function iT(e,t){for(var r=[];e;){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var TAe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},a=r.leaves||{},i=new $r(a,this,this.ecModel),o=Uk.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(d,h){var v=o.getNodeByDataIndex(h);return v&&v.children.length&&v.isExpand||(d.parentModel=i),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.formatTooltip=function(r,n,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return La("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=iT(a,this),n.collapsed=!a.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Ir);const CAe=TAe;function EAe(e,t,r){for(var n=[e],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)r.push(a[i])}}function MAe(e,t){e.eachSeriesByType("tree",function(r){DAe(r,t)})}function DAe(e,t){var r=iAe(e,t);e.layoutInfo=r;var n=e.get("layout"),a=0,i=0,o=null;n==="radial"?(a=2*Math.PI,i=Math.min(r.height,r.width)/2,o=Pz(function(_,w){return(_.parentNode===w.parentNode?1:2)/_.depth})):(a=r.width,i=r.height,o=Pz());var s=e.getData().tree.root,l=s.children[0];if(l){rAe(s),EAe(l,nAe,o),s.hierNode.modifier=-l.hierNode.prelim,Um(l,aAe);var u=l,c=l,f=l;Um(l,function(_){var w=_.getLayout().x;wc.getLayout().x&&(c=_),_.depth>f.depth&&(f=_)});var d=u===c?1:o(u,c)/2,h=d-u.getLayout().x,v=0,p=0,g=0,m=0;if(n==="radial")v=a/(c.getLayout().x+d+h),p=i/(f.depth-1||1),Um(l,function(_){g=(_.getLayout().x+h)*v,m=(_.depth-1)*p;var w=Sy(g,m);_.setLayout({x:w.x,y:w.y,rawX:g,rawY:m},!0)});else{var y=e.getOrient();y==="RL"||y==="LR"?(p=i/(c.getLayout().x+d+h),v=a/(f.depth-1||1),Um(l,function(_){m=(_.getLayout().x+h)*p,g=y==="LR"?(_.depth-1)*v:a-(_.depth-1)*v,_.setLayout({x:g,y:m},!0)})):(y==="TB"||y==="BT")&&(v=a/(c.getLayout().x+d+h),p=i/(f.depth-1||1),Um(l,function(_){g=(_.getLayout().x+h)*v,m=y==="TB"?(_.depth-1)*p:i-(_.depth-1)*p,_.setLayout({x:g,y:m},!0)}))}}}function PAe(e){e.eachSeriesByType("tree",function(t){var r=t.getData(),n=r.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(a.dataIndex,"style");Ie(s,o)})})}function LAe(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var a=t.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var i=a.coordinateSystem,o=zk(i,t,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function IAe(e){e.registerChartView(pAe),e.registerSeriesModel(CAe),e.registerLayout(MAe),e.registerVisual(PAe),LAe(e)}var kz=["treemapZoomToNode","treemapRender","treemapMove"];function RAe(e){for(var t=0;t1;)i=i.parentNode;var o=GP(e.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var OAe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return t.prototype.getInitialData=function(r,n){var a={name:r.name,children:r.data};Oq(a);var i=r.levels||[],o=this.designatedVisualItemStyle={},s=new $r({itemStyle:o},this,n);i=r.levels=kAe(i,n);var l=Fe(i||[],function(f){return new $r(f,s,n)},this),u=Uk.createTree(a,this,c);function c(f){f.wrapMethod("getItemModel",function(d,h){var v=u.getNodeByDataIndex(h),p=v?l[v.depth]:null;return d.parentModel=p||s,d})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r);return La("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=iT(a,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},Ie(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=_t(),this._idIndexMapCount=0);var a=n.get(r);return a==null&&n.set(r,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){Rq(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",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:"#fff",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}(Ir);function Oq(e){var t=0;W(e.children,function(n){Oq(n);var a=n.value;Ne(a)&&(a=a[0]),t+=a});var r=e.value;Ne(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Ne(e.value)?e.value[0]=r:e.value=r}function kAe(e,t){var r=tn(t.get("color")),n=tn(t.get(["aria","decal","decals"]));if(r){e=e||[];var a,i;W(e,function(s){var l=new $r(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")&&(i=!0)});var o=e[0]||(e[0]={});return a||(o.color=r.slice()),!i&&n&&(o.decal=n.slice()),e}}const NAe=OAe;var BAe=8,Nz=8,OE=5,FAe=function(){function e(t){this.group=new Ot,t.add(this.group)}return e.prototype.render=function(t,r,n,a){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,u),this._renderContent(t,f,s,l,u,c,a),GA(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var a=t;a;a=a.parentNode){var i=ha(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+BAe*2,r.emptyItemWidth);r.totalWidth+=s+Nz,r.renderList.push({node:a,text:i,width:s})}},e.prototype._renderContent=function(t,r,n,a,i,o,s){for(var l=0,u=r.emptyItemWidth,c=t.get(["breadcrumb","height"]),f=$ye(r.pos,r.box),d=r.totalWidth,h=r.renderList,v=a.getModel("itemStyle").getItemStyle(),p=h.length-1;p>=0;p--){var g=h[p],m=g.node,y=g.width,_=g.text;d>f.width&&(d-=y-u,y=u,_=null);var w=new Ri({shape:{points:VAe(l,0,y,c,p===h.length-1,p===0)},style:yt(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new pr({style:Xr(i,{text:_})}),textConfig:{position:"inside"},z2:Hg*1e4,onclick:zt(s,m)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=Xr(o,{text:_}),w.ensureState("emphasis").style=v,Gn(w,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(w),zAe(w,t,m),l+=y+Nz}},e.prototype.remove=function(){this.group.removeAll()},e}();function VAe(e,t,r,n,a,i){var o=[[a?e:e-OE,t],[e+r,t],[e+r,t+n],[a?e:e-OE,t+n]];return!i&&o.splice(2,0,[e+r+OE,t+n/2]),!a&&o.push([e,t+n/2]),o}function zAe(e,t,r){Ht(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&iT(r,t)}}const HAe=FAe;var GAe=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:a,easing:i}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,r=this._storage.length,n=function(){r--,r<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},a=0,i=this._storage.length;aFz||Math.abs(r.dy)>Fz)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+r.dx,y:a.y+r.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(r){var n=r.originX,a=r.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new Xt(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;n-=l.x,a-=l.y;var u=lo();Zs(u,u,[-n,-a]),_A(u,u,[r.scale,r.scale]),Zs(u,u,[n,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(r){var n=this;r.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var o=n.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&Sx(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,a){var i=this;a||(a=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new HAe(this.group))).render(r,n,a.node,function(o){i._state!=="animating"&&($k(r.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=$m(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype.findTarget=function(r,n){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),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:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},t.type="treemap",t}(xr);function $m(){return{nodeGroup:[],background:[],content:[]}}function KAe(e,t,r,n,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),f=e.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,v=c.height,p=c.borderWidth,g=c.invisible,m=o.getRawIndex(),y=s&&s.getRawIndex(),_=o.viewChildren,w=c.upperHeight,x=_&&_.length,S=d.getModel("itemStyle"),T=d.getModel(["emphasis","itemStyle"]),A=d.getModel(["blur","itemStyle"]),C=d.getModel(["select","itemStyle"]),M=S.get("borderRadius")||0,E=Q("nodeGroup",hL);if(!E)return;if(l.add(E),E.x=c.x||0,E.y=c.y||0,E.markRedraw(),Ux(E).nodeWidth=h,Ux(E).nodeHeight=v,c.isAboveViewRoot)return E;var D=Q("background",Bz,u,WAe);D&&k(E,D,x&&c.upperLabelHeight);var P=d.getModel("emphasis"),L=P.get("focus"),I=P.get("blurScope"),O=P.get("disabled"),R=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(x)V0(E)&&Jd(E,!1),D&&(Jd(D,!O),f.setItemGraphicEl(o.dataIndex,D),OP(D,R,I));else{var B=Q("content",Bz,u,YAe);B&&z(E,B),D.disableMorphing=!0,D&&V0(D)&&Jd(D,!1),Jd(E,!O),f.setItemGraphicEl(o.dataIndex,E),OP(E,R,I)}return E;function k(K,Z,ne){var re=Ht(Z);if(re.dataIndex=o.dataIndex,re.seriesIndex=e.seriesIndex,Z.setShape({x:0,y:0,width:h,height:v,r:M}),g)$(Z);else{Z.invisible=!1;var ie=o.getVisual("style"),Y=ie.stroke,q=Hz(S);q.fill=Y;var oe=kd(T);oe.fill=T.get("borderColor");var ve=kd(A);ve.fill=A.get("borderColor");var _e=kd(C);if(_e.fill=C.get("borderColor"),ne){var ge=h-2*p;j(Z,Y,ie.opacity,{x:p,y:0,width:ge,height:w})}else Z.removeTextContent();Z.setStyle(q),Z.ensureState("emphasis").style=oe,Z.ensureState("blur").style=ve,Z.ensureState("select").style=_e,zh(Z)}K.add(Z)}function z(K,Z){var ne=Ht(Z);ne.dataIndex=o.dataIndex,ne.seriesIndex=e.seriesIndex;var re=Math.max(h-2*p,0),ie=Math.max(v-2*p,0);if(Z.culling=!0,Z.setShape({x:p,y:p,width:re,height:ie,r:M}),g)$(Z);else{Z.invisible=!1;var Y=o.getVisual("style"),q=Y.fill,oe=Hz(S);oe.fill=q,oe.decal=Y.decal;var ve=kd(T),_e=kd(A),ge=kd(C);j(Z,q,Y.opacity,null),Z.setStyle(oe),Z.ensureState("emphasis").style=ve,Z.ensureState("blur").style=_e,Z.ensureState("select").style=ge,zh(Z)}K.add(Z)}function $(K){!K.invisible&&i.push(K)}function j(K,Z,ne,re){var ie=d.getModel(re?zz:Vz),Y=ha(d.get("name"),null),q=ie.getShallow("show");ri(K,Pa(d,re?zz:Vz),{defaultText:q?Y:null,inheritColor:Z,defaultOpacity:ne,labelFetcher:e,labelDataIndex:o.dataIndex});var oe=K.getTextContent();if(oe){var ve=oe.style,_e=mA(ve.padding||0);re&&(K.setTextConfig({layoutRect:re}),oe.disableLabelLayout=!0),oe.beforeUpdate=function(){var Le=Math.max((re?re.width:K.shape.width)-_e[1]-_e[3],0),Se=Math.max((re?re.height:K.shape.height)-_e[0]-_e[2],0);(ve.width!==Le||ve.height!==Se)&&oe.setStyle({width:Le,height:Se})},ve.truncateMinChar=2,ve.lineOverflow="truncate",X(ve,re,c);var ge=oe.getState("emphasis");X(ge?ge.style:null,re,c)}}function X(K,Z,ne){var re=K?K.text:null;if(!Z&&ne.isLeafRoot&&re!=null){var ie=e.get("drillDownIcon",!0);K.text=ie?ie+" "+re:re}}function Q(K,Z,ne,re){var ie=y!=null&&r[K][y],Y=a[K];return ie?(r[K][y]=null,se(Y,ie)):g||(ie=new Z,ie instanceof ss&&(ie.z2=XAe(ne,re)),ee(Y,ie)),t[K][m]=ie}function se(K,Z){var ne=K[m]={};Z instanceof hL?(ne.oldX=Z.x,ne.oldY=Z.y):ne.oldShape=Ie({},Z.shape)}function ee(K,Z){var ne=K[m]={},re=o.parentNode,ie=Z instanceof Ot;if(re&&(!n||n.direction==="drillDown")){var Y=0,q=0,oe=a.background[re.getRawIndex()];!n&&oe&&oe.oldShape&&(Y=oe.oldShape.width,q=oe.oldShape.height),ie?(ne.oldX=0,ne.oldY=q):ne.oldShape={x:Y,y:q,width:0,height:0}}ne.fadein=!ie}}function XAe(e,t){return e*$Ae+t}const ZAe=jAe;var t_=W,qAe=Mt,$x=-1,Wk=function(){function e(t){var r=t.mappingMethod,n=t.type,a=this.option=Pt(t);this.type=n,this.mappingMethod=r,this._normalizeData=eTe[r];var i=e.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[r],r==="piecewise"?(kE(a),QAe(a)):r==="category"?a.categories?JAe(a):kE(a,!0):(ci(r!=="linear"||a.dataExtent),kE(a))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return ot(this._normalizeData,this)},e.listVisualTypes=function(){return vr(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){Mt(t)?W(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var a,i=Ne(t)?[]:Mt(t)?{}:(a=!0,null);return e.eachVisual(t,function(o,s){var l=r.call(n,o,s);a?i=l:i[s]=l}),i},e.retrieveVisuals=function(t){var r={},n;return t&&t_(e.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(Ne(t))t=t.slice();else if(qAe(t)){var r=[];t_(t,function(n,a){r.push(a)}),t=r}else return[];return t.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,n){for(var a,i=1/0,o=0,s=r.length;o=0;i--)n[i]==null&&(delete r[t[i]],t.pop())}function kE(e,t){var r=e.visual,n=[];Mt(r)?t_(r,function(i){n.push(i)}):r!=null&&n.push(r);var a={color:1,symbol:1};!t&&n.length===1&&!a.hasOwnProperty(e.type)&&(n[1]=n[0]),kq(e,n)}function Gb(e){return{applyVisual:function(t,r,n){var a=this.mapValueToVisual(t);n("color",e(r("color"),a))},_normalizedToVisual:vL([0,1])}}function Gz(e){var t=this.option.visual;return t[Math.round(Vr(e,[0,1],[0,t.length-1],!0))]||{}}function Wm(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function xy(e){var t=this.option.visual;return t[this.option.loop&&e!==$x?e%t.length:e]}function Nd(){return this.option.visual[0]}function vL(e){return{linear:function(t){return Vr(t,e,this.option.visual,!0)},category:xy,piecewise:function(t,r){var n=pL.call(this,r);return n==null&&(n=Vr(t,e,this.option.visual,!0)),n},fixed:Nd}}function pL(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=Wk.findPieceIndex(e,r),a=r[n];if(a&&a.visual)return a.visual[this.type]}}function kq(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Fe(t,function(r){var n=Za(r);return n||[0,0,0,1]})),t}var eTe={linear:function(e){return Vr(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=Wk.findPieceIndex(e,t,!0);if(r!=null)return Vr(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??$x},fixed:Wn};function Ub(e,t,r){return e?t<=r:t=r.length||p===r[p.depth]){var m=oTe(a,l,p,g,v,n);Bq(p,m,r,n)}})}}}function nTe(e,t,r){var n=Ie({},t),a=r.designatedVisualItemStyle;return W(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var o=e.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function Uz(e){var t=NE(e,"color");if(t){var r=NE(e,"colorAlpha"),n=NE(e,"colorSaturation");return n&&(t=Pp(t,null,null,n)),r&&(t=I0(t,r)),t}}function aTe(e,t){return t!=null?Pp(t,null,null,e):null}function NE(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function iTe(e,t,r,n,a,i){if(!(!i||!i.length)){var o=BE(t,"color")||a.color!=null&&a.color!=="none"&&(BE(t,"colorAlpha")||BE(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new qa(f);return Nq(d).drColorMappingBy=c,d}}}function BE(e,t){var r=e.get(t);return Ne(r)&&r.length?{name:t,range:r}:null}function oTe(e,t,r,n,a,i){var o=Ie({},t);if(a){var s=a.type,l=s==="color"&&Nq(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var r_=Math.max,Wx=Math.min,$z=Aa,Yk=W,Fq=["itemStyle","borderWidth"],sTe=["itemStyle","gapWidth"],lTe=["upperLabel","show"],uTe=["upperLabel","height"];const cTe={seriesType:"treemap",reset:function(e,t,r,n){var a=r.getWidth(),i=r.getHeight(),o=e.option,s=kn(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=Je($z(s.width,l[0]),a),c=Je($z(s.height,l[1]),i),f=n&&n.type,d=["treemapZoomToNode","treemapRootToNode"],h=e_(n,d,e),v=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,p=e.getViewRoot(),g=Iq(p);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?gTe(e,h,p,u,c):v?[v.width,v.height]:[u,c],y=o.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var _={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var w={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};p.setLayout(w),Vq(p,_,!1,0),w=p.getLayout(),Yk(g,function(S,T){var A=(g[T+1]||p).getValue();S.setLayout(Ie({dataExtent:[A,A],borderWidth:0,upperHeight:0},w))})}var x=e.getData().tree.root;x.setLayout(mTe(s,v,h),!0),e.setLayoutInfo(s),zq(x,new Xt(-s.x,-s.y,a,i),g,p,0)}};function Vq(e,t,r,n){var a,i;if(!e.isRemoved()){var o=e.getLayout();a=o.width,i=o.height;var s=e.getModel(),l=s.get(Fq),u=s.get(sTe)/2,c=Hq(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),a=r_(a-2*d,0),i=r_(i-d-h,0);var v=a*i,p=fTe(e,s,v,t,r,n);if(p.length){var g={x:d,y:h,width:a,height:i},m=Wx(a,i),y=1/0,_=[];_.area=0;for(var w=0,x=p.length;w=0;l--){var u=a[n==="asc"?o-l-1:l].getValue();u/r*ts[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function pTe(e,t,r){for(var n=0,a=1/0,i=0,o=void 0,s=e.length;in&&(n=o));var l=e.area*e.area,u=t*t*r;return l?r_(u*n/l,l/(u*a)):1/0}function Wz(e,t,r,n,a){var i=t===r.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=r[s[i]],c=t?e.area/t:0;(a||c>r[l[o]])&&(c=r[l[o]]);for(var f=0,d=e.length;fTP&&(u=TP),i=s}un&&(n=t);var i=n%2?n+2:n+3;a=[];for(var o=0;o0&&(x[0]=-x[0],x[1]=-x[1]);var T=w[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var A=-Math.atan2(w[1],w[0]);f[0].8?"left":d[0]<-.8?"right":"center",p=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":i.x=-d[0]*m+c[0],i.y=-d[1]*y+c[1],v=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":i.x=m*T+c[0],i.y=c[1]+C,v=w[0]<0?"right":"left",i.originX=-m*T,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=S[0],i.y=S[1]+C,v="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-m*T+f[0],i.y=f[1]+C,v=w[0]>=0?"right":"left",i.originX=m*T,i.originY=-C;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||v})}},t}(Ot);const Zk=NTe;var BTe=function(){function e(t){this.group=new Ot,this._LineCtor=t||Zk}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=t,i||a.removeAll();var o=qz(t);t.diff(i).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(i,t,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=qz(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!FTe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0}function qz(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:Pa(t)}}function Qz(e){return isNaN(e[0])||isNaN(e[1])}function GE(e){return e&&!Qz(e[0])&&!Qz(e[1])}const qk=BTe;var UE=[],$E=[],WE=[],Rv=Fa,YE=of,Jz=Math.abs;function e6(e,t,r){for(var n=e[0],a=e[1],i=e[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){UE[0]=Rv(n[0],a[0],i[0],c),UE[1]=Rv(n[1],a[1],i[1],c);var f=Jz(YE(UE,t)-l);f=0?s=s+u:s=s-u:v>=0?s=s-u:s=s+u}return s}function jE(e,t){var r=[],n=P0,a=[[],[],[]],i=[[],[]],o=[];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(ii(a[0],d[0]),ii(a[1],d[2]),ii(a[2],d[1]),c&&c!=="none"){var h=Ty(s.node1),v=e6(a,d[0],h*t);n(a[0][0],a[1][0],a[2][0],v,r),a[0][0]=r[3],a[1][0]=r[4],n(a[0][1],a[1][1],a[2][1],v,r),a[0][1]=r[3],a[1][1]=r[4]}if(f&&f!=="none"){var h=Ty(s.node2),v=e6(a,d[1],h*t);n(a[0][0],a[1][0],a[2][0],v,r),a[1][0]=r[1],a[2][0]=r[2],n(a[0][1],a[1][1],a[2][1],v,r),a[1][1]=r[1],a[2][1]=r[2]}ii(u[0],a[0]),ii(u[1],a[2]),ii(u[2],a[1])}else{if(ii(i[0],d[0]),ii(i[1],d[1]),$c(o,i[1],i[0]),tv(o,o),c&&c!=="none"){var h=Ty(s.node1);ox(i[0],i[0],o,h*t)}if(f&&f!=="none"){var h=Ty(s.node2);ox(i[1],i[1],o,-h*t)}ii(u[0],i[0]),ii(u[1],i[1])}})}function t6(e){return e.type==="view"}var VTe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){var a=new g1,i=new qk,o=this.group;this._controller=new b1(n.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(r,n,a){var i=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(t6(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):Lr(u,c,r)}jE(r.getGraph(),Ay(r));var f=r.getData();s.updateData(f);var d=r.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(r,n,a),clearTimeout(this._layoutTimeout);var h=r.forceLayout,v=r.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,v);var p=r.get("layout");f.graph.eachNode(function(_){var w=_.dataIndex,x=_.getGraphicEl(),S=_.getModel();if(x){x.off("drag").off("dragend");var T=S.get("draggable");T&&x.on("drag",function(C){switch(p){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,v),h.setFixed(w),f.setItemLayout(w,[x.x,x.y]);break;case"circular":f.setItemLayout(w,[x.x,x.y]),_.setLayout({fixed:!0},!0),Xk(r,"symbolSize",_,[C.offsetX,C.offsetY]),i.updateLayout(r);break;case"none":default:f.setItemLayout(w,[x.x,x.y]),Kk(r.getGraph(),r),i.updateLayout(r);break}}).on("dragend",function(){h&&h.setUnfixed(w)}),x.setDraggable(T,!!S.get("cursor"));var A=S.get(["emphasis","focus"]);A==="adjacency"&&(Ht(x).focus=_.getAdjacentDataIndices())}}),f.graph.eachEdge(function(_){var w=_.getGraphicEl(),x=_.getModel().get(["emphasis","focus"]);w&&x==="adjacency"&&(Ht(w).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),m=f.getLayout("cx"),y=f.getLayout("cy");f.graph.eachNode(function(_){Wq(_,g,m,y)}),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(r,n){var a=this;(function i(){r.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(n?a._layoutTimeout=setTimeout(i,16):i())})})()},t.prototype._updateController=function(r,n,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!nT(u,a,r)}),!t6(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Bk(s,u.dx,u.dy),a.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Fk(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),jE(r.getGraph(),Ay(r)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),a=Ay(r);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(r){jE(r.getGraph(),Ay(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(xr);const zTe=VTe;function Ov(e){return"_EC_"+e}var HTe=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,r){t=t==null?""+r:""+t;var n=this._nodesMap;if(!n[Ov(t)]){var a=new Bd(t,r);return a.hostGraph=this,this.nodes.push(a),n[Ov(t)]=a,a}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[Ov(t)]},e.prototype.addEdge=function(t,r,n){var a=this._nodesMap,i=this._edgesMap;if(Mr(t)&&(t=this.nodes[t]),Mr(r)&&(r=this.nodes[r]),t instanceof Bd||(t=a[Ov(t)]),r instanceof Bd||(r=a[Ov(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new jq(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),i[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof Bd&&(t=t.id),r instanceof Bd&&(r=r.id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,a=n.length,i=0;i=0&&t.call(r,n[i],i)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,a=n.length,i=0;i=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(r,n[i],i)},e.prototype.breadthFirstTraverse=function(t,r,n,a){if(r instanceof Bd||(r=this._nodesMap[Ov(r)]),!!r){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},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)}}}Kn(Bd,Kq("hostGraph","data"));Kn(jq,Kq("hostGraph","edgeData"));const Xq=HTe;function Zq(e,t,r,n,a){for(var i=new Xq(n),o=0;o "+d)),u++)}var h=r.get("coordinateSystem"),v;if(h==="cartesian2d"||h==="polar")v=eu(e,r);else{var p=Zg.get(h),g=p?p.dimensions||[]:[];tr(g,"value")<0&&g.concat(["value"]);var m=tm(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;v=new Dn(m,r),v.initData(e)}var y=new Dn(["value"],r);return y.initData(l,s),a&&a(v,y),Hk({mainData:v,struct:i,structAttr:"graph",datas:{node:v,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var GTe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new _1(a,a),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Bh(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var a=r.edges||r.links||[],i=r.data||r.nodes||[],o=this;if(i&&a){ATe(this);var s=Zq(i,a,this,!0,l);return W(s.edges,function(u){TTe(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(v){var p=o._categoriesModels,g=v.getShallow("category"),m=p[g];return m&&(m.parentModel=v.parentModel,v.parentModel=m),v});var f=$r.prototype.getModel;function d(v,p){var g=f.call(this,v,p);return g.resolveParentPath=h,g}c.wrapMethod("getItemModel",function(v){return v.resolveParentPath=h,v.getModel=d,v});function h(v){if(v&&(v[0]==="label"||v[1]==="label")){var p=v.slice();return v[0]==="label"?p[0]="edgeLabel":v[1]==="label"&&(p[1]="edgeLabel"),p}return v}}},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(r,n,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(r,a),s=i.graph.getEdgeByIndex(r),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),La("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=fX({series:this,dataIndex:r,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var r=Fe(this.option.categories||[],function(a){return a.value!=null?a:Ie({value:0},a)}),n=new Dn(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},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:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Ir);const UTe=GTe;var $Te={type:"graphRoam",event:"graphRoam",update:"none"};function WTe(e){e.registerChartView(zTe),e.registerSeriesModel(UTe),e.registerProcessor(_Te),e.registerVisual(bTe),e.registerVisual(wTe),e.registerLayout(CTe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,MTe),e.registerLayout(PTe),e.registerCoordinateSystem("graphView",{dimensions:w1.dimensions,create:ITe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Wn),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Wn),e.registerAction($Te,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,o=zk(i,t,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var YTe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),jTe=function(e){De(t,e);function t(r){var n=e.call(this,r)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new YTe},t.prototype.buildPath=function(r,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-a(l)*s*(s>=o/3?1:2),c=n.y-i(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),r.lineTo(n.x+a(l)*s,n.y+i(l)*s),r.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),r.lineTo(n.x-a(l)*s,n.y-i(l)*s),r.lineTo(u,c)},t}(cr);const KTe=jTe;function XTe(e,t){var r=e.get("center"),n=t.getWidth(),a=t.getHeight(),i=Math.min(n,a),o=Je(r[0],t.getWidth()),s=Je(r[1],t.getHeight()),l=Je(e.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Wb(e,t){var r=e==null?"":e+"";return t&&(rt(t)?r=t.replace("{value}",r):Tt(t)&&(r=t(e))),r}var ZTe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){this.group.removeAll();var i=r.get(["axisLine","lineStyle","color"]),o=XTe(r,a);this._renderMain(r,n,a,i,o),this._data=r.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(r,n,a,i,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,f=r.getModel("axisLine"),d=f.get("roundCap"),h=d?zx:Ii,v=f.get("show"),p=f.getModel("lineStyle"),g=p.get("width"),m=[u,c];Tj(m,!l),u=m[0],c=m[1];for(var y=c-u,_=u,w=[],x=0;v&&x=C&&(M===0?0:i[M-1][0])Math.PI/2&&(Q+=Math.PI)):X==="tangential"?Q=-A-Math.PI/2:Mr(X)&&(Q=X*Math.PI/180),Q===0?f.add(new pr({style:Xr(_,{text:k,x:$,y:j,verticalAlign:I<-.8?"top":I>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:z}),silent:!0})):f.add(new pr({style:Xr(_,{text:k,x:$,y:j,verticalAlign:"middle",align:"center"},{inheritColor:z}),silent:!0,originX:$,originY:j,rotation:Q}))}if(y.get("show")&&O!==w){var R=y.get("distance");R=R?R+c:c;for(var se=0;se<=x;se++){L=Math.cos(A),I=Math.sin(A);var ee=new Ta({shape:{x1:L*(v-R)+d,y1:I*(v-R)+h,x2:L*(v-T-R)+d,y2:I*(v-T-R)+h},silent:!0,style:D});D.stroke==="auto"&&ee.setStyle({stroke:i((O+se/x)/w)}),f.add(ee),A+=M}A-=M}else A+=C}},t.prototype._renderPointer=function(r,n,a,i,o,s,l,u,c){var f=this.group,d=this._data,h=this._progressEls,v=[],p=r.get(["pointer","show"]),g=r.getModel("progress"),m=g.get("show"),y=r.getData(),_=y.mapDimension("value"),w=+r.get("min"),x=+r.get("max"),S=[w,x],T=[s,l];function A(M,E){var D=y.getItemModel(M),P=D.getModel("pointer"),L=Je(P.get("width"),o.r),I=Je(P.get("length"),o.r),O=r.get(["pointer","icon"]),R=P.get("offsetCenter"),B=Je(R[0],o.r),k=Je(R[1],o.r),z=P.get("keepAspect"),$;return O?$=jn(O,B-L/2,k-I,L,I,null,z):$=new KTe({shape:{angle:-Math.PI/2,width:L,r:I,x:B,y:k}}),$.rotation=-(E+Math.PI/2),$.x=o.cx,$.y=o.cy,$}function C(M,E){var D=g.get("roundCap"),P=D?zx:Ii,L=g.get("overlap"),I=L?g.get("width"):c/y.count(),O=L?o.r-I:o.r-(M+1)*I,R=L?o.r:o.r-M*I,B=new P({shape:{startAngle:s,endAngle:E,cx:o.cx,cy:o.cy,clockwise:u,r0:O,r:R}});return L&&(B.z2=x-y.get(_,M)%x),B}(m||p)&&(y.diff(d).add(function(M){var E=y.get(_,M);if(p){var D=A(M,s);_n(D,{rotation:-((isNaN(+E)?T[0]:Vr(E,S,T,!0))+Math.PI/2)},r),f.add(D),y.setItemGraphicEl(M,D)}if(m){var P=C(M,s),L=g.get("clip");_n(P,{shape:{endAngle:Vr(E,S,T,L)}},r),f.add(P),LP(r.seriesIndex,y.dataType,M,P),v[M]=P}}).update(function(M,E){var D=y.get(_,M);if(p){var P=d.getItemGraphicEl(E),L=P?P.rotation:s,I=A(M,L);I.rotation=L,Lr(I,{rotation:-((isNaN(+D)?T[0]:Vr(D,S,T,!0))+Math.PI/2)},r),f.add(I),y.setItemGraphicEl(M,I)}if(m){var O=h[E],R=O?O.shape.endAngle:s,B=C(M,R),k=g.get("clip");Lr(B,{shape:{endAngle:Vr(D,S,T,k)}},r),f.add(B),LP(r.seriesIndex,y.dataType,M,B),v[M]=B}}).execute(),y.each(function(M){var E=y.getItemModel(M),D=E.getModel("emphasis"),P=D.get("focus"),L=D.get("blurScope"),I=D.get("disabled");if(p){var O=y.getItemGraphicEl(M),R=y.getItemVisual(M,"style"),B=R.fill;if(O instanceof Oa){var k=O.style;O.useStyle(Ie({image:k.image,x:k.x,y:k.y,width:k.width,height:k.height},R))}else O.useStyle(R),O.type!=="pointer"&&O.setColor(B);O.setStyle(E.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",i(Vr(y.get(_,M),S,[0,1],!0))),O.z2EmphasisLift=0,ti(O,E),Gn(O,P,L,I)}if(m){var z=v[M];z.useStyle(y.getItemVisual(M,"style")),z.setStyle(E.getModel(["progress","itemStyle"]).getItemStyle()),z.z2EmphasisLift=0,ti(z,E),Gn(z,P,L,I)}}),this._progressEls=v)},t.prototype._renderAnchor=function(r,n){var a=r.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=jn(s,n.cx-o/2+Je(l[0],n.r),n.cy-o/2+Je(l[1],n.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(r,n,a,i,o){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),f=+r.get("max"),d=new Ot,h=[],v=[],p=r.isAnimationEnabled(),g=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){h[m]=new pr({silent:!0}),v[m]=new pr({silent:!0})}).update(function(m,y){h[m]=s._titleEls[y],v[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),_=l.get(u,m),w=new Ot,x=i(Vr(_,[c,f],[0,1],!0)),S=y.getModel("title");if(S.get("show")){var T=S.get("offsetCenter"),A=o.cx+Je(T[0],o.r),C=o.cy+Je(T[1],o.r),M=h[m];M.attr({z2:g?0:2,style:Xr(S,{x:A,y:C,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:x})}),w.add(M)}var E=y.getModel("detail");if(E.get("show")){var D=E.get("offsetCenter"),P=o.cx+Je(D[0],o.r),L=o.cy+Je(D[1],o.r),I=Je(E.get("width"),o.r),O=Je(E.get("height"),o.r),R=r.get(["progress","show"])?l.getItemVisual(m,"style").fill:x,M=v[m],B=E.get("formatter");M.attr({z2:g?0:2,style:Xr(E,{x:P,y:L,text:Wb(_,B),width:isNaN(I)?null:I,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:R})}),gK(M,{normal:E},_,function(z){return Wb(z,B)}),p&&mK(M,m,l,r,{getFormattedLabel:function(z,$,j,X,Q,se){return Wb(se?se.interpolatedValue:_,B)}}),w.add(M)}d.add(w)}),this.group.add(d),this._titleEls=h,this._detailEls=v},t.type="gauge",t}(xr);const qTe=ZTe;var QTe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return t.prototype.getInitialData=function(r,n){return nm(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,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",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:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Ir);const JTe=QTe;function eCe(e){e.registerChartView(qTe),e.registerSeriesModel(JTe)}var tCe=["itemStyle","opacity"],rCe=function(e){De(t,e);function t(r,n){var a=e.call(this)||this,i=a,o=new Fi,s=new pr;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(r,n,!0),a}return t.prototype.updateData=function(r,n,a){var i=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(tCe);c=c??1,a||Js(i),i.useStyle(r.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,_n(i,{style:{opacity:c}},o,n)):Lr(i,{style:{opacity:c},shape:{points:l.points}},o,n),ti(i,s),this._updateLabel(r,n),Gn(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),c=u.label,f=r.getItemVisual(n,"style"),d=f.fill;ri(o,Pa(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:r.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var h=c.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new qt(h[0][0],h[0][1]):null},Lr(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),Ek(a,Mk(l),{stroke:d})},t}(Ri),nCe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new rCe(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);z0(u,r,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(xr);const aCe=nCe;var iCe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new _1(ot(this.getData,this),ot(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return nm(this,{coordDimensions:["value"],encodeDefaulter:zt(qO,this)})},t.prototype._defaultLabelLine=function(r){Bh(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),a=e.prototype.getDataParams.call(this,r),i=n.mapDimension("value"),o=n.getSum(i);return a.percent=o?+(n.get(i,r)/o*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,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:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Ir);const oCe=iCe;function sCe(e,t){return kn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function lCe(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),a=[],i=t==="ascending",o=0,s=e.count();oECe)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||!XE(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function XE(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}const PCe=MCe;var LCe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&st(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var a=r.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(r){W(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],a=Yr(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);W(a,function(i){r.push("dim"+i.get("dim")),n.push(i.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}(sr);const ICe=LCe;var RCe=function(e){De(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(gi);const OCe=RCe;function sv(e,t,r,n,a,i){e=e||0;var o=r[1]-r[0];if(a!=null&&(a=kv(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=kv(s,[0,o]),a=i=kv(s,[a,i]),n=0}t[0]=kv(t[0],r),t[1]=kv(t[1],r);var l=ZE(t,n);t[n]+=e;var u=a||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=kv(t[n],c);var f;return f=ZE(t,n),a!=null&&(f.sign!==l.sign||f.spani&&(t[1-n]=t[n]+f.sign*i),t}function ZE(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function kv(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var qE=W,Qq=Math.min,Jq=Math.max,a6=Math.floor,kCe=Math.ceil,i6=yn,NCe=Math.PI,BCe=function(){function e(t,r,n){this.type="parallel",this._axesMap=_t(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var a=t.dimensions,i=t.parallelAxisIndex;qE(a,function(o,s){var l=i[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new OCe(o,h1(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,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,a=r.layoutBase,i=r.pixelDimIndex,o=t[1-i],s=t[i];return o>=n&&o<=n+r.axisLength&&s>=a&&s<=a+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(t.contains(n,r)){var a=n.getData();qE(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Gh(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=kn(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],a=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=r[a[o]],l=[0,s],u=this.dimensions.length,c=Yb(t.get("axisExpandWidth"),l),f=Yb(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,h=t.get("axisExpandWindow"),v;if(h)v=Yb(h[1]-h[0],l),h[1]=h[0]+v;else{v=Yb(c*(f-1),l);var p=t.get("axisExpandCenter")||a6(u/2);h=[c*p-v/2],h[1]=h[0]+v}var g=(s-v)/(u-f);g<3&&(g=0);var m=[a6(i6(h[0]/c,1))+1,kCe(i6(h[1]/c,1))-1],y=g/c*h[0];return{layout:i,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[a[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:y}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;r.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),qE(n,function(o,s){var l=(a.axisExpandable?VCe:FCe)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:NCe/2,vertical:0},f=[u[i].x+t.x,u[i].y+t.y],d=c[i],h=lo();Of(h,h,d),Zs(h,h,f),this._axesLayout[o]={position:f,rotation:d,transform:h,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,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,a){n==null&&(n=0),a==null&&(a=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];W(o,function(g){s.push(t.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),c=n;ci*(1-f[0])?(u="jump",l=s-i*(1-f[2])):(l=s-i*f[1])>=0&&(l=s-i*(1-f[1]))<=0&&(l=0),l*=r.axisExpandWidth/c,l?sv(l,a,o,"all"):u="none";else{var h=a[1]-a[0],v=o[1]*s/h;a=[Jq(0,v-h/2)],a[1]=Qq(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},e}();function Yb(e,t){return Qq(Jq(e,t[0]),t[1])}function FCe(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function VCe(e,t){var r=t.layoutLength,n=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,c;return e=0;a--)wo(n[a])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=r&&r<=a[1])return"active"}else for(var i=0,o=n.length;iYCe}function oQ(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function sQ(e,t,r,n){var a=new Ot;return a.add(new br({name:"main",style:tN(r),silent:!0,draggable:!0,cursor:"move",drift:zt(u6,e,t,a,["n","s","w","e"]),ondragend:zt($h,t,{isEnd:!0})})),W(n,function(i){a.add(new br({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:zt(u6,e,t,a,i),ondragend:zt($h,t,{isEnd:!0})}))}),a}function lQ(e,t,r,n){var a=n.brushStyle.lineWidth||0,i=ng(a,jCe),o=r[0][0],s=r[1][0],l=o-a/2,u=s-a/2,c=r[0][1],f=r[1][1],d=c-i+a/2,h=f-i+a/2,v=c-o,p=f-s,g=v+a,m=p+a;su(e,t,"main",o,s,v,p),n.transformable&&(su(e,t,"w",l,u,i,m),su(e,t,"e",d,u,i,m),su(e,t,"n",l,u,g,i),su(e,t,"s",l,h,g,i),su(e,t,"nw",l,u,i,i),su(e,t,"ne",d,u,i,i),su(e,t,"sw",l,h,i,i),su(e,t,"se",d,h,i,i))}function bL(e,t){var r=t.__brushOption,n=r.transformable,a=t.childAt(0);a.useStyle(tN(r)),a.attr({silent:!n,cursor:n?"move":"default"}),W([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?wL(e,i[0]):eEe(e,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?XCe[s]+"-resize":null})})}function su(e,t,r,n,a,i,o){var s=t.childOfName(r);s&&s.setShape(rEe(rN(e,t,[[n,a],[n+i,a+o]])))}function tN(e){return yt({strokeNoScale:!0},e.brushStyle)}function uQ(e,t,r,n){var a=[a_(e,r),a_(t,n)],i=[ng(e,r),ng(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function JCe(e){return uf(e.group)}function wL(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=kA(r[t],JCe(e));return n[a]}function eEe(e,t){var r=[wL(e,t[0]),wL(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function u6(e,t,r,n,a,i){var o=r.__brushOption,s=e.toRectRange(o.range),l=cQ(t,a,i);W(n,function(u){var c=KCe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(uQ(s[0][0],s[1][0],s[0][1],s[1][1])),Qk(t,r),$h(t,{isEnd:!1})}function tEe(e,t,r,n){var a=t.__brushOption.range,i=cQ(e,r,n);W(a,function(o){o[0]+=i[0],o[1]+=i[1]}),Qk(e,t),$h(e,{isEnd:!1})}function cQ(e,t,r){var n=e.group,a=n.transformCoordToLocal(t,r),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function rN(e,t,r){var n=iQ(e,t);return n&&n!==Uh?n.clipPath(r,e._transform):Pt(r)}function rEe(e){var t=a_(e[0][0],e[1][0]),r=a_(e[0][1],e[1][1]),n=ng(e[0][0],e[1][0]),a=ng(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:a-r}}function nEe(e,t,r){if(!(!e._brushType||iEe(e,t.offsetX,t.offsetY))){var n=e._zr,a=e._covers,i=eN(e,t,r);if(!e._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var sT={lineX:d6(0),lineY:d6(1),rect:{createCover:function(e,t){function r(n){return n}return sQ({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=oQ(e);return uQ(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){lQ(e,t,r,n)},updateCommon:bL,contain:xL},polygon:{createCover:function(e,t){var r=new Ot;return r.add(new Fi({name:"main",style:tN(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Ri({name:"main",draggable:!0,drift:zt(tEe,e,t),ondragend:zt($h,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:rN(e,t,r)})},updateCommon:bL,contain:xL}};function d6(e){return{createCover:function(t,r){return sQ({toRectRange:function(n){var a=[n,[0,100]];return e&&a.reverse(),a},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=oQ(t),n=a_(r[0][e],r[1][e]),a=ng(r[0][e],r[1][e]);return[n,a]},updateCoverShape:function(t,r,n,a){var i,o=iQ(t,r);if(o!==Uh&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(e);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,i];e&&l.reverse(),lQ(t,r,l,a)},updateCommon:bL,contain:xL}}const nN=qCe;function dQ(e){return e=aN(e),function(t){return HO(t,e)}}function hQ(e,t){return e=aN(e),function(r){var n=t??r,a=n?e.width:e.height,i=n?e.x:e.y;return[i,i+(a||0)]}}function vQ(e,t,r){var n=aN(e);return function(a,i){return n.contain(i[0],i[1])&&!nT(a,t,r)}}function aN(e){return Xt.create(e)}var oEe=["axisLine","axisTickLabel","axisName"],sEe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){e.prototype.init.apply(this,arguments),(this._brushController=new nN(n.getZr())).on("brush",ot(this._onBrush,this))},t.prototype.render=function(r,n,a,i){if(!lEe(r,n,i)){this.axisModel=r,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ot,this.group.add(this._axisGroup),!!r.get("show")){var s=cEe(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,d=l.getAxisLayout(f),h=Ie({strokeContainThreshold:c},d),v=new Wu(r,h);W(oEe,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(h,u,r,s,c,a),l1(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=Xt.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:dQ(f),isTargetByCursor:vQ(f,s,i),getLinearBrushOtherExtent:hQ(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(uEe(a))},t.prototype._onBrush=function(r){var n=r.areas,a=this.axisModel,i=a.axis,o=Fe(n,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(rn);function lEe(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function uEe(e){var t=e.axis;return Fe(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function cEe(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const fEe=sEe;var dEe={type:"axisAreaSelect",event:"axisAreaSelected"};function hEe(e){e.registerAction(dEe,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var vEe={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function pQ(e){e.registerComponentView(PCe),e.registerComponentModel(ICe),e.registerCoordinateSystem("parallel",UCe),e.registerPreprocessor(ACe),e.registerComponentModel(o6),e.registerComponentView(fEe),rg(e,"parallel",o6,vEe),hEe(e)}function pEe(e){Dt(pQ),e.registerChartView(gCe),e.registerSeriesModel(bCe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,xCe)}var gEe=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}(),mEe=function(e){De(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new gEe},t.prototype.buildPath=function(r,n){var a=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+a,n.y2),r.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(r.lineTo(n.x2,n.y2+a),r.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),r.closePath()},t.prototype.highlight=function(){Hu(this)},t.prototype.downplay=function(){Gu(this)},t}(cr),yEe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return t.prototype.render=function(r,n,a){var i=this,o=r.getGraph(),s=this.group,l=r.layoutInfo,u=l.width,c=l.height,f=r.getData(),d=r.getData("edge"),h=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(v){var p=new mEe,g=Ht(p);g.dataIndex=v.dataIndex,g.seriesIndex=r.seriesIndex,g.dataType="edge";var m=v.getModel(),y=m.getModel("lineStyle"),_=y.get("curveness"),w=v.node1.getLayout(),x=v.node1.getModel(),S=x.get("localX"),T=x.get("localY"),A=v.node2.getLayout(),C=v.node2.getModel(),M=C.get("localX"),E=C.get("localY"),D=v.getLayout(),P,L,I,O,R,B,k,z;p.shape.extent=Math.max(1,D.dy),p.shape.orient=h,h==="vertical"?(P=(S!=null?S*u:w.x)+D.sy,L=(T!=null?T*c:w.y)+w.dy,I=(M!=null?M*u:A.x)+D.ty,O=E!=null?E*c:A.y,R=P,B=L*(1-_)+O*_,k=I,z=L*_+O*(1-_)):(P=(S!=null?S*u:w.x)+w.dx,L=(T!=null?T*c:w.y)+D.sy,I=M!=null?M*u:A.x,O=(E!=null?E*c:A.y)+D.ty,R=P*(1-_)+I*_,B=L,k=P*_+I*(1-_),z=O),p.setShape({x1:P,y1:L,x2:I,y2:O,cpx1:R,cpy1:B,cpx2:k,cpy2:z}),p.useStyle(y.getItemStyle()),h6(p.style,h,v);var $=""+m.get("value"),j=Pa(m,"edgeLabel");ri(p,j,{labelFetcher:{getFormattedLabel:function(se,ee,K,Z,ne,re){return r.getFormattedLabel(se,ee,"edge",Z,zs(ne,j.normal&&j.normal.get("formatter"),$),re)}},labelDataIndex:v.dataIndex,defaultText:$}),p.setTextConfig({position:"inside"});var X=m.getModel("emphasis");ti(p,m,"lineStyle",function(se){var ee=se.getItemStyle();return h6(ee,h,v),ee}),s.add(p),d.setItemGraphicEl(v.dataIndex,p);var Q=X.get("focus");Gn(p,Q==="adjacency"?v.getAdjacentDataIndices():Q==="trajectory"?v.getTrajectoryDataIndices():Q,X.get("blurScope"),X.get("disabled"))}),o.eachNode(function(v){var p=v.getLayout(),g=v.getModel(),m=g.get("localX"),y=g.get("localY"),_=g.getModel("emphasis"),w=new br({shape:{x:m!=null?m*u:p.x,y:y!=null?y*c:p.y,width:p.dx,height:p.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});ri(w,Pa(g),{labelFetcher:{getFormattedLabel:function(S,T){return r.getFormattedLabel(S,T,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),w.disableLabelAnimation=!0,w.setStyle("fill",v.getVisual("color")),w.setStyle("decal",v.getVisual("style").decal),ti(w,g),s.add(w),f.setItemGraphicEl(v.dataIndex,w),Ht(w).dataType="node";var x=_.get("focus");Gn(w,x==="adjacency"?v.getAdjacentDataIndices():x==="trajectory"?v.getTrajectoryDataIndices():x,_.get("blurScope"),_.get("disabled"))}),f.eachItemGraphicEl(function(v,p){var g=f.getItemModel(p);g.get("draggable")&&(v.drift=function(m,y){i._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:f.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/c})},v.ondragend=function(){i._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(_Ee(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(xr);function h6(e,t,r){switch(e.fill){case"source":e.fill=r.node1.getVisual("color"),e.decal=r.node1.getVisual("style").decal;break;case"target":e.fill=r.node2.getVisual("color"),e.decal=r.node2.getVisual("style").decal;break;case"gradient":var n=r.node1.getVisual("color"),a=r.node2.getVisual("color");rt(n)&&rt(a)&&(e.fill=new kr(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function _Ee(e,t,r){var n=new br({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return _n(n,{shape:{width:e.width+20}},t,r),n}const bEe=yEe;var wEe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){var a=r.edges||r.links,i=r.data||r.nodes,o=r.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new $r(o[l],this,n));if(i&&a){var u=Zq(i,a,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(h,v){var p=h.parentModel,g=p.getData().getItemLayout(v);if(g){var m=g.depth,y=p.levelModels[m];y&&(h.parentModel=y)}return h}),d.wrapMethod("getItemModel",function(h,v){var p=h.parentModel,g=p.getGraph().getEdgeByIndex(v),m=g.node1.getLayout();if(m){var y=m.depth,_=p.levelModels[y];_&&(h.parentModel=_)}return h})}},t.prototype.setNodePosition=function(r,n){var a=this.option.data||this.option.nodes,i=a[r];i.localX=n[0],i.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(r,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return La("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(r),f=c.getLayout().value,d=this.getDataParams(r,a).data.name;return La("nameValue",{name:d!=null?d+"":null,value:f,noValue:i(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,n){var a=e.prototype.getDataParams.call(this,r,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(r),o=i.getLayout().value;a.value=o}return a},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Ir);const SEe=wEe;function xEe(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),a=r.get("nodeGap"),i=AEe(r,t);r.layoutInfo=i;var o=i.width,s=i.height,l=r.getGraph(),u=l.nodes,c=l.edges;CEe(u);var f=Yr(u,function(p){return p.getLayout().value===0}),d=f.length!==0?0:r.get("layoutIterations"),h=r.get("orient"),v=r.get("nodeAlign");TEe(u,c,n,a,o,s,d,h,v)})}function AEe(e,t){return kn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function TEe(e,t,r,n,a,i,o,s,l){EEe(e,t,r,a,i,s,l),LEe(e,t,i,a,n,o,s),zEe(e,s)}function CEe(e){W(e,function(t){var r=df(t.outEdges,Yx),n=df(t.inEdges,Yx),a=t.getValue()||0,i=Math.max(r,n,a);t.setLayout({value:i},!0)})}function EEe(e,t,r,n,a,i,o){for(var s=[],l=[],u=[],c=[],f=0,d=0;d=0;m&&g.depth>h&&(h=g.depth),p.setLayout({depth:m?g.depth:f},!0),i==="vertical"?p.setLayout({dy:r},!0):p.setLayout({dx:r},!0);for(var y=0;yf-1?h:f-1;o&&o!=="left"&&MEe(e,o,i,T);var A=i==="vertical"?(a-r)/T:(n-r)/T;PEe(e,A,i)}function gQ(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function MEe(e,t,r,n){if(t==="right"){for(var a=[],i=e,o=0;i.length;){for(var s=0;s0;i--)l*=.99,OEe(s,l,o),QE(s,a,r,n,o),VEe(s,l,o),QE(s,a,r,n,o)}function IEe(e,t){var r=[],n=t==="vertical"?"y":"x",a=EP(e,function(i){return i.getLayout()[n]});return a.keys.sort(function(i,o){return i-o}),W(a.keys,function(i){r.push(a.buckets.get(i))}),r}function REe(e,t,r,n,a,i){var o=1/0;W(e,function(s){var l=s.length,u=0;W(s,function(f){u+=f.getLayout().value});var c=i==="vertical"?(n-(l-1)*a)/u:(r-(l-1)*a)/u;c0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[d]+t;var v=a==="vertical"?n:r;if(u=c-t-v,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=f-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[d]+t-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function OEe(e,t,r){W(e.slice().reverse(),function(n){W(n,function(a){if(a.outEdges.length){var i=df(a.outEdges,kEe,r)/df(a.outEdges,Yx);if(isNaN(i)){var o=a.outEdges.length;i=o?df(a.outEdges,NEe,r)/o:0}if(r==="vertical"){var s=a.getLayout().x+(i-wf(a,r))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-wf(a,r))*t;a.setLayout({y:l},!0)}}})})}function kEe(e,t){return wf(e.node2,t)*e.getValue()}function NEe(e,t){return wf(e.node2,t)}function BEe(e,t){return wf(e.node1,t)*e.getValue()}function FEe(e,t){return wf(e.node1,t)}function wf(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function Yx(e){return e.getValue()}function df(e,t,r){for(var n=0,a=e.length,i=-1;++io&&(o=l)}),W(n,function(s){var l=new qa({type:"color",mappingMethod:"linear",dataExtent:[i,o],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&&W(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function GEe(e){e.registerChartView(bEe),e.registerSeriesModel(SEe),e.registerLayout(xEe),e.registerVisual(HEe),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var mQ=function(){function e(){}return e.prototype.getInitialData=function(t,r){var n,a=r.getComponent("xAxis",this.get("xAxisIndex")),i=r.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],h=[a,i],v=h[c].get("type"),p=h[1-c].get("type"),g=t.data;if(g&&l){var m=[];W(g,function(w,x){var S;Ne(w)?(S=w.slice(),w.unshift(x)):Ne(w.value)?(S=Ie({},w),S.value=S.value.slice(),w.value.unshift(x)):S=w,m.push(S)}),t.data=m}var y=this.defaultValueDimensions,_=[{name:f,type:Rx(v),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:Rx(p),dimsDef:y.slice()}];return nm(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:zt(NK,_,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),yQ=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}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:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Ir);Kn(yQ,mQ,!0);const UEe=yQ;var $Ee=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),f=v6(c,i,u,l,!0);i.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(f);return}var d=i.getItemLayout(u);f?(Js(f),_Q(d,f,i,u)):f=v6(d,i,u,l),o.add(f),i.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},t.prototype.remove=function(r){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},t.type="boxplot",t}(xr),WEe=function(){function e(){}return e}(),YEe=function(e){De(t,e);function t(r){var n=e.call(this,r)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new WEe},t.prototype.buildPath=function(r,n){var a=n.points,i=0;for(r.moveTo(a[i][0],a[i][1]),i++;i<4;i++)r.lineTo(a[i][0],a[i][1]);for(r.closePath();ip){var w=[m,_];n.push(w)}}}return{boxData:r,outliers:n}}var eMe={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==fi){var n="";Gr(n)}var a=JEe(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function tMe(e){e.registerSeriesModel(UEe),e.registerChartView(KEe),e.registerLayout(XEe),e.registerTransform(eMe)}var rMe=["color","borderColor"],nMe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},t.prototype.incrementalPrepareRender=function(r,n,a){this._clear(),this._updateDrawMode(r)},t.prototype.incrementalRender=function(r,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},t.prototype.eachRendered=function(r){Nf(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r){var n=r.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&p6(u,f))return;var d=JE(f,c,!0);_n(d,{shape:{points:f.ends}},r,c),eM(d,n,c,o),i.add(d),n.setItemGraphicEl(c,d)}}).update(function(c,f){var d=a.getItemGraphicEl(f);if(!n.hasValue(c)){i.remove(d);return}var h=n.getItemLayout(c);if(s&&p6(u,h)){i.remove(d);return}d?(Lr(d,{shape:{points:h.ends}},r,c),Js(d)):d=JE(h),eM(d,n,c,o),i.add(d),n.setItemGraphicEl(c,d)}).remove(function(c){var f=a.getItemGraphicEl(c);f&&i.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(r){this._clear(),g6(r,this.group);var n=r.get("clip",!0)?rT(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(r,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=r.next())!=null;){var s=a.getItemLayout(o),l=JE(s);eM(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){g6(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(r){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(xr),aMe=function(){function e(){}return e}(),iMe=function(e){De(t,e);function t(r){var n=e.call(this,r)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new aMe},t.prototype.buildPath=function(r,n){var a=n.points;this.__simpleBox?(r.moveTo(a[4][0],a[4][1]),r.lineTo(a[6][0],a[6][1])):(r.moveTo(a[0][0],a[0][1]),r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]),r.lineTo(a[3][0],a[3][1]),r.closePath(),r.moveTo(a[4][0],a[4][1]),r.lineTo(a[5][0],a[5][1]),r.moveTo(a[6][0],a[6][1]),r.lineTo(a[7][0],a[7][1]))},t}(cr);function JE(e,t,r){var n=e.ends;return new iMe({shape:{points:r?oMe(n,e):n},z2:100})}function p6(e,t){for(var r=!0,n=0;n0?"borderColor":"borderColor0"])||r.get(["itemStyle",e>0?"color":"color0"]);e===0&&(a=r.get(["itemStyle","borderColorDoji"]));var i=r.getModel("itemStyle").getItemStyle(rMe);t.useStyle(i),t.style.fill=null,t.style.stroke=a}const lMe=nMe;var bQ=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(r,n,a){var i=n.getItemLayout(r);return i&&a.rect(i.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:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Ir);Kn(bQ,mQ,!0);const uMe=bQ;function cMe(e){!e||!Ne(e.series)||W(e.series,function(t){Mt(t)&&t.type==="k"&&(t.type="candlestick")})}var fMe=["itemStyle","borderColor"],dMe=["itemStyle","borderColor0"],hMe=["itemStyle","borderColorDoji"],vMe=["itemStyle","color"],pMe=["itemStyle","color0"],gMe={seriesType:"candlestick",plan:qg(),performRawSeries:!0,reset:function(e,t){function r(i,o){return o.get(i>0?vMe:pMe)}function n(i,o){return o.get(i===0?hMe:i>0?fMe:dMe)}if(!t.isSeriesFiltered(e)){var a=e.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=r(u,l),c.stroke=n(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");Ie(f,c)}}}}}};const mMe=gMe;var yMe={seriesType:"candlestick",plan:qg(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=_Me(e,r),a=0,i=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[a])),l=Fe(r.mapDimensionsAll(o[i]),r.getDimensionIndex,r),u=l[0],c=l[1],f=l[2],d=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?v:h};function h(p,g){for(var m,y=g.getStore();(m=p.next())!=null;){var _=y.get(s,m),w=y.get(u,m),x=y.get(c,m),S=y.get(f,m),T=y.get(d,m),A=Math.min(w,x),C=Math.max(w,x),M=R(A,_),E=R(C,_),D=R(S,_),P=R(T,_),L=[];B(L,E,0),B(L,M,1),L.push(z(P),z(E),z(D),z(M));var I=g.getItemModel(m),O=!!I.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:m6(y,m,w,x,c,O),initBaseline:w>x?E[i]:M[i],ends:L,brushRect:k(S,T,_)})}function R($,j){var X=[];return X[a]=j,X[i]=$,isNaN(j)||isNaN($)?[NaN,NaN]:t.dataToPoint(X)}function B($,j,X){var Q=j.slice(),se=j.slice();Q[a]=tS(Q[a]+n/2,1,!1),se[a]=tS(se[a]-n/2,1,!0),X?$.push(Q,se):$.push(se,Q)}function k($,j,X){var Q=R($,X),se=R(j,X);return Q[a]-=n/2,se[a]-=n/2,{x:Q[0],y:Q[1],width:n,height:se[1]-Q[1]}}function z($){return $[a]=tS($[a],1),$}}function v(p,g){for(var m=Ml(p.count*4),y=0,_,w=[],x=[],S,T=g.getStore(),A=!!e.get(["itemStyle","borderColorDoji"]);(S=p.next())!=null;){var C=T.get(s,S),M=T.get(u,S),E=T.get(c,S),D=T.get(f,S),P=T.get(d,S);if(isNaN(C)||isNaN(D)||isNaN(P)){m[y++]=NaN,y+=3;continue}m[y++]=m6(T,S,M,E,c,A),w[a]=C,w[i]=D,_=t.dataToPoint(w,null,x),m[y++]=_?_[0]:NaN,m[y++]=_?_[1]:NaN,w[i]=P,_=t.dataToPoint(w,null,x),m[y++]=_?_[1]:NaN}g.setLayout("largePoints",m)}}};function m6(e,t,r,n,a,i){var o;return r>n?o=-1:r0?e.get(a,t-1)<=n?1:-1:1,o}function _Me(e,t){var r=e.getBaseAxis(),n,a=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=Je(Qt(e.get("barMaxWidth"),a),a),o=Je(Qt(e.get("barMinWidth"),1),a),s=e.get("barWidth");return s!=null?Je(s,a):Math.max(Math.min(a/2,i),o)}const bMe=yMe;function wMe(e){e.registerChartView(lMe),e.registerSeriesModel(uMe),e.registerPreprocessor(cMe),e.registerVisual(mMe),e.registerLayout(bMe)}function y6(e,t){var r=t.rippleEffectColor||t.color;e.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?r:null,fill:t.brushType==="fill"?r:null}})})}var SMe=function(e){De(t,e);function t(r,n){var a=e.call(this)||this,i=new p1(r,n),o=new Ot;return a.add(i),a.add(o),a.updateData(r,n),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,a=r.color,i=r.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var d=void 0;Tt(f)?d=f(a):d=f,i.__t>0&&(d=-s*i.__t),this._animateSymbol(i,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(r,n,a,i,o){if(n>0){r.__t=0;var s=this,l=r.animate("",i).when(o?n*2:n,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(r)});i||l.done(function(){s.remove(r)}),l.start()}},t.prototype._getLineLength=function(r){return Au(r.__p1,r.__cp1)+Au(r.__cp1,r.__p2)},t.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(r,n,a){this.childAt(0).updateData(r,n,a),this._updateEffectSymbol(r,n)},t.prototype._updateSymbolPosition=function(r){var n=r.__p1,a=r.__p2,i=r.__cp1,o=r.__t<1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=Fa,c=hP;s[0]=u(n[0],i[0],a[0],o),s[1]=u(n[1],i[1],a[1],o);var f=r.__t<1?c(n[0],i[0],a[0],o):c(a[0],i[0],n[0],1-o),d=r.__t<1?c(n[1],i[1],a[1],o):c(a[1],i[1],n[1],1-o);r.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT=0&&!(i[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;ln);l++);l=Math.min(l-1,o-2)}var c=(n-i[l])/(i[l+1]-i[l]),f=a[l],d=a[l+1];r.x=f[0]*(1-c)+c*d[0],r.y=f[1]*(1-c)+c*d[1];var h=r.__t<1?d[0]-f[0]:f[0]-d[0],v=r.__t<1?d[1]-f[1]:f[1]-d[1];r.rotation=-Math.atan2(v,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(wQ);const IMe=LMe;var RMe=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),OMe=function(e){De(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new RMe},t.prototype.buildPath=function(r,n){var a=n.segs,i=n.curveness,o;if(n.polyline)for(o=this._off;o0){r.moveTo(a[o++],a[o++]);for(var l=1;l0){var h=(u+f)/2-(c-d)*i,v=(c+d)/2-(f-u)*i;r.quadraticCurveTo(h,v,f,d)}else r.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(r,n){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var f=i[u++],d=i[u++],h=1;h0){var g=(f+v)/2-(d-p)*o,m=(d+p)/2-(v-f)*o;if(Cj(f,d,g,m,v,p,s,r,n))return l}else if(yu(f,d,v,p,s,r,n))return l;l++}return-1},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(r=a[0],n=a[1],i.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,a=n.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const NMe=kMe;var BMe={seriesType:"lines",plan:qg(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(a,i){var o=[];if(n){var s=void 0,l=a.end-a.start;if(r){for(var u=0,c=a.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var f=r.get("clip",!0)&&rT(r.coordinateSystem,!1,r);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,a){var i=r.getData(),o=this._updateLineDraw(i,r);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,a){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},t.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},t.prototype.updateTransform=function(r,n,a){var i=r.getData(),o=r.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=xQ.reset(r,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(r,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new NMe:new qk(o?i?IMe:SQ:i?wQ:Zk),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},t.prototype._showEffect=function(r){return!!r.get(["effect","show"])},t.prototype._clearLayer=function(r){var n=r.getZr(),a=n.painter.getType()==="svg";!a&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.type="lines",t}(xr);const VMe=FMe;var zMe=typeof Uint32Array>"u"?Array:Uint32Array,HMe=typeof Float64Array>"u"?Array:Float64Array;function _6(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Fe(t,function(r){var n=[r[0].coord,r[1].coord],a={coords:n};return r[0].name&&(a.fromName=r[0].name),r[1].name&&(a.toName=r[1].name),pA([a,r[0],r[1]])}))}var GMe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.init=function(r){r.data=r.data||[],_6(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(r){if(_6(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=kh(this._flatCoords,n.flatCoords),this._flatCoordsOffset=kh(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},t.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),a=n.option instanceof Array?n.option:n.getShallow("coords");return a},t.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},t.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[r*2],i=this._flatCoordsOffset[r*2+1],o=0;o ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},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}(Ir);const UMe=GMe;function jb(e){return e instanceof Array||(e=[e,e]),e}var $Me={seriesType:"lines",reset:function(e){var t=jb(e.get("symbol")),r=jb(e.get("symbolSize")),n=e.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function a(i,o){var s=i.getItemModel(o),l=jb(s.getShallow("symbol",!0)),u=jb(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?a:null}}};const WMe=$Me;function YMe(e){e.registerChartView(VMe),e.registerSeriesModel(UMe),e.registerLayout(xQ),e.registerVisual(WMe)}var jMe=256,KMe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Xs.createCanvas();this.canvas=t}return e.prototype.update=function(t,r,n,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),h=t.length;f.width=r,f.height=n;for(var v=0;v0){var D=o(_)?l:u;_>0&&(_=_*M+A),x[S++]=D[E],x[S++]=D[E+1],x[S++]=D[E+2],x[S++]=D[E+3]*_*256}else S+=4}return d.putImageData(w,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Xs.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;t.width=n,t.height=n;var a=t.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-r,r,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},e.prototype._getGradient=function(t,r){for(var n=this._gradientPixels,a=n[r]||(n[r]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[r](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},e}();const XMe=KMe;function ZMe(e,t,r){var n=e[1]-e[0];t=Fe(t,function(o){return{interval:[(o.interval[0]-e[0])/n,(o.interval[1]-e[0])/n]}});var a=t.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=t[0]&&n<=t[1]}}function b6(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var QMe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(r,a,0,r.getData().count()):b6(o)&&this._renderOnGeo(o,r,i,a)},t.prototype.incrementalPrepareRender=function(r,n,a){this.group.removeAll()},t.prototype.incrementalRender=function(r,n,a,i){var o=n.coordinateSystem;o&&(b6(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,i,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){Nf(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,a,i,o){var s=r.coordinateSystem,l=iv(s,"cartesian2d"),u,c,f,d;if(l){var h=s.getAxis("x"),v=s.getAxis("y");u=h.getBandWidth()+.5,c=v.getBandWidth()+.5,f=h.scale.getExtent(),d=v.scale.getExtent()}for(var p=this.group,g=r.getData(),m=r.getModel(["emphasis","itemStyle"]).getItemStyle(),y=r.getModel(["blur","itemStyle"]).getItemStyle(),_=r.getModel(["select","itemStyle"]).getItemStyle(),w=r.get(["itemStyle","borderRadius"]),x=Pa(r),S=r.getModel("emphasis"),T=S.get("focus"),A=S.get("blurScope"),C=S.get("disabled"),M=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],E=a;Ef[1]||Id[1])continue;var O=s.dataToPoint([L,I]);D=new br({shape:{x:O[0]-u/2,y:O[1]-c/2,width:u,height:c},style:P})}else{if(isNaN(g.get(M[1],E)))continue;D=new br({z2:1,shape:s.dataToRect([g.get(M[0],E)]).contentShape,style:P})}if(g.hasItemOption){var R=g.getItemModel(E),B=R.getModel("emphasis");m=B.getModel("itemStyle").getItemStyle(),y=R.getModel(["blur","itemStyle"]).getItemStyle(),_=R.getModel(["select","itemStyle"]).getItemStyle(),w=R.get(["itemStyle","borderRadius"]),T=B.get("focus"),A=B.get("blurScope"),C=B.get("disabled"),x=Pa(R)}D.shape.r=w;var k=r.getRawValue(E),z="-";k&&k[2]!=null&&(z=k[2]+""),ri(D,x,{labelFetcher:r,labelDataIndex:E,defaultOpacity:P.opacity,defaultText:z}),D.ensureState("emphasis").style=m,D.ensureState("blur").style=y,D.ensureState("select").style=_,Gn(D,T,A,C),D.incremental=o,o&&(D.states.emphasis.hoverLayer=!0),p.add(D),g.setItemGraphicEl(E,D),this._progressiveEls&&this._progressiveEls.push(D)}},t.prototype._renderOnGeo=function(r,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new XMe;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),f=r.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),h=Math.max(c.y,0),v=Math.min(c.width+c.x,i.getWidth()),p=Math.min(c.height+c.y,i.getHeight()),g=v-d,m=p-h,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(y,function(T,A,C){var M=r.dataToPoint([T,A]);return M[0]-=d,M[1]-=h,M.push(C),M}),w=a.getExtent(),x=a.type==="visualMap.continuous"?qMe(w,a.option.range):ZMe(w,a.getPieceList(),a.option.selected);u.update(_,g,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var S=new Oa({style:{width:g,height:m,x:d,y:h,image:u.canvas},silent:!0});this.group.add(S)},t.type="heatmap",t}(xr);const JMe=QMe;var eDe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return eu(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=Zg.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Ir);const tDe=eDe;function rDe(e){e.registerChartView(JMe),e.registerSeriesModel(tDe)}var nDe=["itemStyle","borderWidth"],w6=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],nM=new Qs,aDe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:w6[+c],categoryDim:w6[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var v=x6(o,h),p=S6(o,h,v,d),g=A6(o,d,p);o.setItemGraphicEl(h,g),i.add(g),C6(g,d,p)}}).update(function(h,v){var p=s.getItemGraphicEl(v);if(!o.hasValue(h)){i.remove(p);return}var g=x6(o,h),m=S6(o,h,g,d),y=DQ(o,m);p&&y!==p.__pictorialShapeStr&&(i.remove(p),o.setItemGraphicEl(h,null),p=null),p?fDe(p,d,m):p=A6(o,d,m,!0),o.setItemGraphicEl(h,p),p.__pictorialSymbolMeta=m,i.add(p),C6(p,d,m)}).remove(function(h){var v=s.getItemGraphicEl(h);v&&T6(s,h,v.__pictorialSymbolMeta.animationModel,v)}).execute(),this._data=o,this.group},t.prototype.remove=function(r,n){var a=this.group,i=this._data;r.get("animation")?i&&i.eachItemGraphicEl(function(o){T6(i,Ht(o).dataIndex,r,o)}):a.removeAll()},t.type="pictorialBar",t}(xr);function S6(e,t,r,n){var a=e.getItemLayout(t),i=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,f=r.isAnimationEnabled(),d={dataIndex:t,layout:a,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?r:null,hoverScale:f&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};iDe(r,i,a,n,d),oDe(e,t,a,i,o,d.boundingLength,d.pxSign,c,n,d),sDe(r,d.symbolScale,u,n,d);var h=d.symbolSize,v=av(r.get("symbolOffset"),h);return lDe(r,h,a,i,o,v,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function iDe(e,t,r,n,a){var i=n.valueDim,o=e.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[i.wh]<=0),c;if(Ne(o)){var f=[aM(s,o[0])-l,aM(s,o[1])-l];f[1]0?1:-1}function aM(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function oDe(e,t,r,n,a,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(r[f.wh]),h=e.getItemVisual(t,"symbolSize"),v;Ne(h)?v=h.slice():h==null?v=["100%","100%"]:v=[h,h],v[f.index]=Je(v[f.index],d),v[c.index]=Je(v[c.index],n?d:Math.abs(i)),u.symbolSize=v;var p=u.symbolScale=[v[0]/s,v[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function sDe(e,t,r,n,a){var i=e.get(nDe)||0;i&&(nM.attr({scaleX:t[0],scaleY:t[1],rotation:r}),nM.updateTransform(),i/=nM.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function lDe(e,t,r,n,a,i,o,s,l,u,c,f){var d=c.categoryDim,h=c.valueDim,v=f.pxSign,p=Math.max(t[h.index]+s,0),g=p;if(n){var m=Math.abs(l),y=Aa(e.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var w=Je(y,t[h.index]),x=Math.max(p+w*2,0),S=_?0:w*2,T=CO(n),A=T?n:E6((m+S)/x),C=m-A*p;w=C/2/(_?A:Math.max(A-1,1)),x=p+w*2,S=_?0:w*2,!T&&n!=="fixed"&&(A=u?E6((Math.abs(u)+S)/x):0),g=A*x-S,f.repeatTimes=A,f.symbolMargin=w}var M=v*(g/2),E=f.pathPosition=[];E[d.index]=r[d.wh]/2,E[h.index]=o==="start"?M:o==="end"?l-M:l/2,i&&(E[0]+=i[0],E[1]+=i[1]);var D=f.bundlePosition=[];D[d.index]=r[d.xy],D[h.index]=r[h.xy];var P=f.barRectShape=Ie({},r);P[h.wh]=v*Math.max(Math.abs(r[h.wh]),Math.abs(E[h.index]+M)),P[d.wh]=r[d.wh];var L=f.clipShape={};L[d.xy]=-r[d.xy],L[d.wh]=c.ecSize[d.wh],L[h.xy]=0,L[h.wh]=r[h.wh]}function AQ(e){var t=e.symbolPatternSize,r=jn(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function TQ(e,t,r,n){var a=e.__pictorialBundle,i=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,c=0,f=i[t.valueDim.index]+o+r.symbolMargin*2;for(iN(e,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c0:m<0)&&(y=u-1-p),g[l.index]=f*(y-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function CQ(e,t,r,n){var a=e.__pictorialBundle,i=e.__pictorialMainPath;i?Op(i,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(i=e.__pictorialMainPath=AQ(r),a.add(i),Op(i,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function EQ(e,t,r){var n=Ie({},t.barRectShape),a=e.__pictorialBarRect;a?Op(a,null,{shape:n},t,r):(a=e.__pictorialBarRect=new br({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,e.add(a))}function MQ(e,t,r,n){if(r.symbolClip){var a=e.__pictorialClipPath,i=Ie({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(a)Lr(a,{shape:i},s,l);else{i[o.wh]=0,a=new br({shape:i}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var u={};u[o.wh]=r.clipShape[o.wh],u1[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function x6(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=uDe,r.isAnimationEnabled=cDe,r}function uDe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function cDe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function A6(e,t,r,n){var a=new Ot,i=new Ot;return a.add(i),a.__pictorialBundle=i,i.x=r.bundlePosition[0],i.y=r.bundlePosition[1],r.symbolRepeat?TQ(a,t,r):CQ(a,t,r),EQ(a,r,n),MQ(a,t,r,n),a.__pictorialShapeStr=DQ(e,r),a.__pictorialSymbolMeta=r,a}function fDe(e,t,r){var n=r.animationModel,a=r.dataIndex,i=e.__pictorialBundle;Lr(i,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,a),r.symbolRepeat?TQ(e,t,r,!0):CQ(e,t,r,!0),EQ(e,r,!0),MQ(e,t,r,!0)}function T6(e,t,r,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];iN(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),W(i,function(o){yf(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function DQ(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function iN(e,t,r){W(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function Op(e,t,r,n,a,i){t&&e.attr(t),n.symbolClip&&!a?r&&e.attr(r):r&&u1[a?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,i)}function C6(e,t,r){var n=r.dataIndex,a=r.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),f=i.get("blurScope"),d=i.get("scale");iN(e,function(p){if(p instanceof Oa){var g=p.style;p.useStyle(Ie({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},r.style))}else p.useStyle(r.style);var m=p.ensureState("emphasis");m.style=o,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=r.z2});var h=t.valueDim.posDesc[+(r.boundingLength>0)],v=e.__pictorialBarRect;ri(v,Pa(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:tg(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),Gn(e,c,f,i.get("disabled"))}function E6(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const dDe=aDe;var hDe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return t.prototype.getInitialData=function(r){return r.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Bf(Vx.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%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Vx);const vDe=hDe;function pDe(e){e.registerChartView(dDe),e.registerSeriesModel(vDe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,zt(iZ,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,oZ("pictorialBar"))}var gDe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(g){return g.name}var h=new Uu(this._layersSeries||[],l,d,d),v=[];h.add(ot(p,this,"add")).update(ot(p,this,"update")).remove(ot(p,this,"remove")).execute();function p(g,m,y){var _=o._layers;if(g==="remove"){s.remove(_[m]);return}for(var w=[],x=[],S,T=l[m].indices,A=0;Ai&&(i=s),n.push(s)}for(var u=0;ui&&(i=f)}return{y0:a,max:i}}function xDe(e){e.registerChartView(yDe),e.registerSeriesModel(bDe),e.registerLayout(wDe),e.registerProcessor(y1("themeRiver"))}var ADe=2,TDe=4,CDe=function(e){De(t,e);function t(r,n,a,i){var o=e.call(this)||this;o.z2=ADe,o.textConfig={inside:!0},Ht(o).seriesIndex=n.seriesIndex;var s=new pr({z2:TDe,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,a,i),o}return t.prototype.updateData=function(r,n,a,i,o){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;Ht(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=Ie({},c);f.label=null;var d=n.getVisual("style");d.lineJoin="bevel";var h=n.getVisual("decal");h&&(d.decal=eg(h,o));var v=ah(l.getModel("itemStyle"),f,!0);Ie(f,v),W(Li,function(y){var _=s.ensureState(y),w=l.getModel([y,"itemStyle"]);_.style=w.getItemStyle();var x=ah(w,f);x&&(_.shape=x)}),r?(s.setShape(f),s.shape.r=c.r0,_n(s,{shape:{r:c.r}},a,n.dataIndex)):(Lr(s,{shape:f},a),Js(s)),s.useStyle(d),this._updateLabel(a);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),m=g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;Gn(this,m,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r){var n=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),h=this.node.dataIndex,v=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(v!=null&&Math.abs(s)Math.PI/2?"right":"left"):!D||D==="center"?(s===2*Math.PI&&o.r0===0?M=0:M=(o.r+o.r0)/2,D="center"):D==="left"?(M=o.r0+E,l>Math.PI/2&&(D="right")):D==="right"&&(M=o.r-E,l>Math.PI/2&&(D="left")),w.style.align=D,w.style.verticalAlign=g(y,"verticalAlign")||"middle",w.x=M*u+o.cx,w.y=M*c+o.cy;var P=g(y,"rotate"),L=0;P==="radial"?(L=Bs(-l),L>Math.PI/2&&LMath.PI/2?L-=Math.PI:L<-Math.PI/2&&(L+=Math.PI)):Mr(P)&&(L=P*Math.PI/180),w.rotation=Bs(L)});function g(m,y){var _=m.get(y);return _??i.get(y)}d.dirtyStyle()},t}(Ii);const D6=CDe;var AL="sunburstRootToNode",P6="sunburstHighlight",EDe="sunburstUnhighlight";function MDe(e){e.registerAction({type:AL,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(a,i){var o=e_(t,[AL],a);if(o){var s=a.getViewRoot();s&&(t.direction=$k(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),e.registerAction({type:P6,update:"none"},function(t,r,n){t=Ie({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(i){var o=e_(t,[P6],i);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(Ie(t,{type:"highlight"}))}),e.registerAction({type:EDe,update:"updateView"},function(t,r,n){t=Ie({},t),n.dispatchAction(Ie(t,{type:"downplay"}))})}var DDe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){var o=this;this.seriesModel=r,this.api=a,this.ecModel=n;var s=r.getData(),l=s.tree.root,u=r.getViewRoot(),c=this.group,f=r.get("renderLabelForZeroData"),d=[];u.eachNode(function(y){d.push(y)});var h=this._oldChildren||[];v(d,h),m(l,u),this._initEvents(),this._oldChildren=d;function v(y,_){if(y.length===0&&_.length===0)return;new Uu(_,y,w,w).add(x).update(x).remove(zt(x,null)).execute();function w(S){return S.getId()}function x(S,T){var A=S==null?null:y[S],C=T==null?null:_[T];p(A,C)}}function p(y,_){if(!f&&y&&!y.getValue()&&(y=null),y!==l&&_!==l){if(_&&_.piece)y?(_.piece.updateData(!1,y,r,n,a),s.setItemGraphicEl(y.dataIndex,_.piece)):g(_);else if(y){var w=new D6(y,r,n,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,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,r,n,a):(o.virtualPiece=new D6(y,r,n,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(w){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=r.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";Sx(u,c)}}a=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:AL,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},t.prototype.containPoint=function(r,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}(xr);const PDe=DDe;var LDe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r,n){var a={name:r.name,children:r.data};PQ(a);var i=this._levelModels=Fe(r.levels||[],function(l){return new $r(l,this,n)},this),o=Uk.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),d=i[f.depth];return d&&(u.parentModel=d),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=iT(a,this),n},t.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){Rq(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}(Ir);function PQ(e){var t=0;W(e.children,function(n){PQ(n);var a=n.value;Ne(a)&&(a=a[0]),t+=a});var r=e.value;Ne(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Ne(e.value)?e.value[0]=r:e.value=r}const IDe=LDe;var L6=Math.PI/180;function RDe(e,t,r){t.eachSeriesByType(e,function(n){var a=n.get("center"),i=n.get("radius");Ne(i)||(i=[0,i]),Ne(a)||(a=[a,a]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=Je(a[0],o),c=Je(a[1],s),f=Je(i[0],l/2),d=Je(i[1],l/2),h=-n.get("startAngle")*L6,v=n.get("minAngle")*L6,p=n.getData().tree.root,g=n.getViewRoot(),m=g.depth,y=n.get("sort");y!=null&&LQ(g,y);var _=0;W(g.children,function(O){!isNaN(O.getValue())&&_++});var w=g.getValue(),x=Math.PI/(w||_)*2,S=g.depth>0,T=g.height-(S?-1:1),A=(d-f)/(T||1),C=n.get("clockwise"),M=n.get("stillShowZeroSum"),E=C?1:-1,D=function(O,R){if(O){var B=R;if(O!==p){var k=O.getValue(),z=w===0&&M?x:k*x;z1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&rt(s)&&(s=Nh(s,(n.depth-1)/(i-1)*.5)),s}e.eachSeriesByType("sunburst",function(n){var a=n.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");Ie(u,l)})})}function NDe(e){e.registerChartView(PDe),e.registerSeriesModel(IDe),e.registerLayout(zt(RDe,"sunburst")),e.registerProcessor(zt(y1,"sunburst")),e.registerVisual(kDe),MDe(e)}var I6={color:"fill",borderColor:"stroke"},BDe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ou=Pr(),FDe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return eu(null,this)},t.prototype.getDataParams=function(r,n,a){var i=e.prototype.getDataParams.call(this,r,n);return a&&(i.info=Ou(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Ir);const VDe=FDe;function zDe(e,t){return t=t||[0,0],Fe(["x","y"],function(r,n){var a=this.getAxis(r),i=t[n],o=e[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function HDe(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(r){return e.dataToPoint(r)},size:ot(zDe,e)}}}function GDe(e,t){return t=t||[0,0],Fe([0,1],function(r){var n=t[r],a=e[r]/2,i=[],o=[];return i[r]=n-a,o[r]=n+a,i[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(i)[r]-this.dataToPoint(o)[r])},this)}function UDe(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(r){return e.dataToPoint(r)},size:ot(GDe,e)}}}function $De(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,a=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-a)-r.dataToCoord(n+a))}function WDe(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:ot($De,e)}}}function YDe(e,t){return t=t||[0,0],Fe(["Radius","Angle"],function(r,n){var a="get"+r+"Axis",i=this[a](),o=t[n],s=e[n]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function jDe(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),o=r.dataToAngle(a[1]),s=e.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:ot(YDe,e)}}}function KDe(e){var t=e.getRect(),r=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:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,a){return e.dataToPoint(n,a)}}}}function IQ(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||lt(e,"text")))}function RQ(e,t,r){var n=e,a,i,o;if(t==="text")o=n;else{o={},lt(n,"text")&&(o.text=n.text),lt(n,"rich")&&(o.rich=n.rich),lt(n,"textFill")&&(o.fill=n.textFill),lt(n,"textStroke")&&(o.stroke=n.textStroke),lt(n,"fontFamily")&&(o.fontFamily=n.fontFamily),lt(n,"fontSize")&&(o.fontSize=n.fontSize),lt(n,"fontStyle")&&(o.fontStyle=n.fontStyle),lt(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=lt(n,"textPosition");r?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),lt(n,"textPosition")&&(a.position=n.textPosition),lt(n,"textOffset")&&(a.offset=n.textOffset),lt(n,"textRotation")&&(a.rotation=n.textRotation),lt(n,"textDistance")&&(a.distance=n.textDistance)}return R6(o,e),W(o.rich,function(l){R6(l,l)}),{textConfig:a,textContent:i}}function R6(e,t){t&&(t.font=t.textFont||t.font,lt(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),lt(t,"textAlign")&&(e.align=t.textAlign),lt(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),lt(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),lt(t,"textWidth")&&(e.width=t.textWidth),lt(t,"textHeight")&&(e.height=t.textHeight),lt(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),lt(t,"textPadding")&&(e.padding=t.textPadding),lt(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),lt(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),lt(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),lt(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),lt(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),lt(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),lt(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function O6(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var a=n.textPosition.indexOf("inside")>=0,i=e.fill||"#000";k6(n,t);var o=n.textFill==null;return a?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,W(t.rich,function(s){k6(s,s)}),n}function k6(e,t){t&&(lt(t,"fill")&&(e.textFill=t.fill),lt(t,"stroke")&&(e.textStroke=t.fill),lt(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),lt(t,"font")&&(e.font=t.font),lt(t,"fontStyle")&&(e.fontStyle=t.fontStyle),lt(t,"fontWeight")&&(e.fontWeight=t.fontWeight),lt(t,"fontSize")&&(e.fontSize=t.fontSize),lt(t,"fontFamily")&&(e.fontFamily=t.fontFamily),lt(t,"align")&&(e.textAlign=t.align),lt(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),lt(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),lt(t,"width")&&(e.textWidth=t.width),lt(t,"height")&&(e.textHeight=t.height),lt(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),lt(t,"padding")&&(e.textPadding=t.padding),lt(t,"borderColor")&&(e.textBorderColor=t.borderColor),lt(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),lt(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),lt(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),lt(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),lt(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),lt(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),lt(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),lt(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),lt(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),lt(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var OQ={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},N6=vr(OQ);Co(Vl,function(e,t){return e[t]=1,e},{});Vl.join(", ");var jx=["","style","shape","extra"],ag=Pr();function oN(e,t,r,n,a){var i=e+"Animation",o=Gg(e,n,a)||{},s=ag(t).userDuring;return o.duration>0&&(o.during=s?ot(JDe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Ie(o,r[i]),o}function sS(e,t,r,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=ag(e),u=t.style;l.userDuring=t.during;var c={},f={};if(tPe(e,t,f),F6("shape",t,f),F6("extra",t,f),!i&&s&&(ePe(e,t,c),B6("shape",e,t,c),B6("extra",e,t,c),rPe(e,t,u,c)),f.style=u,XDe(e,f,o),qDe(e,t),s)if(i){var d={};W(jx,function(v){var p=v?t[v]:t;p&&p.enterFrom&&(v&&(d[v]=d[v]||{}),Ie(v?d[v]:d,p.enterFrom))});var h=oN("enter",e,t,r,a);h.duration>0&&e.animateFrom(d,h)}else ZDe(e,t,a||0,r,c);kQ(e,t),u?e.dirty():e.markRedraw()}function kQ(e,t){for(var r=ag(e).leaveToProps,n=0;n0&&e.animateFrom(a,i)}}function qDe(e,t){lt(t,"silent")&&(e.silent=t.silent),lt(t,"ignore")&&(e.ignore=t.ignore),e instanceof ss&<(t,"invisible")&&(e.invisible=t.invisible),e instanceof cr&<(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var pl={},QDe={setTransform:function(e,t){return pl.el[e]=t,this},getTransform:function(e){return pl.el[e]},setShape:function(e,t){var r=pl.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=pl.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=pl.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=pl.el.style;if(t)return t[e]},setExtra:function(e,t){var r=pl.el.extra||(pl.el.extra={});return r[e]=t,this},getExtra:function(e){var t=pl.el.extra;if(t)return t[e]}};function JDe(){var e=this,t=e.el;if(t){var r=ag(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}pl.el=t,n(QDe)}}function B6(e,t,r,n){var a=r[e];if(a){var i=t[e],o;if(i){var s=r.transition,l=a.transition;if(l)if(!o&&(o=n[e]={}),Ch(l))Ie(o,i);else for(var u=tn(l),c=0;c=0){!o&&(o=n[e]={});for(var h=vr(i),c=0;c=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!i&&(i=n.style={});for(var v=vr(r),u=0;u=0?t.getStore().get(R,I):void 0}var B=t.get(O.name,I),k=O&&O.ordinalMeta;return k?k.categories[B]:B}function S(L,I){I==null&&(I=u);var O=t.getItemVisual(I,"style"),R=O&&O.fill,B=O&&O.opacity,k=y(I,Xc).getItemStyle();R!=null&&(k.fill=R),B!=null&&(k.opacity=B);var z={inheritColor:rt(R)?R:"#000"},$=_(I,Xc),j=Xr($,null,z,!1,!0);j.text=$.getShallow("show")?Qt(e.getFormattedLabel(I,Xc),tg(t,I)):null;var X=_x($,z,!1);return C(L,k),k=O6(k,j,X),L&&A(k,L),k.legacy=!0,k}function T(L,I){I==null&&(I=u);var O=y(I,ku).getItemStyle(),R=_(I,ku),B=Xr(R,null,null,!0,!0);B.text=R.getShallow("show")?zs(e.getFormattedLabel(I,ku),e.getFormattedLabel(I,Xc),tg(t,I)):null;var k=_x(R,null,!0);return C(L,O),O=O6(O,B,k),L&&A(O,L),O.legacy=!0,O}function A(L,I){for(var O in I)lt(I,O)&&(L[O]=I[O])}function C(L,I){L&&(L.textFill&&(I.textFill=L.textFill),L.textPosition&&(I.textPosition=L.textPosition))}function M(L,I){if(I==null&&(I=u),lt(I6,L)){var O=t.getItemVisual(I,"style");return O?O[I6[L]]:null}if(lt(BDe,L))return t.getItemVisual(I,L)}function E(L){if(i.type==="cartesian2d"){var I=i.getBaseAxis();return cbe(yt({axis:I},L))}}function D(){return r.getCurrentSeriesIndices()}function P(L){return pK(L,r)}}function hPe(e){var t={};return W(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var a=n.coordDim,i=t[a]=t[a]||[];i[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function lM(e,t,r,n,a,i,o){if(!n){i.remove(t);return}var s=fN(e,t,r,n,a,i);return s&&o.setItemGraphicEl(r,s),s&&Gn(s,n.focus,n.blurScope,n.emphasisDisabled),s}function fN(e,t,r,n,a,i){var o=-1,s=t;t&&VQ(t,n,a)&&(o=tr(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=uN(n),s&&lPe(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Bo.normal.cfg=Bo.normal.conOpt=Bo.emphasis.cfg=Bo.emphasis.conOpt=Bo.blur.cfg=Bo.blur.conOpt=Bo.select.cfg=Bo.select.conOpt=null,Bo.isLegacy=!1,pPe(u,r,n,a,l,Bo),vPe(u,r,n,a,l),cN(e,u,r,n,Bo,a,l),lt(n,"info")&&(Ou(u).info=n.info);for(var c=0;c=0?i.replaceAt(u,o):i.add(u),u}function VQ(e,t,r){var n=Ou(e),a=t.type,i=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&bPe(i)&&zQ(i)!==n.customPathData||a==="image"&<(o,"image")&&o.image!==n.customImagePath}function vPe(e,t,r,n,a){var i=r.clipPath;if(i===!1)e&&e.getClipPath()&&e.removeClipPath();else if(i){var o=e.getClipPath();o&&VQ(o,i,n)&&(o=null),o||(o=uN(i),e.setClipPath(o)),cN(null,o,t,i,null,n,a)}}function pPe(e,t,r,n,a,i){if(!e.isGroup){z6(r,null,i),z6(r,ku,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=uN(o),e.setTextContent(c)),cN(null,c,t,o,null,n,a);for(var f=o&&o.style,d=0;d=c;h--){var v=t.childAt(h);mPe(t,v,a)}}}function mPe(e,t,r){t&&lT(t,Ou(e).option,r)}function yPe(e){new Uu(e.oldChildren,e.newChildren,H6,H6,e).add(G6).update(G6).remove(_Pe).execute()}function H6(e,t){var r=e&&e.name;return r??oPe+t}function G6(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,a=t!=null?r.oldChildren[t]:null;fN(r.api,a,r.dataIndex,n,r.seriesModel,r.group)}function _Pe(e){var t=this.context,r=t.oldChildren[e];r&&lT(r,Ou(r).option,t.seriesModel)}function zQ(e){return e&&(e.pathData||e.d)}function bPe(e){return e&&(lt(e,"pathData")||lt(e,"d"))}function wPe(e){e.registerChartView(cPe),e.registerSeriesModel(VDe)}var Wd=Pr(),U6=Pt,uM=ot,SPe=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,a){var i=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Ot,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=zt($6,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}Y6(s,r,!0),this._renderHandle(i)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),a=t.axis,i=a.type==="category",o=r.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=kk(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,a,i){},e.prototype.createPointerEl=function(t,r,n,a){var i=r.pointer;if(i){var o=Wd(t).pointerEl=new u1[i.type](U6(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,a){if(r.label){var i=Wd(t).labelEl=new pr(U6(r.label));t.add(i),W6(i,a)}},e.prototype.updatePointerEl=function(t,r,n){var a=Wd(t).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,a){var i=Wd(t).labelEl;i&&(i.setStyle(r.label.style),n(i,{x:r.label.x,y:r.label.y}),W6(i,a))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=r.getModel("handle"),o=r.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Ug(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){zu(u.event)},onmousedown:uM(this._onHandleDragMove,this,0,0),drift:uM(this._onHandleDragMove,this),ondragend:uM(this._onHandleDragEnd,this)}),n.add(a)),Y6(a,r,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");Ne(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Qg(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){$6(this._axisPointerModel,!r&&this._moveAnimation,this._handle,cM(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(cM(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(cM(a)),Wd(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,a=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Y0(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function $6(e,t,r,n){HQ(Wd(r).lastProp,n)||(Wd(r).lastProp=n,t?Lr(r,n,e):(r.stopAnimation(),r.attr(n)))}function HQ(e,t){if(Mt(e)&&Mt(t)){var r=!0;return W(t,function(n,a){r=r&&HQ(e[a],n)}),!!r}else return e===t}function W6(e,t){e[t.get(["label","show"])?"show":"hide"]()}function cM(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Y6(e,t,r){var n=t.get("z"),a=t.get("zlevel");e&&e.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=r)})}const hN=SPe;function vN(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function GQ(e,t,r,n,a){var i=r.get("value"),o=UQ(i,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=nv(s.get("padding")||0),u=s.getFont(),c=r1(o,u),f=a.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],v=a.align;v==="right"&&(f[0]-=d),v==="center"&&(f[0]-=d/2);var p=a.verticalAlign;p==="bottom"&&(f[1]-=h),p==="middle"&&(f[1]-=h/2),xPe(f,d,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:Xr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function xPe(e,t,r,n){var a=n.getWidth(),i=n.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+r,i)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function UQ(e,t,r,n,a){e=t.scale.parse(e);var i=t.scale.getLabel({value:e},{precision:a.precision}),o=a.formatter;if(o){var s={value:Tk(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};W(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),rt(o)?i=o.replace("{value}",i):Tt(o)&&(i=o(s))}return i}function pN(e,t,r){var n=lo();return Of(n,n,r.rotation),Zs(n,n,r.position),Us([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function $Q(e,t,r,n,a,i){var o=Wu.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),GQ(t,n,a,i,{position:pN(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function gN(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function WQ(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function j6(e,t,r,n,a,i){return{cx:e,cy:t,r0:r,r:n,startAngle:a,endAngle:i,clockwise:!0}}var APe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=K6(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=vN(i),h=TPe[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var v=lL(l.model,a);$Q(n,r,v,a,i,o)},t.prototype.getHandleTransform=function(r,n,a){var i=lL(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pN(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=K6(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[c]}},t}(hN);function K6(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var TPe={line:function(e,t,r){var n=gN([t,r[0]],[t,r[1]],X6(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),a=r[1]-r[0];return{type:"Rect",shape:WQ([t-n/2,r[0]],[n,a],X6(e))}}};function X6(e){return e.dim==="x"?0:1}const CPe=APe;var EPe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}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:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",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:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(sr);const MPe=EPe;var Mu=Pr(),DPe=W;function YQ(e,t,r){if(!Cr.node){var n=t.getZr();Mu(n).records||(Mu(n).records={}),PPe(n,t);var a=Mu(n).records[e]||(Mu(n).records[e]={});a.handler=r}}function PPe(e,t){if(Mu(e).initialized)return;Mu(e).initialized=!0,r("click",zt(Z6,"click")),r("mousemove",zt(Z6,"mousemove")),r("globalout",IPe);function r(n,a){e.on(n,function(i){var o=RPe(t);DPe(Mu(e).records,function(s){s&&a(s,i,o.dispatchAction)}),LPe(o.pendings,t)})}}function LPe(e,t){var r=e.showTip.length,n=e.hideTip.length,a;r?a=e.showTip[r-1]:n&&(a=e.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function IPe(e,t,r){e.handler("leave",null,r)}function Z6(e,t,r,n){t.handler(e,r,n)}function RPe(e){var t={showTip:[],hideTip:[]},r=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function EL(e,t){if(!Cr.node){var r=t.getZr(),n=(Mu(r).records||{})[e];n&&(Mu(r).records[e]=null)}}var OPe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=n.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";YQ("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){EL("axisPointer",n)},t.prototype.dispose=function(r,n){EL("axisPointer",n)},t.type="axisPointer",t}(rn);const kPe=OPe;function jQ(e,t){var r=[],n=e.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=Fh(i,e);if(o==null||o<0||Ne(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,v=i.mapDimension(d),p=[];p[h]=i.get(v,o),p[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(i.getValues(Fe(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var q6=Pr();function NPe(e,t,r){var n=e.currTrigger,a=[e.x,e.y],i=e,o=e.dispatchAction||ot(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){lS(a)&&(a=jQ({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=lS(a),u=i.axesInfo,c=s.axesInfo,f=n==="leave"||lS(a),d={},h={},v={list:[],map:{}},p={showPointer:zt(FPe,h),showTooltip:zt(VPe,v)};W(s.coordSysMap,function(m,y){var _=l||m.containPoint(a);W(s.coordSysAxesInfo[y],function(w,x){var S=w.axis,T=UPe(u,w);if(!f&&_&&(!u||T)){var A=T&&T.value;A==null&&!l&&(A=S.pointToData(a)),A!=null&&Q6(w,A,p,!1,d)}})});var g={};return W(c,function(m,y){var _=m.linkGroup;_&&!h[y]&&W(_.axesInfo,function(w,x){var S=h[x];if(w!==m&&S){var T=S.value;_.mapper&&(T=m.axis.scale.parse(_.mapper(T,J6(w),J6(m)))),g[m.key]=T}})}),W(g,function(m,y){Q6(c[y],m,p,!0,d)}),zPe(h,c,d),HPe(v,a,e,o),GPe(c,o,r),d}}function Q6(e,t,r,n,a){var i=e.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=BPe(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&Ie(a,s[0]),!n&&e.snap&&i.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function BPe(e,t){var r=t.axis,n=r.dim,a=e,i=[],o=Number.MAX_VALUE,s=-1;return W(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,r);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var v=e-f,p=Math.abs(v);p<=o&&((p=0&&s<0)&&(o=p,s=v,a=f,i.length=0),W(d,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function FPe(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function VPe(e,t,r,n){var a=r.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=J0(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:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function zPe(e,t,r){var n=r.axesInfo=[];W(t,function(a,i){var o=a.axisPointerModel.option,s=e[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function HPe(e,t,r,n){if(lS(t)||!e.list.length){n({type:"hideTip"});return}var a=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}function GPe(e,t,r){var n=r.getZr(),a="axisPointerLastHighlights",i=q6(n)[a]||{},o=q6(n)[a]={};W(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&W(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];W(i,function(u,c){!o[c]&&l.push(u)}),W(o,function(u,c){!i[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function UPe(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function J6(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function lS(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function S1(e){ov.registerAxisPointerClass("CartesianAxisPointer",CPe),e.registerComponentModel(MPe),e.registerComponentView(kPe),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!Ne(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=Ixe(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},NPe)}function $Pe(e){Dt(yq),Dt(S1)}var WPe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){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(n),d=i.get("type");if(d&&d!=="none"){var h=vN(i),v=jPe[d](s,l,f,c);v.style=h,r.graphicKey=v.type,r.pointer=v}var p=i.get(["label","margin"]),g=YPe(n,a,i,l,p);GQ(r,a,i,o,g)},t}(hN);function YPe(e,t,r,n,a){var i=t.axis,o=i.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,f;if(i.dim==="radius"){var d=lo();Of(d,d,s),Zs(d,d,[n.cx,n.cy]),u=Us([o,-a],d);var h=t.getModel("axisLabel").get("rotate")||0,v=Wu.innerTextLayout(s,h*Math.PI/180,-1);c=v.textAlign,f=v.textVerticalAlign}else{var p=l[1];u=n.coordToPoint([p+a,o]);var g=n.cx,m=n.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 jPe={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:gN(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n){var a=Math.max(1,e.getBandWidth()),i=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:j6(t.cx,t.cy,n[0],n[1],(-r-a/2)*i,(-r+a/2)*i)}:{type:"Sector",shape:j6(t.cx,t.cy,r-a/2,r+a/2,0,Math.PI*2)}}};const KPe=WPe;var XPe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,a=this.ecModel;return a.eachComponent(r,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(sr);const ZPe=XPe;var mN=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ia).models[0]},t.type="polarAxis",t}(sr);Kn(mN,rm);var qPe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}(mN),QPe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}(mN),yN=function(e){De(t,e);function t(r,n){return e.call(this,"radius",r,n)||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t}(gi);yN.prototype.dataToRadius=gi.prototype.dataToCoord;yN.prototype.radiusToData=gi.prototype.coordToData;const JPe=yN;var eLe=Pr(),_N=function(e){De(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),a=r.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),c=r1(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var h=Math.max(0,Math.floor(d)),v=eLe(r.model),p=v.lastAutoInterval,g=v.lastTickCount;return p!=null&&g!=null&&Math.abs(p-h)<=1&&Math.abs(g-o)<=1&&p>h?h=p:(v.lastTickCount=o,v.lastAutoInterval=h),h},t}(gi);_N.prototype.dataToAngle=gi.prototype.dataToCoord;_N.prototype.angleToData=gi.prototype.coordToData;const tLe=_N;var KQ=["radius","angle"],rLe=function(){function e(t){this.dimensions=KQ,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new JPe,this._angleAxis=new tLe,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===t&&r.push(n),a.scale.type===t&&r.push(a),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)])},e.prototype.pointToData=function(t,r){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,c=us;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var r=t[0],n=t[1]/180*Math.PI,a=Math.cos(n)*r+this.cx,i=-Math.sin(n)*r+this.cy;return[a,i]},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var a=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,d=this.r0;return c<=f*f&&c>=d*d}}},e.prototype.convertToPixel=function(t,r,n){var a=e8(r);return a===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var a=e8(r);return a===this?this.pointToData(n):null},e}();function e8(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}const nLe=rLe;function aLe(e,t,r){var n=t.get("center"),a=r.getWidth(),i=r.getHeight();e.cx=Je(n[0],a),e.cy=Je(n[1],i);var o=e.getRadiusAxis(),s=Math.min(a,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:Ne(l)||(l=[0,l]);var u=[Je(l[0],s),Je(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function iLe(e,t){var r=this,n=r.getAngleAxis(),a=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();W(kx(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),W(kx(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Gh(n.scale,n.model),Gh(a.scale,a.model),n.type==="category"&&!n.onBand){var i=n.getExtent(),o=360/n.scale.count();n.inverse?i[1]+=o:i[1]-=o,n.setExtent(i[0],i[1])}}function oLe(e){return e.mainType==="angleAxis"}function t8(e,t){if(e.type=t.get("type"),e.scale=h1(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),oLe(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle");e.setExtent(r,r+(e.inverse?-360:360))}t.axis=e,e.model=t}var sLe={dimensions:KQ,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,a){var i=new nLe(a+"");i.update=iLe;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");t8(o,l),t8(s,u),aLe(i,n,t),r.push(i),n.coordinateSystem=i,i.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",ia).models[0];n.coordinateSystem=a.coordinateSystem}}),r}};const lLe=sLe;var uLe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Kb(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),a=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function Xb(e){var t=e.getRadiusAxis();return t.inverse?0:1}function r8(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var cLe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var a=r.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=Fe(a.getViewLabels(),function(c){c=Pt(c);var f=a.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(d),c});r8(u),r8(s),W(uLe,function(c){r.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&fLe[c](this.group,r,i,s,l,o,u)},this)}},t.type="angleAxis",t}(ov),fLe={axisLine:function(e,t,r,n,a,i){var o=t.getModel(["axisLine","lineStyle"]),s=Xb(r),l=s?0:1,u;i[l]===0?u=new Qs({shape:{cx:r.cx,cy:r.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new i1({shape:{cx:r.cx,cy:r.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,e.add(u)},axisTick:function(e,t,r,n,a,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Xb(r)],u=Fe(n,function(c){return new Ta({shape:Kb(r,[l,l+s],c.coord)})});e.add(bo(u,{style:yt(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,a,i){if(a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Xb(r)],c=[],f=0;fm?"left":"right",w=Math.abs(g[1]-y)/p<.3?"middle":g[1]>y?"top":"bottom";if(s&&s[v]){var x=s[v];Mt(x)&&x.textStyle&&(h=new $r(x.textStyle,l,l.ecModel))}var S=new pr({silent:Wu.isLabelSilent(t),style:Xr(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:_,verticalAlign:w})});if(e.add(S),c){var T=Wu.makeAxisEventDataBase(t);T.targetType="axisLabel",T.value=f.rawLabel,Ht(S).eventData=T}},this)},splitLine:function(e,t,r,n,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f=0?"p":"n",P=T;x&&(n[c][E]||(n[c][E]={p:T,n:T}),P=n[c][E][D]);var L=void 0,I=void 0,O=void 0,R=void 0;if(v.dim==="radius"){var B=v.dataToCoord(M)-T,k=l.dataToCoord(E);Math.abs(B)=R})}}})}function bLe(e){var t={};W(e,function(n,a){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=ZQ(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;t[l]=f;var h=XQ(n);d[h]||f.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var v=Je(n.get("barWidth"),c),p=Je(n.get("barMaxWidth"),c),g=n.get("barGap"),m=n.get("barCategoryGap");v&&!d[h].width&&(v=Math.min(f.remainedWidth,v),d[h].width=v,f.remainedWidth-=v),p&&(d[h].maxWidth=p),g!=null&&(f.gap=g),m!=null&&(f.categoryGap=m)});var r={};return W(t,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=Je(n.categoryGap,o),l=Je(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),W(i,function(p,g){var m=p.maxWidth;m&&m=r.y&&t[1]<=r.y+r.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=r.y&&t[0]<=r.y+r.height},e.prototype.pointToData=function(t){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(t[r.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var r=this.getAxis(),n=this.getRect(),a=[],i=r.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[i]=r.toGlobalCoord(r.dataToCoord(+t)),a[1-i]=i===0?n.y+n.height/2:n.x+n.width/2,a},e.prototype.convertToPixel=function(t,r,n){var a=n8(r);return a===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var a=n8(r);return a===this?this.pointToData(n):null},e}();function n8(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function RLe(e,t){var r=[];return e.eachComponent("singleAxis",function(n,a){var i=new ILe(n,e,t);i.name="single_"+a,i.resize(n,t),n.coordinateSystem=i,r.push(i)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",ia).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),r}var OLe={create:RLe,dimensions:QQ};const kLe=OLe;var a8=["x","y"],NLe=["width","height"],BLe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.coordinateSystem,u=dM(l,1-Zx(s)),c=l.dataToPoint(n)[0],f=i.get("type");if(f&&f!=="none"){var d=vN(i),h=FLe[f](s,c,u);h.style=d,r.graphicKey=h.type,r.pointer=h}var v=ML(a);$Q(n,r,v,a,i,o)},t.prototype.getHandleTransform=function(r,n,a){var i=ML(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pN(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.coordinateSystem,l=Zx(o),u=dM(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=dM(s,1-l),d=(f[1]+f[0])/2,h=[d,d];return h[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(hN),FLe={line:function(e,t,r){var n=gN([t,r[0]],[t,r[1]],Zx(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=e.getBandWidth(),a=r[1]-r[0];return{type:"Rect",shape:WQ([t-n/2,r[0]],[n,a],Zx(e))}}};function Zx(e){return e.isHorizontal()?0:1}function dM(e,t){var r=e.getRect();return[r[a8[t]],r[a8[t]]+r[NLe[t]]]}const VLe=BLe;var zLe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="single",t}(rn);function HLe(e){Dt(S1),ov.registerAxisPointerClass("SingleAxisPointer",VLe),e.registerComponentView(zLe),e.registerComponentView(DLe),e.registerComponentModel(fM),rg(e,"single",fM,fM.defaultOption),e.registerCoordinateSystem("single",kLe)}var GLe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,a){var i=jg(r);e.prototype.init.apply(this,arguments),i8(r,i)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),i8(this.option,r)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(sr);function i8(e,t){var r=e.cellSize,n;Ne(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var a=Fe([0,1],function(i){return Wye(t,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});_f(e,t,{type:"box",ignoreSize:a})}const ULe=GLe;var $Le=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=this.group;i.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,i),this._renderLines(r,s,l,i),this._renderYearText(r,s,l,i),this._renderMonthText(r,u,l,i),this._renderWeekText(r,u,s,l,i)},t.prototype._renderDayRect=function(r,n,a){for(var i=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=n.start.time;u<=n.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,f=new br({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(f)}},t.prototype._renderLines=function(r,n,a,i){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,d=0;f.time<=n.end.time;d++){v(f.formatedDate),d===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=s.getDateInfo(h)}v(s.getNextNDay(n.end.time,1).formatedDate);function v(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var g=o._getLinePointsOfOneWeek(r,p,a);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},t.prototype._getEdgesPoints=function(r,n,a){var i=[r[0].slice(),r[r.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-n/2,i[1][o]=i[1][o]+n/2,i},t.prototype._drawSplitline=function(r,n,a){var i=new Fi({z2:20,shape:{points:r},style:n});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(r,n,a){for(var i=r.coordinateSystem,o=i.getDateInfo(n),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([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(r,n){return rt(r)&&r?Gye(r,n):Tt(r)?r(n):n.nameMap},t.prototype._yearTextPositionControl=function(r,n,a,i,o){var s=n[0],l=n[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(r,n,a,i){var o=r.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.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,h={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},v=n.start.y;+n.end.y>+n.start.y&&(v=v+"-"+n.end.y);var p=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:v},m=this._formatterLabel(p,g),y=new pr({z2:30,style:Xr(o,{text:m})});y.attr(this._yearTextPositionControl(y,h[l],a,l,s)),i.add(y)}},t.prototype._monthTextPositionControl=function(r,n,a,i,o){var s="left",l="top",u=r[0],c=r[1];return a==="horizontal"?(c=c+o,n&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(r,n,a,i){var o=r.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||rt(s))&&(s&&(n=VP(s)||n),s=n.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var v=c==="center",p=0;p=a.start.time&&n.times.end.time&&r.reverse(),r},e.prototype._getRangeInfo=function(t){var r=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var a=Math.floor(r[1].time/hM)-Math.floor(r[0].time/hM)+1,i=new Date(r[0].time),o=i.getDate(),s=r[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-r[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-r[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+r[0].day+6)/7),f=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:a,weeks:c,nthWeek:f,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(t,r,n){var a=this._getRangeInfo(n);if(t>a.weeks||t===0&&ra.lweek)return null;var i=(t-1)*7-a.fweek+r,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",function(a){var i=new e(a);n.push(i),a.coordinateSystem=i}),t.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=n[a.get("calendarIndex")||0])}),n},e.dimensions=["time","value"],e}();function o8(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}const jLe=YLe;function KLe(e){e.registerComponentModel(ULe),e.registerComponentView(WLe),e.registerCoordinateSystem("calendar",jLe)}function XLe(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function s8(e,t){var r;return W(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function ZLe(e,t,r){var n=Ie({},r),a=e[t],i=r.$action||"merge";i==="merge"?a?(st(a,n,!0),_f(a,n,{ignoreSize:!0}),LK(r,a),Zb(r,a),Zb(r,a,"shape"),Zb(r,a,"style"),Zb(r,a,"extra"),r.clipPath=a.clipPath):e[t]=n:i==="replace"?e[t]=n:i==="remove"&&a&&(e[t]=null)}var JQ=["transition","enterFrom","leaveTo"],qLe=JQ.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Zb(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?JQ:qLe,a=0;a=0;c--){var f=a[c],d=ha(f.id,null),h=d!=null?o.get(d):null;if(h){var v=h.parent,m=Uo(v),y=v===i?{width:s,height:l}:{width:m.width,height:m.height},_={},w=GA(h,f,y,null,{hv:f.hv,boundingMode:f.bounding},_);if(!Uo(h).isNew&&w){for(var x=f.transition,S={},T=0;T=0)?S[A]=C:h[A]=C}Lr(h,S,r,0)}else h.attr(_)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(a){uS(a,Uo(a).option,n,r._lastGraphicModel)}),this._elMap=_t()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(rn);function DL(e){var t=lt(l8,e)?l8[e]:OA(e),r=new t({});return Uo(r).type=e,r}function u8(e,t,r,n){var a=DL(r);return t.add(a),n.set(e,a),Uo(a).id=e,Uo(a).isNew=!0,a}function uS(e,t,r,n){var a=e&&e.parent;a&&(e.type==="group"&&e.traverse(function(i){uS(i,t,r,n)}),lT(e,t,n),r.removeKey(Uo(e).id))}function c8(e,t,r,n){e.isGroup||W([["cursor",ss.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(a){var i=a[0];lt(t,i)?e[i]=Qt(t[i],a[1]):e[i]==null&&(e[i]=a[1])}),W(vr(t),function(a){if(a.indexOf("on")===0){var i=t[a];e[a]=Tt(i)?i:null}}),lt(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function tIe(e){return e=Ie({},e),W(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(PK),function(t){delete e[t]}),e}function rIe(e,t,r){var n=Ht(e).eventData;!e.silent&&!e.ignore&&!n&&(n=Ht(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function nIe(e){e.registerComponentModel(JLe),e.registerComponentView(eIe),e.registerPreprocessor(function(t){var r=t.graphic;Ne(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var f8=["x","y","radius","angle","single"],aIe=["cartesian2d","polar","singleAxis"];function iIe(e){var t=e.get("coordinateSystem");return tr(aIe,t)>=0}function Zc(e){return e+"Axis"}function oIe(e,t){var r=_t(),n=[],a=_t();e.eachComponent({mainType:"dataZoom",query:t},function(c){a.get(c.uid)||s(c)});var i;do i=!1,e.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,h){var v=r.get(d);v&&v[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(r.get(f)||r.set(f,[]))[d]=!0})}return n}function eJ(e){var t=e.ecModel,r={infoList:[],infoMap:_t()};return e.eachTargetAxis(function(n,a){var i=t.getComponent(Zc(n),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(i)}}}),r}var vM=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}(),sIe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,a){var i=d8(r);this.settledOption=i,this.mergeDefaultAndTheme(r,a),this._doInit(i)},t.prototype.mergeOption=function(r){var n=d8(r);st(this.option,r,!0),st(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var a=this.settledOption;W([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=_t(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return W(f8,function(a){var i=this.getReferringComponents(Zc(a),Tge);if(i.specified){n=!0;var o=new vM;W(i.models,function(s){o.add(s.componentIndex)}),r.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new vM;if(d.add(f.componentIndex),r.set(c,d),i=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",ia).models[0];h&&W(u,function(v){f.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",ia).models[0]&&d.add(v.componentIndex)})}}}i&&W(f8,function(u){if(i){var c=a.findComponents({mainType:Zc(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new vM;f.add(c[0].componentIndex),r.set(u,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,a=this.get("rangeMode");W([["start","startValue"],["end","endValue"]],function(i,o){var s=r[i[0]]!=null,l=r[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,a){r==null&&(r=this.ecModel.getComponent(Zc(n),a))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(a,i){W(a.indexList,function(o){r.call(n,i,o)})})},t.prototype.getAxisProxy=function(r,n){var a=this.getAxisModel(r,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){var a=this._targetAxisInfoMap.get(r);if(a&&a.indexMap[n])return this.ecModel.getComponent(Zc(r),n)},t.prototype.setRawRange=function(r){var n=this.option,a=this.settledOption;W([["start","startValue"],["end","endValue"]],function(i){(r[i[0]]!=null||r[i[1]]!=null)&&(n[i[0]]=a[i[0]]=r[i[0]],n[i[1]]=a[i[1]]=r[i[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;W(["start","startValue","end","endValue"],function(a){n[a]=r[a]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!w&&!x)return!0;_&&(g=!0),w&&(v=!0),x&&(p=!0)}return g&&v&&p})}else np(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(p){return s(p)?p:NaN}));else{var v={};v[h]=o,u.selectRange(v)}});np(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;np(["min","max"],function(a){var i=r.get(a+"Span"),o=r.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Vr(n[0]+o,n,[0,100],!0):i!=null&&(o=Vr(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var a=xO(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;r[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),r[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},e}();function vIe(e,t,r){var n=[1/0,-1/0];np(r,function(o){Rbe(n,o.getData(),t)});var a=e.getAxisModel(),i=dZ(a.axis.scale,a,n).calculate();return[i.min,i.max]}const pIe=hIe;var gIe={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=e.getComponent(Zc(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var r=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new pIe(a,i,s,e),r.push(o.__dzAxisProxy))});var n=_t();return W(r,function(a){W(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).reset(r)}),r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();r.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const mIe=gIe;function yIe(e){e.registerAction("dataZoom",function(t,r){var n=oIe(r,t);W(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var v8=!1;function wN(e){v8||(v8=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,mIe),yIe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function _Ie(e){e.registerComponentModel(uIe),e.registerComponentView(dIe),wN(e)}var jo=function(){function e(){}return e}(),tJ={};function ap(e,t){tJ[e]=t}function rJ(e){return tJ[e]}var bIe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;W(this.option.feature,function(n,a){var i=rJ(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(r)),st(n,i.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:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(sr);const wIe=bIe;function SIe(e,t,r){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:r.getWidth(),height:r.getHeight()},o=kn(n,i,a);Sh(t.get("orient"),e,t.get("itemGap"),o.width,o.height),GA(e,n,i,a)}function nJ(e,t){var r=nv(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new br({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var xIe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a,i){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},c=this._features||(this._features={}),f=[];W(u,function(v,p){f.push(p)}),new Uu(this._featureNames||[],f).add(d).update(d).remove(zt(d,null)).execute(),this._featureNames=f;function d(v,p){var g=f[v],m=f[p],y=u[g],_=new $r(y,r,r.ecModel),w;if(i&&i.newTitle!=null&&i.featureName===g&&(y.title=i.newTitle),g&&!m){if(AIe(g))w={onclick:_.option.onclick,featureName:g};else{var x=rJ(g);if(!x)return;w=new x}c[g]=w}else if(w=c[m],!w)return;w.uid=Yg("toolbox-feature"),w.model=_,w.ecModel=n,w.api=a;var S=w instanceof jo;if(!g&&m){S&&w.dispose&&w.dispose(n,a);return}if(!_.get("show")||S&&w.unusable){S&&w.remove&&w.remove(n,a);return}h(_,w,g),_.setIconStatus=function(T,A){var C=this.option,M=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[T]=A,M[T]&&(A==="emphasis"?Hu:Gu)(M[T])},w instanceof jo&&w.render&&w.render(_,n,a,i)}function h(v,p,g){var m=v.getModel("iconStyle"),y=v.getModel(["emphasis","iconStyle"]),_=p instanceof jo&&p.getIcons?p.getIcons():v.get("icon"),w=v.get("title")||{},x,S;rt(_)?(x={},x[g]=_):x=_,rt(w)?(S={},S[g]=w):S=w;var T=v.iconPaths={};W(x,function(A,C){var M=Ug(A,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(m.getItemStyle());var E=M.ensureState("emphasis");E.style=y.getItemStyle();var D=new pr({style:{text:S[C],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});M.setTextContent(D),$g({el:M,componentModel:r,itemName:C,formatterParamsExtra:{title:S[C]}}),M.__title=S[C],M.on("mouseover",function(){var P=y.getItemStyle(),L=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";D.setStyle({fill:y.get("textFill")||P.fill||P.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),M.setTextConfig({position:y.get("textPosition")||L}),D.ignore=!r.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",C])!=="emphasis"&&a.leaveEmphasis(this),D.hide()}),(v.get(["iconStatus",C])==="emphasis"?Hu:Gu)(M),o.add(M),M.on("click",ot(p.onclick,p,n,a,C)),T[C]=M})}SIe(o,r,a),o.add(nJ(o.getBoundingRect(),r)),l||o.eachChild(function(v){var p=v.__title,g=v.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),y=v.getTextContent(),_=y&&y.ensureState("emphasis");if(_&&!Tt(_)&&p){var w=_.style||(_.style={}),x=r1(p,pr.makeFont(w)),S=v.x+o.x,T=v.y+o.y+s,A=!1;T+x.height>a.getHeight()&&(m.position="top",A=!0);var C=A?-5-x.height:s+10;S+x.width/2>a.getWidth()?(m.position=["100%",C],w.align="right"):S-x.width/2<0&&(m.position=[0,C],w.align="left")}})},t.prototype.updateView=function(r,n,a,i){W(this._features,function(o){o instanceof jo&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(r,n){W(this._features,function(a){a instanceof jo&&a.remove&&a.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){W(this._features,function(a){a instanceof jo&&a.dispose&&a.dispose(r,n)})},t.type="toolbox",t}(rn);function AIe(e){return e.indexOf("my")===0}const TIe=xIe;var CIe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var a=this.model,i=a.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=Cr.browser;if(Tt(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+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||o){var d=l.split(","),h=d[0].indexOf("base64")>-1,v=o?decodeURIComponent(d[1]):d[1];h&&(v=window.atob(v));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=v.length,m=new Uint8Array(g);g--;)m[g]=v.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var w=_.contentWindow,x=w.document;x.open("image/svg+xml","replace"),x.write(v),x.close(),w.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var S=a.get("lang"),T='',A=window.open();A.document.write(T),A.document.title=i}},t.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(jo);const EIe=CIe;var p8="__ec_magicType_stack__",MIe=[["line","bar"],["stack"]],DIe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),a={};return W(r.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(r,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(g8[a]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,v=g8[a](d,h,f,i);v&&(yt(v,f.option),s.series.push(v));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",_=f.getReferringComponents(y,ia).models[0],w=_.componentIndex;s[y]=s[y]||[];for(var x=0;x<=w;x++)s[y][w]=s[y][w]||{};s[y][w].boundaryGap=a==="bar"}}};W(MIe,function(f){tr(f,a)>=0&&W(f,function(d){i.setIconStatus(d,"normal")})}),i.setIconStatus(a,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=st({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(jo),g8={line:function(e,t,r,n){if(e==="bar")return st({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,r,n){if(e==="line")return st({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var a=r.get("stack")===p8;if(e==="line"||e==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),st({id:t,stack:a?"":p8},n.get(["option","stack"])||{},!0)}};il({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const PIe=DIe;var uT=new Array(60).join("-"),ig=" ";function LIe(e){var t={},r=[],n=[];return e.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else r.push(a)}else r.push(a)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function IIe(e){var t=[];return W(e,function(r,n){var a=r.categoryAxis,i=r.valueAxis,o=i.dim,s=[" "].concat(Fe(r.series,function(h){return h.name})),l=[a.model.getCategories()];W(r.series,function(h){var v=h.getRawData();l.push(h.getRawData().mapArray(v.mapDimension(o),function(p){return p}))});for(var u=[s.join(ig)],c=0;c=0)return!0}var PL=new RegExp("["+ig+"]+","g");function NIe(e){for(var t=e.split(/\n+/g),r=qx(t.shift()).split(PL),n=[],a=Fe(r,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=r[i];if(o[a])break}if(i<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();r[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),r.push(t)}function UIe(e){var t=SN(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return aJ(r,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function $Ie(e){iJ(e).snapshots=null}function WIe(e){return SN(e).length}function SN(e){var t=iJ(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var YIe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){$Ie(r),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(jo);il({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const jIe=YIe;var KIe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],XIe=function(){function e(t,r,n){var a=this;this._targetInfoList=[];var i=m8(r,t);W(ZIe,function(o,s){(!n||!n.include||tr(n.include,s)>=0)&&o(i,a._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=pM[n.brushType](0,i,a);n.__rangeOffset={offset:w8[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){W(t,function(a){var i=this.findTargetInfo(a,r);i&&i!==!0&&W(i.coordSyses,function(o){var s=pM[a.brushType](1,o,a.range,!0);n(a,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){W(t,function(n){var a=this.findTargetInfo(n,r);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=pM[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?w8[n.brushType](i.values,o.offset,qIe(i.xyMinMax,o.xyMinMax)):i.values}},this)},e.prototype.makePanelOpts=function(t,r){return Fe(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:dQ(a),isTargetByCursor:vQ(a,t,n.coordSysModel),getLinearBrushOtherExtent:hQ(a)}})},e.prototype.controlSeries=function(t,r,n){var a=this.findTargetInfo(t,n);return a===!0||a&&tr(a.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,a=m8(r,t),i=0;ie[1]&&e.reverse(),e}function m8(e,t){return Wy(e,t,{includeMainTypes:KIe})}var ZIe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,a=e.gridModels,i=_t(),o={},s={};!r&&!n&&!a||(W(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),W(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),W(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];W(u.getCartesians(),function(f,d){(tr(r,f.getAxis("x").model)>=0||tr(n,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:_8.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){W(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:_8.geo})})}},y8=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,a=e.gridModel;return!a&&r&&(a=r.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],_8={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(uf(e)),t}},pM={lineX:zt(b8,0),lineY:zt(b8,1),rect:function(e,t,r,n){var a=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),i=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),o=[LL([a[0],i[0]]),LL([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=Fe(r,function(o){var s=e?t.pointToData(o,n):t.dataToPoint(o,n);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:i,xyMinMax:a}}};function b8(e,t,r,n){var a=r.getAxis(["x","y"][e]),i=LL(Fe([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[e]=i,o[1-e]=[NaN,NaN],{values:i,xyMinMax:o}}var w8={lineX:zt(S8,0),lineY:zt(S8,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return Fe(e,function(n,a){return[n[0]-r[0]*t[a][0],n[1]-r[1]*t[a][1]]})}};function S8(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function qIe(e,t){var r=x8(e),n=x8(t),a=[r[0]/n[0],r[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function x8(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const xN=XIe;var IL=W,QIe=bge("toolbox-dataZoom_"),JIe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a,i){this._brushController||(this._brushController=new nN(a.getZr()),this._brushController.on("brush",ot(this._onBrush,this)).mount()),rRe(r,n,this,i,a),tRe(r,n)},t.prototype.onclick=function(r,n,a){eRe[a].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new xN(AN(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,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)}}),GIe(i,a),this._dispatchZoomAction(a);function s(u,c,f){var d=c.getAxis(u),h=d.model,v=l(u,h,i),p=v.findRepresentativeAxisProxy(h).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(f=sv(0,f.slice(),d.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),v&&(a[v.id]={dataZoomId:v.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var v=h.getAxisModel(u,c.componentIndex);v&&(d=h)}),d}},t.prototype._dispatchZoomAction=function(r){var n=[];IL(r,function(a,i){n.push(Pt(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(jo),eRe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(UIe(this.ecModel))}};function AN(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 tRe(e,t){e.setIconStatus("back",WIe(t)>1?"emphasis":"normal")}function rRe(e,t,r,n,a){var i=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=i,e.setIconStatus("zoom",i?"emphasis":"normal");var o=new xN(AN(e),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}qye("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),a=[],i=AN(n),o=Wy(e,i);IL(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),IL(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:QIe+u+f};d[c]=f,a.push(d)}return a});const nRe=JIe;function aRe(e){e.registerComponentModel(wIe),e.registerComponentView(TIe),ap("saveAsImage",EIe),ap("magicType",PIe),ap("dataView",HIe),ap("dataZoom",nRe),ap("restore",jIe),Dt(_Ie)}var iRe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(sr);const oRe=iRe;function oJ(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function sJ(e){if(Cr.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+a,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-f)/2)*100)/100;s+=";"+i+":-"+h+"px";var v=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'
'}function hRe(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,a="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,a+=Cr.transformSupported?","+TN+n:",left"+n+",top"+n),uRe+":"+a}function A8(e,t,r){var n=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!Cr.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=Cr.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return r?"top:0;left:0;"+TN+":"+o+";":[["top",0],["left",0],[lJ,o]]}function vRe(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var a=e.get("textShadowColor"),i=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),W(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function pRe(e,t,r){var n=[],a=e.get("transitionDuration"),i=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=cX(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&a&&n.push(hRe(a,r)),i&&n.push("background-color:"+i),W(["width","color","radius"],function(h){var v="border-"+h,p=KO(v),g=e.get(p);g!=null&&n.push(v+":"+g+(h==="color"?"":"px"))}),n.push(vRe(c)),f!=null&&n.push("padding:"+nv(f).join("px ")+"px"),n.join(";")+";"}function T8(e,t,r,n,a){var i=t&&t.painter;if(r){var o=i&&i.getViewportRoot();o&&Fve(e,o,document.body,n,a)}else{e[0]=n,e[1]=a;var s=i&&i.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var gRe=function(){function e(t,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Cr.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;T8(this._styleCoord,i,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(a):t.appendChild(a),this._container=t;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();zo(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var r=this._container,n=lRe(r,"position"),a=r.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=cRe+pRe(t,!this._firstShow,this._longHide)+A8(i[0],i[1],!0)+("border-color:"+Hh(r)+";")+(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,r,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(rt(i)&&n.get("trigger")==="item"&&!oJ(n)&&(s=dRe(n,a,i)),rt(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Ne(t)||(t=[t]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,i=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(r,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,a,i){if(!(i.from===this.uid||Cr.node||!a.getDom())){var o=M8(i,a);this._ticket="";var s=i.dataByCoordSys,l=TRe(i,n,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:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=bRe;c.x=i.x,c.y=i.y,c.update(),Ht(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,a,i))return;var f=jQ(i,n),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(M8(i,a))},t.prototype._manuallyAxisShowTip=function(r,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=Ym([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(r,n){var a=r.target,i=this._tooltipModel;if(i){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(a){this._lastDataByCoordSys=null;var s,l;th(a,function(u){if(Ht(u).dataIndex!=null)return s=u,!0;if(Ht(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(r,s,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var a=r.get("showDelay");n=ot(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Ym([n.tooltipOption],i),l=this._renderMode,u=[],c=La("section",{blocks:[],noHeader:!0}),f=[],d=new eE;W(r,function(y){W(y.dataByAxis,function(_){var w=a.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!w||x==null)){var S=UQ(x,w.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=La("section",{header:S,noHeader:!Qo(S),sortBlocks:!0,blocks:[]});c.blocks.push(T),W(_.seriesDataIndices,function(A){var C=a.getSeriesByIndex(A.seriesIndex),M=A.dataIndexInside,E=C.getDataParams(M);if(!(E.dataIndex<0)){E.axisDim=_.axisDim,E.axisIndex=_.axisIndex,E.axisType=_.axisType,E.axisId=_.axisId,E.axisValue=Tk(w.axis,{value:x}),E.axisValueLabel=S,E.marker=d.makeTooltipMarker("item",Hh(E.color),l);var D=vF(C.formatTooltip(M,!0,null)),P=D.frag;if(P){var L=Ym([C],i).get("valueFormatter");T.blocks.push(L?Ie({valueFormatter:L},P):P)}D.text&&f.push(D.text),u.push(E)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,v=s.get("order"),p=bF(c,d,l,v,a.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?` `:"
",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,a){var i=this._ecModel,o=Ht(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,v=r.positionDefault,p=Ym([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),y=new eE;m.marker=y.makeTooltipMarker("item",Hh(m.color),h);var _=vF(u.formatTooltip(c,!1,f)),w=p.get("order"),x=p.get("valueFormatter"),S=_.frag,T=S?bF(x?Ie({valueFormatter:x},S):S,y,h,w,i.get("useUTC"),p.get("textStyle")):_.text,A="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,T,m,A,r.offsetX,r.offsetY,r.position,r.target,y)}),a({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,a){var i=Ht(n),o=i.tooltipConfig,s=o.option||{};if(rt(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=r.positionDefault,d=Ym(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),v=Math.random()+"",p=new eE;this._showOrMove(d,function(){var g=Pt(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,v,r.offsetX,r.offsetY,r.position,n,p)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,a,i,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var h=n,v=this._getNearestPoint([o,s],a,r.get("trigger"),r.get("borderColor")),p=v.color;if(d)if(rt(d)){var g=r.ecModel.get("useUTC"),m=Ne(a)?a[0]:a,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=c1(m.axisValue,h,g)),h=HA(h,a,!0)}else if(Tt(d)){var _=ot(function(w,x){w===this._ticket&&(f.setContent(x,c,r,p,l),this._updatePosition(r,l,o,s,f,a,u))},this);this._ticket=i,h=d(a,i,_)}else h=d;f.setContent(h,c,r,p,l),f.show(r,p),this._updatePosition(r,l,o,s,f,a,u)}},t.prototype._getNearestPoint=function(r,n,a,i){if(a==="axis"||Ne(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!Ne(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Tt(n)&&(n=n([a,i],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()})),Ne(n))a=Je(n[0],u),i=Je(n[1],c);else if(Mt(n)){var p=n;p.width=f[0],p.height=f[1];var g=kn(p,{width:u,height:c});a=g.x,i=g.y,d=null,h=null}else if(rt(n)&&l){var m=ARe(n,v,f,r.get("borderWidth"));a=m[0],i=m[1]}else{var m=SRe(a,i,o,u,c,d?null:20,h?null:20);a=m[0],i=m[1]}if(d&&(a-=D8(d)?f[0]/2:d==="right"?f[0]:0),h&&(i-=D8(h)?f[1]/2:h==="bottom"?f[1]:0),oJ(r)){var m=xRe(a,i,o,u,c);a=m[0],i=m[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===r.length;return o&&W(a,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&W(u,function(d,h){var v=f[h]||{},p=d.seriesDataIndices||[],g=v.seriesDataIndices||[];o=o&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&p.length===g.length,o&&W(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&W(d.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],w=i[y];_&&w&&w.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){Cr.node||!n.getDom()||(Y0(this,"_updatePosition"),this._tooltipContent.dispose(),EL("itemTooltip",n))},t.type="tooltip",t}(rn);function Ym(e,t,r){var n=t.ecModel,a;r?(a=new $r(r,n,n),a=new $r(t.option,a,n)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof $r&&(o=o.get("tooltip",!0)),rt(o)&&(o={formatter:o}),o&&(a=new $r(o,a,n)))}return a}function M8(e,t){return e.dispatchAction||ot(t.dispatchAction,t)}function SRe(e,t,r,n,a,i,o){var s=r.getSize(),l=s[0],u=s[1];return i!=null&&(e+l+i+2>n?e-=l+i:e+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[e,t]}function xRe(e,t,r,n,a){var i=r.getSize(),o=i[0],s=i[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function ARe(e,t,r,n){var a=r[0],i=r[1],o=Math.ceil(Math.SQRT2*n)+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-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+c+o;break;case"left":s=t.x-a-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function D8(e){return e==="center"||e==="middle"}function TRe(e,t,r){var n=MO(e).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=n1(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=Ht(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const CRe=wRe;function ERe(e){Dt(S1),e.registerComponentModel(oRe),e.registerComponentView(CRe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Wn),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Wn)}var MRe=["rect","polygon","keep","clear"];function DRe(e,t){var r=tn(e?e.brush:[]);if(r.length){var n=[];W(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var a=e&&e.toolbox;Ne(a)&&(a=a[0]),a||(a={feature:{}},e.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),PRe(s),t&&!s.length&&s.push.apply(s,MRe)}}function PRe(e){var t={};W(e,function(r){t[r]=1}),e.length=0,W(t,function(r,n){e.push(n)})}var P8=W;function L8(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function RL(e,t,r){var n={};return P8(t,function(i){var o=n[i]=a();P8(e[i],function(s,l){if(qa.isValidType(l)){var u={type:l,visual:s};r&&r(u,i),o[l]=new qa(u),l==="opacity"&&(u=Pt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new qa(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function cJ(e,t,r){var n;W(r,function(a){t.hasOwnProperty(a)&&L8(t[a])&&(n=!0)}),n&&W(r,function(a){t.hasOwnProperty(a)&&L8(t[a])?e[a]=Pt(t[a]):delete e[a]})}function LRe(e,t,r,n,a,i){var o={};W(e,function(f){var d=qa.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return sk(r,s,f)}function u(f,d){bX(r,s,f,d)}i==null?r.each(c):r.each([i],c);function c(f,d){s=i==null?f:d;var h=r.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var v=n.call(a,f),p=t[v],g=o[v],m=0,y=g.length;mt[0][1]&&(t[0][1]=i[0]),i[1]t[1][1]&&(t[1][1]=i[1])}return t&&N8(t)}};function N8(e){return new Xt(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var VRe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new nN(n.getZr())).on("brush",ot(this._onBrush,this)).mount()},t.prototype.render=function(r,n,a,i){this.model=r,this._updateController(r,n,a,i)},t.prototype.updateTransform=function(r,n,a,i){fJ(n),this._updateController(r,n,a,i)},t.prototype.updateVisual=function(r,n,a,i){this.updateTransform(r,n,a,i)},t.prototype.updateView=function(r,n,a,i){this._updateController(r,n,a,i)},t.prototype._updateController=function(r,n,a,i){(!i||i.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(a)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:Pt(a),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:Pt(a),$from:n})},t.type="brush",t}(rn);const zRe=VRe;var HRe="#ddd",GRe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var a=this.option;!n&&cJ(a,r,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:HRe},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=Fe(r,function(n){return B8(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=B8(this.option,r),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:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(sr);function B8(e,t){return st({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new $r(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const URe=GRe;var $Re=["rect","polygon","lineX","lineY","keep","clear"],WRe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a){var i,o,s;n.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,W(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,a){this.render(r,n,a)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),a={};return W(r.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},t.prototype.onclick=function(r,n,a){var i=this._brushType,o=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:$Re.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:r.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(jo);const YRe=WRe;function jRe(e){e.registerComponentView(zRe),e.registerComponentModel(URe),e.registerPreprocessor(DRe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,ORe),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,r){r.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Wn),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Wn),ap("brush",YRe)}var KRe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(sr),XRe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){if(this.group.removeAll(),!!r.get("show")){var i=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Qt(r.get("textBaseline"),r.get("textVerticalAlign")),c=new pr({style:Xr(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),h=new pr({style:Xr(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);c.silent=!v&&!g,h.silent=!p&&!g,v&&c.on("click",function(){Sx(v,"_"+r.get("target"))}),p&&h.on("click",function(){Sx(p,"_"+r.get("subtarget"))}),Ht(c).eventData=Ht(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(c),d&&i.add(h);var m=i.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=kn(y,{width:a.getWidth(),height:a.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var w={align:l,verticalAlign:u};c.setStyle(w),h.setStyle(w),m=i.getBoundingRect();var x=_.margin,S=r.getItemStyle(["color","opacity"]);S.fill=r.get("backgroundColor");var T=new br({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:r.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});i.add(T)}},t.type="title",t}(rn);function ZRe(e){e.registerComponentModel(KRe),e.registerComponentView(XRe)}var qRe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],a=r.axisType,i=this._names=[],o;a==="category"?(o=[],W(n,function(u,c){var f=ha(zg(u),""),d;Mt(u)?(d=Pt(u),d.value=c):d=c,o.push(d),i.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new Dn([{name:"value",type:s}],this);l.initData(o,i)},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:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(sr);const F8=qRe;var dJ=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline.slider",t.defaultOption=Bf(F8.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(F8);Kn(dJ,nk.prototype);const QRe=dJ;var JRe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(rn);const eOe=JRe;var tOe=function(e){De(t,e);function t(r,n,a,i){var o=e.call(this,r,n,a)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(gi);const rOe=tOe;var mM=Math.PI,V8=Pr(),nOe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.api=n},t.prototype.render=function(r,n,a){if(this.model=r,this.api=a,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var i=this._layout(r,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return La("nameValue",{noName:!0,value:c})},W(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,r)},this),this._renderAxisLabel(i,s,l,r),this._position(i,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var a=r.get(["label","position"]),i=r.get("orient"),o=iOe(r,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:mM/2},f=i==="vertical"?o.height:o.width,d=r.getModel("controlStyle"),h=d.get("show",!0),v=h?d.get("itemSize"):0,p=h?d.get("itemGap"):0,g=v+p,m=r.get(["label","rotate"])||0;m=m*mM/180;var y,_,w,x=d.get("position",!0),S=h&&d.get("showPlayBtn",!0),T=h&&d.get("showPrevBtn",!0),A=h&&d.get("showNextBtn",!0),C=0,M=f;x==="left"||x==="bottom"?(S&&(y=[0,0],C+=g),T&&(_=[C,0],C+=g),A&&(w=[M-v,0],M-=g)):(S&&(y=[M-v,0],M-=g),T&&(_=[0,0],C+=g),A&&(w=[M-v,0],M-=g));var E=[C,M];return r.get("inverse")&&E.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:c[i],labelRotation:m,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[i],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[i],playPosition:y,prevBtnPosition:_,nextBtnPosition:w,axisExtent:E,controlSize:v,controlGap:p}},t.prototype._position=function(r,n){var a=this._mainGroup,i=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=lo(),l=o.x,u=o.y+o.height;Zs(s,s,[-l,-u]),Of(s,s,-mM/2),Zs(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=y(o),f=y(a.getBoundingRect()),d=y(i.getBoundingRect()),h=[a.x,a.y],v=[i.x,i.y];v[0]=h[0]=c[0][0];var p=r.labelPosOpt;if(p==null||rt(p)){var g=p==="+"?0:1;_(h,f,c,1,g),_(v,d,c,1,1-g)}else{var g=p>=0?0:1;_(h,f,c,1,g),v[1]=h[1]+p}a.setPosition(h),i.setPosition(v),a.rotation=i.rotation=r.rotation,m(a),m(i);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 _(w,x,S,T,A){w[T]+=S[T][A]-x[T][A]}},t.prototype._createAxis=function(r,n){var a=n.getData(),i=n.get("axisType"),o=aOe(n,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new rOe("value",o,r.axisExtent,i);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new Ot;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new Ta({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:Ie({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Ta({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:yt({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],W(l,function(u){var c=a.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),p={x:c,y:0,onclick:ot(o._changeTimeline,o,u.value)},g=z8(f,d,n,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=v.getItemStyle(),lf(g);var m=Ht(g);f.get("tooltip")?(m.dataIndex=u.value,m.dataModel=i):m.dataIndex=m.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(r,n,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],W(u,function(c){var f=c.tickValue,d=l.getItemModel(f),h=d.getModel("label"),v=d.getModel(["emphasis","label"]),p=d.getModel(["progress","label"]),g=a.dataToCoord(c.tickValue),m=new pr({x:g,y:0,rotation:r.labelRotation-r.rotation,onclick:ot(o._changeTimeline,o,f),silent:!1,style:Xr(h,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});m.ensureState("emphasis").style=Xr(v),m.ensureState("progress").style=Xr(p),n.add(m),lf(m),V8(m).dataIndex=f,o._tickLabels.push(m)})}},t.prototype._renderControl=function(r,n,a,i){var o=r.controlSize,s=r.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),f=i.get("inverse",!0);d(r.nextBtnPosition,"next",ot(this._changeTimeline,this,f?"-":"+")),d(r.prevBtnPosition,"prev",ot(this._changeTimeline,this,f?"+":"-")),d(r.playPosition,c?"stop":"play",ot(this._handlePlayClick,this,!c),!0);function d(h,v,p,g){if(h){var m=qs(Qt(i.get(["controlStyle",v+"BtnSize"]),o),o),y=[0,-m/2,m,m],_=oOe(i,v+"Icon",y,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,n.add(_),lf(_)}}},t.prototype._renderCurrentPointer=function(r,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=ot(u._handlePointerDrag,u),f.ondragend=ot(u._handlePointerDragend,u),H8(f,u._progressLine,s,a,i,!0)},onUpdate:function(f){H8(f,u._progressLine,s,a,i)}};this._currentPointer=z8(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var a=this._toAxisCoord(r)[0],i=this._axis,o=wo(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(d)),[o,f]}var yM={min:zt(Jb,"min"),max:zt(Jb,"max"),average:zt(Jb,"average"),median:zt(Jb,"median")};function o_(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,a=n&&n.dimensions;if(!vOe(t)&&!Ne(t.coord)&&Ne(a)){var i=vJ(t,r,n,e);if(t=Pt(t),t.type&&yM[t.type]&&i.baseAxis&&i.valueAxis){var o=tr(a,i.baseAxis.dim),s=tr(a,i.valueAxis.dim),l=yM[t.type](r,i.baseDataDim,i.valueDataDim,o,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||!Ne(a))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)yM[u[c]]&&(u[c]=EN(r,r.mapDimension(a[c]),u[c]));return t}}function vJ(e,t,r,n){var a={};return e.valueIndex!=null||e.valueDim!=null?(a.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=r.getAxis(pOe(n,a.valueDataDim)),a.baseAxis=r.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=r.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function pOe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function s_(e,t){return e&&e.containData&&t.coord&&!kL(t)?e.containData(t.coord):!0}function gOe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!kL(t)&&!kL(r)?e.containZone(t.coord,r.coord):!0}function pJ(e,t){return e?function(r,n,a,i){var o=i<2?r.coord&&r.coord[i]:r.value;return ff(o,t[i])}:function(r,n,a,i){return ff(r.value,t[i])}}function EN(e,t,r){if(r==="average"){var n=0,a=0;return e.each(t,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var _M=Pr(),mOe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=_t()},t.prototype.render=function(r,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){_M(s).keep=!1}),n.eachSeries(function(s){var l=xf.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!_M(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(r){_M(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var a=this;W(r,function(i){var o=xf.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?zj(l):OO(l))})}})},t.type="marker",t}(rn);const MN=mOe;function U8(e,t,r){var n=t.coordinateSystem;e.each(function(a){var i=e.getItemModel(a),o,s=Je(i.get("x"),r.getWidth()),l=Je(i.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,a));else if(n){var u=e.get(n.dimensions[0],a),c=e.get(n.dimensions[1],a);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(a,o)})}var yOe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=xf.getMarkerModelFromSeries(i,"markPoint");o&&(U8(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new g1),f=_Oe(o,r,n);n.setData(f),U8(n.getData(),r,i),f.each(function(d){var h=f.getItemModel(d),v=h.getShallow("symbol"),p=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),m=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(Tt(v)||Tt(p)||Tt(g)||Tt(m)){var _=n.getRawValue(d),w=n.getDataParams(d);Tt(v)&&(v=v(_,w)),Tt(p)&&(p=p(_,w)),Tt(g)&&(g=g(_,w)),Tt(m)&&(m=m(_,w))}var x=h.getModel("itemStyle").getItemStyle(),S=f1(l,"color");x.fill||(x.fill=S),f.setItemVisual(d,{symbol:v,symbolSize:p,symbolRotate:g,symbolOffset:m,symbolKeepAspect:y,style:x})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(h){Ht(h).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(MN);function _Oe(e,t,r){var n;e?n=Fe(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Ie(Ie({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Dn(n,r),i=Fe(r.get("data"),zt(o_,t));e&&(i=Yr(i,zt(s_,e)));var o=pJ(!!e,n);return a.initData(i,null,o),a}const bOe=yOe;function wOe(e){e.registerComponentModel(hOe),e.registerComponentView(bOe),e.registerPreprocessor(function(t){CN(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var SOe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,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}(xf);const xOe=SOe;var ew=Pr(),AOe=function(e,t,r,n){var a=e.getData(),i;if(Ne(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=Aa(n.yAxis,n.xAxis);else{var u=vJ(n,a,t,e);s=u.valueAxis;var c=bk(a,u.valueDataDim);l=EN(a,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=Pt(n),v={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,v.coord[d]=1/0;var p=r.get("precision");p>=0&&Mr(l)&&(l=+l.toFixed(Math.min(p,20))),h.coord[f]=v.coord[f]=l,i=[h,v,{type:o,valueIndex:n.valueIndex,value:l}]}else i=[]}var g=[o_(e,i[0]),o_(e,i[1]),Ie({},i[2])];return g[2].type=g[2].type||null,st(g[2],g[0]),st(g[2],g[1]),g};function Qx(e){return!isNaN(e)&&!isFinite(e)}function $8(e,t,r,n){var a=1-e,i=n.dimensions[e];return Qx(t[a])&&Qx(r[a])&&t[e]===r[e]&&n.getAxis(i).containData(t[e])}function TOe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&($8(1,r,n,e)||$8(0,r,n,e)))return!0}return s_(e,t[0])&&s_(e,t[1])}function bM(e,t,r,n,a){var i=n.coordinateSystem,o=e.getItemModel(t),s,l=Je(o.get("x"),a.getWidth()),u=Je(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=i.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=i.dataToPoint([f,d])}if(iv(i,"cartesian2d")){var h=i.getAxis("x"),v=i.getAxis("y"),c=i.dimensions;Qx(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):Qx(e.get(c[1],t))&&(s[1]=v.toGlobalCoord(v.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var COe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=xf.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=ew(o).from,u=ew(o).to;l.each(function(c){bM(l,c,!0,i,a),bM(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new qk);this.group.add(c.group);var f=EOe(o,r,n),d=f.from,h=f.to,v=f.line;ew(n).from=d,ew(n).to=h,n.setData(v);var p=n.get("symbol"),g=n.get("symbolSize"),m=n.get("symbolRotate"),y=n.get("symbolOffset");Ne(p)||(p=[p,p]),Ne(g)||(g=[g,g]),Ne(m)||(m=[m,m]),Ne(y)||(y=[y,y]),f.from.each(function(w){_(d,w,!0),_(h,w,!1)}),v.each(function(w){var x=v.getItemModel(w).getModel("lineStyle").getLineStyle();v.setItemLayout(w,[d.getItemLayout(w),h.getItemLayout(w)]),x.stroke==null&&(x.stroke=d.getItemVisual(w,"style").fill),v.setItemVisual(w,{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:h.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(w,"symbolOffset"),toSymbolRotate:h.getItemVisual(w,"symbolRotate"),toSymbolSize:h.getItemVisual(w,"symbolSize"),toSymbol:h.getItemVisual(w,"symbol"),style:x})}),c.updateData(v),f.line.eachItemGraphicEl(function(w){Ht(w).dataModel=n,w.traverse(function(x){Ht(x).dataModel=n})});function _(w,x,S){var T=w.getItemModel(x);bM(w,x,S,r,i);var A=T.getModel("itemStyle").getItemStyle();A.fill==null&&(A.fill=f1(l,"color")),w.setItemVisual(x,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:Qt(T.get("symbolOffset",!0),y[S?0:1]),symbolRotate:Qt(T.get("symbolRotate",!0),m[S?0:1]),symbolSize:Qt(T.get("symbolSize"),g[S?0:1]),symbol:Qt(T.get("symbol",!0),p[S?0:1]),style:A})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(MN);function EOe(e,t,r){var n;e?n=Fe(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return Ie(Ie({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Dn(n,r),i=new Dn(n,r),o=new Dn([],r),s=Fe(r.get("data"),zt(AOe,t,e,r));e&&(s=Yr(s,zt(TOe,e)));var l=pJ(!!e,n);return a.initData(Fe(s,function(u){return u[0]}),null,l),i.initData(Fe(s,function(u){return u[1]}),null,l),o.initData(Fe(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const MOe=COe;function gJ(e){e.registerComponentModel(xOe),e.registerComponentView(MOe),e.registerPreprocessor(function(t){CN(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var DOe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,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}(xf);const POe=DOe;var tw=Pr(),LOe=function(e,t,r,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=o_(e,a),s=o_(e,i),l=o.coord,u=s.coord;l[0]=Aa(l[0],-1/0),l[1]=Aa(l[1],-1/0),u[0]=Aa(u[0],1/0),u[1]=Aa(u[1],1/0);var c=pA([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function Jx(e){return!isNaN(e)&&!isFinite(e)}function W8(e,t,r,n){var a=1-e;return Jx(t[a])&&Jx(r[a])}function IOe(e,t){var r=t.coord[0],n=t.coord[1],a={coord:r,x:t.x0,y:t.y0},i={coord:n,x:t.x1,y:t.y1};return iv(e,"cartesian2d")?r&&n&&(W8(1,r,n)||W8(0,r,n))?!0:gOe(e,a,i):s_(e,a)||s_(e,i)}function Y8(e,t,r,n,a){var i=n.coordinateSystem,o=e.getItemModel(t),s,l=Je(o.get(r[0]),a.getWidth()),u=Je(o.get(r[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),d=i.clampData(c),h=i.clampData(f),v=[];r[0]==="x0"?v[0]=d[0]>h[0]?f[0]:c[0]:v[0]=d[0]>h[0]?c[0]:f[0],r[1]==="y0"?v[1]=d[1]>h[1]?f[1]:c[1]:v[1]=d[1]>h[1]?c[1]:f[1],s=n.getMarkerPosition(v,r,!0)}else{var p=e.get(r[0],t),g=e.get(r[1],t),m=[p,g];i.clampData&&i.clampData(m,m),s=i.dataToPoint(m,!0)}if(iv(i,"cartesian2d")){var y=i.getAxis("x"),_=i.getAxis("y"),p=e.get(r[0],t),g=e.get(r[1],t);Jx(p)?s[0]=y.toGlobalCoord(y.getExtent()[r[0]==="x0"?0:1]):Jx(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var j8=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],ROe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=xf.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Fe(j8,function(f){return Y8(s,l,f,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Ot});this.group.add(c.group),this.markKeep(c);var f=OOe(o,r,n);n.setData(f),f.each(function(d){var h=Fe(j8,function(A){return Y8(f,d,A,r,i)}),v=o.getAxis("x").scale,p=o.getAxis("y").scale,g=v.getExtent(),m=p.getExtent(),y=[v.parse(f.get("x0",d)),v.parse(f.get("x1",d))],_=[p.parse(f.get("y0",d)),p.parse(f.get("y1",d))];wo(y),wo(_);var w=!(g[0]>y[1]||g[1]_[1]||m[1]<_[0]),x=!w;f.setItemLayout(d,{points:h,allClipped:x});var S=f.getItemModel(d).getModel("itemStyle").getItemStyle(),T=f1(l,"color");S.fill||(S.fill=T,rt(S.fill)&&(S.fill=I0(S.fill,.4))),S.stroke||(S.stroke=T),f.setItemVisual(d,"style",S)}),f.diff(tw(c).data).add(function(d){var h=f.getItemLayout(d);if(!h.allClipped){var v=new Ri({shape:{points:h.points}});f.setItemGraphicEl(d,v),c.group.add(v)}}).update(function(d,h){var v=tw(c).data.getItemGraphicEl(h),p=f.getItemLayout(d);p.allClipped?v&&c.group.remove(v):(v?Lr(v,{shape:{points:p.points}},n,d):v=new Ri({shape:{points:p.points}}),f.setItemGraphicEl(d,v),c.group.add(v))}).remove(function(d){var h=tw(c).data.getItemGraphicEl(d);c.group.remove(h)}).execute(),f.eachItemGraphicEl(function(d,h){var v=f.getItemModel(h),p=f.getItemVisual(h,"style");d.useStyle(f.getItemVisual(h,"style")),ri(d,Pa(v),{labelFetcher:n,labelDataIndex:h,defaultText:f.getName(h)||"",inheritColor:rt(p.fill)?I0(p.fill,1):"#000"}),ti(d,v),Gn(d,null,null,v.get(["emphasis","disabled"])),Ht(d).dataModel=n}),tw(c).data=f,c.group.silent=n.get("silent")||r.get("silent")},t.type="markArea",t}(MN);function OOe(e,t,r){var n,a,i=["x0","y0","x1","y1"];if(e){var o=Fe(e&&e.dimensions,function(u){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return Ie(Ie({},f),{name:u,ordinalMeta:null})});a=Fe(i,function(u,c){return{name:u,type:o[c%2].type}}),n=new Dn(a,r)}else a=[{name:"value",type:"float"}],n=new Dn(a,r);var s=Fe(r.get("data"),zt(LOe,t,e,r));e&&(s=Yr(s,zt(IOe,e)));var l=e?function(u,c,f,d){var h=u.coord[Math.floor(d/2)][d%2];return ff(h,a[d])}:function(u,c,f,d){return ff(u.value,a[d])};return n.initData(s,null,l),n.hasItemOption=!0,n}const kOe=ROe;function NOe(e){e.registerComponentModel(POe),e.registerComponentView(kOe),e.registerPreprocessor(function(t){CN(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var BOe=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"])}},FOe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,a=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),Ne(n)&&W(n,function(i,o){rt(i)&&(i={type:i}),n[o]=st(i,BOe(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a=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",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",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:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(sr);const NL=FOe;var Nv=zt,BL=W,rw=Ot,VOe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new rw),this.group.add(this._selectorGroup=new rw),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,a,l,s,u);var c=r.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},d=r.get("padding"),h=kn(c,f,d),v=this.layoutInner(r,o,h,i,l,u),p=kn(yt({width:v.width,height:v.height},c),f,d);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=nJ(v,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this.getContentGroup(),c=_t(),f=n.get("selectedMode"),d=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),BL(n.getData(),function(h,v){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===` `)){var g=new rw;g.newline=!0,u.add(g);return}var m=a.getSeriesByName(p)[0];if(!c.get(p))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},w=y.getVisual("legendIcon"),x=y.getVisual("style"),S=this._createItem(m,p,v,h,n,r,_,x,w,f,i);S.on("click",Nv(K8,p,null,i,d)).on("mouseover",Nv(FL,m.name,null,i,d)).on("mouseout",Nv(VL,m.name,null,i,d)),c.set(p,!0)}else a.eachRawSeries(function(T){if(!c.get(p)&&T.legendVisualProvider){var A=T.legendVisualProvider;if(!A.containName(p))return;var C=A.indexOfName(p),M=A.getItemVisual(C,"style"),E=A.getItemVisual(C,"legendIcon"),D=Za(M.fill);D&&D[3]===0&&(D[3]=.2,M=Ie(Ie({},M),{fill:Gs(D,"rgba")}));var P=this._createItem(T,p,v,h,n,r,{},M,E,f,i);P.on("click",Nv(K8,null,p,i,d)).on("mouseover",Nv(FL,null,p,i,d)).on("mouseout",Nv(VL,null,p,i,d)),c.set(p,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype._createSelector=function(r,n,a,i,o){var s=this.getSelectorGroup();BL(r,function(u){var c=u.type,f=new pr({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);ri(f,{normal:d,emphasis:h},{defaultText:u.title}),lf(f)})},t.prototype._createItem=function(r,n,a,i,o,s,l,u,c,f,d){var h=r.visualDrawType,v=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var w=zOe(c,i,l,u,h,g,d),x=new rw,S=i.getModel("textStyle");if(Tt(r.getLegendIcon)&&(!_||_==="inherit"))x.add(r.getLegendIcon({itemWidth:v,itemHeight:p,icon:c,iconRotate:m,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}));else{var T=_==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;x.add(HOe({itemWidth:v,itemHeight:p,icon:c,iconRotate:T,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}))}var A=s==="left"?v+5:-5,C=s,M=o.get("formatter"),E=n;rt(M)&&M?E=M.replace("{name}",n??""):Tt(M)&&(E=M(n));var D=g?S.getTextColor():i.get("inactiveColor");x.add(new pr({style:Xr(S,{text:E,x:A,y:p/2,fill:D,align:C,verticalAlign:"middle"},{inheritColor:D})}));var P=new br({shape:x.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&$g({el:P,componentModel:o,itemName:n,itemTooltipOption:L.option}),x.add(P),x.eachChild(function(I){I.silent=!0}),P.silent=!f,this.getContentGroup().add(x),lf(x),x.__legendDataIndex=a,x},t.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Sh(r.get("orient"),l,r.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Sh("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],v=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?h[p]+=c[g]+v:f[p]+=d[g]+v,h[1-p]+=c[m]/2-d[m]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+v+d[g],_[m]=Math.max(c[m],d[m]),_[y]=Math.min(0,d[y]+h[1-p]),_}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}(rn);function zOe(e,t,r,n,a,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),BL(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}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"?n.decal:eg(f,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!i){var v=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=v==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function HOe(e){var t=e.icon||"roundRect",r=jn(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function K8(e,t,r,n){VL(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),FL(e,t,r,n)}function mJ(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,a=t.length;na[o],g=[-h.x,-h.y];n||(g[i]=c[u]);var m=[0,0],y=[-v.x,-v.y],_=Qt(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var w=r.get("pageButtonPosition",!0);w==="end"?y[i]+=a[o]-v[o]:m[i]+=v[o]+_}y[1-i]+=h[s]/2-v[s]/2,c.setPosition(g),f.setPosition(m),d.setPosition(y);var x={x:0,y:0};if(x[o]=p?a[o]:h[o],x[s]=Math.max(h[s],v[s]),x[l]=Math.min(0,v[l]+y[1-i]),f.__rectSize=a[o],p){var S={x:0,y:0};S[o]=Math.max(a[o]-v[o]-_,0),S[s]=x[s],f.setClipPath(new br({shape:S})),f.__rectSize=S[o]}else d.eachChild(function(A){A.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&Lr(c,{x:T.contentPosition[0],y:T.contentPosition[1]},p?r:null),this._updatePageInfoView(r,T),x},t.prototype._pageGo=function(r,n,a){var i=this._getPageInfo(n)[r];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;W(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var i=a.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",rt(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=r.getOrient().index,s=wM[o],l=SM[o],u=this._findTargetItemIndex(n),c=a.children(),f=c[u],d=c.length,h=d?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var p=w(f);v.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=d;++g)_=w(c[g]),(!_&&y.e>m.s+i||_&&!x(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=w(c[g]),(!_||!x(y,_.s))&&m.i=T&&S.s<=T+i}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===r&&(n=s)}),n??i},t.type="legend.scroll",t}(yJ);const jOe=YOe;function KOe(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function XOe(e){Dt(_J),e.registerComponentModel(WOe),e.registerComponentView(jOe),KOe(e)}function ZOe(e){Dt(_J),Dt(XOe)}var qOe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=Bf(i_.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(i_);const QOe=qOe;var DN=Pr();function JOe(e,t,r){DN(e).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=r)})}function eke(e,t){for(var r=DN(e).coordSysRecordMap,n=r.keys(),a=0;an[r+t]&&(t=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function ike(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=DN(r),a=n.coordSysRecordMap||(n.coordSysRecordMap=_t());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=eJ(i);W(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,tke(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=_t());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){bJ(a,i);return}var c=ake(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Qg(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var oke=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,a){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),JOe(a,r,{pan:ot(xM.pan,this),zoom:ot(xM.zoom,this),scrollMove:ot(xM.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){eke(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(bN),xM={zoom:function(e,t,r,n){var a=this.range,i=a.slice(),o=e.axisModels[0];if(o){var s=AM[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(sv(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:q8(function(e,t,r,n,a,i){var o=AM[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:q8(function(e,t,r,n,a,i){var o=AM[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,r);return o.signal*(e[1]-e[0])*i.scrollDelta})};function q8(e){return function(t,r,n,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,a);if(sv(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var AM={grid:function(e,t,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],i.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(e,t,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(e,t,r,n,a){var i=r.axis,o=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const ske=oke;function wJ(e){wN(e),e.registerComponentModel(QOe),e.registerComponentView(ske),ike(e)}var lke=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Bf(i_.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},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:"#fff",borderColor:"#ACB8D1"},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:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(i_);const uke=lke;var Xm=br,Q8=7,cke=1,TM=30,fke=7,Zm="horizontal",J8="vertical",dke=5,hke=["line","bar","candlestick","scatter"],vke={easing:"cubicOut",duration:100,delay:0},pke=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=ot(this._onBrush,this),this._onBrushEnd=ot(this._onBrushEnd,this)},t.prototype.render=function(r,n,a,i){if(e.prototype.render.apply(this,arguments),Qg(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Y0(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Ot;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,a=r.get("brushSelect"),i=a?fke:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Zm?{right:s.width-o.x-o.width,top:s.height-TM-Q8-i,width:o.width,height:TM}:{right:Q8,top:o.y,width:TM,height:o.height},u=jg(r.option);W(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=kn(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===J8&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===Zm&&!o?{scaleY:l?1:-1,scaleX:1}:a===Zm&&o?{scaleY:l?1:-1,scaleX:-1}:a===J8&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=r.get("brushSelect");a.add(new Xm({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Xm({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ot(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,a=this._shadowSize||[],i=r.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,n[1]],v=[0,n[0]],p=[[n[0],0],[0,0]],g=[],m=v[1]/(o.count()-1),y=0,_=Math.round(o.count()/n[0]),w;o.each([l],function(C,M){if(_>0&&M%_){y+=m;return}var E=C==null||isNaN(C)||C==="",D=E?0:Vr(C,f,h,!0);E&&!w&&M?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!E&&w&&(p.push([y,0]),g.push([y,0])),p.push([y,D]),g.push([y,D]),y+=m,w=E}),u=this._shadowPolygonPts=p,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var x=this.dataZoomModel;function S(C){var M=x.getModel(C?"selectedDataBackground":"dataBackground"),E=new Ot,D=new Ri({shape:{points:u},segmentIgnoreThreshold:1,style:M.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new Fi({shape:{points:c},segmentIgnoreThreshold:1,style:M.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return E.add(D),E.add(P),E}for(var T=0;T<3;T++){var A=S(T===1);this._displayables.sliderGroup.add(A),this._displayables.dataShadowSegs.push(A)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();W(l,function(u){if(!a&&!(n!==!0&&tr(hke,u.get("type"))<0)){var c=i.getComponent(Zc(o),s).axis,f=gke(o),d,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(d=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),a={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),a}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=n.filler=new Xm({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Xm({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:cke,fill:"rgba(0,0,0,0)"}})),W([0,1],function(_){var w=l.get("handleIcon");!Tx[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var x=jn(w,-1,0,2,2,null,!0);x.attr({cursor:eH(this._orient),draggable:!0,drift:ot(this._onDragMove,this,_),ondragend:ot(this._onDragEnd,this),onmouseover:ot(this._showDataInfo,this,!0),onmouseout:ot(this._showDataInfo,this,!1),z2:5});var S=x.getBoundingRect(),T=l.get("handleSize");this._handleHeight=Je(T,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),lf(x);var A=l.get("handleColor");A!=null&&(x.style.fill=A),o.add(a[_]=x);var C=l.getModel("textStyle");r.add(i[_]=new pr({silent:!0,invisible:!0,style:Xr(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var h=d;if(f){var v=Je(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new br({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),g=v*.8,m=n.moveHandleIcon=jn(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+v/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(v,10));h=n.moveZone=new br({invisible:!0,shape:{y:s[1]-y,height:v+y}}),h.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(m),o.add(h)}h.attr({draggable:!0,cursor:eH(this._orient),drift:ot(this._onDragMove,this,"all"),ondragstart:ot(this._showDataInfo,this,!0),ondragend:ot(this._onDragEnd,this),onmouseover:ot(this._showDataInfo,this,!0),onmouseout:ot(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Vr(r[0],[0,100],n,!0),Vr(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];sv(n,i,o,a.get("zoomLock")?"all":r,s.minSpan!=null?Vr(s.minSpan,l,o,!0):null,s.maxSpan!=null?Vr(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=wo([Vr(i[0],o,l,!0),Vr(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,a=this._handleEnds,i=wo(a.slice()),o=this._size;W([0,1],function(h){var v=n.handles[h],p=this._handleHeight;v.attr({scaleX:p/2,scaleY:p/2,x:a[h]+(h?-1:1),y:o[1]/2-p/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;cn[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,a=r.offsetY;this._brushStart=new qt(n,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=wo([Vr(a.x,o,s,!0),Vr(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(zu(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Xm({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?vke:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=eJ(this.dataZoomModel).infoList;if(!r&&n.length){var a=n[0].model.coordinateSystem;r=a.getRect&&a.getRect()}if(!r){var i=this.api.getWidth(),o=this.api.getHeight();r={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(bN);function gke(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function eH(e){return e==="vertical"?"ns-resize":"ew-resize"}const mke=pke;function SJ(e){e.registerComponentModel(uke),e.registerComponentView(mke),wN(e)}function yke(e){Dt(wJ),Dt(SJ)}var _ke={get:function(e,t,r){var n=Pt((bke[e]||{})[t]);return r&&Ne(n)?n[n.length-1]:n}},bke={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},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 xJ=_ke;var tH=qa.mapVisual,wke=qa.eachVisual,Ske=Ne,rH=W,xke=wo,Ake=Vr,Tke=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.optionUpdated=function(r,n){var a=this.option;!n&&cJ(a,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ot(r,this),this.controllerVisuals=RL(this.option.controller,n,r),this.targetVisuals=RL(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(a,i){n.push(i)}):n=tn(r),n},t.prototype.eachTargetSeries=function(r,n){W(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&r.call(n,i)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(a){a===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],Ne(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(rt(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Tt(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?a[0]+" "+c[1]:r[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(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=xke([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var a=r.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});st(i,a),st(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(f){Ske(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,d,h){var v=f[d],p=f[h];v&&!p&&(p=f[h]={},rH(v,function(g,m){if(qa.isValidType(m)){var y=xJ.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,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";rH(this.stateList,function(m){var y=this.itemSize,_=f[m];_||(_=f[m]={color:s?v:[v]}),_.symbol==null&&(_.symbol=d&&Pt(d)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&Pt(h)||(s?y[0]:[y[0],y[0]])),_.symbol=tH(_.symbol,function(S){return S==="none"?g:S});var w=_.symbolSize;if(w!=null){var x=-1/0;wke(w,function(S){S>x&&(x=S)}),_.symbolSize=tH(w,function(S){return Ake(S,[0,x],[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(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(sr);const e2=Tke;var nH=[20,140],Cke=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){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 r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=nH[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=nH[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):Ne(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),W(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=wo((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]=a[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&i.push(l)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},t.prototype.getVisualMeta=function(r){var n=aH(this,"outOfRange",this.getExtent()),a=aH(this,"inRange",this.option.range.slice()),i=[];function o(h,v){i.push({value:h,color:r(h,v)})}for(var s=0,l=0,u=a.length,c=n.length;lr[1])break;i.push({color:this.getControllerVisual(l,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),i},t.prototype._createBarPoints=function(r,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],r[0]],[a[0],r[0]],[a[0],r[1]],[a[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,a=this.visualMapModel.get("inverse");return new Ot(n==="horizontal"&&!a?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();Dke([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var d=gl(r[c],[0,l[1]],u,!0),h=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=h/l[0],f.x=l[0]-h/2;var v=Us(a.handleLabelPoints[c],uf(f,this.group));s[c].setStyle({x:v[0],y:v[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},h=this.getControllerVisual(r,"color",d),v=this.getControllerVisual(r,"symbolSize"),p=gl(r,s,u,!0),g=l[0]-v/2,m={x:f.x,y:f.y};f.y=p,f.x=g;var y=Us(c.indicatorLabelPoint,uf(f,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var w=this._applyTransform("left",c.mainGroup),x=this._orient,S=x==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:S?w:"middle",align:S?"center":w});var T={x:g,y:p,style:{fill:h}},A={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(T,C),_.animateTo(A,C)}else f.attr(T),_.attr(A);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var E=0;Eo[1]&&(f[1]=1/0),n&&(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,h=[];(n||lH(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var v=xge(d,h);this._dispatchHighDown("downplay",cS(v[0],a)),this._dispatchHighDown("highlight",cS(v[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(th(r.target,function(l){var u=Ht(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a=0&&(i.dimension=o,n.push(i))}}),e.getData().setVisual("visualMeta",n)}}];function Fke(e,t,r,n){for(var a=t.targetVisuals[n],i=qa.prepareVisualTypes(a),o={color:f1(e.getData(),"color")},s=0,l=i.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(kke,Nke),W(Bke,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(Vke))}function EJ(e){e.registerComponentModel(Eke),e.registerComponentView(Oke),CJ(e)}var zke=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Hke[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Pt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Fe(this._pieceList,function(l){return l=Pt(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},a=qa.listVisualTypes(),i=this.isCategory();W(r.pieces,function(s){W(a,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),W(n,function(s,l){var u=!1;W(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&W(this.stateList,function(c){(r[c]||(r[c]={}))[l]=xJ.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var a=this.option,i=this._pieceList,o=(n?a:r).selected||{};if(a.selected=o,W(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;W(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=Pt(r)},t.prototype.getValueState=function(r){var n=qa.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=qa.findPieceIndex(l,a);c===r&&o.push(u)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var a=r.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(c,f){var d=i.getRepresentValue({interval:c});f||(f=i.getValueState(d));var h=r(d,f);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:n.push({value:c[0],color:h},{value:c[1],color:h})}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 W(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=Bf(e2.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}(e2),Hke={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(r)!==i&&r<5;)r++;t.precision=r,i=+i.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,a)},this)}};function dH(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}const Gke=zke;var Uke=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,d=Aa(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,d,l),W(c.viewPieceList,function(h){var v=h.piece,p=new Ot;p.onclick=ot(this._onItemClick,this,v),this._enableHoverLink(p,h.indexInModelPieceList);var g=n.getRepresentValue(v);if(this._createItemSymbol(p,g,[0,0,u[0],u[1]]),d){var m=this.visualMapModel.getValueState(g);p.add(new pr({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:v.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}r.add(p)},this),f&&this._renderEndsText(r,f[1],u,d,l),Sh(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var a=this;r.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:cS(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return TJ(r,this.api,r.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(r,n,a,i,o){if(n){var s=new Ot,l=this.visualMapModel.textStyleModel;s.add(new pr({style:Xr(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=Fe(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=r.get("text"),i=r.get("orient"),o=r.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},t.prototype._createItemSymbol=function(r,n,a){r.add(jn(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(r){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=Pt(a.selected),s=n.getSelectedMapKey(r);i==="single"||i===!0?(o[s]=!0,W(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(AJ);const $ke=Uke;function MJ(e){e.registerComponentModel(Gke),e.registerComponentView($ke),CJ(e)}function Wke(e){Dt(EJ),Dt(MJ)}var Yke={label:{enabled:!0},decal:{show:!1}},hH=Pr(),jke={};function Kke(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=Pt(Yke);st(n.label,e.getLocaleModel().get("aria"),!1),st(r.option,n,!1),a(),i();function a(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=_t();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),hH(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(Tt(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var y=GP(d.ecModel,d.name,jke,e.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",w(_,y))}else{var v=d.getRawData(),p={},g=hH(d).scope;h.each(function(x){var S=h.getRawIndex(x);p[S]=x});var m=v.count();v.each(function(x){var S=p[x],T=v.getName(x)||x+"",A=GP(d.ecModel,T,g,m),C=h.getItemVisual(S,"decal");h.setItemVisual(S,"decal",w(C,A))})}function w(x,S){var T=x?Ie(Ie({},S),x):S;return T.dirty=!0,T}})}}function i(){var u=e.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=yt(c.option,u),!!c.get("enabled")){var f=t.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var d=e.getSeriesCount(),h=c.get(["data","maxCount"])||10,v=c.get(["series","maxCount"])||10,p=Math.min(d,v),g;if(!(d<1)){var m=s();if(m){var y=c.get(["general","withTitle"]);g=o(y,{title:m})}else g=c.get(["general","withoutTitle"]);var _=[],w=d>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(w,{seriesCount:d}),e.eachSeries(function(A,C){if(C1?c.get(["series","multiple",D]):c.get(["series","single",D]),M=o(M,{seriesId:A.seriesIndex,seriesName:A.get("name"),seriesType:l(A.subType)});var P=A.getData();if(P.count()>h){var L=c.get(["data","partialData"]);M+=o(L,{displayCnt:h})}else M+=c.get(["data","allData"]);for(var I=c.get(["data","separator","middle"]),O=c.get(["data","separator","end"]),R=[],B=0;B":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},qke=function(){function e(t){var r=this._condVal=rt(t)?new RegExp(t):CY(t)?t:null;if(r==null){var n="";Gr(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return rt(r)?this._condVal.test(t):Mr(r)?this._condVal.test(t+""):!1},e}(),Qke=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),Jke=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r2&&n.push(a),a=[P,L]}function c(P,L,I,O){vp(P,I)&&vp(L,O)||a.push(P,L,I,O,I,O)}function f(P,L,I,O,R,B){var k=Math.abs(L-P),z=Math.tan(k/4)*4/3,$=LA:E2&&n.push(a),n}function HL(e,t,r,n,a,i,o,s,l,u){if(vp(e,r)&&vp(t,n)&&vp(a,o)&&vp(i,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,h=s-t,v=Math.sqrt(d*d+h*h);d/=v,h/=v;var p=r-e,g=n-t,m=a-o,y=i-s,_=p*p+g*g,w=m*m+y*y;if(_=0&&A=0){l.push(o,s);return}var C=[],M=[];mf(e,r,a,o,.5,C),mf(t,n,i,s,.5,M),HL(C[0],M[0],C[1],M[1],C[2],M[2],C[3],M[3],l,u),HL(C[4],M[4],C[5],M[5],C[6],M[6],C[7],M[7],l,u)}function dNe(e,t){var r=zL(e),n=[];t=t||1;for(var a=0;a0)for(var u=0;uMath.abs(u),f=LJ([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;ha,o=LJ([n,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",f=e[s]/o.length,d=0;d1?null:new qt(p*l+e,p*u+t)}function pNe(e,t,r){var n=new qt;qt.sub(n,r,t),n.normalize();var a=new qt;qt.sub(a,e,t);var i=a.dot(n);return i}function Fv(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function gNe(e,t,r){for(var n=e.length,a=[],i=0;io?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),gNe(t,u,c)}function t2(e,t,r,n){if(r===1)n.push(t);else{var a=Math.floor(r/2),i=e(t);t2(e,i[0],a,n),t2(e,i[1],r-a,n)}return n}function mNe(e,t){for(var r=[],n=0;n0)for(var x=n/r,S=-n/2;S<=n/2;S+=x){for(var T=Math.sin(S),A=Math.cos(S),C=0,_=0;_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 a2(e){var t=1/0,r=1/0,n=-1/0,a=-1/0,i=Fe(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),r=Math.min(f,r),n=Math.max(c,n),a=Math.max(f,a),[c,f]}),o=Fe(i,function(s,l){return{cp:s,z:CNe(s[0],s[1],t,r,n,a),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function OJ(e){return bNe(e.path,e.count)}function GL(){return{fromIndividuals:[],toIndividuals:[],count:0}}function ENe(e,t,r){var n=[];function a(x){for(var S=0;S=0;a--)if(!r[a].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var i=l.length,u=Math.ceil(i/2);r[a].many=l.slice(u,i),r[s].many=l.slice(0,u),s++}return r}var DNe={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;SH(e)&&(u=e,c=t),SH(t)&&(u=t,c=e);function f(m,y,_,w,x){var S=m.many,T=m.one;if(S.length===1&&!x){var A=y?S[0]:T,C=y?T:S[0];if(r2(A))f({many:[A],one:C},!0,_,w,!0);else{var M=s?yt({delay:s(_,w)},l):l;LN(A,C,M),i(A,C,A,C,M)}}else for(var E=yt({dividePath:DNe[r],individualDelay:s&&function(R,B,k,z){return s(R+_,w)}},l),D=y?ENe(S,T,E):MNe(T,S,E),P=D.fromIndividuals,L=D.toIndividuals,I=P.length,O=0;Ot.length,h=u?xH(c,u):xH(d?t:e,[d?e:t]),v=0,p=0;pkJ))for(var a=n.getIndices(),i=LNe(n),o=0;o0&&w.group.traverse(function(S){S instanceof cr&&!S.animators.length&&S.animateFrom({style:{opacity:0}},x)})})}function TH(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function CH(e){return Ne(e)?e.sort().join(","):e}function Fc(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function ONe(e,t){var r=_t(),n=_t(),a=_t();return W(e.oldSeries,function(i,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=TH(i),c=CH(u);n.set(c,{dataGroupId:s,data:l}),Ne(u)&&W(u,function(f){a.set(f,{key:c,dataGroupId:s,data:l})})}),W(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=TH(i),u=CH(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Fc(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Fc(s),data:s}]});else if(Ne(l)){var f=[];W(l,function(v){var p=n.get(v);p.data&&f.push({dataGroupId:p.dataGroupId,divide:Fc(p.data),data:p.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Fc(s)}]})}else{var d=a.get(l);if(d){var h=r.get(d.key);h||(h={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:Fc(d.data)}],newSeries:[]},r.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Fc(s)})}}}}),r}function EH(e,t){for(var r=0;r=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Fc(t.oldData[s]),dim:o.dimension})}),W(tn(e.to),function(o){var s=EH(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Fc(l),dim:o.dimension})}}),a.length>0&&i.length>0&&NJ(a,i,n)}function NNe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){W(tn(n.seriesTransition),function(a){W(tn(a.to),function(i){for(var o=n.updatedSeries,s=0;s(jl("data-v-610a4ebd"),e=e(),Kl(),e),n5e={class:"page m100"},a5e={class:"page-left-box"},i5e={class:"title"},o5e=rc(()=>V("span",null,"用电量",-1)),s5e=rc(()=>V("div",{class:"margin10 box-bg",id:"power"},null,-1)),l5e=rc(()=>V("div",{class:"title margin10"},[V("span",null,"能耗日历"),V("p",null,[V("span",null,"单位:kgce")])],-1)),u5e={class:"margin10 box-bg"},c5e={class:"title margin10"},f5e=rc(()=>V("span",null,"碳排放",-1)),d5e=rc(()=>V("div",{class:"margin10 box-bg",id:"carbonEmission"},null,-1)),h5e={class:"page-right-box"},v5e=rc(()=>V("div",{class:"title"},[V("span",null,"实时负荷")],-1)),p5e={class:"margin10 box-bg"},g5e={class:"real-time-load"},m5e={class:"name"},y5e={class:"value",style:{"font-family":"D-DIN-Bold"}},_5e={class:"unit"},b5e=rc(()=>V("div",{class:"title margin10"},[V("span",null,"气象站")],-1)),w5e={class:"margin10 box-bg"},S5e={class:"weather-station"},x5e={key:0,class:"wea-value",style:{"font-family":"D-DIN-Bold","font-size":"1.625rem"}},A5e={key:1,class:"wea-value",style:{"font-family":"D-DIN-Bold","font-size":"1.125rem"}},T5e={key:2,class:"unit"},C5e=rc(()=>V("div",{class:"title margin10"},[V("span",null,"系统用电排名")],-1)),E5e=rc(()=>V("div",{class:"margin10 box-bg",id:"rank"},null,-1)),M5e={__name:"index",emits:["getHeart"],setup(e,{emit:t}){const r=t,n=G([{pic:jr.roomnum,name:"配电室数量",value:8,unit:"个"},{pic:jr.WL,name:"实时负荷",value:1465.2,unit:"kW"},{pic:jr.E,name:"今日电量",value:146,unit:"kWh"}]),a=G([{pic:jr.rain,name:"雨量",value:100},{pic:jr.rainsnow,name:"雨雪",value:"实际取值"},{pic:jr.wind,name:"风向",value:"东南风"},{pic:jr.illuminance,name:"光照度",value:101,unit:"万Lux"},{pic:jr.windspeed,name:"风速",value:"东南风3级",unit:"m/s"},{pic:jr.air,name:"空气质量",value:"优",unit:"ug/m³"}]),i=G(["北","东北","东","东南","南","西南","西","西北"]);G([]),xt(()=>{h(),v(),p(),g(),m()});const o=G("month"),s=y=>{o.value=y.srcElement.className,h()},l=G("month"),u=y=>{l.value=y.srcElement.className,m()},c=y=>{let _=document.getElementById("power");_.removeAttribute("_echarts_instance_");let w;w=$n(_);const x={tooltip:{trigger:"axis",axisPointer:{lineStyle:{color:"#57617B"}}},grid:{top:"18%",left:"4%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",axisLine:{show:!0,lineStyle:{color:"#557775"}},axisLabel:{textStyle:{color:"#DDFFFD",margin:40}},axisTick:{show:!1},boundaryGap:!0,data:y.map(S=>S.time)}],yAxis:[{type:"value",name:"单位:kWh",nameTextStyle:{color:"#DDFFFD",padding:[0,15,0,0]},splitNumber:5,splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.20)"}},axisLine:{show:!1},axisLabel:{textStyle:{color:"#DDFFFD"},formatter:function(S){return S>=1e3?S/1e4+"万":S>=1e7?S/1e8+"亿":S}},axisTick:{show:!1}}],series:[{name:"用电量",type:"line",smooth:!0,symbol:"circle",showSymbol:!0,lineStyle:{normal:{color:"#5BFAF1"}},itemStyle:{normal:{color:"#5BFAF1"}},areaStyle:{normal:{color:new kr(0,0,0,1,[{offset:0,color:"rgba(91, 250, 241, 0.40)"},{offset:1,color:"rgba(91, 250, 241, 0)"}],!1),shadowColor:"rgba(53,142,215, 0.9)",shadowBlur:20}},data:y.map(S=>S.EH)}]};w.setOption(x),window.addEventListener("resize",function(){w.resize()})},f=y=>{let _=0;y.forEach(T=>{_+=T.EH});let w=document.getElementById("rank");w.removeAttribute("_echarts_instance_");let x;x=$n(w);let S={grid:{left:"5%",right:"5%",bottom:"-10%",top:"8%",containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"none"},formatter:function(T){return T[0].name+"
"+T[0].seriesName+" : "+Number(T[0].value).toLocaleString()+" kWh
"}},xAxis:{show:!1,type:"value",max:_},yAxis:[{type:"category",inverse:!0,axisLabel:{padding:[0,0,10,-10],verticalAlign:"bottom",inside:!0,show:!0,textStyle:{color:"#fff",fontSize:"14"}},splitLine:{show:!1},axisTick:{show:!1},axisLine:{show:!1},data:y.map(T=>T.name)},{type:"category",inverse:!0,axisTick:"none",axisLine:"none",show:!0,axisLabel:{padding:[0,0,10,-10],verticalAlign:"bottom",inside:!0,textStyle:{},formatter:function(T){return"{a|"+T+"}{b|kWh}"},rich:{a:{fontSize:"16",color:"rgba(0, 255, 240, 1)",padding:[0,6,0,0]},b:{color:"#fff",fontSize:"12"}}},data:y.map(T=>T.EH)}],series:[{name:"用电",type:"bar",zlevel:1,itemStyle:{color:new kr(0,0,1,0,[{offset:0,color:"rgba(29, 169, 153, 1)"},{offset:1,color:"rgba(223, 243, 240, 1)"}])},barWidth:8,data:y.map(T=>T.EH)},{name:"背景",type:"bar",barWidth:10,barGap:"-115%",data:[_,_,_,_,_],itemStyle:{borderColor:"rgba(4, 24, 44, 1)",borderWidth:2,color:"rgba(5, 33, 31, 0.32)"}}]};x.setOption(S),window.addEventListener("resize",function(){x.resize()})};function d(y){const _=eo({shape:{x:0,y:0},buildPath:function(D,P){const L=P.xAxisPoint,I=[P.x-7,P.y],O=[P.x+7,P.y],R=[L[0]+7,L[1]],B=[L[0]-7,L[1]];D.moveTo(I[0],I[1]).lineTo(O[0],O[1]).lineTo(R[0],R[1]).lineTo(B[0],B[1]).closePath(),D.stroke()}}),w=eo({shape:{x:0,y:0},buildPath:function(D,P){const L=P.xAxisPoint,I=[P.x+7,P.y],O=[L[0]+7,L[1]],R=[L[0]+7+7,L[1]-5],B=[P.x+7+7,P.y-5];D.moveTo(I[0],I[1]).lineTo(O[0],O[1]).lineTo(R[0],R[1]).lineTo(B[0],B[1]).closePath(),D.stroke()}}),x=eo({shape:{x:0,y:0},buildPath:function(D,P){const L=[P.x-7,P.y],I=[P.x+8,P.y],O=[P.x+15,P.y-5],R=[P.x-2,P.y-5];D.moveTo(L[0],L[1]).lineTo(I[0],I[1]).lineTo(O[0],O[1]).lineTo(R[0],R[1]).closePath(),D.stroke()}});zn("CubeLeft",_),zn("CubeRight",w),zn("CubeTop",x);let S=y.map(D=>D.time),T=y.map(D=>D.CarbonEmission),A=[["rgba(0, 193, 113, 1)"],["rgba(0, 255, 140, 1)","rgba(0, 255, 140,0)"],["rgba(0, 255, 140, 1)","rgba(0, 255, 140,0)"]],C=document.getElementById("carbonEmission");C.removeAttribute("_echarts_instance_");let M;M=$n(C);const E={tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(D,P,L){const I=D[1];return I.name+" : "+I.value}},grid:{left:"4%",right:"5%",top:"18%",bottom:"5%",containLabel:!0},xAxis:{type:"category",data:S,axisLine:{show:!0,lineStyle:{color:"#557775"}},axisTick:{show:!1},axisLabel:{color:"rgba(221, 255, 253, 1)",fontSize:12,interval:0}},yAxis:{type:"value",name:"单位:tCO₂",nameTextStyle:{color:"#DDFFFD",padding:[0,5,0,0]},axisLine:{show:!1},splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.20)"}},axisTick:{show:!1},axisLabel:{fontSize:12,color:"#DDFFFD",formatter:function(D){return D>=1e3?D/1e4+"万":D>=1e7?D/1e8+"亿":D}}},series:[{type:"custom",renderItem:(D,P)=>{const L=P.coord([P.value(0),P.value(1)]);return{type:"group",children:[{type:"CubeLeft",shape:{api:P,xValue:P.value(0),yValue:P.value(1),x:L[0],y:L[1],xAxisPoint:P.coord([P.value(0),0])},style:{fill:new kr(0,0,0,1,[{offset:0,color:A[1][0]},{offset:1,color:A[1][1]}])}},{type:"CubeRight",shape:{api:P,xValue:P.value(0),yValue:P.value(1),x:L[0],y:L[1],xAxisPoint:P.coord([P.value(0),0])},style:{fill:new kr(0,0,0,1,[{offset:0,color:A[2][0]},{offset:1,color:A[2][1]}])}},{type:"CubeTop",shape:{api:P,xValue:P.value(0),yValue:P.value(1),x:L[0],y:L[1],xAxisPoint:P.coord([P.value(0),0])},style:{fill:new kr(0,0,0,1,[{offset:0,color:A[0][0]},{offset:1,color:A[0][0]}])}}]}},data:T},{type:"bar",label:{normal:{show:!1,position:"top",formatter:D=>D.value,fontSize:16,color:"#43C4F1",offset:[0,-5]}},itemStyle:{color:"transparent"},tooltip:{},data:T}]};M.setOption(E),window.addEventListener("resize",function(){M.resize()})}const h=()=>{let y={date:o.value==="year"?"年":"月"};eve(y).then(_=>{c(_.data.slice(-10))})},v=()=>{tve().then(y=>{n.value.forEach(_=>{_.name==="配电室数量"?_.value=y.data[0].Amount:_.name==="实时负荷"?_.value=y.data[0].P:_.name==="今日电量"&&(_.value=y.data[0].EH)})})},p=()=>{ave().then(y=>{y.data.forEach(_=>{_.name==="空气温度"&&r("getHeart",_.value)}),a.value.forEach(_=>{y.data.forEach(w=>{w.name.indexOf(_.name)!==-1&&(w.name==="光照度"?_.value=(w.value/1e4).toFixed(2):_.value=w.value)})})})},g=()=>{ive().then(y=>{f(y.data)})},m=()=>{let y={date:l.value==="month"?"月":"年"};nve(y).then(_=>{d(_.data)})};return(y,_)=>(N(),U("div",n5e,[V("div",a5e,[V("div",i5e,[o5e,V("p",null,[V("span",{class:H(["year",o.value==="year"?"selectYear":""]),onClick:s},"年",2),V("span",{class:H(["month",o.value==="month"?"selectMonth":""]),onClick:s},"月",2)])]),s5e,l5e,V("div",u5e,[J(uve)]),V("div",c5e,[f5e,V("p",null,[V("span",{class:H(["year",l.value==="year"?"selectYear":""]),onClick:u},"年",2),V("span",{class:H(["month",l.value==="month"?"selectMonth":""]),onClick:u},"月",2)])]),d5e]),V("div",h5e,[v5e,V("div",p5e,[V("ul",g5e,[(N(!0),U(Be,null,ht(n.value,(w,x)=>(N(),U("li",{style:Xe("background-image:url("+w.pic+")")},[V("span",m5e,me(w.name),1),V("p",null,[V("span",y5e,me(w.value),1),V("span",_5e,me(w.unit),1)])],4))),256))])]),b5e,V("div",w5e,[V("ul",S5e,[(N(!0),U(Be,null,ht(a.value,(w,x)=>(N(),U("li",null,[V("p",{class:"img",style:Xe("background-image:url("+w.pic+")")},[V("span",null,me(w.name),1)],4),V("p",null,[w.name!=="风向"?(N(),U("span",x5e,me(w.value),1)):(N(),U("span",A5e,me(i.value[x]),1)),w.unit?(N(),U("span",T5e,me(w.unit),1)):ce("",!0)])]))),256))])]),C5e,E5e])]))}},DH=al(M5e,[["__scopeId","data-v-610a4ebd"]]);function D5e(e){return ir({url:"/api/GetTotalEnergy",method:"get",params:e})}function P5e(e){return ir({url:"/api/GetEnergyIndexing",method:"get",params:e})}function L5e(e){return ir({url:"/api/GetEnergyFlow",method:"get",params:e})}function I5e(e){return ir({url:"/api/GetSystemEnergy",method:"get",params:e})}function R5e(e){return ir({url:"/api/GetMultiRate",method:"get",params:e})}function O5e(e){return ir({url:"/api/GetElectricityRate",method:"get",params:e})}Dt(gJ);const k5e='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',N5e=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,PH=e=>Array.from(e.querySelectorAll(k5e)).filter(t=>B5e(t)&&N5e(t)),B5e=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)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}},fS=function(e,t,...r){let n;t.includes("mouse")||t.includes("click")?n="MouseEvents":t.includes("key")?n="KeyboardEvent":n="HTMLEvents";const a=document.createEvent(n);return a.initEvent(t,...r),e.dispatchEvent(a),e},BJ=e=>!e.getAttribute("aria-owns"),FJ=(e,t,r)=>{const{parentNode:n}=e;if(!n)return null;const a=n.querySelectorAll(r),i=Array.prototype.indexOf.call(a,e);return a[i+t]||null},dS=e=>{e&&(e.focus(),!BJ(e)&&e.click())},Mn=(e,t,{checkForDefaultPrevented:r=!0}={})=>a=>{const i=e==null?void 0:e(a);if(r===!1||!i)return t==null?void 0:t(a)},LH=e=>t=>t.pointerType==="mouse"?e(t):void 0;var F5e=Object.defineProperty,V5e=Object.defineProperties,z5e=Object.getOwnPropertyDescriptors,IH=Object.getOwnPropertySymbols,H5e=Object.prototype.hasOwnProperty,G5e=Object.prototype.propertyIsEnumerable,RH=(e,t,r)=>t in e?F5e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,U5e=(e,t)=>{for(var r in t||(t={}))H5e.call(t,r)&&RH(e,r,t[r]);if(IH)for(var r of IH(t))G5e.call(t,r)&&RH(e,r,t[r]);return e},$5e=(e,t)=>V5e(e,z5e(t));function OH(e,t){var r;const n=yr();return xo(()=>{n.value=e()},$5e(U5e({},t),{flush:(r=t==null?void 0:t.flush)!=null?r:"sync"})),Rg(n)}var kH;const ur=typeof window<"u",W5e=e=>typeof e<"u",Y5e=e=>typeof e=="function",j5e=e=>typeof e=="string",og=()=>{},VJ=ur&&((kH=window==null?void 0:window.navigator)==null?void 0:kH.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Af(e){return typeof e=="function"?e():b(e)}function zJ(e,t){function r(...n){return new Promise((a,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(a).catch(i)})}return r}function K5e(e,t={}){let r,n,a=og;const i=s=>{clearTimeout(s),a(),a=og};return s=>{const l=Af(e),u=Af(t.maxWait);return r&&i(r),l<=0||u!==void 0&&u<=0?(n&&(i(n),n=null),Promise.resolve(s())):new Promise((c,f)=>{a=t.rejectOnCancel?f:c,u&&!n&&(n=setTimeout(()=>{r&&i(r),n=null,c(s())},u)),r=setTimeout(()=>{n&&i(n),n=null,c(s())},l)})}}function X5e(e,t=!0,r=!0,n=!1){let a=0,i,o=!0,s=og,l;const u=()=>{i&&(clearTimeout(i),i=void 0,s(),s=og)};return f=>{const d=Af(e),h=Date.now()-a,v=()=>l=f();return u(),d<=0?(a=Date.now(),v()):(h>d&&(r||!o)?(a=Date.now(),v()):t&&(l=new Promise((p,g)=>{s=n?g:p,i=setTimeout(()=>{a=Date.now(),o=!0,p(v()),u()},Math.max(0,d-h))})),!r&&!i&&(i=setTimeout(()=>o=!0,d)),o=!1,l)}}function Z5e(e){return e}function x1(e){return QW()?(JW(e),!0):!1}function q5e(e,t=200,r={}){return zJ(K5e(t,r),e)}function Q5e(e,t=200,r={}){const n=G(e.value),a=q5e(()=>{n.value=e.value},t,r);return Ae(e,()=>a()),n}function HJ(e,t=200,r=!1,n=!0,a=!1){return zJ(X5e(t,r,n,a),e)}function IN(e,t=!0){It()?xt(e):t?e():qe(e)}function Wh(e,t,r={}){const{immediate:n=!0}=r,a=G(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function s(){a.value=!1,o()}function l(...u){o(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,e(...u)},Af(t))}return n&&(a.value=!0,ur&&l()),x1(s),{isPending:Rg(a),start:l,stop:s}}function Ji(e){var t;const r=Af(e);return(t=r==null?void 0:r.$el)!=null?t:r}const lv=ur?window:void 0,J5e=ur?window.document:void 0;function dn(...e){let t,r,n,a;if(j5e(e[0])||Array.isArray(e[0])?([r,n,a]=e,t=lv):[t,r,n,a]=e,!t)return og;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const i=[],o=()=>{i.forEach(c=>c()),i.length=0},s=(c,f,d,h)=>(c.addEventListener(f,d,h),()=>c.removeEventListener(f,d,h)),l=Ae(()=>[Ji(t),Af(a)],([c,f])=>{o(),c&&i.push(...r.flatMap(d=>n.map(h=>s(c,d,h,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return x1(u),u}let NH=!1;function RN(e,t,r={}){const{window:n=lv,ignore:a=[],capture:i=!0,detectIframe:o=!1}=r;if(!n)return;VJ&&!NH&&(NH=!0,Array.from(n.document.body.children).forEach(d=>d.addEventListener("click",og)));let s=!0;const l=d=>a.some(h=>{if(typeof h=="string")return Array.from(n.document.querySelectorAll(h)).some(v=>v===d.target||d.composedPath().includes(v));{const v=Ji(h);return v&&(d.target===v||d.composedPath().includes(v))}}),c=[dn(n,"click",d=>{const h=Ji(e);if(!(!h||h===d.target||d.composedPath().includes(h))){if(d.detail===0&&(s=!l(d)),!s){s=!0;return}t(d)}},{passive:!0,capture:i}),dn(n,"pointerdown",d=>{const h=Ji(e);h&&(s=!d.composedPath().includes(h)&&!l(d))},{passive:!0}),o&&dn(n,"blur",d=>{var h;const v=Ji(e);((h=n.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(v!=null&&v.contains(n.document.activeElement))&&t(d)})].filter(Boolean);return()=>c.forEach(d=>d())}function GJ(e,t=!1){const r=G(),n=()=>r.value=!!e();return n(),IN(n,t),r}function eFe(e){return JSON.parse(JSON.stringify(e))}const BH=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},FH="__vueuse_ssr_handlers__";BH[FH]=BH[FH]||{};function tFe(e,t,{window:r=lv,initialValue:n=""}={}){const a=G(n),i=F(()=>{var o;return Ji(t)||((o=r==null?void 0:r.document)==null?void 0:o.documentElement)});return Ae([i,()=>Af(e)],([o,s])=>{var l;if(o&&r){const u=(l=r.getComputedStyle(o).getPropertyValue(s))==null?void 0:l.trim();a.value=u||n}},{immediate:!0}),Ae(a,o=>{var s;(s=i.value)!=null&&s.style&&i.value.style.setProperty(Af(e),o)}),a}function rFe({document:e=J5e}={}){if(!e)return G("visible");const t=G(e.visibilityState);return dn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var VH=Object.getOwnPropertySymbols,nFe=Object.prototype.hasOwnProperty,aFe=Object.prototype.propertyIsEnumerable,iFe=(e,t)=>{var r={};for(var n in e)nFe.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&VH)for(var n of VH(e))t.indexOf(n)<0&&aFe.call(e,n)&&(r[n]=e[n]);return r};function di(e,t,r={}){const n=r,{window:a=lv}=n,i=iFe(n,["window"]);let o;const s=GJ(()=>a&&"ResizeObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=Ae(()=>Ji(e),f=>{l(),s.value&&a&&f&&(o=new ResizeObserver(t),o.observe(f,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return x1(c),{isSupported:s,stop:c}}function zH(e,t={}){const{reset:r=!0,windowResize:n=!0,windowScroll:a=!0,immediate:i=!0}=t,o=G(0),s=G(0),l=G(0),u=G(0),c=G(0),f=G(0),d=G(0),h=G(0);function v(){const p=Ji(e);if(!p){r&&(o.value=0,s.value=0,l.value=0,u.value=0,c.value=0,f.value=0,d.value=0,h.value=0);return}const g=p.getBoundingClientRect();o.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,h.value=g.y}return di(e,v),Ae(()=>Ji(e),p=>!p&&v()),a&&dn("scroll",v,{capture:!0,passive:!0}),n&&dn("resize",v,{passive:!0}),IN(()=>{i&&v()}),{height:o,bottom:s,left:l,right:u,top:c,width:f,x:d,y:h,update:v}}var HH=Object.getOwnPropertySymbols,oFe=Object.prototype.hasOwnProperty,sFe=Object.prototype.propertyIsEnumerable,lFe=(e,t)=>{var r={};for(var n in e)oFe.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&HH)for(var n of HH(e))t.indexOf(n)<0&&sFe.call(e,n)&&(r[n]=e[n]);return r};function uFe(e,t,r={}){const n=r,{window:a=lv}=n,i=lFe(n,["window"]);let o;const s=GJ(()=>a&&"MutationObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=Ae(()=>Ji(e),f=>{l(),s.value&&a&&f&&(o=new MutationObserver(t),o.observe(f,i))},{immediate:!0}),c=()=>{l(),u()};return x1(c),{isSupported:s,stop:c}}var GH;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(GH||(GH={}));var cFe=Object.defineProperty,UH=Object.getOwnPropertySymbols,fFe=Object.prototype.hasOwnProperty,dFe=Object.prototype.propertyIsEnumerable,$H=(e,t,r)=>t in e?cFe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hFe=(e,t)=>{for(var r in t||(t={}))fFe.call(t,r)&&$H(e,r,t[r]);if(UH)for(var r of UH(t))dFe.call(t,r)&&$H(e,r,t[r]);return e};const vFe={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};hFe({linear:Z5e},vFe);function pFe(e,t,r,n={}){var a,i,o;const{clone:s=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:f}=n,d=It(),h=r||(d==null?void 0:d.emit)||((a=d==null?void 0:d.$emit)==null?void 0:a.bind(d))||((o=(i=d==null?void 0:d.proxy)==null?void 0:i.$emit)==null?void 0:o.bind(d==null?void 0:d.proxy));let v=u;t||(t="modelValue"),v=u||v||`update:${t.toString()}`;const p=m=>s?Y5e(s)?s(m):eFe(m):m,g=()=>W5e(e[t])?p(e[t]):f;if(l){const m=g(),y=G(m);return Ae(()=>e[t],_=>y.value=p(_)),Ae(y,_=>{(_!==e[t]||c)&&h(v,_)},{deep:c}),y}else return F({get(){return g()},set(m){h(v,m)}})}function gFe({window:e=lv}={}){if(!e)return G(!1);const t=G(e.document.hasFocus());return dn(e,"blur",()=>{t.value=!1}),dn(e,"focus",()=>{t.value=!0}),t}function mFe(e={}){const{window:t=lv,initialWidth:r=1/0,initialHeight:n=1/0,listenOrientation:a=!0,includeScrollbar:i=!0}=e,o=G(r),s=G(n),l=()=>{t&&(i?(o.value=t.innerWidth,s.value=t.innerHeight):(o.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};return l(),IN(l),dn("resize",l,{passive:!0}),a&&dn("orientationchange",l,{passive:!0}),{width:o,height:s}}const UJ=()=>ur&&/firefox/i.test(window.navigator.userAgent),yFe=(e,t)=>{if(!ur||!e||!t)return!1;const r=e.getBoundingClientRect();let n;return t instanceof Element?n=t.getBoundingClientRect():n={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},r.topn.top&&r.right>n.left&&r.left{let t=0,r=e;for(;r;)t+=r.offsetTop,r=r.offsetParent;return t},_Fe=(e,t)=>Math.abs(WH(e)-WH(t)),ON=e=>{let t,r;return e.type==="touchend"?(r=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(r=e.touches[0].clientY,t=e.touches[0].clientX):(r=e.clientY,t=e.clientX),{clientX:t,clientY:r}};var bFe=typeof global=="object"&&global&&global.Object===Object&&global;const $J=bFe;var wFe=typeof self=="object"&&self&&self.Object===Object&&self,SFe=$J||wFe||Function("return this")();const ol=SFe;var xFe=ol.Symbol;const ls=xFe;var WJ=Object.prototype,AFe=WJ.hasOwnProperty,TFe=WJ.toString,qm=ls?ls.toStringTag:void 0;function CFe(e){var t=AFe.call(e,qm),r=e[qm];try{e[qm]=void 0;var n=!0}catch{}var a=TFe.call(e);return n&&(t?e[qm]=r:delete e[qm]),a}var EFe=Object.prototype,MFe=EFe.toString;function DFe(e){return MFe.call(e)}var PFe="[object Null]",LFe="[object Undefined]",YH=ls?ls.toStringTag:void 0;function uv(e){return e==null?e===void 0?LFe:PFe:YH&&YH in Object(e)?CFe(e):DFe(e)}function Gl(e){return e!=null&&typeof e=="object"}var IFe="[object Symbol]";function cT(e){return typeof e=="symbol"||Gl(e)&&uv(e)==IFe}function YJ(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r0){if(++t>=vVe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function yVe(e){return function(){return e}}var _Ve=function(){try{var e=fv(Object,"defineProperty");return e({},"",{}),e}catch{}}();const i2=_Ve;var bVe=i2?function(e,t){return i2(e,"toString",{configurable:!0,enumerable:!1,value:yVe(t),writable:!0})}:kN;const wVe=bVe;var SVe=mVe(wVe);const XJ=SVe;function xVe(e,t){for(var r=-1,n=e==null?0:e.length;++r-1}var MVe=9007199254740991,DVe=/^(?:0|[1-9]\d*)$/;function fT(e,t){var r=typeof e;return t=t??MVe,!!t&&(r=="number"||r!="symbol"&&DVe.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=IVe}function am(e){return e!=null&&VN(e.length)&&!NN(e)}function RVe(e,t,r){if(!ki(r))return!1;var n=typeof t;return(n=="number"?am(r)&&fT(t,r.length):n=="string"&&t in r)?A1(r[t],e):!1}function OVe(e){return QJ(function(t,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&RVe(r[0],r[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++n-1}function Zze(e,t){var r=this.__data__,n=dT(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function nc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t0&&r(s)?t>1?D1(s,t-1,r,n,a):WN(a,s):n||(a[a.length]=s)}return a}function aee(e){var t=e==null?0:e.length;return t?D1(e,1):[]}function v6e(e){return XJ(qJ(e,void 0,aee),e+"")}var p6e=nee(Object.getPrototypeOf,Object);const YN=p6e;var g6e="[object Object]",m6e=Function.prototype,y6e=Object.prototype,iee=m6e.toString,_6e=y6e.hasOwnProperty,b6e=iee.call(Object);function w6e(e){if(!Gl(e)||uv(e)!=g6e)return!1;var t=YN(e);if(t===null)return!0;var r=_6e.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&iee.call(r)==b6e}function jh(){if(!arguments.length)return[];var e=arguments[0];return Oi(e)?e:[e]}function S6e(){this.__data__=new nc,this.size=0}function x6e(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function A6e(e){return this.__data__.get(e)}function T6e(e){return this.__data__.has(e)}var C6e=200;function E6e(e,t){var r=this.__data__;if(r instanceof nc){var n=r.__data__;if(!f_||n.lengths))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,h=r&fHe?new h_:void 0;for(i.set(e,t),i.set(t,e);++f=t||T<0||f&&A>=i}function m(){var S=RM();if(g(S))return y(S);s=setTimeout(m,p(S))}function y(S){return s=void 0,d&&n?h(S):(n=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,n=l=a=s=void 0}function w(){return s===void 0?o:y(RM())}function x(){var S=RM(),T=g(S);if(n=arguments,a=this,l=S,T){if(s===void 0)return v(l);if(f)return clearTimeout(s),s=setTimeout(m,t),h(l)}return s===void 0&&(s=setTimeout(m,t)),o}return x.cancel=_,x.flush=w,x}function KL(e,t,r){(r!==void 0&&!A1(e[t],r)||r===void 0&&!(t in e))&&BN(e,t,r)}function xee(e){return Gl(e)&&am(e)}function XL(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function nGe(e){return T1(e,E1(e))}function aGe(e,t,r,n,a,i,o){var s=XL(e,r),l=XL(t,r),u=o.get(l);if(u){KL(e,r,u);return}var c=i?i(s,l,r+"",e,t,o):void 0,f=c===void 0;if(f){var d=Oi(l),h=!d&&u_(l),v=!d&&!h&&GN(l);c=l,d||h||v?Oi(s)?c=s:xee(s)?c=KJ(s):h?(f=!1,c=see(l,!0)):v?(f=!1,c=fee(l,!0)):c=[]:w6e(l)||l_(l)?(c=s,l_(s)?c=nGe(s):(!ki(s)||NN(s))&&(c=dee(l))):f=!1}f&&(o.set(l,c),a(c,l,n,i,o),o.delete(l)),KL(e,r,c)}function Aee(e,t,r,n,a){e!==t&&See(t,function(i,o){if(a||(a=new $s),ki(i))aGe(e,t,o,r,Aee,n,a);else{var s=n?n(XL(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),KL(e,o,s)}},E1)}function iGe(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=xGe){var u=t?null:SGe(e);if(u)return XN(u);o=!1,a=gee,l=new h_}else l=t?[]:s;e:for(;++ne===void 0,la=e=>typeof e=="boolean",ct=e=>typeof e=="number",qo=e=>!e&&e!==0||We(e)&&e.length===0||Vt(e)&&!Object.keys(e).length,us=e=>typeof Element>"u"?!1:e instanceof Element,CGe=e=>Qn(e),EGe=e=>wt(e)?!Number.isNaN(Number(e)):!1,Mee=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Tl=e=>$_(e),v_=e=>Object.keys(e),MGe=e=>Object.entries(e),hS=(e,t,r)=>({get value(){return gn(e,t,r)},set value(n){yGe(e,t,n)}});class DGe extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function ua(e,t){throw new DGe(`[${e}] ${t}`)}const Dee=(e="")=>e.split(" ").filter(t=>!!t.trim()),Ws=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Pl=(e,t)=>{!e||!t.trim()||e.classList.add(...Dee(t))},ro=(e,t)=>{!e||!t.trim()||e.classList.remove(...Dee(t))},Hc=(e,t)=>{var r;if(!ur||!e||!t)return"";let n=os(t);n==="float"&&(n="cssFloat");try{const a=e.style[n];if(a)return a;const i=(r=document.defaultView)==null?void 0:r.getComputedStyle(e,"");return i?i[n]:""}catch{return e.style[n]}};function Hn(e,t="px"){if(!e)return"";if(ct(e)||EGe(e))return`${e}${t}`;if(wt(e))return e}const PGe=(e,t)=>{if(!ur)return!1;const r={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],n=Hc(e,r);return["scroll","auto","overlay"].some(a=>n.includes(a))},ZN=(e,t)=>{if(!ur)return;let r=e;for(;r;){if([window,document,document.documentElement].includes(r))return window;if(PGe(r,t))return r;r=r.parentNode}return r};let aw;const Pee=e=>{var t;if(!ur)return 0;if(aw!==void 0)return aw;const r=document.createElement("div");r.className=`${e}-scrollbar__wrap`,r.style.visibility="hidden",r.style.width="100px",r.style.position="absolute",r.style.top="-9999px",document.body.appendChild(r);const n=r.offsetWidth;r.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",r.appendChild(a);const i=a.offsetWidth;return(t=r.parentNode)==null||t.removeChild(r),aw=n-i,aw};function Lee(e,t){if(!ur)return;if(!t){e.scrollTop=0;return}const r=[];let n=t.offsetParent;for(;n!==null&&e!==n&&e.contains(n);)r.push(n),n=n.offsetParent;const a=t.offsetTop+r.reduce((l,u)=>l+u.offsetTop,0),i=a+t.offsetHeight,o=e.scrollTop,s=o+e.clientHeight;as&&(e.scrollTop=i-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var LGe=te({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 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.592 30.592 0 0 0-42.752 0z"})]))}}),Vf=LGe,IGe=te({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),Tf=IGe,RGe=te({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 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"})]))}}),Mi=RGe,OGe=te({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),mT=OGe,kGe=te({name:"Back",__name:"back",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),V("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"})]))}}),NGe=kGe,BGe=te({name:"Calendar",__name:"calendar",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),FGe=BGe,VGe=te({name:"CaretRight",__name:"caret-right",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),Iee=VGe,zGe=te({name:"CaretTop",__name:"caret-top",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),HGe=zGe,GGe=te({name:"Check",__name:"check",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),P1=GGe,UGe=te({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),$Ge=UGe,WGe=te({name:"CircleCheck",__name:"circle-check",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"}),V("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.752l265.344-265.408z"})]))}}),qN=WGe,YGe=te({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),QN=YGe,jGe=te({name:"CircleClose",__name:"circle-close",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"}),V("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"})]))}}),zf=jGe,KGe=te({name:"Clock",__name:"clock",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"}),V("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),V("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),Ree=KGe,XGe=te({name:"Close",__name:"close",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),el=XGe,ZGe=te({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 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.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 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.672l331.648-340.224z"})]))}}),lg=ZGe,qGe=te({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 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.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),ug=qGe,QGe=te({name:"Delete",__name:"delete",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),JGe=QGe,eUe=te({name:"Document",__name:"document",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),tUe=eUe,rUe=te({name:"FullScreen",__name:"full-screen",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),nUe=rUe,aUe=te({name:"Hide",__name:"hide",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-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 176C44.8 438.4 0 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.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 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.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.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.6-28.8 48-80 105.6-153.6 172.8-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-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),V("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 112-32 28.8-67.2 48-112 48Z"})]))}}),iUe=aUe,oUe=te({name:"InfoFilled",__name:"info-filled",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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.992 12.992 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"})]))}}),JN=oUe,sUe=te({name:"Loading",__name:"loading",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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.248zm452.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.248zM828.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 0z"})]))}}),Hf=sUe,lUe=te({name:"Minus",__name:"minus",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),uUe=lUe,cUe=te({name:"MoreFilled",__name:"more-filled",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),xG=cUe,fUe=te({name:"More",__name:"more",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),dUe=fUe,hUe=te({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),vUe=hUe,pUe=te({name:"Plus",__name:"plus",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),Oee=pUe,gUe=te({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 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.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),mUe=gUe,yUe=te({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),_Ue=yUe,bUe=te({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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.88z"})]))}}),wUe=bUe,SUe=te({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),xUe=SUe,AUe=te({name:"Search",__name:"search",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),TUe=AUe,CUe=te({name:"SortDown",__name:"sort-down",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),EUe=CUe,MUe=te({name:"SortUp",__name:"sort-up",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),DUe=MUe,PUe=te({name:"StarFilled",__name:"star-filled",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.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.72z"})]))}}),iw=PUe,LUe=te({name:"Star",__name:"star",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),IUe=LUe,RUe=te({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),kee=RUe,OUe=te({name:"View",__name:"view",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),kUe=OUe,NUe=te({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 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"})]))}}),yT=NUe,BUe=te({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),Nee=BUe,FUe=te({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),VUe=FUe;const Bee="__epPropKey",fe=e=>e,zUe=e=>Vt(e)&&!!e[Bee],sl=(e,t)=>{if(!Vt(e)||zUe(e))return e;const{values:r,required:n,default:a,type:i,validator:o}=e,l={type:i,required:!!n,validator:r||o?u=>{let c=!1,f=[];if(r&&(f=Array.from(r),or(e,"default")&&f.push(a),c||(c=f.includes(u))),o&&(c||(c=o(u))),!c&&f.length>0){const d=[...new Set(f)].map(h=>JSON.stringify(h)).join(", ");Joe(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[Bee]:!0};return or(e,"default")&&(l.default=a),l},Oe=e=>l2(Object.entries(e).map(([t,r])=>[t,sl(r,t)])),Zr=fe([String,Object,Function]),Fee={Close:el},e3={Close:el,SuccessFilled:kee,InfoFilled:JN,WarningFilled:yT,CircleCloseFilled:QN},Cf={success:kee,warning:yT,error:QN,info:JN},t3={validating:Hf,success:qN,error:zf},kt=(e,t)=>{if(e.install=r=>{for(const n of[e,...Object.values(t??{})])r.component(n.name,n)},t)for(const[r,n]of Object.entries(t))e[r]=n;return e},Vee=(e,t)=>(e.install=r=>{e._context=r._context,r.config.globalProperties[t]=e},e),HUe=(e,t)=>(e.install=r=>{r.directive(t,e)},e),Pn=e=>(e.install=zr,e),_T=(...e)=>t=>{e.forEach(r=>{dt(r)?r(t):r.value=t})},Qe={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"},GUe=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],kM=["sun","mon","tue","wed","thu","fri","sat"],Nt="update:modelValue",ln="change",Di="input",AG=Symbol("INSTALLED_KEY"),tu=["","default","small","large"],UUe={large:40,default:32,small:24},$Ue=e=>UUe[e||"default"],r3=e=>["",...tu].includes(e);var $o=(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))($o||{});function ZL(e){return hn(e)&&e.type===Be}function WUe(e){return hn(e)&&e.type===Ei}function YUe(e){return hn(e)&&!ZL(e)&&!WUe(e)}const jUe=e=>{if(!hn(e))return{};const t=e.props||{},r=(hn(e.type)?e.type.props:void 0)||{},n={};return Object.keys(r).forEach(a=>{or(r[a],"default")&&(n[a]=r[a].default)}),Object.keys(t).forEach(a=>{n[os(a)]=t[a]}),n},KUe=e=>{if(!We(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},Mh=e=>{const t=We(e)?e:[e],r=[];return t.forEach(n=>{var a;We(n)?r.push(...Mh(n)):hn(n)&&We(n.children)?r.push(...Mh(n.children)):(r.push(n),hn(n)&&((a=n.component)!=null&&a.subTree)&&r.push(...Mh(n.component.subTree)))}),r},TG=e=>[...new Set(e)],Nu=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],bT=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),cg=e=>ur?window.requestAnimationFrame(e):setTimeout(e,16),wT=e=>ur?window.cancelAnimationFrame(e):clearTimeout(e),ST=()=>Math.floor(Math.random()*1e4),mn=e=>e,XUe=["class","style"],ZUe=/^on[A-Z]/,n3=(e={})=>{const{excludeListeners:t=!1,excludeKeys:r}=e,n=F(()=>((r==null?void 0:r.value)||[]).concat(XUe)),a=It();return F(a?()=>{var i;return l2(Object.entries((i=a.proxy)==null?void 0:i.$attrs).filter(([o])=>!n.value.includes(o)&&!(t&&ZUe.test(o))))}:()=>({}))},Ul=({from:e,replacement:t,scope:r,version:n,ref:a,type:i="API"},o)=>{Ae(()=>b(o),s=>{},{immediate:!0})},zee=(e,t,r)=>{let n={offsetX:0,offsetY:0};const a=s=>{const l=s.clientX,u=s.clientY,{offsetX:c,offsetY:f}=n,d=e.value.getBoundingClientRect(),h=d.left,v=d.top,p=d.width,g=d.height,m=document.documentElement.clientWidth,y=document.documentElement.clientHeight,_=-h+c,w=-v+f,x=m-h-p+c,S=y-v-g+f,T=C=>{const M=Math.min(Math.max(c+C.clientX-l,_),x),E=Math.min(Math.max(f+C.clientY-u,w),S);n={offsetX:M,offsetY:E},e.value&&(e.value.style.transform=`translate(${Hn(M)}, ${Hn(E)})`)},A=()=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",A)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",A)},i=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",a)},o=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",a)};xt(()=>{xo(()=>{r.value?i():o()})}),un(()=>{o()})};var qUe={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new 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",week:"week",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"},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"},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"}}};const QUe=e=>(t,r)=>JUe(t,r,b(e)),JUe=(e,t,r)=>gn(r,e,e).replace(/\{(\w+)\}/g,(n,a)=>{var i;return`${(i=t==null?void 0:t[a])!=null?i:`{${a}}`}`}),e$e=e=>{const t=F(()=>b(e).name),r=Qr(e)?e:G(e);return{lang:t,locale:r,t:QUe(e)}},Hee=Symbol("localeContextKey"),fr=e=>{const t=e||Ye(Hee,G());return e$e(F(()=>t.value||qUe))},a0="el",t$e="is-",xd=(e,t,r,n,a)=>{let i=`${e}-${t}`;return r&&(i+=`-${r}`),n&&(i+=`__${n}`),a&&(i+=`--${a}`),i},Gee=Symbol("namespaceContextKey"),a3=e=>{const t=e||(It()?Ye(Gee,G(a0)):G(a0));return F(()=>b(t)||a0)},Ce=(e,t)=>{const r=a3(t);return{namespace:r,b:(p="")=>xd(r.value,e,p,"",""),e:p=>p?xd(r.value,e,"",p,""):"",m:p=>p?xd(r.value,e,"","",p):"",be:(p,g)=>p&&g?xd(r.value,e,p,g,""):"",em:(p,g)=>p&&g?xd(r.value,e,"",p,g):"",bm:(p,g)=>p&&g?xd(r.value,e,p,"",g):"",bem:(p,g,m)=>p&&g&&m?xd(r.value,e,p,g,m):"",is:(p,...g)=>{const m=g.length>=1?g[0]:!0;return p&&m?`${t$e}${p}`:""},cssVar:p=>{const g={};for(const m in p)p[m]&&(g[`--${r.value}-${m}`]=p[m]);return g},cssVarName:p=>`--${r.value}-${p}`,cssVarBlock:p=>{const g={};for(const m in p)p[m]&&(g[`--${r.value}-${e}-${m}`]=p[m]);return g},cssVarBlockName:p=>`--${r.value}-${e}-${p}`}},Uee=(e,t={})=>{Qr(e)||ua("[useLockscreen]","You need to pass a ref param to this function");const r=t.ns||Ce("popup"),n=p9(()=>r.bm("parent","hidden"));if(!ur||Ws(document.body,n.value))return;let a=0,i=!1,o="0";const s=()=>{setTimeout(()=>{ro(document==null?void 0:document.body,n.value),i&&document&&(document.body.style.width=o)},200)};Ae(e,l=>{if(!l){s();return}i=!Ws(document.body,n.value),i&&(o=document.body.style.width),a=Pee(r.namespace.value);const u=document.documentElement.clientHeight0&&(u||c==="scroll")&&i&&(document.body.style.width=`calc(100% - ${a}px)`),Pl(document.body,n.value)}),JW(()=>s())},r$e=sl({type:fe(Boolean),default:null}),n$e=sl({type:fe(Function)}),$ee=e=>{const t=`update:${e}`,r=`onUpdate:${e}`,n=[t],a={[e]:r$e,[r]:n$e};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const d=It(),{emit:h}=d,v=d.props,p=F(()=>dt(v[r])),g=F(()=>v[e]===null),m=T=>{o.value!==!0&&(o.value=!0,s&&(s.value=T),dt(c)&&c(T))},y=T=>{o.value!==!1&&(o.value=!1,s&&(s.value=T),dt(f)&&f(T))},_=T=>{if(v.disabled===!0||dt(u)&&!u())return;const A=p.value&&ur;A&&h(t,!0),(g.value||!A)&&m(T)},w=T=>{if(v.disabled===!0||!ur)return;const A=p.value&&ur;A&&h(t,!1),(g.value||!A)&&y(T)},x=T=>{la(T)&&(v.disabled&&T?p.value&&h(t,!1):o.value!==T&&(T?m():y()))},S=()=>{o.value?w():_()};return Ae(()=>v[e],x),l&&d.appContext.config.globalProperties.$route!==void 0&&Ae(()=>({...d.proxy.$route}),()=>{l.value&&o.value&&w()}),xt(()=>{x(v[e])}),{hide:w,show:_,toggle:S,hasUpdateHandler:p}},useModelToggleProps:a,useModelToggleEmits:n}};$ee("modelValue");const Wee=e=>{const t=It();return F(()=>{var r,n;return(n=(r=t==null?void 0:t.proxy)==null?void 0:r.$props)==null?void 0:n[e]})};var no="top",cs="bottom",fs="right",ao="left",i3="auto",L1=[no,cs,fs,ao],fg="start",p_="end",a$e="clippingParents",Yee="viewport",Qm="popper",i$e="reference",CG=L1.reduce(function(e,t){return e.concat([t+"-"+fg,t+"-"+p_])},[]),dv=[].concat(L1,[i3]).reduce(function(e,t){return e.concat([t,t+"-"+fg,t+"-"+p_])},[]),o$e="beforeRead",s$e="read",l$e="afterRead",u$e="beforeMain",c$e="main",f$e="afterMain",d$e="beforeWrite",h$e="write",v$e="afterWrite",p$e=[o$e,s$e,l$e,u$e,c$e,f$e,d$e,h$e,v$e];function $l(e){return e?(e.nodeName||"").toLowerCase():null}function ll(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function dg(e){var t=ll(e).Element;return e instanceof t||e instanceof Element}function ns(e){var t=ll(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function o3(e){if(typeof ShadowRoot>"u")return!1;var t=ll(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function g$e(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},i=t.elements[r];!ns(i)||!$l(i)||(Object.assign(i.style,n),Object.keys(a).forEach(function(o){var s=a[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function m$e(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],i=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=o.reduce(function(l,u){return l[u]="",l},{});!ns(a)||!$l(a)||(Object.assign(a.style,s),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}var jee={name:"applyStyles",enabled:!0,phase:"write",fn:g$e,effect:m$e,requires:["computeStyles"]};function kl(e){return e.split("-")[0]}var Dh=Math.max,u2=Math.min,hg=Math.round;function vg(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),n=1,a=1;if(ns(e)&&t){var i=e.offsetHeight,o=e.offsetWidth;o>0&&(n=hg(r.width)/o||1),i>0&&(a=hg(r.height)/i||1)}return{width:r.width/n,height:r.height/a,top:r.top/a,right:r.right/n,bottom:r.bottom/a,left:r.left/n,x:r.left/n,y:r.top/a}}function s3(e){var t=vg(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Kee(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&o3(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ju(e){return ll(e).getComputedStyle(e)}function y$e(e){return["table","td","th"].indexOf($l(e))>=0}function Gf(e){return((dg(e)?e.ownerDocument:e.document)||window.document).documentElement}function xT(e){return $l(e)==="html"?e:e.assignedSlot||e.parentNode||(o3(e)?e.host:null)||Gf(e)}function EG(e){return!ns(e)||ju(e).position==="fixed"?null:e.offsetParent}function _$e(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&ns(e)){var n=ju(e);if(n.position==="fixed")return null}var a=xT(e);for(o3(a)&&(a=a.host);ns(a)&&["html","body"].indexOf($l(a))<0;){var i=ju(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function I1(e){for(var t=ll(e),r=EG(e);r&&y$e(r)&&ju(r).position==="static";)r=EG(r);return r&&($l(r)==="html"||$l(r)==="body"&&ju(r).position==="static")?t:r||_$e(e)||t}function l3(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function i0(e,t,r){return Dh(e,u2(t,r))}function b$e(e,t,r){var n=i0(e,t,r);return n>r?r:n}function Xee(){return{top:0,right:0,bottom:0,left:0}}function Zee(e){return Object.assign({},Xee(),e)}function qee(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var w$e=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Zee(typeof e!="number"?e:qee(e,L1))};function S$e(e){var t,r=e.state,n=e.name,a=e.options,i=r.elements.arrow,o=r.modifiersData.popperOffsets,s=kl(r.placement),l=l3(s),u=[ao,fs].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!o)){var f=w$e(a.padding,r),d=s3(i),h=l==="y"?no:ao,v=l==="y"?cs:fs,p=r.rects.reference[c]+r.rects.reference[l]-o[l]-r.rects.popper[c],g=o[l]-r.rects.reference[l],m=I1(i),y=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,_=p/2-g/2,w=f[h],x=y-d[c]-f[v],S=y/2-d[c]/2+_,T=i0(w,S,x),A=l;r.modifiersData[n]=(t={},t[A]=T,t.centerOffset=T-S,t)}}function x$e(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!Kee(t.elements.popper,a)||(t.elements.arrow=a))}var A$e={name:"arrow",enabled:!0,phase:"main",fn:S$e,effect:x$e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pg(e){return e.split("-")[1]}var T$e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function C$e(e){var t=e.x,r=e.y,n=window,a=n.devicePixelRatio||1;return{x:hg(t*a)/a||0,y:hg(r*a)/a||0}}function MG(e){var t,r=e.popper,n=e.popperRect,a=e.placement,i=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=o.x,h=d===void 0?0:d,v=o.y,p=v===void 0?0:v,g=typeof c=="function"?c({x:h,y:p}):{x:h,y:p};h=g.x,p=g.y;var m=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),_=ao,w=no,x=window;if(u){var S=I1(r),T="clientHeight",A="clientWidth";if(S===ll(r)&&(S=Gf(r),ju(S).position!=="static"&&s==="absolute"&&(T="scrollHeight",A="scrollWidth")),S=S,a===no||(a===ao||a===fs)&&i===p_){w=cs;var C=f&&S===x&&x.visualViewport?x.visualViewport.height:S[T];p-=C-n.height,p*=l?1:-1}if(a===ao||(a===no||a===cs)&&i===p_){_=fs;var M=f&&S===x&&x.visualViewport?x.visualViewport.width:S[A];h-=M-n.width,h*=l?1:-1}}var E=Object.assign({position:s},u&&T$e),D=c===!0?C$e({x:h,y:p}):{x:h,y:p};if(h=D.x,p=D.y,l){var P;return Object.assign({},E,(P={},P[w]=y?"0":"",P[_]=m?"0":"",P.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",P))}return Object.assign({},E,(t={},t[w]=y?p+"px":"",t[_]=m?h+"px":"",t.transform="",t))}function E$e(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,i=r.adaptive,o=i===void 0?!0:i,s=r.roundOffsets,l=s===void 0?!0:s,u={placement:kl(t.placement),variation:pg(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,MG(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,MG(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 Qee={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:E$e,data:{}},ow={passive:!0};function M$e(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,i=a===void 0?!0:a,o=n.resize,s=o===void 0?!0:o,l=ll(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",r.update,ow)}),s&&l.addEventListener("resize",r.update,ow),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",r.update,ow)}),s&&l.removeEventListener("resize",r.update,ow)}}var Jee={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:M$e,data:{}},D$e={left:"right",right:"left",bottom:"top",top:"bottom"};function vS(e){return e.replace(/left|right|bottom|top/g,function(t){return D$e[t]})}var P$e={start:"end",end:"start"};function DG(e){return e.replace(/start|end/g,function(t){return P$e[t]})}function u3(e){var t=ll(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function c3(e){return vg(Gf(e)).left+u3(e).scrollLeft}function L$e(e){var t=ll(e),r=Gf(e),n=t.visualViewport,a=r.clientWidth,i=r.clientHeight,o=0,s=0;return n&&(a=n.width,i=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=n.offsetLeft,s=n.offsetTop)),{width:a,height:i,x:o+c3(e),y:s}}function I$e(e){var t,r=Gf(e),n=u3(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=Dh(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=Dh(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-n.scrollLeft+c3(e),l=-n.scrollTop;return ju(a||r).direction==="rtl"&&(s+=Dh(r.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:l}}function f3(e){var t=ju(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function ete(e){return["html","body","#document"].indexOf($l(e))>=0?e.ownerDocument.body:ns(e)&&f3(e)?e:ete(xT(e))}function o0(e,t){var r;t===void 0&&(t=[]);var n=ete(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),i=ll(n),o=a?[i].concat(i.visualViewport||[],f3(n)?n:[]):n,s=t.concat(o);return a?s:s.concat(o0(xT(o)))}function qL(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function R$e(e){var t=vg(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 PG(e,t){return t===Yee?qL(L$e(e)):dg(t)?R$e(t):qL(I$e(Gf(e)))}function O$e(e){var t=o0(xT(e)),r=["absolute","fixed"].indexOf(ju(e).position)>=0,n=r&&ns(e)?I1(e):e;return dg(n)?t.filter(function(a){return dg(a)&&Kee(a,n)&&$l(a)!=="body"}):[]}function k$e(e,t,r){var n=t==="clippingParents"?O$e(e):[].concat(t),a=[].concat(n,[r]),i=a[0],o=a.reduce(function(s,l){var u=PG(e,l);return s.top=Dh(u.top,s.top),s.right=u2(u.right,s.right),s.bottom=u2(u.bottom,s.bottom),s.left=Dh(u.left,s.left),s},PG(e,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function tte(e){var t=e.reference,r=e.element,n=e.placement,a=n?kl(n):null,i=n?pg(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(a){case no:l={x:o,y:t.y-r.height};break;case cs:l={x:o,y:t.y+t.height};break;case fs:l={x:t.x+t.width,y:s};break;case ao:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var u=a?l3(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case fg:l[u]=l[u]-(t[c]/2-r[c]/2);break;case p_:l[u]=l[u]+(t[c]/2-r[c]/2);break}}return l}function g_(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,i=r.boundary,o=i===void 0?a$e:i,s=r.rootBoundary,l=s===void 0?Yee:s,u=r.elementContext,c=u===void 0?Qm:u,f=r.altBoundary,d=f===void 0?!1:f,h=r.padding,v=h===void 0?0:h,p=Zee(typeof v!="number"?v:qee(v,L1)),g=c===Qm?i$e:Qm,m=e.rects.popper,y=e.elements[d?g:c],_=k$e(dg(y)?y:y.contextElement||Gf(e.elements.popper),o,l),w=vg(e.elements.reference),x=tte({reference:w,element:m,strategy:"absolute",placement:a}),S=qL(Object.assign({},m,x)),T=c===Qm?S:w,A={top:_.top-T.top+p.top,bottom:T.bottom-_.bottom+p.bottom,left:_.left-T.left+p.left,right:T.right-_.right+p.right},C=e.modifiersData.offset;if(c===Qm&&C){var M=C[a];Object.keys(A).forEach(function(E){var D=[fs,cs].indexOf(E)>=0?1:-1,P=[no,cs].indexOf(E)>=0?"y":"x";A[E]+=M[P]*D})}return A}function N$e(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,i=r.rootBoundary,o=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?dv:l,c=pg(n),f=c?s?CG:CG.filter(function(v){return pg(v)===c}):L1,d=f.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=f);var h=d.reduce(function(v,p){return v[p]=g_(e,{placement:p,boundary:a,rootBoundary:i,padding:o})[kl(p)],v},{});return Object.keys(h).sort(function(v,p){return h[v]-h[p]})}function B$e(e){if(kl(e)===i3)return[];var t=vS(e);return[DG(e),t,DG(t)]}function F$e(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,i=a===void 0?!0:a,o=r.altAxis,s=o===void 0?!0:o,l=r.fallbackPlacements,u=r.padding,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,v=h===void 0?!0:h,p=r.allowedAutoPlacements,g=t.options.placement,m=kl(g),y=m===g,_=l||(y||!v?[vS(g)]:B$e(g)),w=[g].concat(_).reduce(function(Q,se){return Q.concat(kl(se)===i3?N$e(t,{placement:se,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:p}):se)},[]),x=t.rects.reference,S=t.rects.popper,T=new Map,A=!0,C=w[0],M=0;M=0,I=L?"width":"height",O=g_(t,{placement:E,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),R=L?P?fs:ao:P?cs:no;x[I]>S[I]&&(R=vS(R));var B=vS(R),k=[];if(i&&k.push(O[D]<=0),s&&k.push(O[R]<=0,O[B]<=0),k.every(function(Q){return Q})){C=E,A=!1;break}T.set(E,k)}if(A)for(var z=v?3:1,$=function(Q){var se=w.find(function(ee){var K=T.get(ee);if(K)return K.slice(0,Q).every(function(Z){return Z})});if(se)return C=se,"break"},j=z;j>0;j--){var X=$(j);if(X==="break")break}t.placement!==C&&(t.modifiersData[n]._skip=!0,t.placement=C,t.reset=!0)}}var V$e={name:"flip",enabled:!0,phase:"main",fn:F$e,requiresIfExists:["offset"],data:{_skip:!1}};function LG(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function IG(e){return[no,fs,cs,ao].some(function(t){return e[t]>=0})}function z$e(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=g_(t,{elementContext:"reference"}),s=g_(t,{altBoundary:!0}),l=LG(o,n),u=LG(s,a,i),c=IG(l),f=IG(u);t.modifiersData[r]={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 H$e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:z$e};function G$e(e,t,r){var n=kl(e),a=[ao,no].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[ao,fs].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function U$e(e){var t=e.state,r=e.options,n=e.name,a=r.offset,i=a===void 0?[0,0]:a,o=dv.reduce(function(c,f){return c[f]=G$e(f,t.rects,i),c},{}),s=o[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=o}var $$e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:U$e};function W$e(e){var t=e.state,r=e.name;t.modifiersData[r]=tte({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var rte={name:"popperOffsets",enabled:!0,phase:"read",fn:W$e,data:{}};function Y$e(e){return e==="x"?"y":"x"}function j$e(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,i=a===void 0?!0:a,o=r.altAxis,s=o===void 0?!1:o,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,v=r.tetherOffset,p=v===void 0?0:v,g=g_(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),m=kl(t.placement),y=pg(t.placement),_=!y,w=l3(m),x=Y$e(w),S=t.modifiersData.popperOffsets,T=t.rects.reference,A=t.rects.popper,C=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,M=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(S){if(i){var P,L=w==="y"?no:ao,I=w==="y"?cs:fs,O=w==="y"?"height":"width",R=S[w],B=R+g[L],k=R-g[I],z=h?-A[O]/2:0,$=y===fg?T[O]:A[O],j=y===fg?-A[O]:-T[O],X=t.elements.arrow,Q=h&&X?s3(X):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Xee(),ee=se[L],K=se[I],Z=i0(0,T[O],Q[O]),ne=_?T[O]/2-z-Z-ee-M.mainAxis:$-Z-ee-M.mainAxis,re=_?-T[O]/2+z+Z+K+M.mainAxis:j+Z+K+M.mainAxis,ie=t.elements.arrow&&I1(t.elements.arrow),Y=ie?w==="y"?ie.clientTop||0:ie.clientLeft||0:0,q=(P=E==null?void 0:E[w])!=null?P:0,oe=R+ne-q-Y,ve=R+re-q,_e=i0(h?u2(B,oe):B,R,h?Dh(k,ve):k);S[w]=_e,D[w]=_e-R}if(s){var ge,Le=w==="x"?no:ao,Se=w==="x"?cs:fs,xe=S[x],Te=x==="y"?"height":"width",Ve=xe+g[Le],He=xe-g[Se],je=[no,ao].indexOf(m)!==-1,Pe=(ge=E==null?void 0:E[x])!=null?ge:0,Ue=je?Ve:xe-T[Te]-A[Te]-Pe+M.altAxis,gt=je?xe+T[Te]+A[Te]-Pe-M.altAxis:He,At=h&&je?b$e(Ue,xe,gt):i0(h?Ue:Ve,xe,h?gt:He);S[x]=At,D[x]=At-xe}t.modifiersData[n]=D}}var K$e={name:"preventOverflow",enabled:!0,phase:"main",fn:j$e,requiresIfExists:["offset"]};function X$e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Z$e(e){return e===ll(e)||!ns(e)?u3(e):X$e(e)}function q$e(e){var t=e.getBoundingClientRect(),r=hg(t.width)/e.offsetWidth||1,n=hg(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Q$e(e,t,r){r===void 0&&(r=!1);var n=ns(t),a=ns(t)&&q$e(t),i=Gf(t),o=vg(e,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&(($l(t)!=="body"||f3(i))&&(s=Z$e(t)),ns(t)?(l=vg(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=c3(i))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function J$e(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function a(i){r.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&a(l)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||a(i)}),n}function eWe(e){var t=J$e(e);return p$e.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function tWe(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function rWe(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var RG={placement:"bottom",modifiers:[],strategy:"absolute"};function OG(){for(var e=arguments.length,t=new Array(e),r=0;r{const n={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=oWe(l);Object.assign(o.value,u)},requires:["computeStyles"]},a=F(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:f}=b(r);return{onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...f||[],n,{name:"applyStyles",enabled:!1}]}}),i=yr(),o=G({styles:{popper:{position:b(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return Ae(a,l=>{const u=b(i);u&&u.setOptions(l)},{deep:!0}),Ae([e,t],([l,u])=>{s(),!(!l||!u)&&(i.value=nte(l,u,b(a)))}),un(()=>{s()}),{state:F(()=>{var l;return{...((l=b(i))==null?void 0:l.state)||{}}}),styles:F(()=>b(o).styles),attributes:F(()=>b(o).attributes),update:()=>{var l;return(l=b(i))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=b(i))==null?void 0:l.forceUpdate()},instanceRef:F(()=>b(i))}};function oWe(e){const t=Object.keys(e.elements),r=l2(t.map(a=>[a,e.styles[a]||{}])),n=l2(t.map(a=>[a,e.attributes[a]]));return{styles:r,attributes:n}}const h3=e=>{if(!e)return{onClick:zr,onMousedown:zr,onMouseup:zr};let t=!1,r=!1;return{onClick:o=>{t&&r&&e(o),t=r=!1},onMousedown:o=>{t=o.target===o.currentTarget},onMouseup:o=>{r=o.target===o.currentTarget}}},sWe=(e,t=0)=>{if(t===0)return e;const r=G(!1);let n=0;const a=()=>{n&&clearTimeout(n),n=window.setTimeout(()=>{r.value=e.value},t)};return xt(a),Ae(()=>e.value,i=>{i?a():r.value=i}),r};function kG(){let e;const t=(n,a)=>{r(),e=window.setTimeout(n,a)},r=()=>window.clearTimeout(e);return x1(()=>r()),{registerTimeout:t,cancelTimeout:r}}const NG={prefix:Math.floor(Math.random()*1e4),current:0},lWe=Symbol("elIdInjection"),ate=()=>It()?Ye(lWe,NG):NG,co=e=>{const t=ate(),r=a3();return F(()=>b(e)||`${r.value}-id-${t.prefix}-${t.current++}`)};let ip=[];const BG=e=>{const t=e;t.key===Qe.esc&&ip.forEach(r=>r(t))},uWe=e=>{xt(()=>{ip.length===0&&document.addEventListener("keydown",BG),ur&&ip.push(e)}),un(()=>{ip=ip.filter(t=>t!==e),ip.length===0&&ur&&document.removeEventListener("keydown",BG)})};let FG;const ite=()=>{const e=a3(),t=ate(),r=F(()=>`${e.value}-popper-container-${t.prefix}`),n=F(()=>`#${r.value}`);return{id:r,selector:n}},cWe=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},fWe=()=>{const{id:e,selector:t}=ite();return Y2(()=>{ur&&!FG&&!document.body.querySelector(t.value)&&(FG=cWe(e.value))}),{id:e,selector:t}},dWe=Oe({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),ote=({showAfter:e,hideAfter:t,autoClose:r,open:n,close:a})=>{const{registerTimeout:i}=kG(),{registerTimeout:o,cancelTimeout:s}=kG();return{onOpen:c=>{i(()=>{n(c);const f=b(r);ct(f)&&f>0&&o(()=>{a(c)},f)},b(e))},onClose:c=>{s(),i(()=>{a(c)},b(t))}}},ste=Symbol("elForwardRef"),hWe=e=>{Wt(ste,{setForwardRef:r=>{e.value=r}})},vWe=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),VG=G(0),lte=2e3,ute=Symbol("zIndexContextKey"),im=e=>{const t=e||(It()?Ye(ute,void 0):void 0),r=F(()=>{const i=b(t);return ct(i)?i:lte}),n=F(()=>r.value+VG.value);return{initialZIndex:r,currentZIndex:n,nextZIndex:()=>(VG.value++,n.value)}},m_=Math.min,Np=Math.max,c2=Math.round,Ef=e=>({x:e,y:e});function pWe(e,t,r){return Np(e,m_(t,r))}function cte(e,t){return typeof e=="function"?e(t):e}function v3(e){return e.split("-")[0]}function p3(e){return e.split("-")[1]}function gWe(e){return e==="x"?"y":"x"}function fte(e){return e==="y"?"height":"width"}function g3(e){return["top","bottom"].includes(v3(e))?"y":"x"}function dte(e){return gWe(g3(e))}function mWe(e){return{top:0,right:0,bottom:0,left:0,...e}}function yWe(e){return typeof e!="number"?mWe(e):{top:e,right:e,bottom:e,left:e}}function hte(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function zG(e,t,r){let{reference:n,floating:a}=e;const i=g3(t),o=dte(t),s=fte(o),l=v3(t),u=i==="y",c=n.x+n.width/2-a.width/2,f=n.y+n.height/2-a.height/2,d=n[s]/2-a[s]/2;let h;switch(l){case"top":h={x:c,y:n.y-a.height};break;case"bottom":h={x:c,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-a.width,y:f};break;default:h={x:n.x,y:n.y}}switch(p3(t)){case"start":h[o]-=d*(r&&u?-1:1);break;case"end":h[o]+=d*(r&&u?-1:1);break}return h}const _We=async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:o}=r,s=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:f}=zG(u,n,l),d=n,h={},v=0;for(let p=0;p({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:a,rects:i,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=cte(e,t)||{};if(u==null)return{};const f=yWe(c),d={x:r,y:n},h=dte(a),v=fte(h),p=await o.getDimensions(u),g=h==="y",m=g?"top":"left",y=g?"bottom":"right",_=g?"clientHeight":"clientWidth",w=i.reference[v]+i.reference[h]-d[h]-i.floating[v],x=d[h]-i.reference[h],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let T=S?S[_]:0;(!T||!await(o.isElement==null?void 0:o.isElement(S)))&&(T=s.floating[_]||i.floating[v]);const A=w/2-x/2,C=T/2-p[v]/2-1,M=m_(f[m],C),E=m_(f[y],C),D=M,P=T-p[v]-E,L=T/2-p[v]/2+A,I=pWe(D,L,P),O=!l.arrow&&p3(a)!=null&&L!=I&&i.reference[v]/2-(L"u"?!1:e instanceof ShadowRoot||e instanceof To(e).ShadowRoot}function R1(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=ds(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(a)}function xWe(e){return["table","td","th"].includes(Mf(e))}function m3(e){const t=y3(),r=ds(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function AWe(e){let t=gg(e);for(;Wl(t)&&!AT(t);){if(m3(t))return t;t=gg(t)}return null}function y3(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function AT(e){return["html","body","#document"].includes(Mf(e))}function ds(e){return To(e).getComputedStyle(e)}function TT(e){return Ku(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function gg(e){if(Mf(e)==="html")return e;const t=e.assignedSlot||e.parentNode||HG(e)&&e.host||Uf(e);return HG(t)?t.host:t}function pte(e){const t=gg(e);return AT(t)?e.ownerDocument?e.ownerDocument.body:e.body:Wl(t)&&R1(t)?t:pte(t)}function QL(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=pte(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),o=To(a);return i?t.concat(o,o.visualViewport||[],R1(a)?a:[],o.frameElement&&r?QL(o.frameElement):[]):t.concat(a,QL(a,[],r))}function gte(e){const t=ds(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=Wl(e),i=a?e.offsetWidth:r,o=a?e.offsetHeight:n,s=c2(r)!==i||c2(n)!==o;return s&&(r=i,n=o),{width:r,height:n,$:s}}function mte(e){return Ku(e)?e:e.contextElement}function Bp(e){const t=mte(e);if(!Wl(t))return Ef(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:i}=gte(t);let o=(i?c2(r.width):r.width)/n,s=(i?c2(r.height):r.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const TWe=Ef(0);function yte(e){const t=To(e);return!y3()||!t.visualViewport?TWe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function CWe(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==To(e)?!1:t}function y_(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),i=mte(e);let o=Ef(1);t&&(n?Ku(n)&&(o=Bp(n)):o=Bp(e));const s=CWe(i,r,n)?yte(i):Ef(0);let l=(a.left+s.x)/o.x,u=(a.top+s.y)/o.y,c=a.width/o.x,f=a.height/o.y;if(i){const d=To(i),h=n&&Ku(n)?To(n):n;let v=d.frameElement;for(;v&&n&&h!==d;){const p=Bp(v),g=v.getBoundingClientRect(),m=ds(v),y=g.left+(v.clientLeft+parseFloat(m.paddingLeft))*p.x,_=g.top+(v.clientTop+parseFloat(m.paddingTop))*p.y;l*=p.x,u*=p.y,c*=p.x,f*=p.y,l+=y,u+=_,v=To(v).frameElement}}return hte({width:c,height:f,x:l,y:u})}function EWe(e){let{rect:t,offsetParent:r,strategy:n}=e;const a=Wl(r),i=Uf(r);if(r===i)return t;let o={scrollLeft:0,scrollTop:0},s=Ef(1);const l=Ef(0);if((a||!a&&n!=="fixed")&&((Mf(r)!=="body"||R1(i))&&(o=TT(r)),Wl(r))){const u=y_(r);s=Bp(r),l.x=u.x+r.clientLeft,l.y=u.y+r.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+l.x,y:t.y*s.y-o.scrollTop*s.y+l.y}}function MWe(e){return Array.from(e.getClientRects())}function _te(e){return y_(Uf(e)).left+TT(e).scrollLeft}function DWe(e){const t=Uf(e),r=TT(e),n=e.ownerDocument.body,a=Np(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Np(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+_te(e);const s=-r.scrollTop;return ds(n).direction==="rtl"&&(o+=Np(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:o,y:s}}function PWe(e,t){const r=To(e),n=Uf(e),a=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;const u=y3();(!u||u&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:o,x:s,y:l}}function LWe(e,t){const r=y_(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=Wl(e)?Bp(e):Ef(1),o=e.clientWidth*i.x,s=e.clientHeight*i.y,l=a*i.x,u=n*i.y;return{width:o,height:s,x:l,y:u}}function GG(e,t,r){let n;if(t==="viewport")n=PWe(e,r);else if(t==="document")n=DWe(Uf(e));else if(Ku(t))n=LWe(t,r);else{const a=yte(e);n={...t,x:t.x-a.x,y:t.y-a.y}}return hte(n)}function bte(e,t){const r=gg(e);return r===t||!Ku(r)||AT(r)?!1:ds(r).position==="fixed"||bte(r,t)}function IWe(e,t){const r=t.get(e);if(r)return r;let n=QL(e,[],!1).filter(s=>Ku(s)&&Mf(s)!=="body"),a=null;const i=ds(e).position==="fixed";let o=i?gg(e):e;for(;Ku(o)&&!AT(o);){const s=ds(o),l=m3(o);!l&&s.position==="fixed"&&(a=null),(i?!l&&!a:!l&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||R1(o)&&!l&&bte(e,o))?n=n.filter(c=>c!==o):a=s,o=gg(o)}return t.set(e,n),n}function RWe(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const o=[...r==="clippingAncestors"?IWe(t,this._c):[].concat(r),n],s=o[0],l=o.reduce((u,c)=>{const f=GG(t,c,a);return u.top=Np(f.top,u.top),u.right=m_(f.right,u.right),u.bottom=m_(f.bottom,u.bottom),u.left=Np(f.left,u.left),u},GG(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function OWe(e){return gte(e)}function kWe(e,t,r){const n=Wl(t),a=Uf(t),i=r==="fixed",o=y_(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Ef(0);if(n||!n&&!i)if((Mf(t)!=="body"||R1(a))&&(s=TT(t)),n){const u=y_(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else a&&(l.x=_te(a));return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function UG(e,t){return!Wl(e)||ds(e).position==="fixed"?null:t?t(e):e.offsetParent}function wte(e,t){const r=To(e);if(!Wl(e))return r;let n=UG(e,t);for(;n&&xWe(n)&&ds(n).position==="static";)n=UG(n,t);return n&&(Mf(n)==="html"||Mf(n)==="body"&&ds(n).position==="static"&&!m3(n))?r:n||AWe(e)||r}const NWe=async function(e){let{reference:t,floating:r,strategy:n}=e;const a=this.getOffsetParent||wte,i=this.getDimensions;return{reference:kWe(t,await a(r),n),floating:{x:0,y:0,...await i(r)}}};function BWe(e){return ds(e).direction==="rtl"}const FWe={convertOffsetParentRelativeRectToViewportRelativeRect:EWe,getDocumentElement:Uf,getClippingRect:RWe,getOffsetParent:wte,getElementRects:NWe,getClientRects:MWe,getDimensions:OWe,getScale:Bp,isElement:Ku,isRTL:BWe},VWe=(e,t,r)=>{const n=new Map,a={platform:FWe,...r},i={...a.platform,_c:n};return _We(e,t,{...a,platform:i})};Oe({});const zWe=e=>{if(!ur)return;if(!e)return e;const t=Ji(e);return t||(Qr(e)?t:e)},HWe=({middleware:e,placement:t,strategy:r})=>{const n=G(),a=G(),i=G(),o=G(),s=G({}),l={x:i,y:o,placement:t,strategy:r,middlewareData:s},u=async()=>{if(!ur)return;const c=zWe(n),f=Ji(a);if(!c||!f)return;const d=await VWe(c,f,{placement:b(t),strategy:b(r),middleware:b(e)});v_(l).forEach(h=>{l[h].value=d[h]})};return xt(()=>{xo(()=>{u()})}),{...l,update:u,referenceRef:n,contentRef:a}},GWe=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(r){const n=b(e);return n?bWe({element:n,padding:t}).fn(r):{}}});function UWe(e){const t=G();function r(){if(e.value==null)return;const{selectionStart:a,selectionEnd:i,value:o}=e.value;if(a==null||i==null)return;const s=o.slice(0,Math.max(0,a)),l=o.slice(Math.max(0,i));t.value={selectionStart:a,selectionEnd:i,value:o,beforeTxt:s,afterTxt:l}}function n(){if(e.value==null||t.value==null)return;const{value:a}=e.value,{beforeTxt:i,afterTxt:o,selectionStart:s}=t.value;if(i==null||o==null||s==null)return;let l=a.length;if(a.endsWith(o))l=a.length-o.length;else if(a.startsWith(i))l=i.length;else{const u=i[s-1],c=a.indexOf(u,s-1);c!==-1&&(l=c+1)}e.value.setSelectionRange(l,l)}return[r,n]}const $We=(e,t,r)=>Mh(e.subTree).filter(i=>{var o;return hn(i)&&((o=i.type)==null?void 0:o.name)===t&&!!i.component}).map(i=>i.component.uid).map(i=>r[i]).filter(i=>!!i),_3=(e,t)=>{const r={},n=yr([]);return{children:n,addChild:o=>{r[o.uid]=o,n.value=$We(e,t,r)},removeChild:o=>{delete r[o],n.value=n.value.filter(s=>s.uid!==o)}}},Ga=sl({type:String,values:tu,required:!1}),Ste=Symbol("size"),WWe=()=>{const e=Ye(Ste,{});return F(()=>b(e.size)||"")};function xte(e,{afterFocus:t,beforeBlur:r,afterBlur:n}={}){const a=It(),{emit:i}=a,o=yr(),s=G(!1),l=f=>{s.value||(s.value=!0,i("focus",f),t==null||t())},u=f=>{var d;dt(r)&&r(f)||f.relatedTarget&&((d=o.value)!=null&&d.contains(f.relatedTarget))||(s.value=!1,i("blur",f),n==null||n())},c=()=>{var f;(f=e.value)==null||f.focus()};return Ae(o,f=>{f&&f.setAttribute("tabindex","-1")}),dn(o,"click",c),{wrapperRef:o,isFocused:s,handleFocus:l,handleBlur:u}}const Ate=Symbol(),f2=G();function CT(e,t=void 0){const r=It()?Ye(Ate,f2):f2;return e?F(()=>{var n,a;return(a=(n=r.value)==null?void 0:n[e])!=null?a:t}):r}function ET(e,t){const r=CT(),n=Ce(e,F(()=>{var s;return((s=r.value)==null?void 0:s.namespace)||a0})),a=fr(F(()=>{var s;return(s=r.value)==null?void 0:s.locale})),i=im(F(()=>{var s;return((s=r.value)==null?void 0:s.zIndex)||lte})),o=F(()=>{var s;return b(t)||((s=r.value)==null?void 0:s.size)||""});return b3(F(()=>b(r)||{})),{ns:n,locale:a,zIndex:i,size:o}}const b3=(e,t,r=!1)=>{var n;const a=!!It(),i=a?CT():void 0,o=(n=t==null?void 0:t.provide)!=null?n:a?Wt:void 0;if(!o)return;const s=F(()=>{const l=b(e);return i!=null&&i.value?YWe(i.value,l):l});return o(Ate,s),o(Hee,F(()=>s.value.locale)),o(Gee,F(()=>s.value.namespace)),o(ute,F(()=>s.value.zIndex)),o(Ste,{size:F(()=>s.value.size||"")}),(r||!f2.value)&&(f2.value=s.value),s},YWe=(e,t)=>{var r;const n=[...new Set([...v_(e),...v_(t)])],a={};for(const i of n)a[i]=(r=t[i])!=null?r:e[i];return a},jWe=Oe({a11y:{type:Boolean,default:!0},locale:{type:fe(Object)},size:Ga,button:{type:fe(Object)},experimentalFeatures:{type:fe(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:fe(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),JL={},KWe=te({name:"ElConfigProvider",props:jWe,setup(e,{slots:t}){Ae(()=>e.message,n=>{Object.assign(JL,n??{})},{immediate:!0,deep:!0});const r=b3(e);return()=>ye(t,"default",{config:r==null?void 0:r.value})}}),XWe=kt(KWe),ZWe="2.4.3",qWe=(e=[])=>({version:ZWe,install:(r,n)=>{r[AG]||(r[AG]=!0,e.forEach(a=>r.use(a)),n&&b3(n,r,!0))}}),QWe=Oe({zIndex:{type:fe([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),JWe={scroll:({scrollTop:e,fixed:t})=>ct(e)&&la(t),[ln]:e=>la(e)};var ke=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r};const Tte="ElAffix",e9e=te({name:Tte}),t9e=te({...e9e,props:QWe,emits:JWe,setup(e,{expose:t,emit:r}){const n=e,a=Ce("affix"),i=yr(),o=yr(),s=yr(),{height:l}=mFe(),{height:u,width:c,top:f,bottom:d,update:h}=zH(o,{windowScroll:!1}),v=zH(i),p=G(!1),g=G(0),m=G(0),y=F(()=>({height:p.value?`${u.value}px`:"",width:p.value?`${c.value}px`:""})),_=F(()=>{if(!p.value)return{};const S=n.offset?Hn(n.offset):0;return{height:`${u.value}px`,width:`${c.value}px`,top:n.position==="top"?S:"",bottom:n.position==="bottom"?S:"",transform:m.value?`translateY(${m.value}px)`:"",zIndex:n.zIndex}}),w=()=>{if(s.value)if(g.value=s.value instanceof Window?document.documentElement.scrollTop:s.value.scrollTop||0,n.position==="top")if(n.target){const S=v.bottom.value-n.offset-u.value;p.value=n.offset>f.value&&v.bottom.value>0,m.value=S<0?S:0}else p.value=n.offset>f.value;else if(n.target){const S=l.value-v.top.value-n.offset-u.value;p.value=l.value-n.offsetv.top.value,m.value=S<0?-S:0}else p.value=l.value-n.offset{h(),r("scroll",{scrollTop:g.value,fixed:p.value})};return Ae(p,S=>r("change",S)),xt(()=>{var S;n.target?(i.value=(S=document.querySelector(n.target))!=null?S:void 0,i.value||ua(Tte,`Target is not existed: ${n.target}`)):i.value=document.documentElement,s.value=ZN(o.value,!0),h()}),dn(s,"scroll",x),xo(w),t({update:w,updateRoot:h}),(S,T)=>(N(),U("div",{ref_key:"root",ref:o,class:H(b(a).b()),style:Xe(b(y))},[V("div",{class:H({[b(a).m("fixed")]:p.value}),style:Xe(b(_))},[ye(S.$slots,"default")],6)],6))}});var r9e=ke(t9e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const n9e=kt(r9e),a9e=Oe({size:{type:fe([Number,String])},color:{type:String}}),i9e=te({name:"ElIcon",inheritAttrs:!1}),o9e=te({...i9e,props:a9e,setup(e){const t=e,r=Ce("icon"),n=F(()=>{const{size:a,color:i}=t;return!a&&!i?{}:{fontSize:oa(a)?void 0:Hn(a),"--color":i}});return(a,i)=>(N(),U("i",Ut({class:b(r).b(),style:b(n)},a.$attrs),[ye(a.$slots,"default")],16))}});var s9e=ke(o9e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Ze=kt(s9e),l9e=["light","dark"],u9e=Oe({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:v_(Cf),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:l9e,default:"light"}}),c9e={close:e=>e instanceof MouseEvent},f9e=te({name:"ElAlert"}),d9e=te({...f9e,props:u9e,emits:c9e,setup(e,{emit:t}){const r=e,{Close:n}=e3,a=$a(),i=Ce("alert"),o=G(!0),s=F(()=>Cf[r.type]),l=F(()=>[i.e("icon"),{[i.is("big")]:!!r.description||!!a.default}]),u=F(()=>({[i.is("bold")]:r.description||a.default})),c=f=>{o.value=!1,t("close",f)};return(f,d)=>(N(),he(Yn,{name:b(i).b("fade"),persisted:""},{default:le(()=>[Ct(V("div",{class:H([b(i).b(),b(i).m(f.type),b(i).is("center",f.center),b(i).is(f.effect)]),role:"alert"},[f.showIcon&&b(s)?(N(),he(b(Ze),{key:0,class:H(b(l))},{default:le(()=>[(N(),he(Ft(b(s))))]),_:1},8,["class"])):ce("v-if",!0),V("div",{class:H(b(i).e("content"))},[f.title||f.$slots.title?(N(),U("span",{key:0,class:H([b(i).e("title"),b(u)])},[ye(f.$slots,"title",{},()=>[nr(me(f.title),1)])],2)):ce("v-if",!0),f.$slots.default||f.description?(N(),U("p",{key:1,class:H(b(i).e("description"))},[ye(f.$slots,"default",{},()=>[nr(me(f.description),1)])],2)):ce("v-if",!0),f.closable?(N(),U(Be,{key:2},[f.closeText?(N(),U("div",{key:0,class:H([b(i).e("close-btn"),b(i).is("customed")]),onClick:c},me(f.closeText),3)):(N(),he(b(Ze),{key:1,class:H(b(i).e("close-btn")),onClick:c},{default:le(()=>[J(b(n))]),_:1},8,["class"]))],64)):ce("v-if",!0)],2)],2),[[hr,o.value]])]),_:3},8,["name"]))}});var h9e=ke(d9e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const v9e=kt(h9e),hv=Symbol("formContextKey"),Yl=Symbol("formItemContextKey"),ca=(e,t={})=>{const r=G(void 0),n=t.prop?r:Wee("size"),a=t.global?r:WWe(),i=t.form?{size:void 0}:Ye(hv,void 0),o=t.formItem?{size:void 0}:Ye(Yl,void 0);return F(()=>n.value||b(e)||(o==null?void 0:o.size)||(i==null?void 0:i.size)||a.value||"")},ho=e=>{const t=Wee("disabled"),r=Ye(hv,void 0);return F(()=>t.value||b(e)||(r==null?void 0:r.disabled)||!1)},Vi=()=>{const e=Ye(hv,void 0),t=Ye(Yl,void 0);return{form:e,formItem:t}},$f=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:n})=>{r||(r=G(!1)),n||(n=G(!1));const a=G();let i;const o=F(()=>{var s;return!!(!e.label&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return xt(()=>{i=Ae([Sn(e,"id"),r],([s,l])=>{const u=s??(l?void 0:co().value);u!==a.value&&(t!=null&&t.removeInputId&&(a.value&&t.removeInputId(a.value),!(n!=null&&n.value)&&!l&&u&&t.addInputId(u)),a.value=u)},{immediate:!0})}),Xl(()=>{i&&i(),t!=null&&t.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:o,inputId:a}},p9e=Oe({size:{type:String,values:tu},disabled:Boolean}),g9e=Oe({...p9e,model:Object,rules:{type:fe(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:[Object,Boolean]}}),m9e={validate:(e,t,r)=>(We(e)||wt(e))&&la(t)&&wt(r)};function y9e(){const e=G([]),t=F(()=>{if(!e.value.length)return"0";const i=Math.max(...e.value);return i?`${i}px`:""});function r(i){const o=e.value.indexOf(i);return o===-1&&t.value,o}function n(i,o){if(i&&o){const s=r(o);e.value.splice(s,1,i)}else i&&e.value.push(i)}function a(i){const o=r(i);o>-1&&e.value.splice(o,1)}return{autoLabelWidth:t,registerLabelWidth:n,deregisterLabelWidth:a}}const sw=(e,t)=>{const r=jh(t);return r.length>0?e.filter(n=>n.prop&&r.includes(n.prop)):e},_9e="ElForm",b9e=te({name:_9e}),w9e=te({...b9e,props:g9e,emits:m9e,setup(e,{expose:t,emit:r}){const n=e,a=[],i=ca(),o=Ce("form"),s=F(()=>{const{labelPosition:y,inline:_}=n;return[o.b(),o.m(i.value||"default"),{[o.m(`label-${y}`)]:y,[o.m("inline")]:_}]}),l=y=>{a.push(y)},u=y=>{y.prop&&a.splice(a.indexOf(y),1)},c=(y=[])=>{n.model&&sw(a,y).forEach(_=>_.resetField())},f=(y=[])=>{sw(a,y).forEach(_=>_.clearValidate())},d=F(()=>!!n.model),h=y=>{if(a.length===0)return[];const _=sw(a,y);return _.length?_:[]},v=async y=>g(void 0,y),p=async(y=[])=>{if(!d.value)return!1;const _=h(y);if(_.length===0)return!0;let w={};for(const x of _)try{await x.validate("")}catch(S){w={...w,...S}}return Object.keys(w).length===0?!0:Promise.reject(w)},g=async(y=[],_)=>{const w=!dt(_);try{const x=await p(y);return x===!0&&(_==null||_(x)),x}catch(x){if(x instanceof Error)throw x;const S=x;return n.scrollToError&&m(Object.keys(S)[0]),_==null||_(!1,S),w&&Promise.reject(S)}},m=y=>{var _;const w=sw(a,y)[0];w&&((_=w.$el)==null||_.scrollIntoView(n.scrollIntoViewOptions))};return Ae(()=>n.rules,()=>{n.validateOnRuleChange&&v().catch(y=>void 0)},{deep:!0}),Wt(hv,Ar({...Da(n),emit:r,resetFields:c,clearValidate:f,validateField:g,addField:l,removeField:u,...y9e()})),t({validate:v,validateField:g,resetFields:c,clearValidate:f,scrollToField:m}),(y,_)=>(N(),U("form",{class:H(b(s))},[ye(y.$slots,"default")],2))}});var S9e=ke(w9e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function ih(){return ih=Object.assign?Object.assign.bind():function(e){for(var t=1;t"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 pS(e,t,r){return A9e()?pS=Reflect.construct.bind():pS=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&__(u,o.prototype),u},pS.apply(null,arguments)}function T9e(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function tI(e){var t=typeof Map=="function"?new Map:void 0;return tI=function(n){if(n===null||!T9e(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return pS(n,arguments,eI(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),__(a,n)},tI(e)}var C9e=/%[sdj%]/g,E9e=function(){};function rI(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function So(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=i)return s;switch(s){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function M9e(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ia(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||M9e(t)&&typeof e=="string"&&!e)}function D9e(e,t,r){var n=[],a=0,i=e.length;function o(s){n.push.apply(n,s||[]),a++,a===i&&r(n)}e.forEach(function(s){t(s,o)})}function $G(e,t,r){var n=0,a=e.length;function i(o){if(o&&o.length){r(o);return}var s=n;n=n+1,s()\[\]\\.,;:\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},Cy={integer:function(t){return Cy.number(t)&&parseInt(t,10)===t},float:function(t){return Cy.number(t)&&!Cy.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"&&!Cy.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(KG.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(k9e())},hex:function(t){return typeof t=="string"&&!!t.match(KG.hex)}},N9e=function(t,r,n,a,i){if(t.required&&r===void 0){Cte(t,r,n,a,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?Cy[s](r)||a.push(So(i.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&a.push(So(i.messages.types[s],t.fullField,t.type))},B9e=function(t,r,n,a,i){var o=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=r,f=null,d=typeof r=="number",h=typeof r=="string",v=Array.isArray(r);if(d?f="number":h?f="string":v&&(f="array"),!f)return!1;v&&(c=r.length),h&&(c=r.replace(u,"_").length),o?c!==t.len&&a.push(So(i.messages[f].len,t.fullField,t.len)):s&&!l&&ct.max?a.push(So(i.messages[f].max,t.fullField,t.max)):s&&l&&(ct.max)&&a.push(So(i.messages[f].range,t.fullField,t.min,t.max))},zv="enum",F9e=function(t,r,n,a,i){t[zv]=Array.isArray(t[zv])?t[zv]:[],t[zv].indexOf(r)===-1&&a.push(So(i.messages[zv],t.fullField,t[zv].join(", ")))},V9e=function(t,r,n,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(So(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(r)||a.push(So(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Ur={required:Cte,whitespace:O9e,type:N9e,range:B9e,enum:F9e,pattern:V9e},z9e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ia(r,"string")&&!t.required)return n();Ur.required(t,r,a,o,i,"string"),Ia(r,"string")||(Ur.type(t,r,a,o,i),Ur.range(t,r,a,o,i),Ur.pattern(t,r,a,o,i),t.whitespace===!0&&Ur.whitespace(t,r,a,o,i))}n(o)},H9e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ia(r)&&!t.required)return n();Ur.required(t,r,a,o,i),r!==void 0&&Ur.type(t,r,a,o,i)}n(o)},G9e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Ia(r)&&!t.required)return n();Ur.required(t,r,a,o,i),r!==void 0&&(Ur.type(t,r,a,o,i),Ur.range(t,r,a,o,i))}n(o)},U9e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ia(r)&&!t.required)return n();Ur.required(t,r,a,o,i),r!==void 0&&Ur.type(t,r,a,o,i)}n(o)},$9e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ia(r)&&!t.required)return n();Ur.required(t,r,a,o,i),Ia(r)||Ur.type(t,r,a,o,i)}n(o)},W9e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ia(r)&&!t.required)return n();Ur.required(t,r,a,o,i),r!==void 0&&(Ur.type(t,r,a,o,i),Ur.range(t,r,a,o,i))}n(o)},Y9e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ia(r)&&!t.required)return n();Ur.required(t,r,a,o,i),r!==void 0&&(Ur.type(t,r,a,o,i),Ur.range(t,r,a,o,i))}n(o)},j9e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();Ur.required(t,r,a,o,i,"array"),r!=null&&(Ur.type(t,r,a,o,i),Ur.range(t,r,a,o,i))}n(o)},K9e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ia(r)&&!t.required)return n();Ur.required(t,r,a,o,i),r!==void 0&&Ur.type(t,r,a,o,i)}n(o)},X9e="enum",Z9e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ia(r)&&!t.required)return n();Ur.required(t,r,a,o,i),r!==void 0&&Ur[X9e](t,r,a,o,i)}n(o)},q9e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ia(r,"string")&&!t.required)return n();Ur.required(t,r,a,o,i),Ia(r,"string")||Ur.pattern(t,r,a,o,i)}n(o)},Q9e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ia(r,"date")&&!t.required)return n();if(Ur.required(t,r,a,o,i),!Ia(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Ur.type(t,l,a,o,i),l&&Ur.range(t,l.getTime(),a,o,i)}}n(o)},J9e=function(t,r,n,a,i){var o=[],s=Array.isArray(r)?"array":typeof r;Ur.required(t,r,a,o,i,s),n(o)},NM=function(t,r,n,a,i){var o=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ia(r,o)&&!t.required)return n();Ur.required(t,r,a,s,i,o),Ia(r,o)||Ur.type(t,r,a,s,i)}n(s)},e7e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ia(r)&&!t.required)return n();Ur.required(t,r,a,o,i)}n(o)},s0={string:z9e,method:H9e,number:G9e,boolean:U9e,regexp:$9e,integer:W9e,float:Y9e,array:j9e,object:K9e,enum:Z9e,pattern:q9e,date:Q9e,url:NM,hex:NM,email:NM,required:J9e,any:e7e};function nI(){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 aI=nI(),O1=function(){function e(r){this.rules=null,this._messages=aI,this.define(r)}var t=e.prototype;return t.define=function(n){var a=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var o=n[i];a.rules[i]=Array.isArray(o)?o:[o]})},t.messages=function(n){return n&&(this._messages=jG(nI(),n)),this._messages},t.validate=function(n,a,i){var o=this;a===void 0&&(a={}),i===void 0&&(i=function(){});var s=n,l=a,u=i;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 x;g=(x=g).concat.apply(x,w)}else g.push(w)}for(var _=0;_");const a=Ce("form"),i=G(),o=G(0),s=()=>{var c;if((c=i.value)!=null&&c.firstElementChild){const f=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},l=(c="update")=>{qe(()=>{t.default&&e.isAutoWidth&&(c==="update"?o.value=s():c==="remove"&&(r==null||r.deregisterLabelWidth(o.value)))})},u=()=>l("update");return xt(()=>{u()}),un(()=>{l("remove")}),qu(()=>u()),Ae(o,(c,f)=>{e.updateAll&&(r==null||r.registerLabelWidth(c,f))}),di(F(()=>{var c,f;return(f=(c=i.value)==null?void 0:c.firstElementChild)!=null?f:null}),u),()=>{var c,f;if(!t)return null;const{isAutoWidth:d}=e;if(d){const h=r==null?void 0:r.autoLabelWidth,v=n==null?void 0:n.hasLabel,p={};if(v&&h&&h!=="auto"){const g=Math.max(0,Number.parseInt(h,10)-o.value),m=r.labelPosition==="left"?"marginRight":"marginLeft";g&&(p[m]=`${g}px`)}return J("div",{ref:i,class:[a.be("item","label-wrap")],style:p},[(c=t.default)==null?void 0:c.call(t)])}else return J(Be,{ref:i},[(f=t.default)==null?void 0:f.call(t)])}}});const a7e=["role","aria-labelledby"],i7e=te({name:"ElFormItem"}),o7e=te({...i7e,props:r7e,setup(e,{expose:t}){const r=e,n=$a(),a=Ye(hv,void 0),i=Ye(Yl,void 0),o=ca(void 0,{formItem:!1}),s=Ce("form-item"),l=co().value,u=G([]),c=G(""),f=Q5e(c,100),d=G(""),h=G();let v,p=!1;const g=F(()=>{if((a==null?void 0:a.labelPosition)==="top")return{};const K=Hn(r.labelWidth||(a==null?void 0:a.labelWidth)||"");return K?{width:K}:{}}),m=F(()=>{if((a==null?void 0:a.labelPosition)==="top"||a!=null&&a.inline)return{};if(!r.label&&!r.labelWidth&&C)return{};const K=Hn(r.labelWidth||(a==null?void 0:a.labelWidth)||"");return!r.label&&!n.label?{marginLeft:K}:{}}),y=F(()=>[s.b(),s.m(o.value),s.is("error",c.value==="error"),s.is("validating",c.value==="validating"),s.is("success",c.value==="success"),s.is("required",L.value||r.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}]),_=F(()=>la(r.inlineMessage)?r.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),w=F(()=>[s.e("error"),{[s.em("error","inline")]:_.value}]),x=F(()=>r.prop?wt(r.prop)?r.prop:r.prop.join("."):""),S=F(()=>!!(r.label||n.label)),T=F(()=>r.for||(u.value.length===1?u.value[0]:void 0)),A=F(()=>!T.value&&S.value),C=!!i,M=F(()=>{const K=a==null?void 0:a.model;if(!(!K||!r.prop))return hS(K,r.prop).value}),E=F(()=>{const{required:K}=r,Z=[];r.rules&&Z.push(...jh(r.rules));const ne=a==null?void 0:a.rules;if(ne&&r.prop){const re=hS(ne,r.prop).value;re&&Z.push(...jh(re))}if(K!==void 0){const re=Z.map((ie,Y)=>[ie,Y]).filter(([ie])=>Object.keys(ie).includes("required"));if(re.length>0)for(const[ie,Y]of re)ie.required!==K&&(Z[Y]={...ie,required:K});else Z.push({required:K})}return Z}),D=F(()=>E.value.length>0),P=K=>E.value.filter(ne=>!ne.trigger||!K?!0:Array.isArray(ne.trigger)?ne.trigger.includes(K):ne.trigger===K).map(({trigger:ne,...re})=>re),L=F(()=>E.value.some(K=>K.required)),I=F(()=>{var K;return f.value==="error"&&r.showMessage&&((K=a==null?void 0:a.showMessage)!=null?K:!0)}),O=F(()=>`${r.label||""}${(a==null?void 0:a.labelSuffix)||""}`),R=K=>{c.value=K},B=K=>{var Z,ne;const{errors:re,fields:ie}=K;(!re||!ie)&&console.error(K),R("error"),d.value=re?(ne=(Z=re==null?void 0:re[0])==null?void 0:Z.message)!=null?ne:`${r.prop} is required`:"",a==null||a.emit("validate",r.prop,!1,d.value)},k=()=>{R("success"),a==null||a.emit("validate",r.prop,!0,"")},z=async K=>{const Z=x.value;return new O1({[Z]:K}).validate({[Z]:M.value},{firstFields:!0}).then(()=>(k(),!0)).catch(re=>(B(re),Promise.reject(re)))},$=async(K,Z)=>{if(p||!r.prop)return!1;const ne=dt(Z);if(!D.value)return Z==null||Z(!1),!1;const re=P(K);return re.length===0?(Z==null||Z(!0),!0):(R("validating"),z(re).then(()=>(Z==null||Z(!0),!0)).catch(ie=>{const{fields:Y}=ie;return Z==null||Z(!1,Y),ne?!1:Promise.reject(Y)}))},j=()=>{R(""),d.value="",p=!1},X=async()=>{const K=a==null?void 0:a.model;if(!K||!r.prop)return;const Z=hS(K,r.prop);p=!0,Z.value=yG(v),await qe(),j(),p=!1},Q=K=>{u.value.includes(K)||u.value.push(K)},se=K=>{u.value=u.value.filter(Z=>Z!==K)};Ae(()=>r.error,K=>{d.value=K||"",R(K?"error":"")},{immediate:!0}),Ae(()=>r.validateStatus,K=>R(K||""));const ee=Ar({...Da(r),$el:h,size:o,validateState:c,labelId:l,inputIds:u,isGroup:A,hasLabel:S,addInputId:Q,removeInputId:se,resetField:X,clearValidate:j,validate:$});return Wt(Yl,ee),xt(()=>{r.prop&&(a==null||a.addField(ee),v=yG(M.value))}),un(()=>{a==null||a.removeField(ee)}),t({size:o,validateMessage:d,validateState:c,validate:$,clearValidate:j,resetField:X}),(K,Z)=>{var ne;return N(),U("div",{ref_key:"formItemRef",ref:h,class:H(b(y)),role:b(A)?"group":void 0,"aria-labelledby":b(A)?b(l):void 0},[J(b(n7e),{"is-auto-width":b(g).width==="auto","update-all":((ne=b(a))==null?void 0:ne.labelWidth)==="auto"},{default:le(()=>[b(S)?(N(),he(Ft(b(T)?"label":"div"),{key:0,id:b(l),for:b(T),class:H(b(s).e("label")),style:Xe(b(g))},{default:le(()=>[ye(K.$slots,"label",{label:b(O)},()=>[nr(me(b(O)),1)])]),_:3},8,["id","for","class","style"])):ce("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),V("div",{class:H(b(s).e("content")),style:Xe(b(m))},[ye(K.$slots,"default"),J(Q9,{name:`${b(s).namespace.value}-zoom-in-top`},{default:le(()=>[b(I)?ye(K.$slots,"error",{key:0,error:d.value},()=>[V("div",{class:H(b(w))},me(d.value),3)]):ce("v-if",!0)]),_:3},8,["name"])],6)],10,a7e)}}});var Ete=ke(o7e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const s7e=kt(S9e,{FormItem:Ete}),l7e=Pn(Ete);let xs;const u7e=` height:0 !important; visibility:hidden !important; ${UJ()?"":"overflow:hidden !important;"} position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; `,c7e=["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"];function f7e(e){const t=window.getComputedStyle(e),r=t.getPropertyValue("box-sizing"),n=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:c7e.map(o=>`${o}:${t.getPropertyValue(o)}`).join(";"),paddingSize:n,borderSize:a,boxSizing:r}}function ZG(e,t=1,r){var n;xs||(xs=document.createElement("textarea"),document.body.appendChild(xs));const{paddingSize:a,borderSize:i,boxSizing:o,contextStyle:s}=f7e(e);xs.setAttribute("style",`${s};${u7e}`),xs.value=e.value||e.placeholder||"";let l=xs.scrollHeight;const u={};o==="border-box"?l=l+i:o==="content-box"&&(l=l-a),xs.value="";const c=xs.scrollHeight-a;if(ct(t)){let f=c*t;o==="border-box"&&(f=f+a+i),l=Math.max(f,l),u.minHeight=`${f}px`}if(ct(r)){let f=c*r;o==="border-box"&&(f=f+a+i),l=Math.min(f,l)}return u.height=`${l}px`,(n=xs.parentNode)==null||n.removeChild(xs),xs=void 0,u}const d7e=Oe({id:{type:String,default:void 0},size:Ga,disabled:Boolean,modelValue:{type:fe([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:fe([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Zr},prefixIcon:{type:Zr},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:fe([Object,Array,String]),default:()=>mn({})},autofocus:{type:Boolean,default:!1}}),h7e={[Nt]:e=>wt(e),input:e=>wt(e),change:e=>wt(e),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},v7e=["role"],p7e=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],g7e=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],m7e=te({name:"ElInput",inheritAttrs:!1}),y7e=te({...m7e,props:d7e,emits:h7e,setup(e,{expose:t,emit:r}){const n=e,a=Jh(),i=$a(),o=F(()=>{const Pe={};return n.containerRole==="combobox"&&(Pe["aria-haspopup"]=a["aria-haspopup"],Pe["aria-owns"]=a["aria-owns"],Pe["aria-expanded"]=a["aria-expanded"]),Pe}),s=F(()=>[n.type==="textarea"?g.b():p.b(),p.m(h.value),p.is("disabled",v.value),p.is("exceed",Q.value),{[p.b("group")]:i.prepend||i.append,[p.bm("group","append")]:i.append,[p.bm("group","prepend")]:i.prepend,[p.m("prefix")]:i.prefix||n.prefixIcon,[p.m("suffix")]:i.suffix||n.suffixIcon||n.clearable||n.showPassword,[p.bm("suffix","password-clear")]:z.value&&$.value},a.class]),l=F(()=>[p.e("wrapper"),p.is("focus",M.value)]),u=n3({excludeKeys:F(()=>Object.keys(o.value))}),{form:c,formItem:f}=Vi(),{inputId:d}=$f(n,{formItemContext:f}),h=ca(),v=ho(),p=Ce("input"),g=Ce("textarea"),m=yr(),y=yr(),_=G(!1),w=G(!1),x=G(!1),S=G(),T=yr(n.inputStyle),A=F(()=>m.value||y.value),{wrapperRef:C,isFocused:M,handleFocus:E,handleBlur:D}=xte(A,{afterBlur(){var Pe;n.validateEvent&&((Pe=f==null?void 0:f.validate)==null||Pe.call(f,"blur").catch(Ue=>void 0))}}),P=F(()=>{var Pe;return(Pe=c==null?void 0:c.statusIcon)!=null?Pe:!1}),L=F(()=>(f==null?void 0:f.validateState)||""),I=F(()=>L.value&&t3[L.value]),O=F(()=>x.value?kUe:iUe),R=F(()=>[a.style,n.inputStyle]),B=F(()=>[n.inputStyle,T.value,{resize:n.resize}]),k=F(()=>Qn(n.modelValue)?"":String(n.modelValue)),z=F(()=>n.clearable&&!v.value&&!n.readonly&&!!k.value&&(M.value||_.value)),$=F(()=>n.showPassword&&!v.value&&!n.readonly&&!!k.value&&(!!k.value||M.value)),j=F(()=>n.showWordLimit&&!!u.value.maxlength&&(n.type==="text"||n.type==="textarea")&&!v.value&&!n.readonly&&!n.showPassword),X=F(()=>k.value.length),Q=F(()=>!!j.value&&X.value>Number(u.value.maxlength)),se=F(()=>!!i.suffix||!!n.suffixIcon||z.value||n.showPassword||j.value||!!L.value&&P.value),[ee,K]=UWe(m);di(y,Pe=>{if(re(),!j.value||n.resize!=="both")return;const Ue=Pe[0],{width:gt}=Ue.contentRect;S.value={right:`calc(100% - ${gt+15+6}px)`}});const Z=()=>{const{type:Pe,autosize:Ue}=n;if(!(!ur||Pe!=="textarea"||!y.value))if(Ue){const gt=Vt(Ue)?Ue.minRows:void 0,At=Vt(Ue)?Ue.maxRows:void 0,Gt=ZG(y.value,gt,At);T.value={overflowY:"hidden",...Gt},qe(()=>{y.value.offsetHeight,T.value=Gt})}else T.value={minHeight:ZG(y.value).minHeight}},re=(Pe=>{let Ue=!1;return()=>{var gt;if(Ue||!n.autosize)return;((gt=y.value)==null?void 0:gt.offsetParent)===null||(Pe(),Ue=!0)}})(Z),ie=()=>{const Pe=A.value,Ue=n.formatter?n.formatter(k.value):k.value;!Pe||Pe.value===Ue||(Pe.value=Ue)},Y=async Pe=>{ee();let{value:Ue}=Pe.target;if(n.formatter&&(Ue=n.parser?n.parser(Ue):Ue),!w.value){if(Ue===k.value){ie();return}r(Nt,Ue),r("input",Ue),await qe(),ie(),K()}},q=Pe=>{r("change",Pe.target.value)},oe=Pe=>{r("compositionstart",Pe),w.value=!0},ve=Pe=>{var Ue;r("compositionupdate",Pe);const gt=(Ue=Pe.target)==null?void 0:Ue.value,At=gt[gt.length-1]||"";w.value=!bT(At)},_e=Pe=>{r("compositionend",Pe),w.value&&(w.value=!1,Y(Pe))},ge=()=>{x.value=!x.value,Le()},Le=async()=>{var Pe;await qe(),(Pe=A.value)==null||Pe.focus()},Se=()=>{var Pe;return(Pe=A.value)==null?void 0:Pe.blur()},xe=Pe=>{_.value=!1,r("mouseleave",Pe)},Te=Pe=>{_.value=!0,r("mouseenter",Pe)},Ve=Pe=>{r("keydown",Pe)},He=()=>{var Pe;(Pe=A.value)==null||Pe.select()},je=()=>{r(Nt,""),r("change",""),r("clear"),r("input","")};return Ae(()=>n.modelValue,()=>{var Pe;qe(()=>Z()),n.validateEvent&&((Pe=f==null?void 0:f.validate)==null||Pe.call(f,"change").catch(Ue=>void 0))}),Ae(k,()=>ie()),Ae(()=>n.type,async()=>{await qe(),ie(),Z()}),xt(()=>{!n.formatter&&n.parser,ie(),qe(Z)}),t({input:m,textarea:y,ref:A,textareaStyle:B,autosize:Sn(n,"autosize"),focus:Le,blur:Se,select:He,clear:je,resizeTextarea:Z}),(Pe,Ue)=>Ct((N(),U("div",Ut(b(o),{class:b(s),style:b(R),role:Pe.containerRole,onMouseenter:Te,onMouseleave:xe}),[ce(" input "),Pe.type!=="textarea"?(N(),U(Be,{key:0},[ce(" prepend slot "),Pe.$slots.prepend?(N(),U("div",{key:0,class:H(b(p).be("group","prepend"))},[ye(Pe.$slots,"prepend")],2)):ce("v-if",!0),V("div",{ref_key:"wrapperRef",ref:C,class:H(b(l))},[ce(" prefix slot "),Pe.$slots.prefix||Pe.prefixIcon?(N(),U("span",{key:0,class:H(b(p).e("prefix"))},[V("span",{class:H(b(p).e("prefix-inner"))},[ye(Pe.$slots,"prefix"),Pe.prefixIcon?(N(),he(b(Ze),{key:0,class:H(b(p).e("icon"))},{default:le(()=>[(N(),he(Ft(Pe.prefixIcon)))]),_:1},8,["class"])):ce("v-if",!0)],2)],2)):ce("v-if",!0),V("input",Ut({id:b(d),ref_key:"input",ref:m,class:b(p).e("inner")},b(u),{type:Pe.showPassword?x.value?"text":"password":Pe.type,disabled:b(v),formatter:Pe.formatter,parser:Pe.parser,readonly:Pe.readonly,autocomplete:Pe.autocomplete,tabindex:Pe.tabindex,"aria-label":Pe.label,placeholder:Pe.placeholder,style:Pe.inputStyle,form:n.form,autofocus:n.autofocus,onCompositionstart:oe,onCompositionupdate:ve,onCompositionend:_e,onInput:Y,onFocus:Ue[0]||(Ue[0]=(...gt)=>b(E)&&b(E)(...gt)),onBlur:Ue[1]||(Ue[1]=(...gt)=>b(D)&&b(D)(...gt)),onChange:q,onKeydown:Ve}),null,16,p7e),ce(" suffix slot "),b(se)?(N(),U("span",{key:1,class:H(b(p).e("suffix"))},[V("span",{class:H(b(p).e("suffix-inner"))},[!b(z)||!b($)||!b(j)?(N(),U(Be,{key:0},[ye(Pe.$slots,"suffix"),Pe.suffixIcon?(N(),he(b(Ze),{key:0,class:H(b(p).e("icon"))},{default:le(()=>[(N(),he(Ft(Pe.suffixIcon)))]),_:1},8,["class"])):ce("v-if",!0)],64)):ce("v-if",!0),b(z)?(N(),he(b(Ze),{key:1,class:H([b(p).e("icon"),b(p).e("clear")]),onMousedown:it(b(zr),["prevent"]),onClick:je},{default:le(()=>[J(b(zf))]),_:1},8,["class","onMousedown"])):ce("v-if",!0),b($)?(N(),he(b(Ze),{key:2,class:H([b(p).e("icon"),b(p).e("password")]),onClick:ge},{default:le(()=>[(N(),he(Ft(b(O))))]),_:1},8,["class"])):ce("v-if",!0),b(j)?(N(),U("span",{key:3,class:H(b(p).e("count"))},[V("span",{class:H(b(p).e("count-inner"))},me(b(X))+" / "+me(b(u).maxlength),3)],2)):ce("v-if",!0),b(L)&&b(I)&&b(P)?(N(),he(b(Ze),{key:4,class:H([b(p).e("icon"),b(p).e("validateIcon"),b(p).is("loading",b(L)==="validating")])},{default:le(()=>[(N(),he(Ft(b(I))))]),_:1},8,["class"])):ce("v-if",!0)],2)],2)):ce("v-if",!0)],2),ce(" append slot "),Pe.$slots.append?(N(),U("div",{key:1,class:H(b(p).be("group","append"))},[ye(Pe.$slots,"append")],2)):ce("v-if",!0)],64)):(N(),U(Be,{key:1},[ce(" textarea "),V("textarea",Ut({id:b(d),ref_key:"textarea",ref:y,class:b(g).e("inner")},b(u),{tabindex:Pe.tabindex,disabled:b(v),readonly:Pe.readonly,autocomplete:Pe.autocomplete,style:b(B),"aria-label":Pe.label,placeholder:Pe.placeholder,form:n.form,autofocus:n.autofocus,onCompositionstart:oe,onCompositionupdate:ve,onCompositionend:_e,onInput:Y,onFocus:Ue[2]||(Ue[2]=(...gt)=>b(E)&&b(E)(...gt)),onBlur:Ue[3]||(Ue[3]=(...gt)=>b(D)&&b(D)(...gt)),onChange:q,onKeydown:Ve}),null,16,g7e),b(j)?(N(),U("span",{key:0,style:Xe(S.value),class:H(b(p).e("count"))},me(b(X))+" / "+me(b(u).maxlength),7)):ce("v-if",!0)],64))],16,v7e)),[[hr,Pe.type!=="hidden"]])}});var _7e=ke(y7e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const li=kt(_7e),pp=4,Mte={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"}},b7e=({move:e,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${e}%)`}),Dte=Symbol("scrollbarContextKey"),w7e=Oe({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),S7e="Thumb",x7e=te({__name:"thumb",props:w7e,setup(e){const t=e,r=Ye(Dte),n=Ce("scrollbar");r||ua(S7e,"can not inject scrollbar context");const a=G(),i=G(),o=G({}),s=G(!1);let l=!1,u=!1,c=ur?document.onselectstart:null;const f=F(()=>Mte[t.vertical?"vertical":"horizontal"]),d=F(()=>b7e({size:t.size,move:t.move,bar:f.value})),h=F(()=>a.value[f.value.offset]**2/r.wrapElement[f.value.scrollSize]/t.ratio/i.value[f.value.offset]),v=S=>{var T;if(S.stopPropagation(),S.ctrlKey||[1,2].includes(S.button))return;(T=window.getSelection())==null||T.removeAllRanges(),g(S);const A=S.currentTarget;A&&(o.value[f.value.axis]=A[f.value.offset]-(S[f.value.client]-A.getBoundingClientRect()[f.value.direction]))},p=S=>{if(!i.value||!a.value||!r.wrapElement)return;const T=Math.abs(S.target.getBoundingClientRect()[f.value.direction]-S[f.value.client]),A=i.value[f.value.offset]/2,C=(T-A)*100*h.value/a.value[f.value.offset];r.wrapElement[f.value.scroll]=C*r.wrapElement[f.value.scrollSize]/100},g=S=>{S.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",y),c=document.onselectstart,document.onselectstart=()=>!1},m=S=>{if(!a.value||!i.value||l===!1)return;const T=o.value[f.value.axis];if(!T)return;const A=(a.value.getBoundingClientRect()[f.value.direction]-S[f.value.client])*-1,C=i.value[f.value.offset]-T,M=(A-C)*100*h.value/a.value[f.value.offset];r.wrapElement[f.value.scroll]=M*r.wrapElement[f.value.scrollSize]/100},y=()=>{l=!1,o.value[f.value.axis]=0,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",y),x(),u&&(s.value=!1)},_=()=>{u=!1,s.value=!!t.size},w=()=>{u=!0,s.value=l};un(()=>{x(),document.removeEventListener("mouseup",y)});const x=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return dn(Sn(r,"scrollbarElement"),"mousemove",_),dn(Sn(r,"scrollbarElement"),"mouseleave",w),(S,T)=>(N(),he(Yn,{name:b(n).b("fade"),persisted:""},{default:le(()=>[Ct(V("div",{ref_key:"instance",ref:a,class:H([b(n).e("bar"),b(n).is(b(f).key)]),onMousedown:p},[V("div",{ref_key:"thumb",ref:i,class:H(b(n).e("thumb")),style:Xe(b(d)),onMousedown:v},null,38)],34),[[hr,S.always||s.value]])]),_:1},8,["name"]))}});var qG=ke(x7e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const A7e=Oe({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),T7e=te({__name:"bar",props:A7e,setup(e,{expose:t}){const r=e,n=G(0),a=G(0);return t({handleScroll:o=>{if(o){const s=o.offsetHeight-pp,l=o.offsetWidth-pp;a.value=o.scrollTop*100/s*r.ratioY,n.value=o.scrollLeft*100/l*r.ratioX}}}),(o,s)=>(N(),U(Be,null,[J(qG,{move:n.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),J(qG,{move:a.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var C7e=ke(T7e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const E7e=Oe({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:fe([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},id:String,role:String,ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical"]}}),M7e={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(ct)},D7e="ElScrollbar",P7e=te({name:D7e}),L7e=te({...P7e,props:E7e,emits:M7e,setup(e,{expose:t,emit:r}){const n=e,a=Ce("scrollbar");let i,o;const s=G(),l=G(),u=G(),c=G("0"),f=G("0"),d=G(),h=G(1),v=G(1),p=F(()=>{const T={};return n.height&&(T.height=Hn(n.height)),n.maxHeight&&(T.maxHeight=Hn(n.maxHeight)),[n.wrapStyle,T]}),g=F(()=>[n.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!n.native}]),m=F(()=>[a.e("view"),n.viewClass]),y=()=>{var T;l.value&&((T=d.value)==null||T.handleScroll(l.value),r("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function _(T,A){Vt(T)?l.value.scrollTo(T):ct(T)&&ct(A)&&l.value.scrollTo(T,A)}const w=T=>{ct(T)&&(l.value.scrollTop=T)},x=T=>{ct(T)&&(l.value.scrollLeft=T)},S=()=>{if(!l.value)return;const T=l.value.offsetHeight-pp,A=l.value.offsetWidth-pp,C=T**2/l.value.scrollHeight,M=A**2/l.value.scrollWidth,E=Math.max(C,n.minSize),D=Math.max(M,n.minSize);h.value=C/(T-C)/(E/(T-E)),v.value=M/(A-M)/(D/(A-D)),f.value=E+ppn.noresize,T=>{T?(i==null||i(),o==null||o()):({stop:i}=di(u,S),o=dn("resize",S))},{immediate:!0}),Ae(()=>[n.maxHeight,n.height],()=>{n.native||qe(()=>{var T;S(),l.value&&((T=d.value)==null||T.handleScroll(l.value))})}),Wt(Dte,Ar({scrollbarElement:s,wrapElement:l})),xt(()=>{n.native||qe(()=>{S()})}),qu(()=>S()),t({wrapRef:l,update:S,scrollTo:_,setScrollTop:w,setScrollLeft:x,handleScroll:y}),(T,A)=>(N(),U("div",{ref_key:"scrollbarRef",ref:s,class:H(b(a).b())},[V("div",{ref_key:"wrapRef",ref:l,class:H(b(g)),style:Xe(b(p)),onScroll:y},[(N(),he(Ft(T.tag),{id:T.id,ref_key:"resizeRef",ref:u,class:H(b(m)),style:Xe(T.viewStyle),role:T.role,"aria-label":T.ariaLabel,"aria-orientation":T.ariaOrientation},{default:le(()=>[ye(T.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),T.native?ce("v-if",!0):(N(),he(C7e,{key:0,ref_key:"barRef",ref:d,height:f.value,width:c.value,always:T.always,"ratio-x":v.value,"ratio-y":h.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var I7e=ke(L7e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const ic=kt(I7e),w3=Symbol("popper"),Pte=Symbol("popperContent"),R7e=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Lte=Oe({role:{type:String,values:R7e,default:"tooltip"}}),O7e=te({name:"ElPopper",inheritAttrs:!1}),k7e=te({...O7e,props:Lte,setup(e,{expose:t}){const r=e,n=G(),a=G(),i=G(),o=G(),s=F(()=>r.role),l={triggerRef:n,popperInstanceRef:a,contentRef:i,referenceRef:o,role:s};return t(l),Wt(w3,l),(u,c)=>ye(u.$slots,"default")}});var N7e=ke(k7e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const Ite=Oe({arrowOffset:{type:Number,default:5}}),B7e=te({name:"ElPopperArrow",inheritAttrs:!1}),F7e=te({...B7e,props:Ite,setup(e,{expose:t}){const r=e,n=Ce("popper"),{arrowOffset:a,arrowRef:i,arrowStyle:o}=Ye(Pte,void 0);return Ae(()=>r.arrowOffset,s=>{a.value=s}),un(()=>{i.value=void 0}),t({arrowRef:i}),(s,l)=>(N(),U("span",{ref_key:"arrowRef",ref:i,class:H(b(n).e("arrow")),style:Xe(b(o)),"data-popper-arrow":""},null,6))}});var V7e=ke(F7e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const z7e="ElOnlyChild",Rte=te({name:z7e,setup(e,{slots:t,attrs:r}){var n;const a=Ye(ste),i=vWe((n=a==null?void 0:a.setForwardRef)!=null?n:zr);return()=>{var o;const s=(o=t.default)==null?void 0:o.call(t,r);if(!s||s.length>1)return null;const l=Ote(s);return l?Ct(Fu(l,r),[[i]]):null}}});function Ote(e){if(!e)return null;const t=e;for(const r of t){if(Vt(r))switch(r.type){case Ei:continue;case Og:case"svg":return QG(r);case Be:return Ote(r.children);default:return r}return QG(r)}return null}function QG(e){const t=Ce("only-child");return J("span",{class:t.e("content")},[e])}const kte=Oe({virtualRef:{type:fe(Object)},virtualTriggering:Boolean,onMouseenter:{type:fe(Function)},onMouseleave:{type:fe(Function)},onClick:{type:fe(Function)},onKeydown:{type:fe(Function)},onFocus:{type:fe(Function)},onBlur:{type:fe(Function)},onContextmenu:{type:fe(Function)},id:String,open:Boolean}),H7e=te({name:"ElPopperTrigger",inheritAttrs:!1}),G7e=te({...H7e,props:kte,setup(e,{expose:t}){const r=e,{role:n,triggerRef:a}=Ye(w3,void 0);hWe(a);const i=F(()=>s.value?r.id:void 0),o=F(()=>{if(n&&n.value==="tooltip")return r.open&&r.id?r.id:void 0}),s=F(()=>{if(n&&n.value!=="tooltip")return n.value}),l=F(()=>s.value?`${r.open}`:void 0);let u;return xt(()=>{Ae(()=>r.virtualRef,c=>{c&&(a.value=Ji(c))},{immediate:!0}),Ae(a,(c,f)=>{u==null||u(),u=void 0,us(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(d=>{var h;const v=r[d];v&&(c.addEventListener(d.slice(2).toLowerCase(),v),(h=f==null?void 0:f.removeEventListener)==null||h.call(f,d.slice(2).toLowerCase(),v))}),u=Ae([i,o,s,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,v)=>{Qn(d[v])?c.removeAttribute(h):c.setAttribute(h,d[v])})},{immediate:!0})),us(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>f.removeAttribute(d))},{immediate:!0})}),un(()=>{u==null||u(),u=void 0}),t({triggerRef:a}),(c,f)=>c.virtualTriggering?ce("v-if",!0):(N(),he(b(Rte),Ut({key:0},c.$attrs,{"aria-controls":b(i),"aria-describedby":b(o),"aria-expanded":b(l),"aria-haspopup":b(s)}),{default:le(()=>[ye(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var U7e=ke(G7e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const BM="focus-trap.focus-after-trapped",FM="focus-trap.focus-after-released",$7e="focus-trap.focusout-prevented",JG={cancelable:!0,bubbles:!1},W7e={cancelable:!0,bubbles:!1},eU="focusAfterTrapped",tU="focusAfterReleased",S3=Symbol("elFocusTrap"),x3=G(),MT=G(0),A3=G(0);let uw=0;const Nte=e=>{const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t},rU=(e,t)=>{for(const r of e)if(!Y7e(r,t))return r},Y7e=(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},j7e=e=>{const t=Nte(e),r=rU(t,e),n=rU(t.reverse(),e);return[r,n]},K7e=e=>e instanceof HTMLInputElement&&"select"in e,Rc=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),A3.value=window.performance.now(),e!==r&&K7e(e)&&t&&e.select()}};function nU(e,t){const r=[...e],n=e.indexOf(t);return n!==-1&&r.splice(n,1),r}const X7e=()=>{let e=[];return{push:n=>{const a=e[0];a&&n!==a&&a.pause(),e=nU(e,n),e.unshift(n)},remove:n=>{var a,i;e=nU(e,n),(i=(a=e[0])==null?void 0:a.resume)==null||i.call(a)}}},Z7e=(e,t=!1)=>{const r=document.activeElement;for(const n of e)if(Rc(n,t),document.activeElement!==r)return},aU=X7e(),q7e=()=>MT.value>A3.value,cw=()=>{x3.value="pointer",MT.value=window.performance.now()},iU=()=>{x3.value="keyboard",MT.value=window.performance.now()},Q7e=()=>(xt(()=>{uw===0&&(document.addEventListener("mousedown",cw),document.addEventListener("touchstart",cw),document.addEventListener("keydown",iU)),uw++}),un(()=>{uw--,uw<=0&&(document.removeEventListener("mousedown",cw),document.removeEventListener("touchstart",cw),document.removeEventListener("keydown",iU))}),{focusReason:x3,lastUserFocusTimestamp:MT,lastAutomatedFocusTimestamp:A3}),fw=e=>new CustomEvent($7e,{...W7e,detail:e}),J7e=te({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[eU,tU,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const r=G();let n,a;const{focusReason:i}=Q7e();uWe(v=>{e.trapped&&!o.paused&&t("release-requested",v)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=v=>{if(!e.loop&&!e.trapped||o.paused)return;const{key:p,altKey:g,ctrlKey:m,metaKey:y,currentTarget:_,shiftKey:w}=v,{loop:x}=e,S=p===Qe.tab&&!g&&!m&&!y,T=document.activeElement;if(S&&T){const A=_,[C,M]=j7e(A);if(C&&M){if(!w&&T===M){const D=fw({focusReason:i.value});t("focusout-prevented",D),D.defaultPrevented||(v.preventDefault(),x&&Rc(C,!0))}else if(w&&[C,A].includes(T)){const D=fw({focusReason:i.value});t("focusout-prevented",D),D.defaultPrevented||(v.preventDefault(),x&&Rc(M,!0))}}else if(T===A){const D=fw({focusReason:i.value});t("focusout-prevented",D),D.defaultPrevented||v.preventDefault()}}};Wt(S3,{focusTrapRef:r,onKeydown:s}),Ae(()=>e.focusTrapEl,v=>{v&&(r.value=v)},{immediate:!0}),Ae([r],([v],[p])=>{v&&(v.addEventListener("keydown",s),v.addEventListener("focusin",c),v.addEventListener("focusout",f)),p&&(p.removeEventListener("keydown",s),p.removeEventListener("focusin",c),p.removeEventListener("focusout",f))});const l=v=>{t(eU,v)},u=v=>t(tU,v),c=v=>{const p=b(r);if(!p)return;const g=v.target,m=v.relatedTarget,y=g&&p.contains(g);e.trapped||m&&p.contains(m)||(n=m),y&&t("focusin",v),!o.paused&&e.trapped&&(y?a=g:Rc(a,!0))},f=v=>{const p=b(r);if(!(o.paused||!p))if(e.trapped){const g=v.relatedTarget;!Qn(g)&&!p.contains(g)&&setTimeout(()=>{if(!o.paused&&e.trapped){const m=fw({focusReason:i.value});t("focusout-prevented",m),m.defaultPrevented||Rc(a,!0)}},0)}else{const g=v.target;g&&p.contains(g)||t("focusout",v)}};async function d(){await qe();const v=b(r);if(v){aU.push(o);const p=v.contains(document.activeElement)?n:document.activeElement;if(n=p,!v.contains(p)){const m=new Event(BM,JG);v.addEventListener(BM,l),v.dispatchEvent(m),m.defaultPrevented||qe(()=>{let y=e.focusStartEl;wt(y)||(Rc(y),document.activeElement!==y&&(y="first")),y==="first"&&Z7e(Nte(v),!0),(document.activeElement===p||y==="container")&&Rc(v)})}}}function h(){const v=b(r);if(v){v.removeEventListener(BM,l);const p=new CustomEvent(FM,{...JG,detail:{focusReason:i.value}});v.addEventListener(FM,u),v.dispatchEvent(p),!p.defaultPrevented&&(i.value=="keyboard"||!q7e()||v.contains(document.activeElement))&&Rc(n??document.body),v.removeEventListener(FM,u),aU.remove(o)}}return xt(()=>{e.trapped&&d(),Ae(()=>e.trapped,v=>{v?d():h()})}),un(()=>{e.trapped&&h()}),{onKeydown:s}}});function eYe(e,t,r,n,a,i){return ye(e.$slots,"default",{handleKeydown:e.onKeydown})}var DT=ke(J7e,[["render",eYe],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const tYe=["fixed","absolute"],rYe=Oe({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:fe(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:dv,default:"bottom"},popperOptions:{type:fe(Object),default:()=>({})},strategy:{type:String,values:tYe,default:"absolute"}}),Bte=Oe({...rYe,id:String,style:{type:fe([String,Array,Object])},className:{type:fe([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:fe([String,Array,Object])},popperStyle:{type:fe([String,Array,Object])},referenceEl:{type:fe(Object)},triggerTargetEl:{type:fe(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),nYe={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},aYe=(e,t=[])=>{const{placement:r,strategy:n,popperOptions:a}=e,i={placement:r,strategy:n,...a,modifiers:[...oYe(e),...t]};return sYe(i,a==null?void 0:a.modifiers),i},iYe=e=>{if(ur)return Ji(e)};function oYe(e){const{offset:t,gpuAcceleration:r,fallbackPlacements:n}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:n}},{name:"computeStyles",options:{gpuAcceleration:r}}]}function sYe(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const lYe=0,uYe=e=>{const{popperInstanceRef:t,contentRef:r,triggerRef:n,role:a}=Ye(w3,void 0),i=G(),o=G(),s=F(()=>({name:"eventListeners",enabled:!!e.visible})),l=F(()=>{var m;const y=b(i),_=(m=b(o))!=null?m:lYe;return{name:"arrow",enabled:!Tee(y),options:{element:y,padding:_}}}),u=F(()=>({onFirstUpdate:()=>{v()},...aYe(e,[b(l),b(s)])})),c=F(()=>iYe(e.referenceEl)||b(n)),{attributes:f,state:d,styles:h,update:v,forceUpdate:p,instanceRef:g}=iWe(c,r,u);return Ae(g,m=>t.value=m),xt(()=>{Ae(()=>{var m;return(m=b(c))==null?void 0:m.getBoundingClientRect()},()=>{v()})}),{attributes:f,arrowRef:i,contentRef:r,instanceRef:g,state:d,styles:h,role:a,forceUpdate:p,update:v}},cYe=(e,{attributes:t,styles:r,role:n})=>{const{nextZIndex:a}=im(),i=Ce("popper"),o=F(()=>b(t).popper),s=G(ct(e.zIndex)?e.zIndex:a()),l=F(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),u=F(()=>[{zIndex:b(s)},b(r).popper,e.popperStyle||{}]),c=F(()=>n.value==="dialog"?"false":void 0),f=F(()=>b(r).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:o,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=ct(e.zIndex)?e.zIndex:a()}}},fYe=(e,t)=>{const r=G(!1),n=G();return{focusStartRef:n,trapped:r,onFocusAfterReleased:u=>{var c;((c=u.detail)==null?void 0:c.focusReason)!=="pointer"&&(n.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!r.value&&(u.target&&(n.value=u.target),r.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),r.value=!1)},onReleaseRequested:()=>{r.value=!1,t("close")}}},dYe=te({name:"ElPopperContent"}),hYe=te({...dYe,props:Bte,emits:nYe,setup(e,{expose:t,emit:r}){const n=e,{focusStartRef:a,trapped:i,onFocusAfterReleased:o,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=fYe(n,r),{attributes:f,arrowRef:d,contentRef:h,styles:v,instanceRef:p,role:g,update:m}=uYe(n),{ariaModal:y,arrowStyle:_,contentAttrs:w,contentClass:x,contentStyle:S,updateZIndex:T}=cYe(n,{styles:v,attributes:f,role:g}),A=Ye(Yl,void 0),C=G();Wt(Pte,{arrowStyle:_,arrowRef:d,arrowOffset:C}),A&&(A.addInputId||A.removeInputId)&&Wt(Yl,{...A,addInputId:zr,removeInputId:zr});let M;const E=(P=!0)=>{m(),P&&T()},D=()=>{E(!1),n.visible&&n.focusOnShow?i.value=!0:n.visible===!1&&(i.value=!1)};return xt(()=>{Ae(()=>n.triggerTargetEl,(P,L)=>{M==null||M(),M=void 0;const I=b(P||h.value),O=b(L||h.value);us(I)&&(M=Ae([g,()=>n.ariaLabel,y,()=>n.id],R=>{["role","aria-label","aria-modal","id"].forEach((B,k)=>{Qn(R[k])?I.removeAttribute(B):I.setAttribute(B,R[k])})},{immediate:!0})),O!==I&&us(O)&&["role","aria-label","aria-modal","id"].forEach(R=>{O.removeAttribute(R)})},{immediate:!0}),Ae(()=>n.visible,D,{immediate:!0})}),un(()=>{M==null||M(),M=void 0}),t({popperContentRef:h,popperInstanceRef:p,updatePopper:E,contentStyle:S}),(P,L)=>(N(),U("div",Ut({ref_key:"contentRef",ref:h},b(w),{style:b(S),class:b(x),tabindex:"-1",onMouseenter:L[0]||(L[0]=I=>P.$emit("mouseenter",I)),onMouseleave:L[1]||(L[1]=I=>P.$emit("mouseleave",I))}),[J(b(DT),{trapped:b(i),"trap-on-focus-in":!0,"focus-trap-el":b(h),"focus-start-el":b(a),onFocusAfterTrapped:b(s),onFocusAfterReleased:b(o),onFocusin:b(l),onFocusoutPrevented:b(u),onReleaseRequested:b(c)},{default:le(()=>[ye(P.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var vYe=ke(hYe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const Fte=kt(N7e),PT=Symbol("elTooltip"),Va=Oe({...dWe,...Bte,appendTo:{type:fe([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:fe(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),b_=Oe({...kte,disabled:Boolean,trigger:{type:fe([String,Array]),default:"hover"},triggerKeys:{type:fe(Array),default:()=>[Qe.enter,Qe.space]}}),{useModelToggleProps:pYe,useModelToggleEmits:gYe,useModelToggle:mYe}=$ee("visible"),yYe=Oe({...Lte,...pYe,...Va,...b_,...Ite,showArrow:{type:Boolean,default:!0}}),_Ye=[...gYe,"before-show","before-hide","show","hide","open","close"],bYe=(e,t)=>We(e)?e.includes(t):e===t,Hv=(e,t,r)=>n=>{bYe(b(e),t)&&r(n)},wYe=te({name:"ElTooltipTrigger"}),SYe=te({...wYe,props:b_,setup(e,{expose:t}){const r=e,n=Ce("tooltip"),{controlled:a,id:i,open:o,onOpen:s,onClose:l,onToggle:u}=Ye(PT,void 0),c=G(null),f=()=>{if(b(a)||r.disabled)return!0},d=Sn(r,"trigger"),h=Mn(f,Hv(d,"hover",s)),v=Mn(f,Hv(d,"hover",l)),p=Mn(f,Hv(d,"click",w=>{w.button===0&&u(w)})),g=Mn(f,Hv(d,"focus",s)),m=Mn(f,Hv(d,"focus",l)),y=Mn(f,Hv(d,"contextmenu",w=>{w.preventDefault(),u(w)})),_=Mn(f,w=>{const{code:x}=w;r.triggerKeys.includes(x)&&(w.preventDefault(),u(w))});return t({triggerRef:c}),(w,x)=>(N(),he(b(U7e),{id:b(i),"virtual-ref":w.virtualRef,open:b(o),"virtual-triggering":w.virtualTriggering,class:H(b(n).e("trigger")),onBlur:b(m),onClick:b(p),onContextmenu:b(y),onFocus:b(g),onMouseenter:b(h),onMouseleave:b(v),onKeydown:b(_)},{default:le(()=>[ye(w.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var xYe=ke(SYe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const AYe=te({name:"ElTooltipContent",inheritAttrs:!1}),TYe=te({...AYe,props:Va,setup(e,{expose:t}){const r=e,{selector:n}=ite(),a=Ce("tooltip"),i=G(null),o=G(!1),{controlled:s,id:l,open:u,trigger:c,onClose:f,onOpen:d,onShow:h,onHide:v,onBeforeShow:p,onBeforeHide:g}=Ye(PT,void 0),m=F(()=>r.transition||`${a.namespace.value}-fade-in-linear`),y=F(()=>r.persistent);un(()=>{o.value=!0});const _=F(()=>b(y)?!0:b(u)),w=F(()=>r.disabled?!1:b(u)),x=F(()=>r.appendTo||n.value),S=F(()=>{var R;return(R=r.style)!=null?R:{}}),T=F(()=>!b(u)),A=()=>{v()},C=()=>{if(b(s))return!0},M=Mn(C,()=>{r.enterable&&b(c)==="hover"&&d()}),E=Mn(C,()=>{b(c)==="hover"&&f()}),D=()=>{var R,B;(B=(R=i.value)==null?void 0:R.updatePopper)==null||B.call(R),p==null||p()},P=()=>{g==null||g()},L=()=>{h(),O=RN(F(()=>{var R;return(R=i.value)==null?void 0:R.popperContentRef}),()=>{if(b(s))return;b(c)!=="hover"&&f()})},I=()=>{r.virtualTriggering||f()};let O;return Ae(()=>b(u),R=>{R||O==null||O()},{flush:"post"}),Ae(()=>r.content,()=>{var R,B;(B=(R=i.value)==null?void 0:R.updatePopper)==null||B.call(R)}),t({contentRef:i}),(R,B)=>(N(),he(W_,{disabled:!R.teleported,to:b(x)},[J(Yn,{name:b(m),onAfterLeave:A,onBeforeEnter:D,onAfterEnter:L,onBeforeLeave:P},{default:le(()=>[b(_)?Ct((N(),he(b(vYe),Ut({key:0,id:b(l),ref_key:"contentRef",ref:i},R.$attrs,{"aria-label":R.ariaLabel,"aria-hidden":b(T),"boundaries-padding":R.boundariesPadding,"fallback-placements":R.fallbackPlacements,"gpu-acceleration":R.gpuAcceleration,offset:R.offset,placement:R.placement,"popper-options":R.popperOptions,strategy:R.strategy,effect:R.effect,enterable:R.enterable,pure:R.pure,"popper-class":R.popperClass,"popper-style":[R.popperStyle,b(S)],"reference-el":R.referenceEl,"trigger-target-el":R.triggerTargetEl,visible:b(w),"z-index":R.zIndex,onMouseenter:b(M),onMouseleave:b(E),onBlur:I,onClose:b(f)}),{default:le(()=>[o.value?ce("v-if",!0):ye(R.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[hr,b(w)]]):ce("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var CYe=ke(TYe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const EYe=["innerHTML"],MYe={key:1},DYe=te({name:"ElTooltip"}),PYe=te({...DYe,props:yYe,emits:_Ye,setup(e,{expose:t,emit:r}){const n=e;fWe();const a=co(),i=G(),o=G(),s=()=>{var m;const y=b(i);y&&((m=y.popperInstanceRef)==null||m.update())},l=G(!1),u=G(),{show:c,hide:f,hasUpdateHandler:d}=mYe({indicator:l,toggleReason:u}),{onOpen:h,onClose:v}=ote({showAfter:Sn(n,"showAfter"),hideAfter:Sn(n,"hideAfter"),autoClose:Sn(n,"autoClose"),open:c,close:f}),p=F(()=>la(n.visible)&&!d.value);Wt(PT,{controlled:p,id:a,open:Rg(l),trigger:Sn(n,"trigger"),onOpen:m=>{h(m)},onClose:m=>{v(m)},onToggle:m=>{b(l)?v(m):h(m)},onShow:()=>{r("show",u.value)},onHide:()=>{r("hide",u.value)},onBeforeShow:()=>{r("before-show",u.value)},onBeforeHide:()=>{r("before-hide",u.value)},updatePopper:s}),Ae(()=>n.disabled,m=>{m&&l.value&&(l.value=!1)});const g=m=>{var y,_;const w=(_=(y=o.value)==null?void 0:y.contentRef)==null?void 0:_.popperContentRef,x=(m==null?void 0:m.relatedTarget)||document.activeElement;return w&&w.contains(x)};return C9(()=>l.value&&f()),t({popperRef:i,contentRef:o,isFocusInsideContent:g,updatePopper:s,onOpen:h,onClose:v,hide:f}),(m,y)=>(N(),he(b(Fte),{ref_key:"popperRef",ref:i,role:m.role},{default:le(()=>[J(xYe,{disabled:m.disabled,trigger:m.trigger,"trigger-keys":m.triggerKeys,"virtual-ref":m.virtualRef,"virtual-triggering":m.virtualTriggering},{default:le(()=>[m.$slots.default?ye(m.$slots,"default",{key:0}):ce("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),J(CYe,{ref_key:"contentRef",ref:o,"aria-label":m.ariaLabel,"boundaries-padding":m.boundariesPadding,content:m.content,disabled:m.disabled,effect:m.effect,enterable:m.enterable,"fallback-placements":m.fallbackPlacements,"hide-after":m.hideAfter,"gpu-acceleration":m.gpuAcceleration,offset:m.offset,persistent:m.persistent,"popper-class":m.popperClass,"popper-style":m.popperStyle,placement:m.placement,"popper-options":m.popperOptions,pure:m.pure,"raw-content":m.rawContent,"reference-el":m.referenceEl,"trigger-target-el":m.triggerTargetEl,"show-after":m.showAfter,strategy:m.strategy,teleported:m.teleported,transition:m.transition,"virtual-triggering":m.virtualTriggering,"z-index":m.zIndex,"append-to":m.appendTo},{default:le(()=>[ye(m.$slots,"content",{},()=>[m.rawContent?(N(),U("span",{key:0,innerHTML:m.content},null,8,EYe)):(N(),U("span",MYe,me(m.content),1))]),m.showArrow?(N(),he(b(V7e),{key:0,"arrow-offset":m.arrowOffset},null,8,["arrow-offset"])):ce("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","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var LYe=ke(PYe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Bi=kt(LYe),IYe=Oe({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:fe(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:fe([Function,Array]),default:zr},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:Va.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),RYe={[Nt]:e=>wt(e),[Di]:e=>wt(e),[ln]:e=>wt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Vt(e)},OYe=["aria-expanded","aria-owns"],kYe={key:0},NYe=["id","aria-selected","onClick"],Vte="ElAutocomplete",BYe=te({name:Vte,inheritAttrs:!1}),FYe=te({...BYe,props:IYe,emits:RYe,setup(e,{expose:t,emit:r}){const n=e,a=n3(),i=Jh(),o=ho(),s=Ce("autocomplete"),l=G(),u=G(),c=G(),f=G();let d=!1,h=!1;const v=G([]),p=G(-1),g=G(""),m=G(!1),y=G(!1),_=G(!1),w=F(()=>s.b(String(ST()))),x=F(()=>i.style),S=F(()=>(v.value.length>0||_.value)&&m.value),T=F(()=>!n.hideLoading&&_.value),A=F(()=>l.value?Array.from(l.value.$el.querySelectorAll("input")):[]),C=()=>{S.value&&(g.value=`${l.value.$el.offsetWidth}px`)},M=()=>{p.value=-1},D=Ni(async ee=>{if(y.value)return;const K=Z=>{_.value=!1,!y.value&&(We(Z)?(v.value=Z,p.value=n.highlightFirstItem?0:-1):ua(Vte,"autocomplete suggestions must be an array"))};if(_.value=!0,We(n.fetchSuggestions))K(n.fetchSuggestions);else{const Z=await n.fetchSuggestions(ee,K);We(Z)&&K(Z)}},n.debounce),P=ee=>{const K=!!ee;if(r(Di,ee),r(Nt,ee),y.value=!1,m.value||(m.value=K),!n.triggerOnFocus&&!ee){y.value=!0,v.value=[];return}D(ee)},L=ee=>{var K;o.value||(((K=ee.target)==null?void 0:K.tagName)!=="INPUT"||A.value.includes(document.activeElement))&&(m.value=!0)},I=ee=>{r(ln,ee)},O=ee=>{h?h=!1:(m.value=!0,r("focus",ee),n.triggerOnFocus&&!d&&D(String(n.modelValue)))},R=ee=>{setTimeout(()=>{var K;if((K=c.value)!=null&&K.isFocusInsideContent()){h=!0;return}m.value&&$(),r("blur",ee)})},B=()=>{m.value=!1,r(Nt,""),r("clear")},k=async()=>{S.value&&p.value>=0&&p.value{S.value&&(ee.preventDefault(),ee.stopPropagation(),$())},$=()=>{m.value=!1},j=()=>{var ee;(ee=l.value)==null||ee.focus()},X=()=>{var ee;(ee=l.value)==null||ee.blur()},Q=async ee=>{r(Di,ee[n.valueKey]),r(Nt,ee[n.valueKey]),r("select",ee),v.value=[],p.value=-1},se=ee=>{if(!S.value||_.value)return;if(ee<0){p.value=-1;return}ee>=v.value.length&&(ee=v.value.length-1);const K=u.value.querySelector(`.${s.be("suggestion","wrap")}`),ne=K.querySelectorAll(`.${s.be("suggestion","list")} li`)[ee],re=K.scrollTop,{offsetTop:ie,scrollHeight:Y}=ne;ie+Y>re+K.clientHeight&&(K.scrollTop+=Y),ie{S.value&&$()}),xt(()=>{l.value.ref.setAttribute("role","textbox"),l.value.ref.setAttribute("aria-autocomplete","list"),l.value.ref.setAttribute("aria-controls","id"),l.value.ref.setAttribute("aria-activedescendant",`${w.value}-item-${p.value}`),d=l.value.ref.hasAttribute("readonly")}),t({highlightedIndex:p,activated:m,loading:_,inputRef:l,popperRef:c,suggestions:v,handleSelect:Q,handleKeyEnter:k,focus:j,blur:X,close:$,highlight:se}),(ee,K)=>(N(),he(b(Bi),{ref_key:"popperRef",ref:c,visible:b(S),placement:ee.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[b(s).e("popper"),ee.popperClass],teleported:ee.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${b(s).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:C,onHide:M},{content:le(()=>[V("div",{ref_key:"regionRef",ref:u,class:H([b(s).b("suggestion"),b(s).is("loading",b(T))]),style:Xe({[ee.fitInputWidth?"width":"minWidth"]:g.value,outline:"none"}),role:"region"},[J(b(ic),{id:b(w),tag:"ul","wrap-class":b(s).be("suggestion","wrap"),"view-class":b(s).be("suggestion","list"),role:"listbox"},{default:le(()=>[b(T)?(N(),U("li",kYe,[J(b(Ze),{class:H(b(s).is("loading"))},{default:le(()=>[J(b(Hf))]),_:1},8,["class"])])):(N(!0),U(Be,{key:1},ht(v.value,(Z,ne)=>(N(),U("li",{id:`${b(w)}-item-${ne}`,key:ne,class:H({highlighted:p.value===ne}),role:"option","aria-selected":p.value===ne,onClick:re=>Q(Z)},[ye(ee.$slots,"default",{item:Z},()=>[nr(me(Z[ee.valueKey]),1)])],10,NYe))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:le(()=>[V("div",{ref_key:"listboxRef",ref:f,class:H([b(s).b(),ee.$attrs.class]),style:Xe(b(x)),role:"combobox","aria-haspopup":"listbox","aria-expanded":b(S),"aria-owns":b(w)},[J(b(li),Ut({ref_key:"inputRef",ref:l},b(a),{clearable:ee.clearable,disabled:b(o),name:ee.name,"model-value":ee.modelValue,onInput:P,onChange:I,onFocus:O,onBlur:R,onClear:B,onKeydown:[K[0]||(K[0]=dr(it(Z=>se(p.value-1),["prevent"]),["up"])),K[1]||(K[1]=dr(it(Z=>se(p.value+1),["prevent"]),["down"])),dr(k,["enter"]),dr($,["tab"]),dr(z,["esc"])],onMousedown:L}),Bl({_:2},[ee.$slots.prepend?{name:"prepend",fn:le(()=>[ye(ee.$slots,"prepend")])}:void 0,ee.$slots.append?{name:"append",fn:le(()=>[ye(ee.$slots,"append")])}:void 0,ee.$slots.prefix?{name:"prefix",fn:le(()=>[ye(ee.$slots,"prefix")])}:void 0,ee.$slots.suffix?{name:"suffix",fn:le(()=>[ye(ee.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,OYe)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var VYe=ke(FYe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const zYe=kt(VYe),HYe=Oe({size:{type:[Number,String],values:tu,default:"",validator:e=>ct(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:Zr},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:fe(String),default:"cover"}}),GYe={error:e=>e instanceof Event},UYe=["src","alt","srcset"],$Ye=te({name:"ElAvatar"}),WYe=te({...$Ye,props:HYe,emits:GYe,setup(e,{emit:t}){const r=e,n=Ce("avatar"),a=G(!1),i=F(()=>{const{size:u,icon:c,shape:f}=r,d=[n.b()];return wt(u)&&d.push(n.m(u)),c&&d.push(n.m("icon")),f&&d.push(n.m(f)),d}),o=F(()=>{const{size:u}=r;return ct(u)?n.cssVarBlock({size:Hn(u)||""}):void 0}),s=F(()=>({objectFit:r.fit}));Ae(()=>r.src,()=>a.value=!1);function l(u){a.value=!0,t("error",u)}return(u,c)=>(N(),U("span",{class:H(b(i)),style:Xe(b(o))},[(u.src||u.srcSet)&&!a.value?(N(),U("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:Xe(b(s)),onError:l},null,44,UYe)):u.icon?(N(),he(b(Ze),{key:1},{default:le(()=>[(N(),he(Ft(u.icon)))]),_:1})):ye(u.$slots,"default",{key:2})],6))}});var YYe=ke(WYe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const jYe=kt(YYe),KYe={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},XYe={click:e=>e instanceof MouseEvent},ZYe=(e,t,r)=>{const n=yr(),a=yr(),i=G(!1),o=()=>{n.value&&(i.value=n.value.scrollTop>=e.visibilityHeight)},s=u=>{var c;(c=n.value)==null||c.scrollTo({top:0,behavior:"smooth"}),t("click",u)},l=HJ(o,300,!0);return dn(a,"scroll",l),xt(()=>{var u;a.value=document,n.value=document.documentElement,e.target&&(n.value=(u=document.querySelector(e.target))!=null?u:void 0,n.value||ua(r,`target does not exist: ${e.target}`),a.value=n.value),o()}),{visible:i,handleClick:s}},zte="ElBacktop",qYe=te({name:zte}),QYe=te({...qYe,props:KYe,emits:XYe,setup(e,{emit:t}){const r=e,n=Ce("backtop"),{handleClick:a,visible:i}=ZYe(r,t,zte),o=F(()=>({right:`${r.right}px`,bottom:`${r.bottom}px`}));return(s,l)=>(N(),he(Yn,{name:`${b(n).namespace.value}-fade-in`},{default:le(()=>[b(i)?(N(),U("div",{key:0,style:Xe(b(o)),class:H(b(n).b()),onClick:l[0]||(l[0]=it((...u)=>b(a)&&b(a)(...u),["stop"]))},[ye(s.$slots,"default",{},()=>[J(b(Ze),{class:H(b(n).e("icon"))},{default:le(()=>[J(b(HGe))]),_:1},8,["class"])])],6)):ce("v-if",!0)]),_:3},8,["name"]))}});var JYe=ke(QYe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const eje=kt(JYe),tje=Oe({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"}}),rje=["textContent"],nje=te({name:"ElBadge"}),aje=te({...nje,props:tje,setup(e,{expose:t}){const r=e,n=Ce("badge"),a=F(()=>r.isDot?"":ct(r.value)&&ct(r.max)?r.max(N(),U("div",{class:H(b(n).b())},[ye(i.$slots,"default"),J(Yn,{name:`${b(n).namespace.value}-zoom-in-center`,persisted:""},{default:le(()=>[Ct(V("sup",{class:H([b(n).e("content"),b(n).em("content",i.type),b(n).is("fixed",!!i.$slots.default),b(n).is("dot",i.isDot)]),textContent:me(b(a))},null,10,rje),[[hr,!i.hidden&&(b(a)||i.isDot)]])]),_:1},8,["name"])],2))}});var ije=ke(aje,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const Hte=kt(ije),Gte=Symbol("breadcrumbKey"),oje=Oe({separator:{type:String,default:"/"},separatorIcon:{type:Zr}}),sje=te({name:"ElBreadcrumb"}),lje=te({...sje,props:oje,setup(e){const t=e,r=Ce("breadcrumb"),n=G();return Wt(Gte,t),xt(()=>{const a=n.value.querySelectorAll(`.${r.e("item")}`);a.length&&a[a.length-1].setAttribute("aria-current","page")}),(a,i)=>(N(),U("div",{ref_key:"breadcrumb",ref:n,class:H(b(r).b()),"aria-label":"Breadcrumb",role:"navigation"},[ye(a.$slots,"default")],2))}});var uje=ke(lje,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const cje=Oe({to:{type:fe([String,Object]),default:""},replace:{type:Boolean,default:!1}}),fje=te({name:"ElBreadcrumbItem"}),dje=te({...fje,props:cje,setup(e){const t=e,r=It(),n=Ye(Gte,void 0),a=Ce("breadcrumb"),i=r.appContext.config.globalProperties.$router,o=G(),s=()=>{!t.to||!i||(t.replace?i.replace(t.to):i.push(t.to))};return(l,u)=>{var c,f;return N(),U("span",{class:H(b(a).e("item"))},[V("span",{ref_key:"link",ref:o,class:H([b(a).e("inner"),b(a).is("link",!!l.to)]),role:"link",onClick:s},[ye(l.$slots,"default")],2),(c=b(n))!=null&&c.separatorIcon?(N(),he(b(Ze),{key:0,class:H(b(a).e("separator"))},{default:le(()=>[(N(),he(Ft(b(n).separatorIcon)))]),_:1},8,["class"])):(N(),U("span",{key:1,class:H(b(a).e("separator")),role:"presentation"},me((f=b(n))==null?void 0:f.separator),3))],2)}}});var Ute=ke(dje,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const hje=kt(uje,{BreadcrumbItem:Ute}),vje=Pn(Ute),$te=Symbol("buttonGroupContextKey"),pje=(e,t)=>{Ul({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},F(()=>e.type==="text"));const r=Ye($te,void 0),n=CT("button"),{form:a}=Vi(),i=ca(F(()=>r==null?void 0:r.size)),o=ho(),s=G(),l=$a(),u=F(()=>e.type||(r==null?void 0:r.type)||""),c=F(()=>{var v,p,g;return(g=(p=e.autoInsertSpace)!=null?p:(v=n.value)==null?void 0:v.autoInsertSpace)!=null?g:!1}),f=F(()=>e.tag==="button"?{ariaDisabled:o.value||e.loading,disabled:o.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),d=F(()=>{var v;const p=(v=l.default)==null?void 0:v.call(l);if(c.value&&(p==null?void 0:p.length)===1){const g=p[0];if((g==null?void 0:g.type)===Og){const m=g.children;return/^\p{Unified_Ideograph}{2}$/u.test(m.trim())}}return!1});return{_disabled:o,_size:i,_type:u,_ref:s,_props:f,shouldAddSpace:d,handleClick:v=>{e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",v)}}},iI=["default","primary","success","warning","info","danger","text",""],gje=["button","submit","reset"],oI=Oe({size:Ga,disabled:Boolean,type:{type:String,values:iI,default:""},icon:{type:Zr},nativeType:{type:String,values:gje,default:"button"},loading:Boolean,loadingIcon:{type:Zr,default:()=>Hf},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:fe([String,Object]),default:"button"}}),mje={click:e=>e instanceof MouseEvent};function Qa(e,t){yje(e)&&(e="100%");var r=_je(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(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 dw(e){return Math.min(1,Math.max(0,e))}function yje(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function _je(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Wte(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function hw(e){return e<=1?"".concat(Number(e)*100,"%"):e}function oh(e){return e.length===1?"0"+e:String(e)}function bje(e,t,r){return{r:Qa(e,255)*255,g:Qa(t,255)*255,b:Qa(r,255)*255}}function oU(e,t,r){e=Qa(e,255),t=Qa(t,255),r=Qa(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,o=0,s=(n+a)/2;if(n===a)o=0,i=0;else{var l=n-a;switch(o=s>.5?l/(2-n-a):l/(n+a),n){case e:i=(t-r)/l+(t1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function wje(e,t,r){var n,a,i;if(e=Qa(e,360),t=Qa(t,100),r=Qa(r,100),t===0)a=r,i=r,n=r;else{var o=r<.5?r*(1+t):r+t-r*t,s=2*r-o;n=VM(s,o,e+1/3),a=VM(s,o,e),i=VM(s,o,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function sU(e,t,r){e=Qa(e,255),t=Qa(t,255),r=Qa(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,o=n,s=n-a,l=n===0?0:s/n;if(n===a)i=0;else{switch(n){case e:i=(t-r)/s+(t>16,g:(e&65280)>>8,b:e&255}}var sI={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 Cje(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,s=!1;return typeof e=="string"&&(e=Dje(e)),typeof e=="object"&&(lu(e.r)&&lu(e.g)&&lu(e.b)?(t=bje(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):lu(e.h)&&lu(e.s)&&lu(e.v)?(n=hw(e.s),a=hw(e.v),t=Sje(e.h,n,a),o=!0,s="hsv"):lu(e.h)&&lu(e.s)&&lu(e.l)&&(n=hw(e.s),i=hw(e.l),t=wje(e.h,n,i),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=Wte(r),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var Eje="[-\\+]?\\d+%?",Mje="[-\\+]?\\d*\\.\\d+%?",qc="(?:".concat(Mje,")|(?:").concat(Eje,")"),zM="[\\s|\\(]+(".concat(qc,")[,|\\s]+(").concat(qc,")[,|\\s]+(").concat(qc,")\\s*\\)?"),HM="[\\s|\\(]+(".concat(qc,")[,|\\s]+(").concat(qc,")[,|\\s]+(").concat(qc,")[,|\\s]+(").concat(qc,")\\s*\\)?"),Cs={CSS_UNIT:new RegExp(qc),rgb:new RegExp("rgb"+zM),rgba:new RegExp("rgba"+HM),hsl:new RegExp("hsl"+zM),hsla:new RegExp("hsla"+HM),hsv:new RegExp("hsv"+zM),hsva:new RegExp("hsva"+HM),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 Dje(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(sI[e])e=sI[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=Cs.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=Cs.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Cs.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=Cs.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Cs.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=Cs.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Cs.hex8.exec(e),r?{r:po(r[1]),g:po(r[2]),b:po(r[3]),a:uU(r[4]),format:t?"name":"hex8"}:(r=Cs.hex6.exec(e),r?{r:po(r[1]),g:po(r[2]),b:po(r[3]),format:t?"name":"hex"}:(r=Cs.hex4.exec(e),r?{r:po(r[1]+r[1]),g:po(r[2]+r[2]),b:po(r[3]+r[3]),a:uU(r[4]+r[4]),format:t?"name":"hex8"}:(r=Cs.hex3.exec(e),r?{r:po(r[1]+r[1]),g:po(r[2]+r[2]),b:po(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function lu(e){return!!Cs.CSS_UNIT.exec(String(e))}var Yte=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=Tje(t)),this.originalInput=t;var a=Cje(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=(n=r.format)!==null&&n!==void 0?n:a.format,this.gradientType=r.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(),r,n,a,i=t.r/255,o=t.g/255,s=t.b/255;return i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Wte(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=sU(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=sU(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=oU(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=oU(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),lU(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),xje(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),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(Qa(r,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(r){return Math.round(Qa(r,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="#"+lU(this.r,this.g,this.b,!1),r=0,n=Object.entries(sI);r=0,i=!r&&a&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||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 r=this.toHsl();return r.l+=t/100,r.l=dw(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=dw(r.l),new e(r)},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 r=this.toHsl();return r.s-=t/100,r.s=dw(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=dw(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),a=new e(t).toRgb(),i=r/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return new e(o)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),a=360/r,i=[this];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(new e(n));return i},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 r=this.toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/t;t--;)o.push(new e({h:n,s:a,v:i})),i=(i+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),a=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/a,g:(r.g*r.a+n.g*n.a*(1-r.a))/a,b:(r.b*r.a+n.b*n.a*(1-r.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 r=this.toHsl(),n=r.h,a=[this],i=360/t,o=1;o{let n={};const a=e.color;if(a){const i=new Yte(a),o=e.dark?i.tint(20).toString():xc(i,20);if(e.plain)n=r.cssVarBlock({"bg-color":e.dark?xc(i,90):i.tint(90).toString(),"text-color":a,"border-color":e.dark?xc(i,50):i.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":o,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":o}),t.value&&(n[r.cssVarBlockName("disabled-bg-color")]=e.dark?xc(i,90):i.tint(90).toString(),n[r.cssVarBlockName("disabled-text-color")]=e.dark?xc(i,50):i.tint(50).toString(),n[r.cssVarBlockName("disabled-border-color")]=e.dark?xc(i,80):i.tint(80).toString());else{const s=e.dark?xc(i,30):i.tint(30).toString(),l=i.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(n=r.cssVarBlock({"bg-color":a,"text-color":l,"border-color":a,"hover-bg-color":s,"hover-text-color":l,"hover-border-color":s,"active-bg-color":o,"active-border-color":o}),t.value){const u=e.dark?xc(i,50):i.tint(50).toString();n[r.cssVarBlockName("disabled-bg-color")]=u,n[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,n[r.cssVarBlockName("disabled-border-color")]=u}}}return n})}const Lje=te({name:"ElButton"}),Ije=te({...Lje,props:oI,emits:mje,setup(e,{expose:t,emit:r}){const n=e,a=Pje(n),i=Ce("button"),{_ref:o,_size:s,_type:l,_disabled:u,_props:c,shouldAddSpace:f,handleClick:d}=pje(n,r);return t({ref:o,size:s,type:l,disabled:u,shouldAddSpace:f}),(h,v)=>(N(),he(Ft(h.tag),Ut({ref_key:"_ref",ref:o},b(c),{class:[b(i).b(),b(i).m(b(l)),b(i).m(b(s)),b(i).is("disabled",b(u)),b(i).is("loading",h.loading),b(i).is("plain",h.plain),b(i).is("round",h.round),b(i).is("circle",h.circle),b(i).is("text",h.text),b(i).is("link",h.link),b(i).is("has-bg",h.bg)],style:b(a),onClick:b(d)}),{default:le(()=>[h.loading?(N(),U(Be,{key:0},[h.$slots.loading?ye(h.$slots,"loading",{key:0}):(N(),he(b(Ze),{key:1,class:H(b(i).is("loading"))},{default:le(()=>[(N(),he(Ft(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?(N(),he(b(Ze),{key:1},{default:le(()=>[h.icon?(N(),he(Ft(h.icon),{key:0})):ye(h.$slots,"icon",{key:1})]),_:3})):ce("v-if",!0),h.$slots.default?(N(),U("span",{key:2,class:H({[b(i).em("text","expand")]:b(f)})},[ye(h.$slots,"default")],2)):ce("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Rje=ke(Ije,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const Oje={size:oI.size,type:oI.type},kje=te({name:"ElButtonGroup"}),Nje=te({...kje,props:Oje,setup(e){const t=e;Wt($te,Ar({size:Sn(t,"size"),type:Sn(t,"type")}));const r=Ce("button");return(n,a)=>(N(),U("div",{class:H(`${b(r).b("group")}`)},[ye(n.$slots,"default")],2))}});var jte=ke(Nje,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Ja=kt(Rje,{ButtonGroup:jte}),Kte=Pn(jte);var oc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ru(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xte={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(oc,function(){var r=1e3,n=6e4,a=36e5,i="millisecond",o="second",s="minute",l="hour",u="day",c="week",f="month",d="quarter",h="year",v="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(L){var I=["th","st","nd","rd"],O=L%100;return"["+L+(I[(O-20)%10]||I[O]||I[0])+"]"}},_=function(L,I,O){var R=String(L);return!R||R.length>=I?L:""+Array(I+1-R.length).join(O)+L},w={s:_,z:function(L){var I=-L.utcOffset(),O=Math.abs(I),R=Math.floor(O/60),B=O%60;return(I<=0?"+":"-")+_(R,2,"0")+":"+_(B,2,"0")},m:function L(I,O){if(I.date()1)return L(z[0])}else{var $=I.name;S[$]=I,B=$}return!R&&B&&(x=B),B||!R&&x},M=function(L,I){if(A(L))return L.clone();var O=typeof I=="object"?I:{};return O.date=L,O.args=arguments,new D(O)},E=w;E.l=C,E.i=A,E.w=function(L,I){return M(L,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var D=function(){function L(O){this.$L=C(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[T]=!0}var I=L.prototype;return I.parse=function(O){this.$d=function(R){var B=R.date,k=R.utc;if(B===null)return new Date(NaN);if(E.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var z=B.match(g);if(z){var $=z[2]-1||0,j=(z[7]||"0").substring(0,3);return k?new Date(Date.UTC(z[1],$,z[3]||1,z[4]||0,z[5]||0,z[6]||0,j)):new Date(z[1],$,z[3]||1,z[4]||0,z[5]||0,z[6]||0,j)}}return new Date(B)}(O),this.init()},I.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},I.$utils=function(){return E},I.isValid=function(){return this.$d.toString()!==p},I.isSame=function(O,R){var B=M(O);return this.startOf(R)<=B&&B<=this.endOf(R)},I.isAfter=function(O,R){return M(O)68?1900:2e3)},u=function(p){return function(g){this[p]=+g}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var m=g.match(/([+-]|\d\d)/g),y=60*m[1]+(+m[2]||0);return y===0?0:m[0]==="+"?-y:y}(p)}],f=function(p){var g=s[p];return g&&(g.indexOf?g:g.s.concat(g.f))},d=function(p,g){var m,y=s.meridiem;if(y){for(var _=1;_<=24;_+=1)if(p.indexOf(y(_,0,g))>-1){m=_>12;break}}else m=p===(g?"pm":"PM");return m},h={A:[o,function(p){this.afternoon=d(p,!1)}],a:[o,function(p){this.afternoon=d(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[a,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[a,u("day")],Do:[o,function(p){var g=s.ordinal,m=p.match(/\d+/);if(this.day=m[0],g)for(var y=1;y<=31;y+=1)g(y).replace(/\[|\]/g,"")===p&&(this.day=y)}],M:[i,u("month")],MM:[a,u("month")],MMM:[o,function(p){var g=f("months"),m=(f("monthsShort")||g.map(function(y){return y.slice(0,3)})).indexOf(p)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[o,function(p){var g=f("months").indexOf(p)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(p){this.year=l(p)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function v(p){var g,m;g=p,m=s&&s.formats;for(var y=(p=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,M,E){var D=E&&E.toUpperCase();return M||m[E]||r[E]||m[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(P,L,I){return L||I.slice(1)})})).match(n),_=y.length,w=0;w<_;w+=1){var x=y[w],S=h[x],T=S&&S[0],A=S&&S[1];y[w]=A?{regex:T,parser:A}:x.replace(/^\[|\]$/g,"")}return function(C){for(var M={},E=0,D=0;E<_;E+=1){var P=y[E];if(typeof P=="string")D+=P.length;else{var L=P.regex,I=P.parser,O=C.slice(D),R=L.exec(O)[0];I.call(M,R),C=C.replace(R,"")}}return function(B){var k=B.afternoon;if(k!==void 0){var z=B.hours;k?z<12&&(B.hours+=12):z===12&&(B.hours=0),delete B.afternoon}}(M),M}}return function(p,g,m){m.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(l=p.parseTwoDigitYear);var y=g.prototype,_=y.parse;y.parse=function(w){var x=w.date,S=w.utc,T=w.args;this.$u=S;var A=T[1];if(typeof A=="string"){var C=T[2]===!0,M=T[3]===!0,E=C||M,D=T[2];M&&(D=T[2]),s=this.$locale(),!C&&D&&(s=m.Ls[D]),this.$d=function(O,R,B){try{if(["x","X"].indexOf(R)>-1)return new Date((R==="X"?1e3:1)*O);var k=v(R)(O),z=k.year,$=k.month,j=k.day,X=k.hours,Q=k.minutes,se=k.seconds,ee=k.milliseconds,K=k.zone,Z=new Date,ne=j||(z||$?1:Z.getDate()),re=z||Z.getFullYear(),ie=0;z&&!$||(ie=$>0?$-1:Z.getMonth());var Y=X||0,q=Q||0,oe=se||0,ve=ee||0;return K?new Date(Date.UTC(re,ie,ne,Y,q,oe,ve+60*K.offset*1e3)):B?new Date(Date.UTC(re,ie,ne,Y,q,oe,ve)):new Date(re,ie,ne,Y,q,oe,ve)}catch{return new Date("")}}(x,A,S),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),E&&x!=this.format(A)&&(this.$d=new Date("")),s={}}else if(A instanceof Array)for(var P=A.length,L=1;L<=P;L+=1){T[1]=A[L-1];var I=m.apply(this,T);if(I.isValid()){this.$d=I.$d,this.$L=I.$L,this.init();break}L===P&&(this.$d=new Date(""))}else _.call(this,w)}}})})(Zte);var Fje=Zte.exports;const T3=ru(Fje),cU=["hours","minutes","seconds"],lI="HH:mm:ss",op="YYYY-MM-DD",Vje={date:op,dates:op,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${op} ${lI}`,monthrange:"YYYY-MM",daterange:op,datetimerange:`${op} ${lI}`},GM=(e,t)=>[e>0?e-1:void 0,e,eArray.from(Array.from({length:e}).keys()),qte=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),Qte=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),fU=function(e,t){const r=Rh(e),n=Rh(t);return r&&n?e.getTime()===t.getTime():!r&&!n?e===t:!1},dU=function(e,t){const r=We(e),n=We(t);return r&&n?e.length!==t.length?!1:e.every((a,i)=>fU(a,t[i])):!r&&!n?fU(e,t):!1},hU=function(e,t,r){const n=qo(t)||t==="x"?Rt(e).locale(r):Rt(e,t).locale(r);return n.isValid()?n:void 0},vU=function(e,t,r){return qo(t)?e:t==="x"?+e:Rt(e).locale(r).format(t)},UM=(e,t)=>{var r;const n=[],a=t==null?void 0:t();for(let i=0;i({})},modelValue:{type:fe([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:fe([Date,Array])},defaultTime:{type:fe([Date,Array])},isRange:Boolean,...Jte,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,label:{type:String,default:void 0},tabindex:{type:fe([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),zje=["id","name","placeholder","value","disabled","readonly"],Hje=["id","name","placeholder","value","disabled","readonly"],Gje=te({name:"Picker"}),Uje=te({...Gje,props:C3,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:r}){const n=e,a=Jh(),{lang:i}=fr(),o=Ce("date"),s=Ce("input"),l=Ce("range"),{form:u,formItem:c}=Vi(),f=Ye("ElPopperOptions",{}),d=G(),h=G(),v=G(!1),p=G(!1),g=G(null);let m=!1,y=!1;const _=F(()=>[o.b("editor"),o.bm("editor",n.type),s.e("wrapper"),o.is("disabled",j.value),o.is("active",v.value),l.b("editor"),ge?l.bm("editor",ge.value):"",a.class]),w=F(()=>[s.e("icon"),l.e("close-icon"),ne.value?"":l.e("close-icon--hidden")]);Ae(v,ae=>{ae?qe(()=>{ae&&(g.value=n.modelValue)}):(xe.value=null,qe(()=>{x(n.modelValue)}))});const x=(ae,Ge)=>{(Ge||!dU(ae,g.value))&&(r("change",ae),n.validateEvent&&(c==null||c.validate("change").catch(St=>void 0)))},S=ae=>{if(!dU(n.modelValue,ae)){let Ge;We(ae)?Ge=ae.map(St=>vU(St,n.valueFormat,i.value)):ae&&(Ge=vU(ae,n.valueFormat,i.value)),r("update:modelValue",ae&&Ge,i.value)}},T=ae=>{r("keydown",ae)},A=F(()=>{if(h.value){const ae=_e.value?h.value:h.value.$el;return Array.from(ae.querySelectorAll("input"))}return[]}),C=(ae,Ge,St)=>{const Kt=A.value;Kt.length&&(!St||St==="min"?(Kt[0].setSelectionRange(ae,Ge),Kt[0].focus()):St==="max"&&(Kt[1].setSelectionRange(ae,Ge),Kt[1].focus()))},M=()=>{B(!0,!0),qe(()=>{y=!1})},E=(ae="",Ge=!1)=>{Ge||(y=!0),v.value=Ge;let St;We(ae)?St=ae.map(Kt=>Kt.toDate()):St=ae&&ae.toDate(),xe.value=null,S(St)},D=()=>{p.value=!0},P=()=>{r("visible-change",!0)},L=ae=>{(ae==null?void 0:ae.key)===Qe.esc&&B(!0,!0)},I=()=>{p.value=!1,v.value=!1,y=!1,r("visible-change",!1)},O=()=>{v.value=!0},R=()=>{v.value=!1},B=(ae=!0,Ge=!1)=>{y=Ge;const[St,Kt]=b(A);let Xn=St;!ae&&_e.value&&(Xn=Kt),Xn&&Xn.focus()},k=ae=>{n.readonly||j.value||v.value||y||(v.value=!0,r("focus",ae))};let z;const $=ae=>{const Ge=async()=>{setTimeout(()=>{var St;z===Ge&&(!((St=d.value)!=null&&St.isFocusInsideContent()&&!m)&&A.value.filter(Kt=>Kt.contains(document.activeElement)).length===0&&(Te(),v.value=!1,r("blur",ae),n.validateEvent&&(c==null||c.validate("blur").catch(Kt=>void 0))),m=!1)},0)};z=Ge,Ge()},j=F(()=>n.disabled||(u==null?void 0:u.disabled)),X=F(()=>{let ae;if(ie.value?be.value.getDefaultValue&&(ae=be.value.getDefaultValue()):We(n.modelValue)?ae=n.modelValue.map(Ge=>hU(Ge,n.valueFormat,i.value)):ae=hU(n.modelValue,n.valueFormat,i.value),be.value.getRangeAvailableTime){const Ge=be.value.getRangeAvailableTime(ae);to(Ge,ae)||(ae=Ge,S(We(ae)?ae.map(St=>St.toDate()):ae.toDate()))}return We(ae)&&ae.some(Ge=>!Ge)&&(ae=[]),ae}),Q=F(()=>{if(!be.value.panelReady)return"";const ae=He(X.value);return We(xe.value)?[xe.value[0]||ae&&ae[0]||"",xe.value[1]||ae&&ae[1]||""]:xe.value!==null?xe.value:!ee.value&&ie.value||!v.value&&ie.value?"":ae?K.value?ae.join(", "):ae:""}),se=F(()=>n.type.includes("time")),ee=F(()=>n.type.startsWith("time")),K=F(()=>n.type==="dates"),Z=F(()=>n.prefixIcon||(se.value?Ree:FGe)),ne=G(!1),re=ae=>{n.readonly||j.value||ne.value&&(ae.stopPropagation(),M(),S(null),x(null,!0),ne.value=!1,v.value=!1,be.value.handleClear&&be.value.handleClear())},ie=F(()=>{const{modelValue:ae}=n;return!ae||We(ae)&&!ae.filter(Boolean).length}),Y=async ae=>{var Ge;n.readonly||j.value||(((Ge=ae.target)==null?void 0:Ge.tagName)!=="INPUT"||A.value.includes(document.activeElement))&&(v.value=!0)},q=()=>{n.readonly||j.value||!ie.value&&n.clearable&&(ne.value=!0)},oe=()=>{ne.value=!1},ve=ae=>{var Ge;n.readonly||j.value||(((Ge=ae.touches[0].target)==null?void 0:Ge.tagName)!=="INPUT"||A.value.includes(document.activeElement))&&(v.value=!0)},_e=F(()=>n.type.includes("range")),ge=ca(),Le=F(()=>{var ae,Ge;return(Ge=(ae=b(d))==null?void 0:ae.popperRef)==null?void 0:Ge.contentRef}),Se=F(()=>{var ae;return b(_e)?b(h):(ae=b(h))==null?void 0:ae.$el});RN(Se,ae=>{const Ge=b(Le),St=b(Se);Ge&&(ae.target===Ge||ae.composedPath().includes(Ge))||ae.target===St||ae.composedPath().includes(St)||(v.value=!1)});const xe=G(null),Te=()=>{if(xe.value){const ae=Ve(Q.value);ae&&je(ae)&&(S(We(ae)?ae.map(Ge=>Ge.toDate()):ae.toDate()),xe.value=null)}xe.value===""&&(S(null),x(null),xe.value=null)},Ve=ae=>ae?be.value.parseUserInput(ae):null,He=ae=>ae?be.value.formatToString(ae):null,je=ae=>be.value.isValidValue(ae),Pe=async ae=>{if(n.readonly||j.value)return;const{code:Ge}=ae;if(T(ae),Ge===Qe.esc){v.value===!0&&(v.value=!1,ae.preventDefault(),ae.stopPropagation());return}if(Ge===Qe.down&&(be.value.handleFocusPicker&&(ae.preventDefault(),ae.stopPropagation()),v.value===!1&&(v.value=!0,await qe()),be.value.handleFocusPicker)){be.value.handleFocusPicker();return}if(Ge===Qe.tab){m=!0;return}if(Ge===Qe.enter||Ge===Qe.numpadEnter){(xe.value===null||xe.value===""||je(Ve(Q.value)))&&(Te(),v.value=!1),ae.stopPropagation();return}if(xe.value){ae.stopPropagation();return}be.value.handleKeydownInput&&be.value.handleKeydownInput(ae)},Ue=ae=>{xe.value=ae,v.value||(v.value=!0)},gt=ae=>{const Ge=ae.target;xe.value?xe.value=[Ge.value,xe.value[1]]:xe.value=[Ge.value,null]},At=ae=>{const Ge=ae.target;xe.value?xe.value=[xe.value[0],Ge.value]:xe.value=[null,Ge.value]},Gt=()=>{var ae;const Ge=xe.value,St=Ve(Ge&&Ge[0]),Kt=b(X);if(St&&St.isValid()){xe.value=[He(St),((ae=Q.value)==null?void 0:ae[1])||null];const Xn=[St,Kt&&(Kt[1]||null)];je(Xn)&&(S(Xn),xe.value=null)}},tt=()=>{var ae;const Ge=b(xe),St=Ve(Ge&&Ge[1]),Kt=b(X);if(St&&St.isValid()){xe.value=[((ae=b(Q))==null?void 0:ae[0])||null,He(St)];const Xn=[Kt&&Kt[0],St];je(Xn)&&(S(Xn),xe.value=null)}},be=G({}),pe=ae=>{be.value[ae[0]]=ae[1],be.value.panelReady=!0},de=ae=>{r("calendar-change",ae)},Me=(ae,Ge,St)=>{r("panel-change",ae,Ge,St)};return Wt("EP_PICKER_BASE",{props:n}),t({focus:B,handleFocusInput:k,handleBlurInput:$,handleOpen:O,handleClose:R,onPick:E}),(ae,Ge)=>(N(),he(b(Bi),Ut({ref_key:"refPopper",ref:d,visible:v.value,effect:"light",pure:"",trigger:"click"},ae.$attrs,{role:"dialog",teleported:"",transition:`${b(o).namespace.value}-zoom-in-top`,"popper-class":[`${b(o).namespace.value}-picker__popper`,ae.popperClass],"popper-options":b(f),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:D,onShow:P,onHide:I}),{default:le(()=>[b(_e)?(N(),U("div",{key:1,ref_key:"inputRef",ref:h,class:H(b(_)),style:Xe(ae.$attrs.style),onClick:k,onMouseenter:q,onMouseleave:oe,onTouchstart:ve,onKeydown:Pe},[b(Z)?(N(),he(b(Ze),{key:0,class:H([b(s).e("icon"),b(l).e("icon")]),onMousedown:it(Y,["prevent"]),onTouchstart:ve},{default:le(()=>[(N(),he(Ft(b(Z))))]),_:1},8,["class","onMousedown"])):ce("v-if",!0),V("input",{id:ae.id&&ae.id[0],autocomplete:"off",name:ae.name&&ae.name[0],placeholder:ae.startPlaceholder,value:b(Q)&&b(Q)[0],disabled:b(j),readonly:!ae.editable||ae.readonly,class:H(b(l).b("input")),onMousedown:Y,onInput:gt,onChange:Gt,onFocus:k,onBlur:$},null,42,zje),ye(ae.$slots,"range-separator",{},()=>[V("span",{class:H(b(l).b("separator"))},me(ae.rangeSeparator),3)]),V("input",{id:ae.id&&ae.id[1],autocomplete:"off",name:ae.name&&ae.name[1],placeholder:ae.endPlaceholder,value:b(Q)&&b(Q)[1],disabled:b(j),readonly:!ae.editable||ae.readonly,class:H(b(l).b("input")),onMousedown:Y,onFocus:k,onBlur:$,onInput:At,onChange:tt},null,42,Hje),ae.clearIcon?(N(),he(b(Ze),{key:1,class:H(b(w)),onClick:re},{default:le(()=>[(N(),he(Ft(ae.clearIcon)))]),_:1},8,["class"])):ce("v-if",!0)],38)):(N(),he(b(li),{key:0,id:ae.id,ref_key:"inputRef",ref:h,"container-role":"combobox","model-value":b(Q),name:ae.name,size:b(ge),disabled:b(j),placeholder:ae.placeholder,class:H([b(o).b("editor"),b(o).bm("editor",ae.type),ae.$attrs.class]),style:Xe(ae.$attrs.style),readonly:!ae.editable||ae.readonly||b(K)||ae.type==="week",label:ae.label,tabindex:ae.tabindex,"validate-event":!1,onInput:Ue,onFocus:k,onBlur:$,onKeydown:Pe,onChange:Te,onMousedown:Y,onMouseenter:q,onMouseleave:oe,onTouchstart:ve,onClick:Ge[0]||(Ge[0]=it(()=>{},["stop"]))},{prefix:le(()=>[b(Z)?(N(),he(b(Ze),{key:0,class:H(b(s).e("icon")),onMousedown:it(Y,["prevent"]),onTouchstart:ve},{default:le(()=>[(N(),he(Ft(b(Z))))]),_:1},8,["class","onMousedown"])):ce("v-if",!0)]),suffix:le(()=>[ne.value&&ae.clearIcon?(N(),he(b(Ze),{key:0,class:H(`${b(s).e("icon")} clear-icon`),onClick:it(re,["stop"])},{default:le(()=>[(N(),he(Ft(ae.clearIcon)))]),_:1},8,["class","onClick"])):ce("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:le(()=>[ye(ae.$slots,"default",{visible:v.value,actualVisible:p.value,parsedValue:b(X),format:ae.format,dateFormat:ae.dateFormat,timeFormat:ae.timeFormat,unlinkPanels:ae.unlinkPanels,type:ae.type,defaultValue:ae.defaultValue,onPick:E,onSelectRange:C,onSetPickerOption:pe,onCalendarChange:de,onPanelChange:Me,onKeydown:L,onMousedown:Ge[1]||(Ge[1]=it(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var tre=ke(Uje,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const $je=Oe({...ere,datetimeRole:String,parsedValue:{type:fe(Object)}}),rre=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:r})=>{const n=(o,s,l,u)=>{const c={hour:e,minute:t,second:r};let f=o;return["hour","minute","second"].forEach(d=>{if(c[d]){let h;const v=c[d];switch(d){case"minute":{h=v(f.hour(),s,u);break}case"second":{h=v(f.hour(),f.minute(),s,u);break}default:{h=v(s,u);break}}if(h!=null&&h.length&&!h.includes(f[d]())){const p=l?0:h.length-1;f=f[d](h[p])}}}),f},a={};return{timePickerOptions:a,getAvailableTime:n,onSetOption:([o,s])=>{a[o]=s}}},$M=e=>{const t=(n,a)=>n||a,r=n=>n!==!0;return e.map(t).filter(r)},nre=(e,t,r)=>({getHoursList:(o,s)=>UM(24,e&&(()=>e==null?void 0:e(o,s))),getMinutesList:(o,s,l)=>UM(60,t&&(()=>t==null?void 0:t(o,s,l))),getSecondsList:(o,s,l,u)=>UM(60,r&&(()=>r==null?void 0:r(o,s,l,u)))}),are=(e,t,r)=>{const{getHoursList:n,getMinutesList:a,getSecondsList:i}=nre(e,t,r);return{getAvailableHours:(u,c)=>$M(n(u,c)),getAvailableMinutes:(u,c,f)=>$M(a(u,c,f)),getAvailableSeconds:(u,c,f,d)=>$M(i(u,c,f,d))}},ire=e=>{const t=G(e.parsedValue);return Ae(()=>e.visible,r=>{r||(t.value=e.parsedValue)}),t},Oc=new Map;let pU;ur&&(document.addEventListener("mousedown",e=>pU=e),document.addEventListener("mouseup",e=>{for(const t of Oc.values())for(const{documentHandler:r}of t)r(e,pU)}));function gU(e,t){let r=[];return Array.isArray(t.arg)?r=t.arg:us(t.arg)&&r.push(t.arg),function(n,a){const i=t.instance.popperRef,o=n.target,s=a==null?void 0:a.target,l=!t||!t.instance,u=!o||!s,c=e.contains(o)||e.contains(s),f=e===o,d=r.length&&r.some(v=>v==null?void 0:v.contains(o))||r.length&&r.includes(s),h=i&&(i.contains(o)||i.contains(s));l||u||c||f||d||h||t.value(n,a)}}const Df={beforeMount(e,t){Oc.has(e)||Oc.set(e,[]),Oc.get(e).push({documentHandler:gU(e,t),bindingFn:t.value})},updated(e,t){Oc.has(e)||Oc.set(e,[]);const r=Oc.get(e),n=r.findIndex(i=>i.bindingFn===t.oldValue),a={documentHandler:gU(e,t),bindingFn:t.value};n>=0?r.splice(n,1,a):r.push(a)},unmounted(e){Oc.delete(e)}},Wje=100,Yje=600,d2={beforeMount(e,t){const r=t.value,{interval:n=Wje,delay:a=Yje}=dt(r)?{}:r;let i,o;const s=()=>dt(r)?r():r.handler(),l=()=>{o&&(clearTimeout(o),o=void 0),i&&(clearInterval(i),i=void 0)};e.addEventListener("mousedown",u=>{u.button===0&&(l(),s(),document.addEventListener("mouseup",()=>l(),{once:!0}),o=setTimeout(()=>{i=setInterval(()=>{s()},n)},a))})}},uI="_trap-focus-children",sh=[],mU=e=>{if(sh.length===0)return;const t=sh[sh.length-1][uI];if(t.length>0&&e.code===Qe.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const r=e.shiftKey,n=e.target===t[0],a=e.target===t[t.length-1];n&&r&&(e.preventDefault(),t[t.length-1].focus()),a&&!r&&(e.preventDefault(),t[0].focus())}},jje={beforeMount(e){e[uI]=PH(e),sh.push(e),sh.length<=1&&document.addEventListener("keydown",mU)},updated(e){qe(()=>{e[uI]=PH(e)})},unmounted(){sh.shift(),sh.length===0&&document.removeEventListener("keydown",mU)}};var yU=!1,jd,cI,fI,gS,mS,ore,yS,dI,hI,vI,sre,pI,gI,lre,ure;function $i(){if(!yU){yU=!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),r=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(pI=/\b(iPhone|iP[ao]d)/.exec(e),gI=/\b(iP[ao]d)/.exec(e),vI=/Android/i.exec(e),lre=/FBAN\/\w+;/i.exec(e),ure=/Mobile/i.exec(e),sre=!!/Win64/.exec(e),t){jd=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,jd&&document&&document.documentMode&&(jd=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);ore=n?parseFloat(n[1])+4:jd,cI=t[2]?parseFloat(t[2]):NaN,fI=t[3]?parseFloat(t[3]):NaN,gS=t[4]?parseFloat(t[4]):NaN,gS?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),mS=t&&t[1]?parseFloat(t[1]):NaN):mS=NaN}else jd=cI=fI=mS=gS=NaN;if(r){if(r[1]){var a=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);yS=a?parseFloat(a[1].replace("_",".")):!0}else yS=!1;dI=!!r[2],hI=!!r[3]}else yS=dI=hI=!1}}var mI={ie:function(){return $i()||jd},ieCompatibilityMode:function(){return $i()||ore>jd},ie64:function(){return mI.ie()&&sre},firefox:function(){return $i()||cI},opera:function(){return $i()||fI},webkit:function(){return $i()||gS},safari:function(){return mI.webkit()},chrome:function(){return $i()||mS},windows:function(){return $i()||dI},osx:function(){return $i()||yS},linux:function(){return $i()||hI},iphone:function(){return $i()||pI},mobile:function(){return $i()||pI||gI||vI||ure},nativeApp:function(){return $i()||lre},android:function(){return $i()||vI},ipad:function(){return $i()||gI}},Kje=mI,vw=!!(typeof window<"u"&&window.document&&window.document.createElement),Xje={canUseDOM:vw,canUseWorkers:typeof Worker<"u",canUseEventListeners:vw&&!!(window.addEventListener||window.attachEvent),canUseViewport:vw&&!!window.screen,isInWorker:!vw},cre=Xje,fre;cre.canUseDOM&&(fre=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function Zje(e,t){if(!cre.canUseDOM||t&&!("addEventListener"in document))return!1;var r="on"+e,n=r in document;if(!n){var a=document.createElement("div");a.setAttribute(r,"return;"),n=typeof a[r]=="function"}return!n&&fre&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var qje=Zje,_U=10,bU=40,wU=800;function dre(e){var t=0,r=0,n=0,a=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),n=t*_U,a=r*_U,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||a)&&e.deltaMode&&(e.deltaMode==1?(n*=bU,a*=bU):(n*=wU,a*=wU)),n&&!t&&(t=n<1?-1:1),a&&!r&&(r=a<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:a}}dre.getEventType=function(){return Kje.firefox()?"DOMMouseScroll":qje("wheel")?"wheel":"mousewheel"};var Qje=dre;/** * 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 Jje=function(e,t){if(e&&e.addEventListener){const r=function(n){const a=Qje(n);t&&Reflect.apply(t,this,[n,a])};e.addEventListener("wheel",r,{passive:!0})}},eKe={beforeMount(e,t){Jje(e,t.value)}},tKe=Oe({role:{type:String,required:!0},spinnerDate:{type:fe(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:fe(String),default:""},...Jte}),rKe=["onClick"],nKe=["onMouseenter"],aKe=te({__name:"basic-time-spinner",props:tKe,emits:["change","select-range","set-option"],setup(e,{emit:t}){const r=e,n=Ce("time"),{getHoursList:a,getMinutesList:i,getSecondsList:o}=nre(r.disabledHours,r.disabledMinutes,r.disabledSeconds);let s=!1;const l=G(),u=G(),c=G(),f=G(),d={hours:u,minutes:c,seconds:f},h=F(()=>r.showSeconds?cU:cU.slice(0,2)),v=F(()=>{const{spinnerDate:k}=r,z=k.hour(),$=k.minute(),j=k.second();return{hours:z,minutes:$,seconds:j}}),p=F(()=>{const{hours:k,minutes:z}=b(v);return{hours:a(r.role),minutes:i(k,r.role),seconds:o(k,z,r.role)}}),g=F(()=>{const{hours:k,minutes:z,seconds:$}=b(v);return{hours:GM(k,23),minutes:GM(z,59),seconds:GM($,59)}}),m=Ni(k=>{s=!1,w(k)},200),y=k=>{if(!!!r.amPmMode)return"";const $=r.amPmMode==="A";let j=k<12?" am":" pm";return $&&(j=j.toUpperCase()),j},_=k=>{let z;switch(k){case"hours":z=[0,2];break;case"minutes":z=[3,5];break;case"seconds":z=[6,8];break}const[$,j]=z;t("select-range",$,j),l.value=k},w=k=>{T(k,b(v)[k])},x=()=>{w("hours"),w("minutes"),w("seconds")},S=k=>k.querySelector(`.${n.namespace.value}-scrollbar__wrap`),T=(k,z)=>{if(r.arrowControl)return;const $=b(d[k]);$&&$.$el&&(S($.$el).scrollTop=Math.max(0,z*A(k)))},A=k=>{const z=b(d[k]),$=z==null?void 0:z.$el.querySelector("li");return $&&Number.parseFloat(Hc($,"height"))||0},C=()=>{E(1)},M=()=>{E(-1)},E=k=>{l.value||_("hours");const z=l.value,$=b(v)[z],j=l.value==="hours"?24:60,X=D(z,$,k,j);P(z,X),T(z,X),qe(()=>_(z))},D=(k,z,$,j)=>{let X=(z+$+j)%j;const Q=b(p)[k];for(;Q[X]&&X!==z;)X=(X+$+j)%j;return X},P=(k,z)=>{if(b(p)[k][z])return;const{hours:X,minutes:Q,seconds:se}=b(v);let ee;switch(k){case"hours":ee=r.spinnerDate.hour(z).minute(Q).second(se);break;case"minutes":ee=r.spinnerDate.hour(X).minute(z).second(se);break;case"seconds":ee=r.spinnerDate.hour(X).minute(Q).second(z);break}t("change",ee)},L=(k,{value:z,disabled:$})=>{$||(P(k,z),_(k),T(k,z))},I=k=>{s=!0,m(k);const z=Math.min(Math.round((S(b(d[k]).$el).scrollTop-(O(k)*.5-10)/A(k)+3)/A(k)),k==="hours"?23:59);P(k,z)},O=k=>b(d[k]).$el.offsetHeight,R=()=>{const k=z=>{const $=b(d[z]);$&&$.$el&&(S($.$el).onscroll=()=>{I(z)})};k("hours"),k("minutes"),k("seconds")};xt(()=>{qe(()=>{!r.arrowControl&&R(),x(),r.role==="start"&&_("hours")})});const B=(k,z)=>{d[z].value=k};return t("set-option",[`${r.role}_scrollDown`,E]),t("set-option",[`${r.role}_emitSelectRange`,_]),Ae(()=>r.spinnerDate,()=>{s||x()}),(k,z)=>(N(),U("div",{class:H([b(n).b("spinner"),{"has-seconds":k.showSeconds}])},[k.arrowControl?ce("v-if",!0):(N(!0),U(Be,{key:0},ht(b(h),$=>(N(),he(b(ic),{key:$,ref_for:!0,ref:j=>B(j,$),class:H(b(n).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":b(n).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:j=>_($),onMousemove:j=>w($)},{default:le(()=>[(N(!0),U(Be,null,ht(b(p)[$],(j,X)=>(N(),U("li",{key:X,class:H([b(n).be("spinner","item"),b(n).is("active",X===b(v)[$]),b(n).is("disabled",j)]),onClick:Q=>L($,{value:X,disabled:j})},[$==="hours"?(N(),U(Be,{key:0},[nr(me(("0"+(k.amPmMode?X%12||12:X)).slice(-2))+me(y(X)),1)],64)):(N(),U(Be,{key:1},[nr(me(("0"+X).slice(-2)),1)],64))],10,rKe))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),k.arrowControl?(N(!0),U(Be,{key:1},ht(b(h),$=>(N(),U("div",{key:$,class:H([b(n).be("spinner","wrapper"),b(n).is("arrow")]),onMouseenter:j=>_($)},[Ct((N(),he(b(Ze),{class:H(["arrow-up",b(n).be("spinner","arrow")])},{default:le(()=>[J(b(mT))]),_:1},8,["class"])),[[b(d2),M]]),Ct((N(),he(b(Ze),{class:H(["arrow-down",b(n).be("spinner","arrow")])},{default:le(()=>[J(b(Vf))]),_:1},8,["class"])),[[b(d2),C]]),V("ul",{class:H(b(n).be("spinner","list"))},[(N(!0),U(Be,null,ht(b(g)[$],(j,X)=>(N(),U("li",{key:X,class:H([b(n).be("spinner","item"),b(n).is("active",j===b(v)[$]),b(n).is("disabled",b(p)[$][j])])},[typeof j=="number"?(N(),U(Be,{key:0},[$==="hours"?(N(),U(Be,{key:0},[nr(me(("0"+(k.amPmMode?j%12||12:j)).slice(-2))+me(y(j)),1)],64)):(N(),U(Be,{key:1},[nr(me(("0"+j).slice(-2)),1)],64))],64)):ce("v-if",!0)],2))),128))],2)],42,nKe))),128)):ce("v-if",!0)],2))}});var yI=ke(aKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const iKe=te({__name:"panel-time-pick",props:$je,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const r=e,n=Ye("EP_PICKER_BASE"),{arrowControl:a,disabledHours:i,disabledMinutes:o,disabledSeconds:s,defaultValue:l}=n.props,{getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}=are(i,o,s),d=Ce("time"),{t:h,lang:v}=fr(),p=G([0,2]),g=ire(r),m=F(()=>oa(r.actualVisible)?`${d.namespace.value}-zoom-in-top`:""),y=F(()=>r.format.includes("ss")),_=F(()=>r.format.includes("A")?"A":r.format.includes("a")?"a":""),w=B=>{const k=Rt(B).locale(v.value),z=L(k);return k.isSame(z)},x=()=>{t("pick",g.value,!1)},S=(B=!1,k=!1)=>{k||t("pick",r.parsedValue,B)},T=B=>{if(!r.visible)return;const k=L(B).millisecond(0);t("pick",k,!0)},A=(B,k)=>{t("select-range",B,k),p.value=[B,k]},C=B=>{const k=[0,3].concat(y.value?[6]:[]),z=["hours","minutes"].concat(y.value?["seconds"]:[]),j=(k.indexOf(p.value[0])+B+k.length)%k.length;E.start_emitSelectRange(z[j])},M=B=>{const k=B.code,{left:z,right:$,up:j,down:X}=Qe;if([z,$].includes(k)){C(k===z?-1:1),B.preventDefault();return}if([j,X].includes(k)){const Q=k===j?-1:1;E.start_scrollDown(Q),B.preventDefault();return}},{timePickerOptions:E,onSetOption:D,getAvailableTime:P}=rre({getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}),L=B=>P(B,r.datetimeRole||"",!0),I=B=>B?Rt(B,r.format).locale(v.value):null,O=B=>B?B.format(r.format):null,R=()=>Rt(l).locale(v.value);return t("set-picker-option",["isValidValue",w]),t("set-picker-option",["formatToString",O]),t("set-picker-option",["parseUserInput",I]),t("set-picker-option",["handleKeydownInput",M]),t("set-picker-option",["getRangeAvailableTime",L]),t("set-picker-option",["getDefaultValue",R]),(B,k)=>(N(),he(Yn,{name:b(m)},{default:le(()=>[B.actualVisible||B.visible?(N(),U("div",{key:0,class:H(b(d).b("panel"))},[V("div",{class:H([b(d).be("panel","content"),{"has-seconds":b(y)}])},[J(yI,{ref:"spinner",role:B.datetimeRole||"start","arrow-control":b(a),"show-seconds":b(y),"am-pm-mode":b(_),"spinner-date":B.parsedValue,"disabled-hours":b(i),"disabled-minutes":b(o),"disabled-seconds":b(s),onChange:T,onSetOption:b(D),onSelectRange:A},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),V("div",{class:H(b(d).be("panel","footer"))},[V("button",{type:"button",class:H([b(d).be("panel","btn"),"cancel"]),onClick:x},me(b(h)("el.datepicker.cancel")),3),V("button",{type:"button",class:H([b(d).be("panel","btn"),"confirm"]),onClick:k[0]||(k[0]=z=>S())},me(b(h)("el.datepicker.confirm")),3)],2)],2)):ce("v-if",!0)]),_:1},8,["name"]))}});var h2=ke(iKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const oKe=Oe({...ere,parsedValue:{type:fe(Array)}}),sKe=["disabled"],lKe=te({__name:"panel-time-range",props:oKe,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const r=e,n=(ie,Y)=>{const q=[];for(let oe=ie;oe<=Y;oe++)q.push(oe);return q},{t:a,lang:i}=fr(),o=Ce("time"),s=Ce("picker"),l=Ye("EP_PICKER_BASE"),{arrowControl:u,disabledHours:c,disabledMinutes:f,disabledSeconds:d,defaultValue:h}=l.props,v=F(()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",u),w.value?"has-seconds":""]),p=F(()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",u),w.value?"has-seconds":""]),g=F(()=>r.parsedValue[0]),m=F(()=>r.parsedValue[1]),y=ire(r),_=()=>{t("pick",y.value,!1)},w=F(()=>r.format.includes("ss")),x=F(()=>r.format.includes("A")?"A":r.format.includes("a")?"a":""),S=(ie=!1)=>{t("pick",[g.value,m.value],ie)},T=ie=>{M(ie.millisecond(0),m.value)},A=ie=>{M(g.value,ie.millisecond(0))},C=ie=>{const Y=ie.map(oe=>Rt(oe).locale(i.value)),q=$(Y);return Y[0].isSame(q[0])&&Y[1].isSame(q[1])},M=(ie,Y)=>{t("pick",[ie,Y],!0)},E=F(()=>g.value>m.value),D=G([0,2]),P=(ie,Y)=>{t("select-range",ie,Y,"min"),D.value=[ie,Y]},L=F(()=>w.value?11:8),I=(ie,Y)=>{t("select-range",ie,Y,"max");const q=b(L);D.value=[ie+q,Y+q]},O=ie=>{const Y=w.value?[0,3,6,11,14,17]:[0,3,8,11],q=["hours","minutes"].concat(w.value?["seconds"]:[]),ve=(Y.indexOf(D.value[0])+ie+Y.length)%Y.length,_e=Y.length/2;ve<_e?se.start_emitSelectRange(q[ve]):se.end_emitSelectRange(q[ve-_e])},R=ie=>{const Y=ie.code,{left:q,right:oe,up:ve,down:_e}=Qe;if([q,oe].includes(Y)){O(Y===q?-1:1),ie.preventDefault();return}if([ve,_e].includes(Y)){const ge=Y===ve?-1:1,Le=D.value[0]{const q=c?c(ie):[],oe=ie==="start",_e=(Y||(oe?m.value:g.value)).hour(),ge=oe?n(_e+1,23):n(0,_e-1);return OM(q,ge)},k=(ie,Y,q)=>{const oe=f?f(ie,Y):[],ve=Y==="start",_e=q||(ve?m.value:g.value),ge=_e.hour();if(ie!==ge)return oe;const Le=_e.minute(),Se=ve?n(Le+1,59):n(0,Le-1);return OM(oe,Se)},z=(ie,Y,q,oe)=>{const ve=d?d(ie,Y,q):[],_e=q==="start",ge=oe||(_e?m.value:g.value),Le=ge.hour(),Se=ge.minute();if(ie!==Le||Y!==Se)return ve;const xe=ge.second(),Te=_e?n(xe+1,59):n(0,xe-1);return OM(ve,Te)},$=([ie,Y])=>[ee(ie,"start",!0,Y),ee(Y,"end",!1,ie)],{getAvailableHours:j,getAvailableMinutes:X,getAvailableSeconds:Q}=are(B,k,z),{timePickerOptions:se,getAvailableTime:ee,onSetOption:K}=rre({getAvailableHours:j,getAvailableMinutes:X,getAvailableSeconds:Q}),Z=ie=>ie?We(ie)?ie.map(Y=>Rt(Y,r.format).locale(i.value)):Rt(ie,r.format).locale(i.value):null,ne=ie=>ie?We(ie)?ie.map(Y=>Y.format(r.format)):ie.format(r.format):null,re=()=>{if(We(h))return h.map(Y=>Rt(Y).locale(i.value));const ie=Rt(h).locale(i.value);return[ie,ie.add(60,"m")]};return t("set-picker-option",["formatToString",ne]),t("set-picker-option",["parseUserInput",Z]),t("set-picker-option",["isValidValue",C]),t("set-picker-option",["handleKeydownInput",R]),t("set-picker-option",["getDefaultValue",re]),t("set-picker-option",["getRangeAvailableTime",$]),(ie,Y)=>ie.actualVisible?(N(),U("div",{key:0,class:H([b(o).b("range-picker"),b(s).b("panel")])},[V("div",{class:H(b(o).be("range-picker","content"))},[V("div",{class:H(b(o).be("range-picker","cell"))},[V("div",{class:H(b(o).be("range-picker","header"))},me(b(a)("el.datepicker.startTime")),3),V("div",{class:H(b(v))},[J(yI,{ref:"minSpinner",role:"start","show-seconds":b(w),"am-pm-mode":b(x),"arrow-control":b(u),"spinner-date":b(g),"disabled-hours":B,"disabled-minutes":k,"disabled-seconds":z,onChange:T,onSetOption:b(K),onSelectRange:P},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),V("div",{class:H(b(o).be("range-picker","cell"))},[V("div",{class:H(b(o).be("range-picker","header"))},me(b(a)("el.datepicker.endTime")),3),V("div",{class:H(b(p))},[J(yI,{ref:"maxSpinner",role:"end","show-seconds":b(w),"am-pm-mode":b(x),"arrow-control":b(u),"spinner-date":b(m),"disabled-hours":B,"disabled-minutes":k,"disabled-seconds":z,onChange:A,onSetOption:b(K),onSelectRange:I},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),V("div",{class:H(b(o).be("panel","footer"))},[V("button",{type:"button",class:H([b(o).be("panel","btn"),"cancel"]),onClick:Y[0]||(Y[0]=q=>_())},me(b(a)("el.datepicker.cancel")),3),V("button",{type:"button",class:H([b(o).be("panel","btn"),"confirm"]),disabled:b(E),onClick:Y[1]||(Y[1]=q=>S())},me(b(a)("el.datepicker.confirm")),11,sKe)],2)],2)):ce("v-if",!0)}});var uKe=ke(lKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);Rt.extend(T3);var cKe=te({name:"ElTimePicker",install:null,props:{...C3,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const r=G(),[n,a]=e.isRange?["timerange",uKe]:["time",h2],i=o=>t.emit("update:modelValue",o);return Wt("ElPopperOptions",e.popperOptions),t.expose({focus:o=>{var s;(s=r.value)==null||s.handleFocusInput(o)},blur:o=>{var s;(s=r.value)==null||s.handleBlurInput(o)},handleOpen:()=>{var o;(o=r.value)==null||o.handleOpen()},handleClose:()=>{var o;(o=r.value)==null||o.handleClose()}}),()=>{var o;const s=(o=e.format)!=null?o:lI;return J(tre,Ut(e,{ref:r,type:n,format:s,"onUpdate:modelValue":i}),{default:l=>J(a,l,null)})}}});const _S=cKe;_S.install=e=>{e.component(_S.name,_S)};const fKe=_S,dKe=(e,t)=>{const r=e.subtract(1,"month").endOf("month").date();return hf(t).map((n,a)=>r-(t-a-1))},hKe=e=>{const t=e.daysInMonth();return hf(t).map((r,n)=>n+1)},vKe=e=>hf(e.length/7).map(t=>{const r=t*7;return e.slice(r,r+7)}),pKe=Oe({selectedDay:{type:fe(Object)},range:{type:fe(Array)},date:{type:fe(Object),required:!0},hideHeader:{type:Boolean}}),gKe={pick:e=>Vt(e)};var hre={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(oc,function(){return function(r,n,a){var i=n.prototype,o=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,d,h,v,p){var g=f.name?f:f.$locale(),m=o(g[d]),y=o(g[h]),_=m||y.map(function(x){return x.slice(0,v)});if(!p)return _;var w=g.weekStart;return _.map(function(x,S){return _[(S+(w||0))%7]})},l=function(){return a.Ls[a.locale()]},u=function(f,d){return f.formats[d]||function(h){return h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,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}};i.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)}}})})(hre);var mKe=hre.exports;const vre=ru(mKe),yKe=(e,t)=>{Rt.extend(vre);const r=Rt.localeData().firstDayOfWeek(),{t:n,lang:a}=fr(),i=Rt().locale(a.value),o=F(()=>!!e.range&&!!e.range.length),s=F(()=>{let d=[];if(o.value){const[h,v]=e.range,p=hf(v.date()-h.date()+1).map(y=>({text:h.date()+y,type:"current"}));let g=p.length%7;g=g===0?0:7-g;const m=hf(g).map((y,_)=>({text:_+1,type:"next"}));d=p.concat(m)}else{const h=e.date.startOf("month").day(),v=dKe(e.date,(h-r+7)%7).map(y=>({text:y,type:"prev"})),p=hKe(e.date).map(y=>({text:y,type:"current"}));d=[...v,...p];const g=7-(d.length%7||7),m=hf(g).map((y,_)=>({text:_+1,type:"next"}));d=d.concat(m)}return vKe(d)}),l=F(()=>{const d=r;return d===0?kM.map(h=>n(`el.datepicker.weeks.${h}`)):kM.slice(d).concat(kM.slice(0,d)).map(h=>n(`el.datepicker.weeks.${h}`))}),u=(d,h)=>{switch(h){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:i,isInRange:o,rows:s,weekDays:l,getFormattedDate:u,handlePickDay:({text:d,type:h})=>{const v=u(d,h);t("pick",v)},getSlotData:({text:d,type:h})=>{const v=u(d,h);return{isSelected:v.isSame(e.selectedDay),type:`${h}-month`,day:v.format("YYYY-MM-DD"),date:v.toDate()}}}},_Ke={key:0},bKe=["onClick"],wKe=te({name:"DateTable"}),SKe=te({...wKe,props:pKe,emits:gKe,setup(e,{expose:t,emit:r}){const n=e,{isInRange:a,now:i,rows:o,weekDays:s,getFormattedDate:l,handlePickDay:u,getSlotData:c}=yKe(n,r),f=Ce("calendar-table"),d=Ce("calendar-day"),h=({text:v,type:p})=>{const g=[p];if(p==="current"){const m=l(v,p);m.isSame(n.selectedDay,"day")&&g.push(d.is("selected")),m.isSame(i,"day")&&g.push(d.is("today"))}return g};return t({getFormattedDate:l}),(v,p)=>(N(),U("table",{class:H([b(f).b(),b(f).is("range",b(a))]),cellspacing:"0",cellpadding:"0"},[v.hideHeader?ce("v-if",!0):(N(),U("thead",_Ke,[(N(!0),U(Be,null,ht(b(s),g=>(N(),U("th",{key:g},me(g),1))),128))])),V("tbody",null,[(N(!0),U(Be,null,ht(b(o),(g,m)=>(N(),U("tr",{key:m,class:H({[b(f).e("row")]:!0,[b(f).em("row","hide-border")]:m===0&&v.hideHeader})},[(N(!0),U(Be,null,ht(g,(y,_)=>(N(),U("td",{key:_,class:H(h(y)),onClick:w=>b(u)(y)},[V("div",{class:H(b(d).b())},[ye(v.$slots,"date-cell",{data:b(c)(y)},()=>[V("span",null,me(y.text),1)])],2)],10,bKe))),128))],2))),128))])],2))}});var SU=ke(SKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const xKe=(e,t)=>{const r=e.endOf("month"),n=t.startOf("month"),i=r.isSame(n,"week")?n.add(1,"week"):n;return[[e,r],[i.startOf("week"),t]]},AKe=(e,t)=>{const r=e.endOf("month"),n=e.add(1,"month").startOf("month"),a=r.isSame(n,"week")?n.add(1,"week"):n,i=a.endOf("month"),o=t.startOf("month"),s=i.isSame(o,"week")?o.add(1,"week"):o;return[[e,r],[a.startOf("week"),i],[s.startOf("week"),t]]},TKe=(e,t,r)=>{const n=$a(),{lang:a}=fr(),i=G(),o=Rt().locale(a.value),s=F({get(){return e.modelValue?u.value:i.value},set(m){if(!m)return;i.value=m;const y=m.toDate();t(Di,y),t(Nt,y)}}),l=F(()=>{if(!e.range)return[];const m=e.range.map(w=>Rt(w).locale(a.value)),[y,_]=m;return y.isAfter(_)?[]:y.isSame(_,"month")?v(y,_):y.add(1,"month").month()!==_.month()?[]:v(y,_)}),u=F(()=>e.modelValue?Rt(e.modelValue).locale(a.value):s.value||(l.value.length?l.value[0][0]:o)),c=F(()=>u.value.subtract(1,"month").date(1)),f=F(()=>u.value.add(1,"month").date(1)),d=F(()=>u.value.subtract(1,"year").date(1)),h=F(()=>u.value.add(1,"year").date(1)),v=(m,y)=>{const _=m.startOf("week"),w=y.endOf("week"),x=_.get("month"),S=w.get("month");return x===S?[[_,w]]:(x+1)%12===S?xKe(_,w):x+2===S||(x+1)%11===S?AKe(_,w):[]},p=m=>{s.value=m},g=m=>{const _={"prev-month":c.value,"next-month":f.value,"prev-year":d.value,"next-year":h.value,today:o}[m];_.isSame(u.value,"day")||p(_)};return Ul({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},F(()=>!!n.dateCell)),{calculateValidatedDateRange:v,date:u,realSelectedDay:s,pickDay:p,selectDate:g,validatedRange:l}},CKe=e=>We(e)&&e.length===2&&e.every(t=>Rh(t)),EKe=Oe({modelValue:{type:Date},range:{type:fe(Array),validator:CKe}}),MKe={[Nt]:e=>Rh(e),[Di]:e=>Rh(e)},DKe="ElCalendar",PKe=te({name:DKe}),LKe=te({...PKe,props:EKe,emits:MKe,setup(e,{expose:t,emit:r}){const n=e,a=Ce("calendar"),{calculateValidatedDateRange:i,date:o,pickDay:s,realSelectedDay:l,selectDate:u,validatedRange:c}=TKe(n,r),{t:f}=fr(),d=F(()=>{const h=`el.datepicker.month${o.value.format("M")}`;return`${o.value.year()} ${f("el.datepicker.year")} ${f(h)}`});return t({selectedDay:l,pickDay:s,selectDate:u,calculateValidatedDateRange:i}),(h,v)=>(N(),U("div",{class:H(b(a).b())},[V("div",{class:H(b(a).e("header"))},[ye(h.$slots,"header",{date:b(d)},()=>[V("div",{class:H(b(a).e("title"))},me(b(d)),3),b(c).length===0?(N(),U("div",{key:0,class:H(b(a).e("button-group"))},[J(b(Kte),null,{default:le(()=>[J(b(Ja),{size:"small",onClick:v[0]||(v[0]=p=>b(u)("prev-month"))},{default:le(()=>[nr(me(b(f)("el.datepicker.prevMonth")),1)]),_:1}),J(b(Ja),{size:"small",onClick:v[1]||(v[1]=p=>b(u)("today"))},{default:le(()=>[nr(me(b(f)("el.datepicker.today")),1)]),_:1}),J(b(Ja),{size:"small",onClick:v[2]||(v[2]=p=>b(u)("next-month"))},{default:le(()=>[nr(me(b(f)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):ce("v-if",!0)])],2),b(c).length===0?(N(),U("div",{key:0,class:H(b(a).e("body"))},[J(SU,{date:b(o),"selected-day":b(l),onPick:b(s)},Bl({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:le(p=>[h.$slots["date-cell"]?ye(h.$slots,"date-cell",Rs(Ut({key:0},p))):ye(h.$slots,"dateCell",Rs(Ut({key:1},p)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(N(),U("div",{key:1,class:H(b(a).e("body"))},[(N(!0),U(Be,null,ht(b(c),(p,g)=>(N(),he(SU,{key:g,date:p[0],"selected-day":b(l),range:p,"hide-header":g!==0,onPick:b(s)},Bl({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:le(m=>[h.$slots["date-cell"]?ye(h.$slots,"date-cell",Rs(Ut({key:0},m))):ye(h.$slots,"dateCell",Rs(Ut({key:1},m)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var IKe=ke(LKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const RKe=kt(IKe),OKe=Oe({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:fe([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),kKe=te({name:"ElCard"}),NKe=te({...kKe,props:OKe,setup(e){const t=Ce("card");return(r,n)=>(N(),U("div",{class:H([b(t).b(),b(t).is(`${r.shadow}-shadow`)])},[r.$slots.header||r.header?(N(),U("div",{key:0,class:H(b(t).e("header"))},[ye(r.$slots,"header",{},()=>[nr(me(r.header),1)])],2)):ce("v-if",!0),V("div",{class:H([b(t).e("body"),r.bodyClass]),style:Xe(r.bodyStyle)},[ye(r.$slots,"default")],6),r.$slots.footer||r.footer?(N(),U("div",{key:1,class:H(b(t).e("footer"))},[ye(r.$slots,"footer",{},()=>[nr(me(r.footer),1)])],2)):ce("v-if",!0)],2))}});var BKe=ke(NKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const FKe=kt(BKe),VKe=Oe({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:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),zKe={change:(e,t)=>[e,t].every(ct)},pre=Symbol("carouselContextKey"),xU=300,HKe=(e,t,r)=>{const{children:n,addChild:a,removeChild:i}=_3(It(),"ElCarouselItem"),o=$a(),s=G(-1),l=G(null),u=G(!1),c=G(),f=G(0),d=G(!0),h=F(()=>e.arrow!=="never"&&!b(g)),v=F(()=>n.value.some(X=>X.props.label.toString().length>0)),p=F(()=>e.type==="card"),g=F(()=>e.direction==="vertical"),m=F(()=>e.height!=="auto"?{height:e.height}:{height:`${f.value}px`,overflow:"hidden"}),y=Eh(X=>{A(X)},xU,{trailing:!0}),_=Eh(X=>{O(X)},xU),w=X=>d.value?s.value<=1?X<=1:X>1:!0;function x(){l.value&&(clearInterval(l.value),l.value=null)}function S(){e.interval<=0||!e.autoplay||l.value||(l.value=setInterval(()=>T(),e.interval))}const T=()=>{s.valueK.props.name===X);ee.length>0&&(X=n.value.indexOf(ee[0]))}if(X=Number(X),Number.isNaN(X)||X!==Math.floor(X))return;const Q=n.value.length,se=s.value;X<0?s.value=e.loop?Q-1:0:X>=Q?s.value=e.loop?0:Q-1:s.value=X,se===s.value&&C(se),k()}function C(X){n.value.forEach((Q,se)=>{Q.translateItem(se,s.value,X)})}function M(X,Q){var se,ee,K,Z;const ne=b(n),re=ne.length;if(re===0||!X.states.inStage)return!1;const ie=Q+1,Y=Q-1,q=re-1,oe=ne[q].states.active,ve=ne[0].states.active,_e=(ee=(se=ne[ie])==null?void 0:se.states)==null?void 0:ee.active,ge=(Z=(K=ne[Y])==null?void 0:K.states)==null?void 0:Z.active;return Q===q&&ve||_e?"left":Q===0&&oe||ge?"right":!1}function E(){u.value=!0,e.pauseOnHover&&x()}function D(){u.value=!1,S()}function P(X){b(g)||n.value.forEach((Q,se)=>{X===M(Q,se)&&(Q.states.hover=!0)})}function L(){b(g)||n.value.forEach(X=>{X.states.hover=!1})}function I(X){s.value=X}function O(X){e.trigger==="hover"&&X!==s.value&&(s.value=X)}function R(){A(s.value-1)}function B(){A(s.value+1)}function k(){x(),e.pauseOnHover||S()}function z(X){e.height==="auto"&&(f.value=X)}function $(){var X;const Q=(X=o.default)==null?void 0:X.call(o);if(!Q)return null;const se=Mh(Q),ee="ElCarouselItem",K=se.filter(Z=>hn(Z)&&Z.type.name===ee);return(K==null?void 0:K.length)===2&&e.loop&&!p.value?(d.value=!0,K):(d.value=!1,null)}Ae(()=>s.value,(X,Q)=>{C(Q),d.value&&(X=X%2,Q=Q%2),Q>-1&&t("change",X,Q)}),Ae(()=>e.autoplay,X=>{X?S():x()}),Ae(()=>e.loop,()=>{A(s.value)}),Ae(()=>e.interval,()=>{k()});const j=yr();return xt(()=>{Ae(()=>n.value,()=>{n.value.length>0&&A(e.initialIndex)},{immediate:!0}),j.value=di(c.value,()=>{C()}),S()}),un(()=>{x(),c.value&&j.value&&j.value.stop()}),Wt(pre,{root:c,isCardType:p,isVertical:g,items:n,loop:e.loop,addItem:a,removeItem:i,setActiveItem:A,setContainerHeight:z}),{root:c,activeIndex:s,arrowDisplay:h,hasLabel:v,hover:u,isCardType:p,items:n,isVertical:g,containerStyle:m,isItemsTwoLength:d,handleButtonEnter:P,handleButtonLeave:L,handleIndicatorClick:I,handleMouseEnter:E,handleMouseLeave:D,setActiveItem:A,prev:R,next:B,PlaceholderItem:$,isTwoLengthShow:w,throttledArrowClick:y,throttledIndicatorHover:_}},GKe=["onMouseenter","onClick"],UKe={key:0},$Ke="ElCarousel",WKe=te({name:$Ke}),YKe=te({...WKe,props:VKe,emits:zKe,setup(e,{expose:t,emit:r}){const n=e,{root:a,activeIndex:i,arrowDisplay:o,hasLabel:s,hover:l,isCardType:u,items:c,isVertical:f,containerStyle:d,handleButtonEnter:h,handleButtonLeave:v,handleIndicatorClick:p,handleMouseEnter:g,handleMouseLeave:m,setActiveItem:y,prev:_,next:w,PlaceholderItem:x,isTwoLengthShow:S,throttledArrowClick:T,throttledIndicatorHover:A}=HKe(n,r),C=Ce("carousel"),M=F(()=>{const D=[C.b(),C.m(n.direction)];return b(u)&&D.push(C.m("card")),D}),E=F(()=>{const D=[C.e("indicators"),C.em("indicators",n.direction)];return b(s)&&D.push(C.em("indicators","labels")),n.indicatorPosition==="outside"&&D.push(C.em("indicators","outside")),b(f)&&D.push(C.em("indicators","right")),D});return t({setActiveItem:y,prev:_,next:w}),(D,P)=>(N(),U("div",{ref_key:"root",ref:a,class:H(b(M)),onMouseenter:P[6]||(P[6]=it((...L)=>b(g)&&b(g)(...L),["stop"])),onMouseleave:P[7]||(P[7]=it((...L)=>b(m)&&b(m)(...L),["stop"]))},[V("div",{class:H(b(C).e("container")),style:Xe(b(d))},[b(o)?(N(),he(Yn,{key:0,name:"carousel-arrow-left",persisted:""},{default:le(()=>[Ct(V("button",{type:"button",class:H([b(C).e("arrow"),b(C).em("arrow","left")]),onMouseenter:P[0]||(P[0]=L=>b(h)("left")),onMouseleave:P[1]||(P[1]=(...L)=>b(v)&&b(v)(...L)),onClick:P[2]||(P[2]=it(L=>b(T)(b(i)-1),["stop"]))},[J(b(Ze),null,{default:le(()=>[J(b(Tf))]),_:1})],34),[[hr,(D.arrow==="always"||b(l))&&(n.loop||b(i)>0)]])]),_:1})):ce("v-if",!0),b(o)?(N(),he(Yn,{key:1,name:"carousel-arrow-right",persisted:""},{default:le(()=>[Ct(V("button",{type:"button",class:H([b(C).e("arrow"),b(C).em("arrow","right")]),onMouseenter:P[3]||(P[3]=L=>b(h)("right")),onMouseleave:P[4]||(P[4]=(...L)=>b(v)&&b(v)(...L)),onClick:P[5]||(P[5]=it(L=>b(T)(b(i)+1),["stop"]))},[J(b(Ze),null,{default:le(()=>[J(b(Mi))]),_:1})],34),[[hr,(D.arrow==="always"||b(l))&&(n.loop||b(i)Ct((N(),U("li",{key:I,class:H([b(C).e("indicator"),b(C).em("indicator",D.direction),b(C).is("active",I===b(i))]),onMouseenter:O=>b(A)(I),onClick:it(O=>b(p)(I),["stop"])},[V("button",{class:H(b(C).e("button"))},[b(s)?(N(),U("span",UKe,me(L.props.label),1)):ce("v-if",!0)],2)],42,GKe)),[[hr,b(S)(I)]])),128))],2)):ce("v-if",!0)],34))}});var jKe=ke(YKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const KKe=Oe({name:{type:String,default:""},label:{type:[String,Number],default:""}}),XKe=(e,t)=>{const r=Ye(pre),n=It(),a=.83,i=G(),o=G(!1),s=G(0),l=G(1),u=G(!1),c=G(!1),f=G(!1),d=G(!1),{isCardType:h,isVertical:v}=r;function p(w,x,S){const T=S-1,A=x-1,C=x+1,M=S/2;return x===0&&w===T?-1:x===T&&w===0?S:w=M?S+1:w>C&&w-x>=M?-2:w}function g(w,x){var S,T;const A=b(v)?((S=r.root.value)==null?void 0:S.offsetHeight)||0:((T=r.root.value)==null?void 0:T.offsetWidth)||0;return f.value?A*((2-a)*(w-x)+1)/4:w{var T;const A=b(h),C=(T=r.items.value.length)!=null?T:Number.NaN,M=w===x;!A&&!oa(S)&&(d.value=M||w===S),!M&&C>2&&r.loop&&(w=p(w,x,C));const E=b(v);u.value=M,A?(f.value=Math.round(Math.abs(w-x))<=1,s.value=g(w,x),l.value=b(u)?1:a):s.value=m(w,x,E),c.value=!0,M&&i.value&&r.setContainerHeight(i.value.offsetHeight)};function _(){if(r&&b(h)){const w=r.items.value.findIndex(({uid:x})=>x===n.uid);r.setActiveItem(w)}}return xt(()=>{r.addItem({props:e,states:Ar({hover:o,translate:s,scale:l,active:u,ready:c,inStage:f,animating:d}),uid:n.uid,translateItem:y})}),Xl(()=>{r.removeItem(n.uid)}),{carouselItemRef:i,active:u,animating:d,hover:o,inStage:f,isVertical:v,translate:s,isCardType:h,scale:l,ready:c,handleItemClick:_}},ZKe=te({name:"ElCarouselItem"}),qKe=te({...ZKe,props:KKe,setup(e){const t=e,r=Ce("carousel"),{carouselItemRef:n,active:a,animating:i,hover:o,inStage:s,isVertical:l,translate:u,isCardType:c,scale:f,ready:d,handleItemClick:h}=XKe(t),v=F(()=>{const g=`${`translate${b(l)?"Y":"X"}`}(${b(u)}px)`,m=`scale(${b(f)})`;return{transform:[g,m].join(" ")}});return(p,g)=>Ct((N(),U("div",{ref_key:"carouselItemRef",ref:n,class:H([b(r).e("item"),b(r).is("active",b(a)),b(r).is("in-stage",b(s)),b(r).is("hover",b(o)),b(r).is("animating",b(i)),{[b(r).em("item","card")]:b(c),[b(r).em("item","card-vertical")]:b(c)&&b(l)}]),style:Xe(b(v)),onClick:g[0]||(g[0]=(...m)=>b(h)&&b(h)(...m))},[b(c)?Ct((N(),U("div",{key:0,class:H(b(r).e("mask"))},null,2)),[[hr,!b(a)]]):ce("v-if",!0),ye(p.$slots,"default")],6)),[[hr,b(d)]])}});var gre=ke(qKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const QKe=kt(jKe,{CarouselItem:gre}),JKe=Pn(gre),mre={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Ga,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},yre={[Nt]:e=>wt(e)||ct(e)||la(e),change:e=>wt(e)||ct(e)||la(e)},om=Symbol("checkboxGroupContextKey"),eXe=({model:e,isChecked:t})=>{const r=Ye(om,void 0),n=F(()=>{var i,o;const s=(i=r==null?void 0:r.max)==null?void 0:i.value,l=(o=r==null?void 0:r.min)==null?void 0:o.value;return!oa(s)&&e.value.length>=s&&!t.value||!oa(l)&&e.value.length<=l&&t.value});return{isDisabled:ho(F(()=>(r==null?void 0:r.disabled.value)||n.value)),isLimitDisabled:n}},tXe=(e,{model:t,isLimitExceeded:r,hasOwnLabel:n,isDisabled:a,isLabeledByFormItem:i})=>{const o=Ye(om,void 0),{formItem:s}=Vi(),{emit:l}=It();function u(v){var p,g;return v===e.trueLabel||v===!0?(p=e.trueLabel)!=null?p:!0:(g=e.falseLabel)!=null?g:!1}function c(v,p){l("change",u(v),p)}function f(v){if(r.value)return;const p=v.target;l("change",u(p.checked),v)}async function d(v){r.value||!n.value&&!a.value&&i.value&&(v.composedPath().some(m=>m.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await qe(),c(t.value,v)))}const h=F(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return Ae(()=>e.modelValue,()=>{h.value&&(s==null||s.validate("change").catch(v=>void 0))}),{handleChange:f,onClickRoot:d}},rXe=e=>{const t=G(!1),{emit:r}=It(),n=Ye(om,void 0),a=F(()=>oa(n)===!1),i=G(!1);return{model:F({get(){var s,l;return a.value?(s=n==null?void 0:n.modelValue)==null?void 0:s.value:(l=e.modelValue)!=null?l:t.value},set(s){var l,u;a.value&&We(s)?(i.value=((l=n==null?void 0:n.max)==null?void 0:l.value)!==void 0&&s.length>(n==null?void 0:n.max.value),i.value===!1&&((u=n==null?void 0:n.changeEvent)==null||u.call(n,s))):(r(Nt,s),t.value=s)}}),isGroup:a,isLimitExceeded:i}},nXe=(e,t,{model:r})=>{const n=Ye(om,void 0),a=G(!1),i=F(()=>{const u=r.value;return la(u)?u:We(u)?Vt(e.label)?u.map(Er).some(c=>to(c,e.label)):u.map(Er).includes(e.label):u!=null?u===e.trueLabel:!!u}),o=ca(F(()=>{var u;return(u=n==null?void 0:n.size)==null?void 0:u.value}),{prop:!0}),s=ca(F(()=>{var u;return(u=n==null?void 0:n.size)==null?void 0:u.value})),l=F(()=>!!t.default||!Qn(e.label));return{checkboxButtonSize:o,isChecked:i,isFocused:a,checkboxSize:s,hasOwnLabel:l}},aXe=(e,{model:t})=>{function r(){We(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&r()},_re=(e,t)=>{const{formItem:r}=Vi(),{model:n,isGroup:a,isLimitExceeded:i}=rXe(e),{isFocused:o,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c}=nXe(e,t,{model:n}),{isDisabled:f}=eXe({model:n,isChecked:s}),{inputId:d,isLabeledByFormItem:h}=$f(e,{formItemContext:r,disableIdGeneration:c,disableIdManagement:a}),{handleChange:v,onClickRoot:p}=tXe(e,{model:n,isLimitExceeded:i,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:h});return aXe(e,{model:n}),{inputId:d,isLabeledByFormItem:h,isChecked:s,isDisabled:f,isFocused:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:n,handleChange:v,onClickRoot:p}},iXe=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],oXe=["id","indeterminate","disabled","value","name","tabindex"],sXe=te({name:"ElCheckbox"}),lXe=te({...sXe,props:mre,emits:yre,setup(e){const t=e,r=$a(),{inputId:n,isLabeledByFormItem:a,isChecked:i,isDisabled:o,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:c,handleChange:f,onClickRoot:d}=_re(t,r),h=Ce("checkbox"),v=F(()=>[h.b(),h.m(l.value),h.is("disabled",o.value),h.is("bordered",t.border),h.is("checked",i.value)]),p=F(()=>[h.e("input"),h.is("disabled",o.value),h.is("checked",i.value),h.is("indeterminate",t.indeterminate),h.is("focus",s.value)]);return(g,m)=>(N(),he(Ft(!b(u)&&b(a)?"span":"label"),{class:H(b(v)),"aria-controls":g.indeterminate?g.controls:null,onClick:b(d)},{default:le(()=>[V("span",{class:H(b(p))},[g.trueLabel||g.falseLabel?Ct((N(),U("input",{key:0,id:b(n),"onUpdate:modelValue":m[0]||(m[0]=y=>Qr(c)?c.value=y:null),class:H(b(h).e("original")),type:"checkbox",indeterminate:g.indeterminate,name:g.name,tabindex:g.tabindex,disabled:b(o),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:m[1]||(m[1]=(...y)=>b(f)&&b(f)(...y)),onFocus:m[2]||(m[2]=y=>s.value=!0),onBlur:m[3]||(m[3]=y=>s.value=!1),onClick:m[4]||(m[4]=it(()=>{},["stop"]))},null,42,iXe)),[[qS,b(c)]]):Ct((N(),U("input",{key:1,id:b(n),"onUpdate:modelValue":m[5]||(m[5]=y=>Qr(c)?c.value=y:null),class:H(b(h).e("original")),type:"checkbox",indeterminate:g.indeterminate,disabled:b(o),value:g.label,name:g.name,tabindex:g.tabindex,onChange:m[6]||(m[6]=(...y)=>b(f)&&b(f)(...y)),onFocus:m[7]||(m[7]=y=>s.value=!0),onBlur:m[8]||(m[8]=y=>s.value=!1),onClick:m[9]||(m[9]=it(()=>{},["stop"]))},null,42,oXe)),[[qS,b(c)]]),V("span",{class:H(b(h).e("inner"))},null,2)],2),b(u)?(N(),U("span",{key:0,class:H(b(h).e("label"))},[ye(g.$slots,"default"),g.$slots.default?ce("v-if",!0):(N(),U(Be,{key:0},[nr(me(g.label),1)],64))],2)):ce("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var uXe=ke(lXe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const cXe=["name","tabindex","disabled","true-value","false-value"],fXe=["name","tabindex","disabled","value"],dXe=te({name:"ElCheckboxButton"}),hXe=te({...dXe,props:mre,emits:yre,setup(e){const t=e,r=$a(),{isFocused:n,isChecked:a,isDisabled:i,checkboxButtonSize:o,model:s,handleChange:l}=_re(t,r),u=Ye(om,void 0),c=Ce("checkbox"),f=F(()=>{var h,v,p,g;const m=(v=(h=u==null?void 0:u.fill)==null?void 0:h.value)!=null?v:"";return{backgroundColor:m,borderColor:m,color:(g=(p=u==null?void 0:u.textColor)==null?void 0:p.value)!=null?g:"",boxShadow:m?`-1px 0 0 0 ${m}`:void 0}}),d=F(()=>[c.b("button"),c.bm("button",o.value),c.is("disabled",i.value),c.is("checked",a.value),c.is("focus",n.value)]);return(h,v)=>(N(),U("label",{class:H(b(d))},[h.trueLabel||h.falseLabel?Ct((N(),U("input",{key:0,"onUpdate:modelValue":v[0]||(v[0]=p=>Qr(s)?s.value=p:null),class:H(b(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:b(i),"true-value":h.trueLabel,"false-value":h.falseLabel,onChange:v[1]||(v[1]=(...p)=>b(l)&&b(l)(...p)),onFocus:v[2]||(v[2]=p=>n.value=!0),onBlur:v[3]||(v[3]=p=>n.value=!1),onClick:v[4]||(v[4]=it(()=>{},["stop"]))},null,42,cXe)),[[qS,b(s)]]):Ct((N(),U("input",{key:1,"onUpdate:modelValue":v[5]||(v[5]=p=>Qr(s)?s.value=p:null),class:H(b(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:b(i),value:h.label,onChange:v[6]||(v[6]=(...p)=>b(l)&&b(l)(...p)),onFocus:v[7]||(v[7]=p=>n.value=!0),onBlur:v[8]||(v[8]=p=>n.value=!1),onClick:v[9]||(v[9]=it(()=>{},["stop"]))},null,42,fXe)),[[qS,b(s)]]),h.$slots.default||h.label?(N(),U("span",{key:2,class:H(b(c).be("button","inner")),style:Xe(b(a)?b(f):void 0)},[ye(h.$slots,"default",{},()=>[nr(me(h.label),1)])],6)):ce("v-if",!0)],2))}});var bre=ke(hXe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const vXe=Oe({modelValue:{type:fe(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Ga,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),pXe={[Nt]:e=>We(e),change:e=>We(e)},gXe=te({name:"ElCheckboxGroup"}),mXe=te({...gXe,props:vXe,emits:pXe,setup(e,{emit:t}){const r=e,n=Ce("checkbox"),{formItem:a}=Vi(),{inputId:i,isLabeledByFormItem:o}=$f(r,{formItemContext:a}),s=async u=>{t(Nt,u),await qe(),t("change",u)},l=F({get(){return r.modelValue},set(u){s(u)}});return Wt(om,{...Du(Da(r),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),Ae(()=>r.modelValue,()=>{r.validateEvent&&(a==null||a.validate("change").catch(u=>void 0))}),(u,c)=>{var f;return N(),he(Ft(u.tag),{id:b(i),class:H(b(n).b("group")),role:"group","aria-label":b(o)?void 0:u.label||"checkbox-group","aria-labelledby":b(o)?(f=b(a))==null?void 0:f.labelId:void 0},{default:le(()=>[ye(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var wre=ke(mXe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const hs=kt(uXe,{CheckboxButton:bre,CheckboxGroup:wre}),yXe=Pn(bre),Sre=Pn(wre),xre=Oe({size:Ga,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),_Xe=Oe({...xre,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),Are={[Nt]:e=>wt(e)||ct(e)||la(e),[ln]:e=>wt(e)||ct(e)||la(e)},Tre=Symbol("radioGroupKey"),Cre=(e,t)=>{const r=G(),n=Ye(Tre,void 0),a=F(()=>!!n),i=F({get(){return a.value?n.modelValue:e.modelValue},set(c){a.value?n.changeEvent(c):t&&t(Nt,c),r.value.checked=e.modelValue===e.label}}),o=ca(F(()=>n==null?void 0:n.size)),s=ho(F(()=>n==null?void 0:n.disabled)),l=G(!1),u=F(()=>s.value||a.value&&i.value!==e.label?-1:0);return{radioRef:r,isGroup:a,radioGroup:n,focus:l,size:o,disabled:s,tabIndex:u,modelValue:i}},bXe=["value","name","disabled"],wXe=te({name:"ElRadio"}),SXe=te({...wXe,props:_Xe,emits:Are,setup(e,{emit:t}){const r=e,n=Ce("radio"),{radioRef:a,radioGroup:i,focus:o,size:s,disabled:l,modelValue:u}=Cre(r,t);function c(){qe(()=>t("change",u.value))}return(f,d)=>{var h;return N(),U("label",{class:H([b(n).b(),b(n).is("disabled",b(l)),b(n).is("focus",b(o)),b(n).is("bordered",f.border),b(n).is("checked",b(u)===f.label),b(n).m(b(s))])},[V("span",{class:H([b(n).e("input"),b(n).is("disabled",b(l)),b(n).is("checked",b(u)===f.label)])},[Ct(V("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":d[0]||(d[0]=v=>Qr(u)?u.value=v:null),class:H(b(n).e("original")),value:f.label,name:f.name||((h=b(i))==null?void 0:h.name),disabled:b(l),type:"radio",onFocus:d[1]||(d[1]=v=>o.value=!0),onBlur:d[2]||(d[2]=v=>o.value=!1),onChange:c,onClick:d[3]||(d[3]=it(()=>{},["stop"]))},null,42,bXe),[[J9,b(u)]]),V("span",{class:H(b(n).e("inner"))},null,2)],2),V("span",{class:H(b(n).e("label")),onKeydown:d[4]||(d[4]=it(()=>{},["stop"]))},[ye(f.$slots,"default",{},()=>[nr(me(f.label),1)])],34)],2)}}});var xXe=ke(SXe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const AXe=Oe({...xre,name:{type:String,default:""}}),TXe=["value","name","disabled"],CXe=te({name:"ElRadioButton"}),EXe=te({...CXe,props:AXe,setup(e){const t=e,r=Ce("radio"),{radioRef:n,focus:a,size:i,disabled:o,modelValue:s,radioGroup:l}=Cre(t),u=F(()=>({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(c,f)=>{var d;return N(),U("label",{class:H([b(r).b("button"),b(r).is("active",b(s)===c.label),b(r).is("disabled",b(o)),b(r).is("focus",b(a)),b(r).bm("button",b(i))])},[Ct(V("input",{ref_key:"radioRef",ref:n,"onUpdate:modelValue":f[0]||(f[0]=h=>Qr(s)?s.value=h:null),class:H(b(r).be("button","original-radio")),value:c.label,type:"radio",name:c.name||((d=b(l))==null?void 0:d.name),disabled:b(o),onFocus:f[1]||(f[1]=h=>a.value=!0),onBlur:f[2]||(f[2]=h=>a.value=!1),onClick:f[3]||(f[3]=it(()=>{},["stop"]))},null,42,TXe),[[J9,b(s)]]),V("span",{class:H(b(r).be("button","inner")),style:Xe(b(s)===c.label?b(u):{}),onKeydown:f[4]||(f[4]=it(()=>{},["stop"]))},[ye(c.$slots,"default",{},()=>[nr(me(c.label),1)])],38)],2)}}});var Ere=ke(EXe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const MXe=Oe({id:{type:String,default:void 0},size:Ga,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),DXe=Are,PXe=["id","aria-label","aria-labelledby"],LXe=te({name:"ElRadioGroup"}),IXe=te({...LXe,props:MXe,emits:DXe,setup(e,{emit:t}){const r=e,n=Ce("radio"),a=co(),i=G(),{formItem:o}=Vi(),{inputId:s,isLabeledByFormItem:l}=$f(r,{formItemContext:o}),u=f=>{t(Nt,f),qe(()=>t("change",f))};xt(()=>{const f=i.value.querySelectorAll("[type=radio]"),d=f[0];!Array.from(f).some(h=>h.checked)&&d&&(d.tabIndex=0)});const c=F(()=>r.name||a.value);return Wt(Tre,Ar({...Da(r),changeEvent:u,name:c})),Ae(()=>r.modelValue,()=>{r.validateEvent&&(o==null||o.validate("change").catch(f=>void 0))}),(f,d)=>(N(),U("div",{id:b(s),ref_key:"radioGroupRef",ref:i,class:H(b(n).b("group")),role:"radiogroup","aria-label":b(l)?void 0:f.label||"radio-group","aria-labelledby":b(l)?b(o).labelId:void 0},[ye(f.$slots,"default")],10,PXe))}});var Mre=ke(IXe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const Dre=kt(xXe,{RadioButton:Ere,RadioGroup:Mre}),RXe=Pn(Mre),OXe=Pn(Ere);var kXe=te({name:"NodeContent",setup(){return{ns:Ce("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:r}=this.$parent,{data:n,label:a}=t,{renderLabelFn:i}=r;return et("span",{class:e.e("label")},i?i({node:t,data:n}):a)}});const E3=Symbol(),NXe=te({name:"ElCascaderNode",components:{ElCheckbox:hs,ElRadio:Dre,NodeContent:kXe,ElIcon:Ze,Check:P1,Loading:Hf,ArrowRight:Mi},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const r=Ye(E3),n=Ce("cascader-node"),a=F(()=>r.isHoverMenu),i=F(()=>r.config.multiple),o=F(()=>r.config.checkStrictly),s=F(()=>{var S;return(S=r.checkedNodes[0])==null?void 0:S.uid}),l=F(()=>e.node.isDisabled),u=F(()=>e.node.isLeaf),c=F(()=>o.value&&!u.value||!l.value),f=F(()=>h(r.expandingNode)),d=F(()=>o.value&&r.checkedNodes.some(h)),h=S=>{var T;const{level:A,uid:C}=e.node;return((T=S==null?void 0:S.pathNodes[A-1])==null?void 0:T.uid)===C},v=()=>{f.value||r.expandNode(e.node)},p=S=>{const{node:T}=e;S!==T.checked&&r.handleCheckChange(T,S)},g=()=>{r.lazyLoad(e.node,()=>{u.value||v()})},m=S=>{a.value&&(y(),!u.value&&t("expand",S))},y=()=>{const{node:S}=e;!c.value||S.loading||(S.loaded?v():g())},_=()=>{a.value&&!u.value||(u.value&&!l.value&&!o.value&&!i.value?x(!0):y())},w=S=>{o.value?(p(S),e.node.loaded&&v()):x(S)},x=S=>{e.node.loaded?(p(S),!o.value&&v()):g()};return{panel:r,isHoverMenu:a,multiple:i,checkStrictly:o,checkedNodeId:s,isDisabled:l,isLeaf:u,expandable:c,inExpandingPath:f,inCheckedPath:d,ns:n,handleHoverExpand:m,handleExpand:y,handleClick:_,handleCheck:x,handleSelectCheck:w}}}),BXe=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],FXe=V("span",null,null,-1);function VXe(e,t,r,n,a,i){const o=bt("el-checkbox"),s=bt("el-radio"),l=bt("check"),u=bt("el-icon"),c=bt("node-content"),f=bt("loading"),d=bt("arrow-right");return N(),U("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:H([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:t[2]||(t[2]=(...h)=>e.handleHoverExpand&&e.handleHoverExpand(...h)),onFocus:t[3]||(t[3]=(...h)=>e.handleHoverExpand&&e.handleHoverExpand(...h)),onClick:t[4]||(t[4]=(...h)=>e.handleClick&&e.handleClick(...h))},[ce(" prefix "),e.multiple?(N(),he(o,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=it(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?(N(),he(s,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=it(()=>{},["stop"]))},{default:le(()=>[ce(` Add an empty element to avoid render label, do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485 `),FXe]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(N(),he(u,{key:2,class:H(e.ns.e("prefix"))},{default:le(()=>[J(l)]),_:1},8,["class"])):ce("v-if",!0),ce(" content "),J(c),ce(" postfix "),e.isLeaf?ce("v-if",!0):(N(),U(Be,{key:3},[e.node.loading?(N(),he(u,{key:0,class:H([e.ns.is("loading"),e.ns.e("postfix")])},{default:le(()=>[J(f)]),_:1},8,["class"])):(N(),he(u,{key:1,class:H(["arrow-right",e.ns.e("postfix")])},{default:le(()=>[J(d)]),_:1},8,["class"]))],64))],42,BXe)}var zXe=ke(NXe,[["render",VXe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const HXe=te({name:"ElCascaderMenu",components:{Loading:Hf,ElIcon:Ze,ElScrollbar:ic,ElCascaderNode:zXe},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=It(),r=Ce("cascader-menu"),{t:n}=fr(),a=ST();let i=null,o=null;const s=Ye(E3),l=G(null),u=F(()=>!e.nodes.length),c=F(()=>!s.initialLoaded),f=F(()=>`cascader-menu-${a}-${e.index}`),d=g=>{i=g.target},h=g=>{if(!(!s.isHoverMenu||!i||!l.value))if(i.contains(g.target)){v();const m=t.vnode.el,{left:y}=m.getBoundingClientRect(),{offsetWidth:_,offsetHeight:w}=m,x=g.clientX-y,S=i.offsetTop,T=S+i.offsetHeight;l.value.innerHTML=` `}else o||(o=window.setTimeout(p,s.config.hoverThreshold))},v=()=>{o&&(clearTimeout(o),o=null)},p=()=>{l.value&&(l.value.innerHTML="",v())};return{ns:r,panel:s,hoverZone:l,isEmpty:u,isLoading:c,menuId:f,t:n,handleExpand:d,handleMouseMove:h,clearHoverZone:p}}});function GXe(e,t,r,n,a,i){const o=bt("el-cascader-node"),s=bt("loading"),l=bt("el-icon"),u=bt("el-scrollbar");return N(),he(u,{key:e.menuId,tag:"ul",role:"menu",class:H(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:le(()=>{var c;return[(N(!0),U(Be,null,ht(e.nodes,f=>(N(),he(o,{key:f.uid,node:f,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(N(),U("div",{key:0,class:H(e.ns.e("empty-text"))},[J(l,{size:"14",class:H(e.ns.is("loading"))},{default:le(()=>[J(s)]),_:1},8,["class"]),nr(" "+me(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(N(),U("div",{key:1,class:H(e.ns.e("empty-text"))},me(e.t("el.cascader.noData")),3)):(c=e.panel)!=null&&c.isHoverMenu?(N(),U("svg",{key:2,ref:"hoverZone",class:H(e.ns.e("hover-zone"))},null,2)):ce("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var UXe=ke(HXe,[["render",GXe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let $Xe=0;const WXe=e=>{const t=[e];let{parent:r}=e;for(;r;)t.unshift(r),r=r.parent;return t};let _I=class bI{constructor(t,r,n,a=!1){this.data=t,this.config=r,this.parent=n,this.root=a,this.uid=$Xe++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:o,children:s}=r,l=t[s],u=WXe(this);this.level=a?0:n?n.level+1:1,this.value=t[i],this.label=t[o],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 bI(c,r,this)),this.loaded=!r.lazy||this.isLeaf||!qo(l)}get isDisabled(){const{data:t,parent:r,config:n}=this,{disabled:a,checkStrictly:i}=n;return(dt(a)?a(t,this):!!t[a])||!i&&(r==null?void 0:r.isDisabled)}get isLeaf(){const{data:t,config:r,childrenData:n,loaded:a}=this,{lazy:i,leaf:o}=r,s=dt(o)?o(t,this):t[o];return oa(s)?i&&!a?!1:!(Array.isArray(n)&&n.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:r,children:n}=this,a=new bI(t,this.config,this);return Array.isArray(r)?r.push(t):this.childrenData=[t],n.push(a),a}calcText(t,r){const n=t?this.pathLabels.join(r):this.label;return this.text=n,n}broadcast(t,...r){const n=`onParent${Tl(t)}`;this.children.forEach(a=>{a&&(a.broadcast(t,...r),a[n]&&a[n](...r))})}emit(t,...r){const{parent:n}=this,a=`onChild${Tl(t)}`;n&&(n[a]&&n[a](...r),n.emit(t,...r))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,r=t.filter(a=>!a.isDisabled),n=r.length?r.every(a=>a.checked):!1;this.setCheckState(n)}setCheckState(t){const r=this.children.length,n=this.children.reduce((a,i)=>{const o=i.checked?1:i.indeterminate?.5:0;return a+o},0);this.checked=this.loaded&&this.children.filter(a=>!a.isDisabled).every(a=>a.loaded&&a.checked)&&t,this.indeterminate=this.loaded&&n!==r&&n>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:r,multiple:n}=this.config;r||!n?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const wI=(e,t)=>e.reduce((r,n)=>(n.isLeaf?r.push(n):(!t&&r.push(n),r=r.concat(wI(n.children,t))),r),[]);class AU{constructor(t,r){this.config=r;const n=(t||[]).map(a=>new _I(a,this.config));this.nodes=n,this.allNodes=wI(n,!1),this.leafNodes=wI(n,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,r){const n=r?r.appendChild(t):new _I(t,this.config);r||this.nodes.push(n),this.allNodes.push(n),n.isLeaf&&this.leafNodes.push(n)}appendNodes(t,r){t.forEach(n=>this.appendNode(n,r))}getNodeByValue(t,r=!1){return!t&&t!==0?null:this.getFlattedNodes(r).find(a=>to(a.value,t)||to(a.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:n,level:a})=>to(t.value,n)&&t.level===a)||null}}const Pre=Oe({modelValue:{type:fe([Number,String,Array])},options:{type:fe(Array),default:()=>[]},props:{type:fe(Object),default:()=>({})}}),YXe={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:zr,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},jXe=e=>F(()=>({...YXe,...e.props})),TU=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},KXe=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():BJ(e)&&e.click()},XXe=(e,t)=>{const r=t.slice(0),n=r.map(i=>i.uid),a=e.reduce((i,o)=>{const s=n.indexOf(o.uid);return s>-1&&(i.push(o),r.splice(s,1),n.splice(s,1)),i},[]);return a.push(...r),a},ZXe=te({name:"ElCascaderPanel",components:{ElCascaderMenu:UXe},props:{...Pre,border:{type:Boolean,default:!0},renderLabel:Function},emits:[Nt,ln,"close","expand-change"],setup(e,{emit:t,slots:r}){let n=!1;const a=Ce("cascader"),i=jXe(e);let o=null;const s=G(!0),l=G([]),u=G(null),c=G([]),f=G(null),d=G([]),h=F(()=>i.value.expandTrigger==="hover"),v=F(()=>e.renderLabel||r.default),p=()=>{const{options:D}=e,P=i.value;n=!1,o=new AU(D,P),c.value=[o.getNodes()],P.lazy&&qo(e.options)?(s.value=!1,g(void 0,L=>{L&&(o=new AU(L,P),c.value=[o.getNodes()]),s.value=!0,A(!1,!0)})):A(!1,!0)},g=(D,P)=>{const L=i.value;D=D||new _I({},L,void 0,!0),D.loading=!0;const I=O=>{const R=D,B=R.root?null:R;O&&(o==null||o.appendNodes(O,B)),R.loading=!1,R.loaded=!0,R.childrenData=R.childrenData||[],P&&P(O)};L.lazyLoad(D,I)},m=(D,P)=>{var L;const{level:I}=D,O=c.value.slice(0,I);let R;D.isLeaf?R=D.pathNodes[I-2]:(R=D,O.push(D.children)),((L=f.value)==null?void 0:L.uid)!==(R==null?void 0:R.uid)&&(f.value=D,c.value=O,!P&&t("expand-change",(D==null?void 0:D.pathValues)||[]))},y=(D,P,L=!0)=>{const{checkStrictly:I,multiple:O}=i.value,R=d.value[0];n=!0,!O&&(R==null||R.doCheck(!1)),D.doCheck(P),T(),L&&!O&&!I&&t("close"),!L&&!O&&!I&&_(D)},_=D=>{D&&(D=D.parent,_(D),D&&m(D))},w=D=>o==null?void 0:o.getFlattedNodes(D),x=D=>{var P;return(P=w(D))==null?void 0:P.filter(L=>L.checked!==!1)},S=()=>{d.value.forEach(D=>D.doCheck(!1)),T(),c.value=c.value.slice(0,1),f.value=null,t("expand-change",[])},T=()=>{var D;const{checkStrictly:P,multiple:L}=i.value,I=d.value,O=x(!P),R=XXe(I,O),B=R.map(k=>k.valueByOption);d.value=R,u.value=L?B:(D=B[0])!=null?D:null},A=(D=!1,P=!1)=>{const{modelValue:L}=e,{lazy:I,multiple:O,checkStrictly:R}=i.value,B=!R;if(!(!s.value||n||!P&&to(L,u.value)))if(I&&!D){const z=TG(hGe(Nu(L))).map($=>o==null?void 0:o.getNodeByValue($)).filter($=>!!$&&!$.loaded&&!$.loading);z.length?z.forEach($=>{g($,()=>A(!1,P))}):A(!0,P)}else{const k=O?Nu(L):[L],z=TG(k.map($=>o==null?void 0:o.getNodeByValue($,B)));C(z,P),u.value=s2(L)}},C=(D,P=!0)=>{const{checkStrictly:L}=i.value,I=d.value,O=D.filter(k=>!!k&&(L||k.isLeaf)),R=o==null?void 0:o.getSameNode(f.value),B=P&&R||O[0];B?B.pathNodes.forEach(k=>m(k,!0)):f.value=null,I.forEach(k=>k.doCheck(!1)),e.props.multiple?Ar(O).forEach(k=>k.doCheck(!0)):O.forEach(k=>k.doCheck(!0)),d.value=O,qe(M)},M=()=>{ur&&l.value.forEach(D=>{const P=D==null?void 0:D.$el;if(P){const L=P.querySelector(`.${a.namespace.value}-scrollbar__wrap`),I=P.querySelector(`.${a.b("node")}.${a.is("active")}`)||P.querySelector(`.${a.b("node")}.in-active-path`);Lee(L,I)}})},E=D=>{const P=D.target,{code:L}=D;switch(L){case Qe.up:case Qe.down:{D.preventDefault();const I=L===Qe.up?-1:1;dS(FJ(P,I,`.${a.b("node")}[tabindex="-1"]`));break}case Qe.left:{D.preventDefault();const I=l.value[TU(P)-1],O=I==null?void 0:I.$el.querySelector(`.${a.b("node")}[aria-expanded="true"]`);dS(O);break}case Qe.right:{D.preventDefault();const I=l.value[TU(P)+1],O=I==null?void 0:I.$el.querySelector(`.${a.b("node")}[tabindex="-1"]`);dS(O);break}case Qe.enter:KXe(P);break}};return Wt(E3,Ar({config:i,expandingNode:f,checkedNodes:d,isHoverMenu:h,initialLoaded:s,renderLabelFn:v,lazyLoad:g,expandNode:m,handleCheckChange:y})),Ae([i,()=>e.options],p,{deep:!0,immediate:!0}),Ae(()=>e.modelValue,()=>{n=!1,A()},{deep:!0}),Ae(()=>u.value,D=>{to(D,e.modelValue)||(t(Nt,D),t(ln,D))}),M9(()=>l.value=[]),xt(()=>!qo(e.modelValue)&&A()),{ns:a,menuList:l,menus:c,checkedNodes:d,handleKeyDown:E,handleCheckChange:y,getFlattedNodes:w,getCheckedNodes:x,clearCheckedNodes:S,calculateCheckedValue:T,scrollToExpandingNode:M}}});function qXe(e,t,r,n,a,i){const o=bt("el-cascader-menu");return N(),U("div",{class:H([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...s)=>e.handleKeyDown&&e.handleKeyDown(...s))},[(N(!0),U(Be,null,ht(e.menus,(s,l)=>(N(),he(o,{key:l,ref_for:!0,ref:u=>e.menuList[l]=u,index:l,nodes:[...s]},null,8,["index","nodes"]))),128))],34)}var bS=ke(ZXe,[["render",qXe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);bS.install=e=>{e.component(bS.name,bS)};const Lre=bS,QXe=Lre,M3=Oe({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:tu,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),JXe={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},eZe=te({name:"ElTag"}),tZe=te({...eZe,props:M3,emits:JXe,setup(e,{emit:t}){const r=e,n=ca(),a=Ce("tag"),i=F(()=>{const{type:l,hit:u,effect:c,closable:f,round:d}=r;return[a.b(),a.is("closable",f),a.m(l),a.m(n.value),a.m(c),a.is("hit",u),a.is("round",d)]}),o=l=>{t("close",l)},s=l=>{t("click",l)};return(l,u)=>l.disableTransitions?(N(),U("span",{key:0,class:H(b(i)),style:Xe({backgroundColor:l.color}),onClick:s},[V("span",{class:H(b(a).e("content"))},[ye(l.$slots,"default")],2),l.closable?(N(),he(b(Ze),{key:0,class:H(b(a).e("close")),onClick:it(o,["stop"])},{default:le(()=>[J(b(el))]),_:1},8,["class","onClick"])):ce("v-if",!0)],6)):(N(),he(Yn,{key:1,name:`${b(a).namespace.value}-zoom-in-center`,appear:""},{default:le(()=>[V("span",{class:H(b(i)),style:Xe({backgroundColor:l.color}),onClick:s},[V("span",{class:H(b(a).e("content"))},[ye(l.$slots,"default")],2),l.closable?(N(),he(b(Ze),{key:0,class:H(b(a).e("close")),onClick:it(o,["stop"])},{default:le(()=>[J(b(el))]),_:1},8,["class","onClick"])):ce("v-if",!0)],6)]),_:3},8,["name"]))}});var rZe=ke(tZe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const w_=kt(rZe),nZe=Oe({...Pre,size:Ga,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:fe(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:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:fe(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:Va.teleported,tagType:{...M3.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),aZe={[Nt]:e=>!!e||e===null,[ln]:e=>!!e||e===null,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,visibleChange:e=>la(e),expandChange:e=>!!e,removeTag:e=>!!e},iZe={key:0},oZe=["placeholder","onKeydown"],sZe=["onClick"],lZe="ElCascader",uZe=te({name:lZe}),cZe=te({...uZe,props:nZe,emits:aZe,setup(e,{expose:t,emit:r}){const n=e,a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:pe})=>{const{modifiersData:de,placement:Me}=pe;["right","left","bottom","top"].includes(Me)||(de.arrow.x=35)},requires:["arrow"]}]},i=Jh();let o=0,s=0;const l=Ce("cascader"),u=Ce("input"),{t:c}=fr(),{form:f,formItem:d}=Vi(),h=G(null),v=G(null),p=G(null),g=G(null),m=G(null),y=G(!1),_=G(!1),w=G(!1),x=G(!1),S=G(""),T=G(""),A=G([]),C=G([]),M=G([]),E=G(!1),D=F(()=>i.style),P=F(()=>n.disabled||(f==null?void 0:f.disabled)),L=F(()=>n.placeholder||c("el.cascader.placeholder")),I=F(()=>T.value||A.value.length>0||E.value?"":L.value),O=ca(),R=F(()=>["small"].includes(O.value)?"small":"default"),B=F(()=>!!n.props.multiple),k=F(()=>!n.filterable||B.value),z=F(()=>B.value?T.value:S.value),$=F(()=>{var pe;return((pe=g.value)==null?void 0:pe.checkedNodes)||[]}),j=F(()=>!n.clearable||P.value||w.value||!_.value?!1:!!$.value.length),X=F(()=>{const{showAllLevels:pe,separator:de}=n,Me=$.value;return Me.length?B.value?"":Me[0].calcText(pe,de):""}),Q=F({get(){return s2(n.modelValue)},set(pe){r(Nt,pe),r(ln,pe),n.validateEvent&&(d==null||d.validate("change").catch(de=>void 0))}}),se=F(()=>[l.b(),l.m(O.value),l.is("disabled",P.value),i.class]),ee=F(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",y.value)]),K=F(()=>l.is("focus",y.value||x.value)),Z=F(()=>{var pe,de;return(de=(pe=h.value)==null?void 0:pe.popperRef)==null?void 0:de.contentRef}),ne=pe=>{var de,Me,ae;P.value||(pe=pe??!y.value,pe!==y.value&&(y.value=pe,(Me=(de=v.value)==null?void 0:de.input)==null||Me.setAttribute("aria-expanded",`${pe}`),pe?(re(),qe((ae=g.value)==null?void 0:ae.scrollToExpandingNode)):n.filterable&&He(),r("visibleChange",pe)))},re=()=>{qe(()=>{var pe;(pe=h.value)==null||pe.updatePopper()})},ie=()=>{w.value=!1},Y=pe=>{const{showAllLevels:de,separator:Me}=n;return{node:pe,key:pe.uid,text:pe.calcText(de,Me),hitState:!1,closable:!P.value&&!pe.isDisabled,isCollapseTag:!1}},q=pe=>{var de;const Me=pe.node;Me.doCheck(!1),(de=g.value)==null||de.calculateCheckedValue(),r("removeTag",Me.valueByOption)},oe=()=>{if(!B.value)return;const pe=$.value,de=[],Me=[];if(pe.forEach(ae=>Me.push(Y(ae))),C.value=Me,pe.length){pe.slice(0,n.maxCollapseTags).forEach(St=>de.push(Y(St)));const ae=pe.slice(n.maxCollapseTags),Ge=ae.length;Ge&&(n.collapseTags?de.push({key:-1,text:`+ ${Ge}`,closable:!1,isCollapseTag:!0}):ae.forEach(St=>de.push(Y(St))))}A.value=de},ve=()=>{var pe,de;const{filterMethod:Me,showAllLevels:ae,separator:Ge}=n,St=(de=(pe=g.value)==null?void 0:pe.getFlattedNodes(!n.props.checkStrictly))==null?void 0:de.filter(Kt=>Kt.isDisabled?!1:(Kt.calcText(ae,Ge),Me(Kt,z.value)));B.value&&(A.value.forEach(Kt=>{Kt.hitState=!1}),C.value.forEach(Kt=>{Kt.hitState=!1})),w.value=!0,M.value=St,re()},_e=()=>{var pe;let de;w.value&&m.value?de=m.value.$el.querySelector(`.${l.e("suggestion-item")}`):de=(pe=g.value)==null?void 0:pe.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),de&&(de.focus(),!w.value&&de.click())},ge=()=>{var pe,de;const Me=(pe=v.value)==null?void 0:pe.input,ae=p.value,Ge=(de=m.value)==null?void 0:de.$el;if(!(!ur||!Me)){if(Ge){const St=Ge.querySelector(`.${l.e("suggestion-list")}`);St.style.minWidth=`${Me.offsetWidth}px`}if(ae){const{offsetHeight:St}=ae,Kt=A.value.length>0?`${Math.max(St+6,o)}px`:`${o}px`;Me.style.height=Kt,re()}}},Le=pe=>{var de;return(de=g.value)==null?void 0:de.getCheckedNodes(pe)},Se=pe=>{re(),r("expandChange",pe)},xe=pe=>{var de;const Me=(de=pe.target)==null?void 0:de.value;if(pe.type==="compositionend")E.value=!1,qe(()=>tt(Me));else{const ae=Me[Me.length-1]||"";E.value=!bT(ae)}},Te=pe=>{if(!E.value)switch(pe.code){case Qe.enter:ne();break;case Qe.down:ne(!0),qe(_e),pe.preventDefault();break;case Qe.esc:y.value===!0&&(pe.preventDefault(),pe.stopPropagation(),ne(!1));break;case Qe.tab:ne(!1);break}},Ve=()=>{var pe;(pe=g.value)==null||pe.clearCheckedNodes(),!y.value&&n.filterable&&He(),ne(!1)},He=()=>{const{value:pe}=X;S.value=pe,T.value=pe},je=pe=>{var de,Me;const{checked:ae}=pe;B.value?(de=g.value)==null||de.handleCheckChange(pe,!ae,!1):(!ae&&((Me=g.value)==null||Me.handleCheckChange(pe,!0,!1)),ne(!1))},Pe=pe=>{const de=pe.target,{code:Me}=pe;switch(Me){case Qe.up:case Qe.down:{const ae=Me===Qe.up?-1:1;dS(FJ(de,ae,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case Qe.enter:de.click();break}},Ue=()=>{const pe=A.value,de=pe[pe.length-1];s=T.value?0:s+1,!(!de||!s||n.collapseTags&&pe.length>1)&&(de.hitState?q(de):de.hitState=!0)},gt=pe=>{const de=pe.target,Me=l.e("search-input");de.className===Me&&(x.value=!0),r("focus",pe)},At=pe=>{x.value=!1,r("blur",pe)},Gt=Ni(()=>{const{value:pe}=z;if(!pe)return;const de=n.beforeFilter(pe);p0(de)?de.then(ve).catch(()=>{}):de!==!1?ve():ie()},n.debounce),tt=(pe,de)=>{!y.value&&ne(!0),!(de!=null&&de.isComposing)&&(pe?Gt():ie())},be=pe=>Number.parseFloat(tFe(u.cssVarName("input-height"),pe).value)-2;return Ae(w,re),Ae([$,P],oe),Ae(A,()=>{qe(()=>ge())}),Ae(O,async()=>{await qe();const pe=v.value.input;o=be(pe)||o,ge()}),Ae(X,He,{immediate:!0}),xt(()=>{const pe=v.value.input,de=be(pe);o=pe.offsetHeight||de,di(pe,ge)}),t({getCheckedNodes:Le,cascaderPanelRef:g,togglePopperVisible:ne,contentRef:Z}),(pe,de)=>(N(),he(b(Bi),{ref_key:"tooltipRef",ref:h,visible:y.value,teleported:pe.teleported,"popper-class":[b(l).e("dropdown"),pe.popperClass],"popper-options":a,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${b(l).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:ie},{default:le(()=>[Ct((N(),U("div",{class:H(b(se)),style:Xe(b(D)),onClick:de[5]||(de[5]=()=>ne(b(k)?void 0:!0)),onKeydown:Te,onMouseenter:de[6]||(de[6]=Me=>_.value=!0),onMouseleave:de[7]||(de[7]=Me=>_.value=!1)},[J(b(li),{ref_key:"input",ref:v,modelValue:S.value,"onUpdate:modelValue":de[1]||(de[1]=Me=>S.value=Me),placeholder:b(I),readonly:b(k),disabled:b(P),"validate-event":!1,size:b(O),class:H(b(K)),tabindex:b(B)&&pe.filterable&&!b(P)?-1:void 0,onCompositionstart:xe,onCompositionupdate:xe,onCompositionend:xe,onFocus:gt,onBlur:At,onInput:tt},{suffix:le(()=>[b(j)?(N(),he(b(Ze),{key:"clear",class:H([b(u).e("icon"),"icon-circle-close"]),onClick:it(Ve,["stop"])},{default:le(()=>[J(b(zf))]),_:1},8,["class","onClick"])):(N(),he(b(Ze),{key:"arrow-down",class:H(b(ee)),onClick:de[0]||(de[0]=it(Me=>ne(),["stop"]))},{default:le(()=>[J(b(Vf))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),b(B)?(N(),U("div",{key:0,ref_key:"tagWrapper",ref:p,class:H(b(l).e("tags"))},[(N(!0),U(Be,null,ht(A.value,Me=>(N(),he(b(w_),{key:Me.key,type:pe.tagType,size:b(R),hit:Me.hitState,closable:Me.closable,"disable-transitions":"",onClose:ae=>q(Me)},{default:le(()=>[Me.isCollapseTag===!1?(N(),U("span",iZe,me(Me.text),1)):(N(),he(b(Bi),{key:1,disabled:y.value||!pe.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:le(()=>[V("span",null,me(Me.text),1)]),content:le(()=>[V("div",{class:H(b(l).e("collapse-tags"))},[(N(!0),U(Be,null,ht(C.value.slice(pe.maxCollapseTags),(ae,Ge)=>(N(),U("div",{key:Ge,class:H(b(l).e("collapse-tag"))},[(N(),he(b(w_),{key:ae.key,class:"in-tooltip",type:pe.tagType,size:b(R),hit:ae.hitState,closable:ae.closable,"disable-transitions":"",onClose:St=>q(ae)},{default:le(()=>[V("span",null,me(ae.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),pe.filterable&&!b(P)?Ct((N(),U("input",{key:0,"onUpdate:modelValue":de[2]||(de[2]=Me=>T.value=Me),type:"text",class:H(b(l).e("search-input")),placeholder:b(X)?"":b(L),onInput:de[3]||(de[3]=Me=>tt(T.value,Me)),onClick:de[4]||(de[4]=it(Me=>ne(!0),["stop"])),onKeydown:dr(Ue,["delete"]),onCompositionstart:xe,onCompositionupdate:xe,onCompositionend:xe,onFocus:gt,onBlur:At},null,42,oZe)),[[VR,T.value]]):ce("v-if",!0)],2)):ce("v-if",!0)],38)),[[b(Df),()=>ne(!1),b(Z)]])]),content:le(()=>[Ct(J(b(Lre),{ref_key:"cascaderPanelRef",ref:g,modelValue:b(Q),"onUpdate:modelValue":de[8]||(de[8]=Me=>Qr(Q)?Q.value=Me:null),options:pe.options,props:n.props,border:!1,"render-label":pe.$slots.default,onExpandChange:Se,onClose:de[9]||(de[9]=Me=>pe.$nextTick(()=>ne(!1)))},null,8,["modelValue","options","props","render-label"]),[[hr,!w.value]]),pe.filterable?Ct((N(),he(b(ic),{key:0,ref_key:"suggestionPanel",ref:m,tag:"ul",class:H(b(l).e("suggestion-panel")),"view-class":b(l).e("suggestion-list"),onKeydown:Pe},{default:le(()=>[M.value.length?(N(!0),U(Be,{key:0},ht(M.value,Me=>(N(),U("li",{key:Me.uid,class:H([b(l).e("suggestion-item"),b(l).is("checked",Me.checked)]),tabindex:-1,onClick:ae=>je(Me)},[V("span",null,me(Me.text),1),Me.checked?(N(),he(b(Ze),{key:0},{default:le(()=>[J(b(P1))]),_:1})):ce("v-if",!0)],10,sZe))),128)):ye(pe.$slots,"empty",{key:1},()=>[V("li",{class:H(b(l).e("empty-text"))},me(b(c)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[hr,w.value]]):ce("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var wS=ke(cZe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);wS.install=e=>{e.component(wS.name,wS)};const fZe=wS,dZe=fZe,hZe=Oe({checked:{type:Boolean,default:!1}}),vZe={"update:checked":e=>la(e),[ln]:e=>la(e)},pZe=te({name:"ElCheckTag"}),gZe=te({...pZe,props:hZe,emits:vZe,setup(e,{emit:t}){const r=e,n=Ce("check-tag"),a=F(()=>[n.b(),n.is("checked",r.checked)]),i=()=>{const o=!r.checked;t(ln,o),t("update:checked",o)};return(o,s)=>(N(),U("span",{class:H(b(a)),onClick:i},[ye(o.$slots,"default")],2))}});var mZe=ke(gZe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const yZe=kt(mZe),Ire=Symbol("rowContextKey"),_Ze=["start","center","end","space-around","space-between","space-evenly"],bZe=["top","middle","bottom"],wZe=Oe({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:_Ze,default:"start"},align:{type:String,values:bZe}}),SZe=te({name:"ElRow"}),xZe=te({...SZe,props:wZe,setup(e){const t=e,r=Ce("row"),n=F(()=>t.gutter);Wt(Ire,{gutter:n});const a=F(()=>{const o={};return t.gutter&&(o.marginRight=o.marginLeft=`-${t.gutter/2}px`),o}),i=F(()=>[r.b(),r.is(`justify-${t.justify}`,t.justify!=="start"),r.is(`align-${t.align}`,!!t.align)]);return(o,s)=>(N(),he(Ft(o.tag),{class:H(b(i)),style:Xe(b(a))},{default:le(()=>[ye(o.$slots,"default")]),_:3},8,["class","style"]))}});var AZe=ke(xZe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const TZe=kt(AZe),CZe=Oe({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:fe([Number,Object]),default:()=>mn({})},sm:{type:fe([Number,Object]),default:()=>mn({})},md:{type:fe([Number,Object]),default:()=>mn({})},lg:{type:fe([Number,Object]),default:()=>mn({})},xl:{type:fe([Number,Object]),default:()=>mn({})}}),EZe=te({name:"ElCol"}),MZe=te({...EZe,props:CZe,setup(e){const t=e,{gutter:r}=Ye(Ire,{gutter:F(()=>0)}),n=Ce("col"),a=F(()=>{const o={};return r.value&&(o.paddingLeft=o.paddingRight=`${r.value/2}px`),o}),i=F(()=>{const o=[];return["span","offset","pull","push"].forEach(u=>{const c=t[u];ct(c)&&(u==="span"?o.push(n.b(`${t[u]}`)):c>0&&o.push(n.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{ct(t[u])?o.push(n.b(`${u}-${t[u]}`)):Vt(t[u])&&Object.entries(t[u]).forEach(([c,f])=>{o.push(c!=="span"?n.b(`${u}-${c}-${f}`):n.b(`${u}-${f}`))})}),r.value&&o.push(n.is("guttered")),[n.b(),o]});return(o,s)=>(N(),he(Ft(o.tag),{class:H(b(i)),style:Xe(b(a))},{default:le(()=>[ye(o.$slots,"default")]),_:3},8,["class","style"]))}});var DZe=ke(MZe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const PZe=kt(DZe),CU=e=>typeof ct(e),LZe=Oe({accordion:Boolean,modelValue:{type:fe([Array,String,Number]),default:()=>mn([])}}),IZe={[Nt]:CU,[ln]:CU},Rre=Symbol("collapseContextKey"),RZe=(e,t)=>{const r=G(jh(e.modelValue)),n=i=>{r.value=i;const o=e.accordion?r.value[0]:r.value;t(Nt,o),t(ln,o)},a=i=>{if(e.accordion)n([r.value[0]===i?"":i]);else{const o=[...r.value],s=o.indexOf(i);s>-1?o.splice(s,1):o.push(i),n(o)}};return Ae(()=>e.modelValue,()=>r.value=jh(e.modelValue),{deep:!0}),Wt(Rre,{activeNames:r,handleItemClick:a}),{activeNames:r,setActiveNames:n}},OZe=()=>{const e=Ce("collapse");return{rootKls:F(()=>e.b())}},kZe=te({name:"ElCollapse"}),NZe=te({...kZe,props:LZe,emits:IZe,setup(e,{expose:t,emit:r}){const n=e,{activeNames:a,setActiveNames:i}=RZe(n,r),{rootKls:o}=OZe();return t({activeNames:a,setActiveNames:i}),(s,l)=>(N(),U("div",{class:H(b(o))},[ye(s.$slots,"default")],2))}});var BZe=ke(NZe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const FZe=te({name:"ElCollapseTransition"}),VZe=te({...FZe,setup(e){const t=Ce("collapse-transition"),r=a=>{a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom},n={beforeEnter(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0},enter(a){a.dataset.oldOverflow=a.style.overflow,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){r(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){r(a)},leaveCancelled(a){r(a)}};return(a,i)=>(N(),he(Yn,Ut({name:b(t).b()},Sse(n)),{default:le(()=>[ye(a.$slots,"default")]),_:3},16,["name"]))}});var SS=ke(VZe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);SS.install=e=>{e.component(SS.name,SS)};const LT=SS,zZe=LT,HZe=Oe({title:{type:String,default:""},name:{type:fe([String,Number]),default:()=>ST()},disabled:Boolean}),GZe=e=>{const t=Ye(Rre),r=G(!1),n=G(!1),a=G(ST()),i=F(()=>t==null?void 0:t.activeNames.value.includes(e.name));return{focusing:r,id:a,isActive:i,handleFocus:()=>{setTimeout(()=>{n.value?n.value=!1:r.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(e.name),r.value=!1,n.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(e.name)}}},UZe=(e,{focusing:t,isActive:r,id:n})=>{const a=Ce("collapse"),i=F(()=>[a.b("item"),a.is("active",b(r)),a.is("disabled",e.disabled)]),o=F(()=>[a.be("item","header"),a.is("active",b(r)),{focusing:b(t)&&!e.disabled}]),s=F(()=>[a.be("item","arrow"),a.is("active",b(r))]),l=F(()=>a.be("item","wrap")),u=F(()=>a.be("item","content")),c=F(()=>a.b(`content-${b(n)}`)),f=F(()=>a.b(`head-${b(n)}`));return{arrowKls:s,headKls:o,rootKls:i,itemWrapperKls:l,itemContentKls:u,scopedContentId:c,scopedHeadId:f}},$Ze=["id","aria-expanded","aria-controls","aria-describedby","tabindex"],WZe=["id","aria-hidden","aria-labelledby"],YZe=te({name:"ElCollapseItem"}),jZe=te({...YZe,props:HZe,setup(e,{expose:t}){const r=e,{focusing:n,id:a,isActive:i,handleFocus:o,handleHeaderClick:s,handleEnterClick:l}=GZe(r),{arrowKls:u,headKls:c,rootKls:f,itemWrapperKls:d,itemContentKls:h,scopedContentId:v,scopedHeadId:p}=UZe(r,{focusing:n,isActive:i,id:a});return t({isActive:i}),(g,m)=>(N(),U("div",{class:H(b(f))},[V("button",{id:b(p),class:H(b(c)),"aria-expanded":b(i),"aria-controls":b(v),"aria-describedby":b(v),tabindex:g.disabled?-1:0,type:"button",onClick:m[0]||(m[0]=(...y)=>b(s)&&b(s)(...y)),onKeydown:m[1]||(m[1]=dr(it((...y)=>b(l)&&b(l)(...y),["stop","prevent"]),["space","enter"])),onFocus:m[2]||(m[2]=(...y)=>b(o)&&b(o)(...y)),onBlur:m[3]||(m[3]=y=>n.value=!1)},[ye(g.$slots,"title",{},()=>[nr(me(g.title),1)]),J(b(Ze),{class:H(b(u))},{default:le(()=>[J(b(Mi))]),_:1},8,["class"])],42,$Ze),J(b(LT),null,{default:le(()=>[Ct(V("div",{id:b(v),role:"region",class:H(b(d)),"aria-hidden":!b(i),"aria-labelledby":b(p)},[V("div",{class:H(b(h))},[ye(g.$slots,"default")],2)],10,WZe),[[hr,b(i)]])]),_:3})],2))}});var Ore=ke(jZe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const KZe=kt(BZe,{CollapseItem:Ore}),XZe=Pn(Ore),ZZe=Oe({color:{type:fe(Object),required:!0},vertical:{type:Boolean,default:!1}});let WM=!1;function S_(e,t){if(!ur)return;const r=function(i){var o;(o=t.drag)==null||o.call(t,i)},n=function(i){var o;document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",n),document.removeEventListener("touchmove",r),document.removeEventListener("touchend",n),document.onselectstart=null,document.ondragstart=null,WM=!1,(o=t.end)==null||o.call(t,i)},a=function(i){var o;WM||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",r),document.addEventListener("mouseup",n),document.addEventListener("touchmove",r),document.addEventListener("touchend",n),WM=!0,(o=t.start)==null||o.call(t,i))};e.addEventListener("mousedown",a),e.addEventListener("touchstart",a)}const qZe=e=>{const t=It(),r=yr(),n=yr();function a(o){o.target!==r.value&&i(o)}function i(o){if(!n.value||!r.value)return;const l=t.vnode.el.getBoundingClientRect(),{clientX:u,clientY:c}=ON(o);if(e.vertical){let f=c-l.top;f=Math.max(r.value.offsetHeight/2,f),f=Math.min(f,l.height-r.value.offsetHeight/2),e.color.set("alpha",Math.round((f-r.value.offsetHeight/2)/(l.height-r.value.offsetHeight)*100))}else{let f=u-l.left;f=Math.max(r.value.offsetWidth/2,f),f=Math.min(f,l.width-r.value.offsetWidth/2),e.color.set("alpha",Math.round((f-r.value.offsetWidth/2)/(l.width-r.value.offsetWidth)*100))}}return{thumb:r,bar:n,handleDrag:i,handleClick:a}},QZe=(e,{bar:t,thumb:r,handleDrag:n})=>{const a=It(),i=Ce("color-alpha-slider"),o=G(0),s=G(0),l=G();function u(){if(!r.value||e.vertical)return 0;const y=a.vnode.el,_=e.color.get("alpha");return y?Math.round(_*(y.offsetWidth-r.value.offsetWidth/2)/100):0}function c(){if(!r.value)return 0;const y=a.vnode.el;if(!e.vertical)return 0;const _=e.color.get("alpha");return y?Math.round(_*(y.offsetHeight-r.value.offsetHeight/2)/100):0}function f(){if(e.color&&e.color.value){const{r:y,g:_,b:w}=e.color.toRgb();return`linear-gradient(to right, rgba(${y}, ${_}, ${w}, 0) 0%, rgba(${y}, ${_}, ${w}, 1) 100%)`}return""}function d(){o.value=u(),s.value=c(),l.value=f()}xt(()=>{if(!t.value||!r.value)return;const y={drag:_=>{n(_)},end:_=>{n(_)}};S_(t.value,y),S_(r.value,y),d()}),Ae(()=>e.color.get("alpha"),()=>d()),Ae(()=>e.color.value,()=>d());const h=F(()=>[i.b(),i.is("vertical",e.vertical)]),v=F(()=>i.e("bar")),p=F(()=>i.e("thumb")),g=F(()=>({background:l.value})),m=F(()=>({left:Hn(o.value),top:Hn(s.value)}));return{rootKls:h,barKls:v,barStyle:g,thumbKls:p,thumbStyle:m,update:d}},JZe="ElColorAlphaSlider",eqe=te({name:JZe}),tqe=te({...eqe,props:ZZe,setup(e,{expose:t}){const r=e,{bar:n,thumb:a,handleDrag:i,handleClick:o}=qZe(r),{rootKls:s,barKls:l,barStyle:u,thumbKls:c,thumbStyle:f,update:d}=QZe(r,{bar:n,thumb:a,handleDrag:i});return t({update:d,bar:n,thumb:a}),(h,v)=>(N(),U("div",{class:H(b(s))},[V("div",{ref_key:"bar",ref:n,class:H(b(l)),style:Xe(b(u)),onClick:v[0]||(v[0]=(...p)=>b(o)&&b(o)(...p))},null,6),V("div",{ref_key:"thumb",ref:a,class:H(b(c)),style:Xe(b(f))},null,6)],2))}});var rqe=ke(tqe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const nqe=te({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Ce("color-hue-slider"),r=It(),n=G(),a=G(),i=G(0),o=G(0),s=F(()=>e.color.get("hue"));Ae(()=>s.value,()=>{d()});function l(h){h.target!==n.value&&u(h)}function u(h){if(!a.value||!n.value)return;const p=r.vnode.el.getBoundingClientRect(),{clientX:g,clientY:m}=ON(h);let y;if(e.vertical){let _=m-p.top;_=Math.min(_,p.height-n.value.offsetHeight/2),_=Math.max(n.value.offsetHeight/2,_),y=Math.round((_-n.value.offsetHeight/2)/(p.height-n.value.offsetHeight)*360)}else{let _=g-p.left;_=Math.min(_,p.width-n.value.offsetWidth/2),_=Math.max(n.value.offsetWidth/2,_),y=Math.round((_-n.value.offsetWidth/2)/(p.width-n.value.offsetWidth)*360)}e.color.set("hue",y)}function c(){if(!n.value)return 0;const h=r.vnode.el;if(e.vertical)return 0;const v=e.color.get("hue");return h?Math.round(v*(h.offsetWidth-n.value.offsetWidth/2)/360):0}function f(){if(!n.value)return 0;const h=r.vnode.el;if(!e.vertical)return 0;const v=e.color.get("hue");return h?Math.round(v*(h.offsetHeight-n.value.offsetHeight/2)/360):0}function d(){i.value=c(),o.value=f()}return xt(()=>{if(!a.value||!n.value)return;const h={drag:v=>{u(v)},end:v=>{u(v)}};S_(a.value,h),S_(n.value,h),d()}),{bar:a,thumb:n,thumbLeft:i,thumbTop:o,hueValue:s,handleClick:l,update:d,ns:t}}});function aqe(e,t,r,n,a,i){return N(),U("div",{class:H([e.ns.b(),e.ns.is("vertical",e.vertical)])},[V("div",{ref:"bar",class:H(e.ns.e("bar")),onClick:t[0]||(t[0]=(...o)=>e.handleClick&&e.handleClick(...o))},null,2),V("div",{ref:"thumb",class:H(e.ns.e("thumb")),style:Xe({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var iqe=ke(nqe,[["render",aqe],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const oqe=Oe({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:Ga,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:fe(Array)},validateEvent:{type:Boolean,default:!0}}),sqe={[Nt]:e=>wt(e)||Qn(e),[ln]:e=>wt(e)||Qn(e),activeChange:e=>wt(e)||Qn(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},kre=Symbol("colorPickerContextKey"),EU=function(e,t,r){return[e,t*r/((e=(2-t)*r)<1?e:2-e)||0,e/2]},lqe=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},uqe=function(e){return typeof e=="string"&&e.includes("%")},Fp=function(e,t){lqe(e)&&(e="100%");const r=uqe(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),r&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},MU={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},xS=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),r=e%16;return`${MU[t]||t}${MU[r]||r}`},DU=function({r:e,g:t,b:r}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+r)?"":`#${xS(e)}${xS(t)}${xS(r)}`},YM={A:10,B:11,C:12,D:13,E:14,F:15},Ad=function(e){return e.length===2?(YM[e[0].toUpperCase()]||+e[0])*16+(YM[e[1].toUpperCase()]||+e[1]):YM[e[1].toUpperCase()]||+e[1]},cqe=function(e,t,r){t=t/100,r=r/100;let n=t;const a=Math.max(r,.01);r*=2,t*=r<=1?r:2-r,n*=a<=1?a:2-a;const i=(r+t)/2,o=r===0?2*n/(a+n):2*t/(r+t);return{h:e,s:o*100,v:i*100}},PU=(e,t,r)=>{e=Fp(e,255),t=Fp(t,255),r=Fp(r,255);const n=Math.max(e,t,r),a=Math.min(e,t,r);let i;const o=n,s=n-a,l=n===0?0:s/n;if(n===a)i=0;else{switch(n){case e:{i=(t-r)/s+(t{this._hue=Math.max(0,Math.min(360,n)),this._saturation=Math.max(0,Math.min(100,a)),this._value=Math.max(0,Math.min(100,i)),this.doOnChange()};if(t.includes("hsl")){const n=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));if(n.length===4?this._alpha=Number.parseFloat(n[3])*100:n.length===3&&(this._alpha=100),n.length>=3){const{h:a,s:i,v:o}=cqe(n[0],n[1],n[2]);r(a,i,o)}}else if(t.includes("hsv")){const n=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));n.length===4?this._alpha=Number.parseFloat(n[3])*100:n.length===3&&(this._alpha=100),n.length>=3&&r(n[0],n[1],n[2])}else if(t.includes("rgb")){const n=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));if(n.length===4?this._alpha=Number.parseFloat(n[3])*100:n.length===3&&(this._alpha=100),n.length>=3){const{h:a,s:i,v:o}=PU(n[0],n[1],n[2]);r(a,i,o)}}else if(t.includes("#")){const n=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(n))return;let a,i,o;n.length===3?(a=Ad(n[0]+n[0]),i=Ad(n[1]+n[1]),o=Ad(n[2]+n[2])):(n.length===6||n.length===8)&&(a=Ad(n.slice(0,2)),i=Ad(n.slice(2,4)),o=Ad(n.slice(4,6))),n.length===8?this._alpha=Ad(n.slice(6))/255*100:(n.length===3||n.length===6)&&(this._alpha=100);const{h:s,s:l,v:u}=PU(a,i,o);r(s,l,u)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:r,_value:n,_alpha:a,format:i}=this;if(this.enableAlpha)switch(i){case"hsl":{const o=EU(t,r/100,n/100);this.value=`hsla(${t}, ${Math.round(o[1]*100)}%, ${Math.round(o[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(r)}%, ${Math.round(n)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${DU(Jm(t,r,n))}${xS(a*255/100)}`;break}default:{const{r:o,g:s,b:l}=Jm(t,r,n);this.value=`rgba(${o}, ${s}, ${l}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const o=EU(t,r/100,n/100);this.value=`hsl(${t}, ${Math.round(o[1]*100)}%, ${Math.round(o[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(r)}%, ${Math.round(n)}%)`;break}case"rgb":{const{r:o,g:s,b:l}=Jm(t,r,n);this.value=`rgb(${o}, ${s}, ${l})`;break}default:this.value=DU(Jm(t,r,n))}}}const fqe=te({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=Ce("color-predefine"),{currentColor:r}=Ye(kre),n=G(i(e.colors,e.color));Ae(()=>r.value,o=>{const s=new l0;s.fromString(o),n.value.forEach(l=>{l.selected=s.compare(l)})}),xo(()=>{n.value=i(e.colors,e.color)});function a(o){e.color.fromString(e.colors[o])}function i(o,s){return o.map(l=>{const u=new l0;return u.enableAlpha=!0,u.format="rgba",u.fromString(l),u.selected=u.value===s.value,u})}return{rgbaColors:n,handleSelect:a,ns:t}}}),dqe=["onClick"];function hqe(e,t,r,n,a,i){return N(),U("div",{class:H(e.ns.b())},[V("div",{class:H(e.ns.e("colors"))},[(N(!0),U(Be,null,ht(e.rgbaColors,(o,s)=>(N(),U("div",{key:e.colors[s],class:H([e.ns.e("color-selector"),e.ns.is("alpha",o._alpha<100),{selected:o.selected}]),onClick:l=>e.handleSelect(s)},[V("div",{style:Xe({backgroundColor:o.value})},null,4)],10,dqe))),128))],2)],2)}var vqe=ke(fqe,[["render",hqe],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const pqe=te({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Ce("color-svpanel"),r=It(),n=G(0),a=G(0),i=G("hsl(0, 100%, 50%)"),o=F(()=>{const u=e.color.get("hue"),c=e.color.get("value");return{hue:u,value:c}});function s(){const u=e.color.get("saturation"),c=e.color.get("value"),f=r.vnode.el,{clientWidth:d,clientHeight:h}=f;a.value=u*d/100,n.value=(100-c)*h/100,i.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(u){const f=r.vnode.el.getBoundingClientRect(),{clientX:d,clientY:h}=ON(u);let v=d-f.left,p=h-f.top;v=Math.max(0,v),v=Math.min(v,f.width),p=Math.max(0,p),p=Math.min(p,f.height),a.value=v,n.value=p,e.color.set({saturation:v/f.width*100,value:100-p/f.height*100})}return Ae(()=>o.value,()=>{s()}),xt(()=>{S_(r.vnode.el,{drag:u=>{l(u)},end:u=>{l(u)}}),s()}),{cursorTop:n,cursorLeft:a,background:i,colorValue:o,handleDrag:l,update:s,ns:t}}}),gqe=V("div",null,null,-1),mqe=[gqe];function yqe(e,t,r,n,a,i){return N(),U("div",{class:H(e.ns.b()),style:Xe({backgroundColor:e.background})},[V("div",{class:H(e.ns.e("white"))},null,2),V("div",{class:H(e.ns.e("black"))},null,2),V("div",{class:H(e.ns.e("cursor")),style:Xe({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},mqe,6)],6)}var _qe=ke(pqe,[["render",yqe],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const bqe=["onKeydown"],wqe=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"],Sqe=te({name:"ElColorPicker"}),xqe=te({...Sqe,props:oqe,emits:sqe,setup(e,{expose:t,emit:r}){const n=e,{t:a}=fr(),i=Ce("color"),{formItem:o}=Vi(),s=ca(),l=ho(),{inputId:u,isLabeledByFormItem:c}=$f(n,{formItemContext:o}),f=G(),d=G(),h=G(),v=G(),p=G(),g=G(),{isFocused:m,handleFocus:y,handleBlur:_}=xte(p,{beforeBlur(re){var ie;return(ie=v.value)==null?void 0:ie.isFocusInsideContent(re)},afterBlur(){O(!1),z()}}),w=re=>{if(l.value)return ne();y(re)};let x=!0;const S=Ar(new l0({enableAlpha:n.showAlpha,format:n.colorFormat||"",value:n.modelValue})),T=G(!1),A=G(!1),C=G(""),M=F(()=>!n.modelValue&&!A.value?"transparent":I(S,n.showAlpha)),E=F(()=>!n.modelValue&&!A.value?"":S.value),D=F(()=>c.value?void 0:n.label||a("el.colorpicker.defaultLabel")),P=F(()=>c.value?o==null?void 0:o.labelId:void 0),L=F(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",s.value),i.is("focused",m.value)]);function I(re,ie){if(!(re instanceof l0))throw new TypeError("color should be instance of _color Class");const{r:Y,g:q,b:oe}=re.toRgb();return ie?`rgba(${Y}, ${q}, ${oe}, ${re.get("alpha")/100})`:`rgb(${Y}, ${q}, ${oe})`}function O(re){T.value=re}const R=Ni(O,100,{leading:!0});function B(){l.value||O(!0)}function k(){R(!1),z()}function z(){qe(()=>{n.modelValue?S.fromString(n.modelValue):(S.value="",qe(()=>{A.value=!1}))})}function $(){l.value||R(!T.value)}function j(){S.fromString(C.value)}function X(){const re=S.value;r(Nt,re),r("change",re),n.validateEvent&&(o==null||o.validate("change").catch(ie=>void 0)),R(!1),qe(()=>{const ie=new l0({enableAlpha:n.showAlpha,format:n.colorFormat||"",value:n.modelValue});S.compare(ie)||z()})}function Q(){R(!1),r(Nt,null),r("change",null),n.modelValue!==null&&n.validateEvent&&(o==null||o.validate("change").catch(re=>void 0)),z()}function se(re){if(T.value&&(k(),m.value)){const ie=new FocusEvent("focus",re);_(ie)}}function ee(re){re.preventDefault(),re.stopPropagation(),O(!1),z()}function K(re){switch(re.code){case Qe.enter:case Qe.space:re.preventDefault(),re.stopPropagation(),B(),g.value.focus();break;case Qe.esc:ee(re);break}}function Z(){p.value.focus()}function ne(){p.value.blur()}return xt(()=>{n.modelValue&&(C.value=E.value)}),Ae(()=>n.modelValue,re=>{re?re&&re!==S.value&&(x=!1,S.fromString(re)):A.value=!1}),Ae(()=>E.value,re=>{C.value=re,x&&r("activeChange",re),x=!0}),Ae(()=>S.value,()=>{!n.modelValue&&!A.value&&(A.value=!0)}),Ae(()=>T.value,()=>{qe(()=>{var re,ie,Y;(re=f.value)==null||re.update(),(ie=d.value)==null||ie.update(),(Y=h.value)==null||Y.update()})}),Wt(kre,{currentColor:E}),t({color:S,show:B,hide:k,focus:Z,blur:ne}),(re,ie)=>(N(),he(b(Bi),{ref_key:"popper",ref:v,visible:T.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[b(i).be("picker","panel"),b(i).b("dropdown"),re.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${b(i).namespace.value}-zoom-in-top`,persistent:"",onHide:ie[2]||(ie[2]=Y=>O(!1))},{content:le(()=>[Ct((N(),U("div",{onKeydown:dr(ee,["esc"])},[V("div",{class:H(b(i).be("dropdown","main-wrapper"))},[J(iqe,{ref_key:"hue",ref:f,class:"hue-slider",color:b(S),vertical:""},null,8,["color"]),J(_qe,{ref_key:"sv",ref:d,color:b(S)},null,8,["color"])],2),re.showAlpha?(N(),he(rqe,{key:0,ref_key:"alpha",ref:h,color:b(S)},null,8,["color"])):ce("v-if",!0),re.predefine?(N(),he(vqe,{key:1,ref:"predefine",color:b(S),colors:re.predefine},null,8,["color","colors"])):ce("v-if",!0),V("div",{class:H(b(i).be("dropdown","btns"))},[V("span",{class:H(b(i).be("dropdown","value"))},[J(b(li),{ref_key:"inputRef",ref:g,modelValue:C.value,"onUpdate:modelValue":ie[0]||(ie[0]=Y=>C.value=Y),"validate-event":!1,size:"small",onKeyup:dr(j,["enter"]),onBlur:j},null,8,["modelValue","onKeyup"])],2),J(b(Ja),{class:H(b(i).be("dropdown","link-btn")),text:"",size:"small",onClick:Q},{default:le(()=>[nr(me(b(a)("el.colorpicker.clear")),1)]),_:1},8,["class"]),J(b(Ja),{plain:"",size:"small",class:H(b(i).be("dropdown","btn")),onClick:X},{default:le(()=>[nr(me(b(a)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,bqe)),[[b(Df),se]])]),default:le(()=>[V("div",{id:b(u),ref_key:"triggerRef",ref:p,class:H(b(L)),role:"button","aria-label":b(D),"aria-labelledby":b(P),"aria-description":b(a)("el.colorpicker.description",{color:re.modelValue||""}),"aria-disabled":b(l),tabindex:b(l)?-1:re.tabindex,onKeydown:K,onFocus:w,onBlur:ie[1]||(ie[1]=(...Y)=>b(_)&&b(_)(...Y))},[b(l)?(N(),U("div",{key:0,class:H(b(i).be("picker","mask"))},null,2)):ce("v-if",!0),V("div",{class:H(b(i).be("picker","trigger")),onClick:$},[V("span",{class:H([b(i).be("picker","color"),b(i).is("alpha",re.showAlpha)])},[V("span",{class:H(b(i).be("picker","color-inner")),style:Xe({backgroundColor:b(M)})},[Ct(J(b(Ze),{class:H([b(i).be("picker","icon"),b(i).is("icon-arrow-down")])},{default:le(()=>[J(b(Vf))]),_:1},8,["class"]),[[hr,re.modelValue||A.value]]),Ct(J(b(Ze),{class:H([b(i).be("picker","empty"),b(i).is("icon-close")])},{default:le(()=>[J(b(el))]),_:1},8,["class"]),[[hr,!re.modelValue&&!A.value]])],6)],2)],2)],42,wqe)]),_:1},8,["visible","popper-class","transition"]))}});var Aqe=ke(xqe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const Tqe=kt(Aqe),Cqe=te({name:"ElContainer"}),Eqe=te({...Cqe,props:{direction:{type:String}},setup(e){const t=e,r=$a(),n=Ce("container"),a=F(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:r&&r.default?r.default().some(o=>{const s=o.type.name;return s==="ElHeader"||s==="ElFooter"}):!1);return(i,o)=>(N(),U("section",{class:H([b(n).b(),b(n).is("vertical",b(a))])},[ye(i.$slots,"default")],2))}});var Mqe=ke(Eqe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const Dqe=te({name:"ElAside"}),Pqe=te({...Dqe,props:{width:{type:String,default:null}},setup(e){const t=e,r=Ce("aside"),n=F(()=>t.width?r.cssVarBlock({width:t.width}):{});return(a,i)=>(N(),U("aside",{class:H(b(r).b()),style:Xe(b(n))},[ye(a.$slots,"default")],6))}});var Nre=ke(Pqe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const Lqe=te({name:"ElFooter"}),Iqe=te({...Lqe,props:{height:{type:String,default:null}},setup(e){const t=e,r=Ce("footer"),n=F(()=>t.height?r.cssVarBlock({height:t.height}):{});return(a,i)=>(N(),U("footer",{class:H(b(r).b()),style:Xe(b(n))},[ye(a.$slots,"default")],6))}});var Bre=ke(Iqe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const Rqe=te({name:"ElHeader"}),Oqe=te({...Rqe,props:{height:{type:String,default:null}},setup(e){const t=e,r=Ce("header"),n=F(()=>t.height?r.cssVarBlock({height:t.height}):{});return(a,i)=>(N(),U("header",{class:H(b(r).b()),style:Xe(b(n))},[ye(a.$slots,"default")],6))}});var Fre=ke(Oqe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const kqe=te({name:"ElMain"}),Nqe=te({...kqe,setup(e){const t=Ce("main");return(r,n)=>(N(),U("main",{class:H(b(t).b())},[ye(r.$slots,"default")],2))}});var Vre=ke(Nqe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const Bqe=kt(Mqe,{Aside:Nre,Footer:Bre,Header:Fre,Main:Vre}),Fqe=Pn(Nre),Vqe=Pn(Bre),zqe=Pn(Fre),Hqe=Pn(Vre);var zre={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(oc,function(){return function(r,n){var a=n.prototype,i=a.format;a.format=function(o){var s=this,l=this.$locale();if(!this.isValid())return i.bind(this)(o);var u=this.$utils(),c=(o||"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 i.bind(this)(c)}}})})(zre);var Gqe=zre.exports;const Uqe=ru(Gqe);var Hre={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(oc,function(){var r="week",n="year";return function(a,i,o){var s=i.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=o(this).startOf(n).add(1,n).date(u),f=o(this).endOf(r);if(c.isBefore(f))return 1}var d=o(this).startOf(n).date(u).startOf(r).subtract(1,"millisecond"),h=this.diff(d,r,!0);return h<0?o(this).startOf("week").week():Math.ceil(h)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(Hre);var $qe=Hre.exports;const Wqe=ru($qe);var Gre={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(oc,function(){return function(r,n){n.prototype.weekYear=function(){var a=this.month(),i=this.week(),o=this.year();return i===1&&a===11?o+1:a===0&&i>=52?o-1:o}}})})(Gre);var Yqe=Gre.exports;const jqe=ru(Yqe);var Ure={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(oc,function(){return function(r,n,a){n.prototype.dayOfYear=function(i){var o=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return i==null?o:this.add(i-o,"day")}}})})(Ure);var Kqe=Ure.exports;const Xqe=ru(Kqe);var $re={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(oc,function(){return function(r,n){n.prototype.isSameOrAfter=function(a,i){return this.isSame(a,i)||this.isAfter(a,i)}}})})($re);var Zqe=$re.exports;const qqe=ru(Zqe);var Wre={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(oc,function(){return function(r,n){n.prototype.isSameOrBefore=function(a,i){return this.isSame(a,i)||this.isBefore(a,i)}}})})(Wre);var Qqe=Wre.exports;const Jqe=ru(Qqe),D3=Symbol(),eQe=Oe({...C3,type:{type:fe(String),default:"date"}}),tQe=["date","dates","year","month","week","range"],P3=Oe({disabledDate:{type:fe(Function)},date:{type:fe(Object),required:!0},minDate:{type:fe(Object)},maxDate:{type:fe(Object)},parsedValue:{type:fe([Object,Array])},rangeState:{type:fe(Object),default:()=>({endDate:null,selecting:!1})}}),Yre=Oe({type:{type:fe(String),required:!0,values:GUe},dateFormat:String,timeFormat:String}),jre=Oe({unlinkPanels:Boolean,parsedValue:{type:fe(Array)}}),Kre=e=>({type:String,values:tQe,default:e}),rQe=Oe({...Yre,parsedValue:{type:fe([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),nQe=Oe({...P3,cellClassName:{type:fe(Function)},showWeekNumber:Boolean,selectionMode:Kre("date")}),aQe=["changerange","pick","select"],SI=e=>{if(!We(e))return!1;const[t,r]=e;return Rt.isDayjs(t)&&Rt.isDayjs(r)&&t.isSameOrBefore(r)},Xre=(e,{lang:t,unit:r,unlinkPanels:n})=>{let a;if(We(e)){let[i,o]=e.map(s=>Rt(s).locale(t));return n||(o=i.add(1,r)),[i,o]}else e?a=Rt(e):a=Rt();return a=a.locale(t),[a,a.add(1,r)]},iQe=(e,t,{columnIndexOffset:r,startDate:n,nextEndDate:a,now:i,unit:o,relativeDateGetter:s,setCellMetadata:l,setRowMetadata:u})=>{for(let c=0;c["normal","today"].includes(e),oQe=(e,t)=>{const{lang:r}=fr(),n=G(),a=G(),i=G(),o=G(),s=G([[],[],[],[],[],[]]);let l=!1;const u=e.date.$locale().weekStart||7,c=e.date.locale("en").localeData().weekdaysShort().map(k=>k.toLowerCase()),f=F(()=>u>3?7-u:-u),d=F(()=>{const k=e.date.startOf("month");return k.subtract(k.day()||7,"day")}),h=F(()=>c.concat(c).slice(u,u+7)),v=F(()=>aee(b(w)).some(k=>k.isCurrent)),p=F(()=>{const k=e.date.startOf("month"),z=k.day()||7,$=k.daysInMonth(),j=k.subtract(1,"month").daysInMonth();return{startOfMonthDay:z,dateCountOfMonth:$,dateCountOfLastMonth:j}}),g=F(()=>e.selectionMode==="dates"?Nu(e.parsedValue):[]),m=(k,{count:z,rowIndex:$,columnIndex:j})=>{const{startOfMonthDay:X,dateCountOfMonth:Q,dateCountOfLastMonth:se}=b(p),ee=b(f);if($>=0&&$<=1){const K=X+ee<0?7+X+ee:X+ee;if(j+$*7>=K)return k.text=z,!0;k.text=se-(K-j%7)+1+$*7,k.type="prev-month"}else return z<=Q?k.text=z:(k.text=z-Q,k.type="next-month"),!0;return!1},y=(k,{columnIndex:z,rowIndex:$},j)=>{const{disabledDate:X,cellClassName:Q}=e,se=b(g),ee=m(k,{count:j,rowIndex:$,columnIndex:z}),K=k.dayjs.toDate();return k.selected=se.find(Z=>Z.valueOf()===k.dayjs.valueOf()),k.isSelected=!!k.selected,k.isCurrent=S(k),k.disabled=X==null?void 0:X(K),k.customClass=Q==null?void 0:Q(K),ee},_=k=>{if(e.selectionMode==="week"){const[z,$]=e.showWeekNumber?[1,7]:[0,6],j=B(k[z+1]);k[z].inRange=j,k[z].start=j,k[$].inRange=j,k[$].end=j}},w=F(()=>{const{minDate:k,maxDate:z,rangeState:$,showWeekNumber:j}=e,X=b(f),Q=b(s),se="day";let ee=1;if(j)for(let K=0;K<6;K++)Q[K][0]||(Q[K][0]={type:"week",text:b(d).add(K*7+1,se).week()});return iQe({row:6,column:7},Q,{startDate:k,columnIndexOffset:j?1:0,nextEndDate:$.endDate||z||$.selecting&&k||null,now:Rt().locale(b(r)).startOf(se),unit:se,relativeDateGetter:K=>b(d).add(K-X,se),setCellMetadata:(...K)=>{y(...K,ee)&&(ee+=1)},setRowMetadata:_}),Q});Ae(()=>e.date,async()=>{var k;(k=b(n))!=null&&k.contains(document.activeElement)&&(await qe(),await x())});const x=async()=>{var k;return(k=b(a))==null?void 0:k.focus()},S=k=>e.selectionMode==="date"&&xI(k.type)&&T(k,e.parsedValue),T=(k,z)=>z?Rt(z).locale(b(r)).isSame(e.date.date(Number(k.text)),"day"):!1,A=(k,z)=>{const $=k*7+(z-(e.showWeekNumber?1:0))-b(f);return b(d).add($,"day")},C=k=>{var z;if(!e.rangeState.selecting)return;let $=k.target;if($.tagName==="SPAN"&&($=(z=$.parentNode)==null?void 0:z.parentNode),$.tagName==="DIV"&&($=$.parentNode),$.tagName!=="TD")return;const j=$.parentNode.rowIndex-1,X=$.cellIndex;b(w)[j][X].disabled||(j!==b(i)||X!==b(o))&&(i.value=j,o.value=X,t("changerange",{selecting:!0,endDate:A(j,X)}))},M=k=>!b(v)&&(k==null?void 0:k.text)===1&&k.type==="normal"||k.isCurrent,E=k=>{l||b(v)||e.selectionMode!=="date"||R(k,!0)},D=k=>{k.target.closest("td")&&(l=!0)},P=k=>{k.target.closest("td")&&(l=!1)},L=k=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:k,maxDate:null}),t("select",!0)):(k>=e.minDate?t("pick",{minDate:e.minDate,maxDate:k}):t("pick",{minDate:k,maxDate:e.minDate}),t("select",!1))},I=k=>{const z=k.week(),$=`${k.year()}w${z}`;t("pick",{year:k.year(),week:z,value:$,date:k.startOf("week")})},O=(k,z)=>{const $=z?Nu(e.parsedValue).filter(j=>(j==null?void 0:j.valueOf())!==k.valueOf()):Nu(e.parsedValue).concat([k]);t("pick",$)},R=(k,z=!1)=>{const $=k.target.closest("td");if(!$)return;const j=$.parentNode.rowIndex-1,X=$.cellIndex,Q=b(w)[j][X];if(Q.disabled||Q.type==="week")return;const se=A(j,X);switch(e.selectionMode){case"range":{L(se);break}case"date":{t("pick",se,z);break}case"week":{I(se);break}case"dates":{O(se,!!Q.selected);break}}},B=k=>{if(e.selectionMode!=="week")return!1;let z=e.date.startOf("day");if(k.type==="prev-month"&&(z=z.subtract(1,"month")),k.type==="next-month"&&(z=z.add(1,"month")),z=z.date(Number.parseInt(k.text,10)),e.parsedValue&&!Array.isArray(e.parsedValue)){const $=(e.parsedValue.day()-u+7)%7-1;return e.parsedValue.subtract($,"day").isSame(z,"day")}return!1};return{WEEKS:h,rows:w,tbodyRef:n,currentCellRef:a,focus:x,isCurrent:S,isWeekActive:B,isSelectedCell:M,handlePickDate:R,handleMouseUp:P,handleMouseDown:D,handleMouseMove:C,handleFocus:E}},sQe=(e,{isCurrent:t,isWeekActive:r})=>{const n=Ce("date-table"),{t:a}=fr(),i=F(()=>[n.b(),{"is-week-mode":e.selectionMode==="week"}]),o=F(()=>a("el.datepicker.dateTablePrompt")),s=F(()=>a("el.datepicker.week"));return{tableKls:i,tableLabel:o,weekLabel:s,getCellClasses:c=>{const f=[];return xI(c.type)&&!c.disabled?(f.push("available"),c.type==="today"&&f.push("today")):f.push(c.type),t(c)&&f.push("current"),c.inRange&&(xI(c.type)||e.selectionMode==="week")&&(f.push("in-range"),c.start&&f.push("start-date"),c.end&&f.push("end-date")),c.disabled&&f.push("disabled"),c.selected&&f.push("selected"),c.customClass&&f.push(c.customClass),f.join(" ")},getRowKls:c=>[n.e("row"),{current:r(c)}],t:a}},lQe=Oe({cell:{type:fe(Object)}});var uQe=te({name:"ElDatePickerCell",props:lQe,setup(e){const t=Ce("date-table-cell"),{slots:r}=Ye(D3);return()=>{const{cell:n}=e;if(r.default){const a=r.default(n).filter(i=>i.patchFlag!==-2&&i.type.toString()!=="Symbol(Comment)"&&i.type.toString()!=="Symbol(v-cmt)");if(a.length)return a}return J("div",{class:t.b()},[J("span",{class:t.e("text")},[n==null?void 0:n.text])])}}});const cQe=["aria-label"],fQe={key:0,scope:"col"},dQe=["aria-label"],hQe=["aria-current","aria-selected","tabindex"],vQe=te({__name:"basic-date-table",props:nQe,emits:aQe,setup(e,{expose:t,emit:r}){const n=e,{WEEKS:a,rows:i,tbodyRef:o,currentCellRef:s,focus:l,isCurrent:u,isWeekActive:c,isSelectedCell:f,handlePickDate:d,handleMouseUp:h,handleMouseDown:v,handleMouseMove:p,handleFocus:g}=oQe(n,r),{tableLabel:m,tableKls:y,weekLabel:_,getCellClasses:w,getRowKls:x,t:S}=sQe(n,{isCurrent:u,isWeekActive:c});return t({focus:l}),(T,A)=>(N(),U("table",{"aria-label":b(m),class:H(b(y)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:A[1]||(A[1]=(...C)=>b(d)&&b(d)(...C)),onMousemove:A[2]||(A[2]=(...C)=>b(p)&&b(p)(...C)),onMousedown:A[3]||(A[3]=it((...C)=>b(v)&&b(v)(...C),["prevent"])),onMouseup:A[4]||(A[4]=(...C)=>b(h)&&b(h)(...C))},[V("tbody",{ref_key:"tbodyRef",ref:o},[V("tr",null,[T.showWeekNumber?(N(),U("th",fQe,me(b(_)),1)):ce("v-if",!0),(N(!0),U(Be,null,ht(b(a),(C,M)=>(N(),U("th",{key:M,"aria-label":b(S)("el.datepicker.weeksFull."+C),scope:"col"},me(b(S)("el.datepicker.weeks."+C)),9,dQe))),128))]),(N(!0),U(Be,null,ht(b(i),(C,M)=>(N(),U("tr",{key:M,class:H(b(x)(C[1]))},[(N(!0),U(Be,null,ht(C,(E,D)=>(N(),U("td",{key:`${M}.${D}`,ref_for:!0,ref:P=>b(f)(E)&&(s.value=P),class:H(b(w)(E)),"aria-current":E.isCurrent?"date":void 0,"aria-selected":E.isCurrent,tabindex:b(f)(E)?0:-1,onFocus:A[0]||(A[0]=(...P)=>b(g)&&b(g)(...P))},[J(b(uQe),{cell:E},null,8,["cell"])],42,hQe))),128))],2))),128))],512)],42,cQe))}});var AI=ke(vQe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const pQe=Oe({...P3,selectionMode:Kre("month")}),gQe=["aria-label"],mQe=["aria-selected","aria-label","tabindex","onKeydown"],yQe={class:"cell"},_Qe=te({__name:"basic-month-table",props:pQe,emits:["changerange","pick","select"],setup(e,{expose:t,emit:r}){const n=e,a=(w,x,S)=>{const T=Rt().locale(S).startOf("month").month(x).year(w),A=T.daysInMonth();return hf(A).map(C=>T.add(C,"day").toDate())},i=Ce("month-table"),{t:o,lang:s}=fr(),l=G(),u=G(),c=G(n.date.locale("en").localeData().monthsShort().map(w=>w.toLowerCase())),f=G([[],[],[]]),d=G(),h=G(),v=F(()=>{var w,x;const S=f.value,T=Rt().locale(s.value).startOf("month");for(let A=0;A<3;A++){const C=S[A];for(let M=0;M<4;M++){const E=C[M]||(C[M]={row:A,column:M,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});E.type="normal";const D=A*4+M,P=n.date.startOf("year").month(D),L=n.rangeState.endDate||n.maxDate||n.rangeState.selecting&&n.minDate||null;E.inRange=!!(n.minDate&&P.isSameOrAfter(n.minDate,"month")&&L&&P.isSameOrBefore(L,"month"))||!!(n.minDate&&P.isSameOrBefore(n.minDate,"month")&&L&&P.isSameOrAfter(L,"month")),(w=n.minDate)!=null&&w.isSameOrAfter(L)?(E.start=!!(L&&P.isSame(L,"month")),E.end=n.minDate&&P.isSame(n.minDate,"month")):(E.start=!!(n.minDate&&P.isSame(n.minDate,"month")),E.end=!!(L&&P.isSame(L,"month"))),T.isSame(P)&&(E.type="today"),E.text=D,E.disabled=((x=n.disabledDate)==null?void 0:x.call(n,P.toDate()))||!1}}return S}),p=()=>{var w;(w=u.value)==null||w.focus()},g=w=>{const x={},S=n.date.year(),T=new Date,A=w.text;return x.disabled=n.disabledDate?a(S,A,s.value).every(n.disabledDate):!1,x.current=Nu(n.parsedValue).findIndex(C=>Rt.isDayjs(C)&&C.year()===S&&C.month()===A)>=0,x.today=T.getFullYear()===S&&T.getMonth()===A,w.inRange&&(x["in-range"]=!0,w.start&&(x["start-date"]=!0),w.end&&(x["end-date"]=!0)),x},m=w=>{const x=n.date.year(),S=w.text;return Nu(n.date).findIndex(T=>T.year()===x&&T.month()===S)>=0},y=w=>{var x;if(!n.rangeState.selecting)return;let S=w.target;if(S.tagName==="A"&&(S=(x=S.parentNode)==null?void 0:x.parentNode),S.tagName==="DIV"&&(S=S.parentNode),S.tagName!=="TD")return;const T=S.parentNode.rowIndex,A=S.cellIndex;v.value[T][A].disabled||(T!==d.value||A!==h.value)&&(d.value=T,h.value=A,r("changerange",{selecting:!0,endDate:n.date.startOf("year").month(T*4+A)}))},_=w=>{var x;const S=(x=w.target)==null?void 0:x.closest("td");if((S==null?void 0:S.tagName)!=="TD"||Ws(S,"disabled"))return;const T=S.cellIndex,C=S.parentNode.rowIndex*4+T,M=n.date.startOf("year").month(C);n.selectionMode==="range"?n.rangeState.selecting?(n.minDate&&M>=n.minDate?r("pick",{minDate:n.minDate,maxDate:M}):r("pick",{minDate:M,maxDate:n.minDate}),r("select",!1)):(r("pick",{minDate:M,maxDate:null}),r("select",!0)):r("pick",C)};return Ae(()=>n.date,async()=>{var w,x;(w=l.value)!=null&&w.contains(document.activeElement)&&(await qe(),(x=u.value)==null||x.focus())}),t({focus:p}),(w,x)=>(N(),U("table",{role:"grid","aria-label":b(o)("el.datepicker.monthTablePrompt"),class:H(b(i).b()),onClick:_,onMousemove:y},[V("tbody",{ref_key:"tbodyRef",ref:l},[(N(!0),U(Be,null,ht(b(v),(S,T)=>(N(),U("tr",{key:T},[(N(!0),U(Be,null,ht(S,(A,C)=>(N(),U("td",{key:C,ref_for:!0,ref:M=>m(A)&&(u.value=M),class:H(g(A)),"aria-selected":`${m(A)}`,"aria-label":b(o)(`el.datepicker.month${+A.text+1}`),tabindex:m(A)?0:-1,onKeydown:[dr(it(_,["prevent","stop"]),["space"]),dr(it(_,["prevent","stop"]),["enter"])]},[V("div",null,[V("span",yQe,me(b(o)("el.datepicker.months."+c.value[A.text])),1)])],42,mQe))),128))]))),128))],512)],42,gQe))}});var TI=ke(_Qe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date:bQe,disabledDate:wQe,parsedValue:SQe}=P3,xQe=Oe({date:bQe,disabledDate:wQe,parsedValue:SQe}),AQe=["aria-label"],TQe=["aria-selected","tabindex","onKeydown"],CQe={class:"cell"},EQe={key:1},MQe=te({__name:"basic-year-table",props:xQe,emits:["pick"],setup(e,{expose:t,emit:r}){const n=e,a=(p,g)=>{const m=Rt(String(p)).locale(g).startOf("year"),_=m.endOf("year").dayOfYear();return hf(_).map(w=>m.add(w,"day").toDate())},i=Ce("year-table"),{t:o,lang:s}=fr(),l=G(),u=G(),c=F(()=>Math.floor(n.date.year()/10)*10),f=()=>{var p;(p=u.value)==null||p.focus()},d=p=>{const g={},m=Rt().locale(s.value);return g.disabled=n.disabledDate?a(p,s.value).every(n.disabledDate):!1,g.current=Nu(n.parsedValue).findIndex(y=>y.year()===p)>=0,g.today=m.year()===p,g},h=p=>p===c.value&&n.date.year()c.value+9||Nu(n.date).findIndex(g=>g.year()===p)>=0,v=p=>{const m=p.target.closest("td");if(m&&m.textContent){if(Ws(m,"disabled"))return;const y=m.textContent||m.innerText;r("pick",Number(y))}};return Ae(()=>n.date,async()=>{var p,g;(p=l.value)!=null&&p.contains(document.activeElement)&&(await qe(),(g=u.value)==null||g.focus())}),t({focus:f}),(p,g)=>(N(),U("table",{role:"grid","aria-label":b(o)("el.datepicker.yearTablePrompt"),class:H(b(i).b()),onClick:v},[V("tbody",{ref_key:"tbodyRef",ref:l},[(N(),U(Be,null,ht(3,(m,y)=>V("tr",{key:y},[(N(),U(Be,null,ht(4,(_,w)=>(N(),U(Be,{key:y+"_"+w},[y*4+w<10?(N(),U("td",{key:0,ref_for:!0,ref:x=>h(b(c)+y*4+w)&&(u.value=x),class:H(["available",d(b(c)+y*4+w)]),"aria-selected":`${h(b(c)+y*4+w)}`,tabindex:h(b(c)+y*4+w)?0:-1,onKeydown:[dr(it(v,["prevent","stop"]),["space"]),dr(it(v,["prevent","stop"]),["enter"])]},[V("span",CQe,me(b(c)+y*4+w),1)],42,TQe)):(N(),U("td",EQe))],64))),64))])),64))],512)],10,AQe))}});var DQe=ke(MQe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const PQe=["onClick"],LQe=["aria-label"],IQe=["aria-label"],RQe=["aria-label"],OQe=["aria-label"],kQe=te({__name:"panel-date-pick",props:rQe,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const r=e,n=(be,pe,de)=>!0,a=Ce("picker-panel"),i=Ce("date-picker"),o=Jh(),s=$a(),{t:l,lang:u}=fr(),c=Ye("EP_PICKER_BASE"),f=Ye(PT),{shortcuts:d,disabledDate:h,cellClassName:v,defaultTime:p}=c.props,g=Sn(c.props,"defaultValue"),m=G(),y=G(Rt().locale(u.value)),_=G(!1);let w=!1;const x=F(()=>Rt(p).locale(u.value)),S=F(()=>y.value.month()),T=F(()=>y.value.year()),A=G([]),C=G(null),M=G(null),E=be=>A.value.length>0?n(be,A.value,r.format||"HH:mm:ss"):!0,D=be=>p&&!oe.value&&!_.value&&!w?x.value.year(be.year()).month(be.month()).date(be.date()):ee.value?be.millisecond(0):be.startOf("day"),P=(be,...pe)=>{if(!be)t("pick",be,...pe);else if(We(be)){const de=be.map(D);t("pick",de,...pe)}else t("pick",D(be),...pe);C.value=null,M.value=null,_.value=!1,w=!1},L=(be,pe)=>{if(z.value==="date"){be=be;let de=r.parsedValue?r.parsedValue.year(be.year()).month(be.month()).date(be.date()):be;E(de)||(de=A.value[0][0].year(be.year()).month(be.month()).date(be.date())),y.value=de,P(de,ee.value||pe)}else z.value==="week"?P(be.date):z.value==="dates"&&P(be,!0)},I=be=>{const pe=be?"add":"subtract";y.value=y.value[pe](1,"month"),tt("month")},O=be=>{const pe=y.value,de=be?"add":"subtract";y.value=R.value==="year"?pe[de](10,"year"):pe[de](1,"year"),tt("year")},R=G("date"),B=F(()=>{const be=l("el.datepicker.year");if(R.value==="year"){const pe=Math.floor(T.value/10)*10;return be?`${pe} ${be} - ${pe+9} ${be}`:`${pe} - ${pe+9}`}return`${T.value} ${be}`}),k=be=>{const pe=dt(be.value)?be.value():be.value;if(pe){w=!0,P(Rt(pe).locale(u.value));return}be.onClick&&be.onClick({attrs:o,slots:s,emit:t})},z=F(()=>{const{type:be}=r;return["week","month","year","dates"].includes(be)?be:"date"}),$=F(()=>z.value==="date"?R.value:z.value),j=F(()=>!!d.length),X=async be=>{y.value=y.value.startOf("month").month(be),z.value==="month"?P(y.value,!1):(R.value="date",["month","year","date","week"].includes(z.value)&&(P(y.value,!0),await qe(),gt())),tt("month")},Q=async be=>{z.value==="year"?(y.value=y.value.startOf("year").year(be),P(y.value,!1)):(y.value=y.value.year(be),R.value="month",["month","year","date","week"].includes(z.value)&&(P(y.value,!0),await qe(),gt())),tt("year")},se=async be=>{R.value=be,await qe(),gt()},ee=F(()=>r.type==="datetime"||r.type==="datetimerange"),K=F(()=>ee.value||z.value==="dates"),Z=F(()=>h?r.parsedValue?We(r.parsedValue)?h(r.parsedValue[0].toDate()):h(r.parsedValue.toDate()):!0:!1),ne=()=>{if(z.value==="dates")P(r.parsedValue);else{let be=r.parsedValue;if(!be){const pe=Rt(p).locale(u.value),de=Ue();be=pe.year(de.year()).month(de.month()).date(de.date())}y.value=be,P(be)}},re=F(()=>h?h(Rt().locale(u.value).toDate()):!1),ie=()=>{const pe=Rt().locale(u.value).toDate();_.value=!0,(!h||!h(pe))&&E(pe)&&(y.value=Rt().locale(u.value),P(y.value))},Y=F(()=>r.timeFormat||Qte(r.format)),q=F(()=>r.dateFormat||qte(r.format)),oe=F(()=>{if(M.value)return M.value;if(!(!r.parsedValue&&!g.value))return(r.parsedValue||y.value).format(Y.value)}),ve=F(()=>{if(C.value)return C.value;if(!(!r.parsedValue&&!g.value))return(r.parsedValue||y.value).format(q.value)}),_e=G(!1),ge=()=>{_e.value=!0},Le=()=>{_e.value=!1},Se=be=>({hour:be.hour(),minute:be.minute(),second:be.second(),year:be.year(),month:be.month(),date:be.date()}),xe=(be,pe,de)=>{const{hour:Me,minute:ae,second:Ge}=Se(be),St=r.parsedValue?r.parsedValue.hour(Me).minute(ae).second(Ge):be;y.value=St,P(y.value,!0),de||(_e.value=pe)},Te=be=>{const pe=Rt(be,Y.value).locale(u.value);if(pe.isValid()&&E(pe)){const{year:de,month:Me,date:ae}=Se(y.value);y.value=pe.year(de).month(Me).date(ae),M.value=null,_e.value=!1,P(y.value,!0)}},Ve=be=>{const pe=Rt(be,q.value).locale(u.value);if(pe.isValid()){if(h&&h(pe.toDate()))return;const{hour:de,minute:Me,second:ae}=Se(y.value);y.value=pe.hour(de).minute(Me).second(ae),C.value=null,P(y.value,!0)}},He=be=>Rt.isDayjs(be)&&be.isValid()&&(h?!h(be.toDate()):!0),je=be=>z.value==="dates"?be.map(pe=>pe.format(r.format)):be.format(r.format),Pe=be=>Rt(be,r.format).locale(u.value),Ue=()=>{const be=Rt(g.value).locale(u.value);if(!g.value){const pe=x.value;return Rt().hour(pe.hour()).minute(pe.minute()).second(pe.second()).locale(u.value)}return be},gt=async()=>{var be;["week","month","year","date"].includes(z.value)&&((be=m.value)==null||be.focus(),z.value==="week"&&Gt(Qe.down))},At=be=>{const{code:pe}=be;[Qe.up,Qe.down,Qe.left,Qe.right,Qe.home,Qe.end,Qe.pageUp,Qe.pageDown].includes(pe)&&(Gt(pe),be.stopPropagation(),be.preventDefault()),[Qe.enter,Qe.space,Qe.numpadEnter].includes(pe)&&C.value===null&&M.value===null&&(be.preventDefault(),P(y.value,!1))},Gt=be=>{var pe;const{up:de,down:Me,left:ae,right:Ge,home:St,end:Kt,pageUp:Xn,pageDown:An}=Qe,Io={year:{[de]:-4,[Me]:4,[ae]:-1,[Ge]:1,offset:(we,ze)=>we.setFullYear(we.getFullYear()+ze)},month:{[de]:-4,[Me]:4,[ae]:-1,[Ge]:1,offset:(we,ze)=>we.setMonth(we.getMonth()+ze)},week:{[de]:-1,[Me]:1,[ae]:-1,[Ge]:1,offset:(we,ze)=>we.setDate(we.getDate()+ze*7)},date:{[de]:-7,[Me]:7,[ae]:-1,[Ge]:1,[St]:we=>-we.getDay(),[Kt]:we=>-we.getDay()+6,[Xn]:we=>-new Date(we.getFullYear(),we.getMonth(),0).getDate(),[An]:we=>new Date(we.getFullYear(),we.getMonth()+1,0).getDate(),offset:(we,ze)=>we.setDate(we.getDate()+ze)}},Ya=y.value.toDate();for(;Math.abs(y.value.diff(Ya,"year",!0))<1;){const we=Io[$.value];if(!we)return;if(we.offset(Ya,dt(we[be])?we[be](Ya):(pe=we[be])!=null?pe:0),h&&h(Ya))break;const ze=Rt(Ya).locale(u.value);y.value=ze,t("pick",ze,!0);break}},tt=be=>{t("panel-change",y.value.toDate(),be,R.value)};return Ae(()=>z.value,be=>{if(["month","year"].includes(be)){R.value=be;return}R.value="date"},{immediate:!0}),Ae(()=>R.value,()=>{f==null||f.updatePopper()}),Ae(()=>g.value,be=>{be&&(y.value=Ue())},{immediate:!0}),Ae(()=>r.parsedValue,be=>{if(be){if(z.value==="dates"||Array.isArray(be))return;y.value=be}else y.value=Ue()},{immediate:!0}),t("set-picker-option",["isValidValue",He]),t("set-picker-option",["formatToString",je]),t("set-picker-option",["parseUserInput",Pe]),t("set-picker-option",["handleFocusPicker",gt]),(be,pe)=>(N(),U("div",{class:H([b(a).b(),b(i).b(),{"has-sidebar":be.$slots.sidebar||b(j),"has-time":b(ee)}])},[V("div",{class:H(b(a).e("body-wrapper"))},[ye(be.$slots,"sidebar",{class:H(b(a).e("sidebar"))}),b(j)?(N(),U("div",{key:0,class:H(b(a).e("sidebar"))},[(N(!0),U(Be,null,ht(b(d),(de,Me)=>(N(),U("button",{key:Me,type:"button",class:H(b(a).e("shortcut")),onClick:ae=>k(de)},me(de.text),11,PQe))),128))],2)):ce("v-if",!0),V("div",{class:H(b(a).e("body"))},[b(ee)?(N(),U("div",{key:0,class:H(b(i).e("time-header"))},[V("span",{class:H(b(i).e("editor-wrap"))},[J(b(li),{placeholder:b(l)("el.datepicker.selectDate"),"model-value":b(ve),size:"small","validate-event":!1,onInput:pe[0]||(pe[0]=de=>C.value=de),onChange:Ve},null,8,["placeholder","model-value"])],2),Ct((N(),U("span",{class:H(b(i).e("editor-wrap"))},[J(b(li),{placeholder:b(l)("el.datepicker.selectTime"),"model-value":b(oe),size:"small","validate-event":!1,onFocus:ge,onInput:pe[1]||(pe[1]=de=>M.value=de),onChange:Te},null,8,["placeholder","model-value"]),J(b(h2),{visible:_e.value,format:b(Y),"parsed-value":y.value,onPick:xe},null,8,["visible","format","parsed-value"])],2)),[[b(Df),Le]])],2)):ce("v-if",!0),Ct(V("div",{class:H([b(i).e("header"),(R.value==="year"||R.value==="month")&&b(i).e("header--bordered")])},[V("span",{class:H(b(i).e("prev-btn"))},[V("button",{type:"button","aria-label":b(l)("el.datepicker.prevYear"),class:H(["d-arrow-left",b(a).e("icon-btn")]),onClick:pe[2]||(pe[2]=de=>O(!1))},[J(b(Ze),null,{default:le(()=>[J(b(lg))]),_:1})],10,LQe),Ct(V("button",{type:"button","aria-label":b(l)("el.datepicker.prevMonth"),class:H([b(a).e("icon-btn"),"arrow-left"]),onClick:pe[3]||(pe[3]=de=>I(!1))},[J(b(Ze),null,{default:le(()=>[J(b(Tf))]),_:1})],10,IQe),[[hr,R.value==="date"]])],2),V("span",{role:"button",class:H(b(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:pe[4]||(pe[4]=dr(de=>se("year"),["enter"])),onClick:pe[5]||(pe[5]=de=>se("year"))},me(b(B)),35),Ct(V("span",{role:"button","aria-live":"polite",tabindex:"0",class:H([b(i).e("header-label"),{active:R.value==="month"}]),onKeydown:pe[6]||(pe[6]=dr(de=>se("month"),["enter"])),onClick:pe[7]||(pe[7]=de=>se("month"))},me(b(l)(`el.datepicker.month${b(S)+1}`)),35),[[hr,R.value==="date"]]),V("span",{class:H(b(i).e("next-btn"))},[Ct(V("button",{type:"button","aria-label":b(l)("el.datepicker.nextMonth"),class:H([b(a).e("icon-btn"),"arrow-right"]),onClick:pe[8]||(pe[8]=de=>I(!0))},[J(b(Ze),null,{default:le(()=>[J(b(Mi))]),_:1})],10,RQe),[[hr,R.value==="date"]]),V("button",{type:"button","aria-label":b(l)("el.datepicker.nextYear"),class:H([b(a).e("icon-btn"),"d-arrow-right"]),onClick:pe[9]||(pe[9]=de=>O(!0))},[J(b(Ze),null,{default:le(()=>[J(b(ug))]),_:1})],10,OQe)],2)],2),[[hr,R.value!=="time"]]),V("div",{class:H(b(a).e("content")),onKeydown:At},[R.value==="date"?(N(),he(AI,{key:0,ref_key:"currentViewRef",ref:m,"selection-mode":b(z),date:y.value,"parsed-value":be.parsedValue,"disabled-date":b(h),"cell-class-name":b(v),onPick:L},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):ce("v-if",!0),R.value==="year"?(N(),he(DQe,{key:1,ref_key:"currentViewRef",ref:m,date:y.value,"disabled-date":b(h),"parsed-value":be.parsedValue,onPick:Q},null,8,["date","disabled-date","parsed-value"])):ce("v-if",!0),R.value==="month"?(N(),he(TI,{key:2,ref_key:"currentViewRef",ref:m,date:y.value,"parsed-value":be.parsedValue,"disabled-date":b(h),onPick:X},null,8,["date","parsed-value","disabled-date"])):ce("v-if",!0)],34)],2)],2),Ct(V("div",{class:H(b(a).e("footer"))},[Ct(J(b(Ja),{text:"",size:"small",class:H(b(a).e("link-btn")),disabled:b(re),onClick:ie},{default:le(()=>[nr(me(b(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[hr,b(z)!=="dates"]]),J(b(Ja),{plain:"",size:"small",class:H(b(a).e("link-btn")),disabled:b(Z),onClick:ne},{default:le(()=>[nr(me(b(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[hr,b(K)&&R.value==="date"]])],2))}});var NQe=ke(kQe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const BQe=Oe({...Yre,...jre}),FQe=e=>{const{emit:t}=It(),r=Jh(),n=$a();return i=>{const o=dt(i.value)?i.value():i.value;if(o){t("pick",[Rt(o[0]).locale(e.value),Rt(o[1]).locale(e.value)]);return}i.onClick&&i.onClick({attrs:r,slots:n,emit:t})}},Zre=(e,{defaultValue:t,leftDate:r,rightDate:n,unit:a,onParsedValueChanged:i})=>{const{emit:o}=It(),{pickerNs:s}=Ye(D3),l=Ce("date-range-picker"),{t:u,lang:c}=fr(),f=FQe(c),d=G(),h=G(),v=G({endDate:null,selecting:!1}),p=_=>{v.value=_},g=(_=!1)=>{const w=b(d),x=b(h);SI([w,x])&&o("pick",[w,x],_)},m=_=>{v.value.selecting=_,_||(v.value.endDate=null)},y=()=>{const[_,w]=Xre(b(t),{lang:b(c),unit:a,unlinkPanels:e.unlinkPanels});d.value=void 0,h.value=void 0,r.value=_,n.value=w};return Ae(t,_=>{_&&y()},{immediate:!0}),Ae(()=>e.parsedValue,_=>{if(We(_)&&_.length===2){const[w,x]=_;d.value=w,r.value=w,h.value=x,i(b(d),b(h))}else y()},{immediate:!0}),{minDate:d,maxDate:h,rangeState:v,lang:c,ppNs:s,drpNs:l,handleChangeRange:p,handleRangeConfirm:g,handleShortcutClick:f,onSelect:m,t:u}},VQe=["onClick"],zQe=["aria-label"],HQe=["aria-label"],GQe=["disabled","aria-label"],UQe=["disabled","aria-label"],$Qe=["disabled","aria-label"],WQe=["disabled","aria-label"],YQe=["aria-label"],jQe=["aria-label"],pw="month",KQe=te({__name:"panel-date-range",props:BQe,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const r=e,n=Ye("EP_PICKER_BASE"),{disabledDate:a,cellClassName:i,format:o,defaultTime:s,clearable:l}=n.props,u=Sn(n.props,"shortcuts"),c=Sn(n.props,"defaultValue"),{lang:f}=fr(),d=G(Rt().locale(f.value)),h=G(Rt().locale(f.value).add(1,pw)),{minDate:v,maxDate:p,rangeState:g,ppNs:m,drpNs:y,handleChangeRange:_,handleRangeConfirm:w,handleShortcutClick:x,onSelect:S,t:T}=Zre(r,{defaultValue:c,leftDate:d,rightDate:h,unit:pw,onParsedValueChanged:pe}),A=G({min:null,max:null}),C=G({min:null,max:null}),M=F(()=>`${d.value.year()} ${T("el.datepicker.year")} ${T(`el.datepicker.month${d.value.month()+1}`)}`),E=F(()=>`${h.value.year()} ${T("el.datepicker.year")} ${T(`el.datepicker.month${h.value.month()+1}`)}`),D=F(()=>d.value.year()),P=F(()=>d.value.month()),L=F(()=>h.value.year()),I=F(()=>h.value.month()),O=F(()=>!!u.value.length),R=F(()=>A.value.min!==null?A.value.min:v.value?v.value.format(j.value):""),B=F(()=>A.value.max!==null?A.value.max:p.value||v.value?(p.value||v.value).format(j.value):""),k=F(()=>C.value.min!==null?C.value.min:v.value?v.value.format($.value):""),z=F(()=>C.value.max!==null?C.value.max:p.value||v.value?(p.value||v.value).format($.value):""),$=F(()=>r.timeFormat||Qte(o)),j=F(()=>r.dateFormat||qte(o)),X=de=>SI(de)&&(a?!a(de[0].toDate())&&!a(de[1].toDate()):!0),Q=()=>{d.value=d.value.subtract(1,"year"),r.unlinkPanels||(h.value=d.value.add(1,"month")),Y("year")},se=()=>{d.value=d.value.subtract(1,"month"),r.unlinkPanels||(h.value=d.value.add(1,"month")),Y("month")},ee=()=>{r.unlinkPanels?h.value=h.value.add(1,"year"):(d.value=d.value.add(1,"year"),h.value=d.value.add(1,"month")),Y("year")},K=()=>{r.unlinkPanels?h.value=h.value.add(1,"month"):(d.value=d.value.add(1,"month"),h.value=d.value.add(1,"month")),Y("month")},Z=()=>{d.value=d.value.add(1,"year"),Y("year")},ne=()=>{d.value=d.value.add(1,"month"),Y("month")},re=()=>{h.value=h.value.subtract(1,"year"),Y("year")},ie=()=>{h.value=h.value.subtract(1,"month"),Y("month")},Y=de=>{t("panel-change",[d.value.toDate(),h.value.toDate()],de)},q=F(()=>{const de=(P.value+1)%12,Me=P.value+1>=12?1:0;return r.unlinkPanels&&new Date(D.value+Me,de)r.unlinkPanels&&L.value*12+I.value-(D.value*12+P.value+1)>=12),ve=F(()=>!(v.value&&p.value&&!g.value.selecting&&SI([v.value,p.value]))),_e=F(()=>r.type==="datetime"||r.type==="datetimerange"),ge=(de,Me)=>{if(de)return s?Rt(s[Me]||s).locale(f.value).year(de.year()).month(de.month()).date(de.date()):de},Le=(de,Me=!0)=>{const ae=de.minDate,Ge=de.maxDate,St=ge(ae,0),Kt=ge(Ge,1);p.value===Kt&&v.value===St||(t("calendar-change",[ae.toDate(),Ge&&Ge.toDate()]),p.value=Kt,v.value=St,!(!Me||_e.value)&&w())},Se=G(!1),xe=G(!1),Te=()=>{Se.value=!1},Ve=()=>{xe.value=!1},He=(de,Me)=>{A.value[Me]=de;const ae=Rt(de,j.value).locale(f.value);if(ae.isValid()){if(a&&a(ae.toDate()))return;Me==="min"?(d.value=ae,v.value=(v.value||d.value).year(ae.year()).month(ae.month()).date(ae.date()),!r.unlinkPanels&&(!p.value||p.value.isBefore(v.value))&&(h.value=ae.add(1,"month"),p.value=v.value.add(1,"month"))):(h.value=ae,p.value=(p.value||h.value).year(ae.year()).month(ae.month()).date(ae.date()),!r.unlinkPanels&&(!v.value||v.value.isAfter(p.value))&&(d.value=ae.subtract(1,"month"),v.value=p.value.subtract(1,"month")))}},je=(de,Me)=>{A.value[Me]=null},Pe=(de,Me)=>{C.value[Me]=de;const ae=Rt(de,$.value).locale(f.value);ae.isValid()&&(Me==="min"?(Se.value=!0,v.value=(v.value||d.value).hour(ae.hour()).minute(ae.minute()).second(ae.second()),(!p.value||p.value.isBefore(v.value))&&(p.value=v.value)):(xe.value=!0,p.value=(p.value||h.value).hour(ae.hour()).minute(ae.minute()).second(ae.second()),h.value=p.value,p.value&&p.value.isBefore(v.value)&&(v.value=p.value)))},Ue=(de,Me)=>{C.value[Me]=null,Me==="min"?(d.value=v.value,Se.value=!1):(h.value=p.value,xe.value=!1)},gt=(de,Me,ae)=>{C.value.min||(de&&(d.value=de,v.value=(v.value||d.value).hour(de.hour()).minute(de.minute()).second(de.second())),ae||(Se.value=Me),(!p.value||p.value.isBefore(v.value))&&(p.value=v.value,h.value=de))},At=(de,Me,ae)=>{C.value.max||(de&&(h.value=de,p.value=(p.value||h.value).hour(de.hour()).minute(de.minute()).second(de.second())),ae||(xe.value=Me),p.value&&p.value.isBefore(v.value)&&(v.value=p.value))},Gt=()=>{d.value=Xre(b(c),{lang:b(f),unit:"month",unlinkPanels:r.unlinkPanels})[0],h.value=d.value.add(1,"month"),t("pick",null)},tt=de=>We(de)?de.map(Me=>Me.format(o)):de.format(o),be=de=>We(de)?de.map(Me=>Rt(Me,o).locale(f.value)):Rt(de,o).locale(f.value);function pe(de,Me){if(r.unlinkPanels&&Me){const ae=(de==null?void 0:de.year())||0,Ge=(de==null?void 0:de.month())||0,St=Me.year(),Kt=Me.month();h.value=ae===St&&Ge===Kt?Me.add(1,pw):Me}else h.value=d.value.add(1,pw),Me&&(h.value=h.value.hour(Me.hour()).minute(Me.minute()).second(Me.second()))}return t("set-picker-option",["isValidValue",X]),t("set-picker-option",["parseUserInput",be]),t("set-picker-option",["formatToString",tt]),t("set-picker-option",["handleClear",Gt]),(de,Me)=>(N(),U("div",{class:H([b(m).b(),b(y).b(),{"has-sidebar":de.$slots.sidebar||b(O),"has-time":b(_e)}])},[V("div",{class:H(b(m).e("body-wrapper"))},[ye(de.$slots,"sidebar",{class:H(b(m).e("sidebar"))}),b(O)?(N(),U("div",{key:0,class:H(b(m).e("sidebar"))},[(N(!0),U(Be,null,ht(b(u),(ae,Ge)=>(N(),U("button",{key:Ge,type:"button",class:H(b(m).e("shortcut")),onClick:St=>b(x)(ae)},me(ae.text),11,VQe))),128))],2)):ce("v-if",!0),V("div",{class:H(b(m).e("body"))},[b(_e)?(N(),U("div",{key:0,class:H(b(y).e("time-header"))},[V("span",{class:H(b(y).e("editors-wrap"))},[V("span",{class:H(b(y).e("time-picker-wrap"))},[J(b(li),{size:"small",disabled:b(g).selecting,placeholder:b(T)("el.datepicker.startDate"),class:H(b(y).e("editor")),"model-value":b(R),"validate-event":!1,onInput:Me[0]||(Me[0]=ae=>He(ae,"min")),onChange:Me[1]||(Me[1]=ae=>je(ae,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),Ct((N(),U("span",{class:H(b(y).e("time-picker-wrap"))},[J(b(li),{size:"small",class:H(b(y).e("editor")),disabled:b(g).selecting,placeholder:b(T)("el.datepicker.startTime"),"model-value":b(k),"validate-event":!1,onFocus:Me[2]||(Me[2]=ae=>Se.value=!0),onInput:Me[3]||(Me[3]=ae=>Pe(ae,"min")),onChange:Me[4]||(Me[4]=ae=>Ue(ae,"min"))},null,8,["class","disabled","placeholder","model-value"]),J(b(h2),{visible:Se.value,format:b($),"datetime-role":"start","parsed-value":d.value,onPick:gt},null,8,["visible","format","parsed-value"])],2)),[[b(Df),Te]])],2),V("span",null,[J(b(Ze),null,{default:le(()=>[J(b(Mi))]),_:1})]),V("span",{class:H([b(y).e("editors-wrap"),"is-right"])},[V("span",{class:H(b(y).e("time-picker-wrap"))},[J(b(li),{size:"small",class:H(b(y).e("editor")),disabled:b(g).selecting,placeholder:b(T)("el.datepicker.endDate"),"model-value":b(B),readonly:!b(v),"validate-event":!1,onInput:Me[5]||(Me[5]=ae=>He(ae,"max")),onChange:Me[6]||(Me[6]=ae=>je(ae,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),Ct((N(),U("span",{class:H(b(y).e("time-picker-wrap"))},[J(b(li),{size:"small",class:H(b(y).e("editor")),disabled:b(g).selecting,placeholder:b(T)("el.datepicker.endTime"),"model-value":b(z),readonly:!b(v),"validate-event":!1,onFocus:Me[7]||(Me[7]=ae=>b(v)&&(xe.value=!0)),onInput:Me[8]||(Me[8]=ae=>Pe(ae,"max")),onChange:Me[9]||(Me[9]=ae=>Ue(ae,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),J(b(h2),{"datetime-role":"end",visible:xe.value,format:b($),"parsed-value":h.value,onPick:At},null,8,["visible","format","parsed-value"])],2)),[[b(Df),Ve]])],2)],2)):ce("v-if",!0),V("div",{class:H([[b(m).e("content"),b(y).e("content")],"is-left"])},[V("div",{class:H(b(y).e("header"))},[V("button",{type:"button",class:H([b(m).e("icon-btn"),"d-arrow-left"]),"aria-label":b(T)("el.datepicker.prevYear"),onClick:Q},[J(b(Ze),null,{default:le(()=>[J(b(lg))]),_:1})],10,zQe),V("button",{type:"button",class:H([b(m).e("icon-btn"),"arrow-left"]),"aria-label":b(T)("el.datepicker.prevMonth"),onClick:se},[J(b(Ze),null,{default:le(()=>[J(b(Tf))]),_:1})],10,HQe),de.unlinkPanels?(N(),U("button",{key:0,type:"button",disabled:!b(oe),class:H([[b(m).e("icon-btn"),{"is-disabled":!b(oe)}],"d-arrow-right"]),"aria-label":b(T)("el.datepicker.nextYear"),onClick:Z},[J(b(Ze),null,{default:le(()=>[J(b(ug))]),_:1})],10,GQe)):ce("v-if",!0),de.unlinkPanels?(N(),U("button",{key:1,type:"button",disabled:!b(q),class:H([[b(m).e("icon-btn"),{"is-disabled":!b(q)}],"arrow-right"]),"aria-label":b(T)("el.datepicker.nextMonth"),onClick:ne},[J(b(Ze),null,{default:le(()=>[J(b(Mi))]),_:1})],10,UQe)):ce("v-if",!0),V("div",null,me(b(M)),1)],2),J(AI,{"selection-mode":"range",date:d.value,"min-date":b(v),"max-date":b(p),"range-state":b(g),"disabled-date":b(a),"cell-class-name":b(i),onChangerange:b(_),onPick:Le,onSelect:b(S)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),V("div",{class:H([[b(m).e("content"),b(y).e("content")],"is-right"])},[V("div",{class:H(b(y).e("header"))},[de.unlinkPanels?(N(),U("button",{key:0,type:"button",disabled:!b(oe),class:H([[b(m).e("icon-btn"),{"is-disabled":!b(oe)}],"d-arrow-left"]),"aria-label":b(T)("el.datepicker.prevYear"),onClick:re},[J(b(Ze),null,{default:le(()=>[J(b(lg))]),_:1})],10,$Qe)):ce("v-if",!0),de.unlinkPanels?(N(),U("button",{key:1,type:"button",disabled:!b(q),class:H([[b(m).e("icon-btn"),{"is-disabled":!b(q)}],"arrow-left"]),"aria-label":b(T)("el.datepicker.prevMonth"),onClick:ie},[J(b(Ze),null,{default:le(()=>[J(b(Tf))]),_:1})],10,WQe)):ce("v-if",!0),V("button",{type:"button","aria-label":b(T)("el.datepicker.nextYear"),class:H([b(m).e("icon-btn"),"d-arrow-right"]),onClick:ee},[J(b(Ze),null,{default:le(()=>[J(b(ug))]),_:1})],10,YQe),V("button",{type:"button",class:H([b(m).e("icon-btn"),"arrow-right"]),"aria-label":b(T)("el.datepicker.nextMonth"),onClick:K},[J(b(Ze),null,{default:le(()=>[J(b(Mi))]),_:1})],10,jQe),V("div",null,me(b(E)),1)],2),J(AI,{"selection-mode":"range",date:h.value,"min-date":b(v),"max-date":b(p),"range-state":b(g),"disabled-date":b(a),"cell-class-name":b(i),onChangerange:b(_),onPick:Le,onSelect:b(S)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),b(_e)?(N(),U("div",{key:0,class:H(b(m).e("footer"))},[b(l)?(N(),he(b(Ja),{key:0,text:"",size:"small",class:H(b(m).e("link-btn")),onClick:Gt},{default:le(()=>[nr(me(b(T)("el.datepicker.clear")),1)]),_:1},8,["class"])):ce("v-if",!0),J(b(Ja),{plain:"",size:"small",class:H(b(m).e("link-btn")),disabled:b(ve),onClick:Me[10]||(Me[10]=ae=>b(w)(!1))},{default:le(()=>[nr(me(b(T)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):ce("v-if",!0)],2))}});var XQe=ke(KQe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const ZQe=Oe({...jre}),qQe=["pick","set-picker-option","calendar-change"],QQe=({unlinkPanels:e,leftDate:t,rightDate:r})=>{const{t:n}=fr(),a=()=>{t.value=t.value.subtract(1,"year"),e.value||(r.value=r.value.subtract(1,"year"))},i=()=>{e.value||(t.value=t.value.add(1,"year")),r.value=r.value.add(1,"year")},o=()=>{t.value=t.value.add(1,"year")},s=()=>{r.value=r.value.subtract(1,"year")},l=F(()=>`${t.value.year()} ${n("el.datepicker.year")}`),u=F(()=>`${r.value.year()} ${n("el.datepicker.year")}`),c=F(()=>t.value.year()),f=F(()=>r.value.year()===t.value.year()?t.value.year()+1:r.value.year());return{leftPrevYear:a,rightNextYear:i,leftNextYear:o,rightPrevYear:s,leftLabel:l,rightLabel:u,leftYear:c,rightYear:f}},JQe=["onClick"],eJe=["disabled"],tJe=["disabled"],gw="year",rJe=te({name:"DatePickerMonthRange"}),nJe=te({...rJe,props:ZQe,emits:qQe,setup(e,{emit:t}){const r=e,{lang:n}=fr(),a=Ye("EP_PICKER_BASE"),{shortcuts:i,disabledDate:o,format:s}=a.props,l=Sn(a.props,"defaultValue"),u=G(Rt().locale(n.value)),c=G(Rt().locale(n.value).add(1,gw)),{minDate:f,maxDate:d,rangeState:h,ppNs:v,drpNs:p,handleChangeRange:g,handleRangeConfirm:m,handleShortcutClick:y,onSelect:_}=Zre(r,{defaultValue:l,leftDate:u,rightDate:c,unit:gw,onParsedValueChanged:O}),w=F(()=>!!i.length),{leftPrevYear:x,rightNextYear:S,leftNextYear:T,rightPrevYear:A,leftLabel:C,rightLabel:M,leftYear:E,rightYear:D}=QQe({unlinkPanels:Sn(r,"unlinkPanels"),leftDate:u,rightDate:c}),P=F(()=>r.unlinkPanels&&D.value>E.value+1),L=(R,B=!0)=>{const k=R.minDate,z=R.maxDate;d.value===z&&f.value===k||(t("calendar-change",[k.toDate(),z&&z.toDate()]),d.value=z,f.value=k,B&&m())},I=R=>R.map(B=>B.format(s));function O(R,B){if(r.unlinkPanels&&B){const k=(R==null?void 0:R.year())||0,z=B.year();c.value=k===z?B.add(1,gw):B}else c.value=u.value.add(1,gw)}return t("set-picker-option",["formatToString",I]),(R,B)=>(N(),U("div",{class:H([b(v).b(),b(p).b(),{"has-sidebar":!!R.$slots.sidebar||b(w)}])},[V("div",{class:H(b(v).e("body-wrapper"))},[ye(R.$slots,"sidebar",{class:H(b(v).e("sidebar"))}),b(w)?(N(),U("div",{key:0,class:H(b(v).e("sidebar"))},[(N(!0),U(Be,null,ht(b(i),(k,z)=>(N(),U("button",{key:z,type:"button",class:H(b(v).e("shortcut")),onClick:$=>b(y)(k)},me(k.text),11,JQe))),128))],2)):ce("v-if",!0),V("div",{class:H(b(v).e("body"))},[V("div",{class:H([[b(v).e("content"),b(p).e("content")],"is-left"])},[V("div",{class:H(b(p).e("header"))},[V("button",{type:"button",class:H([b(v).e("icon-btn"),"d-arrow-left"]),onClick:B[0]||(B[0]=(...k)=>b(x)&&b(x)(...k))},[J(b(Ze),null,{default:le(()=>[J(b(lg))]),_:1})],2),R.unlinkPanels?(N(),U("button",{key:0,type:"button",disabled:!b(P),class:H([[b(v).e("icon-btn"),{[b(v).is("disabled")]:!b(P)}],"d-arrow-right"]),onClick:B[1]||(B[1]=(...k)=>b(T)&&b(T)(...k))},[J(b(Ze),null,{default:le(()=>[J(b(ug))]),_:1})],10,eJe)):ce("v-if",!0),V("div",null,me(b(C)),1)],2),J(TI,{"selection-mode":"range",date:u.value,"min-date":b(f),"max-date":b(d),"range-state":b(h),"disabled-date":b(o),onChangerange:b(g),onPick:L,onSelect:b(_)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),V("div",{class:H([[b(v).e("content"),b(p).e("content")],"is-right"])},[V("div",{class:H(b(p).e("header"))},[R.unlinkPanels?(N(),U("button",{key:0,type:"button",disabled:!b(P),class:H([[b(v).e("icon-btn"),{"is-disabled":!b(P)}],"d-arrow-left"]),onClick:B[2]||(B[2]=(...k)=>b(A)&&b(A)(...k))},[J(b(Ze),null,{default:le(()=>[J(b(lg))]),_:1})],10,tJe)):ce("v-if",!0),V("button",{type:"button",class:H([b(v).e("icon-btn"),"d-arrow-right"]),onClick:B[3]||(B[3]=(...k)=>b(S)&&b(S)(...k))},[J(b(Ze),null,{default:le(()=>[J(b(ug))]),_:1})],2),V("div",null,me(b(M)),1)],2),J(TI,{"selection-mode":"range",date:c.value,"min-date":b(f),"max-date":b(d),"range-state":b(h),"disabled-date":b(o),onChangerange:b(g),onPick:L,onSelect:b(_)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var aJe=ke(nJe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const iJe=function(e){switch(e){case"daterange":case"datetimerange":return XQe;case"monthrange":return aJe;default:return NQe}};Rt.extend(vre);Rt.extend(Uqe);Rt.extend(T3);Rt.extend(Wqe);Rt.extend(jqe);Rt.extend(Xqe);Rt.extend(qqe);Rt.extend(Jqe);var oJe=te({name:"ElDatePicker",install:null,props:eQe,emits:["update:modelValue"],setup(e,{expose:t,emit:r,slots:n}){const a=Ce("picker-panel");Wt("ElPopperOptions",Ar(Sn(e,"popperOptions"))),Wt(D3,{slots:n,pickerNs:a});const i=G();t({focus:(l=!0)=>{var u;(u=i.value)==null||u.focus(l)},handleOpen:()=>{var l;(l=i.value)==null||l.handleOpen()},handleClose:()=>{var l;(l=i.value)==null||l.handleClose()}});const s=l=>{r("update:modelValue",l)};return()=>{var l;const u=(l=e.format)!=null?l:Vje[e.type]||op,c=iJe(e.type);return J(tre,Ut(e,{format:u,type:e.type,ref:i,"onUpdate:modelValue":s}),{default:f=>J(c,f,null),"range-separator":n["range-separator"]})}}});const AS=oJe;AS.install=e=>{e.component(AS.name,AS)};const sJe=AS,L3=Symbol("elDescriptions");var ey=te({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:Ye(L3,{})}},render(){var e,t,r,n,a,i,o;const s=jUe(this.cell),l=(((e=this.cell)==null?void 0:e.dirs)||[]).map(x=>{const{dir:S,arg:T,modifiers:A,value:C}=x;return[S,C,T,A]}),{border:u,direction:c}=this.descriptions,f=c==="vertical",d=((n=(r=(t=this.cell)==null?void 0:t.children)==null?void 0:r.label)==null?void 0:n.call(r))||s.label,h=(o=(i=(a=this.cell)==null?void 0:a.children)==null?void 0:i.default)==null?void 0:o.call(i),v=s.span,p=s.align?`is-${s.align}`:"",g=s.labelAlign?`is-${s.labelAlign}`:p,m=s.className,y=s.labelClassName,_={width:Hn(s.width),minWidth:Hn(s.minWidth)},w=Ce("descriptions");switch(this.type){case"label":return Ct(et(this.tag,{style:_,class:[w.e("cell"),w.e("label"),w.is("bordered-label",u),w.is("vertical-label",f),g,y],colSpan:f?v:1},d),l);case"content":return Ct(et(this.tag,{style:_,class:[w.e("cell"),w.e("content"),w.is("bordered-content",u),w.is("vertical-content",f),p,m],colSpan:f?v:v*2-1},h),l);default:return Ct(et("td",{style:_,class:[w.e("cell"),p],colSpan:v},[Qn(d)?void 0:et("span",{class:[w.e("label"),y]},d),et("span",{class:[w.e("content"),m]},h)]),l)}}});const lJe=Oe({row:{type:fe(Array),default:()=>[]}}),uJe={key:1},cJe=te({name:"ElDescriptionsRow"}),fJe=te({...cJe,props:lJe,setup(e){const t=Ye(L3,{});return(r,n)=>b(t).direction==="vertical"?(N(),U(Be,{key:0},[V("tr",null,[(N(!0),U(Be,null,ht(r.row,(a,i)=>(N(),he(b(ey),{key:`tr1-${i}`,cell:a,tag:"th",type:"label"},null,8,["cell"]))),128))]),V("tr",null,[(N(!0),U(Be,null,ht(r.row,(a,i)=>(N(),he(b(ey),{key:`tr2-${i}`,cell:a,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(N(),U("tr",uJe,[(N(!0),U(Be,null,ht(r.row,(a,i)=>(N(),U(Be,{key:`tr3-${i}`},[b(t).border?(N(),U(Be,{key:0},[J(b(ey),{cell:a,tag:"td",type:"label"},null,8,["cell"]),J(b(ey),{cell:a,tag:"td",type:"content"},null,8,["cell"])],64)):(N(),he(b(ey),{key:1,cell:a,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var dJe=ke(fJe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const hJe=Oe({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:Ga,title:{type:String,default:""},extra:{type:String,default:""}}),vJe=te({name:"ElDescriptions"}),pJe=te({...vJe,props:hJe,setup(e){const t=e,r=Ce("descriptions"),n=ca(),a=$a();Wt(L3,t);const i=F(()=>[r.b(),r.m(n.value)]),o=(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=Mh(a.default()).filter(h=>{var v;return((v=h==null?void 0:h.type)==null?void 0:v.name)==="ElDescriptionsItem"}),u=[];let c=[],f=t.column,d=0;return l.forEach((h,v)=>{var p;const g=((p=h.props)==null?void 0:p.span)||1;if(vf?f:g),v===l.length-1){const m=t.column-d%t.column;c.push(o(h,m,f,!0)),u.push(c);return}g(N(),U("div",{class:H(b(i))},[l.title||l.extra||l.$slots.title||l.$slots.extra?(N(),U("div",{key:0,class:H(b(r).e("header"))},[V("div",{class:H(b(r).e("title"))},[ye(l.$slots,"title",{},()=>[nr(me(l.title),1)])],2),V("div",{class:H(b(r).e("extra"))},[ye(l.$slots,"extra",{},()=>[nr(me(l.extra),1)])],2)],2)):ce("v-if",!0),V("div",{class:H(b(r).e("body"))},[V("table",{class:H([b(r).e("table"),b(r).is("bordered",l.border)])},[V("tbody",null,[(N(!0),U(Be,null,ht(s(),(c,f)=>(N(),he(dJe,{key:f,row:c},null,8,["row"]))),128))])],2)],2)],2))}});var gJe=ke(pJe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]);const mJe=Oe({label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}),qre=te({name:"ElDescriptionsItem",props:mJe}),yJe=kt(gJe,{DescriptionsItem:qre}),_Je=Pn(qre),bJe=Oe({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:fe([String,Array,Object])},zIndex:{type:fe([String,Number])}}),wJe={click:e=>e instanceof MouseEvent},SJe="overlay";var xJe=te({name:"ElOverlay",props:bJe,emits:wJe,setup(e,{slots:t,emit:r}){const n=Ce(SJe),a=l=>{r("click",l)},{onClick:i,onMousedown:o,onMouseup:s}=h3(e.customMaskEvent?void 0:a);return()=>e.mask?J("div",{class:[n.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:o,onMouseup:s},[ye(t,"default")],$o.STYLE|$o.CLASS|$o.PROPS,["onClick","onMouseup","onMousedown"]):et("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[ye(t,"default")])}});const I3=xJe,Qre=Symbol("dialogInjectionKey"),Jre=Oe({center:Boolean,alignCenter:Boolean,closeIcon:{type:Zr},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),AJe={close:()=>!0},TJe=["aria-level"],CJe=["aria-label"],EJe=["id"],MJe=te({name:"ElDialogContent"}),DJe=te({...MJe,props:Jre,emits:AJe,setup(e){const t=e,{t:r}=fr(),{Close:n}=Fee,{dialogRef:a,headerRef:i,bodyId:o,ns:s,style:l}=Ye(Qre),{focusTrapRef:u}=Ye(S3),c=F(()=>[s.b(),s.is("fullscreen",t.fullscreen),s.is("draggable",t.draggable),s.is("align-center",t.alignCenter),{[s.m("center")]:t.center},t.customClass]),f=_T(u,a),d=F(()=>t.draggable);return zee(a,i,d),(h,v)=>(N(),U("div",{ref:b(f),class:H(b(c)),style:Xe(b(l)),tabindex:"-1"},[V("header",{ref_key:"headerRef",ref:i,class:H(b(s).e("header"))},[ye(h.$slots,"header",{},()=>[V("span",{role:"heading","aria-level":h.ariaLevel,class:H(b(s).e("title"))},me(h.title),11,TJe)]),h.showClose?(N(),U("button",{key:0,"aria-label":b(r)("el.dialog.close"),class:H(b(s).e("headerbtn")),type:"button",onClick:v[0]||(v[0]=p=>h.$emit("close"))},[J(b(Ze),{class:H(b(s).e("close"))},{default:le(()=>[(N(),he(Ft(h.closeIcon||b(n))))]),_:1},8,["class"])],10,CJe)):ce("v-if",!0)],2),V("div",{id:b(o),class:H(b(s).e("body"))},[ye(h.$slots,"default")],10,EJe),h.$slots.footer?(N(),U("footer",{key:0,class:H(b(s).e("footer"))},[ye(h.$slots,"footer")],2)):ce("v-if",!0)],6))}});var PJe=ke(DJe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const ene=Oe({...Jre,appendToBody:Boolean,appendTo:{type:fe(String),default:"body"},beforeClose:{type:fe(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),tne={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Nt]:e=>la(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},rne=(e,t)=>{var r;const a=It().emit,{nextZIndex:i}=im();let o="";const s=co(),l=co(),u=G(!1),c=G(!1),f=G(!1),d=G((r=e.zIndex)!=null?r:i());let h,v;const p=CT("namespace",a0),g=F(()=>{const I={},O=`--${p.value}-dialog`;return e.fullscreen||(e.top&&(I[`${O}-margin-top`]=e.top),e.width&&(I[`${O}-width`]=Hn(e.width))),I}),m=F(()=>e.alignCenter?{display:"flex"}:{});function y(){a("opened")}function _(){a("closed"),a(Nt,!1),e.destroyOnClose&&(f.value=!1)}function w(){a("close")}function x(){v==null||v(),h==null||h(),e.openDelay&&e.openDelay>0?{stop:h}=Wh(()=>C(),e.openDelay):C()}function S(){h==null||h(),v==null||v(),e.closeDelay&&e.closeDelay>0?{stop:v}=Wh(()=>M(),e.closeDelay):M()}function T(){function I(O){O||(c.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(I):S()}function A(){e.closeOnClickModal&&T()}function C(){ur&&(u.value=!0)}function M(){u.value=!1}function E(){a("openAutoFocus")}function D(){a("closeAutoFocus")}function P(I){var O;((O=I.detail)==null?void 0:O.focusReason)==="pointer"&&I.preventDefault()}e.lockScroll&&Uee(u);function L(){e.closeOnPressEscape&&T()}return Ae(()=>e.modelValue,I=>{I?(c.value=!1,x(),f.value=!0,d.value=Tee(e.zIndex)?i():d.value++,qe(()=>{a("open"),t.value&&(t.value.scrollTop=0)})):u.value&&S()}),Ae(()=>e.fullscreen,I=>{t.value&&(I?(o=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=o)}),xt(()=>{e.modelValue&&(u.value=!0,f.value=!0,x())}),{afterEnter:y,afterLeave:_,beforeLeave:w,handleClose:T,onModalClick:A,close:S,doClose:M,onOpenAutoFocus:E,onCloseAutoFocus:D,onCloseRequested:L,onFocusoutPrevented:P,titleId:s,bodyId:l,closed:c,style:g,overlayDialogStyle:m,rendered:f,visible:u,zIndex:d}},LJe=["aria-label","aria-labelledby","aria-describedby"],IJe=te({name:"ElDialog",inheritAttrs:!1}),RJe=te({...IJe,props:ene,emits:tne,setup(e,{expose:t}){const r=e,n=$a();Ul({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"},F(()=>!!n.title)),Ul({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},F(()=>!!r.customClass));const a=Ce("dialog"),i=G(),o=G(),s=G(),{visible:l,titleId:u,bodyId:c,style:f,overlayDialogStyle:d,rendered:h,zIndex:v,afterEnter:p,afterLeave:g,beforeLeave:m,handleClose:y,onModalClick:_,onOpenAutoFocus:w,onCloseAutoFocus:x,onCloseRequested:S,onFocusoutPrevented:T}=rne(r,i);Wt(Qre,{dialogRef:i,headerRef:o,bodyId:c,ns:a,rendered:h,style:f});const A=h3(_),C=F(()=>r.draggable&&!r.fullscreen);return t({visible:l,dialogContentRef:s}),(M,E)=>(N(),he(W_,{to:M.appendTo,disabled:M.appendTo!=="body"?!1:!M.appendToBody},[J(Yn,{name:"dialog-fade",onAfterEnter:b(p),onAfterLeave:b(g),onBeforeLeave:b(m),persisted:""},{default:le(()=>[Ct(J(b(I3),{"custom-mask-event":"",mask:M.modal,"overlay-class":M.modalClass,"z-index":b(v)},{default:le(()=>[V("div",{role:"dialog","aria-modal":"true","aria-label":M.title||void 0,"aria-labelledby":M.title?void 0:b(u),"aria-describedby":b(c),class:H(`${b(a).namespace.value}-overlay-dialog`),style:Xe(b(d)),onClick:E[0]||(E[0]=(...D)=>b(A).onClick&&b(A).onClick(...D)),onMousedown:E[1]||(E[1]=(...D)=>b(A).onMousedown&&b(A).onMousedown(...D)),onMouseup:E[2]||(E[2]=(...D)=>b(A).onMouseup&&b(A).onMouseup(...D))},[J(b(DT),{loop:"",trapped:b(l),"focus-start-el":"container",onFocusAfterTrapped:b(w),onFocusAfterReleased:b(x),onFocusoutPrevented:b(T),onReleaseRequested:b(S)},{default:le(()=>[b(h)?(N(),he(PJe,Ut({key:0,ref_key:"dialogContentRef",ref:s},M.$attrs,{"custom-class":M.customClass,center:M.center,"align-center":M.alignCenter,"close-icon":M.closeIcon,draggable:b(C),fullscreen:M.fullscreen,"show-close":M.showClose,title:M.title,"aria-level":M.headerAriaLevel,onClose:b(y)}),Bl({header:le(()=>[M.$slots.title?ye(M.$slots,"title",{key:1}):ye(M.$slots,"header",{key:0,close:b(y),titleId:b(u),titleClass:b(a).e("title")})]),default:le(()=>[ye(M.$slots,"default")]),_:2},[M.$slots.footer?{name:"footer",fn:le(()=>[ye(M.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","aria-level","onClose"])):ce("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,LJe)]),_:3},8,["mask","overlay-class","z-index"]),[[hr,b(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}});var OJe=ke(RJe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const kJe=kt(OJe),NJe=Oe({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:fe(String),default:"solid"}}),BJe=te({name:"ElDivider"}),FJe=te({...BJe,props:NJe,setup(e){const t=e,r=Ce("divider"),n=F(()=>r.cssVar({"border-style":t.borderStyle}));return(a,i)=>(N(),U("div",{class:H([b(r).b(),b(r).m(a.direction)]),style:Xe(b(n)),role:"separator"},[a.$slots.default&&a.direction!=="vertical"?(N(),U("div",{key:0,class:H([b(r).e("text"),b(r).is(a.contentPosition)])},[ye(a.$slots,"default")],2)):ce("v-if",!0)],6))}});var VJe=ke(FJe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const nne=kt(VJe),zJe=Oe({...ene,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),HJe=tne,GJe=te({name:"ElDrawer",components:{ElOverlay:I3,ElFocusTrap:DT,ElIcon:Ze,Close:el},inheritAttrs:!1,props:zJe,emits:HJe,setup(e,{slots:t}){Ul({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"},F(()=>!!t.title)),Ul({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},F(()=>!!e.customClass));const r=G(),n=G(),a=Ce("drawer"),{t:i}=fr(),o=F(()=>e.direction==="rtl"||e.direction==="ltr"),s=F(()=>Hn(e.size));return{...rne(e,r),drawerRef:r,focusStartRef:n,isHorizontal:o,drawerSize:s,ns:a,t:i}}}),UJe=["aria-label","aria-labelledby","aria-describedby"],$Je=["id","aria-level"],WJe=["aria-label"],YJe=["id"];function jJe(e,t,r,n,a,i){const o=bt("close"),s=bt("el-icon"),l=bt("el-focus-trap"),u=bt("el-overlay");return N(),he(W_,{to:"body",disabled:!e.appendToBody},[J(Yn,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:le(()=>[Ct(J(u,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:le(()=>[J(l,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:le(()=>[V("div",Ut({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=it(()=>{},["stop"]))}),[V("span",{ref:"focusStartRef",class:H(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(N(),U("header",{key:0,class:H(e.ns.e("header"))},[e.$slots.title?ye(e.$slots,"title",{key:1},()=>[ce(" DEPRECATED SLOT ")]):ye(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?ce("v-if",!0):(N(),U("span",{key:0,id:e.titleId,role:"heading","aria-level":e.headerAriaLevel,class:H(e.ns.e("title"))},me(e.title),11,$Je))]),e.showClose?(N(),U("button",{key:2,"aria-label":e.t("el.drawer.close"),class:H(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...c)=>e.handleClose&&e.handleClose(...c))},[J(s,{class:H(e.ns.e("close"))},{default:le(()=>[J(o)]),_:1},8,["class"])],10,WJe)):ce("v-if",!0)],2)):ce("v-if",!0),e.rendered?(N(),U("div",{key:1,id:e.bodyId,class:H(e.ns.e("body"))},[ye(e.$slots,"default")],10,YJe)):ce("v-if",!0),e.$slots.footer?(N(),U("div",{key:2,class:H(e.ns.e("footer"))},[ye(e.$slots,"footer")],2)):ce("v-if",!0)],16,UJe)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[hr,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var KJe=ke(GJe,[["render",jJe],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const XJe=kt(KJe),ZJe=te({inheritAttrs:!1});function qJe(e,t,r,n,a,i){return ye(e.$slots,"default")}var QJe=ke(ZJe,[["render",qJe],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const JJe=te({name:"ElCollectionItem",inheritAttrs:!1});function eet(e,t,r,n,a,i){return ye(e.$slots,"default")}var tet=ke(JJe,[["render",eet],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const ane="data-el-collection-item",ine=e=>{const t=`El${e}Collection`,r=`${t}Item`,n=Symbol(t),a=Symbol(r),i={...QJe,name:t,setup(){const s=G(null),l=new Map;Wt(n,{itemMap:l,getItems:()=>{const c=b(s);if(!c)return[];const f=Array.from(c.querySelectorAll(`[${ane}]`));return[...l.values()].sort((h,v)=>f.indexOf(h.ref)-f.indexOf(v.ref))},collectionRef:s})}},o={...tet,name:r,setup(s,{attrs:l}){const u=G(null),c=Ye(n,void 0);Wt(a,{collectionItemRef:u}),xt(()=>{const f=b(u);f&&c.itemMap.set(f,{ref:f,...l})}),un(()=>{const f=b(u);c.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:n,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:i,ElCollectionItem:o}},ret=Oe({style:{type:fe([String,Array,Object])},currentTabId:{type:fe(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:fe(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:net,ElCollectionItem:aet,COLLECTION_INJECTION_KEY:R3,COLLECTION_ITEM_INJECTION_KEY:iet}=ine("RovingFocusGroup"),O3=Symbol("elRovingFocusGroup"),one=Symbol("elRovingFocusGroupItem"),oet={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},set=(e,t)=>{if(t!=="rtl")return e;switch(e){case Qe.right:return Qe.left;case Qe.left:return Qe.right;default:return e}},uet=(e,t,r)=>{const n=set(e.key,r);if(!(t==="vertical"&&[Qe.left,Qe.right].includes(n))&&!(t==="horizontal"&&[Qe.up,Qe.down].includes(n)))return oet[n]},cet=(e,t)=>e.map((r,n)=>e[(n+t)%e.length]),k3=e=>{const{activeElement:t}=document;for(const r of e)if(r===t||(r.focus(),t!==document.activeElement))return},LU="currentTabIdChange",IU="rovingFocusGroup.entryFocus",fet={bubbles:!1,cancelable:!0},det=te({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:ret,emits:[LU,"entryFocus"],setup(e,{emit:t}){var r;const n=G((r=e.currentTabId||e.defaultCurrentTabId)!=null?r:null),a=G(!1),i=G(!1),o=G(null),{getItems:s}=Ye(R3,void 0),l=F(()=>[{outline:"none"},e.style]),u=p=>{t(LU,p)},c=()=>{a.value=!0},f=Mn(p=>{var g;(g=e.onMousedown)==null||g.call(e,p)},()=>{i.value=!0}),d=Mn(p=>{var g;(g=e.onFocus)==null||g.call(e,p)},p=>{const g=!b(i),{target:m,currentTarget:y}=p;if(m===y&&g&&!b(a)){const _=new Event(IU,fet);if(y==null||y.dispatchEvent(_),!_.defaultPrevented){const w=s().filter(C=>C.focusable),x=w.find(C=>C.active),S=w.find(C=>C.id===b(n)),A=[x,S,...w].filter(Boolean).map(C=>C.ref);k3(A)}}i.value=!1}),h=Mn(p=>{var g;(g=e.onBlur)==null||g.call(e,p)},()=>{a.value=!1}),v=(...p)=>{t("entryFocus",...p)};Wt(O3,{currentTabbedId:Rg(n),loop:Sn(e,"loop"),tabIndex:F(()=>b(a)?-1:0),rovingFocusGroupRef:o,rovingFocusGroupRootStyle:l,orientation:Sn(e,"orientation"),dir:Sn(e,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:h,onFocus:d,onMousedown:f}),Ae(()=>e.currentTabId,p=>{n.value=p??null}),dn(o,IU,v)}});function het(e,t,r,n,a,i){return ye(e.$slots,"default")}var vet=ke(det,[["render",het],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const pet=te({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:net,ElRovingFocusGroupImpl:vet}});function get(e,t,r,n,a,i){const o=bt("el-roving-focus-group-impl"),s=bt("el-focus-group-collection");return N(),he(s,null,{default:le(()=>[J(o,Rs(K2(e.$attrs)),{default:le(()=>[ye(e.$slots,"default")]),_:3},16)]),_:3})}var met=ke(pet,[["render",get],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const yet=te({components:{ElRovingFocusCollectionItem:aet},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:r,loop:n,onItemFocus:a,onItemShiftTab:i}=Ye(O3,void 0),{getItems:o}=Ye(R3,void 0),s=co(),l=G(null),u=Mn(h=>{t("mousedown",h)},h=>{e.focusable?a(b(s)):h.preventDefault()}),c=Mn(h=>{t("focus",h)},()=>{a(b(s))}),f=Mn(h=>{t("keydown",h)},h=>{const{key:v,shiftKey:p,target:g,currentTarget:m}=h;if(v===Qe.tab&&p){i();return}if(g!==m)return;const y=uet(h);if(y){h.preventDefault();let w=o().filter(x=>x.focusable).map(x=>x.ref);switch(y){case"last":{w.reverse();break}case"prev":case"next":{y==="prev"&&w.reverse();const x=w.indexOf(m);w=n.value?cet(w,x+1):w.slice(x+1);break}}qe(()=>{k3(w)})}}),d=F(()=>r.value===b(s));return Wt(one,{rovingFocusGroupItemRef:l,tabIndex:F(()=>b(d)?0:-1),handleMousedown:u,handleFocus:c,handleKeydown:f}),{id:s,handleKeydown:f,handleFocus:c,handleMousedown:u}}});function _et(e,t,r,n,a,i){const o=bt("el-roving-focus-collection-item");return N(),he(o,{id:e.id,focusable:e.focusable,active:e.active},{default:le(()=>[ye(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var bet=ke(yet,[["render",_et],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const TS=Oe({trigger:b_.trigger,effect:{...Va.effect,default:"light"},type:{type:fe(String)},placement:{type:fe(String),default:"bottom"},popperOptions:{type:fe(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:fe([Number,String]),default:0},maxHeight:{type:fe([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:fe(Object)},teleported:Va.teleported}),sne=Oe({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Zr}}),wet=Oe({onKeydown:{type:fe(Function)}}),xet=[Qe.down,Qe.pageDown,Qe.home],lne=[Qe.up,Qe.pageUp,Qe.end],Aet=[...xet,...lne],{ElCollection:Tet,ElCollectionItem:Cet,COLLECTION_INJECTION_KEY:Eet,COLLECTION_ITEM_INJECTION_KEY:Met}=ine("Dropdown"),IT=Symbol("elDropdown"),{ButtonGroup:Det}=Ja,Pet=te({name:"ElDropdown",components:{ElButton:Ja,ElButtonGroup:Det,ElScrollbar:ic,ElDropdownCollection:Tet,ElTooltip:Bi,ElRovingFocusGroup:met,ElOnlyChild:Rte,ElIcon:Ze,ArrowDown:Vf},props:TS,emits:["visible-change","click","command"],setup(e,{emit:t}){const r=It(),n=Ce("dropdown"),{t:a}=fr(),i=G(),o=G(),s=G(null),l=G(null),u=G(null),c=G(null),f=G(!1),d=[Qe.enter,Qe.space,Qe.down],h=F(()=>({maxHeight:Hn(e.maxHeight)})),v=F(()=>[n.m(x.value)]),p=F(()=>jh(e.trigger)),g=co().value,m=F(()=>e.id||g);Ae([i,p],([R,B],[k])=>{var z,$,j;(z=k==null?void 0:k.$el)!=null&&z.removeEventListener&&k.$el.removeEventListener("pointerenter",T),($=R==null?void 0:R.$el)!=null&&$.removeEventListener&&R.$el.removeEventListener("pointerenter",T),(j=R==null?void 0:R.$el)!=null&&j.addEventListener&&B.includes("hover")&&R.$el.addEventListener("pointerenter",T)},{immediate:!0}),un(()=>{var R,B;(B=(R=i.value)==null?void 0:R.$el)!=null&&B.removeEventListener&&i.value.$el.removeEventListener("pointerenter",T)});function y(){_()}function _(){var R;(R=s.value)==null||R.onClose()}function w(){var R;(R=s.value)==null||R.onOpen()}const x=ca();function S(...R){t("command",...R)}function T(){var R,B;(B=(R=i.value)==null?void 0:R.$el)==null||B.focus()}function A(){}function C(){const R=b(l);p.value.includes("hover")&&(R==null||R.focus()),c.value=null}function M(R){c.value=R}function E(R){f.value||(R.preventDefault(),R.stopImmediatePropagation())}function D(){t("visible-change",!0)}function P(R){(R==null?void 0:R.type)==="keydown"&&l.value.focus()}function L(){t("visible-change",!1)}return Wt(IT,{contentRef:l,role:F(()=>e.role),triggerId:m,isUsingKeyboard:f,onItemEnter:A,onItemLeave:C}),Wt("elDropdown",{instance:r,dropdownSize:x,handleClick:y,commandHandler:S,trigger:Sn(e,"trigger"),hideOnClick:Sn(e,"hideOnClick")}),{t:a,ns:n,scrollbar:u,wrapStyle:h,dropdownTriggerKls:v,dropdownSize:x,triggerId:m,triggerKeys:d,currentTabId:c,handleCurrentTabIdChange:M,handlerMainButtonClick:R=>{t("click",R)},handleEntryFocus:E,handleClose:_,handleOpen:w,handleBeforeShowTooltip:D,handleShowTooltip:P,handleBeforeHideTooltip:L,onFocusAfterTrapped:R=>{var B,k;R.preventDefault(),(k=(B=l.value)==null?void 0:B.focus)==null||k.call(B,{preventScroll:!0})},popperRef:s,contentRef:l,triggeringElementRef:i,referenceElementRef:o}}});function Let(e,t,r,n,a,i){var o;const s=bt("el-dropdown-collection"),l=bt("el-roving-focus-group"),u=bt("el-scrollbar"),c=bt("el-only-child"),f=bt("el-tooltip"),d=bt("el-button"),h=bt("arrow-down"),v=bt("el-icon"),p=bt("el-button-group");return N(),U("div",{class:H([e.ns.b(),e.ns.is("disabled",e.disabled)])},[J(f,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(o=e.referenceElementRef)==null?void 0:o.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Bl({content:le(()=>[J(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:le(()=>[J(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:le(()=>[J(s,null,{default:le(()=>[ye(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:le(()=>[J(c,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:le(()=>[ye(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(N(),he(p,{key:0},{default:le(()=>[J(d,Ut({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:le(()=>[ye(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),J(d,Ut({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:le(()=>[J(v,{class:H(e.ns.e("icon"))},{default:le(()=>[J(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):ce("v-if",!0)],2)}var Iet=ke(Pet,[["render",Let],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const Ret=te({name:"DropdownItemImpl",components:{ElIcon:Ze},props:sne,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const r=Ce("dropdown"),{role:n}=Ye(IT,void 0),{collectionItemRef:a}=Ye(Met,void 0),{collectionItemRef:i}=Ye(iet,void 0),{rovingFocusGroupItemRef:o,tabIndex:s,handleFocus:l,handleKeydown:u,handleMousedown:c}=Ye(one,void 0),f=_T(a,i,o),d=F(()=>n.value==="menu"?"menuitem":n.value==="navigation"?"link":"button"),h=Mn(v=>{const{code:p}=v;if(p===Qe.enter||p===Qe.space)return v.preventDefault(),v.stopImmediatePropagation(),t("clickimpl",v),!0},u);return{ns:r,itemRef:f,dataset:{[ane]:""},role:d,tabIndex:s,handleFocus:l,handleKeydown:h,handleMousedown:c}}}),Oet=["aria-disabled","tabindex","role"];function ket(e,t,r,n,a,i){const o=bt("el-icon");return N(),U(Be,null,[e.divided?(N(),U("li",Ut({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):ce("v-if",!0),V("li",Ut({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]=it((...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?(N(),he(o,{key:0},{default:le(()=>[(N(),he(Ft(e.icon)))]),_:1})):ce("v-if",!0),ye(e.$slots,"default")],16,Oet)],64)}var Net=ke(Ret,[["render",ket],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const une=()=>{const e=Ye("elDropdown",{}),t=F(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},Bet=te({name:"ElDropdownItem",components:{ElDropdownCollectionItem:Cet,ElRovingFocusItem:bet,ElDropdownItemImpl:Net},inheritAttrs:!1,props:sne,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:r}){const{elDropdown:n}=une(),a=It(),i=G(null),o=F(()=>{var h,v;return(v=(h=b(i))==null?void 0:h.textContent)!=null?v:""}),{onItemEnter:s,onItemLeave:l}=Ye(IT,void 0),u=Mn(h=>(t("pointermove",h),h.defaultPrevented),LH(h=>{if(e.disabled){l(h);return}const v=h.currentTarget;v===document.activeElement||v.contains(document.activeElement)||(s(h),h.defaultPrevented||v==null||v.focus())})),c=Mn(h=>(t("pointerleave",h),h.defaultPrevented),LH(h=>{l(h)})),f=Mn(h=>{if(!e.disabled)return t("click",h),h.type!=="keydown"&&h.defaultPrevented},h=>{var v,p,g;if(e.disabled){h.stopImmediatePropagation();return}(v=n==null?void 0:n.hideOnClick)!=null&&v.value&&((p=n.handleClick)==null||p.call(n)),(g=n.commandHandler)==null||g.call(n,e.command,a,h)}),d=F(()=>({...e,...r}));return{handleClick:f,handlePointerMove:u,handlePointerLeave:c,textContent:o,propsAndAttrs:d}}});function Fet(e,t,r,n,a,i){var o;const s=bt("el-dropdown-item-impl"),l=bt("el-roving-focus-item"),u=bt("el-dropdown-collection-item");return N(),he(u,{disabled:e.disabled,"text-value":(o=e.textValue)!=null?o:e.textContent},{default:le(()=>[J(l,{focusable:!e.disabled},{default:le(()=>[J(s,Ut(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:le(()=>[ye(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var cne=ke(Bet,[["render",Fet],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const Vet=te({name:"ElDropdownMenu",props:wet,setup(e){const t=Ce("dropdown"),{_elDropdownSize:r}=une(),n=r.value,{focusTrapRef:a,onKeydown:i}=Ye(S3,void 0),{contentRef:o,role:s,triggerId:l}=Ye(IT,void 0),{collectionRef:u,getItems:c}=Ye(Eet,void 0),{rovingFocusGroupRef:f,rovingFocusGroupRootStyle:d,tabIndex:h,onBlur:v,onFocus:p,onMousedown:g}=Ye(O3,void 0),{collectionRef:m}=Ye(R3,void 0),y=F(()=>[t.b("menu"),t.bm("menu",n==null?void 0:n.value)]),_=_T(o,u,a,f,m),w=Mn(S=>{var T;(T=e.onKeydown)==null||T.call(e,S)},S=>{const{currentTarget:T,code:A,target:C}=S;if(T.contains(C),Qe.tab===A&&S.stopImmediatePropagation(),S.preventDefault(),C!==b(o)||!Aet.includes(A))return;const E=c().filter(D=>!D.disabled).map(D=>D.ref);lne.includes(A)&&E.reverse(),k3(E)});return{size:n,rovingFocusGroupRootStyle:d,tabIndex:h,dropdownKls:y,role:s,triggerId:l,dropdownListWrapperRef:_,handleKeydown:S=>{w(S),i(S)},onBlur:v,onFocus:p,onMousedown:g}}}),zet=["role","aria-labelledby"];function Het(e,t,r,n,a,i){return N(),U("ul",{ref:e.dropdownListWrapperRef,class:H(e.dropdownKls),style:Xe(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...o)=>e.onBlur&&e.onBlur(...o)),onFocus:t[1]||(t[1]=(...o)=>e.onFocus&&e.onFocus(...o)),onKeydown:t[2]||(t[2]=it((...o)=>e.handleKeydown&&e.handleKeydown(...o),["self"])),onMousedown:t[3]||(t[3]=it((...o)=>e.onMousedown&&e.onMousedown(...o),["self"]))},[ye(e.$slots,"default")],46,zet)}var fne=ke(Vet,[["render",Het],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const Get=kt(Iet,{DropdownItem:cne,DropdownMenu:fne}),Uet=Pn(cne),$et=Pn(fne),Wet={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Yet=["id"],jet=["stop-color"],Ket=["stop-color"],Xet=["id"],Zet=["stop-color"],qet=["stop-color"],Qet=["id"],Jet={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},ett={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},ttt={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},rtt=["fill"],ntt=["fill"],att={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},itt=["fill"],ott=["fill"],stt=["fill"],ltt=["fill"],utt=["fill"],ctt={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},ftt=["fill","xlink:href"],dtt=["fill","mask"],htt=["fill"],vtt=te({name:"ImgEmpty"}),ptt=te({...vtt,setup(e){const t=Ce("empty"),r=co();return(n,a)=>(N(),U("svg",Wet,[V("defs",null,[V("linearGradient",{id:`linearGradient-1-${b(r)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[V("stop",{"stop-color":`var(${b(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,jet),V("stop",{"stop-color":`var(${b(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,Ket)],8,Yet),V("linearGradient",{id:`linearGradient-2-${b(r)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[V("stop",{"stop-color":`var(${b(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,Zet),V("stop",{"stop-color":`var(${b(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,qet)],8,Xet),V("rect",{id:`path-3-${b(r)}`,x:"0",y:"0",width:"17",height:"36"},null,8,Qet)]),V("g",Jet,[V("g",ett,[V("g",ttt,[V("path",{id:"Oval-Copy-2",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(${b(t).cssVarBlockName("fill-color-3")})`},null,8,rtt),V("polygon",{id:"Rectangle-Copy-14",fill:`var(${b(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,ntt),V("g",att,[V("polygon",{id:"Rectangle-Copy-10",fill:`var(${b(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,itt),V("polygon",{id:"Rectangle-Copy-11",fill:`var(${b(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,ott),V("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${b(r)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,stt),V("polygon",{id:"Rectangle-Copy-13",fill:`var(${b(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,ltt)]),V("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${b(r)})`,x:"13",y:"45",width:"40",height:"36"},null,8,utt),V("g",ctt,[V("use",{id:"Mask",fill:`var(${b(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${b(r)}`},null,8,ftt),V("polygon",{id:"Rectangle-Copy",fill:`var(${b(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${b(r)})`,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,dtt)]),V("polygon",{id:"Rectangle-Copy-18",fill:`var(${b(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,htt)])])])]))}});var gtt=ke(ptt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const mtt=Oe({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),ytt=["src"],_tt={key:1},btt=te({name:"ElEmpty"}),wtt=te({...btt,props:mtt,setup(e){const t=e,{t:r}=fr(),n=Ce("empty"),a=F(()=>t.description||r("el.table.emptyText")),i=F(()=>({width:Hn(t.imageSize)}));return(o,s)=>(N(),U("div",{class:H(b(n).b())},[V("div",{class:H(b(n).e("image")),style:Xe(b(i))},[o.image?(N(),U("img",{key:0,src:o.image,ondragstart:"return false"},null,8,ytt)):ye(o.$slots,"image",{key:1},()=>[J(gtt)])],6),V("div",{class:H(b(n).e("description"))},[o.$slots.description?ye(o.$slots,"description",{key:0}):(N(),U("p",_tt,me(b(a)),1))],2),o.$slots.default?(N(),U("div",{key:0,class:H(b(n).e("bottom"))},[ye(o.$slots,"default")],2)):ce("v-if",!0)],2))}});var Stt=ke(wtt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const dne=kt(Stt),xtt=Oe({urlList:{type:fe(Array),default:()=>mn([])},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},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7}}),Att={close:()=>!0,switch:e=>ct(e),rotate:e=>ct(e)},Ttt=["src"],Ctt=te({name:"ElImageViewer"}),Ett=te({...Ctt,props:xtt,emits:Att,setup(e,{expose:t,emit:r}){const n=e,a={CONTAIN:{name:"contain",icon:gh(nUe)},ORIGINAL:{name:"original",icon:gh(xUe)}},{t:i}=fr(),o=Ce("image-viewer"),{nextZIndex:s}=im(),l=G(),u=G([]),c=Toe(),f=G(!0),d=G(n.initialIndex),h=yr(a.CONTAIN),v=G({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),p=F(()=>{const{urlList:k}=n;return k.length<=1}),g=F(()=>d.value===0),m=F(()=>d.value===n.urlList.length-1),y=F(()=>n.urlList[d.value]),_=F(()=>[o.e("btn"),o.e("prev"),o.is("disabled",!n.infinite&&g.value)]),w=F(()=>[o.e("btn"),o.e("next"),o.is("disabled",!n.infinite&&m.value)]),x=F(()=>{const{scale:k,deg:z,offsetX:$,offsetY:j,enableTransition:X}=v.value;let Q=$/k,se=j/k;switch(z%360){case 90:case-270:[Q,se]=[se,-Q];break;case 180:case-180:[Q,se]=[-Q,-se];break;case 270:case-90:[Q,se]=[-se,Q];break}const ee={transform:`scale(${k}) rotate(${z}deg) translate(${Q}px, ${se}px)`,transition:X?"transform .3s":""};return h.value.name===a.CONTAIN.name&&(ee.maxWidth=ee.maxHeight="100%"),ee}),S=F(()=>ct(n.zIndex)?n.zIndex:s());function T(){C(),r("close")}function A(){const k=Eh($=>{switch($.code){case Qe.esc:n.closeOnPressEscape&&T();break;case Qe.space:L();break;case Qe.left:O();break;case Qe.up:B("zoomIn");break;case Qe.right:R();break;case Qe.down:B("zoomOut");break}}),z=Eh($=>{const j=$.deltaY||$.deltaX;B(j<0?"zoomIn":"zoomOut",{zoomRate:n.zoomRate,enableTransition:!1})});c.run(()=>{dn(document,"keydown",k),dn(document,"wheel",z)})}function C(){c.stop()}function M(){f.value=!1}function E(k){f.value=!1,k.target.alt=i("el.image.error")}function D(k){if(f.value||k.button!==0||!l.value)return;v.value.enableTransition=!1;const{offsetX:z,offsetY:$}=v.value,j=k.pageX,X=k.pageY,Q=Eh(ee=>{v.value={...v.value,offsetX:z+ee.pageX-j,offsetY:$+ee.pageY-X}}),se=dn(document,"mousemove",Q);dn(document,"mouseup",()=>{se()}),k.preventDefault()}function P(){v.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function L(){if(f.value)return;const k=v_(a),z=Object.values(a),$=h.value.name,X=(z.findIndex(Q=>Q.name===$)+1)%k.length;h.value=a[k[X]],P()}function I(k){const z=n.urlList.length;d.value=(k+z)%z}function O(){g.value&&!n.infinite||I(d.value-1)}function R(){m.value&&!n.infinite||I(d.value+1)}function B(k,z={}){if(f.value)return;const{minScale:$,maxScale:j}=n,{zoomRate:X,rotateDeg:Q,enableTransition:se}={zoomRate:n.zoomRate,rotateDeg:90,enableTransition:!0,...z};switch(k){case"zoomOut":v.value.scale>$&&(v.value.scale=Number.parseFloat((v.value.scale/X).toFixed(3)));break;case"zoomIn":v.value.scale{qe(()=>{const k=u.value[0];k!=null&&k.complete||(f.value=!0)})}),Ae(d,k=>{P(),r("switch",k)}),xt(()=>{var k,z;A(),(z=(k=l.value)==null?void 0:k.focus)==null||z.call(k)}),t({setActiveItem:I}),(k,z)=>(N(),he(W_,{to:"body",disabled:!k.teleported},[J(Yn,{name:"viewer-fade",appear:""},{default:le(()=>[V("div",{ref_key:"wrapper",ref:l,tabindex:-1,class:H(b(o).e("wrapper")),style:Xe({zIndex:b(S)})},[V("div",{class:H(b(o).e("mask")),onClick:z[0]||(z[0]=it($=>k.hideOnClickModal&&T(),["self"]))},null,2),ce(" CLOSE "),V("span",{class:H([b(o).e("btn"),b(o).e("close")]),onClick:T},[J(b(Ze),null,{default:le(()=>[J(b(el))]),_:1})],2),ce(" ARROW "),b(p)?ce("v-if",!0):(N(),U(Be,{key:0},[V("span",{class:H(b(_)),onClick:O},[J(b(Ze),null,{default:le(()=>[J(b(Tf))]),_:1})],2),V("span",{class:H(b(w)),onClick:R},[J(b(Ze),null,{default:le(()=>[J(b(Mi))]),_:1})],2)],64)),ce(" ACTIONS "),V("div",{class:H([b(o).e("btn"),b(o).e("actions")])},[V("div",{class:H(b(o).e("actions__inner"))},[J(b(Ze),{onClick:z[1]||(z[1]=$=>B("zoomOut"))},{default:le(()=>[J(b(VUe))]),_:1}),J(b(Ze),{onClick:z[2]||(z[2]=$=>B("zoomIn"))},{default:le(()=>[J(b(Nee))]),_:1}),V("i",{class:H(b(o).e("actions__divider"))},null,2),J(b(Ze),{onClick:L},{default:le(()=>[(N(),he(Ft(b(h).icon)))]),_:1}),V("i",{class:H(b(o).e("actions__divider"))},null,2),J(b(Ze),{onClick:z[3]||(z[3]=$=>B("anticlockwise"))},{default:le(()=>[J(b(_Ue))]),_:1}),J(b(Ze),{onClick:z[4]||(z[4]=$=>B("clockwise"))},{default:le(()=>[J(b(wUe))]),_:1})],2)],2),ce(" CANVAS "),V("div",{class:H(b(o).e("canvas"))},[(N(!0),U(Be,null,ht(k.urlList,($,j)=>Ct((N(),U("img",{ref_for:!0,ref:X=>u.value[j]=X,key:$,src:$,style:Xe(b(x)),class:H(b(o).e("img")),onLoad:M,onError:E,onMousedown:D},null,46,Ttt)),[[hr,j===d.value]])),128))],2),ye(k.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var Mtt=ke(Ett,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const hne=kt(Mtt),Dtt=Oe({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:fe([String,Object])},previewSrcList:{type:fe(Array),default:()=>mn([])},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},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7}}),Ptt={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>ct(e),close:()=>!0,show:()=>!0},Ltt=["src","loading"],Itt={key:0},Rtt=te({name:"ElImage",inheritAttrs:!1}),Ott=te({...Rtt,props:Dtt,emits:Ptt,setup(e,{emit:t}){const r=e;let n="";const{t:a}=fr(),i=Ce("image"),o=Jh(),s=n3(),l=G(),u=G(!1),c=G(!0),f=G(!1),d=G(),h=G(),v=ur&&"loading"in HTMLImageElement.prototype;let p,g;const m=F(()=>[i.e("inner"),w.value&&i.e("preview"),c.value&&i.is("loading")]),y=F(()=>o.style),_=F(()=>{const{fit:B}=r;return ur&&B?{objectFit:B}:{}}),w=F(()=>{const{previewSrcList:B}=r;return Array.isArray(B)&&B.length>0}),x=F(()=>{const{previewSrcList:B,initialIndex:k}=r;let z=k;return k>B.length-1&&(z=0),z}),S=F(()=>r.loading==="eager"?!1:!v&&r.loading==="lazy"||r.lazy),T=()=>{ur&&(c.value=!0,u.value=!1,l.value=r.src)};function A(B){c.value=!1,u.value=!1,t("load",B)}function C(B){c.value=!1,u.value=!0,t("error",B)}function M(){yFe(d.value,h.value)&&(T(),P())}const E=HJ(M,200,!0);async function D(){var B;if(!ur)return;await qe();const{scrollContainer:k}=r;us(k)?h.value=k:wt(k)&&k!==""?h.value=(B=document.querySelector(k))!=null?B:void 0:d.value&&(h.value=ZN(d.value)),h.value&&(p=dn(h,"scroll",E),setTimeout(()=>M(),100))}function P(){!ur||!h.value||!E||(p==null||p(),h.value=void 0)}function L(B){if(B.ctrlKey){if(B.deltaY<0)return B.preventDefault(),!1;if(B.deltaY>0)return B.preventDefault(),!1}}function I(){w.value&&(g=dn("wheel",L,{passive:!1}),n=document.body.style.overflow,document.body.style.overflow="hidden",f.value=!0,t("show"))}function O(){g==null||g(),document.body.style.overflow=n,f.value=!1,t("close")}function R(B){t("switch",B)}return Ae(()=>r.src,()=>{S.value?(c.value=!0,u.value=!1,P(),D()):T()}),xt(()=>{S.value?D():T()}),(B,k)=>(N(),U("div",{ref_key:"container",ref:d,class:H([b(i).b(),B.$attrs.class]),style:Xe(b(y))},[u.value?ye(B.$slots,"error",{key:0},()=>[V("div",{class:H(b(i).e("error"))},me(b(a)("el.image.error")),3)]):(N(),U(Be,{key:1},[l.value!==void 0?(N(),U("img",Ut({key:0},b(s),{src:l.value,loading:B.loading,style:b(_),class:b(m),onClick:I,onLoad:A,onError:C}),null,16,Ltt)):ce("v-if",!0),c.value?(N(),U("div",{key:1,class:H(b(i).e("wrapper"))},[ye(B.$slots,"placeholder",{},()=>[V("div",{class:H(b(i).e("placeholder"))},null,2)])],2)):ce("v-if",!0)],64)),b(w)?(N(),U(Be,{key:2},[f.value?(N(),he(b(hne),{key:0,"z-index":B.zIndex,"initial-index":b(x),infinite:B.infinite,"zoom-rate":B.zoomRate,"min-scale":B.minScale,"max-scale":B.maxScale,"url-list":B.previewSrcList,"hide-on-click-modal":B.hideOnClickModal,teleported:B.previewTeleported,"close-on-press-escape":B.closeOnPressEscape,onClose:O,onSwitch:R},{default:le(()=>[B.$slots.viewer?(N(),U("div",Itt,[ye(B.$slots,"viewer")])):ce("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):ce("v-if",!0)],64)):ce("v-if",!0)],6))}});var ktt=ke(Ott,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const Ntt=kt(ktt),Btt=Oe({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:Ga,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||ct(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),Ftt={[ln]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Di]:e=>ct(e)||Qn(e),[Nt]:e=>ct(e)||Qn(e)},Vtt=["aria-label","onKeydown"],ztt=["aria-label","onKeydown"],Htt=te({name:"ElInputNumber"}),Gtt=te({...Htt,props:Btt,emits:Ftt,setup(e,{expose:t,emit:r}){const n=e,{t:a}=fr(),i=Ce("input-number"),o=G(),s=Ar({currentValue:n.modelValue,userInput:null}),{formItem:l}=Vi(),u=F(()=>ct(n.modelValue)&&n.modelValue<=n.min),c=F(()=>ct(n.modelValue)&&n.modelValue>=n.max),f=F(()=>{const P=m(n.step);return oa(n.precision)?Math.max(m(n.modelValue),P):(P>n.precision,n.precision)}),d=F(()=>n.controls&&n.controlsPosition==="right"),h=ca(),v=ho(),p=F(()=>{if(s.userInput!==null)return s.userInput;let P=s.currentValue;if(Qn(P))return"";if(ct(P)){if(Number.isNaN(P))return"";oa(n.precision)||(P=P.toFixed(n.precision))}return P}),g=(P,L)=>{if(oa(L)&&(L=f.value),L===0)return Math.round(P);let I=String(P);const O=I.indexOf(".");if(O===-1||!I.replace(".","").split("")[O+L])return P;const k=I.length;return I.charAt(k-1)==="5"&&(I=`${I.slice(0,Math.max(0,k-1))}6`),Number.parseFloat(Number(I).toFixed(L))},m=P=>{if(Qn(P))return 0;const L=P.toString(),I=L.indexOf(".");let O=0;return I!==-1&&(O=L.length-I-1),O},y=(P,L=1)=>ct(P)?g(P+n.step*L):s.currentValue,_=()=>{if(n.readonly||v.value||c.value)return;const P=Number(p.value)||0,L=y(P);S(L),r(Di,s.currentValue)},w=()=>{if(n.readonly||v.value||u.value)return;const P=Number(p.value)||0,L=y(P,-1);S(L),r(Di,s.currentValue)},x=(P,L)=>{const{max:I,min:O,step:R,precision:B,stepStrictly:k,valueOnClear:z}=n;II||$I?I:O,L&&r(Nt,$)),$},S=(P,L=!0)=>{var I;const O=s.currentValue,R=x(P);if(!L){r(Nt,R);return}O!==R&&(s.userInput=null,r(Nt,R),r(ln,R,O),n.validateEvent&&((I=l==null?void 0:l.validate)==null||I.call(l,"change").catch(B=>void 0)),s.currentValue=R)},T=P=>{s.userInput=P;const L=P===""?null:Number(P);r(Di,L),S(L,!1)},A=P=>{const L=P!==""?Number(P):"";(ct(L)&&!Number.isNaN(L)||P==="")&&S(L),s.userInput=null},C=()=>{var P,L;(L=(P=o.value)==null?void 0:P.focus)==null||L.call(P)},M=()=>{var P,L;(L=(P=o.value)==null?void 0:P.blur)==null||L.call(P)},E=P=>{r("focus",P)},D=P=>{var L;r("blur",P),n.validateEvent&&((L=l==null?void 0:l.validate)==null||L.call(l,"blur").catch(I=>void 0))};return Ae(()=>n.modelValue,P=>{const L=x(s.userInput),I=x(P,!0);!ct(L)&&(!L||L!==I)&&(s.currentValue=I,s.userInput=null)},{immediate:!0}),xt(()=>{var P;const{min:L,max:I,modelValue:O}=n,R=(P=o.value)==null?void 0:P.input;if(R.setAttribute("role","spinbutton"),Number.isFinite(I)?R.setAttribute("aria-valuemax",String(I)):R.removeAttribute("aria-valuemax"),Number.isFinite(L)?R.setAttribute("aria-valuemin",String(L)):R.removeAttribute("aria-valuemin"),R.setAttribute("aria-valuenow",s.currentValue||s.currentValue===0?String(s.currentValue):""),R.setAttribute("aria-disabled",String(v.value)),!ct(O)&&O!=null){let B=Number(O);Number.isNaN(B)&&(B=null),r(Nt,B)}}),qu(()=>{var P,L;const I=(P=o.value)==null?void 0:P.input;I==null||I.setAttribute("aria-valuenow",`${(L=s.currentValue)!=null?L:""}`)}),t({focus:C,blur:M}),(P,L)=>(N(),U("div",{class:H([b(i).b(),b(i).m(b(h)),b(i).is("disabled",b(v)),b(i).is("without-controls",!P.controls),b(i).is("controls-right",b(d))]),onDragstart:L[1]||(L[1]=it(()=>{},["prevent"]))},[P.controls?Ct((N(),U("span",{key:0,role:"button","aria-label":b(a)("el.inputNumber.decrease"),class:H([b(i).e("decrease"),b(i).is("disabled",b(u))]),onKeydown:dr(w,["enter"])},[J(b(Ze),null,{default:le(()=>[b(d)?(N(),he(b(Vf),{key:0})):(N(),he(b(uUe),{key:1}))]),_:1})],42,Vtt)),[[b(d2),w]]):ce("v-if",!0),P.controls?Ct((N(),U("span",{key:1,role:"button","aria-label":b(a)("el.inputNumber.increase"),class:H([b(i).e("increase"),b(i).is("disabled",b(c))]),onKeydown:dr(_,["enter"])},[J(b(Ze),null,{default:le(()=>[b(d)?(N(),he(b(mT),{key:0})):(N(),he(b(Oee),{key:1}))]),_:1})],42,ztt)),[[b(d2),_]]):ce("v-if",!0),J(b(li),{id:P.id,ref_key:"input",ref:o,type:"number",step:P.step,"model-value":b(p),placeholder:P.placeholder,readonly:P.readonly,disabled:b(v),size:b(h),max:P.max,min:P.min,name:P.name,label:P.label,"validate-event":!1,onWheel:L[0]||(L[0]=it(()=>{},["prevent"])),onKeydown:[dr(it(_,["prevent"]),["up"]),dr(it(w,["prevent"]),["down"])],onBlur:D,onFocus:E,onInput:T,onChange:A},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var Utt=ke(Gtt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const vne=kt(Utt),$tt=Oe({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:Zr}}),Wtt={click:e=>e instanceof MouseEvent},Ytt=["href"],jtt=te({name:"ElLink"}),Ktt=te({...jtt,props:$tt,emits:Wtt,setup(e,{emit:t}){const r=e,n=Ce("link"),a=F(()=>[n.b(),n.m(r.type),n.is("disabled",r.disabled),n.is("underline",r.underline&&!r.disabled)]);function i(o){r.disabled||t("click",o)}return(o,s)=>(N(),U("a",{class:H(b(a)),href:o.disabled||!o.href?void 0:o.href,onClick:i},[o.icon?(N(),he(b(Ze),{key:0},{default:le(()=>[(N(),he(Ft(o.icon)))]),_:1})):ce("v-if",!0),o.$slots.default?(N(),U("span",{key:1,class:H(b(n).e("inner"))},[ye(o.$slots,"default")],2)):ce("v-if",!0),o.$slots.icon?ye(o.$slots,"icon",{key:2}):ce("v-if",!0)],10,Ytt))}});var Xtt=ke(Ktt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const Ztt=kt(Xtt);let qtt=class{constructor(t,r){this.parent=t,this.domNode=r,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,r=>{r.addEventListener("keydown",n=>{let a=!1;switch(n.code){case Qe.down:{this.gotoSubIndex(this.subIndex+1),a=!0;break}case Qe.up:{this.gotoSubIndex(this.subIndex-1),a=!0;break}case Qe.tab:{fS(t,"mouseleave");break}case Qe.enter:case Qe.space:{a=!0,n.currentTarget.click();break}}return a&&(n.preventDefault(),n.stopPropagation()),!1})})}},Qtt=class{constructor(t,r){this.domNode=t,this.submenu=null,this.submenu=null,this.init(r)}init(t){this.domNode.setAttribute("tabindex","0");const r=this.domNode.querySelector(`.${t}-menu`);r&&(this.submenu=new qtt(this,r)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let r=!1;switch(t.code){case Qe.down:{fS(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),r=!0;break}case Qe.up:{fS(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),r=!0;break}case Qe.tab:{fS(t.currentTarget,"mouseleave");break}case Qe.enter:case Qe.space:{r=!0,t.currentTarget.click();break}}r&&t.preventDefault()})}},Jtt=class{constructor(t,r){this.domNode=t,this.init(r)}init(t){const r=this.domNode.childNodes;Array.from(r).forEach(n=>{n.nodeType===1&&new Qtt(n,t)})}};const ert=te({name:"ElMenuCollapseTransition",setup(){const e=Ce("menu");return{listeners:{onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,n){Pl(r,`${e.namespace.value}-opacity-transition`),r.style.opacity="1",n()},onAfterEnter(r){ro(r,`${e.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),Ws(r,e.m("collapse"))?(ro(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Pl(r,e.m("collapse"))):(Pl(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),ro(r,e.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){Pl(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}}}}});function trt(e,t,r,n,a,i){return N(),he(Yn,Ut({mode:"out-in"},e.listeners),{default:le(()=>[ye(e.$slots,"default")]),_:3},16)}var rrt=ke(ert,[["render",trt],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function pne(e,t){const r=F(()=>{let a=e.parent;const i=[t.value];for(;a.type.name!=="ElMenu";)a.props.index&&i.unshift(a.props.index),a=a.parent;return i});return{parentMenu:F(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:r}}function nrt(e){return F(()=>{const r=e.backgroundColor;return r?new Yte(r).shade(20).toString():""})}const gne=(e,t)=>{const r=Ce("menu");return F(()=>r.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":nrt(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},art=Oe({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:Zr},expandOpenIcon:{type:Zr},collapseCloseIcon:{type:Zr},collapseOpenIcon:{type:Zr}}),mw="ElSubMenu";var N3=te({name:mw,props:art,setup(e,{slots:t,expose:r}){Ul({from:"popper-append-to-body",replacement:"teleported",scope:mw,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},F(()=>e.popperAppendToBody!==void 0));const n=It(),{indexPath:a,parentMenu:i}=pne(n,F(()=>e.index)),o=Ce("menu"),s=Ce("sub-menu"),l=Ye("rootMenu");l||ua(mw,"can not inject root menu");const u=Ye(`subMenu:${i.value.uid}`);u||ua(mw,"can not inject sub menu");const c=G({}),f=G({});let d;const h=G(!1),v=G(),p=G(null),g=F(()=>A.value==="horizontal"&&y.value?"bottom-start":"right-start"),m=F(()=>A.value==="horizontal"&&y.value||A.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?S.value?e.expandOpenIcon:e.expandCloseIcon:Vf:e.collapseCloseIcon&&e.collapseOpenIcon?S.value?e.collapseOpenIcon:e.collapseCloseIcon:Mi),y=F(()=>u.level===0),_=F(()=>{var O;const R=(O=e.teleported)!=null?O:e.popperAppendToBody;return R===void 0?y.value:R}),w=F(()=>l.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),x=F(()=>A.value==="horizontal"&&y.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"]),S=F(()=>l.openedMenus.includes(e.index)),T=F(()=>{let O=!1;return Object.values(c.value).forEach(R=>{R.active&&(O=!0)}),Object.values(f.value).forEach(R=>{R.active&&(O=!0)}),O}),A=F(()=>l.props.mode),C=Ar({index:e.index,indexPath:a,active:T}),M=gne(l.props,u.level+1),E=()=>{var O,R,B;return(B=(R=(O=p.value)==null?void 0:O.popperRef)==null?void 0:R.popperInstanceRef)==null?void 0:B.destroy()},D=O=>{O||E()},P=()=>{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:T.value})},L=(O,R=e.showTimeout)=>{var B;O.type!=="focus"&&(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled||(u.mouseInChild.value=!0,d==null||d(),{stop:d}=Wh(()=>{l.openMenu(e.index,a.value)},R),_.value&&((B=i.value.vnode.el)==null||B.dispatchEvent(new MouseEvent("mouseenter")))))},I=(O=!1)=>{var R,B;l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||(d==null||d(),u.mouseInChild.value=!1,{stop:d}=Wh(()=>!h.value&&l.closeMenu(e.index,a.value),e.hideTimeout),_.value&&O&&((R=n.parent)==null?void 0:R.type.name)==="ElSubMenu"&&((B=u.handleMouseleave)==null||B.call(u,!0)))};Ae(()=>l.props.collapse,O=>D(!!O));{const O=B=>{f.value[B.index]=B},R=B=>{delete f.value[B.index]};Wt(`subMenu:${n.uid}`,{addSubMenu:O,removeSubMenu:R,handleMouseleave:I,mouseInChild:h,level:u.level+1})}return r({opened:S}),xt(()=>{l.addSubMenu(C),u.addSubMenu(C)}),un(()=>{u.removeSubMenu(C),l.removeSubMenu(C)}),()=>{var O;const R=[(O=t.title)==null?void 0:O.call(t),et(Ze,{class:s.e("icon-arrow"),style:{transform:S.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>wt(m.value)?et(n.appContext.components[m.value]):et(m.value)})],B=l.isMenuPopup?et(Bi,{ref:p,visible:S.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:g.value,teleported:_.value,fallbackPlacements:x.value,transition:w.value,gpuAcceleration:!1},{content:()=>{var k;return et("div",{class:[o.m(A.value),o.m("popup-container"),e.popperClass],onMouseenter:z=>L(z,100),onMouseleave:()=>I(!0),onFocus:z=>L(z,100)},[et("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${g.value}`)],style:M.value},[(k=t.default)==null?void 0:k.call(t)])])},default:()=>et("div",{class:s.e("title"),onClick:P},R)}):et(Be,{},[et("div",{class:s.e("title"),ref:v,onClick:P},R),et(LT,{},{default:()=>{var k;return Ct(et("ul",{role:"menu",class:[o.b(),o.m("inline")],style:M.value},[(k=t.default)==null?void 0:k.call(t)]),[[hr,S.value]])}})]);return et("li",{class:[s.b(),s.is("active",T.value),s.is("opened",S.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:S.value,onMouseenter:L,onMouseleave:()=>I(!0),onFocus:L},[B])}}});const irt=Oe({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:fe(Array),default:()=>mn([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),jM=e=>Array.isArray(e)&&e.every(t=>wt(t)),ort={close:(e,t)=>wt(e)&&jM(t),open:(e,t)=>wt(e)&&jM(t),select:(e,t,r,n)=>wt(e)&&jM(t)&&Vt(r)&&(n===void 0||n instanceof Promise)};var srt=te({name:"ElMenu",props:irt,emits:ort,setup(e,{emit:t,slots:r,expose:n}){const a=It(),i=a.appContext.config.globalProperties.$router,o=G(),s=Ce("menu"),l=Ce("sub-menu"),u=G(-1),c=G(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=G(e.defaultActive),d=G({}),h=G({}),v=F(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),p=()=>{const E=f.value&&d.value[f.value];if(!E||e.mode==="horizontal"||e.collapse)return;E.indexPath.forEach(P=>{const L=h.value[P];L&&g(P,L.indexPath)})},g=(E,D)=>{c.value.includes(E)||(e.uniqueOpened&&(c.value=c.value.filter(P=>D.includes(P))),c.value.push(E),t("open",E,D))},m=E=>{const D=c.value.indexOf(E);D!==-1&&c.value.splice(D,1)},y=(E,D)=>{m(E),t("close",E,D)},_=({index:E,indexPath:D})=>{c.value.includes(E)?y(E,D):g(E,D)},w=E=>{(e.mode==="horizontal"||e.collapse)&&(c.value=[]);const{index:D,indexPath:P}=E;if(!(Qn(D)||Qn(P)))if(e.router&&i){const L=E.route||D,I=i.push(L).then(O=>(O||(f.value=D),O));t("select",D,P,{index:D,indexPath:P,route:L},I)}else f.value=D,t("select",D,P,{index:D,indexPath:P})},x=E=>{const D=d.value,P=D[E]||f.value&&D[f.value]||D[e.defaultActive];P?f.value=P.index:f.value=E},S=()=>{var E,D;if(!o.value)return-1;const P=Array.from((D=(E=o.value)==null?void 0:E.childNodes)!=null?D:[]).filter(z=>z.nodeName!=="#comment"&&(z.nodeName!=="#text"||z.nodeValue)),L=64,I=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),O=Number.parseInt(getComputedStyle(o.value).paddingRight,10),R=o.value.clientWidth-I-O;let B=0,k=0;return P.forEach((z,$)=>{B+=z.offsetWidth||0,B<=R-L&&(k=$+1)}),k===P.length?-1:k},T=(E,D=33.34)=>{let P;return()=>{P&&clearTimeout(P),P=setTimeout(()=>{E()},D)}};let A=!0;const C=()=>{const E=()=>{u.value=-1,qe(()=>{u.value=S()})};A?E():T(E)(),A=!1};Ae(()=>e.defaultActive,E=>{d.value[E]||(f.value=""),x(E)}),Ae(()=>e.collapse,E=>{E&&(c.value=[])}),Ae(d.value,p);let M;xo(()=>{e.mode==="horizontal"&&e.ellipsis?M=di(o,C).stop:M==null||M()});{const E=I=>{h.value[I.index]=I},D=I=>{delete h.value[I.index]};Wt("rootMenu",Ar({props:e,openedMenus:c,items:d,subMenus:h,activeIndex:f,isMenuPopup:v,addMenuItem:I=>{d.value[I.index]=I},removeMenuItem:I=>{delete d.value[I.index]},addSubMenu:E,removeSubMenu:D,openMenu:g,closeMenu:y,handleMenuItemClick:w,handleSubMenuClick:_})),Wt(`subMenu:${a.uid}`,{addSubMenu:E,removeSubMenu:D,mouseInChild:G(!1),level:0})}return xt(()=>{e.mode==="horizontal"&&new Jtt(a.vnode.el,s.namespace.value)}),n({open:D=>{const{indexPath:P}=h.value[D];P.forEach(L=>g(L,P))},close:m,handleResize:C}),()=>{var E,D;let P=(D=(E=r.default)==null?void 0:E.call(r))!=null?D:[];const L=[];if(e.mode==="horizontal"&&o.value){const R=Mh(P),B=u.value===-1?R:R.slice(0,u.value),k=u.value===-1?[]:R.slice(u.value);k!=null&&k.length&&e.ellipsis&&(P=B,L.push(et(N3,{index:"sub-menu-more",class:l.e("hide-arrow")},{title:()=>et(Ze,{class:l.e("icon-more")},{default:()=>et(dUe)}),default:()=>k})))}const I=gne(e,0),O=et("ul",{key:String(e.collapse),role:"menubar",ref:o,style:I.value,class:{[s.b()]:!0,[s.m(e.mode)]:!0,[s.m("collapse")]:e.collapse}},[...P,...L]);return e.collapseTransition&&e.mode==="vertical"?et(rrt,()=>O):O}}});const lrt=Oe({index:{type:fe([String,null]),default:null},route:{type:fe([String,Object])},disabled:Boolean}),urt={click:e=>wt(e.index)&&Array.isArray(e.indexPath)},KM="ElMenuItem",crt=te({name:KM,components:{ElTooltip:Bi},props:lrt,emits:urt,setup(e,{emit:t}){const r=It(),n=Ye("rootMenu"),a=Ce("menu"),i=Ce("menu-item");n||ua(KM,"can not inject root menu");const{parentMenu:o,indexPath:s}=pne(r,Sn(e,"index")),l=Ye(`subMenu:${o.value.uid}`);l||ua(KM,"can not inject sub menu");const u=F(()=>e.index===n.activeIndex),c=Ar({index:e.index,indexPath:s,active:u}),f=()=>{e.disabled||(n.handleMenuItemClick({index:e.index,indexPath:s.value,route:e.route}),t("click",c))};return xt(()=>{l.addSubMenu(c),n.addMenuItem(c)}),un(()=>{l.removeSubMenu(c),n.removeMenuItem(c)}),{parentMenu:o,rootMenu:n,active:u,nsMenu:a,nsMenuItem:i,handleClick:f}}});function frt(e,t,r,n,a,i){const o=bt("el-tooltip");return N(),U("li",{class:H([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(N(),he(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:le(()=>[ye(e.$slots,"title")]),default:le(()=>[V("div",{class:H(e.nsMenu.be("tooltip","trigger"))},[ye(e.$slots,"default")],2)]),_:3},8,["effect"])):(N(),U(Be,{key:1},[ye(e.$slots,"default"),ye(e.$slots,"title")],64))],2)}var mne=ke(crt,[["render",frt],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const drt={title:String},hrt="ElMenuItemGroup",vrt=te({name:hrt,props:drt,setup(){return{ns:Ce("menu-item-group")}}});function prt(e,t,r,n,a,i){return N(),U("li",{class:H(e.ns.b())},[V("div",{class:H(e.ns.e("title"))},[e.$slots.title?ye(e.$slots,"title",{key:1}):(N(),U(Be,{key:0},[nr(me(e.title),1)],64))],2),V("ul",null,[ye(e.$slots,"default")])],2)}var yne=ke(vrt,[["render",prt],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const grt=kt(srt,{MenuItem:mne,MenuItemGroup:yne,SubMenu:N3}),mrt=Pn(mne),yrt=Pn(yne),_rt=Pn(N3),brt=Oe({icon:{type:Zr,default:()=>NGe},title:String,content:{type:String,default:""}}),wrt={back:()=>!0},Srt=["aria-label"],xrt=te({name:"ElPageHeader"}),Art=te({...xrt,props:brt,emits:wrt,setup(e,{emit:t}){const r=$a(),{t:n}=fr(),a=Ce("page-header"),i=F(()=>[a.b(),{[a.m("has-breadcrumb")]:!!r.breadcrumb,[a.m("has-extra")]:!!r.extra,[a.is("contentful")]:!!r.default}]);function o(){t("back")}return(s,l)=>(N(),U("div",{class:H(b(i))},[s.$slots.breadcrumb?(N(),U("div",{key:0,class:H(b(a).e("breadcrumb"))},[ye(s.$slots,"breadcrumb")],2)):ce("v-if",!0),V("div",{class:H(b(a).e("header"))},[V("div",{class:H(b(a).e("left"))},[V("div",{class:H(b(a).e("back")),role:"button",tabindex:"0",onClick:o},[s.icon||s.$slots.icon?(N(),U("div",{key:0,"aria-label":s.title||b(n)("el.pageHeader.title"),class:H(b(a).e("icon"))},[ye(s.$slots,"icon",{},()=>[s.icon?(N(),he(b(Ze),{key:0},{default:le(()=>[(N(),he(Ft(s.icon)))]),_:1})):ce("v-if",!0)])],10,Srt)):ce("v-if",!0),V("div",{class:H(b(a).e("title"))},[ye(s.$slots,"title",{},()=>[nr(me(s.title||b(n)("el.pageHeader.title")),1)])],2)],2),J(b(nne),{direction:"vertical"}),V("div",{class:H(b(a).e("content"))},[ye(s.$slots,"content",{},()=>[nr(me(s.content),1)])],2)],2),s.$slots.extra?(N(),U("div",{key:0,class:H(b(a).e("extra"))},[ye(s.$slots,"extra")],2)):ce("v-if",!0)],2),s.$slots.default?(N(),U("div",{key:1,class:H(b(a).e("main"))},[ye(s.$slots,"default")],2)):ce("v-if",!0)],2))}});var Trt=ke(Art,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const Crt=kt(Trt),_ne=Symbol("elPaginationKey"),Ert=Oe({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Zr}}),Mrt={click:e=>e instanceof MouseEvent},Drt=["disabled","aria-label","aria-disabled"],Prt={key:0},Lrt=te({name:"ElPaginationPrev"}),Irt=te({...Lrt,props:Ert,emits:Mrt,setup(e){const t=e,{t:r}=fr(),n=F(()=>t.disabled||t.currentPage<=1);return(a,i)=>(N(),U("button",{type:"button",class:"btn-prev",disabled:b(n),"aria-label":a.prevText||b(r)("el.pagination.prev"),"aria-disabled":b(n),onClick:i[0]||(i[0]=o=>a.$emit("click",o))},[a.prevText?(N(),U("span",Prt,me(a.prevText),1)):(N(),he(b(Ze),{key:1},{default:le(()=>[(N(),he(Ft(a.prevIcon)))]),_:1}))],8,Drt))}});var Rrt=ke(Irt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const Ort=Oe({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Zr}}),krt=["disabled","aria-label","aria-disabled"],Nrt={key:0},Brt=te({name:"ElPaginationNext"}),Frt=te({...Brt,props:Ort,emits:["click"],setup(e){const t=e,{t:r}=fr(),n=F(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(a,i)=>(N(),U("button",{type:"button",class:"btn-next",disabled:b(n),"aria-label":a.nextText||b(r)("el.pagination.next"),"aria-disabled":b(n),onClick:i[0]||(i[0]=o=>a.$emit("click",o))},[a.nextText?(N(),U("span",Nrt,me(a.nextText),1)):(N(),he(b(Ze),{key:1},{default:le(()=>[(N(),he(Ft(a.nextIcon)))]),_:1}))],8,krt))}});var Vrt=ke(Frt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const bne=Symbol("ElSelectGroup"),k1=Symbol("ElSelect");function zrt(e,t){const r=Ye(k1),n=Ye(bne,{disabled:!1}),a=F(()=>Vt(e.value)),i=F(()=>r.props.multiple?f(r.props.modelValue,e.value):d(e.value,r.props.modelValue)),o=F(()=>{if(r.props.multiple){const p=r.props.modelValue||[];return!i.value&&p.length>=r.props.multipleLimit&&r.props.multipleLimit>0}else return!1}),s=F(()=>e.label||(a.value?"":e.value)),l=F(()=>e.value||e.label||""),u=F(()=>e.disabled||t.groupDisabled||o.value),c=It(),f=(p=[],g)=>{if(a.value){const m=r.props.valueKey;return p&&p.some(y=>Er(gn(y,m))===gn(g,m))}else return p&&p.includes(g)},d=(p,g)=>{if(a.value){const{valueKey:m}=r.props;return gn(p,m)===gn(g,m)}else return p===g},h=()=>{!e.disabled&&!n.disabled&&(r.hoverIndex=r.optionsArray.indexOf(c.proxy))};Ae(()=>s.value,()=>{!e.created&&!r.props.remote&&r.setSelected()}),Ae(()=>e.value,(p,g)=>{const{remote:m,valueKey:y}=r.props;if(Object.is(p,g)||(r.onOptionDestroy(g,c.proxy),r.onOptionCreate(c.proxy)),!e.created&&!m){if(y&&Vt(p)&&Vt(g)&&p[y]===g[y])return;r.setSelected()}}),Ae(()=>n.disabled,()=>{t.groupDisabled=n.disabled},{immediate:!0});const{queryChange:v}=Er(r);return Ae(v,p=>{const{query:g}=b(p),m=new RegExp(Mee(g),"i");t.visible=m.test(s.value)||e.created,t.visible||r.filteredOptionsCount--},{immediate:!0}),{select:r,currentLabel:s,currentValue:l,itemSelected:i,isDisabled:u,hoverItem:h}}const Hrt=te({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Ce("select"),r=co(),n=F(()=>[t.be("dropdown","item"),t.is("disabled",b(s)),{selected:b(o),hover:b(f)}]),a=Ar({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:i,itemSelected:o,isDisabled:s,select:l,hoverItem:u}=zrt(e,a),{visible:c,hover:f}=Da(a),d=It().proxy;l.onOptionCreate(d),un(()=>{const v=d.value,{selected:p}=l,m=(l.props.multiple?p:[p]).some(y=>y.value===d.value);qe(()=>{l.cachedOptions.get(v)===d&&!m&&l.cachedOptions.delete(v)}),l.onOptionDestroy(v,d)});function h(){e.disabled!==!0&&a.groupDisabled!==!0&&l.handleOptionSelect(d)}return{ns:t,id:r,containerKls:n,currentLabel:i,itemSelected:o,isDisabled:s,select:l,hoverItem:u,visible:c,hover:f,selectOptionClick:h,states:a}}}),Grt=["id","aria-disabled","aria-selected"];function Urt(e,t,r,n,a,i){return Ct((N(),U("li",{id:e.id,class:H(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:t[0]||(t[0]=(...o)=>e.hoverItem&&e.hoverItem(...o)),onClick:t[1]||(t[1]=it((...o)=>e.selectOptionClick&&e.selectOptionClick(...o),["stop"]))},[ye(e.$slots,"default",{},()=>[V("span",null,me(e.currentLabel),1)])],42,Grt)),[[hr,e.visible]])}var B3=ke(Hrt,[["render",Urt],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const $rt=te({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Ye(k1),t=Ce("select"),r=F(()=>e.props.popperClass),n=F(()=>e.props.multiple),a=F(()=>e.props.fitInputWidth),i=G("");function o(){var s;i.value=`${(s=e.selectWrapper)==null?void 0:s.offsetWidth}px`}return xt(()=>{o(),di(e.selectWrapper,o)}),{ns:t,minWidth:i,popperClass:r,isMultiple:n,isFitInputWidth:a}}});function Wrt(e,t,r,n,a,i){return N(),U("div",{class:H([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Xe({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(N(),U("div",{key:0,class:H(e.ns.be("dropdown","header"))},[ye(e.$slots,"header")],2)):ce("v-if",!0),ye(e.$slots,"default"),e.$slots.footer?(N(),U("div",{key:1,class:H(e.ns.be("dropdown","footer"))},[ye(e.$slots,"footer")],2)):ce("v-if",!0)],6)}var Yrt=ke($rt,[["render",Wrt],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function jrt(e){const{t}=fr();return Ar({options:new Map,cachedOptions:new Map,disabledOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,prefixWidth:11,mouseEnter:!1,focused:!1})}const Krt=(e,t,r)=>{const{t:n}=fr(),a=Ce("select");Ul({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},F(()=>e.suffixTransition===!1));const i=G(null),o=G(null),s=G(null),l=G(null),u=G(null),c=G(null),f=G(null),d=G(null),h=G(),v=yr({query:""}),p=yr(""),g=G([]);let m=0;const{form:y,formItem:_}=Vi(),w=F(()=>!e.filterable||e.multiple||!t.visible),x=F(()=>e.disabled||(y==null?void 0:y.disabled)),S=F(()=>{const we=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!x.value&&t.inputHovering&&we}),T=F(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),A=F(()=>a.is("reverse",T.value&&t.visible&&e.suffixTransition)),C=F(()=>(y==null?void 0:y.statusIcon)&&(_==null?void 0:_.validateState)&&t3[_==null?void 0:_.validateState]),M=F(()=>e.remote?300:0),E=F(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||n("el.select.noMatch"):t.options.size===0?e.noDataText||n("el.select.noData"):null),D=F(()=>{const we=Array.from(t.options.values()),ze=[];return g.value.forEach(pt=>{const lr=we.findIndex(ba=>ba.currentLabel===pt);lr>-1&&ze.push(we[lr])}),ze.length>=we.length?ze:we}),P=F(()=>Array.from(t.cachedOptions.values())),L=F(()=>{const we=D.value.filter(ze=>!ze.created).some(ze=>ze.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!we}),I=ca(),O=F(()=>["small"].includes(I.value)?"small":"default"),R=F({get(){return t.visible&&E.value!==!1},set(we){t.visible=we}});Ae([()=>x.value,()=>I.value,()=>y==null?void 0:y.size],()=>{qe(()=>{B()})}),Ae(()=>e.placeholder,we=>{t.cachedPlaceHolder=t.currentPlaceholder=we,e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(t.currentPlaceholder="")}),Ae(()=>e.modelValue,(we,ze)=>{e.multiple&&(B(),we&&we.length>0||o.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",k(t.query))),j(),e.filterable&&!e.multiple&&(t.inputLength=20),!to(we,ze)&&e.validateEvent&&(_==null||_.validate("change").catch(pt=>void 0))},{flush:"post",deep:!0}),Ae(()=>t.visible,we=>{var ze,pt,lr,ba,Re;we?((pt=(ze=l.value)==null?void 0:ze.updatePopper)==null||pt.call(ze),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,(ba=(lr=s.value)==null?void 0:lr.focus)==null||ba.call(lr),e.multiple?(Re=o.value)==null||Re.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),k(t.query),!e.multiple&&!e.remote&&(v.value.query="",gm(v),gm(p)))):(e.filterable&&(dt(e.filterMethod)&&e.filterMethod(""),dt(e.remoteMethod)&&e.remoteMethod("")),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,Q(),qe(()=>{o.value&&o.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),r.emit("visible-change",we)}),Ae(()=>t.options.entries(),()=>{var we,ze,pt;if(!ur)return;(ze=(we=l.value)==null?void 0:we.updatePopper)==null||ze.call(we),e.multiple&&B();const lr=((pt=f.value)==null?void 0:pt.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!oa(e.modelValue)||!Array.from(lr).includes(document.activeElement))&&j(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&$()},{flush:"post"}),Ae(()=>t.hoverIndex,we=>{ct(we)&&we>-1?h.value=D.value[we]||{}:h.value={},D.value.forEach(ze=>{ze.hover=h.value===ze})});const B=()=>{qe(()=>{var we,ze;if(!i.value)return;const pt=i.value.$el.querySelector("input");m=m||(pt.clientHeight>0?pt.clientHeight+2:0);const lr=c.value,ba=getComputedStyle(pt).getPropertyValue(a.cssVarName("input-height")),Re=Number.parseFloat(ba)||$Ue(I.value||(y==null?void 0:y.size)),ft=I.value||Re===m||m<=0?Re:m;!(pt.offsetParent===null)&&(pt.style.height=`${(t.selected.length===0?ft:Math.max(lr?lr.clientHeight+(lr.clientHeight>ft?6:0):0,ft))-2}px`),t.visible&&E.value!==!1&&((ze=(we=l.value)==null?void 0:we.updatePopper)==null||ze.call(we))})},k=async we=>{if(!(t.previousQuery===we||t.isOnComposition)){if(t.previousQuery===null&&(dt(e.filterMethod)||dt(e.remoteMethod))){t.previousQuery=we;return}t.previousQuery=we,qe(()=>{var ze,pt;t.visible&&((pt=(ze=l.value)==null?void 0:ze.updatePopper)==null||pt.call(ze))}),t.hoverIndex=-1,e.multiple&&e.filterable&&qe(()=>{if(!x.value){const ze=o.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,ze):ze,z()}B()}),e.remote&&dt(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(we)):dt(e.filterMethod)?(e.filterMethod(we),gm(p)):(t.filteredOptionsCount=t.optionsCount,v.value.query=we,gm(v),gm(p)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await qe(),$())}},z=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=o.value.value?"":t.cachedPlaceHolder)},$=()=>{const we=D.value.filter(lr=>lr.visible&&!lr.disabled&&!lr.states.groupDisabled),ze=we.find(lr=>lr.created),pt=we[0];t.hoverIndex=_e(D.value,ze||pt)},j=()=>{var we;if(e.multiple)t.selectedLabel="";else{const pt=X(e.modelValue);(we=pt.props)!=null&&we.created?(t.createdLabel=pt.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=pt.currentLabel,t.selected=pt,e.filterable&&(t.query=t.selectedLabel);return}const ze=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(pt=>{ze.push(X(pt))}),t.selected=ze,qe(()=>{B()})},X=we=>{let ze;const pt=Ow(we).toLowerCase()==="object",lr=Ow(we).toLowerCase()==="null",ba=Ow(we).toLowerCase()==="undefined";for(let Yt=t.cachedOptions.size-1;Yt>=0;Yt--){const gr=P.value[Yt];if(pt?gn(gr.value,e.valueKey)===gn(we,e.valueKey):gr.value===we){ze={value:we,currentLabel:gr.currentLabel,isDisabled:gr.isDisabled};break}}if(ze)return ze;const Re=pt?we.label:!lr&&!ba?we:"",ft={value:we,currentLabel:Re};return e.multiple&&(ft.hitState=!1),ft},Q=()=>{setTimeout(()=>{const we=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(ze=>D.value.findIndex(pt=>gn(pt,we)===gn(ze,we)))):t.hoverIndex=-1:t.hoverIndex=D.value.findIndex(ze=>Me(ze)===Me(t.selected))},300)},se=()=>{var we,ze;ee(),(ze=(we=l.value)==null?void 0:we.updatePopper)==null||ze.call(we),e.multiple&&B()},ee=()=>{var we;t.inputWidth=(we=i.value)==null?void 0:we.$el.offsetWidth},K=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,k(t.query))},Z=Ni(()=>{K()},M.value),ne=Ni(we=>{k(we.target.value)},M.value),re=we=>{to(e.modelValue,we)||r.emit(ln,we)},ie=we=>lGe(we,ze=>!t.disabledOptions.has(ze)),Y=we=>{if(we.code!==Qe.delete){if(we.target.value.length<=0&&!Ve()){const ze=e.modelValue.slice(),pt=ie(ze);if(pt<0)return;ze.splice(pt,1),r.emit(Nt,ze),re(ze)}we.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}},q=(we,ze)=>{const pt=t.selected.indexOf(ze);if(pt>-1&&!x.value){const lr=e.modelValue.slice();lr.splice(pt,1),r.emit(Nt,lr),re(lr),r.emit("remove-tag",ze.value)}we.stopPropagation(),Ue()},oe=we=>{we.stopPropagation();const ze=e.multiple?[]:"";if(!wt(ze))for(const pt of t.selected)pt.isDisabled&&ze.push(pt.value);r.emit(Nt,ze),re(ze),t.hoverIndex=-1,t.visible=!1,r.emit("clear"),Ue()},ve=we=>{var ze;if(e.multiple){const pt=(e.modelValue||[]).slice(),lr=_e(pt,we.value);lr>-1?pt.splice(lr,1):(e.multipleLimit<=0||pt.length{Le(we)})},_e=(we=[],ze)=>{if(!Vt(ze))return we.indexOf(ze);const pt=e.valueKey;let lr=-1;return we.some((ba,Re)=>Er(gn(ba,pt))===gn(ze,pt)?(lr=Re,!0):!1),lr},ge=()=>{const we=o.value||i.value;we&&(we==null||we.focus())},Le=we=>{var ze,pt,lr,ba,Re;const ft=Array.isArray(we)?we[0]:we;let Yt=null;if(ft!=null&&ft.value){const gr=D.value.filter(ka=>ka.value===ft.value);gr.length>0&&(Yt=gr[0].$el)}if(l.value&&Yt){const gr=(ba=(lr=(pt=(ze=l.value)==null?void 0:ze.popperRef)==null?void 0:pt.contentRef)==null?void 0:lr.querySelector)==null?void 0:ba.call(lr,`.${a.be("dropdown","wrap")}`);gr&&Lee(gr,Yt)}(Re=d.value)==null||Re.handleScroll()},Se=we=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(we.value,we),t.cachedOptions.set(we.value,we),we.disabled&&t.disabledOptions.set(we.value,we)},xe=(we,ze)=>{t.options.get(we)===ze&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(we))},Te=we=>{we.code!==Qe.backspace&&Ve(!1),t.inputLength=o.value.value.length*15+20,B()},Ve=we=>{if(!Array.isArray(t.selected))return;const ze=ie(t.selected.map(lr=>lr.value)),pt=t.selected[ze];if(pt)return we===!0||we===!1?(pt.hitState=we,we):(pt.hitState=!pt.hitState,pt.hitState)},He=we=>{const ze=we.target.value;if(we.type==="compositionend")t.isOnComposition=!1,qe(()=>k(ze));else{const pt=ze[ze.length-1]||"";t.isOnComposition=!bT(pt)}},je=()=>{qe(()=>Le(t.selected))},Pe=we=>{t.focused||((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),t.focused=!0,r.emit("focus",we))},Ue=()=>{var we,ze;t.visible?(we=o.value||i.value)==null||we.focus():(ze=i.value)==null||ze.focus()},gt=()=>{var we,ze,pt;t.visible=!1,(we=i.value)==null||we.blur(),(pt=(ze=s.value)==null?void 0:ze.blur)==null||pt.call(ze)},At=we=>{var ze,pt,lr;(ze=l.value)!=null&&ze.isFocusInsideContent(we)||(pt=u.value)!=null&&pt.isFocusInsideContent(we)||(lr=f.value)!=null&&lr.contains(we.relatedTarget)||(t.visible&&tt(),t.focused=!1,r.emit("blur",we))},Gt=we=>{oe(we)},tt=()=>{t.visible=!1},be=we=>{t.visible&&(we.preventDefault(),we.stopPropagation(),t.visible=!1)},pe=we=>{we&&!t.mouseEnter||x.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!l.value||!l.value.isFocusInsideContent())&&(t.visible=!t.visible),Ue())},de=()=>{t.visible?D.value[t.hoverIndex]&&ve(D.value[t.hoverIndex]):pe()},Me=we=>Vt(we.value)?gn(we.value,e.valueKey):we.value,ae=F(()=>D.value.filter(we=>we.visible).every(we=>we.disabled)),Ge=F(()=>e.multiple?t.selected.slice(0,e.maxCollapseTags):[]),St=F(()=>e.multiple?t.selected.slice(e.maxCollapseTags):[]),Kt=we=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!ae.value){we==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):we==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const ze=D.value[t.hoverIndex];(ze.disabled===!0||ze.states.groupDisabled===!0||!ze.visible)&&Kt(we),qe(()=>Le(h.value))}},Xn=()=>{t.mouseEnter=!0},An=()=>{t.mouseEnter=!1},Io=(we,ze)=>{var pt,lr;q(we,ze),(lr=(pt=u.value)==null?void 0:pt.updatePopper)==null||lr.call(pt)},Ya=F(()=>({maxWidth:`${b(t.inputWidth)-32-(C.value?22:0)}px`,width:"100%"}));return{optionList:g,optionsArray:D,hoverOption:h,selectSize:I,handleResize:se,debouncedOnInputChange:Z,debouncedQueryChange:ne,deletePrevTag:Y,deleteTag:q,deleteSelected:oe,handleOptionSelect:ve,scrollToOption:Le,readonly:w,resetInputHeight:B,showClose:S,iconComponent:T,iconReverse:A,showNewOption:L,collapseTagSize:O,setSelected:j,managePlaceholder:z,selectDisabled:x,emptyText:E,toggleLastOptionHitState:Ve,resetInputState:Te,handleComposition:He,onOptionCreate:Se,onOptionDestroy:xe,handleMenuEnter:je,handleFocus:Pe,focus:Ue,blur:gt,handleBlur:At,handleClearClick:Gt,handleClose:tt,handleKeydownEscape:be,toggleMenu:pe,selectOption:de,getValueKey:Me,navigateOptions:Kt,handleDeleteTooltipTag:Io,dropMenuVisible:R,queryChange:v,groupQueryChange:p,showTagList:Ge,collapseTagList:St,selectTagsStyle:Ya,reference:i,input:o,iOSInput:s,tooltipRef:l,tagTooltipRef:u,tags:c,selectWrapper:f,scrollbar:d,handleMouseEnter:Xn,handleMouseLeave:An}};var Xrt=te({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:r}){let n=[];function a(i,o){if(i.length!==o.length)return!1;for(const[s]of i.entries())if(i[s]!=o[s])return!1;return!0}return()=>{var i,o;const s=(i=t.default)==null?void 0:i.call(t),l=[];function u(c){Array.isArray(c)&&c.forEach(f=>{var d,h,v,p;const g=(d=(f==null?void 0:f.type)||{})==null?void 0:d.name;g==="ElOptionGroup"?u(!wt(f.children)&&!Array.isArray(f.children)&&dt((h=f.children)==null?void 0:h.default)?(v=f.children)==null?void 0:v.default():f.children):g==="ElOption"?l.push((p=f.props)==null?void 0:p.label):Array.isArray(f.children)&&u(f.children)})}return s.length&&u((o=s[0])==null?void 0:o.children),a(l,n)||(n=l,r("update-options",l)),s}}});const RU="ElSelect",Zrt=te({name:RU,componentName:RU,components:{ElInput:li,ElSelectMenu:Yrt,ElOption:B3,ElOptions:Xrt,ElTag:w_,ElScrollbar:ic,ElTooltip:Bi,ElIcon:Ze},directives:{ClickOutside:Df},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:r3},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod: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:Va.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Zr,default:zf},fitInputWidth:Boolean,suffixIcon:{type:Zr,default:Vf},tagType:{...M3.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:dv,default:"bottom-start"},ariaLabel:{type:String,default:void 0}},emits:[Nt,ln,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const r=Ce("select"),n=Ce("input"),{t:a}=fr(),i=co(),o=jrt(e),{optionList:s,optionsArray:l,hoverOption:u,selectSize:c,readonly:f,handleResize:d,collapseTagSize:h,debouncedOnInputChange:v,debouncedQueryChange:p,deletePrevTag:g,deleteTag:m,deleteSelected:y,handleOptionSelect:_,scrollToOption:w,setSelected:x,resetInputHeight:S,managePlaceholder:T,showClose:A,selectDisabled:C,iconComponent:M,iconReverse:E,showNewOption:D,emptyText:P,toggleLastOptionHitState:L,resetInputState:I,handleComposition:O,onOptionCreate:R,onOptionDestroy:B,handleMenuEnter:k,handleFocus:z,focus:$,blur:j,handleBlur:X,handleClearClick:Q,handleClose:se,handleKeydownEscape:ee,toggleMenu:K,selectOption:Z,getValueKey:ne,navigateOptions:re,handleDeleteTooltipTag:ie,dropMenuVisible:Y,reference:q,input:oe,iOSInput:ve,tooltipRef:_e,tagTooltipRef:ge,tags:Le,selectWrapper:Se,scrollbar:xe,queryChange:Te,groupQueryChange:Ve,handleMouseEnter:He,handleMouseLeave:je,showTagList:Pe,collapseTagList:Ue,selectTagsStyle:gt}=Krt(e,o,t),{inputWidth:At,selected:Gt,inputLength:tt,filteredOptionsCount:be,visible:pe,selectedLabel:de,hoverIndex:Me,query:ae,inputHovering:Ge,currentPlaceholder:St,menuVisibleOnFocus:Kt,isOnComposition:Xn,options:An,cachedOptions:Io,optionsCount:Ya,prefixWidth:we}=Da(o),ze=F(()=>{const Na=[r.b()],Kf=b(c);return Kf&&Na.push(r.m(Kf)),e.disabled&&Na.push(r.m("disabled")),Na}),pt=F(()=>[r.e("tags"),r.is("disabled",b(C))]),lr=F(()=>[r.b("tags-wrapper"),{"has-prefix":b(we)&&b(Gt).length}]),ba=F(()=>[r.e("input"),r.is(b(c)),r.is("disabled",b(C))]),Re=F(()=>[r.e("input"),r.is(b(c)),r.em("input","iOS")]),ft=F(()=>[r.is("empty",!e.allowCreate&&!!b(ae)&&b(be)===0)]),Yt=F(()=>({maxWidth:`${b(At)>123&&b(Gt).length>e.maxCollapseTags?b(At)-123:b(At)-75}px`})),gr=F(()=>({marginLeft:`${b(we)}px`,flexGrow:1,width:`${b(tt)/(b(At)-32)}%`,maxWidth:`${b(At)-42}px`}));Wt(k1,Ar({props:e,options:An,optionsArray:l,cachedOptions:Io,optionsCount:Ya,filteredOptionsCount:be,hoverIndex:Me,handleOptionSelect:_,onOptionCreate:R,onOptionDestroy:B,selectWrapper:Se,selected:Gt,setSelected:x,queryChange:Te,groupQueryChange:Ve})),xt(()=>{o.cachedPlaceHolder=St.value=e.placeholder||(()=>a("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(St.value=""),di(Se,d),e.remote&&e.multiple&&S(),qe(()=>{const Na=q.value&&q.value.$el;if(Na&&(At.value=Na.getBoundingClientRect().width,t.slots.prefix)){const Kf=Na.querySelector(`.${n.e("prefix")}`);we.value=Math.max(Kf.getBoundingClientRect().width+11,30)}}),x()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(Nt,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(Nt,"");const ka=F(()=>{var Na,Kf;return(Kf=(Na=_e.value)==null?void 0:Na.popperRef)==null?void 0:Kf.contentRef});return{isIOS:VJ,onOptionsRendered:Na=>{s.value=Na},prefixWidth:we,selectSize:c,readonly:f,handleResize:d,collapseTagSize:h,debouncedOnInputChange:v,debouncedQueryChange:p,deletePrevTag:g,deleteTag:m,handleDeleteTooltipTag:ie,deleteSelected:y,handleOptionSelect:_,scrollToOption:w,inputWidth:At,selected:Gt,inputLength:tt,filteredOptionsCount:be,visible:pe,selectedLabel:de,hoverIndex:Me,query:ae,inputHovering:Ge,currentPlaceholder:St,menuVisibleOnFocus:Kt,isOnComposition:Xn,options:An,resetInputHeight:S,managePlaceholder:T,showClose:A,selectDisabled:C,iconComponent:M,iconReverse:E,showNewOption:D,emptyText:P,toggleLastOptionHitState:L,resetInputState:I,handleComposition:O,handleMenuEnter:k,handleFocus:z,focus:$,blur:j,handleBlur:X,handleClearClick:Q,handleClose:se,handleKeydownEscape:ee,toggleMenu:K,selectOption:Z,getValueKey:ne,navigateOptions:re,dropMenuVisible:Y,reference:q,input:oe,iOSInput:ve,tooltipRef:_e,popperPaneRef:ka,tags:Le,selectWrapper:Se,scrollbar:xe,wrapperKls:ze,tagsKls:pt,tagWrapperKls:lr,inputKls:ba,iOSInputKls:Re,scrollbarKls:ft,selectTagsStyle:gt,nsSelect:r,tagTextStyle:Yt,inputStyle:gr,handleMouseEnter:He,handleMouseLeave:je,showTagList:Pe,collapseTagList:Ue,tagTooltipRef:ge,contentId:i,hoverOption:u}}}),qrt=["disabled","autocomplete","aria-activedescendant","aria-controls","aria-expanded","aria-label"],Qrt=["disabled"],Jrt={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function ent(e,t,r,n,a,i){const o=bt("el-tag"),s=bt("el-tooltip"),l=bt("el-icon"),u=bt("el-input"),c=bt("el-option"),f=bt("el-options"),d=bt("el-scrollbar"),h=bt("el-select-menu"),v=_0("click-outside");return Ct((N(),U("div",{ref:"selectWrapper",class:H(e.wrapperKls),onMouseenter:t[22]||(t[22]=(...p)=>e.handleMouseEnter&&e.handleMouseEnter(...p)),onMouseleave:t[23]||(t[23]=(...p)=>e.handleMouseLeave&&e.handleMouseLeave(...p)),onClick:t[24]||(t[24]=it((...p)=>e.toggleMenu&&e.toggleMenu(...p),["stop"]))},[J(s,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],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,onShow:e.handleMenuEnter},{default:le(()=>{var p,g;return[V("div",{class:"select-trigger",onMouseenter:t[20]||(t[20]=m=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=m=>e.inputHovering=!1)},[e.multiple?(N(),U("div",{key:0,ref:"tags",tabindex:"-1",class:H(e.tagsKls),style:Xe(e.selectTagsStyle),onClick:t[15]||(t[15]=(...m)=>e.focus&&e.focus(...m))},[e.collapseTags&&e.selected.length?(N(),he(Yn,{key:0,onAfterLeave:e.resetInputHeight},{default:le(()=>[V("span",{class:H(e.tagWrapperKls)},[(N(!0),U(Be,null,ht(e.showTagList,m=>(N(),he(o,{key:e.getValueKey(m),closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,hit:m.hitState,type:e.tagType,"disable-transitions":"",onClose:y=>e.deleteTag(y,m)},{default:le(()=>[V("span",{class:H(e.nsSelect.e("tags-text")),style:Xe(e.tagTextStyle)},me(m.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?(N(),he(o,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:le(()=>[e.collapseTagsTooltip?(N(),he(s,{key:0,ref:"tagTooltipRef",disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:le(()=>[V("span",{class:H(e.nsSelect.e("tags-text"))},"+ "+me(e.selected.length-e.maxCollapseTags),3)]),content:le(()=>[V("div",{class:H(e.nsSelect.e("collapse-tags"))},[(N(!0),U(Be,null,ht(e.collapseTagList,m=>(N(),U("div",{key:e.getValueKey(m),class:H(e.nsSelect.e("collapse-tag"))},[J(o,{class:"in-tooltip",closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,hit:m.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:y=>e.handleDeleteTooltipTag(y,m)},{default:le(()=>[V("span",{class:H(e.nsSelect.e("tags-text")),style:Xe({maxWidth:e.inputWidth-75+"px"})},me(m.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(N(),U("span",{key:1,class:H(e.nsSelect.e("tags-text"))},"+ "+me(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):ce("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):ce("v-if",!0),e.collapseTags?ce("v-if",!0):(N(),he(Yn,{key:1,onAfterLeave:e.resetInputHeight},{default:le(()=>[V("span",{class:H(e.tagWrapperKls),style:Xe(e.prefixWidth&&e.selected.length?{marginLeft:`${e.prefixWidth}px`}:"")},[(N(!0),U(Be,null,ht(e.selected,m=>(N(),he(o,{key:e.getValueKey(m),closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,hit:m.hitState,type:e.tagType,"disable-transitions":"",onClose:y=>e.deleteTag(y,m)},{default:le(()=>[V("span",{class:H(e.nsSelect.e("tags-text")),style:Xe({maxWidth:e.inputWidth-75+"px"})},me(m.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],6)]),_:1},8,["onAfterLeave"])),e.filterable&&!e.selectDisabled?Ct((N(),U("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=m=>e.query=m),type:"text",class:H(e.inputKls),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Xe(e.inputStyle),role:"combobox","aria-activedescendant":((p=e.hoverOption)==null?void 0:p.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:t[1]||(t[1]=(...m)=>e.handleFocus&&e.handleFocus(...m)),onBlur:t[2]||(t[2]=(...m)=>e.handleBlur&&e.handleBlur(...m)),onKeyup:t[3]||(t[3]=(...m)=>e.managePlaceholder&&e.managePlaceholder(...m)),onKeydown:[t[4]||(t[4]=(...m)=>e.resetInputState&&e.resetInputState(...m)),t[5]||(t[5]=dr(it(m=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=dr(it(m=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=dr((...m)=>e.handleKeydownEscape&&e.handleKeydownEscape(...m),["esc"])),t[8]||(t[8]=dr(it((...m)=>e.selectOption&&e.selectOption(...m),["stop","prevent"]),["enter"])),t[9]||(t[9]=dr((...m)=>e.deletePrevTag&&e.deletePrevTag(...m),["delete"])),t[10]||(t[10]=dr(m=>e.visible=!1,["tab"]))],onCompositionstart:t[11]||(t[11]=(...m)=>e.handleComposition&&e.handleComposition(...m)),onCompositionupdate:t[12]||(t[12]=(...m)=>e.handleComposition&&e.handleComposition(...m)),onCompositionend:t[13]||(t[13]=(...m)=>e.handleComposition&&e.handleComposition(...m)),onInput:t[14]||(t[14]=(...m)=>e.debouncedQueryChange&&e.debouncedQueryChange(...m))},null,46,qrt)),[[VR,e.query]]):ce("v-if",!0)],6)):ce("v-if",!0),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(N(),U("input",{key:1,ref:"iOSInput",class:H(e.iOSInputKls),disabled:e.selectDisabled,type:"text"},null,10,Qrt)):ce("v-if",!0),J(u,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=m=>e.selectedLabel=m),type:"text",placeholder:typeof e.currentPlaceholder=="function"?e.currentPlaceholder():e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:H([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,role:"combobox","aria-activedescendant":((g=e.hoverOption)==null?void 0:g.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropMenuVisible,label:e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=dr(it(m=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=dr(it(m=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),dr(it(e.selectOption,["stop","prevent"]),["enter"]),dr(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=dr(m=>e.visible=!1,["tab"]))]},Bl({suffix:le(()=>[e.iconComponent&&!e.showClose?(N(),he(l,{key:0,class:H([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:le(()=>[(N(),he(Ft(e.iconComponent)))]),_:1},8,["class"])):ce("v-if",!0),e.showClose&&e.clearIcon?(N(),he(l,{key:1,class:H([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:le(()=>[(N(),he(Ft(e.clearIcon)))]),_:1},8,["class","onClick"])):ce("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:le(()=>[V("div",Jrt,[ye(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","aria-activedescendant","aria-controls","aria-expanded","label","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]}),content:le(()=>[J(h,null,Bl({default:le(()=>[Ct(J(d,{id:e.contentId,ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:H(e.scrollbarKls),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:le(()=>[e.showNewOption?(N(),he(c,{key:0,value:e.query,created:!0},null,8,["value"])):ce("v-if",!0),J(f,{onUpdateOptions:e.onOptionsRendered},{default:le(()=>[ye(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[hr,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(N(),U(Be,{key:0},[e.$slots.empty?ye(e.$slots,"empty",{key:0}):(N(),U("p",{key:1,class:H(e.nsSelect.be("dropdown","empty"))},me(e.emptyText),3))],64)):ce("v-if",!0)]),_:2},[e.$slots.header?{name:"header",fn:le(()=>[ye(e.$slots,"header")])}:void 0,e.$slots.footer?{name:"footer",fn:le(()=>[ye(e.$slots,"footer")])}:void 0]),1024)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[v,e.handleClose,e.popperPaneRef]])}var tnt=ke(Zrt,[["render",ent],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const rnt=te({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Ce("select"),r=G(!0),n=It(),a=G([]);Wt(bne,Ar({...Da(e)}));const i=Ye(k1);xt(()=>{a.value=o(n.subTree)});const o=l=>{const u=[];return Array.isArray(l.children)&&l.children.forEach(c=>{var f;c.type&&c.type.name==="ElOption"&&c.component&&c.component.proxy?u.push(c.component.proxy):(f=c.children)!=null&&f.length&&u.push(...o(c))}),u},{groupQueryChange:s}=Er(i);return Ae(s,()=>{r.value=a.value.some(l=>l.visible===!0)},{flush:"post"}),{visible:r,ns:t}}});function nnt(e,t,r,n,a,i){return Ct((N(),U("ul",{class:H(e.ns.be("group","wrap"))},[V("li",{class:H(e.ns.be("group","title"))},me(e.label),3),V("li",null,[V("ul",{class:H(e.ns.b("group"))},[ye(e.$slots,"default")],2)])],2)),[[hr,e.visible]])}var wne=ke(rnt,[["render",nnt],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const Kh=kt(tnt,{Option:B3,OptionGroup:wne}),v2=Pn(B3),ant=Pn(wne),F3=()=>Ye(_ne,{}),int=Oe({pageSize:{type:Number,required:!0},pageSizes:{type:fe(Array),default:()=>mn([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:tu}}),ont=te({name:"ElPaginationSizes"}),snt=te({...ont,props:int,emits:["page-size-change"],setup(e,{emit:t}){const r=e,{t:n}=fr(),a=Ce("pagination"),i=F3(),o=G(r.pageSize);Ae(()=>r.pageSizes,(u,c)=>{if(!to(u,c)&&Array.isArray(u)){const f=u.includes(r.pageSize)?r.pageSize:r.pageSizes[0];t("page-size-change",f)}}),Ae(()=>r.pageSize,u=>{o.value=u});const s=F(()=>r.pageSizes);function l(u){var c;u!==o.value&&(o.value=u,(c=i.handleSizeChange)==null||c.call(i,Number(u)))}return(u,c)=>(N(),U("span",{class:H(b(a).e("sizes"))},[J(b(Kh),{"model-value":o.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,onChange:l},{default:le(()=>[(N(!0),U(Be,null,ht(b(s),f=>(N(),he(b(v2),{key:f,value:f,label:f+b(n)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported"])],2))}});var lnt=ke(snt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const unt=Oe({size:{type:String,values:tu}}),cnt=["disabled"],fnt=te({name:"ElPaginationJumper"}),dnt=te({...fnt,props:unt,setup(e){const{t}=fr(),r=Ce("pagination"),{pageCount:n,disabled:a,currentPage:i,changeEvent:o}=F3(),s=G(),l=F(()=>{var f;return(f=s.value)!=null?f:i==null?void 0:i.value});function u(f){s.value=f?+f:""}function c(f){f=Math.trunc(+f),o==null||o(f),s.value=void 0}return(f,d)=>(N(),U("span",{class:H(b(r).e("jump")),disabled:b(a)},[V("span",{class:H([b(r).e("goto")])},me(b(t)("el.pagination.goto")),3),J(b(li),{size:f.size,class:H([b(r).e("editor"),b(r).is("in-pagination")]),min:1,max:b(n),disabled:b(a),"model-value":b(l),"validate-event":!1,label:b(t)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:c},null,8,["size","class","max","disabled","model-value","label"]),V("span",{class:H([b(r).e("classifier")])},me(b(t)("el.pagination.pageClassifier")),3)],10,cnt))}});var hnt=ke(dnt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const vnt=Oe({total:{type:Number,default:1e3}}),pnt=["disabled"],gnt=te({name:"ElPaginationTotal"}),mnt=te({...gnt,props:vnt,setup(e){const{t}=fr(),r=Ce("pagination"),{disabled:n}=F3();return(a,i)=>(N(),U("span",{class:H(b(r).e("total")),disabled:b(n)},me(b(t)("el.pagination.total",{total:a.total})),11,pnt))}});var ynt=ke(mnt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const _nt=Oe({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),bnt=["onKeyup"],wnt=["aria-current","aria-label","tabindex"],Snt=["tabindex","aria-label"],xnt=["aria-current","aria-label","tabindex"],Ant=["tabindex","aria-label"],Tnt=["aria-current","aria-label","tabindex"],Cnt=te({name:"ElPaginationPager"}),Ent=te({...Cnt,props:_nt,emits:["change"],setup(e,{emit:t}){const r=e,n=Ce("pager"),a=Ce("icon"),{t:i}=fr(),o=G(!1),s=G(!1),l=G(!1),u=G(!1),c=G(!1),f=G(!1),d=F(()=>{const w=r.pagerCount,x=(w-1)/2,S=Number(r.currentPage),T=Number(r.pageCount);let A=!1,C=!1;T>w&&(S>w-x&&(A=!0),S["more","btn-quickprev",a.b(),n.is("disabled",r.disabled)]),v=F(()=>["more","btn-quicknext",a.b(),n.is("disabled",r.disabled)]),p=F(()=>r.disabled?-1:0);xo(()=>{const w=(r.pagerCount-1)/2;o.value=!1,s.value=!1,r.pageCount>r.pagerCount&&(r.currentPage>r.pagerCount-w&&(o.value=!0),r.currentPageT&&(S=T)),S!==A&&t("change",S)}return(w,x)=>(N(),U("ul",{class:H(b(n).b()),onClick:_,onKeyup:dr(y,["enter"])},[w.pageCount>0?(N(),U("li",{key:0,class:H([[b(n).is("active",w.currentPage===1),b(n).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===1,"aria-label":b(i)("el.pagination.currentPage",{pager:1}),tabindex:b(p)}," 1 ",10,wnt)):ce("v-if",!0),o.value?(N(),U("li",{key:1,class:H(b(h)),tabindex:b(p),"aria-label":b(i)("el.pagination.prevPages",{pager:w.pagerCount-2}),onMouseenter:x[0]||(x[0]=S=>g(!0)),onMouseleave:x[1]||(x[1]=S=>l.value=!1),onFocus:x[2]||(x[2]=S=>m(!0)),onBlur:x[3]||(x[3]=S=>c.value=!1)},[(l.value||c.value)&&!w.disabled?(N(),he(b(lg),{key:0})):(N(),he(b(xG),{key:1}))],42,Snt)):ce("v-if",!0),(N(!0),U(Be,null,ht(b(d),S=>(N(),U("li",{key:S,class:H([[b(n).is("active",w.currentPage===S),b(n).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===S,"aria-label":b(i)("el.pagination.currentPage",{pager:S}),tabindex:b(p)},me(S),11,xnt))),128)),s.value?(N(),U("li",{key:2,class:H(b(v)),tabindex:b(p),"aria-label":b(i)("el.pagination.nextPages",{pager:w.pagerCount-2}),onMouseenter:x[4]||(x[4]=S=>g()),onMouseleave:x[5]||(x[5]=S=>u.value=!1),onFocus:x[6]||(x[6]=S=>m()),onBlur:x[7]||(x[7]=S=>f.value=!1)},[(u.value||f.value)&&!w.disabled?(N(),he(b(ug),{key:0})):(N(),he(b(xG),{key:1}))],42,Ant)):ce("v-if",!0),w.pageCount>1?(N(),U("li",{key:3,class:H([[b(n).is("active",w.currentPage===w.pageCount),b(n).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===w.pageCount,"aria-label":b(i)("el.pagination.currentPage",{pager:w.pageCount}),tabindex:b(p)},me(w.pageCount),11,Tnt)):ce("v-if",!0)],42,bnt))}});var Mnt=ke(Ent,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const yi=e=>typeof e!="number",Dnt=Oe({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>ct(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:fe(Array),default:()=>mn([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:Zr,default:()=>Tf},nextText:{type:String,default:""},nextIcon:{type:Zr,default:()=>Mi},teleported:{type:Boolean,default:!0},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),Pnt={"update:current-page":e=>ct(e),"update:page-size":e=>ct(e),"size-change":e=>ct(e),"current-change":e=>ct(e),"prev-click":e=>ct(e),"next-click":e=>ct(e)},OU="ElPagination";var Lnt=te({name:OU,props:Dnt,emits:Pnt,setup(e,{emit:t,slots:r}){const{t:n}=fr(),a=Ce("pagination"),i=It().vnode.props||{},o="onUpdate:currentPage"in i||"onUpdate:current-page"in i||"onCurrentChange"in i,s="onUpdate:pageSize"in i||"onUpdate:page-size"in i||"onSizeChange"in i,l=F(()=>{if(yi(e.total)&&yi(e.pageCount)||!yi(e.currentPage)&&!o)return!1;if(e.layout.includes("sizes")){if(yi(e.pageCount)){if(!yi(e.total)&&!yi(e.pageSize)&&!s)return!1}else if(!s)return!1}return!0}),u=G(yi(e.defaultPageSize)?10:e.defaultPageSize),c=G(yi(e.defaultCurrentPage)?1:e.defaultCurrentPage),f=F({get(){return yi(e.pageSize)?u.value:e.pageSize},set(_){yi(e.pageSize)&&(u.value=_),s&&(t("update:page-size",_),t("size-change",_))}}),d=F(()=>{let _=0;return yi(e.pageCount)?yi(e.total)||(_=Math.max(1,Math.ceil(e.total/f.value))):_=e.pageCount,_}),h=F({get(){return yi(e.currentPage)?c.value:e.currentPage},set(_){let w=_;_<1?w=1:_>d.value&&(w=d.value),yi(e.currentPage)&&(c.value=w),o&&(t("update:current-page",w),t("current-change",w))}});Ae(d,_=>{h.value>_&&(h.value=_)});function v(_){h.value=_}function p(_){f.value=_;const w=d.value;h.value>w&&(h.value=w)}function g(){e.disabled||(h.value-=1,t("prev-click",h.value))}function m(){e.disabled||(h.value+=1,t("next-click",h.value))}function y(_,w){_&&(_.props||(_.props={}),_.props.class=[_.props.class,w].join(" "))}return Wt(_ne,{pageCount:d,disabled:F(()=>e.disabled),currentPage:h,changeEvent:v,handleSizeChange:p}),()=>{var _,w;if(!l.value)return n("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&d.value<=1)return null;const x=[],S=[],T=et("div",{class:a.e("rightwrapper")},S),A={prev:et(Rrt,{disabled:e.disabled,currentPage:h.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:g}),jumper:et(hnt,{size:e.small?"small":"default"}),pager:et(Mnt,{currentPage:h.value,pageCount:d.value,pagerCount:e.pagerCount,onChange:v,disabled:e.disabled}),next:et(Vrt,{disabled:e.disabled,currentPage:h.value,pageCount:d.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:m}),sizes:et(lnt,{pageSize:f.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:e.small?"small":"default"}),slot:(w=(_=r==null?void 0:r.default)==null?void 0:_.call(r))!=null?w:null,total:et(ynt,{total:yi(e.total)?0:e.total})},C=e.layout.split(",").map(E=>E.trim());let M=!1;return C.forEach(E=>{if(E==="->"){M=!0;return}M?S.push(A[E]):x.push(A[E])}),y(x[0],a.is("first")),y(x[x.length-1],a.is("last")),M&&S.length>0&&(y(S[0],a.is("first")),y(S[S.length-1],a.is("last")),x.push(T)),et("div",{class:[a.b(),a.is("background",e.background),{[a.m("small")]:e.small}]},x)}}});const Int=kt(Lnt),Rnt=Oe({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:iI,default:"primary"},cancelButtonType:{type:String,values:iI,default:"text"},icon:{type:Zr,default:()=>mUe},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:Va.teleported,persistent:Va.persistent,width:{type:[String,Number],default:150}}),Ont={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},knt=te({name:"ElPopconfirm"}),Nnt=te({...knt,props:Rnt,emits:Ont,setup(e,{emit:t}){const r=e,{t:n}=fr(),a=Ce("popconfirm"),i=G(),o=()=>{var d,h;(h=(d=i.value)==null?void 0:d.onClose)==null||h.call(d)},s=F(()=>({width:Hn(r.width)})),l=d=>{t("confirm",d),o()},u=d=>{t("cancel",d),o()},c=F(()=>r.confirmButtonText||n("el.popconfirm.confirmButtonText")),f=F(()=>r.cancelButtonText||n("el.popconfirm.cancelButtonText"));return(d,h)=>(N(),he(b(Bi),Ut({ref_key:"tooltipRef",ref:i,trigger:"click",effect:"light"},d.$attrs,{"popper-class":`${b(a).namespace.value}-popover`,"popper-style":b(s),teleported:d.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":d.hideAfter,persistent:d.persistent}),{content:le(()=>[V("div",{class:H(b(a).b())},[V("div",{class:H(b(a).e("main"))},[!d.hideIcon&&d.icon?(N(),he(b(Ze),{key:0,class:H(b(a).e("icon")),style:Xe({color:d.iconColor})},{default:le(()=>[(N(),he(Ft(d.icon)))]),_:1},8,["class","style"])):ce("v-if",!0),nr(" "+me(d.title),1)],2),V("div",{class:H(b(a).e("action"))},[J(b(Ja),{size:"small",type:d.cancelButtonType==="text"?"":d.cancelButtonType,text:d.cancelButtonType==="text",onClick:u},{default:le(()=>[nr(me(b(f)),1)]),_:1},8,["type","text"]),J(b(Ja),{size:"small",type:d.confirmButtonType==="text"?"":d.confirmButtonType,text:d.confirmButtonType==="text",onClick:l},{default:le(()=>[nr(me(b(c)),1)]),_:1},8,["type","text"])],2)],2)]),default:le(()=>[d.$slots.reference?ye(d.$slots,"reference",{key:0}):ce("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var Bnt=ke(Nnt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const Fnt=kt(Bnt),Vnt=Oe({trigger:b_.trigger,placement:TS.placement,disabled:b_.disabled,visible:Va.visible,transition:Va.transition,popperOptions:TS.popperOptions,tabindex:TS.tabindex,content:Va.content,popperStyle:Va.popperStyle,popperClass:Va.popperClass,enterable:{...Va.enterable,default:!0},effect:{...Va.effect,default:"light"},teleported:Va.teleported,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}}),znt={"update:visible":e=>la(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},Hnt="onUpdate:visible",Gnt=te({name:"ElPopover"}),Unt=te({...Gnt,props:Vnt,emits:znt,setup(e,{expose:t,emit:r}){const n=e,a=F(()=>n[Hnt]),i=Ce("popover"),o=G(),s=F(()=>{var g;return(g=b(o))==null?void 0:g.popperRef}),l=F(()=>[{width:Hn(n.width)},n.popperStyle]),u=F(()=>[i.b(),n.popperClass,{[i.m("plain")]:!!n.content}]),c=F(()=>n.transition===`${i.namespace.value}-fade-in-linear`),f=()=>{var g;(g=o.value)==null||g.hide()},d=()=>{r("before-enter")},h=()=>{r("before-leave")},v=()=>{r("after-enter")},p=()=>{r("update:visible",!1),r("after-leave")};return t({popperRef:s,hide:f}),(g,m)=>(N(),he(b(Bi),Ut({ref_key:"tooltipRef",ref:o},g.$attrs,{trigger:g.trigger,placement:g.placement,disabled:g.disabled,visible:g.visible,transition:g.transition,"popper-options":g.popperOptions,tabindex:g.tabindex,content:g.content,offset:g.offset,"show-after":g.showAfter,"hide-after":g.hideAfter,"auto-close":g.autoClose,"show-arrow":g.showArrow,"aria-label":g.title,effect:g.effect,enterable:g.enterable,"popper-class":b(u),"popper-style":b(l),teleported:g.teleported,persistent:g.persistent,"gpu-acceleration":b(c),"onUpdate:visible":b(a),onBeforeShow:d,onBeforeHide:h,onShow:v,onHide:p}),{content:le(()=>[g.title?(N(),U("div",{key:0,class:H(b(i).e("title")),role:"title"},me(g.title),3)):ce("v-if",!0),ye(g.$slots,"default",{},()=>[nr(me(g.content),1)])]),default:le(()=>[g.$slots.reference?ye(g.$slots,"reference",{key:0}):ce("v-if",!0)]),_:3},16,["trigger","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","persistent","gpu-acceleration","onUpdate:visible"]))}});var $nt=ke(Unt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const kU=(e,t)=>{const r=t.arg||t.value,n=r==null?void 0:r.popperRef;n&&(n.triggerRef=e)};var Wnt={mounted(e,t){kU(e,t)},updated(e,t){kU(e,t)}};const Ynt="popover",Sne=HUe(Wnt,Ynt),jnt=kt($nt,{directive:Sne}),Knt=Oe({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:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:fe(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:fe([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:fe(Function),default:e=>`${e}%`}}),Xnt=["aria-valuenow"],Znt={viewBox:"0 0 100 100"},qnt=["d","stroke","stroke-linecap","stroke-width"],Qnt=["d","stroke","opacity","stroke-linecap","stroke-width"],Jnt={key:0},eat=te({name:"ElProgress"}),tat=te({...eat,props:Knt,setup(e){const t=e,r={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},n=Ce("progress"),a=F(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:y(t.percentage)})),i=F(()=>(t.strokeWidth/t.width*100).toFixed(1)),o=F(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(i.value)/2}`,10):0),s=F(()=>{const _=o.value,w=t.type==="dashboard";return` M 50 50 m 0 ${w?"":"-"}${_} a ${_} ${_} 0 1 1 0 ${w?"-":""}${_*2} a ${_} ${_} 0 1 1 0 ${w?"":"-"}${_*2} `}),l=F(()=>2*Math.PI*o.value),u=F(()=>t.type==="dashboard"?.75:1),c=F(()=>`${-1*l.value*(1-u.value)/2}px`),f=F(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:c.value})),d=F(()=>({strokeDasharray:`${l.value*u.value*(t.percentage/100)}px, ${l.value}px`,strokeDashoffset:c.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),h=F(()=>{let _;return t.color?_=y(t.percentage):_=r[t.status]||r.default,_}),v=F(()=>t.status==="warning"?yT:t.type==="line"?t.status==="success"?qN:zf:t.status==="success"?P1:el),p=F(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),g=F(()=>t.format(t.percentage));function m(_){const w=100/_.length;return _.map((S,T)=>wt(S)?{color:S,percentage:(T+1)*w}:S).sort((S,T)=>S.percentage-T.percentage)}const y=_=>{var w;const{color:x}=t;if(dt(x))return x(_);if(wt(x))return x;{const S=m(x);for(const T of S)if(T.percentage>_)return T.color;return(w=S[S.length-1])==null?void 0:w.color}};return(_,w)=>(N(),U("div",{class:H([b(n).b(),b(n).m(_.type),b(n).is(_.status),{[b(n).m("without-text")]:!_.showText,[b(n).m("text-inside")]:_.textInside}]),role:"progressbar","aria-valuenow":_.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[_.type==="line"?(N(),U("div",{key:0,class:H(b(n).b("bar"))},[V("div",{class:H(b(n).be("bar","outer")),style:Xe({height:`${_.strokeWidth}px`})},[V("div",{class:H([b(n).be("bar","inner"),{[b(n).bem("bar","inner","indeterminate")]:_.indeterminate},{[b(n).bem("bar","inner","striped")]:_.striped},{[b(n).bem("bar","inner","striped-flow")]:_.stripedFlow}]),style:Xe(b(a))},[(_.showText||_.$slots.default)&&_.textInside?(N(),U("div",{key:0,class:H(b(n).be("bar","innerText"))},[ye(_.$slots,"default",{percentage:_.percentage},()=>[V("span",null,me(b(g)),1)])],2)):ce("v-if",!0)],6)],6)],2)):(N(),U("div",{key:1,class:H(b(n).b("circle")),style:Xe({height:`${_.width}px`,width:`${_.width}px`})},[(N(),U("svg",Znt,[V("path",{class:H(b(n).be("circle","track")),d:b(s),stroke:`var(${b(n).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":_.strokeLinecap,"stroke-width":b(i),fill:"none",style:Xe(b(f))},null,14,qnt),V("path",{class:H(b(n).be("circle","path")),d:b(s),stroke:b(h),fill:"none",opacity:_.percentage?1:0,"stroke-linecap":_.strokeLinecap,"stroke-width":b(i),style:Xe(b(d))},null,14,Qnt)]))],6)),(_.showText||_.$slots.default)&&!_.textInside?(N(),U("div",{key:2,class:H(b(n).e("text")),style:Xe({fontSize:`${b(p)}px`})},[ye(_.$slots,"default",{percentage:_.percentage},()=>[_.status?(N(),he(b(Ze),{key:1},{default:le(()=>[(N(),he(Ft(b(v))))]),_:1})):(N(),U("span",Jnt,me(b(g)),1))])],6)):ce("v-if",!0)],10,Xnt))}});var rat=ke(tat,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const xne=kt(rat),nat=Oe({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:fe([Array,Object]),default:()=>mn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:fe([Array,Object]),default:()=>[iw,iw,iw]},voidIcon:{type:Zr,default:()=>IUe},disabledVoidIcon:{type:Zr,default:()=>iw},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:fe(Array),default:()=>mn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Ga,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),aat={[ln]:e=>ct(e),[Nt]:e=>ct(e)},iat=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],oat=["onMousemove","onClick"],sat=te({name:"ElRate"}),lat=te({...sat,props:nat,emits:aat,setup(e,{expose:t,emit:r}){const n=e;function a(O,R){const B=$=>Vt($),k=Object.keys(R).map($=>+$).filter($=>{const j=R[$];return(B(j)?j.excluded:!1)?O<$:O<=$}).sort(($,j)=>$-j),z=R[k[0]];return B(z)&&z.value||z}const i=Ye(hv,void 0),o=Ye(Yl,void 0),s=ca(),l=Ce("rate"),{inputId:u,isLabeledByFormItem:c}=$f(n,{formItemContext:o}),f=G(n.modelValue),d=G(-1),h=G(!0),v=F(()=>[l.b(),l.m(s.value)]),p=F(()=>n.disabled||(i==null?void 0:i.disabled)),g=F(()=>l.cssVarBlock({"void-color":n.voidColor,"disabled-void-color":n.disabledVoidColor,"fill-color":w.value})),m=F(()=>{let O="";return n.showScore?O=n.scoreTemplate.replace(/\{\s*value\s*\}/,p.value?`${n.modelValue}`:`${f.value}`):n.showText&&(O=n.texts[Math.ceil(f.value)-1]),O}),y=F(()=>n.modelValue*100-Math.floor(n.modelValue)*100),_=F(()=>We(n.colors)?{[n.lowThreshold]:n.colors[0],[n.highThreshold]:{value:n.colors[1],excluded:!0},[n.max]:n.colors[2]}:n.colors),w=F(()=>{const O=a(f.value,_.value);return Vt(O)?"":O}),x=F(()=>{let O="";return p.value?O=`${y.value}%`:n.allowHalf&&(O="50%"),{color:w.value,width:O}}),S=F(()=>{let O=We(n.icons)?[...n.icons]:{...n.icons};return O=gh(O),We(O)?{[n.lowThreshold]:O[0],[n.highThreshold]:{value:O[1],excluded:!0},[n.max]:O[2]}:O}),T=F(()=>a(n.modelValue,S.value)),A=F(()=>p.value?wt(n.disabledVoidIcon)?n.disabledVoidIcon:gh(n.disabledVoidIcon):wt(n.voidIcon)?n.voidIcon:gh(n.voidIcon)),C=F(()=>a(f.value,S.value));function M(O){const R=p.value&&y.value>0&&O-1n.modelValue,B=n.allowHalf&&h.value&&O-.5<=f.value&&O>f.value;return R||B}function E(O){n.clearable&&O===n.modelValue&&(O=0),r(Nt,O),n.modelValue!==O&&r("change",O)}function D(O){p.value||(n.allowHalf&&h.value?E(f.value):E(O))}function P(O){if(p.value)return;let R=f.value;const B=O.code;return B===Qe.up||B===Qe.right?(n.allowHalf?R+=.5:R+=1,O.stopPropagation(),O.preventDefault()):(B===Qe.left||B===Qe.down)&&(n.allowHalf?R-=.5:R-=1,O.stopPropagation(),O.preventDefault()),R=R<0?0:R,R=R>n.max?n.max:R,r(Nt,R),r("change",R),R}function L(O,R){if(!p.value){if(n.allowHalf&&R){let B=R.target;Ws(B,l.e("item"))&&(B=B.querySelector(`.${l.e("icon")}`)),(B.clientWidth===0||Ws(B,l.e("decimal")))&&(B=B.parentNode),h.value=R.offsetX*2<=B.clientWidth,f.value=h.value?O-.5:O}else f.value=O;d.value=O}}function I(){p.value||(n.allowHalf&&(h.value=n.modelValue!==Math.floor(n.modelValue)),f.value=n.modelValue,d.value=-1)}return Ae(()=>n.modelValue,O=>{f.value=O,h.value=n.modelValue!==Math.floor(n.modelValue)}),n.modelValue||r(Nt,0),t({setCurrentValue:L,resetCurrentValue:I}),(O,R)=>{var B;return N(),U("div",{id:b(u),class:H([b(v),b(l).is("disabled",b(p))]),role:"slider","aria-label":b(c)?void 0:O.label||"rating","aria-labelledby":b(c)?(B=b(o))==null?void 0:B.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":b(m)||void 0,"aria-valuemin":"0","aria-valuemax":O.max,tabindex:"0",style:Xe(b(g)),onKeydown:P},[(N(!0),U(Be,null,ht(O.max,(k,z)=>(N(),U("span",{key:z,class:H(b(l).e("item")),onMousemove:$=>L(k,$),onMouseleave:I,onClick:$=>D(k)},[J(b(Ze),{class:H([b(l).e("icon"),{hover:d.value===k},b(l).is("active",k<=f.value)])},{default:le(()=>[M(k)?ce("v-if",!0):(N(),U(Be,{key:0},[Ct((N(),he(Ft(b(C)),null,null,512)),[[hr,k<=f.value]]),Ct((N(),he(Ft(b(A)),null,null,512)),[[hr,!(k<=f.value)]])],64)),M(k)?(N(),U(Be,{key:1},[(N(),he(Ft(b(A)),{class:H([b(l).em("decimal","box")])},null,8,["class"])),J(b(Ze),{style:Xe(b(x)),class:H([b(l).e("icon"),b(l).e("decimal")])},{default:le(()=>[(N(),he(Ft(b(T))))]),_:1},8,["style","class"])],64)):ce("v-if",!0)]),_:2},1032,["class"])],42,oat))),128)),O.showText||O.showScore?(N(),U("span",{key:0,class:H(b(l).e("text")),style:Xe({color:O.textColor})},me(b(m)),7)):ce("v-if",!0)],46,iat)}}});var uat=ke(lat,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const cat=kt(uat),gp={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},NU={[gp.success]:$Ge,[gp.warning]:yT,[gp.error]:QN,[gp.info]:JN},fat=Oe({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),dat=te({name:"ElResult"}),hat=te({...dat,props:fat,setup(e){const t=e,r=Ce("result"),n=F(()=>{const a=t.icon,i=a&&gp[a]?gp[a]:"icon-info",o=NU[i]||NU["icon-info"];return{class:i,component:o}});return(a,i)=>(N(),U("div",{class:H(b(r).b())},[V("div",{class:H(b(r).e("icon"))},[ye(a.$slots,"icon",{},()=>[b(n).component?(N(),he(Ft(b(n).component),{key:0,class:H(b(n).class)},null,8,["class"])):ce("v-if",!0)])],2),a.title||a.$slots.title?(N(),U("div",{key:0,class:H(b(r).e("title"))},[ye(a.$slots,"title",{},()=>[V("p",null,me(a.title),1)])],2)):ce("v-if",!0),a.subTitle||a.$slots["sub-title"]?(N(),U("div",{key:1,class:H(b(r).e("subtitle"))},[ye(a.$slots,"sub-title",{},()=>[V("p",null,me(a.subTitle),1)])],2)):ce("v-if",!0),a.$slots.extra?(N(),U("div",{key:2,class:H(b(r).e("extra"))},[ye(a.$slots,"extra")],2)):ce("v-if",!0)],2))}});var vat=ke(hat,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const pat=kt(vat);var BU=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function gat(e,t){return!!(e===t||BU(e)&&BU(t))}function mat(e,t){if(e.length!==t.length)return!1;for(var r=0;r{const t=It().proxy.$props;return F(()=>{const r=(n,a,i)=>({});return t.perfMode?vT(r):yat(r)})},CI=50,p2="itemRendered",g2="scroll",mp="forward",m2="backward",Jo="auto",RT="smart",x_="start",Ll="center",A_="end",mg="horizontal",V3="vertical",_at="ltr",Vp="rtl",T_="negative",z3="positive-ascending",H3="positive-descending",bat={[mg]:"left",[V3]:"top"},wat=20,Sat={[mg]:"deltaX",[V3]:"deltaY"},xat=({atEndEdge:e,atStartEdge:t,layout:r},n)=>{let a,i=0;const o=l=>l<0&&t.value||l>0&&e.value;return{hasReachedEdge:o,onWheel:l=>{wT(a);const u=l[Sat[r.value]];o(i)&&o(i+u)||(i+=u,UJ()||l.preventDefault(),a=cg(()=>{n(i),i=0}))}}},EI=sl({type:fe([Number,Function]),required:!0}),MI=sl({type:Number}),DI=sl({type:Number,default:2}),Aat=sl({type:String,values:["ltr","rtl"],default:"ltr"}),PI=sl({type:Number,default:0}),y2=sl({type:Number,required:!0}),Tne=sl({type:String,values:["horizontal","vertical"],default:V3}),Cne=Oe({className:{type:String,default:""},containerElement:{type:fe([String,Object]),default:"div"},data:{type:fe(Array),default:()=>mn([])},direction:Aat,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:fe([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),Ene=Oe({cache:DI,estimatedItemSize:MI,layout:Tne,initScrollOffset:PI,total:y2,itemSize:EI,...Cne}),LI={type:Number,default:6},Mne={type:Number,default:0},Dne={type:Number,default:2},Ph=Oe({columnCache:DI,columnWidth:EI,estimatedColumnWidth:MI,estimatedRowHeight:MI,initScrollLeft:PI,initScrollTop:PI,itemKey:{type:fe(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:DI,rowHeight:EI,totalColumn:y2,totalRow:y2,hScrollbarSize:LI,vScrollbarSize:LI,scrollbarStartGap:Mne,scrollbarEndGap:Dne,role:String,...Cne}),Pne=Oe({alwaysOn:Boolean,class:String,layout:Tne,total:y2,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:LI,startGap:Mne,endGap:Dne,visible:Boolean}),lh=(e,t)=>ee===_at||e===Vp||e===mg,FU=e=>e===Vp;let Gv=null;function _2(e=!1){if(Gv===null||e){const t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";const n=document.createElement("div"),a=n.style;return a.width="100px",a.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?Gv=H3:(t.scrollLeft=1,t.scrollLeft===0?Gv=T_:Gv=z3),document.body.removeChild(t),Gv}return Gv}function Tat({move:e,size:t,bar:r},n){const a={},i=`translate${r.axis}(${e}px)`;return a[r.size]=t,a.transform=i,a.msTransform=i,a.webkitTransform=i,n==="horizontal"?a.height="100%":a.width="100%",a}const II=te({name:"ElVirtualScrollBar",props:Pne,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const r=F(()=>e.startGap+e.endGap),n=Ce("virtual-scrollbar"),a=Ce("scrollbar"),i=G(),o=G();let s=null,l=null;const u=Ar({isDragging:!1,traveled:0}),c=F(()=>Mte[e.layout]),f=F(()=>e.clientSize-b(r)),d=F(()=>({position:"absolute",width:`${mg===e.layout?f.value:e.scrollbarSize}px`,height:`${mg===e.layout?e.scrollbarSize:f.value}px`,[bat[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),h=F(()=>{const S=e.ratio,T=e.clientSize;if(S>=100)return Number.POSITIVE_INFINITY;if(S>=50)return S*T/100;const A=T/3;return Math.floor(Math.min(Math.max(S*T,wat),A))}),v=F(()=>{if(!Number.isFinite(h.value))return{display:"none"};const S=`${h.value}px`;return Tat({bar:c.value,size:S,move:u.traveled},e.layout)}),p=F(()=>Math.floor(e.clientSize-h.value-b(r))),g=()=>{window.addEventListener("mousemove",w),window.addEventListener("mouseup",_);const S=b(o);S&&(l=document.onselectstart,document.onselectstart=()=>!1,S.addEventListener("touchmove",w),S.addEventListener("touchend",_))},m=()=>{window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",_),document.onselectstart=l,l=null;const S=b(o);S&&(S.removeEventListener("touchmove",w),S.removeEventListener("touchend",_))},y=S=>{S.stopImmediatePropagation(),!(S.ctrlKey||[1,2].includes(S.button))&&(u.isDragging=!0,u[c.value.axis]=S.currentTarget[c.value.offset]-(S[c.value.client]-S.currentTarget.getBoundingClientRect()[c.value.direction]),t("start-move"),g())},_=()=>{u.isDragging=!1,u[c.value.axis]=0,t("stop-move"),m()},w=S=>{const{isDragging:T}=u;if(!T||!o.value||!i.value)return;const A=u[c.value.axis];if(!A)return;wT(s);const C=(i.value.getBoundingClientRect()[c.value.direction]-S[c.value.client])*-1,M=o.value[c.value.offset]-A,E=C-M;s=cg(()=>{u.traveled=Math.max(e.startGap,Math.min(E,p.value)),t("scroll",E,p.value)})},x=S=>{const T=Math.abs(S.target.getBoundingClientRect()[c.value.direction]-S[c.value.client]),A=o.value[c.value.offset]/2,C=T-A;u.traveled=Math.max(0,Math.min(C,p.value)),t("scroll",C,p.value)};return Ae(()=>e.scrollFrom,S=>{u.isDragging||(u.traveled=Math.ceil(S*p.value))}),un(()=>{m()}),()=>et("div",{role:"presentation",ref:i,class:[n.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:d.value,onMousedown:it(x,["stop","prevent"]),onTouchstartPrevent:y},et("div",{ref:o,class:a.e("thumb"),style:v.value,onMousedown:y},[]))}}),Lne=({name:e,getOffset:t,getItemSize:r,getItemOffset:n,getEstimatedTotalSize:a,getStartIndexForOffset:i,getStopIndexForStartIndex:o,initCache:s,clearCache:l,validateProps:u})=>te({name:e??"ElVirtualList",props:Ene,emits:[p2,g2],setup(c,{emit:f,expose:d}){u(c);const h=It(),v=Ce("vl"),p=G(s(c,h)),g=Ane(),m=G(),y=G(),_=G(),w=G({isScrolling:!1,scrollDir:"forward",scrollOffset:ct(c.initScrollOffset)?c.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:c.scrollbarAlwaysOn}),x=F(()=>{const{total:X,cache:Q}=c,{isScrolling:se,scrollDir:ee,scrollOffset:K}=b(w);if(X===0)return[0,0,0,0];const Z=i(c,K,b(p)),ne=o(c,Z,K,b(p)),re=!se||ee===m2?Math.max(1,Q):1,ie=!se||ee===mp?Math.max(1,Q):1;return[Math.max(0,Z-re),Math.max(0,Math.min(X-1,ne+ie)),Z,ne]}),S=F(()=>a(c,b(p))),T=F(()=>C_(c.layout)),A=F(()=>[{position:"relative",[`overflow-${T.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:c.direction,height:ct(c.height)?`${c.height}px`:c.height,width:ct(c.width)?`${c.width}px`:c.width},c.style]),C=F(()=>{const X=b(S),Q=b(T);return{height:Q?"100%":`${X}px`,pointerEvents:b(w).isScrolling?"none":void 0,width:Q?`${X}px`:"100%"}}),M=F(()=>T.value?c.width:c.height),{onWheel:E}=xat({atStartEdge:F(()=>w.value.scrollOffset<=0),atEndEdge:F(()=>w.value.scrollOffset>=S.value),layout:F(()=>c.layout)},X=>{var Q,se;(se=(Q=_.value).onMouseUp)==null||se.call(Q),R(Math.min(w.value.scrollOffset+X,S.value-M.value))}),D=()=>{const{total:X}=c;if(X>0){const[K,Z,ne,re]=b(x);f(p2,K,Z,ne,re)}const{scrollDir:Q,scrollOffset:se,updateRequested:ee}=b(w);f(g2,Q,se,ee)},P=X=>{const{clientHeight:Q,scrollHeight:se,scrollTop:ee}=X.currentTarget,K=b(w);if(K.scrollOffset===ee)return;const Z=Math.max(0,Math.min(ee,se-Q));w.value={...K,isScrolling:!0,scrollDir:lh(K.scrollOffset,Z),scrollOffset:Z,updateRequested:!1},qe(z)},L=X=>{const{clientWidth:Q,scrollLeft:se,scrollWidth:ee}=X.currentTarget,K=b(w);if(K.scrollOffset===se)return;const{direction:Z}=c;let ne=se;if(Z===Vp)switch(_2()){case T_:{ne=-se;break}case H3:{ne=ee-Q-se;break}}ne=Math.max(0,Math.min(ne,ee-Q)),w.value={...K,isScrolling:!0,scrollDir:lh(K.scrollOffset,ne),scrollOffset:ne,updateRequested:!1},qe(z)},I=X=>{b(T)?L(X):P(X),D()},O=(X,Q)=>{const se=(S.value-M.value)/Q*X;R(Math.min(S.value-M.value,se))},R=X=>{X=Math.max(X,0),X!==b(w).scrollOffset&&(w.value={...b(w),scrollOffset:X,scrollDir:lh(b(w).scrollOffset,X),updateRequested:!0},qe(z))},B=(X,Q=Jo)=>{const{scrollOffset:se}=b(w);X=Math.max(0,Math.min(X,c.total-1)),R(t(c,X,Q,se,b(p)))},k=X=>{const{direction:Q,itemSize:se,layout:ee}=c,K=g.value(l&&se,l&&ee,l&&Q);let Z;if(or(K,String(X)))Z=K[X];else{const ne=n(c,X,b(p)),re=r(c,X,b(p)),ie=b(T),Y=Q===Vp,q=ie?ne:0;K[X]=Z={position:"absolute",left:Y?void 0:`${q}px`,right:Y?`${q}px`:void 0,top:ie?0:`${ne}px`,height:ie?"100%":`${re}px`,width:ie?`${re}px`:"100%"}}return Z},z=()=>{w.value.isScrolling=!1,qe(()=>{g.value(-1,null,null)})},$=()=>{const X=m.value;X&&(X.scrollTop=0)};xt(()=>{if(!ur)return;const{initScrollOffset:X}=c,Q=b(m);ct(X)&&Q&&(b(T)?Q.scrollLeft=X:Q.scrollTop=X),D()}),qu(()=>{const{direction:X,layout:Q}=c,{scrollOffset:se,updateRequested:ee}=b(w),K=b(m);if(ee&&K)if(Q===mg)if(X===Vp)switch(_2()){case T_:{K.scrollLeft=-se;break}case z3:{K.scrollLeft=se;break}default:{const{clientWidth:Z,scrollWidth:ne}=K;K.scrollLeft=ne-Z-se;break}}else K.scrollLeft=se;else K.scrollTop=se});const j={ns:v,clientSize:M,estimatedTotalSize:S,windowStyle:A,windowRef:m,innerRef:y,innerStyle:C,itemsToRender:x,scrollbarRef:_,states:w,getItemStyle:k,onScroll:I,onScrollbarScroll:O,onWheel:E,scrollTo:R,scrollToItem:B,resetScrollTop:$};return d({windowRef:m,innerRef:y,getItemStyleCache:g,scrollTo:R,scrollToItem:B,resetScrollTop:$,states:w}),j},render(c){var f;const{$slots:d,className:h,clientSize:v,containerElement:p,data:g,getItemStyle:m,innerElement:y,itemsToRender:_,innerStyle:w,layout:x,total:S,onScroll:T,onScrollbarScroll:A,onWheel:C,states:M,useIsScrolling:E,windowStyle:D,ns:P}=c,[L,I]=_,O=Ft(p),R=Ft(y),B=[];if(S>0)for(let j=L;j<=I;j++)B.push((f=d.default)==null?void 0:f.call(d,{data:g,key:j,index:j,isScrolling:E?M.isScrolling:void 0,style:m(j)}));const k=[et(R,{style:w,ref:"innerRef"},wt(R)?B:{default:()=>B})],z=et(II,{ref:"scrollbarRef",clientSize:v,layout:x,onScroll:A,ratio:v*100/this.estimatedTotalSize,scrollFrom:M.scrollOffset/(this.estimatedTotalSize-v),total:S}),$=et(O,{class:[P.e("window"),h],style:D,onScroll:T,onWheel:C,ref:"windowRef",key:0},wt(O)?[k]:{default:()=>[k]});return et("div",{key:0,class:[P.e("wrapper"),M.scrollbarAlwaysOn?"always-on":""]},[$,z])}}),Ine=Lne({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:r,layout:n,width:a},i,o,s)=>{const l=C_(n)?a:e,u=Math.max(0,t*r-l),c=Math.min(u,i*r),f=Math.max(0,(i+1)*r-l);switch(o===RT&&(s>=f-l&&s<=c+l?o=Jo:o=Ll),o){case x_:return c;case A_:return f;case Ll:{const d=Math.round(f+(c-f)/2);return du+Math.floor(l/2)?u:d}case Jo:default:return s>=f&&s<=c?s:sMath.max(0,Math.min(e-1,Math.floor(r/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:r,layout:n,width:a},i,o)=>{const s=i*r,l=C_(n)?a:e,u=Math.ceil((l+o-s)/r);return Math.max(0,Math.min(t-1,i+u-1))},initCache(){},clearCache:!0,validateProps(){}}),yp=(e,t,r)=>{const{itemSize:n}=e,{items:a,lastVisitedIndex:i}=r;if(t>i){let o=0;if(i>=0){const s=a[i];o=s.offset+s.size}for(let s=i+1;s<=t;s++){const l=n(s);a[s]={offset:o,size:l},o+=l}r.lastVisitedIndex=t}return a[t]},Cat=(e,t,r)=>{const{items:n,lastVisitedIndex:a}=t;return(a>0?n[a].offset:0)>=r?Rne(e,t,0,a,r):Eat(e,t,Math.max(0,a),r)},Rne=(e,t,r,n,a)=>{for(;r<=n;){const i=r+Math.floor((n-r)/2),o=yp(e,i,t).offset;if(o===a)return i;oa&&(n=i-1)}return Math.max(0,r-1)},Eat=(e,t,r,n)=>{const{total:a}=e;let i=1;for(;r{let a=0;if(n>=e&&(n=e-1),n>=0){const s=t[n];a=s.offset+s.size}const o=(e-n-1)*r;return a+o},Mat=Lne({name:"ElDynamicSizeList",getItemOffset:(e,t,r)=>yp(e,t,r).offset,getItemSize:(e,t,{items:r})=>r[t].size,getEstimatedTotalSize:VU,getOffset:(e,t,r,n,a)=>{const{height:i,layout:o,width:s}=e,l=C_(o)?s:i,u=yp(e,t,a),c=VU(e,a),f=Math.max(0,Math.min(c-l,u.offset)),d=Math.max(0,u.offset-l+u.size);switch(r===RT&&(n>=d-l&&n<=f+l?r=Jo:r=Ll),r){case x_:return f;case A_:return d;case Ll:return Math.round(d+(f-d)/2);case Jo:default:return n>=d&&n<=f?n:nCat(e,r,t),getStopIndexForStartIndex:(e,t,r,n)=>{const{height:a,total:i,layout:o,width:s}=e,l=C_(o)?s:a,u=yp(e,t,n),c=r+l;let f=u.offset+u.size,d=t;for(;d{var i,o;r.lastVisitedIndex=Math.min(r.lastVisitedIndex,n-1),(i=t.exposed)==null||i.getItemStyleCache(-1),a&&((o=t.proxy)==null||o.$forceUpdate())},r},clearCache:!1,validateProps:({itemSize:e})=>{}}),Dat=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:r,atYStartEdge:n},a)=>{let i=null,o=0,s=0;const l=(c,f)=>{const d=c<=0&&t.value||c>=0&&e.value,h=f<=0&&n.value||f>=0&&r.value;return d&&h};return{hasReachedEdge:l,onWheel:c=>{wT(i);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(o,s)&&l(o+f,s+d))&&(o+=f,s+=d,c.preventDefault(),i=cg(()=>{a(o,s),o=0,s=0}))}}},One=({name:e,clearCache:t,getColumnPosition:r,getColumnStartIndexForOffset:n,getColumnStopIndexForStartIndex:a,getEstimatedTotalHeight:i,getEstimatedTotalWidth:o,getColumnOffset:s,getRowOffset:l,getRowPosition:u,getRowStartIndexForOffset:c,getRowStopIndexForStartIndex:f,initCache:d,injectToInstance:h,validateProps:v})=>te({name:e??"ElVirtualList",props:Ph,emits:[p2,g2],setup(p,{emit:g,expose:m,slots:y}){const _=Ce("vl");v(p);const w=It(),x=G(d(p,w));h==null||h(w,x);const S=G(),T=G(),A=G(),C=G(null),M=G({isScrolling:!1,scrollLeft:ct(p.initScrollLeft)?p.initScrollLeft:0,scrollTop:ct(p.initScrollTop)?p.initScrollTop:0,updateRequested:!1,xAxisScrollDir:mp,yAxisScrollDir:mp}),E=Ane(),D=F(()=>Number.parseInt(`${p.height}`,10)),P=F(()=>Number.parseInt(`${p.width}`,10)),L=F(()=>{const{totalColumn:ge,totalRow:Le,columnCache:Se}=p,{isScrolling:xe,xAxisScrollDir:Te,scrollLeft:Ve}=b(M);if(ge===0||Le===0)return[0,0,0,0];const He=n(p,Ve,b(x)),je=a(p,He,Ve,b(x)),Pe=!xe||Te===m2?Math.max(1,Se):1,Ue=!xe||Te===mp?Math.max(1,Se):1;return[Math.max(0,He-Pe),Math.max(0,Math.min(ge-1,je+Ue)),He,je]}),I=F(()=>{const{totalColumn:ge,totalRow:Le,rowCache:Se}=p,{isScrolling:xe,yAxisScrollDir:Te,scrollTop:Ve}=b(M);if(ge===0||Le===0)return[0,0,0,0];const He=c(p,Ve,b(x)),je=f(p,He,Ve,b(x)),Pe=!xe||Te===m2?Math.max(1,Se):1,Ue=!xe||Te===mp?Math.max(1,Se):1;return[Math.max(0,He-Pe),Math.max(0,Math.min(Le-1,je+Ue)),He,je]}),O=F(()=>i(p,b(x))),R=F(()=>o(p,b(x))),B=F(()=>{var ge;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:p.direction,height:ct(p.height)?`${p.height}px`:p.height,width:ct(p.width)?`${p.width}px`:p.width},(ge=p.style)!=null?ge:{}]}),k=F(()=>{const ge=`${b(R)}px`;return{height:`${b(O)}px`,pointerEvents:b(M).isScrolling?"none":void 0,width:ge}}),z=()=>{const{totalColumn:ge,totalRow:Le}=p;if(ge>0&&Le>0){const[je,Pe,Ue,gt]=b(L),[At,Gt,tt,be]=b(I);g(p2,{columnCacheStart:je,columnCacheEnd:Pe,rowCacheStart:At,rowCacheEnd:Gt,columnVisibleStart:Ue,columnVisibleEnd:gt,rowVisibleStart:tt,rowVisibleEnd:be})}const{scrollLeft:Se,scrollTop:xe,updateRequested:Te,xAxisScrollDir:Ve,yAxisScrollDir:He}=b(M);g(g2,{xAxisScrollDir:Ve,scrollLeft:Se,yAxisScrollDir:He,scrollTop:xe,updateRequested:Te})},$=ge=>{const{clientHeight:Le,clientWidth:Se,scrollHeight:xe,scrollLeft:Te,scrollTop:Ve,scrollWidth:He}=ge.currentTarget,je=b(M);if(je.scrollTop===Ve&&je.scrollLeft===Te)return;let Pe=Te;if(FU(p.direction))switch(_2()){case T_:Pe=-Te;break;case H3:Pe=He-Se-Te;break}M.value={...je,isScrolling:!0,scrollLeft:Pe,scrollTop:Math.max(0,Math.min(Ve,xe-Le)),updateRequested:!0,xAxisScrollDir:lh(je.scrollLeft,Pe),yAxisScrollDir:lh(je.scrollTop,Ve)},qe(()=>Z()),ne(),z()},j=(ge,Le)=>{const Se=b(D),xe=(O.value-Se)/Le*ge;se({scrollTop:Math.min(O.value-Se,xe)})},X=(ge,Le)=>{const Se=b(P),xe=(R.value-Se)/Le*ge;se({scrollLeft:Math.min(R.value-Se,xe)})},{onWheel:Q}=Dat({atXStartEdge:F(()=>M.value.scrollLeft<=0),atXEndEdge:F(()=>M.value.scrollLeft>=R.value-b(P)),atYStartEdge:F(()=>M.value.scrollTop<=0),atYEndEdge:F(()=>M.value.scrollTop>=O.value-b(D))},(ge,Le)=>{var Se,xe,Te,Ve;(xe=(Se=T.value)==null?void 0:Se.onMouseUp)==null||xe.call(Se),(Ve=(Te=A.value)==null?void 0:Te.onMouseUp)==null||Ve.call(Te);const He=b(P),je=b(D);se({scrollLeft:Math.min(M.value.scrollLeft+ge,R.value-He),scrollTop:Math.min(M.value.scrollTop+Le,O.value-je)})}),se=({scrollLeft:ge=M.value.scrollLeft,scrollTop:Le=M.value.scrollTop})=>{ge=Math.max(ge,0),Le=Math.max(Le,0);const Se=b(M);Le===Se.scrollTop&&ge===Se.scrollLeft||(M.value={...Se,xAxisScrollDir:lh(Se.scrollLeft,ge),yAxisScrollDir:lh(Se.scrollTop,Le),scrollLeft:ge,scrollTop:Le,updateRequested:!0},qe(()=>Z()),ne(),z())},ee=(ge=0,Le=0,Se=Jo)=>{const xe=b(M);Le=Math.max(0,Math.min(Le,p.totalColumn-1)),ge=Math.max(0,Math.min(ge,p.totalRow-1));const Te=Pee(_.namespace.value),Ve=b(x),He=i(p,Ve),je=o(p,Ve);se({scrollLeft:s(p,Le,Se,xe.scrollLeft,Ve,je>p.width?Te:0),scrollTop:l(p,ge,Se,xe.scrollTop,Ve,He>p.height?Te:0)})},K=(ge,Le)=>{const{columnWidth:Se,direction:xe,rowHeight:Te}=p,Ve=E.value(t&&Se,t&&Te,t&&xe),He=`${ge},${Le}`;if(or(Ve,He))return Ve[He];{const[,je]=r(p,Le,b(x)),Pe=b(x),Ue=FU(xe),[gt,At]=u(p,ge,Pe),[Gt]=r(p,Le,Pe);return Ve[He]={position:"absolute",left:Ue?void 0:`${je}px`,right:Ue?`${je}px`:void 0,top:`${At}px`,height:`${gt}px`,width:`${Gt}px`},Ve[He]}},Z=()=>{M.value.isScrolling=!1,qe(()=>{E.value(-1,null,null)})};xt(()=>{if(!ur)return;const{initScrollLeft:ge,initScrollTop:Le}=p,Se=b(S);Se&&(ct(ge)&&(Se.scrollLeft=ge),ct(Le)&&(Se.scrollTop=Le)),z()});const ne=()=>{const{direction:ge}=p,{scrollLeft:Le,scrollTop:Se,updateRequested:xe}=b(M),Te=b(S);if(xe&&Te){if(ge===Vp)switch(_2()){case T_:{Te.scrollLeft=-Le;break}case z3:{Te.scrollLeft=Le;break}default:{const{clientWidth:Ve,scrollWidth:He}=Te;Te.scrollLeft=He-Ve-Le;break}}else Te.scrollLeft=Math.max(0,Le);Te.scrollTop=Math.max(0,Se)}},{resetAfterColumnIndex:re,resetAfterRowIndex:ie,resetAfter:Y}=w.proxy;m({windowRef:S,innerRef:C,getItemStyleCache:E,scrollTo:se,scrollToItem:ee,states:M,resetAfterColumnIndex:re,resetAfterRowIndex:ie,resetAfter:Y});const q=()=>{const{scrollbarAlwaysOn:ge,scrollbarStartGap:Le,scrollbarEndGap:Se,totalColumn:xe,totalRow:Te}=p,Ve=b(P),He=b(D),je=b(R),Pe=b(O),{scrollLeft:Ue,scrollTop:gt}=b(M),At=et(II,{ref:T,alwaysOn:ge,startGap:Le,endGap:Se,class:_.e("horizontal"),clientSize:Ve,layout:"horizontal",onScroll:X,ratio:Ve*100/je,scrollFrom:Ue/(je-Ve),total:Te,visible:!0}),Gt=et(II,{ref:A,alwaysOn:ge,startGap:Le,endGap:Se,class:_.e("vertical"),clientSize:He,layout:"vertical",onScroll:j,ratio:He*100/Pe,scrollFrom:gt/(Pe-He),total:xe,visible:!0});return{horizontalScrollbar:At,verticalScrollbar:Gt}},oe=()=>{var ge;const[Le,Se]=b(L),[xe,Te]=b(I),{data:Ve,totalColumn:He,totalRow:je,useIsScrolling:Pe,itemKey:Ue}=p,gt=[];if(je>0&&He>0)for(let At=xe;At<=Te;At++)for(let Gt=Le;Gt<=Se;Gt++)gt.push((ge=y.default)==null?void 0:ge.call(y,{columnIndex:Gt,data:Ve,key:Ue({columnIndex:Gt,data:Ve,rowIndex:At}),isScrolling:Pe?b(M).isScrolling:void 0,style:K(At,Gt),rowIndex:At}));return gt},ve=()=>{const ge=Ft(p.innerElement),Le=oe();return[et(ge,{style:b(k),ref:C},wt(ge)?Le:{default:()=>Le})]};return()=>{const ge=Ft(p.containerElement),{horizontalScrollbar:Le,verticalScrollbar:Se}=q(),xe=ve();return et("div",{key:0,class:_.e("wrapper"),role:p.role},[et(ge,{class:p.className,style:b(B),onScroll:$,onWheel:Q,ref:S},wt(ge)?xe:{default:()=>xe}),Le,Se])}}}),Pat=One({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:r},n,a,i,o,s)=>{r=Number(r);const l=Math.max(0,e*t-r),u=Math.min(l,n*t),c=Math.max(0,n*t-r+s+t);switch(a==="smart"&&(i>=c-r&&i<=u+r?a=Jo:a=Ll),a){case x_:return u;case A_:return c;case Ll:{const f=Math.round(c+(u-c)/2);return fl+Math.floor(r/2)?l:f}case Jo:default:return i>=c&&i<=u?i:c>u||i{t=Number(t);const l=Math.max(0,r*e-t),u=Math.min(l,n*e),c=Math.max(0,n*e-t+s+e);switch(a===RT&&(i>=c-t&&i<=u+t?a=Jo:a=Ll),a){case x_:return u;case A_:return c;case Ll:{const f=Math.round(c+(u-c)/2);return fl+Math.floor(t/2)?l:f}case Jo:default:return i>=c&&i<=u?i:c>u||iMath.max(0,Math.min(t-1,Math.floor(r/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:r},n,a)=>{const i=n*e,o=Math.ceil((r+a-i)/e);return Math.max(0,Math.min(t-1,n+o-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},r)=>Math.max(0,Math.min(t-1,Math.floor(r/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:r},n,a)=>{const i=n*e,o=Math.ceil((r+a-i)/e);return Math.max(0,Math.min(t-1,n+o-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),{max:b2,min:kne,floor:Nne}=Math,Lat={column:"columnWidth",row:"rowHeight"},RI={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},_u=(e,t,r,n)=>{const[a,i,o]=[r[n],e[Lat[n]],r[RI[n]]];if(t>o){let s=0;if(o>=0){const l=a[o];s=l.offset+l.size}for(let l=o+1;l<=t;l++){const u=i(l);a[l]={offset:s,size:u},s+=u}r[RI[n]]=t}return a[t]},Bne=(e,t,r,n,a,i)=>{for(;r<=n;){const o=r+Nne((n-r)/2),s=_u(e,o,t,i).offset;if(s===a)return o;s{const i=a==="column"?e.totalColumn:e.totalRow;let o=1;for(;r{const[a,i]=[t[n],t[RI[n]]];return(i>0?a[i].offset:0)>=r?Bne(e,t,0,i,r,n):Iat(e,t,b2(0,i),r,n)},Fne=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:r,row:n})=>{let a=0;if(r>=e&&(r=e-1),r>=0){const s=n[r];a=s.offset+s.size}const o=(e-r-1)*t;return a+o},Vne=({totalColumn:e},{column:t,estimatedColumnWidth:r,lastVisitedColumnIndex:n})=>{let a=0;if(n>e&&(n=e-1),n>=0){const s=t[n];a=s.offset+s.size}const o=(e-n-1)*r;return a+o},Rat={column:Vne,row:Fne},HU=(e,t,r,n,a,i,o)=>{const[s,l]=[i==="row"?e.height:e.width,Rat[i]],u=_u(e,t,a,i),c=l(e,a),f=b2(0,kne(c-s,u.offset)),d=b2(0,u.offset-s+o+u.size);switch(r===RT&&(n>=d-s&&n<=f+s?r=Jo:r=Ll),r){case x_:return f;case A_:return d;case Ll:return Math.round(d+(f-d)/2);case Jo:default:return n>=d&&n<=f?n:d>f||n{const n=_u(e,t,r,"column");return[n.size,n.offset]},getRowPosition:(e,t,r)=>{const n=_u(e,t,r,"row");return[n.size,n.offset]},getColumnOffset:(e,t,r,n,a,i)=>HU(e,t,r,n,a,"column",i),getRowOffset:(e,t,r,n,a,i)=>HU(e,t,r,n,a,"row",i),getColumnStartIndexForOffset:(e,t,r)=>zU(e,r,t,"column"),getColumnStopIndexForStartIndex:(e,t,r,n)=>{const a=_u(e,t,n,"column"),i=r+e.width;let o=a.offset+a.size,s=t;for(;szU(e,r,t,"row"),getRowStopIndexForStartIndex:(e,t,r,n)=>{const{totalRow:a,height:i}=e,o=_u(e,t,n,"row"),s=r+i;let l=o.size+o.offset,u=t;for(;u{const r=({columnIndex:i,rowIndex:o},s)=>{var l,u;s=oa(s)?!0:s,ct(i)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,i-1)),ct(o)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,o-1)),(l=e.exposed)==null||l.getItemStyleCache.value(-1,null,null),s&&((u=e.proxy)==null||u.$forceUpdate())},n=(i,o)=>{r({columnIndex:i},o)},a=(i,o)=>{r({rowIndex:i},o)};Object.assign(e.proxy,{resetAfterColumnIndex:n,resetAfterRowIndex:a,resetAfter:r})},initCache:({estimatedColumnWidth:e=CI,estimatedRowHeight:t=CI})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),kat=te({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:Ce("select")}}});function Nat(e,t,r,n,a,i){return e.item.isTitle?(N(),U("div",{key:0,class:H(e.ns.be("group","title")),style:Xe([e.style,{lineHeight:`${e.height}px`}])},me(e.item.label),7)):(N(),U("div",{key:1,class:H(e.ns.be("group","split")),style:Xe(e.style)},[V("span",{class:H(e.ns.be("group","split-dash")),style:Xe({top:`${e.height/2}px`})},null,6)],6))}var Bat=ke(kat,[["render",Nat],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function Fat(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const zne={label:"label",value:"value",disabled:"disabled",options:"options"};function OT(e){const t=F(()=>({...zne,...e.props}));return{aliasProps:t,getLabel:o=>gn(o,t.value.label),getValue:o=>gn(o,t.value.value),getDisabled:o=>gn(o,t.value.disabled),getOptions:o=>gn(o,t.value.options)}}const Vat=Oe({allowCreate:Boolean,autocomplete:{type:fe(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:Zr,default:zf},effect:{type:fe(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:170},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,label:String,modelValue:{type:fe([Array,String,Number,Boolean,Object])},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:fe(Array),required:!0},placeholder:{type:String},teleported:Va.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:fe(Object),default:()=>({})},remote:Boolean,size:Ga,props:{type:fe(Object),default:()=>zne},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:fe(String),values:dv,default:"bottom-start"}}),zat=Oe({data:Array,disabled:Boolean,hovering:Boolean,item:{type:fe(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),G3=Symbol("ElSelectV2Injection"),Hat=te({props:zat,emits:["select","hover"],setup(e,{emit:t}){const r=Ye(G3),n=Ce("select"),{hoverItem:a,selectOptionClick:i}=Fat(e,{emit:t}),{getLabel:o}=OT(r.props);return{ns:n,hoverItem:a,selectOptionClick:i,getLabel:o}}}),Gat=["aria-selected"];function Uat(e,t,r,n,a,i){return N(),U("li",{"aria-selected":e.selected,style:Xe(e.style),class:H([e.ns.be("dropdown","option-item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),{hover:e.hovering}]),onMouseenter:t[0]||(t[0]=(...o)=>e.hoverItem&&e.hoverItem(...o)),onClick:t[1]||(t[1]=it((...o)=>e.selectOptionClick&&e.selectOptionClick(...o),["stop"]))},[ye(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[V("span",null,me(e.getLabel(e.item)),1)])],46,Gat)}var $at=ke(Hat,[["render",Uat],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]),Wat=te({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:r}){const n=Ye(G3),a=Ce("select"),{getLabel:i,getValue:o,getDisabled:s}=OT(n.props),l=G([]),u=G(),c=F(()=>e.data.length);Ae(()=>c.value,()=>{var E,D;(D=(E=n.popper.value).updatePopper)==null||D.call(E)});const f=F(()=>oa(n.props.estimatedOptionHeight)),d=F(()=>f.value?{itemSize:n.props.itemHeight}:{estimatedSize:n.props.estimatedOptionHeight,itemSize:E=>l.value[E]}),h=(E=[],D)=>{const{props:{valueKey:P}}=n;return Vt(D)?E&&E.some(L=>Er(gn(L,P))===gn(D,P)):E.includes(D)},v=(E,D)=>{if(Vt(D)){const{valueKey:P}=n.props;return gn(E,P)===gn(D,P)}else return E===D},p=(E,D)=>n.props.multiple?h(E,o(D)):v(E,o(D)),g=(E,D)=>{const{disabled:P,multiple:L,multipleLimit:I}=n.props;return P||!D&&(L?I>0&&E.length>=I:!1)},m=E=>e.hoveringIndex===E;r({listRef:u,isSized:f,isItemDisabled:g,isItemHovering:m,isItemSelected:p,scrollToItem:E=>{const D=u.value;D&&D.scrollToItem(E)},resetScrollTop:()=>{const E=u.value;E&&E.resetScrollTop()}});const w=E=>{const{index:D,data:P,style:L}=E,I=b(f),{itemSize:O,estimatedSize:R}=b(d),{modelValue:B}=n.props,{onSelect:k,onHover:z}=n,$=P[D];if($.type==="Group")return J(Bat,{item:$,style:L,height:I?O:R},null);const j=p(B,$),X=g(B,j),Q=m(D);return J($at,Ut(E,{selected:j,disabled:s($)||X,created:!!$.created,hovering:Q,item:$,onSelect:k,onHover:z}),{default:se=>{var ee;return((ee=t.default)==null?void 0:ee.call(t,se))||J("span",null,[i($)])}})},{onKeyboardNavigate:x,onKeyboardSelect:S}=n,T=()=>{x("forward")},A=()=>{x("backward")},C=()=>{n.expanded=!1},M=E=>{const{code:D}=E,{tab:P,esc:L,down:I,up:O,enter:R}=Qe;switch(D!==P&&(E.preventDefault(),E.stopPropagation()),D){case P:case L:{C();break}case I:{T();break}case O:{A();break}case R:{S();break}}};return()=>{var E;const{data:D,width:P}=e,{height:L,multiple:I,scrollbarAlwaysOn:O}=n.props;if(D.length===0)return J("div",{class:a.b("dropdown"),style:{width:`${P}px`}},[(E=t.empty)==null?void 0:E.call(t)]);const R=b(f)?Ine:Mat;return J("div",{class:[a.b("dropdown"),a.is("multiple",I)]},[J(R,Ut({ref:u},b(d),{className:a.be("dropdown","list"),scrollbarAlwaysOn:O,data:D,height:L,width:P,total:D.length,onKeydown:M}),{default:B=>J(w,B,null)})])}}});function Yat(e,t){const{aliasProps:r,getLabel:n,getValue:a}=OT(e),i=G(0),o=G(null),s=F(()=>e.allowCreate&&e.filterable);function l(h){const v=p=>a(p)===h;return e.options&&e.options.some(v)||t.createdOptions.some(v)}function u(h){s.value&&(e.multiple&&h.created?i.value++:o.value=h)}function c(h){if(s.value)if(h&&h.length>0&&!l(h)){const v={[r.value.value]:h,[r.value.label]:h,created:!0,[r.value.disabled]:!1};t.createdOptions.length>=i.value?t.createdOptions[i.value]=v:t.createdOptions.push(v)}else if(e.multiple)t.createdOptions.length=i.value;else{const v=o.value;t.createdOptions.length=0,v&&v.created&&t.createdOptions.push(v)}}function f(h){if(!s.value||!h||!h.created||h.created&&e.reserveKeyword&&t.inputValue===n(h))return;const v=t.createdOptions.findIndex(p=>a(p)===a(h));~v&&(t.createdOptions.splice(v,1),i.value--)}function d(){s.value&&(t.createdOptions.length=0,i.value=0)}return{createNewOption:c,removeNewOption:f,selectNewOption:u,clearAllNewOption:d}}function jat(e){const t=G(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:i=>{const o=i.target.value,s=o[o.length-1]||"";t.value=!bT(s)},handleCompositionEnd:i=>{t.value&&(t.value=!1,dt(e)&&e(i))}}}const GU="",UU=11,Kat={larget:51,default:42,small:33},Xat=(e,t)=>{const{t:r}=fr(),n=Ce("select-v2"),a=Ce("input"),{form:i,formItem:o}=Vi(),{getLabel:s,getValue:l,getDisabled:u,getOptions:c}=OT(e),f=Ar({inputValue:GU,displayInputValue:GU,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:void 0,query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),d=G(-1),h=G(-1),v=G(null),p=G(null),g=G(null),m=G(null),y=G(null),_=G(null),w=G(null),x=G(!1),S=F(()=>e.disabled||(i==null?void 0:i.disabled)),T=F(()=>{const Re=O.value.length*34;return Re>e.height?e.height:Re}),A=F(()=>!Qn(e.modelValue)),C=F(()=>{const Re=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:A.value;return e.clearable&&!S.value&&f.comboBoxHovering&&Re}),M=F(()=>e.remote&&e.filterable?"":mT),E=F(()=>M.value&&n.is("reverse",x.value)),D=F(()=>(o==null?void 0:o.validateState)||""),P=F(()=>t3[D.value]),L=F(()=>e.remote?300:0),I=F(()=>{const Re=O.value;return e.loading?e.loadingText||r("el.select.loading"):e.remote&&f.inputValue===""&&Re.length===0?!1:e.filterable&&f.inputValue&&Re.length>0?e.noMatchText||r("el.select.noMatch"):Re.length===0?e.noDataText||r("el.select.noData"):null}),O=F(()=>{const Re=ft=>{const Yt=f.inputValue,gr=new RegExp(Mee(Yt),"i");return Yt?gr.test(s(ft)||""):!0};return e.loading?[]:[...e.options,...f.createdOptions].reduce((ft,Yt)=>{const gr=c(Yt);if(We(gr)){const ka=gr.filter(Re);ka.length>0&&ft.push({label:s(Yt),isTitle:!0,type:"Group"},...ka,{type:"Group"})}else(e.remote||Re(Yt))&&ft.push(Yt);return ft},[])}),R=F(()=>{const Re=new Map;return O.value.forEach((ft,Yt)=>{Re.set(Ue(l(ft)),{option:ft,index:Yt})}),Re}),B=F(()=>O.value.every(Re=>u(Re))),k=ca(),z=F(()=>k.value==="small"?"small":"default"),$=F(()=>{const Re=_.value,ft=z.value||"default",Yt=Re?Number.parseInt(getComputedStyle(Re).paddingLeft):0,gr=Re?Number.parseInt(getComputedStyle(Re).paddingRight):0;return f.selectWidth-gr-Yt-Kat[ft]}),j=()=>{var Re;h.value=((Re=y.value)==null?void 0:Re.offsetWidth)||200},X=F(()=>({width:`${f.calculatedWidth===0?UU:Math.ceil(f.calculatedWidth)+UU}px`})),Q=F(()=>We(e.modelValue)?e.modelValue.length===0&&!f.displayInputValue:e.filterable?f.displayInputValue.length===0:!0),se=F(()=>{const Re=e.placeholder||r("el.select.placeholder");return e.multiple||Qn(e.modelValue)?Re:f.selectedLabel}),ee=F(()=>{var Re,ft;return(ft=(Re=m.value)==null?void 0:Re.popperRef)==null?void 0:ft.contentRef}),K=F(()=>{if(e.multiple){const Re=e.modelValue.length;if(e.modelValue.length>0&&R.value.has(e.modelValue[Re-1])){const{index:ft}=R.value.get(e.modelValue[Re-1]);return ft}}else if(e.modelValue&&R.value.has(e.modelValue)){const{index:Re}=R.value.get(e.modelValue);return Re}return-1}),Z=F({get(){return x.value&&I.value!==!1},set(Re){x.value=Re}}),ne=F(()=>f.cachedOptions.slice(0,e.maxCollapseTags)),re=F(()=>f.cachedOptions.slice(e.maxCollapseTags)),{createNewOption:ie,removeNewOption:Y,selectNewOption:q,clearAllNewOption:oe}=Yat(e,f),{handleCompositionStart:ve,handleCompositionUpdate:_e,handleCompositionEnd:ge}=jat(Re=>we(Re)),Le=()=>{var Re,ft,Yt;(ft=(Re=p.value)==null?void 0:Re.focus)==null||ft.call(Re),(Yt=m.value)==null||Yt.updatePopper()},Se=()=>{if(!e.automaticDropdown&&!S.value)return f.isComposing&&(f.softFocus=!0),qe(()=>{var Re,ft;x.value=!x.value,(ft=(Re=p.value)==null?void 0:Re.focus)==null||ft.call(Re)})},xe=()=>(e.filterable&&f.inputValue!==f.selectedLabel&&(f.query=f.selectedLabel),Ve(f.inputValue),qe(()=>{ie(f.inputValue)})),Te=Ni(xe,L.value),Ve=Re=>{f.previousQuery!==Re&&(f.previousQuery=Re,e.filterable&&dt(e.filterMethod)?e.filterMethod(Re):e.filterable&&e.remote&&dt(e.remoteMethod)&&e.remoteMethod(Re))},He=Re=>{to(e.modelValue,Re)||t(ln,Re)},je=Re=>{t(Nt,Re),He(Re),f.previousValue=String(Re)},Pe=(Re=[],ft)=>{if(!Vt(ft))return Re.indexOf(ft);const Yt=e.valueKey;let gr=-1;return Re.some((ka,bs)=>gn(ka,Yt)===gn(ft,Yt)?(gr=bs,!0):!1),gr},Ue=Re=>Vt(Re)?gn(Re,e.valueKey):Re,gt=()=>qe(()=>{var Re,ft;if(!p.value)return;const Yt=_.value;y.value.height=Yt.offsetHeight,x.value&&I.value!==!1&&((ft=(Re=m.value)==null?void 0:Re.updatePopper)==null||ft.call(Re))}),At=()=>{var Re,ft;if(Gt(),j(),(ft=(Re=m.value)==null?void 0:Re.updatePopper)==null||ft.call(Re),e.multiple)return gt()},Gt=()=>{const Re=_.value;Re&&(f.selectWidth=Re.getBoundingClientRect().width)},tt=(Re,ft,Yt=!0)=>{var gr,ka;if(e.multiple){let bs=e.modelValue.slice();const Na=Pe(bs,l(Re));Na>-1?(bs=[...bs.slice(0,Na),...bs.slice(Na+1)],f.cachedOptions.splice(Na,1),Y(Re)):(e.multipleLimit<=0||bs.length{let Yt=e.modelValue.slice();const gr=Pe(Yt,l(ft));if(gr>-1&&!S.value)return Yt=[...e.modelValue.slice(0,gr),...e.modelValue.slice(gr+1)],f.cachedOptions.splice(gr,1),je(Yt),t("remove-tag",l(ft)),f.softFocus=!0,Y(ft),qe(Le);Re.stopPropagation()},pe=Re=>{const ft=f.isComposing;f.isComposing=!0,f.softFocus?f.softFocus=!1:ft||t("focus",Re)},de=Re=>(f.softFocus=!1,qe(()=>{var ft,Yt;(Yt=(ft=p.value)==null?void 0:ft.blur)==null||Yt.call(ft),w.value&&(f.calculatedWidth=w.value.getBoundingClientRect().width),f.isSilentBlur?f.isSilentBlur=!1:f.isComposing&&t("blur",Re),f.isComposing=!1})),Me=()=>{f.displayInputValue.length>0?St(""):x.value=!1},ae=Re=>{if(f.displayInputValue.length===0){Re.preventDefault();const ft=e.modelValue.slice();ft.pop(),Y(f.cachedOptions.pop()),je(ft)}},Ge=()=>{let Re;return We(e.modelValue)?Re=[]:Re=void 0,f.softFocus=!0,e.multiple?f.cachedOptions=[]:f.selectedLabel="",x.value=!1,je(Re),t("clear"),oe(),qe(Le)},St=Re=>{f.displayInputValue=Re,f.inputValue=Re},Kt=(Re,ft=void 0)=>{const Yt=O.value;if(!["forward","backward"].includes(Re)||S.value||Yt.length<=0||B.value)return;if(!x.value)return Se();ft===void 0&&(ft=f.hoveringIndex);let gr=-1;Re==="forward"?(gr=ft+1,gr>=Yt.length&&(gr=0)):Re==="backward"&&(gr=ft-1,(gr<0||gr>=Yt.length)&&(gr=Yt.length-1));const ka=Yt[gr];if(u(ka)||ka.type==="Group")return Kt(Re,gr);An(gr),lr(gr)},Xn=()=>{if(x.value)~f.hoveringIndex&&O.value[f.hoveringIndex]&&tt(O.value[f.hoveringIndex],f.hoveringIndex,!1);else return Se()},An=Re=>{f.hoveringIndex=Re},Io=()=>{f.hoveringIndex=-1},Ya=()=>{var Re;const ft=p.value;ft&&((Re=ft.focus)==null||Re.call(ft))},we=Re=>{const ft=Re.target.value;if(St(ft),f.displayInputValue.length>0&&!x.value&&(x.value=!0),f.calculatedWidth=w.value.getBoundingClientRect().width,e.multiple&>(),e.remote)Te();else return xe()},ze=()=>(x.value=!1,de()),pt=()=>(f.inputValue=f.displayInputValue,qe(()=>{~K.value&&(An(K.value),lr(f.hoveringIndex))})),lr=Re=>{g.value.scrollToItem(Re)},ba=()=>{if(Io(),e.multiple)if(e.modelValue.length>0){let Re=!1;f.cachedOptions.length=0,f.previousValue=e.modelValue.toString();for(const ft of e.modelValue){const Yt=Ue(ft);if(R.value.has(Yt)){const{index:gr,option:ka}=R.value.get(Yt);f.cachedOptions.push(ka),Re||An(gr),Re=!0}}}else f.cachedOptions=[],f.previousValue=void 0;else if(A.value){f.previousValue=e.modelValue;const Re=O.value,ft=Re.findIndex(Yt=>Ue(l(Yt))===Ue(e.modelValue));~ft?(f.selectedLabel=s(Re[ft]),An(ft)):f.selectedLabel=Ue(e.modelValue)}else f.selectedLabel="",f.previousValue=void 0;oe(),j()};return Ae(x,Re=>{var ft,Yt;t("visible-change",Re),Re?(Yt=(ft=m.value).update)==null||Yt.call(ft):(f.displayInputValue="",f.previousQuery=null,ie(""))}),Ae(()=>e.modelValue,(Re,ft)=>{var Yt;(!Re||Re.toString()!==f.previousValue)&&ba(),!to(Re,ft)&&e.validateEvent&&((Yt=o==null?void 0:o.validate)==null||Yt.call(o,"change").catch(gr=>void 0))},{deep:!0}),Ae(()=>e.options,()=>{const Re=p.value;(!Re||Re&&document.activeElement!==Re)&&ba()},{deep:!0}),Ae(O,()=>g.value&&qe(g.value.resetScrollTop)),Ae(()=>Z.value,Re=>{Re||Io()}),xt(()=>{ba()}),di(y,At),{collapseTagSize:z,currentPlaceholder:se,expanded:x,emptyText:I,popupHeight:T,debounce:L,filteredOptions:O,iconComponent:M,iconReverse:E,inputWrapperStyle:X,popperSize:h,dropdownMenuVisible:Z,hasModelValue:A,shouldShowPlaceholder:Q,selectDisabled:S,selectSize:k,showClearBtn:C,states:f,tagMaxWidth:$,nsSelectV2:n,nsInput:a,calculatorRef:w,controlRef:v,inputRef:p,menuRef:g,popper:m,selectRef:y,selectionRef:_,popperRef:ee,validateState:D,validateIcon:P,showTagList:ne,collapseTagList:re,debouncedOnInputChange:Te,deleteTag:be,getLabel:s,getValue:l,getDisabled:u,getValueKey:Ue,handleBlur:de,handleClear:Ge,handleClickOutside:ze,handleDel:ae,handleEsc:Me,handleFocus:pe,handleMenuEnter:pt,handleResize:At,toggleMenu:Se,scrollTo:lr,onInput:we,onKeyboardNavigate:Kt,onKeyboardSelect:Xn,onSelect:tt,onHover:An,onUpdateInputValue:St,handleCompositionStart:ve,handleCompositionEnd:ge,handleCompositionUpdate:_e}},Zat=te({name:"ElSelectV2",components:{ElSelectMenu:Wat,ElTag:w_,ElTooltip:Bi,ElIcon:Ze},directives:{ClickOutside:Df,ModelText:VR},props:Vat,emits:[Nt,ln,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const r=F(()=>{const{modelValue:a,multiple:i}=e,o=i?[]:void 0;return We(a)?i?a:o:i?o:a}),n=Xat(Ar({...Da(e),modelValue:r}),t);return Wt(G3,{props:Ar({...Da(e),height:n.popupHeight,modelValue:r}),popper:n.popper,onSelect:n.onSelect,onHover:n.onHover,onKeyboardNavigate:n.onKeyboardNavigate,onKeyboardSelect:n.onKeyboardSelect}),{...n,modelValue:r}}}),qat={key:0},Qat=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],Jat=["textContent"],eit=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],tit=["textContent"];function rit(e,t,r,n,a,i){const o=bt("el-tag"),s=bt("el-tooltip"),l=bt("el-icon"),u=bt("el-select-menu"),c=_0("model-text"),f=_0("click-outside");return Ct((N(),U("div",{ref:"selectRef",class:H([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),onClick:t[24]||(t[24]=it((...d)=>e.toggleMenu&&e.toggleMenu(...d),["stop"])),onMouseenter:t[25]||(t[25]=d=>e.states.comboBoxHovering=!0),onMouseleave:t[26]||(t[26]=d=>e.states.comboBoxHovering=!1)},[J(s,{ref:"popper",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelectV2.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[23]||(t[23]=d=>e.states.inputValue=e.states.displayInputValue)},{default:le(()=>[V("div",{ref:"selectionRef",class:H([e.nsSelectV2.e("wrapper"),e.nsSelectV2.is("focused",e.states.isComposing||e.expanded),e.nsSelectV2.is("hovering",e.states.comboBoxHovering),e.nsSelectV2.is("filterable",e.filterable),e.nsSelectV2.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(N(),U("div",qat,[ye(e.$slots,"prefix")])):ce("v-if",!0),e.multiple?(N(),U("div",{key:1,class:H(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?(N(),U(Be,{key:0},[(N(!0),U(Be,null,ht(e.showTagList,d=>(N(),U("div",{key:e.getValueKey(e.getValue(d)),class:H(e.nsSelectV2.e("selected-item"))},[J(o,{closable:!e.selectDisabled&&!e.getDisabled(d),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,d)},{default:le(()=>[V("span",{class:H(e.nsSelectV2.e("tags-text")),style:Xe({maxWidth:`${e.tagMaxWidth}px`})},me(e.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),V("div",{class:H(e.nsSelectV2.e("selected-item"))},[e.modelValue.length>e.maxCollapseTags?(N(),he(o,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:le(()=>[e.collapseTagsTooltip?(N(),he(s,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:le(()=>[V("span",{class:H(e.nsSelectV2.e("tags-text")),style:Xe({maxWidth:`${e.tagMaxWidth}px`})}," + "+me(e.modelValue.length-e.maxCollapseTags),7)]),content:le(()=>[V("div",{class:H(e.nsSelectV2.e("selection"))},[(N(!0),U(Be,null,ht(e.collapseTagList,d=>(N(),U("div",{key:e.getValueKey(e.getValue(d)),class:H(e.nsSelectV2.e("selected-item"))},[J(o,{closable:!e.selectDisabled&&!e.getDisabled(d),size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,d)},{default:le(()=>[V("span",{class:H(e.nsSelectV2.e("tags-text")),style:Xe({maxWidth:`${e.tagMaxWidth}px`})},me(e.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):(N(),U("span",{key:1,class:H(e.nsSelectV2.e("tags-text")),style:Xe({maxWidth:`${e.tagMaxWidth}px`})}," + "+me(e.modelValue.length-e.maxCollapseTags),7))]),_:1},8,["size"])):ce("v-if",!0)],2)],64)):(N(!0),U(Be,{key:1},ht(e.states.cachedOptions,d=>(N(),U("div",{key:e.getValueKey(e.getValue(d)),class:H(e.nsSelectV2.e("selected-item"))},[J(o,{closable:!e.selectDisabled&&!e.getDisabled(d),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,d)},{default:le(()=>[V("span",{class:H(e.nsSelectV2.e("tags-text")),style:Xe({maxWidth:`${e.tagMaxWidth}px`})},me(e.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),V("div",{class:H([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:Xe(e.inputWrapperStyle)},[Ct(V("input",{id:e.id,ref:"inputRef",autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-labelledby":e.label,class:H([e.nsSelectV2.is(e.selectSize),e.nsSelectV2.e("combobox-input")]),disabled:e.disabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,unselectable:e.expanded?"on":void 0,"onUpdate:modelValue":t[0]||(t[0]=(...d)=>e.onUpdateInputValue&&e.onUpdateInputValue(...d)),onFocus:t[1]||(t[1]=(...d)=>e.handleFocus&&e.handleFocus(...d)),onBlur:t[2]||(t[2]=(...d)=>e.handleBlur&&e.handleBlur(...d)),onInput:t[3]||(t[3]=(...d)=>e.onInput&&e.onInput(...d)),onCompositionstart:t[4]||(t[4]=(...d)=>e.handleCompositionStart&&e.handleCompositionStart(...d)),onCompositionupdate:t[5]||(t[5]=(...d)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...d)),onCompositionend:t[6]||(t[6]=(...d)=>e.handleCompositionEnd&&e.handleCompositionEnd(...d)),onKeydown:[t[7]||(t[7]=dr(it(d=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[8]||(t[8]=dr(it(d=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[9]||(t[9]=dr(it((...d)=>e.onKeyboardSelect&&e.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),t[10]||(t[10]=dr(it((...d)=>e.handleEsc&&e.handleEsc(...d),["stop","prevent"]),["esc"])),t[11]||(t[11]=dr(it((...d)=>e.handleDel&&e.handleDel(...d),["stop"]),["delete"]))]},null,42,Qat),[[c,e.states.displayInputValue]]),e.filterable?(N(),U("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:H(e.nsSelectV2.e("input-calculator")),textContent:me(e.states.displayInputValue)},null,10,Jat)):ce("v-if",!0)],6)],2)):(N(),U(Be,{key:2},[V("div",{class:H([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[Ct(V("input",{id:e.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":e.label,"aria-expanded":e.expanded,autocapitalize:"off",autocomplete:e.autocomplete,class:H(e.nsSelectV2.e("combobox-input")),disabled:e.disabled,name:e.name,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",unselectable:e.expanded?"on":void 0,onCompositionstart:t[12]||(t[12]=(...d)=>e.handleCompositionStart&&e.handleCompositionStart(...d)),onCompositionupdate:t[13]||(t[13]=(...d)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...d)),onCompositionend:t[14]||(t[14]=(...d)=>e.handleCompositionEnd&&e.handleCompositionEnd(...d)),onFocus:t[15]||(t[15]=(...d)=>e.handleFocus&&e.handleFocus(...d)),onBlur:t[16]||(t[16]=(...d)=>e.handleBlur&&e.handleBlur(...d)),onInput:t[17]||(t[17]=(...d)=>e.onInput&&e.onInput(...d)),onKeydown:[t[18]||(t[18]=dr(it(d=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[19]||(t[19]=dr(it(d=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[20]||(t[20]=dr(it((...d)=>e.onKeyboardSelect&&e.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),t[21]||(t[21]=dr(it((...d)=>e.handleEsc&&e.handleEsc(...d),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":t[22]||(t[22]=(...d)=>e.onUpdateInputValue&&e.onUpdateInputValue(...d))},null,42,eit),[[c,e.states.displayInputValue]])],2),e.filterable?(N(),U("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:H([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:me(e.states.displayInputValue)},null,10,tit)):ce("v-if",!0)],64)),e.shouldShowPlaceholder?(N(),U("span",{key:3,class:H([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.multiple?e.modelValue.length===0:!e.hasModelValue)])},me(e.currentPlaceholder),3)):ce("v-if",!0),V("span",{class:H(e.nsSelectV2.e("suffix"))},[e.iconComponent?Ct((N(),he(l,{key:0,class:H([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:le(()=>[(N(),he(Ft(e.iconComponent)))]),_:1},8,["class"])),[[hr,!e.showClearBtn]]):ce("v-if",!0),e.showClearBtn&&e.clearIcon?(N(),he(l,{key:1,class:H([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:it(e.handleClear,["prevent","stop"])},{default:le(()=>[(N(),he(Ft(e.clearIcon)))]),_:1},8,["class","onClick"])):ce("v-if",!0),e.validateState&&e.validateIcon?(N(),he(l,{key:2,class:H([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:le(()=>[(N(),he(Ft(e.validateIcon)))]),_:1},8,["class"])):ce("v-if",!0)],2)],2)]),content:le(()=>[J(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:le(d=>[ye(e.$slots,"default",Rs(K2(d)))]),empty:le(()=>[ye(e.$slots,"empty",{},()=>[V("p",{class:H(e.nsSelectV2.e("empty"))},me(e.emptyText?e.emptyText:""),3)])]),_:3},8,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","effect","placement","transition","persistent","onBeforeShow"])],34)),[[f,e.handleClickOutside,e.popperRef]])}var CS=ke(Zat,[["render",rit],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);CS.install=e=>{e.component(CS.name,CS)};const nit=CS,ait=nit,iit=Oe({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),oit=Oe({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),sit=te({name:"ElSkeletonItem"}),lit=te({...sit,props:oit,setup(e){const t=Ce("skeleton");return(r,n)=>(N(),U("div",{class:H([b(t).e("item"),b(t).e(r.variant)])},[r.variant==="image"?(N(),he(b(vUe),{key:0})):ce("v-if",!0)],2))}});var w2=ke(lit,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const uit=te({name:"ElSkeleton"}),cit=te({...uit,props:iit,setup(e,{expose:t}){const r=e,n=Ce("skeleton"),a=sWe(Sn(r,"loading"),r.throttle);return t({uiLoading:a}),(i,o)=>b(a)?(N(),U("div",Ut({key:0,class:[b(n).b(),b(n).is("animated",i.animated)]},i.$attrs),[(N(!0),U(Be,null,ht(i.count,s=>(N(),U(Be,{key:s},[i.loading?ye(i.$slots,"template",{key:s},()=>[J(w2,{class:H(b(n).is("first")),variant:"p"},null,8,["class"]),(N(!0),U(Be,null,ht(i.rows,l=>(N(),he(w2,{key:l,class:H([b(n).e("paragraph"),b(n).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):ce("v-if",!0)],64))),128))],16)):ye(i.$slots,"default",Rs(Ut({key:1},i.$attrs)))}});var fit=ke(cit,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const dit=kt(fit,{SkeletonItem:w2}),hit=Pn(w2),Hne=Symbol("sliderContextKey"),vit=Oe({modelValue:{type:fe([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:Ga,inputSize:Ga,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:fe(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:fe(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:dv,default:"top"},marks:{type:fe(Object)},validateEvent:{type:Boolean,default:!0}}),XM=e=>ct(e)||We(e)&&e.every(ct),pit={[Nt]:XM,[Di]:XM,[ln]:XM},git=(e,t,r)=>{const n=G();return xt(async()=>{e.range?(Array.isArray(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]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),dn(window,"resize",r),await qe(),r()}),{sliderWrapper:n}},mit=e=>F(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((r,n)=>r-n).filter(r=>r<=e.max&&r>=e.min).map(r=>({point:r,position:(r-e.min)*100/(e.max-e.min),mark:e.marks[r]})):[]),yit=(e,t,r)=>{const{form:n,formItem:a}=Vi(),i=yr(),o=G(),s=G(),l={firstButton:o,secondButton:s},u=F(()=>e.disabled||(n==null?void 0:n.disabled)||!1),c=F(()=>Math.min(t.firstValue,t.secondValue)),f=F(()=>Math.max(t.firstValue,t.secondValue)),d=F(()=>e.range?`${100*(f.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),h=F(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),v=F(()=>e.vertical?{height:e.height}:{}),p=F(()=>e.vertical?{height:d.value,bottom:h.value}:{width:d.value,left:h.value}),g=()=>{i.value&&(t.sliderSize=i.value[`client${e.vertical?"Height":"Width"}`])},m=E=>{const D=e.min+E*(e.max-e.min)/100;if(!e.range)return o;let P;return Math.abs(c.value-D)t.secondValue?"firstButton":"secondButton",l[P]},y=E=>{const D=m(E);return D.value.setPosition(E),D},_=E=>{t.firstValue=E,x(e.range?[c.value,f.value]:E)},w=E=>{t.secondValue=E,e.range&&x([c.value,f.value])},x=E=>{r(Nt,E),r(Di,E)},S=async()=>{await qe(),r(ln,e.range?[c.value,f.value]:e.modelValue)},T=E=>{var D,P,L,I,O,R;if(u.value||t.dragging)return;g();let B=0;if(e.vertical){const k=(L=(P=(D=E.touches)==null?void 0:D.item(0))==null?void 0:P.clientY)!=null?L:E.clientY;B=(i.value.getBoundingClientRect().bottom-k)/t.sliderSize*100}else{const k=(R=(O=(I=E.touches)==null?void 0:I.item(0))==null?void 0:O.clientX)!=null?R:E.clientX,z=i.value.getBoundingClientRect().left;B=(k-z)/t.sliderSize*100}if(!(B<0||B>100))return y(B)};return{elFormItem:a,slider:i,firstButton:o,secondButton:s,sliderDisabled:u,minValue:c,maxValue:f,runwayStyle:v,barStyle:p,resetSize:g,setPosition:y,emitChange:S,onSliderWrapperPrevent:E=>{var D,P;((D=l.firstButton.value)!=null&&D.dragging||(P=l.secondButton.value)!=null&&P.dragging)&&E.preventDefault()},onSliderClick:E=>{T(E)&&S()},onSliderDown:async E=>{const D=T(E);D&&(await qe(),D.value.onButtonDown(E))},setFirstValue:_,setSecondValue:w}},{left:_it,down:bit,right:wit,up:Sit,home:xit,end:Ait,pageUp:Tit,pageDown:Cit}=Qe,Eit=(e,t,r)=>{const n=G(),a=G(!1),i=F(()=>t.value instanceof Function),o=F(()=>i.value&&t.value(e.modelValue)||e.modelValue),s=Ni(()=>{r.value&&(a.value=!0)},50),l=Ni(()=>{r.value&&(a.value=!1)},50);return{tooltip:n,tooltipVisible:a,formatValue:o,displayTooltip:s,hideTooltip:l}},Mit=(e,t,r)=>{const{disabled:n,min:a,max:i,step:o,showTooltip:s,precision:l,sliderSize:u,formatTooltip:c,emitChange:f,resetSize:d,updateDragging:h}=Ye(Hne),{tooltip:v,tooltipVisible:p,formatValue:g,displayTooltip:m,hideTooltip:y}=Eit(e,c,s),_=G(),w=F(()=>`${(e.modelValue-a.value)/(i.value-a.value)*100}%`),x=F(()=>e.vertical?{bottom:w.value}:{left:w.value}),S=()=>{t.hovering=!0,m()},T=()=>{t.hovering=!1,t.dragging||y()},A=j=>{n.value||(j.preventDefault(),B(j),window.addEventListener("mousemove",k),window.addEventListener("touchmove",k),window.addEventListener("mouseup",z),window.addEventListener("touchend",z),window.addEventListener("contextmenu",z),_.value.focus())},C=j=>{n.value||(t.newPosition=Number.parseFloat(w.value)+j/(i.value-a.value)*100,$(t.newPosition),f())},M=()=>{C(-o.value)},E=()=>{C(o.value)},D=()=>{C(-o.value*4)},P=()=>{C(o.value*4)},L=()=>{n.value||($(0),f())},I=()=>{n.value||($(100),f())},O=j=>{let X=!0;[_it,bit].includes(j.key)?M():[wit,Sit].includes(j.key)?E():j.key===xit?L():j.key===Ait?I():j.key===Cit?D():j.key===Tit?P():X=!1,X&&j.preventDefault()},R=j=>{let X,Q;return j.type.startsWith("touch")?(Q=j.touches[0].clientY,X=j.touches[0].clientX):(Q=j.clientY,X=j.clientX),{clientX:X,clientY:Q}},B=j=>{t.dragging=!0,t.isClick=!0;const{clientX:X,clientY:Q}=R(j);e.vertical?t.startY=Q:t.startX=X,t.startPosition=Number.parseFloat(w.value),t.newPosition=t.startPosition},k=j=>{if(t.dragging){t.isClick=!1,m(),d();let X;const{clientX:Q,clientY:se}=R(j);e.vertical?(t.currentY=se,X=(t.startY-t.currentY)/u.value*100):(t.currentX=Q,X=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+X,$(t.newPosition)}},z=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||y(),t.isClick||$(t.newPosition),f()},0),window.removeEventListener("mousemove",k),window.removeEventListener("touchmove",k),window.removeEventListener("mouseup",z),window.removeEventListener("touchend",z),window.removeEventListener("contextmenu",z))},$=async j=>{if(j===null||Number.isNaN(+j))return;j<0?j=0:j>100&&(j=100);const X=100/((i.value-a.value)/o.value);let se=Math.round(j/X)*X*(i.value-a.value)*.01+a.value;se=Number.parseFloat(se.toFixed(l.value)),se!==e.modelValue&&r(Nt,se),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await qe(),t.dragging&&m(),v.value.updatePopper()};return Ae(()=>t.dragging,j=>{h(j)}),{disabled:n,button:_,tooltip:v,tooltipVisible:p,showTooltip:s,wrapperStyle:x,formatValue:g,handleMouseEnter:S,handleMouseLeave:T,onButtonDown:A,onKeyDown:O,setPosition:$}},Dit=(e,t,r,n)=>({stops:F(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const o=(e.max-e.min)/e.step,s=100*e.step/(e.max-e.min),l=Array.from({length:o-1}).map((u,c)=>(c+1)*s);return e.range?l.filter(u=>u<100*(r.value-e.min)/(e.max-e.min)||u>100*(n.value-e.min)/(e.max-e.min)):l.filter(u=>u>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:o=>e.vertical?{bottom:`${o}%`}:{left:`${o}%`}}),Pit=(e,t,r,n,a,i)=>{const o=u=>{a(Nt,u),a(Di,u)},s=()=>e.range?![r.value,n.value].every((u,c)=>u===t.oldValue[c]):e.modelValue!==t.oldValue,l=()=>{var u,c;e.min>e.max&&ua("Slider","min should not be greater than max.");const f=e.modelValue;e.range&&Array.isArray(f)?f[1]e.max?o([e.max,e.max]):f[0]e.max?o([f[0],e.max]):(t.firstValue=f[0],t.secondValue=f[1],s()&&(e.validateEvent&&((u=i==null?void 0:i.validate)==null||u.call(i,"change").catch(d=>void 0)),t.oldValue=f.slice())):!e.range&&typeof f=="number"&&!Number.isNaN(f)&&(fe.max?o(e.max):(t.firstValue=f,s()&&(e.validateEvent&&((c=i==null?void 0:i.validate)==null||c.call(i,"change").catch(d=>void 0)),t.oldValue=f)))};l(),Ae(()=>t.dragging,u=>{u||l()}),Ae(()=>e.modelValue,(u,c)=>{t.dragging||Array.isArray(u)&&Array.isArray(c)&&u.every((f,d)=>f===c[d])&&t.firstValue===u[0]&&t.secondValue===u[1]||l()},{deep:!0}),Ae(()=>[e.min,e.max],()=>{l()})},Lit=Oe({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:dv,default:"top"}}),Iit={[Nt]:e=>ct(e)},Rit=["tabindex"],Oit=te({name:"ElSliderButton"}),kit=te({...Oit,props:Lit,emits:Iit,setup(e,{expose:t,emit:r}){const n=e,a=Ce("slider"),i=Ar({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:n.modelValue}),{disabled:o,button:s,tooltip:l,showTooltip:u,tooltipVisible:c,wrapperStyle:f,formatValue:d,handleMouseEnter:h,handleMouseLeave:v,onButtonDown:p,onKeyDown:g,setPosition:m}=Mit(n,i,r),{hovering:y,dragging:_}=Da(i);return t({onButtonDown:p,onKeyDown:g,setPosition:m,hovering:y,dragging:_}),(w,x)=>(N(),U("div",{ref_key:"button",ref:s,class:H([b(a).e("button-wrapper"),{hover:b(y),dragging:b(_)}]),style:Xe(b(f)),tabindex:b(o)?-1:0,onMouseenter:x[0]||(x[0]=(...S)=>b(h)&&b(h)(...S)),onMouseleave:x[1]||(x[1]=(...S)=>b(v)&&b(v)(...S)),onMousedown:x[2]||(x[2]=(...S)=>b(p)&&b(p)(...S)),onTouchstart:x[3]||(x[3]=(...S)=>b(p)&&b(p)(...S)),onFocus:x[4]||(x[4]=(...S)=>b(h)&&b(h)(...S)),onBlur:x[5]||(x[5]=(...S)=>b(v)&&b(v)(...S)),onKeydown:x[6]||(x[6]=(...S)=>b(g)&&b(g)(...S))},[J(b(Bi),{ref_key:"tooltip",ref:l,visible:b(c),placement:w.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":w.tooltipClass,disabled:!b(u),persistent:""},{content:le(()=>[V("span",null,me(b(d)),1)]),default:le(()=>[V("div",{class:H([b(a).e("button"),{hover:b(y),dragging:b(_)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,Rit))}});var $U=ke(kit,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const Nit=Oe({mark:{type:fe([String,Object]),default:void 0}});var Bit=te({name:"ElSliderMarker",props:Nit,setup(e){const t=Ce("slider"),r=F(()=>wt(e.mark)?e.mark:e.mark.label),n=F(()=>wt(e.mark)?void 0:e.mark.style);return()=>et("div",{class:t.e("marks-text"),style:n.value},r.value)}});const Fit=["id","role","aria-label","aria-labelledby"],Vit={key:1},zit=te({name:"ElSlider"}),Hit=te({...zit,props:vit,emits:pit,setup(e,{expose:t,emit:r}){const n=e,a=Ce("slider"),{t:i}=fr(),o=Ar({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:s,slider:l,firstButton:u,secondButton:c,sliderDisabled:f,minValue:d,maxValue:h,runwayStyle:v,barStyle:p,resetSize:g,emitChange:m,onSliderWrapperPrevent:y,onSliderClick:_,onSliderDown:w,setFirstValue:x,setSecondValue:S}=yit(n,o,r),{stops:T,getStopStyle:A}=Dit(n,o,d,h),{inputId:C,isLabeledByFormItem:M}=$f(n,{formItemContext:s}),E=ca(),D=F(()=>n.inputSize||E.value),P=F(()=>n.label||i("el.slider.defaultLabel",{min:n.min,max:n.max})),L=F(()=>n.range?n.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):P.value),I=F(()=>n.formatValueText?n.formatValueText(j.value):`${j.value}`),O=F(()=>n.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),R=F(()=>n.formatValueText?n.formatValueText(X.value):`${X.value}`),B=F(()=>[a.b(),a.m(E.value),a.is("vertical",n.vertical),{[a.m("with-input")]:n.showInput}]),k=mit(n);Pit(n,o,d,h,r,s);const z=F(()=>{const ee=[n.min,n.max,n.step].map(K=>{const Z=`${K}`.split(".")[1];return Z?Z.length:0});return Math.max.apply(null,ee)}),{sliderWrapper:$}=git(n,o,g),{firstValue:j,secondValue:X,sliderSize:Q}=Da(o),se=ee=>{o.dragging=ee};return Wt(Hne,{...Da(n),sliderSize:Q,disabled:f,precision:z,emitChange:m,resetSize:g,updateDragging:se}),t({onSliderClick:_}),(ee,K)=>{var Z,ne;return N(),U("div",{id:ee.range?b(C):void 0,ref_key:"sliderWrapper",ref:$,class:H(b(B)),role:ee.range?"group":void 0,"aria-label":ee.range&&!b(M)?b(P):void 0,"aria-labelledby":ee.range&&b(M)?(Z=b(s))==null?void 0:Z.labelId:void 0,onTouchstart:K[2]||(K[2]=(...re)=>b(y)&&b(y)(...re)),onTouchmove:K[3]||(K[3]=(...re)=>b(y)&&b(y)(...re))},[V("div",{ref_key:"slider",ref:l,class:H([b(a).e("runway"),{"show-input":ee.showInput&&!ee.range},b(a).is("disabled",b(f))]),style:Xe(b(v)),onMousedown:K[0]||(K[0]=(...re)=>b(w)&&b(w)(...re)),onTouchstart:K[1]||(K[1]=(...re)=>b(w)&&b(w)(...re))},[V("div",{class:H(b(a).e("bar")),style:Xe(b(p))},null,6),J($U,{id:ee.range?void 0:b(C),ref_key:"firstButton",ref:u,"model-value":b(j),vertical:ee.vertical,"tooltip-class":ee.tooltipClass,placement:ee.placement,role:"slider","aria-label":ee.range||!b(M)?b(L):void 0,"aria-labelledby":!ee.range&&b(M)?(ne=b(s))==null?void 0:ne.labelId:void 0,"aria-valuemin":ee.min,"aria-valuemax":ee.range?b(X):ee.max,"aria-valuenow":b(j),"aria-valuetext":b(I),"aria-orientation":ee.vertical?"vertical":"horizontal","aria-disabled":b(f),"onUpdate:modelValue":b(x)},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"]),ee.range?(N(),he($U,{key:0,ref_key:"secondButton",ref:c,"model-value":b(X),vertical:ee.vertical,"tooltip-class":ee.tooltipClass,placement:ee.placement,role:"slider","aria-label":b(O),"aria-valuemin":b(j),"aria-valuemax":ee.max,"aria-valuenow":b(X),"aria-valuetext":b(R),"aria-orientation":ee.vertical?"vertical":"horizontal","aria-disabled":b(f),"onUpdate:modelValue":b(S)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):ce("v-if",!0),ee.showStops?(N(),U("div",Vit,[(N(!0),U(Be,null,ht(b(T),(re,ie)=>(N(),U("div",{key:ie,class:H(b(a).e("stop")),style:Xe(b(A)(re))},null,6))),128))])):ce("v-if",!0),b(k).length>0?(N(),U(Be,{key:2},[V("div",null,[(N(!0),U(Be,null,ht(b(k),(re,ie)=>(N(),U("div",{key:ie,style:Xe(b(A)(re.position)),class:H([b(a).e("stop"),b(a).e("marks-stop")])},null,6))),128))]),V("div",{class:H(b(a).e("marks"))},[(N(!0),U(Be,null,ht(b(k),(re,ie)=>(N(),he(b(Bit),{key:ie,mark:re.mark,style:Xe(b(A)(re.position))},null,8,["mark","style"]))),128))],2)],64)):ce("v-if",!0)],38),ee.showInput&&!ee.range?(N(),he(b(vne),{key:0,ref:"input","model-value":b(j),class:H(b(a).e("input")),step:ee.step,disabled:b(f),controls:ee.showInputControls,min:ee.min,max:ee.max,debounce:ee.debounce,size:b(D),"onUpdate:modelValue":b(x),onChange:b(m)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):ce("v-if",!0)],42,Fit)}}});var Git=ke(Hit,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const Uit=kt(Git),$it=Oe({prefixCls:{type:String}}),WU=te({name:"ElSpaceItem",props:$it,setup(e,{slots:t}){const r=Ce("space"),n=F(()=>`${e.prefixCls||r.b()}__item`);return()=>et("div",{class:n.value},ye(t,"default"))}}),YU={small:8,default:12,large:16};function Wit(e){const t=Ce("space"),r=F(()=>[t.b(),t.m(e.direction),e.class]),n=G(0),a=G(0),i=F(()=>{const s=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${a.value}px`}:{},l={alignItems:e.alignment};return[s,l,e.style]}),o=F(()=>{const s={paddingBottom:`${a.value}px`,marginRight:`${n.value}px`},l=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[s,l]});return xo(()=>{const{size:s="small",wrap:l,direction:u,fill:c}=e;if(We(s)){const[f=0,d=0]=s;n.value=f,a.value=d}else{let f;ct(s)?f=s:f=YU[s||"small"]||YU.small,(l||c)&&u==="horizontal"?n.value=a.value=f:u==="horizontal"?(n.value=f,a.value=0):(a.value=f,n.value=0)}}),{classes:r,containerStyle:i,itemStyle:o}}const Yit=Oe({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:fe([String,Object,Array]),default:""},style:{type:fe([String,Array,Object]),default:""},alignment:{type:fe(String),default:"center"},prefixCls:{type:String},spacer:{type:fe([Object,String,Number,Array]),default:null,validator:e=>hn(e)||ct(e)||wt(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:tu,validator:e=>ct(e)||We(e)&&e.length===2&&e.every(ct)}}),jit=te({name:"ElSpace",props:Yit,setup(e,{slots:t}){const{classes:r,containerStyle:n,itemStyle:a}=Wit(e);function i(o,s="",l=[]){const{prefixCls:u}=e;return o.forEach((c,f)=>{ZL(c)?We(c.children)&&c.children.forEach((d,h)=>{ZL(d)&&We(d.children)?i(d.children,`${s+h}-`,l):l.push(J(WU,{style:a.value,prefixCls:u,key:`nested-${s+h}`},{default:()=>[d]},$o.PROPS|$o.STYLE,["style","prefixCls"]))}):YUe(c)&&l.push(J(WU,{style:a.value,prefixCls:u,key:`LoopKey${s+f}`},{default:()=>[c]},$o.PROPS|$o.STYLE,["style","prefixCls"]))}),l}return()=>{var o;const{spacer:s,direction:l}=e,u=ye(t,"default",{key:0},()=>[]);if(((o=u.children)!=null?o:[]).length===0)return null;if(We(u.children)){let c=i(u.children);if(s){const f=c.length-1;c=c.reduce((d,h,v)=>{const p=[...d,h];return v!==f&&p.push(J("span",{style:[a.value,l==="vertical"?"width: 100%":null],key:v},[hn(s)?s:nr(s,$o.TEXT)],$o.STYLE)),p},[])}return J("div",{class:r.value,style:n.value},c,$o.STYLE|$o.CLASS)}return u.children}}}),Kit=kt(jit),Xit=Oe({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:fe([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:fe([String,Object,Array])}}),Zit=te({name:"ElStatistic"}),qit=te({...Zit,props:Xit,setup(e,{expose:t}){const r=e,n=Ce("statistic"),a=F(()=>{const{value:i,formatter:o,precision:s,decimalSeparator:l,groupSeparator:u}=r;if(dt(o))return o(i);if(!ct(i))return i;let[c,f=""]=String(i).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}),(i,o)=>(N(),U("div",{class:H(b(n).b())},[i.$slots.title||i.title?(N(),U("div",{key:0,class:H(b(n).e("head"))},[ye(i.$slots,"title",{},()=>[nr(me(i.title),1)])],2)):ce("v-if",!0),V("div",{class:H(b(n).e("content"))},[i.$slots.prefix||i.prefix?(N(),U("div",{key:0,class:H(b(n).e("prefix"))},[ye(i.$slots,"prefix",{},()=>[V("span",null,me(i.prefix),1)])],2)):ce("v-if",!0),V("span",{class:H(b(n).e("number")),style:Xe(i.valueStyle)},me(b(a)),7),i.$slots.suffix||i.suffix?(N(),U("div",{key:1,class:H(b(n).e("suffix"))},[ye(i.$slots,"suffix",{},()=>[V("span",null,me(i.suffix),1)])],2)):ce("v-if",!0)],2)],2))}});var Qit=ke(qit,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const Gne=kt(Qit),Jit=Oe({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:fe([Number,Object]),default:0},valueStyle:{type:fe([String,Object,Array])}}),eot={finish:()=>!0,[ln]:e=>ct(e)},tot=[["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]],jU=e=>ct(e)?new Date(e).getTime():e.valueOf(),KU=(e,t)=>{let r=e;const n=/\[([^\]]*)]/g;return tot.reduce((i,[o,s])=>{const l=new RegExp(`${o}+(?![^\\[\\]]*\\])`,"g");if(l.test(i)){const u=Math.floor(r/s);return r-=u*s,i.replace(l,c=>String(u).padStart(c.length,"0"))}return i},t).replace(n,"$1")},rot=te({name:"ElCountdown"}),not=te({...rot,props:Jit,emits:eot,setup(e,{expose:t,emit:r}){const n=e;let a;const i=G(jU(n.value)-Date.now()),o=F(()=>KU(i.value,n.format)),s=c=>KU(c,n.format),l=()=>{a&&(wT(a),a=void 0)},u=()=>{const c=jU(n.value),f=()=>{let d=c-Date.now();r("change",d),d<=0?(d=0,l(),r("finish")):a=cg(f),i.value=d};a=cg(f)};return Ae(()=>[n.value,n.format],()=>{l(),u()},{immediate:!0}),un(()=>{l()}),t({displayValue:o}),(c,f)=>(N(),he(b(Gne),{value:i.value,title:c.title,prefix:c.prefix,suffix:c.suffix,"value-style":c.valueStyle,formatter:s},Bl({_:2},[ht(c.$slots,(d,h)=>({name:h,fn:le(()=>[ye(c.$slots,h)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var aot=ke(not,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const iot=kt(aot),oot=Oe({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"}}),sot={[ln]:(e,t)=>[e,t].every(ct)},lot=te({name:"ElSteps"}),uot=te({...lot,props:oot,emits:sot,setup(e,{emit:t}){const r=e,n=Ce("steps"),{children:a,addChild:i,removeChild:o}=_3(It(),"ElStep");return Ae(a,()=>{a.value.forEach((s,l)=>{s.setIndex(l)})}),Wt("ElSteps",{props:r,steps:a,addStep:i,removeStep:o}),Ae(()=>r.active,(s,l)=>{t(ln,s,l)}),(s,l)=>(N(),U("div",{class:H([b(n).b(),b(n).m(s.simple?"simple":s.direction)])},[ye(s.$slots,"default")],2))}});var cot=ke(uot,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const fot=Oe({title:{type:String,default:""},icon:{type:Zr},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),dot=te({name:"ElStep"}),hot=te({...dot,props:fot,setup(e){const t=e,r=Ce("step"),n=G(-1),a=G({}),i=G(""),o=Ye("ElSteps"),s=It();xt(()=>{Ae([()=>o.props.active,()=>o.props.processStatus,()=>o.props.finishStatus],([S])=>{w(S)},{immediate:!0})}),un(()=>{o.removeStep(x.uid)});const l=F(()=>t.status||i.value),u=F(()=>{const S=o.steps.value[n.value-1];return S?S.currentStatus:"wait"}),c=F(()=>o.props.alignCenter),f=F(()=>o.props.direction==="vertical"),d=F(()=>o.props.simple),h=F(()=>o.steps.value.length),v=F(()=>{var S;return((S=o.steps.value[h.value-1])==null?void 0:S.uid)===(s==null?void 0:s.uid)}),p=F(()=>d.value?"":o.props.space),g=F(()=>[r.b(),r.is(d.value?"simple":o.props.direction),r.is("flex",v.value&&!p.value&&!c.value),r.is("center",c.value&&!f.value&&!d.value)]),m=F(()=>{const S={flexBasis:ct(p.value)?`${p.value}px`:p.value?p.value:`${100/(h.value-(c.value?0:1))}%`};return f.value||v.value&&(S.maxWidth=`${100/h.value}%`),S}),y=S=>{n.value=S},_=S=>{const T=S==="wait",A={transitionDelay:`${T?"-":""}${150*n.value}ms`},C=S===o.props.processStatus||T?0:100;A.borderWidth=C&&!d.value?"1px":0,A[o.props.direction==="vertical"?"height":"width"]=`${C}%`,a.value=A},w=S=>{S>n.value?i.value=o.props.finishStatus:S===n.value&&u.value!=="error"?i.value=o.props.processStatus:i.value="wait";const T=o.steps.value[n.value-1];T&&T.calcProgress(i.value)},x=Ar({uid:s.uid,currentStatus:l,setIndex:y,calcProgress:_});return o.addStep(x),(S,T)=>(N(),U("div",{style:Xe(b(m)),class:H(b(g))},[ce(" icon & line "),V("div",{class:H([b(r).e("head"),b(r).is(b(l))])},[b(d)?ce("v-if",!0):(N(),U("div",{key:0,class:H(b(r).e("line"))},[V("i",{class:H(b(r).e("line-inner")),style:Xe(a.value)},null,6)],2)),V("div",{class:H([b(r).e("icon"),b(r).is(S.icon||S.$slots.icon?"icon":"text")])},[ye(S.$slots,"icon",{},()=>[S.icon?(N(),he(b(Ze),{key:0,class:H(b(r).e("icon-inner"))},{default:le(()=>[(N(),he(Ft(S.icon)))]),_:1},8,["class"])):b(l)==="success"?(N(),he(b(Ze),{key:1,class:H([b(r).e("icon-inner"),b(r).is("status")])},{default:le(()=>[J(b(P1))]),_:1},8,["class"])):b(l)==="error"?(N(),he(b(Ze),{key:2,class:H([b(r).e("icon-inner"),b(r).is("status")])},{default:le(()=>[J(b(el))]),_:1},8,["class"])):b(d)?ce("v-if",!0):(N(),U("div",{key:3,class:H(b(r).e("icon-inner"))},me(n.value+1),3))])],2)],2),ce(" title & description "),V("div",{class:H(b(r).e("main"))},[V("div",{class:H([b(r).e("title"),b(r).is(b(l))])},[ye(S.$slots,"title",{},()=>[nr(me(S.title),1)])],2),b(d)?(N(),U("div",{key:0,class:H(b(r).e("arrow"))},null,2)):(N(),U("div",{key:1,class:H([b(r).e("description"),b(r).is(b(l))])},[ye(S.$slots,"description",{},()=>[nr(me(S.description),1)])],2))],2)],6))}});var Une=ke(hot,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const vot=kt(cot,{Step:Une}),pot=Pn(Une),got=Oe({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:r3},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:Zr},activeActionIcon:{type:Zr},activeIcon:{type:Zr},inactiveIcon:{type:Zr},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:fe(Function)},id:String,tabindex:{type:[String,Number]},value:{type:[Boolean,String,Number],default:!1},label:{type:String,default:void 0}}),mot={[Nt]:e=>la(e)||wt(e)||ct(e),[ln]:e=>la(e)||wt(e)||ct(e),[Di]:e=>la(e)||wt(e)||ct(e)},yot=["onClick"],_ot=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"],bot=["aria-hidden"],wot=["aria-hidden"],Sot=["aria-hidden"],OI="ElSwitch",xot=te({name:OI}),Aot=te({...xot,props:got,emits:mot,setup(e,{expose:t,emit:r}){const n=e,a=It(),{formItem:i}=Vi(),o=ca(),s=Ce("switch");(A=>{A.forEach(C=>{Ul({from:C[0],replacement:C[1],scope:OI,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},F(()=>{var M;return!!((M=a.vnode.props)!=null&&M[C[2]])}))})})([['"value"','"model-value" or "v-model"',"value"],['"active-color"',"CSS var `--el-switch-on-color`","activeColor"],['"inactive-color"',"CSS var `--el-switch-off-color`","inactiveColor"],['"border-color"',"CSS var `--el-switch-border-color`","borderColor"]]);const{inputId:u}=$f(n,{formItemContext:i}),c=ho(F(()=>n.loading)),f=G(n.modelValue!==!1),d=G(),h=G(),v=F(()=>[s.b(),s.m(o.value),s.is("disabled",c.value),s.is("checked",_.value)]),p=F(()=>[s.e("label"),s.em("label","left"),s.is("active",!_.value)]),g=F(()=>[s.e("label"),s.em("label","right"),s.is("active",_.value)]),m=F(()=>({width:Hn(n.width)}));Ae(()=>n.modelValue,()=>{f.value=!0}),Ae(()=>n.value,()=>{f.value=!1});const y=F(()=>f.value?n.modelValue:n.value),_=F(()=>y.value===n.activeValue);[n.activeValue,n.inactiveValue].includes(y.value)||(r(Nt,n.inactiveValue),r(ln,n.inactiveValue),r(Di,n.inactiveValue)),Ae(_,A=>{var C;d.value.checked=A,n.validateEvent&&((C=i==null?void 0:i.validate)==null||C.call(i,"change").catch(M=>void 0))});const w=()=>{const A=_.value?n.inactiveValue:n.activeValue;r(Nt,A),r(ln,A),r(Di,A),qe(()=>{d.value.checked=_.value})},x=()=>{if(c.value)return;const{beforeChange:A}=n;if(!A){w();return}const C=A();[p0(C),la(C)].includes(!0)||ua(OI,"beforeChange must return type `Promise` or `boolean`"),p0(C)?C.then(E=>{E&&w()}).catch(E=>{}):C&&w()},S=F(()=>s.cssVarBlock({...n.activeColor?{"on-color":n.activeColor}:null,...n.inactiveColor?{"off-color":n.inactiveColor}:null,...n.borderColor?{"border-color":n.borderColor}:null})),T=()=>{var A,C;(C=(A=d.value)==null?void 0:A.focus)==null||C.call(A)};return xt(()=>{d.value.checked=_.value}),t({focus:T,checked:_}),(A,C)=>(N(),U("div",{class:H(b(v)),style:Xe(b(S)),onClick:it(x,["prevent"])},[V("input",{id:b(u),ref_key:"input",ref:d,class:H(b(s).e("input")),type:"checkbox",role:"switch","aria-checked":b(_),"aria-disabled":b(c),"aria-label":A.label,name:A.name,"true-value":A.activeValue,"false-value":A.inactiveValue,disabled:b(c),tabindex:A.tabindex,onChange:w,onKeydown:dr(x,["enter"])},null,42,_ot),!A.inlinePrompt&&(A.inactiveIcon||A.inactiveText)?(N(),U("span",{key:0,class:H(b(p))},[A.inactiveIcon?(N(),he(b(Ze),{key:0},{default:le(()=>[(N(),he(Ft(A.inactiveIcon)))]),_:1})):ce("v-if",!0),!A.inactiveIcon&&A.inactiveText?(N(),U("span",{key:1,"aria-hidden":b(_)},me(A.inactiveText),9,bot)):ce("v-if",!0)],2)):ce("v-if",!0),V("span",{ref_key:"core",ref:h,class:H(b(s).e("core")),style:Xe(b(m))},[A.inlinePrompt?(N(),U("div",{key:0,class:H(b(s).e("inner"))},[A.activeIcon||A.inactiveIcon?(N(),he(b(Ze),{key:0,class:H(b(s).is("icon"))},{default:le(()=>[(N(),he(Ft(b(_)?A.activeIcon:A.inactiveIcon)))]),_:1},8,["class"])):A.activeText||A.inactiveText?(N(),U("span",{key:1,class:H(b(s).is("text")),"aria-hidden":!b(_)},me(b(_)?A.activeText:A.inactiveText),11,wot)):ce("v-if",!0)],2)):ce("v-if",!0),V("div",{class:H(b(s).e("action"))},[A.loading?(N(),he(b(Ze),{key:0,class:H(b(s).is("loading"))},{default:le(()=>[J(b(Hf))]),_:1},8,["class"])):A.activeActionIcon&&b(_)?(N(),he(b(Ze),{key:1},{default:le(()=>[(N(),he(Ft(A.activeActionIcon)))]),_:1})):A.inactiveActionIcon&&!b(_)?(N(),he(b(Ze),{key:2},{default:le(()=>[(N(),he(Ft(A.inactiveActionIcon)))]),_:1})):ce("v-if",!0)],2)],6),!A.inlinePrompt&&(A.activeIcon||A.activeText)?(N(),U("span",{key:1,class:H(b(g))},[A.activeIcon?(N(),he(b(Ze),{key:0},{default:le(()=>[(N(),he(Ft(A.activeIcon)))]),_:1})):ce("v-if",!0),!A.activeIcon&&A.activeText?(N(),U("span",{key:1,"aria-hidden":!b(_)},me(A.activeText),9,Sot)):ce("v-if",!0)],2)):ce("v-if",!0)],14,yot))}});var Tot=ke(Aot,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const Cot=kt(Tot);/*! * escape-html * Copyright(c) 2012-2013 TJ Holowaychuk * Copyright(c) 2015 Andreas Lubbe * Copyright(c) 2015 Tiancheng "Timothy" Gu * MIT Licensed */var Eot=/["'&<>]/,Mot=Dot;function Dot(e){var t=""+e,r=Eot.exec(t);if(!r)return t;var n,a="",i=0,o=0;for(i=r.index;itypeof u=="string"?gn(s,u):u(s,l,e))):(t!=="$key"&&Vt(s)&&"$value"in s&&(s=s.$value),[Vt(s)?gn(s,t):s])},o=function(s,l){if(n)return n(s.value,l.value);for(let u=0,c=s.key.length;ul.key[u])return 1}return 0};return e.map((s,l)=>({value:s,index:l,key:i?i(s,l):null})).sort((s,l)=>{let u=o(s,l);return u||(u=s.index-l.index),u*+r}).map(s=>s.value)},$ne=function(e,t){let r=null;return e.columns.forEach(n=>{n.id===t&&(r=n)}),r},Iot=function(e,t){let r=null;for(let n=0;n{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const r=t.split(".");let n=e;for(const a of r)n=n[a];return`${n}`}else if(typeof t=="function")return t.call(null,e)},uh=function(e,t){const r={};return(e||[]).forEach((n,a)=>{r[Ka(n,t)]={row:n,index:a}}),r};function Rot(e,t){const r={};let n;for(n in e)r[n]=e[n];for(n in t)if(or(t,n)){const a=t[n];typeof a<"u"&&(r[n]=a)}return r}function U3(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function Wne(e){return e===""||e!==void 0&&(e=U3(e),Number.isNaN(e)&&(e=80)),e}function Oot(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function kot(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function u0(e,t,r){let n=!1;const a=e.indexOf(t),i=a!==-1,o=s=>{s==="add"?e.push(t):e.splice(a,1),n=!0,We(t.children)&&t.children.forEach(l=>{u0(e,l,r??!i)})};return la(r)?r&&!i?o("add"):!r&&i&&o("remove"):o(i?"remove":"add"),n}function Not(e,t,r="children",n="hasChildren"){const a=o=>!(Array.isArray(o)&&o.length);function i(o,s,l){t(o,s,l),s.forEach(u=>{if(u[n]){t(u,null,l+1);return}const c=u[r];a(c)||i(u,c,l+1)})}e.forEach(o=>{if(o[n]){t(o,null,0);return}const s=o[r];a(s)||i(o,s,0)})}let hu;function Bot(e,t,r,n,a){a=Cee({enterable:!0,showArrow:!0},a);const i=e==null?void 0:e.dataset.prefix,o=e==null?void 0:e.querySelector(`.${i}-scrollbar__wrap`);function s(){const g=a.effect==="light",m=document.createElement("div");return m.className=[`${i}-popper`,g?"is-light":"is-dark",a.popperClass||""].join(" "),r=Pot(r),m.innerHTML=r,m.style.zIndex=String(n()),e==null||e.appendChild(m),m}function l(){const g=document.createElement("div");return g.className=`${i}-popper__arrow`,g}function u(){c&&c.update()}hu==null||hu(),hu=()=>{try{c&&c.destroy(),h&&(e==null||e.removeChild(h)),t.removeEventListener("mouseenter",f),t.removeEventListener("mouseleave",d),o==null||o.removeEventListener("scroll",hu),hu=void 0}catch{}};let c=null,f=u,d=hu;a.enterable&&({onOpen:f,onClose:d}=ote({showAfter:a.showAfter,hideAfter:a.hideAfter,open:u,close:hu}));const h=s();h.onmouseenter=f,h.onmouseleave=d;const v=[];if(a.offset&&v.push({name:"offset",options:{offset:[0,a.offset]}}),a.showArrow){const g=h.appendChild(l());v.push({name:"arrow",options:{element:g,padding:10}})}const p=a.popperOptions||{};return c=nte(t,h,{placement:a.placement||"top",strategy:"fixed",...p,modifiers:p.modifiers?v.concat(p.modifiers):v}),t.addEventListener("mouseenter",f),t.addEventListener("mouseleave",d),o==null||o.addEventListener("scroll",hu),c}function Yne(e){return e.children?fGe(e.children,Yne):[e]}function ZU(e,t){return e+t.colSpan}const jne=(e,t,r,n)=>{let a=0,i=e;const o=r.states.columns.value;if(n){const l=Yne(n[e]);a=o.slice(0,o.indexOf(l[0])).reduce(ZU,0),i=a+l.reduce(ZU,0)-1}else a=e;let s;switch(t){case"left":i=o.length-r.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:i=o.length-r.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:a,after:i}:{}},$3=(e,t,r,n,a,i=0)=>{const o=[],{direction:s,start:l,after:u}=jne(t,r,n,a);if(s){const c=s==="left";o.push(`${e}-fixed-column--${s}`),c&&u+i===n.states.fixedLeafColumnsLength.value-1?o.push("is-last-column"):!c&&l-i===n.states.columns.value.length-n.states.rightFixedLeafColumnsLength.value&&o.push("is-first-column")}return o};function qU(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const W3=(e,t,r,n)=>{const{direction:a,start:i=0,after:o=0}=jne(e,t,r,n);if(!a)return;const s={},l=a==="left",u=r.states.columns.value;return l?s.left=u.slice(0,i).reduce(qU,0):s.right=u.slice(o+1).reverse().reduce(qU,0),s},yg=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function Fot(e){const t=It(),r=G(!1),n=G([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(r.value)n.value=l.slice();else if(u){const c=uh(n.value,u);n.value=l.reduce((f,d)=>{const h=Ka(d,u);return c[h]&&f.push(d),f},[])}else n.value=[]},toggleRowExpansion:(l,u)=>{u0(n.value,l,u)&&t.emit("expand-change",l,n.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],c=e.rowKey.value,f=uh(u,c);n.value=l.reduce((d,h)=>{const v=f[h];return v&&d.push(v.row),d},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!uh(n.value,u)[Ka(l,u)]:n.value.includes(l)},states:{expandRows:n,defaultExpandAll:r}}}function Vot(e){const t=It(),r=G(null),n=G(null),a=u=>{t.store.assertRowKey(),r.value=u,o(u)},i=()=>{r.value=null},o=u=>{const{data:c,rowKey:f}=e;let d=null;f.value&&(d=(b(c)||[]).find(h=>Ka(h,f.value)===u)),n.value=d,t.emit("current-change",n.value,null)};return{setCurrentRowKey:a,restoreCurrentRowKey:i,setCurrentRowByKey:o,updateCurrentRow:u=>{const c=n.value;if(u&&u!==c){n.value=u,t.emit("current-change",n.value,c);return}!u&&c&&(n.value=null,t.emit("current-change",null,c))},updateCurrentRowData:()=>{const u=e.rowKey.value,c=e.data.value||[],f=n.value;if(!c.includes(f)&&f){if(u){const d=Ka(f,u);o(d)}else n.value=null;n.value===null&&t.emit("current-change",null,f)}else r.value&&(o(r.value),i())},states:{_currentRowKey:r,currentRow:n}}}function zot(e){const t=G([]),r=G({}),n=G(16),a=G(!1),i=G({}),o=G("hasChildren"),s=G("children"),l=It(),u=F(()=>{if(!e.rowKey.value)return{};const m=e.data.value||[];return f(m)}),c=F(()=>{const m=e.rowKey.value,y=Object.keys(i.value),_={};return y.length&&y.forEach(w=>{if(i.value[w].length){const x={children:[]};i.value[w].forEach(S=>{const T=Ka(S,m);x.children.push(T),S[o.value]&&!_[T]&&(_[T]={children:[]})}),_[w]=x}}),_}),f=m=>{const y=e.rowKey.value,_={};return Not(m,(w,x,S)=>{const T=Ka(w,y);Array.isArray(x)?_[T]={children:x.map(A=>Ka(A,y)),level:S}:a.value&&(_[T]={children:[],lazy:!0,level:S})},s.value,o.value),_},d=(m=!1,y=(_=>(_=l.store)==null?void 0:_.states.defaultExpandAll.value)())=>{var _;const w=u.value,x=c.value,S=Object.keys(w),T={};if(S.length){const A=b(r),C=[],M=(D,P)=>{if(m)return t.value?y||t.value.includes(P):!!(y||D!=null&&D.expanded);{const L=y||t.value&&t.value.includes(P);return!!(D!=null&&D.expanded||L)}};S.forEach(D=>{const P=A[D],L={...w[D]};if(L.expanded=M(P,D),L.lazy){const{loaded:I=!1,loading:O=!1}=P||{};L.loaded=!!I,L.loading=!!O,C.push(D)}T[D]=L});const E=Object.keys(x);a.value&&E.length&&C.length&&E.forEach(D=>{const P=A[D],L=x[D].children;if(C.includes(D)){if(T[D].children.length!==0)throw new Error("[ElTable]children must be an empty array.");T[D].children=L}else{const{loaded:I=!1,loading:O=!1}=P||{};T[D]={lazy:!0,loaded:!!I,loading:!!O,expanded:M(P,D),children:L,level:""}}})}r.value=T,(_=l.store)==null||_.updateTableScrollY()};Ae(()=>t.value,()=>{d(!0)}),Ae(()=>u.value,()=>{d()}),Ae(()=>c.value,()=>{d()});const h=m=>{t.value=m,d()},v=(m,y)=>{l.store.assertRowKey();const _=e.rowKey.value,w=Ka(m,_),x=w&&r.value[w];if(w&&x&&"expanded"in x){const S=x.expanded;y=typeof y>"u"?!x.expanded:y,r.value[w].expanded=y,S!==y&&l.emit("expand-change",m,y),l.store.updateTableScrollY()}},p=m=>{l.store.assertRowKey();const y=e.rowKey.value,_=Ka(m,y),w=r.value[_];a.value&&w&&"loaded"in w&&!w.loaded?g(m,_,w):v(m,void 0)},g=(m,y,_)=>{const{load:w}=l.props;w&&!r.value[y].loaded&&(r.value[y].loading=!0,w(m,_,x=>{if(!Array.isArray(x))throw new TypeError("[ElTable] data must be an array");r.value[y].loading=!1,r.value[y].loaded=!0,r.value[y].expanded=!0,x.length&&(i.value[y]=x),l.emit("expand-change",m,!0)}))};return{loadData:g,loadOrToggle:p,toggleTreeExpansion:v,updateTreeExpandKeys:h,updateTreeData:d,normalize:f,states:{expandRowKeys:t,treeData:r,indent:n,lazy:a,lazyTreeNodeMap:i,lazyColumnIdentifier:o,childrenColumnName:s}}}const Hot=(e,t)=>{const r=t.sortingColumn;return!r||typeof r.sortable=="string"?e:Lot(e,t.sortProp,t.sortOrder,r.sortMethod,r.sortBy)},ES=e=>{const t=[];return e.forEach(r=>{r.children&&r.children.length>0?t.push.apply(t,ES(r.children)):t.push(r)}),t};function Got(){var e;const t=It(),{size:r}=Da((e=t.proxy)==null?void 0:e.$props),n=G(null),a=G([]),i=G([]),o=G(!1),s=G([]),l=G([]),u=G([]),c=G([]),f=G([]),d=G([]),h=G([]),v=G([]),p=[],g=G(0),m=G(0),y=G(0),_=G(!1),w=G([]),x=G(!1),S=G(!1),T=G(null),A=G({}),C=G(null),M=G(null),E=G(null),D=G(null),P=G(null);Ae(a,()=>t.state&&R(!1),{deep:!0});const L=()=>{if(!n.value)throw new Error("[ElTable] prop row-key is required")},I=tt=>{var be;(be=tt.children)==null||be.forEach(pe=>{pe.fixed=tt.fixed,I(pe)})},O=()=>{s.value.forEach(Me=>{I(Me)}),c.value=s.value.filter(Me=>Me.fixed===!0||Me.fixed==="left"),f.value=s.value.filter(Me=>Me.fixed==="right"),c.value.length>0&&s.value[0]&&s.value[0].type==="selection"&&!s.value[0].fixed&&(s.value[0].fixed=!0,c.value.unshift(s.value[0]));const tt=s.value.filter(Me=>!Me.fixed);l.value=[].concat(c.value).concat(tt).concat(f.value);const be=ES(tt),pe=ES(c.value),de=ES(f.value);g.value=be.length,m.value=pe.length,y.value=de.length,u.value=[].concat(pe).concat(be).concat(de),o.value=c.value.length>0||f.value.length>0},R=(tt,be=!1)=>{tt&&O(),be?t.state.doLayout():t.state.debouncedUpdateLayout()},B=tt=>w.value.includes(tt),k=()=>{_.value=!1,w.value.length&&(w.value=[],t.emit("selection-change",[]))},z=()=>{let tt;if(n.value){tt=[];const be=uh(w.value,n.value),pe=uh(a.value,n.value);for(const de in be)or(be,de)&&!pe[de]&&tt.push(be[de].row)}else tt=w.value.filter(be=>!a.value.includes(be));if(tt.length){const be=w.value.filter(pe=>!tt.includes(pe));w.value=be,t.emit("selection-change",be.slice())}},$=()=>(w.value||[]).slice(),j=(tt,be=void 0,pe=!0)=>{if(u0(w.value,tt,be)){const Me=(w.value||[]).slice();pe&&t.emit("select",Me,tt),t.emit("selection-change",Me)}},X=()=>{var tt,be;const pe=S.value?!_.value:!(_.value||w.value.length);_.value=pe;let de=!1,Me=0;const ae=(be=(tt=t==null?void 0:t.store)==null?void 0:tt.states)==null?void 0:be.rowKey.value;a.value.forEach((Ge,St)=>{const Kt=St+Me;T.value?T.value.call(null,Ge,Kt)&&u0(w.value,Ge,pe)&&(de=!0):u0(w.value,Ge,pe)&&(de=!0),Me+=ee(Ka(Ge,ae))}),de&&t.emit("selection-change",w.value?w.value.slice():[]),t.emit("select-all",w.value)},Q=()=>{const tt=uh(w.value,n.value);a.value.forEach(be=>{const pe=Ka(be,n.value),de=tt[pe];de&&(w.value[de.index]=be)})},se=()=>{var tt,be,pe;if(((tt=a.value)==null?void 0:tt.length)===0){_.value=!1;return}let de;n.value&&(de=uh(w.value,n.value));const Me=function(Kt){return de?!!de[Ka(Kt,n.value)]:w.value.includes(Kt)};let ae=!0,Ge=0,St=0;for(let Kt=0,Xn=(a.value||[]).length;Kt{var be;if(!t||!t.store)return 0;const{treeData:pe}=t.store.states;let de=0;const Me=(be=pe.value[tt])==null?void 0:be.children;return Me&&(de+=Me.length,Me.forEach(ae=>{de+=ee(ae)})),de},K=(tt,be)=>{Array.isArray(tt)||(tt=[tt]);const pe={};return tt.forEach(de=>{A.value[de.id]=be,pe[de.columnKey||de.id]=be}),pe},Z=(tt,be,pe)=>{M.value&&M.value!==tt&&(M.value.order=null),M.value=tt,E.value=be,D.value=pe},ne=()=>{let tt=b(i);Object.keys(A.value).forEach(be=>{const pe=A.value[be];if(!pe||pe.length===0)return;const de=$ne({columns:u.value},be);de&&de.filterMethod&&(tt=tt.filter(Me=>pe.some(ae=>de.filterMethod.call(null,ae,Me,de))))}),C.value=tt},re=()=>{a.value=Hot(C.value,{sortingColumn:M.value,sortProp:E.value,sortOrder:D.value})},ie=(tt=void 0)=>{tt&&tt.filter||ne(),re()},Y=tt=>{const{tableHeaderRef:be}=t.refs;if(!be)return;const pe=Object.assign({},be.filterPanels),de=Object.keys(pe);if(de.length)if(typeof tt=="string"&&(tt=[tt]),Array.isArray(tt)){const Me=tt.map(ae=>Iot({columns:u.value},ae));de.forEach(ae=>{const Ge=Me.find(St=>St.id===ae);Ge&&(Ge.filteredValue=[])}),t.store.commit("filterChange",{column:Me,values:[],silent:!0,multi:!0})}else de.forEach(Me=>{const ae=u.value.find(Ge=>Ge.id===Me);ae&&(ae.filteredValue=[])}),A.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},q=()=>{M.value&&(Z(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:oe,toggleRowExpansion:ve,updateExpandRows:_e,states:ge,isRowExpanded:Le}=Fot({data:a,rowKey:n}),{updateTreeExpandKeys:Se,toggleTreeExpansion:xe,updateTreeData:Te,loadOrToggle:Ve,states:He}=zot({data:a,rowKey:n}),{updateCurrentRowData:je,updateCurrentRow:Pe,setCurrentRowKey:Ue,states:gt}=Vot({data:a,rowKey:n});return{assertRowKey:L,updateColumns:O,scheduleLayout:R,isSelected:B,clearSelection:k,cleanSelection:z,getSelectionRows:$,toggleRowSelection:j,_toggleAllSelection:X,toggleAllSelection:null,updateSelectionByRowKey:Q,updateAllSelected:se,updateFilters:K,updateCurrentRow:Pe,updateSort:Z,execFilter:ne,execSort:re,execQuery:ie,clearFilter:Y,clearSort:q,toggleRowExpansion:ve,setExpandRowKeysAdapter:tt=>{oe(tt),Se(tt)},setCurrentRowKey:Ue,toggleRowExpansionAdapter:(tt,be)=>{u.value.some(({type:de})=>de==="expand")?ve(tt,be):xe(tt,be)},isRowExpanded:Le,updateExpandRows:_e,updateCurrentRowData:je,loadOrToggle:Ve,updateTreeData:Te,states:{tableSize:r,rowKey:n,data:a,_data:i,isComplex:o,_columns:s,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:f,leafColumns:d,fixedLeafColumns:h,rightFixedLeafColumns:v,updateOrderFns:p,leafColumnsLength:g,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:y,isAllSelected:_,selection:w,reserveSelection:x,selectOnIndeterminate:S,selectable:T,filters:A,filteredData:C,sortingColumn:M,sortProp:E,sortOrder:D,hoverRow:P,...ge,...He,...gt}}}function kI(e,t){return e.map(r=>{var n;return r.id===t.id?t:((n=r.children)!=null&&n.length&&(r.children=kI(r.children,t)),r)})}function NI(e){e.forEach(t=>{var r,n;t.no=(r=t.getColumnIndex)==null?void 0:r.call(t),(n=t.children)!=null&&n.length&&NI(t.children)}),e.sort((t,r)=>t.no-r.no)}function Uot(){const e=It(),t=Got();return{ns:Ce("table"),...t,mutations:{setData(o,s){const l=b(o._data)!==s;o.data.value=s,o._data.value=s,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),b(o.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):l?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(o,s,l,u){const c=b(o._columns);let f=[];l?(l&&!l.children&&(l.children=[]),l.children.push(s),f=kI(c,l)):(c.push(s),f=c),NI(f),o._columns.value=f,o.updateOrderFns.push(u),s.type==="selection"&&(o.selectable.value=s.selectable,o.reserveSelection.value=s.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(o,s){var l;((l=s.getColumnIndex)==null?void 0:l.call(s))!==s.no&&(NI(o._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(o,s,l,u){const c=b(o._columns)||[];if(l)l.children.splice(l.children.findIndex(d=>d.id===s.id),1),qe(()=>{var d;((d=l.children)==null?void 0:d.length)===0&&delete l.children}),o._columns.value=kI(c,l);else{const d=c.indexOf(s);d>-1&&(c.splice(d,1),o._columns.value=c)}const f=o.updateOrderFns.indexOf(u);f>-1&&o.updateOrderFns.splice(f,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(o,s){const{prop:l,order:u,init:c}=s;if(l){const f=b(o.columns).find(d=>d.property===l);f&&(f.order=u,e.store.updateSort(f,l,u),e.store.commit("changeSortCondition",{init:c}))}},changeSortCondition(o,s){const{sortingColumn:l,sortProp:u,sortOrder:c}=o,f=b(l),d=b(u),h=b(c);h===null&&(o.sortingColumn.value=null,o.sortProp.value=null);const v={filter:!0};e.store.execQuery(v),(!s||!(s.silent||s.init))&&e.emit("sort-change",{column:f,prop:d,order:h}),e.store.updateTableScrollY()},filterChange(o,s){const{column:l,values:u,silent:c}=s,f=e.store.updateFilters(l,u);e.store.execQuery(),c||e.emit("filter-change",f),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(o,s){e.store.toggleRowSelection(s),e.store.updateAllSelected()},setHoverRow(o,s){o.hoverRow.value=s},setCurrentRow(o,s){e.store.updateCurrentRow(s)}},commit:function(o,...s){const l=e.store.mutations;if(l[o])l[o].apply(e,[e.store.states].concat(s));else throw new Error(`Action not found: ${o}`)},updateTableScrollY:function(){qe(()=>e.layout.updateScrollY.apply(e.layout))}}}const c0={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"}};function $ot(e,t){if(!e)throw new Error("Table is required.");const r=Uot();return r.toggleAllSelection=Ni(r._toggleAllSelection,10),Object.keys(c0).forEach(n=>{Kne(Xne(t,n),n,r)}),Wot(r,t),r}function Wot(e,t){Object.keys(c0).forEach(r=>{Ae(()=>Xne(t,r),n=>{Kne(n,r,e)})})}function Kne(e,t,r){let n=e,a=c0[t];typeof c0[t]=="object"&&(a=a.key,n=n||c0[t].default),r.states[a].value=n}function Xne(e,t){if(t.includes(".")){const r=t.split(".");let n=e;return r.forEach(a=>{n=n[a]}),n}else return e[t]}class Yot{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=G(null),this.scrollX=G(!1),this.scrollY=G(!1),this.bodyWidth=G(null),this.fixedWidth=G(null),this.rightFixedWidth=G(null),this.gutterWidth=0;for(const r in t)or(t,r)&&(Qr(this[r])?this[r].value=t[r]:this[r]=t[r]);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(){if(this.height.value===null)return!1;const r=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(r!=null&&r.wrapRef)){let n=!0;const a=this.scrollY.value;return n=r.wrapRef.scrollHeight>r.wrapRef.clientHeight,this.scrollY.value=n,a!==n}return!1}setHeight(t,r="height"){if(!ur)return;const n=this.table.vnode.el;if(t=Oot(t),this.height.value=Number(t),!n&&(t||t===0))return qe(()=>this.setHeight(t,r));typeof t=="number"?(n.style[r]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(n.style[r]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(n=>{n.isColumnGroup?t.push.apply(t,n.columns):t.push(n)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let r=t;for(;r.tagName!=="DIV";){if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}updateColumnsWidth(){if(!ur)return;const t=this.fit,r=this.table.vnode.el.clientWidth;let n=0;const a=this.getFlattenColumns(),i=a.filter(l=>typeof l.width!="number");if(a.forEach(l=>{typeof l.width=="number"&&l.realWidth&&(l.realWidth=null)}),i.length>0&&t){if(a.forEach(l=>{n+=Number(l.width||l.minWidth||80)}),n<=r){this.scrollX.value=!1;const l=r-n;if(i.length===1)i[0].realWidth=Number(i[0].minWidth||80)+l;else{const u=i.reduce((d,h)=>d+Number(h.minWidth||80),0),c=l/u;let f=0;i.forEach((d,h)=>{if(h===0)return;const v=Math.floor(Number(d.minWidth||80)*c);f+=v,d.realWidth=Number(d.minWidth||80)+v}),i[0].realWidth=Number(i[0].minWidth||80)+l-f}}else this.scrollX.value=!0,i.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(n,r),this.table.state.resizeState.value.width=this.bodyWidth.value}else a.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),n+=l.realWidth}),this.scrollX.value=n>r,this.bodyWidth.value=n;const o=this.store.states.fixedColumns.value;if(o.length>0){let l=0;o.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const s=this.store.states.rightFixedColumns.value;if(s.length>0){let l=0;s.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const r=this.observers.indexOf(t);r!==-1&&this.observers.splice(r,1)}notifyObservers(t){this.observers.forEach(n=>{var a,i;switch(t){case"columns":(a=n.state)==null||a.onColumnsChange(this);break;case"scrollable":(i=n.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:jot}=hs,Kot=te({name:"ElTableFilterPanel",components:{ElCheckbox:hs,ElCheckboxGroup:jot,ElScrollbar:ic,ElTooltip:Bi,ElIcon:Ze,ArrowDown:Vf,ArrowUp:mT},directives:{ClickOutside:Df},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=It(),{t:r}=fr(),n=Ce("table-filter"),a=t==null?void 0:t.parent;a.filterPanels.value[e.column.id]||(a.filterPanels.value[e.column.id]=t);const i=G(!1),o=G(null),s=F(()=>e.column&&e.column.filters),l=F({get:()=>{var w;return(((w=e.column)==null?void 0:w.filteredValue)||[])[0]},set:w=>{u.value&&(typeof w<"u"&&w!==null?u.value.splice(0,1,w):u.value.splice(0,1))}}),u=F({get(){return e.column?e.column.filteredValue||[]:[]},set(w){e.column&&e.upDataColumn("filteredValue",w)}}),c=F(()=>e.column?e.column.filterMultiple:!0),f=w=>w.value===l.value,d=()=>{i.value=!1},h=w=>{w.stopPropagation(),i.value=!i.value},v=()=>{i.value=!1},p=()=>{y(u.value),d()},g=()=>{u.value=[],y(u.value),d()},m=w=>{l.value=w,y(typeof w<"u"&&w!==null?u.value:[]),d()},y=w=>{e.store.commit("filterChange",{column:e.column,values:w}),e.store.updateAllSelected()};Ae(i,w=>{e.column&&e.upDataColumn("filterOpened",w)},{immediate:!0});const _=F(()=>{var w,x;return(x=(w=o.value)==null?void 0:w.popperRef)==null?void 0:x.contentRef});return{tooltipVisible:i,multiple:c,filteredValue:u,filterValue:l,filters:s,handleConfirm:p,handleReset:g,handleSelect:m,isActive:f,t:r,ns:n,showFilterPanel:h,hideFilterPanel:v,popperPaneRef:_,tooltip:o}}}),Xot={key:0},Zot=["disabled"],qot=["label","onClick"];function Qot(e,t,r,n,a,i){const o=bt("el-checkbox"),s=bt("el-checkbox-group"),l=bt("el-scrollbar"),u=bt("arrow-up"),c=bt("arrow-down"),f=bt("el-icon"),d=bt("el-tooltip"),h=_0("click-outside");return N(),he(d,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:le(()=>[e.multiple?(N(),U("div",Xot,[V("div",{class:H(e.ns.e("content"))},[J(l,{"wrap-class":e.ns.e("wrap")},{default:le(()=>[J(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=v=>e.filteredValue=v),class:H(e.ns.e("checkbox-group"))},{default:le(()=>[(N(!0),U(Be,null,ht(e.filters,v=>(N(),he(o,{key:v.value,label:v.value},{default:le(()=>[nr(me(v.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),V("div",{class:H(e.ns.e("bottom"))},[V("button",{class:H({[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))},me(e.t("el.table.confirmFilter")),11,Zot),V("button",{type:"button",onClick:t[2]||(t[2]=(...v)=>e.handleReset&&e.handleReset(...v))},me(e.t("el.table.resetFilter")),1)],2)])):(N(),U("ul",{key:1,class:H(e.ns.e("list"))},[V("li",{class:H([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=v=>e.handleSelect(null))},me(e.t("el.table.clearFilter")),3),(N(!0),U(Be,null,ht(e.filters,v=>(N(),U("li",{key:v.value,class:H([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:p=>e.handleSelect(v.value)},me(v.text),11,qot))),128))],2))]),default:le(()=>[Ct((N(),U("span",{class:H([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...v)=>e.showFilterPanel&&e.showFilterPanel(...v))},[J(f,null,{default:le(()=>[e.column.filterOpened?(N(),he(u,{key:0})):(N(),he(c,{key:1}))]),_:1})],2)),[[h,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var Jot=ke(Kot,[["render",Qot],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function Zne(e){const t=It();Y2(()=>{r.value.addObserver(t)}),xt(()=>{n(r.value),a(r.value)}),qu(()=>{n(r.value),a(r.value)}),Xl(()=>{r.value.removeObserver(t)});const r=F(()=>{const i=e.layout;if(!i)throw new Error("Can not find table layout.");return i}),n=i=>{var o;const s=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col"))||[];if(!s.length)return;const l=i.getFlattenColumns(),u={};l.forEach(c=>{u[c.id]=c});for(let c=0,f=s.length;c{var o,s;const l=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let c=0,f=l.length;c{p.stopPropagation()},i=(p,g)=>{!g.filters&&g.sortable?v(p,g,!1):g.filterable&&!g.sortable&&a(p),n==null||n.emit("header-click",g,p)},o=(p,g)=>{n==null||n.emit("header-contextmenu",g,p)},s=G(null),l=G(!1),u=G({}),c=(p,g)=>{if(ur&&!(g.children&&g.children.length>0)&&s.value&&e.border){l.value=!0;const m=n;t("set-drag-visible",!0);const _=(m==null?void 0:m.vnode.el).getBoundingClientRect().left,w=r.vnode.el.querySelector(`th.${g.id}`),x=w.getBoundingClientRect(),S=x.left-_+30;Pl(w,"noclick"),u.value={startMouseLeft:p.clientX,startLeft:x.right-_,startColumnLeft:x.left-_,tableLeft:_};const T=m==null?void 0:m.refs.resizeProxy;T.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const A=M=>{const E=M.clientX-u.value.startMouseLeft,D=u.value.startLeft+E;T.style.left=`${Math.max(S,D)}px`},C=()=>{if(l.value){const{startColumnLeft:M,startLeft:E}=u.value,P=Number.parseInt(T.style.left,10)-M;g.width=g.realWidth=P,m==null||m.emit("header-dragend",g.width,E-M,g,p),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,s.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",C),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{ro(w,"noclick")},0)};document.addEventListener("mousemove",A),document.addEventListener("mouseup",C)}},f=(p,g)=>{if(g.children&&g.children.length>0)return;const m=p.target;if(!us(m))return;const y=m==null?void 0:m.closest("th");if(!(!g||!g.resizable)&&!l.value&&e.border){const _=y.getBoundingClientRect(),w=document.body.style;_.width>12&&_.right-p.pageX<8?(w.cursor="col-resize",Ws(y,"is-sortable")&&(y.style.cursor="col-resize"),s.value=g):l.value||(w.cursor="",Ws(y,"is-sortable")&&(y.style.cursor="pointer"),s.value=null)}},d=()=>{ur&&(document.body.style.cursor="")},h=({order:p,sortOrders:g})=>{if(p==="")return g[0];const m=g.indexOf(p||null);return g[m>g.length-2?0:m+1]},v=(p,g,m)=>{var y;p.stopPropagation();const _=g.order===m?null:m||h(g),w=(y=p.target)==null?void 0:y.closest("th");if(w&&Ws(w,"noclick")){ro(w,"noclick");return}if(!g.sortable)return;const x=e.store.states;let S=x.sortProp.value,T;const A=x.sortingColumn.value;(A!==g||A===g&&A.order===null)&&(A&&(A.order=null),x.sortingColumn.value=g,S=g.property),_?T=g.order=_:T=g.order=null,x.sortProp.value=S,x.sortOrder.value=T,n==null||n.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:o,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:v,handleFilterClick:a}}function tst(e){const t=Ye(nu),r=Ce("table");return{getHeaderRowStyle:s=>{const l=t==null?void 0:t.props.headerRowStyle;return typeof l=="function"?l.call(null,{rowIndex:s}):l},getHeaderRowClass:s=>{const l=[],u=t==null?void 0:t.props.headerRowClassName;return typeof u=="string"?l.push(u):typeof u=="function"&&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:{};typeof d=="function"&&(d=d.call(null,{rowIndex:s,columnIndex:l,row:u,column:c}));const h=W3(l,c.fixed,e.store,u);return yg(h,"left"),yg(h,"right"),Object.assign({},d,h)},getHeaderCellClass:(s,l,u,c)=>{const f=$3(r.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 h=t==null?void 0:t.props.headerCellClassName;return typeof h=="string"?d.push(h):typeof h=="function"&&d.push(h.call(null,{rowIndex:s,columnIndex:l,row:u,column:c})),d.push(r.e("cell")),d.filter(v=>!!v).join(" ")}}}const qne=e=>{const t=[];return e.forEach(r=>{r.children?(t.push(r),t.push.apply(t,qne(r.children))):t.push(r)}),t},rst=e=>{let t=1;const r=(i,o)=>{if(o&&(i.level=o.level+1,t{r(l,i),s+=l.colSpan}),i.colSpan=s}else i.colSpan=1};e.forEach(i=>{i.level=1,r(i,void 0)});const n=[];for(let i=0;i{i.children?(i.rowSpan=1,i.children.forEach(o=>o.isSubColumn=!0)):i.rowSpan=t-i.level+1,n[i.level-1].push(i)}),n};function nst(e){const t=Ye(nu),r=F(()=>rst(e.store.states.originColumns.value));return{isGroup:F(()=>{const i=r.value.length>1;return i&&t&&(t.state.isGroup.value=!0),i}),toggleAllSelection:i=>{i.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:r}}var ast=te({name:"ElTableHeader",components:{ElCheckbox:hs},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const r=It(),n=Ye(nu),a=Ce("table"),i=G({}),{onColumnsChange:o,onScrollableChange:s}=Zne(n);xt(async()=>{await qe(),await qe();const{prop:S,order:T}=e.defaultSort;n==null||n.store.commit("sort",{prop:S,order:T,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:v}=est(e,t),{getHeaderRowStyle:p,getHeaderRowClass:g,getHeaderCellStyle:m,getHeaderCellClass:y}=tst(e),{isGroup:_,toggleAllSelection:w,columnRows:x}=nst(e);return r.state={onColumnsChange:o,onScrollableChange:s},r.filterPanels=i,{ns:a,filterPanels:i,onColumnsChange:o,onScrollableChange:s,columnRows:x,getHeaderRowClass:g,getHeaderRowStyle:p,getHeaderCellClass:y,getHeaderCellStyle:m,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:v,isGroup:_,toggleAllSelection:w}},render(){const{ns:e,isGroup:t,columnRows:r,getHeaderCellStyle:n,getHeaderCellClass:a,getHeaderRowClass:i,getHeaderRowStyle:o,handleHeaderClick:s,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:c,handleSortClick:f,handleMouseOut:d,store:h,$parent:v}=this;let p=1;return et("thead",{class:{[e.is("group")]:t}},r.map((g,m)=>et("tr",{class:i(m),key:m,style:o(m)},g.map((y,_)=>(y.rowSpan>p&&(p=y.rowSpan),et("th",{class:a(m,_,g,y),colspan:y.colSpan,key:`${y.id}-thead`,rowspan:y.rowSpan,style:n(m,_,g,y),onClick:w=>s(w,y),onContextmenu:w=>l(w,y),onMousedown:w=>u(w,y),onMousemove:w=>c(w,y),onMouseout:d},[et("div",{class:["cell",y.filteredValue&&y.filteredValue.length>0?"highlight":""]},[y.renderHeader?y.renderHeader({column:y,$index:_,store:h,_self:v}):y.label,y.sortable&&et("span",{onClick:w=>f(w,y),class:"caret-wrapper"},[et("i",{onClick:w=>f(w,y,"ascending"),class:"sort-caret ascending"}),et("i",{onClick:w=>f(w,y,"descending"),class:"sort-caret descending"})]),y.filterable&&et(Jot,{store:h,placement:y.filterPlacement||"bottom-start",column:y,upDataColumn:(w,x)=>{y[w]=x}})])]))))))}});function ist(e){const t=Ye(nu),r=G(""),n=G(et("div")),{nextZIndex:a}=im(),i=(v,p,g)=>{var m;const y=t,_=ZM(v);let w;const x=(m=y==null?void 0:y.vnode.el)==null?void 0:m.dataset.prefix;_&&(w=XU({columns:e.store.states.columns.value},_,x),w&&(y==null||y.emit(`cell-${g}`,p,w,_,v))),y==null||y.emit(`row-${g}`,p,w,v)},o=(v,p)=>{i(v,p,"dblclick")},s=(v,p)=>{e.store.commit("setCurrentRow",p),i(v,p,"click")},l=(v,p)=>{i(v,p,"contextmenu")},u=Ni(v=>{e.store.commit("setHoverRow",v)},30),c=Ni(()=>{e.store.commit("setHoverRow",null)},30),f=v=>{const p=window.getComputedStyle(v,null),g=Number.parseInt(p.paddingLeft,10)||0,m=Number.parseInt(p.paddingRight,10)||0,y=Number.parseInt(p.paddingTop,10)||0,_=Number.parseInt(p.paddingBottom,10)||0;return{left:g,right:m,top:y,bottom:_}};return{handleDoubleClick:o,handleClick:s,handleContextMenu:l,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(v,p,g)=>{var m;const y=t,_=ZM(v),w=(m=y==null?void 0:y.vnode.el)==null?void 0:m.dataset.prefix;if(_){const R=XU({columns:e.store.states.columns.value},_,w),B=y.hoverState={cell:_,column:R,row:p};y==null||y.emit("cell-mouse-enter",B.row,B.column,B.cell,v)}if(!g)return;const x=v.target.querySelector(".cell");if(!(Ws(x,`${w}-tooltip`)&&x.childNodes.length))return;const S=document.createRange();S.setStart(x,0),S.setEnd(x,x.childNodes.length);let T=S.getBoundingClientRect().width,A=S.getBoundingClientRect().height;T-Math.floor(T)<.001&&(T=Math.floor(T)),A-Math.floor(A)<.001&&(A=Math.floor(A));const{top:E,left:D,right:P,bottom:L}=f(x),I=D+P,O=E+L;(T+I>x.offsetWidth||A+O>x.offsetHeight||x.scrollWidth>x.offsetWidth)&&Bot(t==null?void 0:t.refs.tableWrapper,_,_.innerText||_.textContent,a,g)},handleCellMouseLeave:v=>{if(!ZM(v))return;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,v)},tooltipContent:r,tooltipTrigger:n}}function ost(e){const t=Ye(nu),r=Ce("table");return{getRowStyle:(u,c)=>{const f=t==null?void 0:t.props.rowStyle;return typeof f=="function"?f.call(null,{row:u,rowIndex:c}):f||null},getRowClass:(u,c)=>{const f=[r.e("row")];t!=null&&t.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&f.push("current-row"),e.stripe&&c%2===1&&f.push(r.em("row","striped"));const d=t==null?void 0:t.props.rowClassName;return typeof d=="string"?f.push(d):typeof d=="function"&&f.push(d.call(null,{row:u,rowIndex:c})),f},getCellStyle:(u,c,f,d)=>{const h=t==null?void 0:t.props.cellStyle;let v=h??{};typeof h=="function"&&(v=h.call(null,{rowIndex:u,columnIndex:c,row:f,column:d}));const p=W3(c,e==null?void 0:e.fixed,e.store);return yg(p,"left"),yg(p,"right"),Object.assign({},v,p)},getCellClass:(u,c,f,d,h)=>{const v=$3(r.b(),c,e==null?void 0:e.fixed,e.store,void 0,h),p=[d.id,d.align,d.className,...v],g=t==null?void 0:t.props.cellClassName;return typeof g=="string"?p.push(g):typeof g=="function"&&p.push(g.call(null,{rowIndex:u,columnIndex:c,row:f,column:d})),p.push(r.e("cell")),p.filter(m=>!!m).join(" ")},getSpan:(u,c,f,d)=>{let h=1,v=1;const p=t==null?void 0:t.props.spanMethod;if(typeof p=="function"){const g=p({row:u,column:c,rowIndex:f,columnIndex:d});Array.isArray(g)?(h=g[0],v=g[1]):typeof g=="object"&&(h=g.rowspan,v=g.colspan)}return{rowspan:h,colspan:v}},getColspanRealWidth:(u,c,f)=>{if(c<1)return u[f].realWidth;const d=u.map(({realWidth:h,width:v})=>h||v).slice(f,f+c);return Number(d.reduce((h,v)=>Number(h)+Number(v),-1))}}}function sst(e){const t=Ye(nu),r=Ce("table"),{handleDoubleClick:n,handleClick:a,handleContextMenu:i,handleMouseEnter:o,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:f}=ist(e),{getRowStyle:d,getRowClass:h,getCellStyle:v,getCellClass:p,getSpan:g,getColspanRealWidth:m}=ost(e),y=F(()=>e.store.states.columns.value.findIndex(({type:T})=>T==="default")),_=(T,A)=>{const C=t.props.rowKey;return C?Ka(T,C):A},w=(T,A,C,M=!1)=>{const{tooltipEffect:E,tooltipOptions:D,store:P}=e,{indent:L,columns:I}=P.states,O=h(T,A);let R=!0;return C&&(O.push(r.em("row",`level-${C.level}`)),R=C.display),et("tr",{style:[R?null:{display:"none"},d(T,A)],class:O,key:_(T,A),onDblclick:k=>n(k,T),onClick:k=>a(k,T),onContextmenu:k=>i(k,T),onMouseenter:()=>o(A),onMouseleave:s},I.value.map((k,z)=>{const{rowspan:$,colspan:j}=g(T,k,A,z);if(!$||!j)return null;const X=Object.assign({},k);X.realWidth=m(I.value,j,z);const Q={store:e.store,_self:e.context||t,column:X,row:T,$index:A,cellIndex:z,expanded:M};z===y.value&&C&&(Q.treeNode={indent:C.level*L.value,level:C.level},typeof C.expanded=="boolean"&&(Q.treeNode.expanded=C.expanded,"loading"in C&&(Q.treeNode.loading=C.loading),"noLazyChildren"in C&&(Q.treeNode.noLazyChildren=C.noLazyChildren)));const se=`${A},${z}`,ee=X.columnKey||X.rawColumnKey||"",K=x(z,k,Q),Z=k.showOverflowTooltip&&Cee({effect:E},D,k.showOverflowTooltip);return et("td",{style:v(A,z,T,k),class:p(A,z,T,k,j-1),key:`${ee}${se}`,rowspan:$,colspan:j,onMouseenter:ne=>l(ne,T,Z),onMouseleave:u},[K])}))},x=(T,A,C)=>A.renderCell(C);return{wrappedRowRender:(T,A)=>{const C=e.store,{isRowExpanded:M,assertRowKey:E}=C,{treeData:D,lazyTreeNodeMap:P,childrenColumnName:L,rowKey:I}=C.states,O=C.states.columns.value;if(O.some(({type:B})=>B==="expand")){const B=M(T),k=w(T,A,void 0,B),z=t.renderExpanded;return B?z?[[k,et("tr",{key:`expanded-row__${k.key}`},[et("td",{colspan:O.length,class:`${r.e("cell")} ${r.e("expanded-cell")}`},[z({row:T,$index:A,store:C,expanded:B})])])]]:(console.error("[Element Error]renderExpanded is required."),k):[[k]]}else if(Object.keys(D.value).length){E();const B=Ka(T,I.value);let k=D.value[B],z=null;k&&(z={expanded:k.expanded,level:k.level,display:!0},typeof k.lazy=="boolean"&&(typeof k.loaded=="boolean"&&k.loaded&&(z.noLazyChildren=!(k.children&&k.children.length)),z.loading=k.loading));const $=[w(T,A,z)];if(k){let j=0;const X=(se,ee)=>{se&&se.length&&ee&&se.forEach(K=>{const Z={display:ee.display&&ee.expanded,level:ee.level+1,expanded:!1,noLazyChildren:!1,loading:!1},ne=Ka(K,I.value);if(ne==null)throw new Error("For nested data item, row-key is required.");if(k={...D.value[ne]},k&&(Z.expanded=k.expanded,k.level=k.level||Z.level,k.display=!!(k.expanded&&Z.display),typeof k.lazy=="boolean"&&(typeof k.loaded=="boolean"&&k.loaded&&(Z.noLazyChildren=!(k.children&&k.children.length)),Z.loading=k.loading)),j++,$.push(w(K,A+j,Z)),k){const re=P.value[ne]||K[L.value];X(re,k)}})};k.display=!0;const Q=P.value[B]||T[L.value];X(Q,k)}return $}else return w(T,A,void 0)},tooltipContent:c,tooltipTrigger:f}}const lst={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 ust=te({name:"ElTableBody",props:lst,setup(e){const t=It(),r=Ye(nu),n=Ce("table"),{wrappedRowRender:a,tooltipContent:i,tooltipTrigger:o}=sst(e),{onColumnsChange:s,onScrollableChange:l}=Zne(r);return Ae(e.store.states.hoverRow,(u,c)=>{!e.store.states.isComplex.value||!ur||cg(()=>{const f=t==null?void 0:t.vnode.el,d=Array.from((f==null?void 0:f.children)||[]).filter(p=>p==null?void 0:p.classList.contains(`${n.e("row")}`)),h=d[c],v=d[u];h&&ro(h,"hover-row"),v&&Pl(v,"hover-row")})}),Xl(()=>{var u;(u=hu)==null||u()}),{ns:n,onColumnsChange:s,onScrollableChange:l,wrappedRowRender:a,tooltipContent:i,tooltipTrigger:o}},render(){const{wrappedRowRender:e,store:t}=this,r=t.states.data.value||[];return et("tbody",{tabIndex:-1},[r.reduce((n,a)=>n.concat(e(a,n.length)),[])])}});function cst(){const e=Ye(nu),t=e==null?void 0:e.store,r=F(()=>t.states.fixedLeafColumnsLength.value),n=F(()=>t.states.rightFixedColumns.value.length),a=F(()=>t.states.columns.value.length),i=F(()=>t.states.fixedColumns.value.length),o=F(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:r,rightFixedLeafCount:n,columnsCount:a,leftFixedCount:i,rightFixedCount:o,columns:t.states.columns}}function fst(e){const{columns:t}=cst(),r=Ce("table");return{getCellClasses:(i,o)=>{const s=i[o],l=[r.e("cell"),s.id,s.align,s.labelClassName,...$3(r.b(),o,s.fixed,e.store)];return s.className&&l.push(s.className),s.children||l.push(r.is("leaf")),l},getCellStyles:(i,o)=>{const s=W3(o,i.fixed,e.store);return yg(s,"left"),yg(s,"right"),s},columns:t}}var dst=te({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{getCellClasses:t,getCellStyles:r,columns:n}=fst(e);return{ns:Ce("table"),getCellClasses:t,getCellStyles:r,columns:n}},render(){const{columns:e,getCellStyles:t,getCellClasses:r,summaryMethod:n,sumText:a}=this,i=this.store.states.data.value;let o=[];return n?o=n({columns:e,data:i}):e.forEach((s,l)=>{if(l===0){o[l]=a;return}const u=i.map(h=>Number(h[s.property])),c=[];let f=!0;u.forEach(h=>{if(!Number.isNaN(+h)){f=!1;const v=`${h}`.split(".")[1];c.push(v?v.length:0)}});const d=Math.max.apply(null,c);f?o[l]="":o[l]=u.reduce((h,v)=>{const p=Number(v);return Number.isNaN(+p)?h:Number.parseFloat((h+v).toFixed(Math.min(d,20)))},0)}),et(et("tfoot",[et("tr",{},[...e.map((s,l)=>et("td",{key:l,colspan:s.colSpan,rowspan:s.rowSpan,class:r(e,l),style:t(s,l)},[et("div",{class:["cell",s.labelClassName]},[o[l]])]))])]))}});function hst(e){return{setCurrentRow:c=>{e.commit("setCurrentRow",c)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(c,f)=>{e.toggleRowSelection(c,f,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:c=>{e.clearFilter(c)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(c,f)=>{e.toggleRowExpansionAdapter(c,f)},clearSort:()=>{e.clearSort()},sort:(c,f)=>{e.commit("sort",{prop:c,order:f})}}}function vst(e,t,r,n){const a=G(!1),i=G(null),o=G(!1),s=k=>{o.value=k},l=G({width:null,height:null,headerHeight:null}),u=G(!1),c={display:"inline-block",verticalAlign:"middle"},f=G(),d=G(0),h=G(0),v=G(0),p=G(0),g=G(0);xo(()=>{t.setHeight(e.height)}),xo(()=>{t.setMaxHeight(e.maxHeight)}),Ae(()=>[e.currentRowKey,r.states.rowKey],([k,z])=>{!b(z)||!b(k)||r.setCurrentRowKey(`${k}`)},{immediate:!0}),Ae(()=>e.data,k=>{n.store.commit("setData",k)},{immediate:!0,deep:!0}),xo(()=>{e.expandRowKeys&&r.setExpandRowKeysAdapter(e.expandRowKeys)});const m=()=>{n.store.commit("setHoverRow",null),n.hoverState&&(n.hoverState=null)},y=(k,z)=>{const{pixelX:$,pixelY:j}=z;Math.abs($)>=Math.abs(j)&&(n.refs.bodyWrapper.scrollLeft+=z.pixelX/5)},_=F(()=>e.height||e.maxHeight||r.states.fixedColumns.value.length>0||r.states.rightFixedColumns.value.length>0),w=F(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),x=()=>{_.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(C)};xt(async()=>{await qe(),r.updateColumns(),M(),requestAnimationFrame(x);const k=n.vnode.el,z=n.refs.headerWrapper;e.flexible&&k&&k.parentElement&&(k.parentElement.style.minWidth="0"),l.value={width:f.value=k.offsetWidth,height:k.offsetHeight,headerHeight:e.showHeader&&z?z.offsetHeight:null},r.states.columns.value.forEach($=>{$.filteredValue&&$.filteredValue.length&&n.store.commit("filterChange",{column:$,values:$.filteredValue,silent:!0})}),n.$ready=!0});const S=(k,z)=>{if(!k)return;const $=Array.from(k.classList).filter(j=>!j.startsWith("is-scrolling-"));$.push(t.scrollX.value?z:"is-scrolling-none"),k.className=$.join(" ")},T=k=>{const{tableWrapper:z}=n.refs;S(z,k)},A=k=>{const{tableWrapper:z}=n.refs;return!!(z&&z.classList.contains(k))},C=function(){if(!n.refs.scrollBarRef)return;if(!t.scrollX.value){const ee="is-scrolling-none";A(ee)||T(ee);return}const k=n.refs.scrollBarRef.wrapRef;if(!k)return;const{scrollLeft:z,offsetWidth:$,scrollWidth:j}=k,{headerWrapper:X,footerWrapper:Q}=n.refs;X&&(X.scrollLeft=z),Q&&(Q.scrollLeft=z);const se=j-$-1;z>=se?T("is-scrolling-right"):T(z===0?"is-scrolling-left":"is-scrolling-middle")},M=()=>{n.refs.scrollBarRef&&(n.refs.scrollBarRef.wrapRef&&dn(n.refs.scrollBarRef.wrapRef,"scroll",C,{passive:!0}),e.fit?di(n.vnode.el,E):dn(window,"resize",E),di(n.refs.bodyWrapper,()=>{var k,z;E(),(z=(k=n.refs)==null?void 0:k.scrollBarRef)==null||z.update()}))},E=()=>{var k,z,$,j;const X=n.vnode.el;if(!n.$ready||!X)return;let Q=!1;const{width:se,height:ee,headerHeight:K}=l.value,Z=f.value=X.offsetWidth;se!==Z&&(Q=!0);const ne=X.offsetHeight;(e.height||_.value)&&ee!==ne&&(Q=!0);const re=e.tableLayout==="fixed"?n.refs.headerWrapper:(k=n.refs.tableHeaderRef)==null?void 0:k.$el;e.showHeader&&(re==null?void 0:re.offsetHeight)!==K&&(Q=!0),d.value=((z=n.refs.tableWrapper)==null?void 0:z.scrollHeight)||0,v.value=(re==null?void 0:re.scrollHeight)||0,p.value=(($=n.refs.footerWrapper)==null?void 0:$.offsetHeight)||0,g.value=((j=n.refs.appendWrapper)==null?void 0:j.offsetHeight)||0,h.value=d.value-v.value-p.value-g.value,Q&&(l.value={width:Z,height:ne,headerHeight:e.showHeader&&(re==null?void 0:re.offsetHeight)||0},x())},D=ca(),P=F(()=>{const{bodyWidth:k,scrollY:z,gutterWidth:$}=t;return k.value?`${k.value-(z.value?$:0)}px`:""}),L=F(()=>e.maxHeight?"fixed":e.tableLayout),I=F(()=>{if(e.data&&e.data.length)return null;let k="100%";e.height&&h.value&&(k=`${h.value}px`);const z=f.value;return{width:z?`${z}px`:"",height:k}}),O=F(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),R=F(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${v.value+p.value}px)`}:{maxHeight:`${e.maxHeight-v.value-p.value}px`}:{});return{isHidden:a,renderExpanded:i,setDragVisible:s,isGroup:u,handleMouseLeave:m,handleHeaderFooterMousewheel:y,tableSize:D,emptyBlockStyle:I,handleFixedMousewheel:(k,z)=>{const $=n.refs.bodyWrapper;if(Math.abs(z.spinY)>0){const j=$.scrollTop;z.pixelY<0&&j!==0&&k.preventDefault(),z.pixelY>0&&$.scrollHeight-$.clientHeight>j&&k.preventDefault(),$.scrollTop+=Math.ceil(z.pixelY/5)}else $.scrollLeft+=Math.ceil(z.pixelX/5)},resizeProxyVisible:o,bodyWidth:P,resizeState:l,doLayout:x,tableBodyStyles:w,tableLayout:L,scrollbarViewStyle:c,tableInnerStyle:O,scrollbarStyle:R}}function pst(e){const t=G(),r=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},o=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{o.forEach(s=>s())}),t.value.observe(a,i)};xt(()=>{r()}),Xl(()=>{var n;(n=t.value)==null||n.disconnect()})}var gst={data:{type:Array,default:()=>[]},size:Ga,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"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean,showOverflowTooltip:[Boolean,Object]};function Qne(e){const t=e.tableLayout==="auto";let r=e.columns||[];t&&r.every(a=>a.width===void 0)&&(r=[]);const n=a=>{const i={key:`${e.tableLayout}_${a.id}`,style:{},name:void 0};return t?i.style={width:`${a.width}px`}:i.name=a.id,i};return et("colgroup",{},r.map(a=>et("col",n(a))))}Qne.props=["columns","tableLayout"];const mst=()=>{const e=G(),t=(i,o)=>{const s=e.value;s&&s.scrollTo(i,o)},r=(i,o)=>{const s=e.value;s&&ct(o)&&["Top","Left"].includes(i)&&s[`setScroll${i}`](o)};return{scrollBarRef:e,scrollTo:t,setScrollTop:i=>r("Top",i),setScrollLeft:i=>r("Left",i)}};let yst=1;const _st=te({name:"ElTable",directives:{Mousewheel:eKe},components:{TableHeader:ast,TableBody:ust,TableFooter:dst,ElScrollbar:ic,hColgroup:Qne},props:gst,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"],setup(e){const{t}=fr(),r=Ce("table"),n=It();Wt(nu,n);const a=$ot(n,e);n.store=a;const i=new Yot({store:n.store,table:n,fit:e.fit,showHeader:e.showHeader});n.layout=i;const o=F(()=>(a.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,sort:p}=hst(a),{isHidden:g,renderExpanded:m,setDragVisible:y,isGroup:_,handleMouseLeave:w,handleHeaderFooterMousewheel:x,tableSize:S,emptyBlockStyle:T,handleFixedMousewheel:A,resizeProxyVisible:C,bodyWidth:M,resizeState:E,doLayout:D,tableBodyStyles:P,tableLayout:L,scrollbarViewStyle:I,tableInnerStyle:O,scrollbarStyle:R}=vst(e,i,a,n),{scrollBarRef:B,scrollTo:k,setScrollLeft:z,setScrollTop:$}=mst(),j=Ni(D,50),X=`${r.namespace.value}-table_${yst++}`;n.tableId=X,n.state={isGroup:_,resizeState:E,doLayout:D,debouncedUpdateLayout:j};const Q=F(()=>e.sumText||t("el.table.sumText")),se=F(()=>e.emptyText||t("el.table.emptyText"));return pst(n),{ns:r,layout:i,store:a,handleHeaderFooterMousewheel:x,handleMouseLeave:w,tableId:X,tableSize:S,isHidden:g,isEmpty:o,renderExpanded:m,resizeProxyVisible:C,resizeState:E,isGroup:_,bodyWidth:M,tableBodyStyles:P,emptyBlockStyle:T,debouncedUpdateLayout:j,handleFixedMousewheel:A,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,doLayout:D,sort:p,t,setDragVisible:y,context:n,computedSumText:Q,computedEmptyText:se,tableLayout:L,scrollbarViewStyle:I,tableInnerStyle:O,scrollbarStyle:R,scrollBarRef:B,scrollTo:k,setScrollLeft:z,setScrollTop:$}}}),bst=["data-prefix"],wst={ref:"hiddenColumns",class:"hidden-columns"};function Sst(e,t,r,n,a,i){const o=bt("hColgroup"),s=bt("table-header"),l=bt("table-body"),u=bt("table-footer"),c=bt("el-scrollbar"),f=_0("mousewheel");return N(),U("div",{ref:"tableWrapper",class:H([{[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:Xe(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...d)=>e.handleMouseLeave&&e.handleMouseLeave(...d))},[V("div",{class:H(e.ns.e("inner-wrapper")),style:Xe(e.tableInnerStyle)},[V("div",wst,[ye(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?Ct((N(),U("div",{key:0,ref:"headerWrapper",class:H(e.ns.e("header-wrapper"))},[V("table",{ref:"tableHeader",class:H(e.ns.e("header")),style:Xe(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[J(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),J(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):ce("v-if",!0),V("div",{ref:"bodyWrapper",class:H(e.ns.e("body-wrapper"))},[J(c,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:le(()=>[V("table",{ref:"tableBody",class:H(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Xe({width:e.bodyWidth,tableLayout:e.tableLayout})},[J(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(N(),he(s,{key:0,ref:"tableHeaderRef",class:H(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","onSetDragVisible"])):ce("v-if",!0),J(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"?(N(),he(u,{key:1,class:H(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"])):ce("v-if",!0)],6),e.isEmpty?(N(),U("div",{key:0,ref:"emptyBlock",style:Xe(e.emptyBlockStyle),class:H(e.ns.e("empty-block"))},[V("span",{class:H(e.ns.e("empty-text"))},[ye(e.$slots,"empty",{},()=>[nr(me(e.computedEmptyText),1)])],2)],6)):ce("v-if",!0),e.$slots.append?(N(),U("div",{key:1,ref:"appendWrapper",class:H(e.ns.e("append-wrapper"))},[ye(e.$slots,"append")],2)):ce("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary&&e.tableLayout==="fixed"?Ct((N(),U("div",{key:1,ref:"footerWrapper",class:H(e.ns.e("footer-wrapper"))},[V("table",{class:H(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:Xe(e.tableBodyStyles)},[J(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),J(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)),[[hr,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):ce("v-if",!0),e.border||e.isGroup?(N(),U("div",{key:2,class:H(e.ns.e("border-left-patch"))},null,2)):ce("v-if",!0)],6),Ct(V("div",{ref:"resizeProxy",class:H(e.ns.e("column-resize-proxy"))},null,2),[[hr,e.resizeProxyVisible]])],46,bst)}var xst=ke(_st,[["render",Sst],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const Ast={selection:"table-column--selection",expand:"table__expand-column"},Tst={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:""}},Cst=e=>Ast[e]||"",Est={selection:{renderHeader({store:e,column:t}){function r(){return e.states.data.value&&e.states.data.value.length===0}return et(hs,{disabled:r(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value,ariaLabel:t.label})},renderCell({row:e,column:t,store:r,$index:n}){return et(hs,{disabled:t.selectable?!t.selectable.call(null,e,n):!1,size:r.states.tableSize.value,onChange:()=>{r.commit("rowSelectedChanged",e)},onClick:a=>a.stopPropagation(),modelValue:r.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let r=t+1;const n=e.index;return typeof n=="number"?r=t+n:typeof n=="function"&&(r=n(t)),et("div",{},[r])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:r}){const{ns:n}=t,a=[n.e("expand-icon")];return r&&a.push(n.em("expand-icon","expanded")),et("div",{class:a,onClick:function(o){o.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[et(Ze,null,{default:()=>[et(Mi)]})]})},sortable:!1,resizable:!1}};function Mst({row:e,column:t,$index:r}){var n;const a=t.property,i=a&&hS(e,a).value;return t&&t.formatter?t.formatter(e,t,i,r):((n=i==null?void 0:i.toString)==null?void 0:n.call(i))||""}function Dst({row:e,treeNode:t,store:r},n=!1){const{ns:a}=r;if(!t)return n?[et("span",{class:a.e("placeholder")})]:null;const i=[],o=function(s){s.stopPropagation(),!t.loading&&r.loadOrToggle(e)};if(t.indent&&i.push(et("span",{class:a.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const s=[a.e("expand-icon"),t.expanded?a.em("expand-icon","expanded"):""];let l=Mi;t.loading&&(l=Hf),i.push(et("div",{class:s,onClick:o},{default:()=>[et(Ze,{class:{[a.is("loading")]:t.loading}},{default:()=>[et(l)]})]}))}else i.push(et("span",{class:a.e("placeholder")}));return i}function QU(e,t){return e.reduce((r,n)=>(r[n]=n,r),t)}function Pst(e,t){const r=It();return{registerComplexWatchers:()=>{const i=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},s=QU(i,o);Object.keys(s).forEach(l=>{const u=o[l];or(t,u)&&Ae(()=>t[u],c=>{let f=c;u==="width"&&l==="realWidth"&&(f=U3(c)),u==="minWidth"&&l==="realMinWidth"&&(f=Wne(c)),r.columnConfig.value[u]=f,r.columnConfig.value[l]=f;const d=u==="fixed";e.value.store.scheduleLayout(d)})})},registerNormalWatchers:()=>{const i=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],o={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},s=QU(i,o);Object.keys(s).forEach(l=>{const u=o[l];or(t,u)&&Ae(()=>t[u],c=>{r.columnConfig.value[l]=c})})}}}function Lst(e,t,r){const n=It(),a=G(""),i=G(!1),o=G(),s=G(),l=Ce("table");xo(()=>{o.value=e.align?`is-${e.align}`:null,o.value}),xo(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:o.value,s.value});const u=F(()=>{let w=n.vnode.vParent||n.parent;for(;w&&!w.tableId&&!w.columnId;)w=w.vnode.vParent||w.parent;return w}),c=F(()=>{const{store:w}=n.parent;if(!w)return!1;const{treeData:x}=w.states,S=x.value;return S&&Object.keys(S).length>0}),f=G(U3(e.width)),d=G(Wne(e.minWidth)),h=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(w.width===void 0?w.minWidth:w.width),w),v=w=>{const x=w.type,S=Est[x]||{};Object.keys(S).forEach(A=>{const C=S[A];A!=="className"&&C!==void 0&&(w[A]=C)});const T=Cst(x);if(T){const A=`${b(l.namespace)}-${T}`;w.className=w.className?`${w.className} ${A}`:A}return w},p=w=>{Array.isArray(w)?w.forEach(S=>x(S)):x(w);function x(S){var T;((T=S==null?void 0:S.type)==null?void 0:T.name)==="ElTableColumn"&&(S.vParent=n)}};return{columnId:a,realAlign:o,isSubColumn:i,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:v,setColumnRenders:w=>{e.renderHeader||w.type!=="selection"&&(w.renderHeader=S=>{n.columnConfig.value.label;const T=t.header;return T?T(S):w.label});let x=w.renderCell;return w.type==="expand"?(w.renderCell=S=>et("div",{class:"cell"},[x(S)]),r.value.renderExpanded=S=>t.default?t.default(S):t.default):(x=x||Mst,w.renderCell=S=>{let T=null;if(t.default){const P=t.default(S);T=P.some(L=>L.type!==Ei)?P:x(S)}else T=x(S);const{columns:A}=r.value.store.states,C=A.value.findIndex(P=>P.type==="default"),M=c.value&&S.cellIndex===C,E=Dst(S,M),D={class:"cell",style:{}};return w.showOverflowTooltip&&(D.class=`${D.class} ${b(l.namespace)}-tooltip`,D.style={width:`${(S.column.realWidth||Number(S.column.width))-1}px`}),p(T),et("div",D,[E,T])}),w},getPropsData:(...w)=>w.reduce((x,S)=>(Array.isArray(S)&&S.forEach(T=>{x[T]=e[T]}),x),{}),getColumnElIndex:(w,x)=>Array.prototype.indexOf.call(w,x),updateColumnOrder:()=>{r.value.store.commit("updateColumnOrder",n.columnConfig.value)}}}var Ist={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},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let Rst=1;var Jne=te({name:"ElTableColumn",components:{ElCheckbox:hs},props:Ist,setup(e,{slots:t}){const r=It(),n=G({}),a=F(()=>{let _=r.parent;for(;_&&!_.tableId;)_=_.parent;return _}),{registerNormalWatchers:i,registerComplexWatchers:o}=Pst(a,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:f,setColumnForcedProps:d,setColumnRenders:h,getPropsData:v,getColumnElIndex:p,realAlign:g,updateColumnOrder:m}=Lst(e,t,a),y=c.value;s.value=`${y.tableId||y.columnId}_column_${Rst++}`,Y2(()=>{l.value=a.value!==y;const _=e.type||"default",w=e.sortable===""?!0:e.sortable,x=oa(e.showOverflowTooltip)?y.props.showOverflowTooltip:e.showOverflowTooltip,S={...Tst[_],id:s.value,type:_,property:e.prop||e.property,align:g,headerAlign:u,showOverflowTooltip:x,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:w,index:e.index,rawColumnKey:r.vnode.key};let E=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);E=Rot(S,E),E=kot(h,f,d)(E),n.value=E,i(),o()}),xt(()=>{var _;const w=c.value,x=l.value?w.vnode.el.children:(_=w.refs.hiddenColumns)==null?void 0:_.children,S=()=>p(x||[],r.vnode.el);n.value.getColumnIndex=S,S()>-1&&a.value.store.commit("insertColumn",n.value,l.value?w.columnConfig.value:null,m)}),un(()=>{a.value.store.commit("removeColumn",n.value,l.value?y.columnConfig.value:null,m)}),r.columnId=s.value,r.columnConfig=n},render(){var e,t,r;try{const n=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),a=[];if(Array.isArray(n))for(const o of n)((r=o.type)==null?void 0:r.name)==="ElTableColumn"||o.shapeFlag&2?a.push(o):o.type===Be&&Array.isArray(o.children)&&o.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!wt(s==null?void 0:s.children)&&a.push(s)});return et("div",a)}catch{return et("div",[])}}});const Ost=kt(xst,{TableColumn:Jne}),kst=Pn(Jne);var E_=(e=>(e.ASC="asc",e.DESC="desc",e))(E_||{}),M_=(e=>(e.CENTER="center",e.RIGHT="right",e))(M_||{}),eae=(e=>(e.LEFT="left",e.RIGHT="right",e))(eae||{});const BI={asc:"desc",desc:"asc"},D_=Symbol("placeholder"),Nst=(e,t,r)=>{var n;const a={flexGrow:0,flexShrink:0,...r?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};r||(a.flexShrink=1);const i={...(n=e.style)!=null?n:{},...a,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(i.maxWidth=e.maxWidth),e.minWidth&&(i.minWidth=e.minWidth)),i};function Bst(e,t,r){const n=F(()=>b(t).filter(p=>!p.hidden)),a=F(()=>b(n).filter(p=>p.fixed==="left"||p.fixed===!0)),i=F(()=>b(n).filter(p=>p.fixed==="right")),o=F(()=>b(n).filter(p=>!p.fixed)),s=F(()=>{const p=[];return b(a).forEach(g=>{p.push({...g,placeholderSign:D_})}),b(o).forEach(g=>{p.push(g)}),b(i).forEach(g=>{p.push({...g,placeholderSign:D_})}),p}),l=F(()=>b(a).length||b(i).length),u=F(()=>b(t).reduce((g,m)=>(g[m.key]=Nst(m,b(r),e.fixed),g),{})),c=F(()=>b(n).reduce((p,g)=>p+g.width,0)),f=p=>b(t).find(g=>g.key===p),d=p=>b(u)[p],h=(p,g)=>{p.width=g};function v(p){var g;const{key:m}=p.currentTarget.dataset;if(!m)return;const{sortState:y,sortBy:_}=e;let w=E_.ASC;Vt(y)?w=BI[y[m]]:w=BI[_.order],(g=e.onColumnSort)==null||g.call(e,{column:f(m),key:m,order:w})}return{columns:t,columnsStyles:u,columnsTotalWidth:c,fixedColumnsOnLeft:a,fixedColumnsOnRight:i,hasFixedColumns:l,mainColumns:s,normalColumns:o,visibleColumns:n,getColumn:f,getColumnStyle:d,updateColumnWidth:h,onColumnSorted:v}}const Fst=(e,{mainTableRef:t,leftTableRef:r,rightTableRef:n,onMaybeEndReached:a})=>{const i=G({scrollLeft:0,scrollTop:0});function o(h){var v,p,g;const{scrollTop:m}=h;(v=t.value)==null||v.scrollTo(h),(p=r.value)==null||p.scrollToTop(m),(g=n.value)==null||g.scrollToTop(m)}function s(h){i.value=h,o(h)}function l(h){i.value.scrollTop=h,o(b(i))}function u(h){var v,p;i.value.scrollLeft=h,(p=(v=t.value)==null?void 0:v.scrollTo)==null||p.call(v,b(i))}function c(h){var v;s(h),(v=e.onScroll)==null||v.call(e,h)}function f({scrollTop:h}){const{scrollTop:v}=b(i);h!==v&&l(h)}function d(h,v="auto"){var p;(p=t.value)==null||p.scrollToRow(h,v)}return Ae(()=>b(i).scrollTop,(h,v)=>{h>v&&a()}),{scrollPos:i,scrollTo:s,scrollToLeft:u,scrollToTop:l,scrollToRow:d,onScroll:c,onVerticalScroll:f}},Vst=(e,{mainTableRef:t,leftTableRef:r,rightTableRef:n})=>{const a=It(),{emit:i}=a,o=yr(!1),s=yr(null),l=G(e.defaultExpandedRowKeys||[]),u=G(-1),c=yr(null),f=G({}),d=G({}),h=yr({}),v=yr({}),p=yr({}),g=F(()=>ct(e.estimatedRowHeight));function m(A){var C;(C=e.onRowsRendered)==null||C.call(e,A),A.rowCacheEnd>b(u)&&(u.value=A.rowCacheEnd)}function y({hovered:A,rowKey:C}){s.value=A?C:null}function _({expanded:A,rowData:C,rowIndex:M,rowKey:E}){var D,P;const L=[...b(l)],I=L.indexOf(E);A?I===-1&&L.push(E):I>-1&&L.splice(I,1),l.value=L,i("update:expandedRowKeys",L),(D=e.onRowExpand)==null||D.call(e,{expanded:A,rowData:C,rowIndex:M,rowKey:E}),(P=e.onExpandedRowsChange)==null||P.call(e,L)}const w=Ni(()=>{var A,C,M,E;o.value=!0,f.value={...b(f),...b(d)},x(b(c),!1),d.value={},c.value=null,(A=t.value)==null||A.forceUpdate(),(C=r.value)==null||C.forceUpdate(),(M=n.value)==null||M.forceUpdate(),(E=a.proxy)==null||E.$forceUpdate(),o.value=!1},0);function x(A,C=!1){b(g)&&[t,r,n].forEach(M=>{const E=b(M);E&&E.resetAfterRowIndex(A,C)})}function S(A,C,M){const E=b(c);(E===null||E>M)&&(c.value=M),d.value[A]=C}function T({rowKey:A,height:C,rowIndex:M},E){E?E===eae.RIGHT?p.value[A]=C:h.value[A]=C:v.value[A]=C;const D=Math.max(...[h,p,v].map(P=>P.value[A]||0));b(f)[A]!==D&&(S(A,D,M),w())}return{hoveringRowKey:s,expandedRowKeys:l,lastRenderedRowIndex:u,isDynamic:g,isResetting:o,rowHeights:f,resetAfterIndex:x,onRowExpanded:_,onRowHovered:y,onRowsRendered:m,onRowHeightChange:T}},zst=(e,{expandedRowKeys:t,lastRenderedRowIndex:r,resetAfterIndex:n})=>{const a=G({}),i=F(()=>{const s={},{data:l,rowKey:u}=e,c=b(t);if(!c||!c.length)return l;const f=[],d=new Set;c.forEach(v=>d.add(v));let h=l.slice();for(h.forEach(v=>s[v[u]]=0);h.length>0;){const v=h.shift();f.push(v),d.has(v[u])&&Array.isArray(v.children)&&v.children.length>0&&(h=[...v.children,...h],v.children.forEach(p=>s[p[u]]=s[v[u]]+1))}return a.value=s,f}),o=F(()=>{const{data:s,expandColumnKey:l}=e;return l?b(i):s});return Ae(o,(s,l)=>{s!==l&&(r.value=-1,n(0,!0))}),{data:o,depthMap:a}},Hst=(e,t)=>e+t,MS=e=>We(e)?e.reduce(Hst,0):e,Xh=(e,t,r={})=>dt(e)?e(t):e??r,Qc=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=Hn(e[t])}),e),tae=e=>hn(e)?t=>et(e,t):e,Gst=(e,{columnsTotalWidth:t,data:r,fixedColumnsOnLeft:n,fixedColumnsOnRight:a})=>{const i=F(()=>{const{fixed:_,width:w,vScrollbarSize:x}=e,S=w-x;return _?Math.max(Math.round(b(t)),S):S}),o=F(()=>b(i)+(e.fixed?e.vScrollbarSize:0)),s=F(()=>{const{height:_=0,maxHeight:w=0,footerHeight:x,hScrollbarSize:S}=e;if(w>0){const T=b(v),A=b(l),M=b(h)+T+A+S;return Math.min(M,w-x)}return _-x}),l=F(()=>{const{rowHeight:_,estimatedRowHeight:w}=e,x=b(r);return ct(w)?x.length*w:x.length*_}),u=F(()=>{const{maxHeight:_}=e,w=b(s);if(ct(_)&&_>0)return w;const x=b(l)+b(h)+b(v);return Math.min(w,x)}),c=_=>_.width,f=F(()=>MS(b(n).map(c))),d=F(()=>MS(b(a).map(c))),h=F(()=>MS(e.headerHeight)),v=F(()=>{var _;return(((_=e.fixedData)==null?void 0:_.length)||0)*e.rowHeight}),p=F(()=>b(s)-b(h)-b(v)),g=F(()=>{const{style:_={},height:w,width:x}=e;return Qc({..._,height:w,width:x})}),m=F(()=>Qc({height:e.footerHeight})),y=F(()=>({top:Hn(b(h)),bottom:Hn(e.footerHeight),width:Hn(e.width)}));return{bodyWidth:i,fixedTableHeight:u,mainTableHeight:s,leftTableWidth:f,rightTableWidth:d,headerWidth:o,rowsHeight:l,windowHeight:p,footerHeight:m,emptyStyle:y,rootStyle:g,headerHeight:h}},Ust=e=>{const t=G(),r=G(0),n=G(0);let a;return xt(()=>{a=di(t,([i])=>{const{width:o,height:s}=i.contentRect,{paddingLeft:l,paddingRight:u,paddingTop:c,paddingBottom:f}=getComputedStyle(i.target),d=Number.parseInt(l)||0,h=Number.parseInt(u)||0,v=Number.parseInt(c)||0,p=Number.parseInt(f)||0;r.value=o-d-h,n.value=s-v-p}).stop}),un(()=>{a==null||a()}),Ae([r,n],([i,o])=>{var s;(s=e.onResize)==null||s.call(e,{width:i,height:o})}),{sizer:t,width:r,height:n}};function $st(e){const t=G(),r=G(),n=G(),{columns:a,columnsStyles:i,columnsTotalWidth:o,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:c,onColumnSorted:f}=Bst(e,Sn(e,"columns"),Sn(e,"fixed")),{scrollTo:d,scrollToLeft:h,scrollToTop:v,scrollToRow:p,onScroll:g,onVerticalScroll:m,scrollPos:y}=Fst(e,{mainTableRef:t,leftTableRef:r,rightTableRef:n,onMaybeEndReached:Y}),{expandedRowKeys:_,hoveringRowKey:w,lastRenderedRowIndex:x,isDynamic:S,isResetting:T,rowHeights:A,resetAfterIndex:C,onRowExpanded:M,onRowHeightChange:E,onRowHovered:D,onRowsRendered:P}=Vst(e,{mainTableRef:t,leftTableRef:r,rightTableRef:n}),{data:L,depthMap:I}=zst(e,{expandedRowKeys:_,lastRenderedRowIndex:x,resetAfterIndex:C}),{bodyWidth:O,fixedTableHeight:R,mainTableHeight:B,leftTableWidth:k,rightTableWidth:z,headerWidth:$,rowsHeight:j,windowHeight:X,footerHeight:Q,emptyStyle:se,rootStyle:ee,headerHeight:K}=Gst(e,{columnsTotalWidth:o,data:L,fixedColumnsOnLeft:s,fixedColumnsOnRight:l}),Z=yr(!1),ne=G(),re=F(()=>{const q=b(L).length===0;return We(e.fixedData)?e.fixedData.length===0&&q:q});function ie(q){const{estimatedRowHeight:oe,rowHeight:ve,rowKey:_e}=e;return oe?b(A)[b(L)[q][_e]]||oe:ve}function Y(){const{onEndReached:q}=e;if(!q)return;const{scrollTop:oe}=b(y),ve=b(j),_e=b(X),ge=ve-(oe+_e)+e.hScrollbarSize;b(x)>=0&&ve===oe+b(B)-b(K)&&q(ge)}return Ae(()=>e.expandedRowKeys,q=>_.value=q,{deep:!0}),{columns:a,containerRef:ne,mainTableRef:t,leftTableRef:r,rightTableRef:n,isDynamic:S,isResetting:T,isScrolling:Z,hoveringRowKey:w,hasFixedColumns:u,columnsStyles:i,columnsTotalWidth:o,data:L,expandedRowKeys:_,depthMap:I,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,mainColumns:c,bodyWidth:O,emptyStyle:se,rootStyle:ee,headerWidth:$,footerHeight:Q,mainTableHeight:B,fixedTableHeight:R,leftTableWidth:k,rightTableWidth:z,showEmpty:re,getRowHeight:ie,onColumnSorted:f,onRowHovered:D,onRowExpanded:M,onRowsRendered:P,onRowHeightChange:E,scrollTo:d,scrollToLeft:h,scrollToTop:v,scrollToRow:p,onScroll:g,onVerticalScroll:m}}const Y3=Symbol("tableV2"),rae=String,N1={type:fe(Array),required:!0},j3={type:fe(Array)},nae={...j3,required:!0},Wst=String,JU={type:fe(Array),default:()=>mn([])},Kd={type:Number,required:!0},aae={type:fe([String,Number,Symbol]),default:"id"},e$={type:fe(Object)},ch=Oe({class:String,columns:N1,columnsStyles:{type:fe(Object),required:!0},depth:Number,expandColumnKey:Wst,estimatedRowHeight:{...Ph.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:fe(Function)},onRowHover:{type:fe(Function)},onRowHeightChange:{type:fe(Function)},rowData:{type:fe(Object),required:!0},rowEventHandlers:{type:fe(Object)},rowIndex:{type:Number,required:!0},rowKey:aae,style:{type:fe(Object)}}),qM={type:Number,required:!0},K3=Oe({class:String,columns:N1,fixedHeaderData:{type:fe(Array)},headerData:{type:fe(Array),required:!0},headerHeight:{type:fe([Number,Array]),default:50},rowWidth:qM,rowHeight:{type:Number,default:50},height:qM,width:qM}),DS=Oe({columns:N1,data:nae,fixedData:j3,estimatedRowHeight:ch.estimatedRowHeight,width:Kd,height:Kd,headerWidth:Kd,headerHeight:K3.headerHeight,bodyWidth:Kd,rowHeight:Kd,cache:Ene.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Ph.scrollbarAlwaysOn,scrollbarStartGap:Ph.scrollbarStartGap,scrollbarEndGap:Ph.scrollbarEndGap,class:rae,style:e$,containerStyle:e$,getRowHeight:{type:fe(Function),required:!0},rowKey:ch.rowKey,onRowsRendered:{type:fe(Function)},onScroll:{type:fe(Function)}}),Yst=Oe({cache:DS.cache,estimatedRowHeight:ch.estimatedRowHeight,rowKey:aae,headerClass:{type:fe([String,Function])},headerProps:{type:fe([Object,Function])},headerCellProps:{type:fe([Object,Function])},headerHeight:K3.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:fe([String,Function])},rowProps:{type:fe([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:fe([Object,Function])},columns:N1,data:nae,dataGetter:{type:fe(Function)},fixedData:j3,expandColumnKey:ch.expandColumnKey,expandedRowKeys:JU,defaultExpandedRowKeys:JU,class:rae,fixed:Boolean,style:{type:fe(Object)},width:Kd,height:Kd,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Ph.hScrollbarSize,vScrollbarSize:Ph.vScrollbarSize,scrollbarAlwaysOn:Pne.alwaysOn,sortBy:{type:fe(Object),default:()=>({})},sortState:{type:fe(Object),default:void 0},onColumnSort:{type:fe(Function)},onExpandedRowsChange:{type:fe(Function)},onEndReached:{type:fe(Function)},onRowExpand:ch.onRowExpand,onScroll:DS.onScroll,onRowsRendered:DS.onRowsRendered,rowEventHandlers:ch.rowEventHandlers}),X3=(e,{slots:t})=>{var r;const{cellData:n,style:a}=e,i=((r=n==null?void 0:n.toString)==null?void 0:r.call(n))||"";return J("div",{class:e.class,title:i,style:a},[t.default?t.default(e):i])};X3.displayName="ElTableV2Cell";X3.inheritAttrs=!1;const Z3=(e,{slots:t})=>{var r,n;return t.default?t.default(e):J("div",{class:e.class,title:(r=e.column)==null?void 0:r.title},[(n=e.column)==null?void 0:n.title])};Z3.displayName="ElTableV2HeaderCell";Z3.inheritAttrs=!1;const jst=Oe({class:String,columns:N1,columnsStyles:{type:fe(Object),required:!0},headerIndex:Number,style:{type:fe(Object)}}),Kst=te({name:"ElTableV2HeaderRow",props:jst,setup(e,{slots:t}){return()=>{const{columns:r,columnsStyles:n,headerIndex:a,style:i}=e;let o=r.map((s,l)=>t.cell({columns:r,column:s,columnIndex:l,headerIndex:a,style:n[s.key]}));return t.header&&(o=t.header({cells:o.map(s=>We(s)&&s.length===1?s[0]:s),columns:r,headerIndex:a})),J("div",{class:e.class,style:i,role:"row"},[o])}}}),Xst="ElTableV2Header",Zst=te({name:Xst,props:K3,setup(e,{slots:t,expose:r}){const n=Ce("table-v2"),a=G(),i=F(()=>Qc({width:e.width,height:e.height})),o=F(()=>Qc({width:e.rowWidth,height:e.height})),s=F(()=>jh(b(e.headerHeight))),l=f=>{const d=b(a);qe(()=>{d!=null&&d.scroll&&d.scroll({left:f})})},u=()=>{const f=n.e("fixed-header-row"),{columns:d,fixedHeaderData:h,rowHeight:v}=e;return h==null?void 0:h.map((p,g)=>{var m;const y=Qc({height:v,width:"100%"});return(m=t.fixed)==null?void 0:m.call(t,{class:f,columns:d,rowData:p,rowIndex:-(g+1),style:y})})},c=()=>{const f=n.e("dynamic-header-row"),{columns:d}=e;return b(s).map((h,v)=>{var p;const g=Qc({width:"100%",height:h});return(p=t.dynamic)==null?void 0:p.call(t,{class:f,columns:d,headerIndex:v,style:g})})};return r({scrollToLeft:l}),()=>{if(!(e.height<=0))return J("div",{ref:a,class:e.class,style:b(i),role:"rowgroup"},[J("div",{style:b(o),class:n.e("header")},[c(),u()])])}}}),qst=e=>{const{isScrolling:t}=Ye(Y3),r=G(!1),n=G(),a=F(()=>ct(e.estimatedRowHeight)&&e.rowIndex>=0),i=(l=!1)=>{const u=b(n);if(!u)return;const{columns:c,onRowHeightChange:f,rowKey:d,rowIndex:h,style:v}=e,{height:p}=u.getBoundingClientRect();r.value=!0,qe(()=>{if(l||p!==Number.parseInt(v.height)){const g=c[0],m=(g==null?void 0:g.placeholderSign)===D_;f==null||f({rowKey:d,height:p,rowIndex:h},g&&!m&&g.fixed)}})},o=F(()=>{const{rowData:l,rowIndex:u,rowKey:c,onRowHover:f}=e,d=e.rowEventHandlers||{},h={};return Object.entries(d).forEach(([v,p])=>{dt(p)&&(h[v]=g=>{p({event:g,rowData:l,rowIndex:u,rowKey:c})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:v,hovered:p})=>{const g=h[v];h[v]=m=>{f({event:m,hovered:p,rowData:l,rowIndex:u,rowKey:c}),g==null||g(m)}}),h}),s=l=>{const{onRowExpand:u,rowData:c,rowIndex:f,rowKey:d}=e;u==null||u({expanded:l,rowData:c,rowIndex:f,rowKey:d})};return xt(()=>{b(a)&&i(!0)}),{isScrolling:t,measurable:a,measured:r,rowRef:n,eventHandlers:o,onExpand:s}},Qst="ElTableV2TableRow",Jst=te({name:Qst,props:ch,setup(e,{expose:t,slots:r,attrs:n}){const{eventHandlers:a,isScrolling:i,measurable:o,measured:s,rowRef:l,onExpand:u}=qst(e);return t({onExpand:u}),()=>{const{columns:c,columnsStyles:f,expandColumnKey:d,depth:h,rowData:v,rowIndex:p,style:g}=e;let m=c.map((y,_)=>{const w=We(v.children)&&v.children.length>0&&y.key===d;return r.cell({column:y,columns:c,columnIndex:_,depth:h,style:f[y.key],rowData:v,rowIndex:p,isScrolling:b(i),expandIconProps:w?{rowData:v,rowIndex:p,onExpand:u}:void 0})});if(r.row&&(m=r.row({cells:m.map(y=>We(y)&&y.length===1?y[0]:y),style:g,columns:c,depth:h,rowData:v,rowIndex:p,isScrolling:b(i)})),b(o)){const{height:y,..._}=g||{},w=b(s);return J("div",Ut({ref:l,class:e.class,style:w?g:_,role:"row"},n,b(a)),[m])}return J("div",Ut(n,{ref:l,class:e.class,style:g,role:"row"},b(a)),[m])}}}),elt=e=>{const{sortOrder:t}=e;return J(Ze,{size:14,class:e.class},{default:()=>[t===E_.ASC?J(DUe,null,null):J(EUe,null,null)]})},tlt=e=>{const{expanded:t,expandable:r,onExpand:n,style:a,size:i}=e,o={onClick:r?()=>n(!t):void 0,class:e.class};return J(Ze,Ut(o,{size:i,style:a}),{default:()=>[J(Mi,null,null)]})},rlt="ElTableV2Grid",nlt=e=>{const t=G(),r=G(),n=F(()=>{const{data:p,rowHeight:g,estimatedRowHeight:m}=e;if(!m)return p.length*g}),a=F(()=>{const{fixedData:p,rowHeight:g}=e;return((p==null?void 0:p.length)||0)*g}),i=F(()=>MS(e.headerHeight)),o=F(()=>{const{height:p}=e;return Math.max(0,p-b(i)-b(a))}),s=F(()=>b(i)+b(a)>0),l=({data:p,rowIndex:g})=>p[g][e.rowKey];function u({rowCacheStart:p,rowCacheEnd:g,rowVisibleStart:m,rowVisibleEnd:y}){var _;(_=e.onRowsRendered)==null||_.call(e,{rowCacheStart:p,rowCacheEnd:g,rowVisibleStart:m,rowVisibleEnd:y})}function c(p,g){var m;(m=r.value)==null||m.resetAfterRowIndex(p,g)}function f(p,g){const m=b(t),y=b(r);!m||!y||(Vt(p)?(m.scrollToLeft(p.scrollLeft),y.scrollTo(p)):(m.scrollToLeft(p),y.scrollTo({scrollLeft:p,scrollTop:g})))}function d(p){var g;(g=b(r))==null||g.scrollTo({scrollTop:p})}function h(p,g){var m;(m=b(r))==null||m.scrollToItem(p,1,g)}function v(){var p,g;(p=b(r))==null||p.$forceUpdate(),(g=b(t))==null||g.$forceUpdate()}return{bodyRef:r,forceUpdate:v,fixedRowHeight:a,gridHeight:o,hasHeader:s,headerHeight:i,headerRef:t,totalHeight:n,itemKey:l,onItemRendered:u,resetAfterRowIndex:c,scrollTo:f,scrollToTop:d,scrollToRow:h}},q3=te({name:rlt,props:DS,setup(e,{slots:t,expose:r}){const{ns:n}=Ye(Y3),{bodyRef:a,fixedRowHeight:i,gridHeight:o,hasHeader:s,headerRef:l,headerHeight:u,totalHeight:c,forceUpdate:f,itemKey:d,onItemRendered:h,resetAfterRowIndex:v,scrollTo:p,scrollToTop:g,scrollToRow:m}=nlt(e);r({forceUpdate:f,totalHeight:c,scrollTo:p,scrollToTop:g,scrollToRow:m,resetAfterRowIndex:v});const y=()=>e.bodyWidth;return()=>{const{cache:_,columns:w,data:x,fixedData:S,useIsScrolling:T,scrollbarAlwaysOn:A,scrollbarEndGap:C,scrollbarStartGap:M,style:E,rowHeight:D,bodyWidth:P,estimatedRowHeight:L,headerWidth:I,height:O,width:R,getRowHeight:B,onScroll:k}=e,z=ct(L),$=z?Oat:Pat,j=b(u);return J("div",{role:"table",class:[n.e("table"),e.class],style:E},[J($,{ref:a,data:x,useIsScrolling:T,itemKey:d,columnCache:0,columnWidth:z?y:P,totalColumn:1,totalRow:x.length,rowCache:_,rowHeight:z?B:D,width:R,height:b(o),class:n.e("body"),role:"rowgroup",scrollbarStartGap:M,scrollbarEndGap:C,scrollbarAlwaysOn:A,onScroll:k,onItemRendered:h,perfMode:!1},{default:X=>{var Q;const se=x[X.rowIndex];return(Q=t.row)==null?void 0:Q.call(t,{...X,columns:w,rowData:se})}}),b(s)&&J(Zst,{ref:l,class:n.e("header-wrapper"),columns:w,headerData:x,headerHeight:e.headerHeight,fixedHeaderData:S,rowWidth:I,rowHeight:D,width:R,height:Math.min(j+b(i),O)},{dynamic:t.header,fixed:t.row})])}}});function alt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!hn(e)}const ilt=(e,{slots:t})=>{const{mainTableRef:r,...n}=e;return J(q3,Ut({ref:r},n),alt(t)?t:{default:()=>[t]})};function olt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!hn(e)}const slt=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:r,...n}=e;return J(q3,Ut({ref:r},n),olt(t)?t:{default:()=>[t]})};function llt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!hn(e)}const ult=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:r,...n}=e;return J(q3,Ut({ref:r},n),llt(t)?t:{default:()=>[t]})};function clt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!hn(e)}const flt=(e,{slots:t})=>{const{columns:r,columnsStyles:n,depthMap:a,expandColumnKey:i,expandedRowKeys:o,estimatedRowHeight:s,hasFixedColumns:l,hoveringRowKey:u,rowData:c,rowIndex:f,style:d,isScrolling:h,rowProps:v,rowClass:p,rowKey:g,rowEventHandlers:m,ns:y,onRowHovered:_,onRowExpanded:w}=e,x=Xh(p,{columns:r,rowData:c,rowIndex:f},""),S=Xh(v,{columns:r,rowData:c,rowIndex:f}),T=c[g],A=a[T]||0,C=!!i,M=f<0,E=[y.e("row"),x,{[y.e(`row-depth-${A}`)]:C&&f>=0,[y.is("expanded")]:C&&o.includes(T),[y.is("hovered")]:!h&&T===u,[y.is("fixed")]:!A&&M,[y.is("customized")]:!!t.row}],D=l?_:void 0,P={...S,columns:r,columnsStyles:n,class:E,depth:A,expandColumnKey:i,estimatedRowHeight:M?void 0:s,isScrolling:h,rowIndex:f,rowData:c,rowKey:T,rowEventHandlers:m,style:d};return J(Jst,Ut(P,{onRowHover:D,onRowExpand:w}),clt(t)?t:{default:()=>[t]})},FI=({columns:e,column:t,columnIndex:r,depth:n,expandIconProps:a,isScrolling:i,rowData:o,rowIndex:s,style:l,expandedRowKeys:u,ns:c,cellProps:f,expandColumnKey:d,indentSize:h,iconSize:v,rowKey:p},{slots:g})=>{const m=Qc(l);if(t.placeholderSign===D_)return J("div",{class:c.em("row-cell","placeholder"),style:m},null);const{cellRenderer:y,dataKey:_,dataGetter:w}=t,S=tae(y)||g.default||(O=>J(X3,O,null)),T=dt(w)?w({columns:e,column:t,columnIndex:r,rowData:o,rowIndex:s}):gn(o,_??""),A=Xh(f,{cellData:T,columns:e,column:t,columnIndex:r,rowIndex:s,rowData:o}),C={class:c.e("cell-text"),columns:e,column:t,columnIndex:r,cellData:T,isScrolling:i,rowData:o,rowIndex:s},M=S(C),E=[c.e("row-cell"),t.class,t.align===M_.CENTER&&c.is("align-center"),t.align===M_.RIGHT&&c.is("align-right")],D=s>=0&&d&&t.key===d,P=s>=0&&u.includes(o[p]);let L;const I=`margin-inline-start: ${n*h}px;`;return D&&(Vt(a)?L=J(tlt,Ut(a,{class:[c.e("expand-icon"),c.is("expanded",P)],size:v,expanded:P,style:I,expandable:!0}),null):L=J("div",{style:[I,`width: ${v}px; height: ${v}px;`].join(" ")},null)),J("div",Ut({class:E,style:m},A,{role:"cell"}),[L,M])};FI.inheritAttrs=!1;function dlt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!hn(e)}const hlt=({columns:e,columnsStyles:t,headerIndex:r,style:n,headerClass:a,headerProps:i,ns:o},{slots:s})=>{const l={columns:e,headerIndex:r},u=[o.e("header-row"),Xh(a,l,""),{[o.is("customized")]:!!s.header}],c={...Xh(i,l),columnsStyles:t,class:u,columns:e,headerIndex:r,style:n};return J(Kst,c,dlt(s)?s:{default:()=>[s]})},t$=(e,{slots:t})=>{const{column:r,ns:n,style:a,onColumnSorted:i}=e,o=Qc(a);if(r.placeholderSign===D_)return J("div",{class:n.em("header-row-cell","placeholder"),style:o},null);const{headerCellRenderer:s,headerClass:l,sortable:u}=r,c={...e,class:n.e("header-cell-text")},d=(tae(s)||t.default||(w=>J(Z3,w,null)))(c),{sortBy:h,sortState:v,headerCellProps:p}=e;let g,m;if(v){const w=v[r.key];g=!!BI[w],m=g?w:E_.ASC}else g=r.key===h.key,m=g?h.order:E_.ASC;const y=[n.e("header-cell"),Xh(l,e,""),r.align===M_.CENTER&&n.is("align-center"),r.align===M_.RIGHT&&n.is("align-right"),u&&n.is("sortable")],_={...Xh(p,e),onClick:r.sortable?i:void 0,class:y,style:o,"data-key":r.key};return J("div",Ut(_,{role:"columnheader"}),[d,u&&J(elt,{class:[n.e("sort-icon"),g&&n.is("sorting")],sortOrder:m},null)])},iae=(e,{slots:t})=>{var r;return J("div",{class:e.class,style:e.style},[(r=t.default)==null?void 0:r.call(t)])};iae.displayName="ElTableV2Footer";const oae=(e,{slots:t})=>J("div",{class:e.class,style:e.style},[t.default?t.default():J(dne,null,null)]);oae.displayName="ElTableV2Empty";const sae=(e,{slots:t})=>{var r;return J("div",{class:e.class,style:e.style},[(r=t.default)==null?void 0:r.call(t)])};sae.displayName="ElTableV2Overlay";function ty(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!hn(e)}const vlt="ElTableV2",plt=te({name:vlt,props:Yst,setup(e,{slots:t,expose:r}){const n=Ce("table-v2"),{columnsStyles:a,fixedColumnsOnLeft:i,fixedColumnsOnRight:o,mainColumns:s,mainTableHeight:l,fixedTableHeight:u,leftTableWidth:c,rightTableWidth:f,data:d,depthMap:h,expandedRowKeys:v,hasFixedColumns:p,hoveringRowKey:g,mainTableRef:m,leftTableRef:y,rightTableRef:_,isDynamic:w,isResetting:x,isScrolling:S,bodyWidth:T,emptyStyle:A,rootStyle:C,headerWidth:M,footerHeight:E,showEmpty:D,scrollTo:P,scrollToLeft:L,scrollToTop:I,scrollToRow:O,getRowHeight:R,onColumnSorted:B,onRowHeightChange:k,onRowHovered:z,onRowExpanded:$,onRowsRendered:j,onScroll:X,onVerticalScroll:Q}=$st(e);return r({scrollTo:P,scrollToLeft:L,scrollToTop:I,scrollToRow:O}),Wt(Y3,{ns:n,isResetting:x,hoveringRowKey:g,isScrolling:S}),()=>{const{cache:se,cellProps:ee,estimatedRowHeight:K,expandColumnKey:Z,fixedData:ne,headerHeight:re,headerClass:ie,headerProps:Y,headerCellProps:q,sortBy:oe,sortState:ve,rowHeight:_e,rowClass:ge,rowEventHandlers:Le,rowKey:Se,rowProps:xe,scrollbarAlwaysOn:Te,indentSize:Ve,iconSize:He,useIsScrolling:je,vScrollbarSize:Pe,width:Ue}=e,gt=b(d),At={cache:se,class:n.e("main"),columns:b(s),data:gt,fixedData:ne,estimatedRowHeight:K,bodyWidth:b(T)+Pe,headerHeight:re,headerWidth:b(M),height:b(l),mainTableRef:m,rowKey:Se,rowHeight:_e,scrollbarAlwaysOn:Te,scrollbarStartGap:2,scrollbarEndGap:Pe,useIsScrolling:je,width:Ue,getRowHeight:R,onRowsRendered:j,onScroll:X},Gt=b(c),tt=b(u),be={cache:se,class:n.e("left"),columns:b(i),data:gt,estimatedRowHeight:K,leftTableRef:y,rowHeight:_e,bodyWidth:Gt,headerWidth:Gt,headerHeight:re,height:tt,rowKey:Se,scrollbarAlwaysOn:Te,scrollbarStartGap:2,scrollbarEndGap:Pe,useIsScrolling:je,width:Gt,getRowHeight:R,onScroll:Q},de=b(f)+Pe,Me={cache:se,class:n.e("right"),columns:b(o),data:gt,estimatedRowHeight:K,rightTableRef:_,rowHeight:_e,bodyWidth:de,headerWidth:de,headerHeight:re,height:tt,rowKey:Se,scrollbarAlwaysOn:Te,scrollbarStartGap:2,scrollbarEndGap:Pe,width:de,style:`--${b(n.namespace)}-table-scrollbar-size: ${Pe}px`,useIsScrolling:je,getRowHeight:R,onScroll:Q},ae=b(a),Ge={ns:n,depthMap:b(h),columnsStyles:ae,expandColumnKey:Z,expandedRowKeys:b(v),estimatedRowHeight:K,hasFixedColumns:b(p),hoveringRowKey:b(g),rowProps:xe,rowClass:ge,rowKey:Se,rowEventHandlers:Le,onRowHovered:z,onRowExpanded:$,onRowHeightChange:k},St={cellProps:ee,expandColumnKey:Z,indentSize:Ve,iconSize:He,rowKey:Se,expandedRowKeys:b(v),ns:n},Kt={ns:n,headerClass:ie,headerProps:Y,columnsStyles:ae},Xn={ns:n,sortBy:oe,sortState:ve,headerCellProps:q,onColumnSorted:B},An={row:we=>J(flt,Ut(we,Ge),{row:t.row,cell:ze=>{let pt;return t.cell?J(FI,Ut(ze,St,{style:ae[ze.column.key]}),ty(pt=t.cell(ze))?pt:{default:()=>[pt]}):J(FI,Ut(ze,St,{style:ae[ze.column.key]}),null)}}),header:we=>J(hlt,Ut(we,Kt),{header:t.header,cell:ze=>{let pt;return t["header-cell"]?J(t$,Ut(ze,Xn,{style:ae[ze.column.key]}),ty(pt=t["header-cell"](ze))?pt:{default:()=>[pt]}):J(t$,Ut(ze,Xn,{style:ae[ze.column.key]}),null)}})},Io=[e.class,n.b(),n.e("root"),{[n.is("dynamic")]:b(w)}],Ya={class:n.e("footer"),style:b(E)};return J("div",{class:Io,style:b(C)},[J(ilt,At,ty(An)?An:{default:()=>[An]}),J(slt,be,ty(An)?An:{default:()=>[An]}),J(ult,Me,ty(An)?An:{default:()=>[An]}),t.footer&&J(iae,Ya,{default:t.footer}),b(D)&&J(oae,{class:n.e("empty"),style:b(A)},{default:t.empty}),t.overlay&&J(sae,{class:n.e("overlay")},{default:t.overlay})])}}}),glt=Oe({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:fe(Function)}}),mlt=te({name:"ElAutoResizer",props:glt,setup(e,{slots:t}){const r=Ce("auto-resizer"),{height:n,width:a,sizer:i}=Ust(e),o={width:"100%",height:"100%"};return()=>{var s;return J("div",{ref:i,class:r.b(),style:o},[(s=t.default)==null?void 0:s.call(t,{height:n.value,width:a.value})])}}}),ylt=kt(plt),_lt=kt(mlt),kT=Symbol("tabsRootContextKey"),blt=Oe({tabs:{type:fe(Array),default:()=>mn([])}}),lae="ElTabBar",wlt=te({name:lae}),Slt=te({...wlt,props:blt,setup(e,{expose:t}){const r=e,n=It(),a=Ye(kT);a||ua(lae,"");const i=Ce("tabs"),o=G(),s=G(),l=()=>{let c=0,f=0;const d=["top","bottom"].includes(a.props.tabPosition)?"width":"height",h=d==="width"?"x":"y",v=h==="x"?"left":"top";return r.tabs.every(p=>{var g,m;const y=(m=(g=n.parent)==null?void 0:g.refs)==null?void 0:m[`tab-${p.uid}`];if(!y)return!1;if(!p.active)return!0;c=y[`offset${Tl(v)}`],f=y[`client${Tl(d)}`];const _=window.getComputedStyle(y);return d==="width"&&(r.tabs.length>1&&(f-=Number.parseFloat(_.paddingLeft)+Number.parseFloat(_.paddingRight)),c+=Number.parseFloat(_.paddingLeft)),!1}),{[d]:`${f}px`,transform:`translate${Tl(h)}(${c}px)`}},u=()=>s.value=l();return Ae(()=>r.tabs,async()=>{await qe(),u()},{immediate:!0}),di(o,()=>u()),t({ref:o,update:u}),(c,f)=>(N(),U("div",{ref_key:"barRef",ref:o,class:H([b(i).e("active-bar"),b(i).is(b(a).props.tabPosition)]),style:Xe(s.value)},null,6))}});var xlt=ke(Slt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const Alt=Oe({panes:{type:fe(Array),default:()=>mn([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),Tlt={tabClick:(e,t,r)=>r instanceof Event,tabRemove:(e,t)=>t instanceof Event},r$="ElTabNav",Clt=te({name:r$,props:Alt,emits:Tlt,setup(e,{expose:t,emit:r}){const n=It(),a=Ye(kT);a||ua(r$,"");const i=Ce("tabs"),o=rFe(),s=gFe(),l=G(),u=G(),c=G(),f=G(),d=G(!1),h=G(0),v=G(!1),p=G(!0),g=F(()=>["top","bottom"].includes(a.props.tabPosition)?"width":"height"),m=F(()=>({transform:`translate${g.value==="width"?"X":"Y"}(-${h.value}px)`})),y=()=>{if(!l.value)return;const C=l.value[`offset${Tl(g.value)}`],M=h.value;if(!M)return;const E=M>C?M-C:0;h.value=E},_=()=>{if(!l.value||!u.value)return;const C=u.value[`offset${Tl(g.value)}`],M=l.value[`offset${Tl(g.value)}`],E=h.value;if(C-E<=M)return;const D=C-E>M*2?E+M:C-M;h.value=D},w=async()=>{const C=u.value;if(!d.value||!c.value||!l.value||!C)return;await qe();const M=c.value.querySelector(".is-active");if(!M)return;const E=l.value,D=["top","bottom"].includes(a.props.tabPosition),P=M.getBoundingClientRect(),L=E.getBoundingClientRect(),I=D?C.offsetWidth-L.width:C.offsetHeight-L.height,O=h.value;let R=O;D?(P.leftL.right&&(R=O+P.right-L.right)):(P.topL.bottom&&(R=O+(P.bottom-L.bottom))),R=Math.max(R,0),h.value=Math.min(R,I)},x=()=>{var C;if(!u.value||!l.value)return;e.stretch&&((C=f.value)==null||C.update());const M=u.value[`offset${Tl(g.value)}`],E=l.value[`offset${Tl(g.value)}`],D=h.value;E0&&(h.value=0))},S=C=>{const M=C.code,{up:E,down:D,left:P,right:L}=Qe;if(![E,D,P,L].includes(M))return;const I=Array.from(C.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),O=I.indexOf(C.target);let R;M===P||M===E?O===0?R=I.length-1:R=O-1:O{p.value&&(v.value=!0)},A=()=>v.value=!1;return Ae(o,C=>{C==="hidden"?p.value=!1:C==="visible"&&setTimeout(()=>p.value=!0,50)}),Ae(s,C=>{C?setTimeout(()=>p.value=!0,50):p.value=!1}),di(c,x),xt(()=>setTimeout(()=>w(),0)),qu(()=>x()),t({scrollToActiveTab:w,removeFocus:A}),Ae(()=>e.panes,()=>n.update(),{flush:"post",deep:!0}),()=>{const C=d.value?[J("span",{class:[i.e("nav-prev"),i.is("disabled",!d.value.prev)],onClick:y},[J(Ze,null,{default:()=>[J(Tf,null,null)]})]),J("span",{class:[i.e("nav-next"),i.is("disabled",!d.value.next)],onClick:_},[J(Ze,null,{default:()=>[J(Mi,null,null)]})])]:null,M=e.panes.map((E,D)=>{var P,L,I,O;const R=E.uid,B=E.props.disabled,k=(L=(P=E.props.name)!=null?P:E.index)!=null?L:`${D}`,z=!B&&(E.isClosable||e.editable);E.index=`${D}`;const $=z?J(Ze,{class:"is-icon-close",onClick:Q=>r("tabRemove",E,Q)},{default:()=>[J(el,null,null)]}):null,j=((O=(I=E.slots).label)==null?void 0:O.call(I))||E.props.label,X=!B&&E.active?0:-1;return J("div",{ref:`tab-${R}`,class:[i.e("item"),i.is(a.props.tabPosition),i.is("active",E.active),i.is("disabled",B),i.is("closable",z),i.is("focus",v.value)],id:`tab-${k}`,key:`tab-${R}`,"aria-controls":`pane-${k}`,role:"tab","aria-selected":E.active,tabindex:X,onFocus:()=>T(),onBlur:()=>A(),onClick:Q=>{A(),r("tabClick",E,k,Q)},onKeydown:Q=>{z&&(Q.code===Qe.delete||Q.code===Qe.backspace)&&r("tabRemove",E,Q)}},[j,$])});return J("div",{ref:c,class:[i.e("nav-wrap"),i.is("scrollable",!!d.value),i.is(a.props.tabPosition)]},[C,J("div",{class:i.e("nav-scroll"),ref:l},[J("div",{class:[i.e("nav"),i.is(a.props.tabPosition),i.is("stretch",e.stretch&&["top","bottom"].includes(a.props.tabPosition))],ref:u,style:m.value,role:"tablist",onKeydown:S},[e.type?null:J(xlt,{ref:f,tabs:[...e.panes]},null),M])])])}}}),Elt=Oe({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:fe(Function),default:()=>!0},stretch:Boolean}),QM=e=>wt(e)||ct(e),Mlt={[Nt]:e=>QM(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>QM(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>QM(e),tabAdd:()=>!0},Dlt=te({name:"ElTabs",props:Elt,emits:Mlt,setup(e,{emit:t,slots:r,expose:n}){var a,i;const o=Ce("tabs"),{children:s,addChild:l,removeChild:u}=_3(It(),"ElTabPane"),c=G(),f=G((i=(a=e.modelValue)!=null?a:e.activeName)!=null?i:"0"),d=async(g,m=!1)=>{var y,_,w;if(!(f.value===g||oa(g)))try{await((y=e.beforeLeave)==null?void 0:y.call(e,g,f.value))!==!1&&(f.value=g,m&&(t(Nt,g),t("tabChange",g)),(w=(_=c.value)==null?void 0:_.removeFocus)==null||w.call(_))}catch{}},h=(g,m,y)=>{g.props.disabled||(d(m,!0),t("tabClick",g,y))},v=(g,m)=>{g.props.disabled||oa(g.props.name)||(m.stopPropagation(),t("edit",g.props.name,"remove"),t("tabRemove",g.props.name))},p=()=>{t("edit",void 0,"add"),t("tabAdd")};return Ul({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},F(()=>!!e.activeName)),Ae(()=>e.activeName,g=>d(g)),Ae(()=>e.modelValue,g=>d(g)),Ae(f,async()=>{var g;await qe(),(g=c.value)==null||g.scrollToActiveTab()}),Wt(kT,{props:e,currentName:f,registerPane:l,unregisterPane:u}),n({currentName:f}),()=>{const g=r.addIcon,m=e.editable||e.addable?J("span",{class:o.e("new-tab"),tabindex:"0",onClick:p,onKeydown:w=>{w.code===Qe.enter&&p()}},[g?ye(r,"addIcon"):J(Ze,{class:o.is("icon-plus")},{default:()=>[J(Oee,null,null)]})]):null,y=J("div",{class:[o.e("header"),o.is(e.tabPosition)]},[m,J(Clt,{ref:c,currentName:f.value,editable:e.editable,type:e.type,panes:s.value,stretch:e.stretch,onTabClick:h,onTabRemove:v},null)]),_=J("div",{class:o.e("content")},[ye(r,"default")]);return J("div",{class:[o.b(),o.m(e.tabPosition),{[o.m("card")]:e.type==="card",[o.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[y,_]:[_,y]])}}}),Plt=Oe({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),Llt=["id","aria-hidden","aria-labelledby"],uae="ElTabPane",Ilt=te({name:uae}),Rlt=te({...Ilt,props:Plt,setup(e){const t=e,r=It(),n=$a(),a=Ye(kT);a||ua(uae,"usage: ");const i=Ce("tab-pane"),o=G(),s=F(()=>t.closable||a.props.closable),l=OH(()=>{var h;return a.currentName.value===((h=t.name)!=null?h:o.value)}),u=G(l.value),c=F(()=>{var h;return(h=t.name)!=null?h:o.value}),f=OH(()=>!t.lazy||u.value||l.value);Ae(l,h=>{h&&(u.value=!0)});const d=Ar({uid:r.uid,slots:n,props:t,paneName:c,active:l,index:o,isClosable:s});return xt(()=>{a.registerPane(d)}),Xl(()=>{a.unregisterPane(d.uid)}),(h,v)=>b(f)?Ct((N(),U("div",{key:0,id:`pane-${b(c)}`,class:H(b(i).b()),role:"tabpanel","aria-hidden":!b(l),"aria-labelledby":`tab-${b(c)}`},[ye(h.$slots,"default")],10,Llt)),[[hr,b(l)]]):ce("v-if",!0)}});var cae=ke(Rlt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const Olt=kt(Dlt,{TabPane:cae}),klt=Pn(cae),Nlt=Oe({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:tu,default:""},truncated:{type:Boolean},lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),Blt=te({name:"ElText"}),Flt=te({...Blt,props:Nlt,setup(e){const t=e,r=ca(),n=Ce("text"),a=F(()=>[n.b(),n.m(t.type),n.m(r.value),n.is("truncated",t.truncated),n.is("line-clamp",!oa(t.lineClamp))]);return(i,o)=>(N(),he(Ft(i.tag),{class:H(b(a)),style:Xe({"-webkit-line-clamp":i.lineClamp})},{default:le(()=>[ye(i.$slots,"default")]),_:3},8,["class","style"]))}});var Vlt=ke(Flt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const zlt=kt(Vlt),Hlt=Oe({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:Ga,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:fe([String,Object]),default:()=>Ree},clearIcon:{type:fe([String,Object]),default:()=>zf}}),wu=e=>{const t=(e||"").split(":");if(t.length>=2){let r=Number.parseInt(t[0],10);const n=Number.parseInt(t[1],10),a=e.toUpperCase();return a.includes("AM")&&r===12?r=0:a.includes("PM")&&r!==12&&(r+=12),{hours:r,minutes:n}}return null},JM=(e,t)=>{const r=wu(e);if(!r)return-1;const n=wu(t);if(!n)return-1;const a=r.minutes+r.hours*60,i=n.minutes+n.hours*60;return a===i?0:a>i?1:-1},n$=e=>`${e}`.padStart(2,"0"),sp=e=>`${n$(e.hours)}:${n$(e.minutes)}`,Glt=(e,t)=>{const r=wu(e);if(!r)return"";const n=wu(t);if(!n)return"";const a={hours:r.hours,minutes:r.minutes};return a.minutes+=n.minutes,a.hours+=n.hours,a.hours+=Math.floor(a.minutes/60),a.minutes=a.minutes%60,sp(a)},Ult=te({name:"ElTimeSelect"}),$lt=te({...Ult,props:Hlt,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:t}){const r=e;Rt.extend(T3);const{Option:n}=Kh,a=Ce("input"),i=G(),o=ho(),{lang:s}=fr(),l=F(()=>r.modelValue),u=F(()=>{const m=wu(r.start);return m?sp(m):null}),c=F(()=>{const m=wu(r.end);return m?sp(m):null}),f=F(()=>{const m=wu(r.step);return m?sp(m):null}),d=F(()=>{const m=wu(r.minTime||"");return m?sp(m):null}),h=F(()=>{const m=wu(r.maxTime||"");return m?sp(m):null}),v=F(()=>{const m=[];if(r.start&&r.end&&r.step){let y=u.value,_;for(;y&&c.value&&JM(y,c.value)<=0;)_=Rt(y,"HH:mm").locale(s.value).format(r.format),m.push({value:_,disabled:JM(y,d.value||"-1:-1")<=0||JM(y,h.value||"100:100")>=0}),y=Glt(y,f.value)}return m});return t({blur:()=>{var m,y;(y=(m=i.value)==null?void 0:m.blur)==null||y.call(m)},focus:()=>{var m,y;(y=(m=i.value)==null?void 0:m.focus)==null||y.call(m)}}),(m,y)=>(N(),he(b(Kh),{ref_key:"select",ref:i,"model-value":b(l),disabled:b(o),clearable:m.clearable,"clear-icon":m.clearIcon,size:m.size,effect:m.effect,placeholder:m.placeholder,"default-first-option":"",filterable:m.editable,"onUpdate:modelValue":y[0]||(y[0]=_=>m.$emit("update:modelValue",_)),onChange:y[1]||(y[1]=_=>m.$emit("change",_)),onBlur:y[2]||(y[2]=_=>m.$emit("blur",_)),onFocus:y[3]||(y[3]=_=>m.$emit("focus",_))},{prefix:le(()=>[m.prefixIcon?(N(),he(b(Ze),{key:0,class:H(b(a).e("prefix-icon"))},{default:le(()=>[(N(),he(Ft(m.prefixIcon)))]),_:1},8,["class"])):ce("v-if",!0)]),default:le(()=>[(N(!0),U(Be,null,ht(b(v),_=>(N(),he(b(n),{key:_.value,label:_.value,value:_.value,disabled:_.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var PS=ke($lt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);PS.install=e=>{e.component(PS.name,PS)};const Wlt=PS,Ylt=Wlt,jlt=te({name:"ElTimeline",setup(e,{slots:t}){const r=Ce("timeline");return Wt("timeline",t),()=>et("ul",{class:[r.b()]},[ye(t,"default")])}}),Klt=Oe({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},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:Zr},hollow:{type:Boolean,default:!1}}),Xlt=te({name:"ElTimelineItem"}),Zlt=te({...Xlt,props:Klt,setup(e){const t=e,r=Ce("timeline-item"),n=F(()=>[r.e("node"),r.em("node",t.size||""),r.em("node",t.type||""),r.is("hollow",t.hollow)]);return(a,i)=>(N(),U("li",{class:H([b(r).b(),{[b(r).e("center")]:a.center}])},[V("div",{class:H(b(r).e("tail"))},null,2),a.$slots.dot?ce("v-if",!0):(N(),U("div",{key:0,class:H(b(n)),style:Xe({backgroundColor:a.color})},[a.icon?(N(),he(b(Ze),{key:0,class:H(b(r).e("icon"))},{default:le(()=>[(N(),he(Ft(a.icon)))]),_:1},8,["class"])):ce("v-if",!0)],6)),a.$slots.dot?(N(),U("div",{key:1,class:H(b(r).e("dot"))},[ye(a.$slots,"dot")],2)):ce("v-if",!0),V("div",{class:H(b(r).e("wrapper"))},[!a.hideTimestamp&&a.placement==="top"?(N(),U("div",{key:0,class:H([b(r).e("timestamp"),b(r).is("top")])},me(a.timestamp),3)):ce("v-if",!0),V("div",{class:H(b(r).e("content"))},[ye(a.$slots,"default")],2),!a.hideTimestamp&&a.placement==="bottom"?(N(),U("div",{key:1,class:H([b(r).e("timestamp"),b(r).is("bottom")])},me(a.timestamp),3)):ce("v-if",!0)],2)],2))}});var fae=ke(Zlt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const qlt=kt(jlt,{TimelineItem:fae}),Qlt=Pn(fae),dae=Oe({nowrap:Boolean});var hae=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(hae||{});const Jlt=Object.values(hae),Q3=Oe({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:fe(Object),default:null}}),eut=Oe({side:{type:fe(String),values:Jlt,required:!0}}),tut=["absolute","fixed"],rut=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],J3=Oe({ariaLabel:String,arrowPadding:{type:fe(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:fe(String),values:rut,default:"bottom"},reference:{type:fe(Object),default:null},offset:{type:Number,default:8},strategy:{type:fe(String),values:tut,default:"absolute"},showArrow:{type:Boolean,default:!1}}),e4=Oe({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:fe(Function)},"onUpdate:open":{type:fe(Function)}}),Uv={type:fe(Function)},t4=Oe({onBlur:Uv,onClick:Uv,onFocus:Uv,onMouseDown:Uv,onMouseEnter:Uv,onMouseLeave:Uv}),nut=Oe({...e4,...Q3,...t4,...J3,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:fe(Object),default:null},teleported:Boolean,to:{type:fe(String),default:"body"}}),NT=Symbol("tooltipV2"),vae=Symbol("tooltipV2Content"),eD="tooltip_v2.open",aut=te({name:"ElTooltipV2Root"}),iut=te({...aut,props:e4,setup(e,{expose:t}){const r=e,n=G(r.defaultOpen),a=G(null),i=F({get:()=>CGe(r.open)?n.value:r.open,set:g=>{var m;n.value=g,(m=r["onUpdate:open"])==null||m.call(r,g)}}),o=F(()=>ct(r.delayDuration)&&r.delayDuration>0),{start:s,stop:l}=Wh(()=>{i.value=!0},F(()=>r.delayDuration),{immediate:!1}),u=Ce("tooltip-v2"),c=co(),f=()=>{l(),i.value=!0},d=()=>{b(o)?s():f()},h=f,v=()=>{l(),i.value=!1};return Ae(i,g=>{var m;g&&(document.dispatchEvent(new CustomEvent(eD)),h()),(m=r.onOpenChange)==null||m.call(r,g)}),xt(()=>{document.addEventListener(eD,v)}),un(()=>{l(),document.removeEventListener(eD,v)}),Wt(NT,{contentId:c,triggerRef:a,ns:u,onClose:v,onDelayOpen:d,onOpen:h}),t({onOpen:h,onClose:v}),(g,m)=>ye(g.$slots,"default",{open:b(i)})}});var out=ke(iut,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const sut=te({name:"ElTooltipV2Arrow"}),lut=te({...sut,props:{...Q3,...eut},setup(e){const t=e,{ns:r}=Ye(NT),{arrowRef:n}=Ye(vae),a=F(()=>{const{style:i,width:o,height:s}=t,l=r.namespace.value;return{[`--${l}-tooltip-v2-arrow-width`]:`${o}px`,[`--${l}-tooltip-v2-arrow-height`]:`${s}px`,[`--${l}-tooltip-v2-arrow-border-width`]:`${o/2}px`,[`--${l}-tooltip-v2-arrow-cover-width`]:o/2-1,...i||{}}});return(i,o)=>(N(),U("span",{ref_key:"arrowRef",ref:n,style:Xe(b(a)),class:H(b(r).e("arrow"))},null,6))}});var a$=ke(lut,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const uut=Oe({style:{type:fe([String,Object,Array]),default:()=>({})}}),cut=te({name:"ElVisuallyHidden"}),fut=te({...cut,props:uut,setup(e){const t=e,r=F(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(n,a)=>(N(),U("span",Ut(n.$attrs,{style:b(r)}),[ye(n.$slots,"default")],16))}});var dut=ke(fut,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const hut=["data-side"],vut=te({name:"ElTooltipV2Content"}),put=te({...vut,props:{...J3,...dae},setup(e){const t=e,{triggerRef:r,contentId:n}=Ye(NT),a=G(t.placement),i=G(t.strategy),o=G(null),{referenceRef:s,contentRef:l,middlewareData:u,x:c,y:f,update:d}=HWe({placement:a,strategy:i,middleware:F(()=>{const _=[SWe(t.offset)];return t.showArrow&&_.push(GWe({arrowRef:o})),_})}),h=im().nextZIndex(),v=Ce("tooltip-v2"),p=F(()=>a.value.split("-")[0]),g=F(()=>({position:b(i),top:`${b(f)||0}px`,left:`${b(c)||0}px`,zIndex:h})),m=F(()=>{if(!t.showArrow)return{};const{arrow:_}=b(u);return{[`--${v.namespace.value}-tooltip-v2-arrow-x`]:`${_==null?void 0:_.x}px`||"",[`--${v.namespace.value}-tooltip-v2-arrow-y`]:`${_==null?void 0:_.y}px`||""}}),y=F(()=>[v.e("content"),v.is("dark",t.effect==="dark"),v.is(b(i)),t.contentClass]);return Ae(o,()=>d()),Ae(()=>t.placement,_=>a.value=_),xt(()=>{Ae(()=>t.reference||r.value,_=>{s.value=_||void 0},{immediate:!0})}),Wt(vae,{arrowRef:o}),(_,w)=>(N(),U("div",{ref_key:"contentRef",ref:l,style:Xe(b(g)),"data-tooltip-v2-root":""},[_.nowrap?ce("v-if",!0):(N(),U("div",{key:0,"data-side":b(p),class:H(b(y))},[ye(_.$slots,"default",{contentStyle:b(g),contentClass:b(y)}),J(b(dut),{id:b(n),role:"tooltip"},{default:le(()=>[_.ariaLabel?(N(),U(Be,{key:0},[nr(me(_.ariaLabel),1)],64)):ye(_.$slots,"default",{key:1})]),_:3},8,["id"]),ye(_.$slots,"arrow",{style:Xe(b(m)),side:b(p)})],10,hut))],4))}});var i$=ke(put,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const gut=Oe({setRef:{type:fe(Function),required:!0},onlyChild:Boolean});var mut=te({props:gut,setup(e,{slots:t}){const r=G(),n=_T(r,a=>{a?e.setRef(a.nextElementSibling):e.setRef(null)});return()=>{var a;const[i]=((a=t.default)==null?void 0:a.call(t))||[],o=e.onlyChild?KUe(i.children):i.children;return J(Be,{ref:n},[o])}}});const yut=te({name:"ElTooltipV2Trigger"}),_ut=te({...yut,props:{...dae,...t4},setup(e){const t=e,{onClose:r,onOpen:n,onDelayOpen:a,triggerRef:i,contentId:o}=Ye(NT);let s=!1;const l=y=>{i.value=y},u=()=>{s=!1},c=Mn(t.onMouseEnter,a),f=Mn(t.onMouseLeave,r),d=Mn(t.onMouseDown,()=>{r(),s=!0,document.addEventListener("mouseup",u,{once:!0})}),h=Mn(t.onFocus,()=>{s||n()}),v=Mn(t.onBlur,r),p=Mn(t.onClick,y=>{y.detail===0&&r()}),g={blur:v,click:p,focus:h,mousedown:d,mouseenter:c,mouseleave:f},m=(y,_,w)=>{y&&Object.entries(_).forEach(([x,S])=>{y[w](x,S)})};return Ae(i,(y,_)=>{m(y,g,"addEventListener"),m(_,g,"removeEventListener"),y&&y.setAttribute("aria-describedby",o.value)}),un(()=>{m(i.value,g,"removeEventListener"),document.removeEventListener("mouseup",u)}),(y,_)=>y.nowrap?(N(),he(b(mut),{key:0,"set-ref":l,"only-child":""},{default:le(()=>[ye(y.$slots,"default")]),_:3})):(N(),U("button",Ut({key:1,ref_key:"triggerRef",ref:i},y.$attrs),[ye(y.$slots,"default")],16))}});var but=ke(_ut,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const wut=te({name:"ElTooltipV2"}),Sut=te({...wut,props:nut,setup(e){const r=Da(e),n=Ar(Du(r,Object.keys(Q3))),a=Ar(Du(r,Object.keys(J3))),i=Ar(Du(r,Object.keys(e4))),o=Ar(Du(r,Object.keys(t4)));return(s,l)=>(N(),he(out,Rs(K2(i)),{default:le(({open:u})=>[J(but,Ut(o,{nowrap:""}),{default:le(()=>[ye(s.$slots,"trigger")]),_:3},16),(N(),he(W_,{to:s.to,disabled:!s.teleported},[s.fullTransition?(N(),he(Yn,Rs(Ut({key:0},s.transitionProps)),{default:le(()=>[s.alwaysOn||u?(N(),he(i$,Rs(Ut({key:0},a)),{arrow:le(({style:c,side:f})=>[s.showArrow?(N(),he(a$,Ut({key:0},n,{style:c,side:f}),null,16,["style","side"])):ce("v-if",!0)]),default:le(()=>[ye(s.$slots,"default")]),_:3},16)):ce("v-if",!0)]),_:2},1040)):(N(),U(Be,{key:1},[s.alwaysOn||u?(N(),he(i$,Rs(Ut({key:0},a)),{arrow:le(({style:c,side:f})=>[s.showArrow?(N(),he(a$,Ut({key:0},n,{style:c,side:f}),null,16,["style","side"])):ce("v-if",!0)]),default:le(()=>[ye(s.$slots,"default")]),_:3},16)):ce("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var xut=ke(Sut,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const Aut=kt(xut),pae="left-check-change",gae="right-check-change",lp=Oe({data:{type:fe(Array),default:()=>[]},titles:{type:fe(Array),default:()=>[]},buttonTexts:{type:fe(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:fe(Function)},leftDefaultChecked:{type:fe(Array),default:()=>[]},rightDefaultChecked:{type:fe(Array),default:()=>[]},renderContent:{type:fe(Function)},modelValue:{type:fe(Array),default:()=>[]},format:{type:fe(Object),default:()=>({})},filterable:Boolean,props:{type:fe(Object),default:()=>mn({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),VI=(e,t)=>[e,t].every(We)||We(e)&&Qn(t),Tut={[ln]:(e,t,r)=>[e,r].every(We)&&["left","right"].includes(t),[Nt]:e=>We(e),[pae]:VI,[gae]:VI},zI="checked-change",Cut=Oe({data:lp.data,optionRender:{type:fe(Function)},placeholder:String,title:String,filterable:Boolean,format:lp.format,filterMethod:lp.filterMethod,defaultChecked:lp.leftDefaultChecked,props:lp.props}),Eut={[zI]:VI},B1=e=>{const t={label:"label",key:"key",disabled:"disabled"};return F(()=>({...t,...e.props}))},Mut=(e,t,r)=>{const n=B1(e),a=F(()=>e.data.filter(c=>dt(e.filterMethod)?e.filterMethod(t.query,c):String(c[n.value.label]||c[n.value.key]).toLowerCase().includes(t.query.toLowerCase()))),i=F(()=>a.value.filter(c=>!c[n.value.disabled])),o=F(()=>{const c=t.checked.length,f=e.data.length,{noChecked:d,hasChecked:h}=e.format;return d&&h?c>0?h.replace(/\${checked}/g,c.toString()).replace(/\${total}/g,f.toString()):d.replace(/\${total}/g,f.toString()):`${c}/${f}`}),s=F(()=>{const c=t.checked.length;return c>0&&c{const c=i.value.map(f=>f[n.value.key]);t.allChecked=c.length>0&&c.every(f=>t.checked.includes(f))},u=c=>{t.checked=c?i.value.map(f=>f[n.value.key]):[]};return Ae(()=>t.checked,(c,f)=>{if(l(),t.checkChangeByUser){const d=c.concat(f).filter(h=>!c.includes(h)||!f.includes(h));r(zI,c,d)}else r(zI,c),t.checkChangeByUser=!0}),Ae(i,()=>{l()}),Ae(()=>e.data,()=>{const c=[],f=a.value.map(d=>d[n.value.key]);t.checked.forEach(d=>{f.includes(d)&&c.push(d)}),t.checkChangeByUser=!1,t.checked=c}),Ae(()=>e.defaultChecked,(c,f)=>{if(f&&c.length===f.length&&c.every(v=>f.includes(v)))return;const d=[],h=i.value.map(v=>v[n.value.key]);c.forEach(v=>{h.includes(v)&&d.push(v)}),t.checkChangeByUser=!1,t.checked=d},{immediate:!0}),{filteredData:a,checkableData:i,checkedSummary:o,isIndeterminate:s,updateAllChecked:l,handleAllCheckedChange:u}},Dut=(e,t)=>({onSourceCheckedChange:(a,i)=>{e.leftChecked=a,i&&t(pae,a,i)},onTargetCheckedChange:(a,i)=>{e.rightChecked=a,i&&t(gae,a,i)}}),Put=e=>{const t=B1(e),r=F(()=>e.data.reduce((i,o)=>(i[o[t.value.key]]=o)&&i,{})),n=F(()=>e.data.filter(i=>!e.modelValue.includes(i[t.value.key]))),a=F(()=>e.targetOrder==="original"?e.data.filter(i=>e.modelValue.includes(i[t.value.key])):e.modelValue.reduce((i,o)=>{const s=r.value[o];return s&&i.push(s),i},[]));return{sourceData:n,targetData:a}},Lut=(e,t,r)=>{const n=B1(e),a=(s,l,u)=>{r(Nt,s),r(ln,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[n.value.key];return t.leftChecked.includes(c)&&!e.modelValue.includes(c)}).map(u=>u[n.value.key]);s=e.targetOrder==="unshift"?l.concat(s):s.concat(l),e.targetOrder==="original"&&(s=e.data.filter(u=>s.includes(u[n.value.key])).map(u=>u[n.value.key])),a(s,"right",t.leftChecked)}}},Iut=te({name:"ElTransferPanel"}),Rut=te({...Iut,props:Cut,emits:Eut,setup(e,{expose:t,emit:r}){const n=e,a=$a(),i=({option:_})=>_,{t:o}=fr(),s=Ce("transfer"),l=Ar({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=B1(n),{filteredData:c,checkedSummary:f,isIndeterminate:d,handleAllCheckedChange:h}=Mut(n,l,r),v=F(()=>!qo(l.query)&&qo(c.value)),p=F(()=>!qo(a.default()[0].children)),{checked:g,allChecked:m,query:y}=Da(l);return t({query:y}),(_,w)=>(N(),U("div",{class:H(b(s).b("panel"))},[V("p",{class:H(b(s).be("panel","header"))},[J(b(hs),{modelValue:b(m),"onUpdate:modelValue":w[0]||(w[0]=x=>Qr(m)?m.value=x:null),indeterminate:b(d),"validate-event":!1,onChange:b(h)},{default:le(()=>[nr(me(_.title)+" ",1),V("span",null,me(b(f)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),V("div",{class:H([b(s).be("panel","body"),b(s).is("with-footer",b(p))])},[_.filterable?(N(),he(b(li),{key:0,modelValue:b(y),"onUpdate:modelValue":w[1]||(w[1]=x=>Qr(y)?y.value=x:null),class:H(b(s).be("panel","filter")),size:"default",placeholder:_.placeholder,"prefix-icon":b(TUe),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):ce("v-if",!0),Ct(J(b(Sre),{modelValue:b(g),"onUpdate:modelValue":w[2]||(w[2]=x=>Qr(g)?g.value=x:null),"validate-event":!1,class:H([b(s).is("filterable",_.filterable),b(s).be("panel","list")])},{default:le(()=>[(N(!0),U(Be,null,ht(b(c),x=>(N(),he(b(hs),{key:x[b(u).key],class:H(b(s).be("panel","item")),label:x[b(u).key],disabled:x[b(u).disabled],"validate-event":!1},{default:le(()=>{var S;return[J(i,{option:(S=_.optionRender)==null?void 0:S.call(_,x)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[hr,!b(v)&&!b(qo)(_.data)]]),Ct(V("p",{class:H(b(s).be("panel","empty"))},me(b(v)?b(o)("el.transfer.noMatch"):b(o)("el.transfer.noData")),3),[[hr,b(v)||b(qo)(_.data)]])],2),b(p)?(N(),U("p",{key:0,class:H(b(s).be("panel","footer"))},[ye(_.$slots,"default")],2)):ce("v-if",!0)],2))}});var o$=ke(Rut,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const Out={key:0},kut={key:0},Nut=te({name:"ElTransfer"}),But=te({...Nut,props:lp,emits:Tut,setup(e,{expose:t,emit:r}){const n=e,a=$a(),{t:i}=fr(),o=Ce("transfer"),{formItem:s}=Vi(),l=Ar({leftChecked:[],rightChecked:[]}),u=B1(n),{sourceData:c,targetData:f}=Put(n),{onSourceCheckedChange:d,onTargetCheckedChange:h}=Dut(l,r),{addToLeft:v,addToRight:p}=Lut(n,l,r),g=G(),m=G(),y=A=>{switch(A){case"left":g.value.query="";break;case"right":m.value.query="";break}},_=F(()=>n.buttonTexts.length===2),w=F(()=>n.titles[0]||i("el.transfer.titles.0")),x=F(()=>n.titles[1]||i("el.transfer.titles.1")),S=F(()=>n.filterPlaceholder||i("el.transfer.filterPlaceholder"));Ae(()=>n.modelValue,()=>{var A;n.validateEvent&&((A=s==null?void 0:s.validate)==null||A.call(s,"change").catch(C=>void 0))});const T=F(()=>A=>n.renderContent?n.renderContent(et,A):a.default?a.default({option:A}):et("span",A[u.value.label]||A[u.value.key]));return t({clearQuery:y,leftPanel:g,rightPanel:m}),(A,C)=>(N(),U("div",{class:H(b(o).b())},[J(o$,{ref_key:"leftPanel",ref:g,data:b(c),"option-render":b(T),placeholder:b(S),title:b(w),filterable:A.filterable,format:A.format,"filter-method":A.filterMethod,"default-checked":A.leftDefaultChecked,props:n.props,onCheckedChange:b(d)},{default:le(()=>[ye(A.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),V("div",{class:H(b(o).e("buttons"))},[J(b(Ja),{type:"primary",class:H([b(o).e("button"),b(o).is("with-texts",b(_))]),disabled:b(qo)(l.rightChecked),onClick:b(v)},{default:le(()=>[J(b(Ze),null,{default:le(()=>[J(b(Tf))]),_:1}),b(oa)(A.buttonTexts[0])?ce("v-if",!0):(N(),U("span",Out,me(A.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),J(b(Ja),{type:"primary",class:H([b(o).e("button"),b(o).is("with-texts",b(_))]),disabled:b(qo)(l.leftChecked),onClick:b(p)},{default:le(()=>[b(oa)(A.buttonTexts[1])?ce("v-if",!0):(N(),U("span",kut,me(A.buttonTexts[1]),1)),J(b(Ze),null,{default:le(()=>[J(b(Mi))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),J(o$,{ref_key:"rightPanel",ref:m,data:b(f),"option-render":b(T),placeholder:b(S),filterable:A.filterable,format:A.format,"filter-method":A.filterMethod,title:b(x),"default-checked":A.rightDefaultChecked,props:n.props,onCheckedChange:b(h)},{default:le(()=>[ye(A.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var Fut=ke(But,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const Vut=kt(Fut),zp="$treeNodeId",s$=function(e,t){!t||t[zp]||Object.defineProperty(t,zp,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},r4=function(e,t){return e?t[e]:t[zp]},HI=(e,t,r)=>{const n=e.value.currentNode;r();const a=e.value.currentNode;n!==a&&t("current-change",a?a.data:null,a)},GI=e=>{let t=!0,r=!0,n=!0;for(let a=0,i=e.length;a"u"){const i=n[t];return i===void 0?"":i}};let zut=0,UI=class IS{constructor(t){this.id=zut++,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 r in t)or(t,r)&&(this[r]=t[r]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const r=t.props;if(r&&typeof r.isLeaf<"u"){const i=yw(this,"isLeaf");typeof i=="boolean"&&(this.isLeafByUser=i)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&this.expand(),Array.isArray(this.data)||s$(this,this.data),!this.data)return;const n=t.defaultExpandedKeys,a=t.key;a&&n&&n.includes(this.key)&&this.expand(null,t.autoExpandParent),a&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Array.isArray(t)||s$(this,t),this.data=t,this.childNodes=[];let r;this.level===0&&Array.isArray(this.data)?r=this.data:r=yw(this,"children")||[];for(let n=0,a=r.length;n-1)return t.childNodes[r+1]}return null}get previousSibling(){const t=this.parent;if(t){const r=t.childNodes.indexOf(this);if(r>-1)return r>0?t.childNodes[r-1]:null}return null}contains(t,r=!0){return(this.childNodes||[]).some(n=>n===t||r&&n.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,r,n){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof IS)){if(!n){const a=this.getChildren(!0);a.includes(t.data)||(typeof r>"u"||r<0?a.push(t.data):a.splice(r,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Ar(new IS(t)),t instanceof IS&&t.initialize()}t.level=this.level+1,typeof r>"u"||r<0?this.childNodes.push(t):this.childNodes.splice(r,0,t),this.updateLeafState()}insertBefore(t,r){let n;r&&(n=this.childNodes.indexOf(r)),this.insertChild(t,n)}insertAfter(t,r){let n;r&&(n=this.childNodes.indexOf(r),n!==-1&&(n+=1)),this.insertChild(t,n)}removeChild(t){const r=this.getChildren()||[],n=r.indexOf(t.data);n>-1&&r.splice(n,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){let r=null;for(let n=0;n{if(r){let a=this.parent;for(;a.level>0;)a.expanded=!0,a=a.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(a=>{a.canFocus=!0})};this.shouldLoadData()?this.loadData(a=>{Array.isArray(a)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||LS(this),n())}):n()}doCreateChildren(t,r={}){t.forEach(n=>{this.insertChild(Object.assign({data:n},r),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!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;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,r,n,a){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:o,allWithoutDisable:s}=GI(this.childNodes);!this.isLeaf&&!o&&s&&(this.checked=!1,t=!1);const l=()=>{if(r){const u=this.childNodes;for(let d=0,h=u.length;d{l(),LS(this)},{checked:t!==!1});return}else l()}const i=this.parent;!i||i.level===0||n||LS(i)}getChildren(t=!1){if(this.level===0)return this.data;const r=this.data;if(!r)return null;const n=this.store.props;let a="children";return n&&(a=n.children||"children"),r[a]===void 0&&(r[a]=null),t&&!r[a]&&(r[a]=[]),r[a]}updateChildren(){const t=this.getChildren()||[],r=this.childNodes.map(i=>i.data),n={},a=[];t.forEach((i,o)=>{const s=i[zp];!!s&&r.findIndex(u=>u[zp]===s)>=0?n[s]={index:o,data:i}:a.push({index:o,data:i})}),this.store.lazy||r.forEach(i=>{n[i[zp]]||this.removeChildByData(i)}),a.forEach(({index:i,data:o})=>{this.insertChild({data:o},i)}),this.updateLeafState()}loadData(t,r={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(r).length)){this.loading=!0;const n=a=>{this.childNodes=[],this.doCreateChildren(a,r),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,a)};this.store.load(this,n)}else t&&t.call(this)}};class Hut{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const r in t)or(t,r)&&(this[r]=t[r]);this.nodesMap={}}initialize(){if(this.root=new UI({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,r=>{this.root.doCreateChildren(r),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const r=this.filterNodeMethod,n=this.lazy,a=function(i){const o=i.root?i.root.childNodes:i.childNodes;if(o.forEach(s=>{s.visible=r.call(s,t,s.data,s),a(s)}),!i.visible&&o.length){let s=!0;s=!o.some(l=>l.visible),i.root?i.root.visible=s===!1:i.visible=s===!1}t&&i.visible&&!i.isLeaf&&!n&&i.expand()};a(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof UI)return t;const r=Vt(t)?r4(this.key,t):t;return this.nodesMap[r]||null}insertBefore(t,r){const n=this.getNode(r);n.parent.insertBefore({data:t},n)}insertAfter(t,r){const n=this.getNode(r);n.parent.insertAfter({data:t},n)}remove(t){const r=this.getNode(t);r&&r.parent&&(r===this.currentNode&&(this.currentNode=null),r.parent.removeChild(r))}append(t,r){const n=r?this.getNode(r):this.root;n&&n.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],r=this.nodesMap;t.forEach(n=>{const a=r[n];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const r=this.key;!t||!t.data||(r?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(n=>{this.deregisterNode(n)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,r=!1){const n=[],a=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(s=>{(s.checked||r&&s.indeterminate)&&(!t||t&&s.isLeaf)&&n.push(s.data),a(s)})};return a(this),n}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(r=>(r||{})[this.key])}getHalfCheckedNodes(){const t=[],r=function(n){(n.root?n.root.childNodes:n.childNodes).forEach(i=>{i.indeterminate&&t.push(i.data),r(i)})};return r(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],r=this.nodesMap;for(const n in r)or(r,n)&&t.push(r[n]);return t}updateChildren(t,r){const n=this.nodesMap[t];if(!n)return;const a=n.childNodes;for(let i=a.length-1;i>=0;i--){const o=a[i];this.remove(o.data)}for(let i=0,o=r.length;il.level-s.level),i=Object.create(null),o=Object.keys(n);a.forEach(s=>s.setChecked(!1,!1));for(let s=0,l=a.length;s0;)i[d.data[t]]=!0,d=d.parent;if(u.isLeaf||this.checkStrictly){u.setChecked(!0,!1);continue}if(u.setChecked(!0,!0),r){u.setChecked(!1,!1);const h=function(v){v.childNodes.forEach(g=>{g.isLeaf||g.setChecked(!1,!1),h(g)})};h(u)}}}setCheckedNodes(t,r=!1){const n=this.key,a={};t.forEach(i=>{a[(i||{})[n]]=!0}),this._setCheckedKeys(n,r,a)}setCheckedKeys(t,r=!1){this.defaultCheckedKeys=t;const n=this.key,a={};t.forEach(i=>{a[i]=!0}),this._setCheckedKeys(n,r,a)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(r=>{const n=this.getNode(r);n&&n.expand(null,this.autoExpandParent)})}setChecked(t,r,n){const a=this.getNode(t);a&&a.setChecked(!!r,n)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const r=this.currentNode;r&&(r.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,r=!0){const n=t[this.key],a=this.nodesMap[n];this.setCurrentNode(a),r&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,r=!0){if(t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const n=this.getNode(t);n&&(this.setCurrentNode(n),r&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const Gut=te({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Ce("tree"),r=Ye("NodeInstance"),n=Ye("RootTree");return()=>{const a=e.node,{data:i,store:o}=a;return e.renderContent?e.renderContent(et,{_self:r,node:a,data:i,store:o}):ye(n.ctx.slots,"default",{node:a,data:i},()=>[et("span",{class:t.be("node","label")},[a.label])])}}});var Uut=ke(Gut,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function mae(e){const t=Ye("TreeNodeMap",null),r={treeNodeExpand:n=>{e.node!==n&&e.node.collapse()},children:[]};return t&&t.children.push(r),Wt("TreeNodeMap",r),{broadcastExpanded:n=>{if(e.accordion)for(const a of r.children)a.treeNodeExpand(n)}}}const yae=Symbol("dragEvents");function $ut({props:e,ctx:t,el$:r,dropIndicator$:n,store:a}){const i=Ce("tree"),o=G({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Wt(yae,{treeNodeDragStart:({event:c,treeNode:f})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(f.node))return c.preventDefault(),!1;c.dataTransfer.effectAllowed="move";try{c.dataTransfer.setData("text/plain","")}catch{}o.value.draggingNode=f,t.emit("node-drag-start",f.node,c)},treeNodeDragOver:({event:c,treeNode:f})=>{const d=f,h=o.value.dropNode;h&&h.node.id!==d.node.id&&ro(h.$el,i.is("drop-inner"));const v=o.value.draggingNode;if(!v||!d)return;let p=!0,g=!0,m=!0,y=!0;typeof e.allowDrop=="function"&&(p=e.allowDrop(v.node,d.node,"prev"),y=g=e.allowDrop(v.node,d.node,"inner"),m=e.allowDrop(v.node,d.node,"next")),c.dataTransfer.dropEffect=g||p||m?"move":"none",(p||g||m)&&(h==null?void 0:h.node.id)!==d.node.id&&(h&&t.emit("node-drag-leave",v.node,h.node,c),t.emit("node-drag-enter",v.node,d.node,c)),(p||g||m)&&(o.value.dropNode=d),d.node.nextSibling===v.node&&(m=!1),d.node.previousSibling===v.node&&(p=!1),d.node.contains(v.node,!1)&&(g=!1),(v.node===d.node||v.node.contains(d.node))&&(p=!1,g=!1,m=!1);const _=d.$el.querySelector(`.${i.be("node","content")}`).getBoundingClientRect(),w=r.value.getBoundingClientRect();let x;const S=p?g?.25:m?.45:1:-1,T=m?g?.75:p?.55:0:1;let A=-9999;const C=c.clientY-_.top;C<_.height*S?x="before":C>_.height*T?x="after":g?x="inner":x="none";const M=d.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),E=n.value;x==="before"?A=M.top-w.top:x==="after"&&(A=M.bottom-w.top),E.style.top=`${A}px`,E.style.left=`${M.right-w.left}px`,x==="inner"?Pl(d.$el,i.is("drop-inner")):ro(d.$el,i.is("drop-inner")),o.value.showDropIndicator=x==="before"||x==="after",o.value.allowDrop=o.value.showDropIndicator||y,o.value.dropType=x,t.emit("node-drag-over",v.node,d.node,c)},treeNodeDragEnd:c=>{const{draggingNode:f,dropType:d,dropNode:h}=o.value;if(c.preventDefault(),c.dataTransfer.dropEffect="move",f&&h){const v={data:f.node.data};d!=="none"&&f.node.remove(),d==="before"?h.node.parent.insertBefore(v,h.node):d==="after"?h.node.parent.insertAfter(v,h.node):d==="inner"&&h.node.insertChild(v),d!=="none"&&a.value.registerNode(v),ro(h.$el,i.is("drop-inner")),t.emit("node-drag-end",f.node,h.node,d,c),d!=="none"&&t.emit("node-drop",f.node,h.node,d,c)}f&&!h&&t.emit("node-drag-end",f.node,null,d,c),o.value.showDropIndicator=!1,o.value.draggingNode=null,o.value.dropNode=null,o.value.allowDrop=!0}}),{dragState:o}}const Wut=te({name:"ElTreeNode",components:{ElCollapseTransition:LT,ElCheckbox:hs,NodeContent:Uut,ElIcon:Ze,Loading:Hf},props:{node:{type:UI,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const r=Ce("tree"),{broadcastExpanded:n}=mae(e),a=Ye("RootTree"),i=G(!1),o=G(!1),s=G(null),l=G(null),u=G(null),c=Ye(yae),f=It();Wt("NodeInstance",f),e.node.expanded&&(i.value=!0,o.value=!0);const d=a.props.props.children||"children";Ae(()=>{const C=e.node.data[d];return C&&[...C]},()=>{e.node.updateChildren()}),Ae(()=>e.node.indeterminate,C=>{p(e.node.checked,C)}),Ae(()=>e.node.checked,C=>{p(C,e.node.indeterminate)}),Ae(()=>e.node.expanded,C=>{qe(()=>i.value=C),C&&(o.value=!0)});const h=C=>r4(a.props.nodeKey,C.data),v=C=>{const M=e.props.class;if(!M)return{};let E;if(dt(M)){const{data:D}=C;E=M(D,C)}else E=M;return wt(E)?{[E]:!0}:E},p=(C,M)=>{(s.value!==C||l.value!==M)&&a.ctx.emit("check-change",e.node.data,C,M),s.value=C,l.value=M},g=C=>{HI(a.store,a.ctx.emit,()=>a.store.value.setCurrentNode(e.node)),a.currentNode.value=e.node,a.props.expandOnClickNode&&y(),a.props.checkOnClickNode&&!e.node.disabled&&_(null,{target:{checked:!e.node.checked}}),a.ctx.emit("node-click",e.node.data,e.node,f,C)},m=C=>{a.instance.vnode.props.onNodeContextmenu&&(C.stopPropagation(),C.preventDefault()),a.ctx.emit("node-contextmenu",C,e.node.data,e.node,f)},y=()=>{e.node.isLeaf||(i.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)))},_=(C,M)=>{e.node.setChecked(M.target.checked,!a.props.checkStrictly),qe(()=>{const E=a.store.value;a.ctx.emit("check",e.node.data,{checkedNodes:E.getCheckedNodes(),checkedKeys:E.getCheckedKeys(),halfCheckedNodes:E.getHalfCheckedNodes(),halfCheckedKeys:E.getHalfCheckedKeys()})})};return{ns:r,node$:u,tree:a,expanded:i,childNodeRendered:o,oldChecked:s,oldIndeterminate:l,getNodeKey:h,getNodeClass:v,handleSelectChange:p,handleClick:g,handleContextMenu:m,handleExpandIconClick:y,handleCheckChange:_,handleChildNodeExpand:(C,M,E)=>{n(M),a.ctx.emit("node-expand",C,M,E)},handleDragStart:C=>{a.props.draggable&&c.treeNodeDragStart({event:C,treeNode:e})},handleDragOver:C=>{C.preventDefault(),a.props.draggable&&c.treeNodeDragOver({event:C,treeNode:{$el:u.value,node:e.node}})},handleDrop:C=>{C.preventDefault()},handleDragEnd:C=>{a.props.draggable&&c.treeNodeDragEnd(C)},CaretRight:Iee}}}),Yut=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],jut=["aria-expanded"];function Kut(e,t,r,n,a,i){const o=bt("el-icon"),s=bt("el-checkbox"),l=bt("loading"),u=bt("node-content"),c=bt("el-tree-node"),f=bt("el-collapse-transition");return Ct((N(),U("div",{ref:"node$",class:H([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[1]||(t[1]=it((...d)=>e.handleClick&&e.handleClick(...d),["stop"])),onContextmenu:t[2]||(t[2]=(...d)=>e.handleContextMenu&&e.handleContextMenu(...d)),onDragstart:t[3]||(t[3]=it((...d)=>e.handleDragStart&&e.handleDragStart(...d),["stop"])),onDragover:t[4]||(t[4]=it((...d)=>e.handleDragOver&&e.handleDragOver(...d),["stop"])),onDragend:t[5]||(t[5]=it((...d)=>e.handleDragEnd&&e.handleDragEnd(...d),["stop"])),onDrop:t[6]||(t[6]=it((...d)=>e.handleDrop&&e.handleDrop(...d),["stop"]))},[V("div",{class:H(e.ns.be("node","content")),style:Xe({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(N(),he(o,{key:0,class:H([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:it(e.handleExpandIconClick,["stop"])},{default:le(()=>[(N(),he(Ft(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):ce("v-if",!0),e.showCheckbox?(N(),he(s,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=it(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):ce("v-if",!0),e.node.loading?(N(),he(o,{key:2,class:H([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:le(()=>[J(l)]),_:1},8,["class"])):ce("v-if",!0),J(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),J(f,null,{default:le(()=>[!e.renderAfterExpand||e.childNodeRendered?Ct((N(),U("div",{key:0,class:H(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(N(!0),U(Be,null,ht(e.node.childNodes,d=>(N(),he(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,jut)),[[hr,e.expanded]]):ce("v-if",!0)]),_:1})],42,Yut)),[[hr,e.node.visible]])}var Xut=ke(Wut,[["render",Kut],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function Zut({el$:e},t){const r=Ce("tree"),n=yr([]),a=yr([]);xt(()=>{o()}),qu(()=>{n.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),Ae(a,s=>{s.forEach(l=>{l.setAttribute("tabindex","-1")})}),dn(e,"keydown",s=>{const l=s.target;if(!l.className.includes(r.b("node")))return;const u=s.code;n.value=Array.from(e.value.querySelectorAll(`.${r.is("focusable")}[role=treeitem]`));const c=n.value.indexOf(l);let f;if([Qe.up,Qe.down].includes(u)){if(s.preventDefault(),u===Qe.up){f=c===-1?0:c!==0?c-1:n.value.length-1;const h=f;for(;!t.value.getNode(n.value[f].dataset.key).canFocus;){if(f--,f===h){f=-1;break}f<0&&(f=n.value.length-1)}}else{f=c===-1?0:c=n.value.length&&(f=0)}}f!==-1&&n.value[f].focus()}[Qe.left,Qe.right].includes(u)&&(s.preventDefault(),l.click());const d=l.querySelector('[type="checkbox"]');[Qe.enter,Qe.space].includes(u)&&d&&(s.preventDefault(),d.click())});const o=()=>{var s;n.value=Array.from(e.value.querySelectorAll(`.${r.is("focusable")}[role=treeitem]`)),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const l=e.value.querySelectorAll(`.${r.is("checked")}[role=treeitem]`);if(l.length){l[0].setAttribute("tabindex","0");return}(s=n.value[0])==null||s.setAttribute("tabindex","0")}}const qut=te({name:"ElTree",components:{ElTreeNode:Xut},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:Zr}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:r}=fr(),n=Ce("tree"),a=G(new Hut({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 i=G(a.value.root),o=G(null),s=G(null),l=G(null),{broadcastExpanded:u}=mae(e),{dragState:c}=$ut({props:e,ctx:t,el$:s,dropIndicator$:l,store:a});Zut({el$:s},a);const f=F(()=>{const{childNodes:R}=i.value;return!R||R.length===0||R.every(({visible:B})=>!B)});Ae(()=>e.currentNodeKey,R=>{a.value.setCurrentNodeKey(R)}),Ae(()=>e.defaultCheckedKeys,R=>{a.value.setDefaultCheckedKey(R)}),Ae(()=>e.defaultExpandedKeys,R=>{a.value.setDefaultExpandedKeys(R)}),Ae(()=>e.data,R=>{a.value.setData(R)},{deep:!0}),Ae(()=>e.checkStrictly,R=>{a.value.checkStrictly=R});const d=R=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");a.value.filter(R)},h=R=>r4(e.nodeKey,R.data),v=R=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const B=a.value.getNode(R);if(!B)return[];const k=[B.data];let z=B.parent;for(;z&&z!==i.value;)k.push(z.data),z=z.parent;return k.reverse()},p=(R,B)=>a.value.getCheckedNodes(R,B),g=R=>a.value.getCheckedKeys(R),m=()=>{const R=a.value.getCurrentNode();return R?R.data:null},y=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const R=m();return R?R[e.nodeKey]:null},_=(R,B)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");a.value.setCheckedNodes(R,B)},w=(R,B)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");a.value.setCheckedKeys(R,B)},x=(R,B,k)=>{a.value.setChecked(R,B,k)},S=()=>a.value.getHalfCheckedNodes(),T=()=>a.value.getHalfCheckedKeys(),A=(R,B=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");HI(a,t.emit,()=>a.value.setUserCurrentNode(R,B))},C=(R,B=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");HI(a,t.emit,()=>a.value.setCurrentNodeKey(R,B))},M=R=>a.value.getNode(R),E=R=>{a.value.remove(R)},D=(R,B)=>{a.value.append(R,B)},P=(R,B)=>{a.value.insertBefore(R,B)},L=(R,B)=>{a.value.insertAfter(R,B)},I=(R,B,k)=>{u(B),t.emit("node-expand",R,B,k)},O=(R,B)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");a.value.updateChildren(R,B)};return Wt("RootTree",{ctx:t,props:e,store:a,root:i,currentNode:o,instance:It()}),Wt(Yl,void 0),{ns:n,store:a,root:i,currentNode:o,dragState:c,el$:s,dropIndicator$:l,isEmpty:f,filter:d,getNodeKey:h,getNodePath:v,getCheckedNodes:p,getCheckedKeys:g,getCurrentNode:m,getCurrentKey:y,setCheckedNodes:_,setCheckedKeys:w,setChecked:x,getHalfCheckedNodes:S,getHalfCheckedKeys:T,setCurrentNode:A,setCurrentKey:C,t:r,getNode:M,remove:E,append:D,insertBefore:P,insertAfter:L,handleNodeExpand:I,updateKeyChildren:O}}});function Qut(e,t,r,n,a,i){const o=bt("el-tree-node");return N(),U("div",{ref:"el$",class:H([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"},[(N(!0),U(Be,null,ht(e.root.childNodes,s=>(N(),he(o,{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?(N(),U("div",{key:0,class:H(e.ns.e("empty-block"))},[ye(e.$slots,"empty",{},()=>{var s;return[V("span",{class:H(e.ns.e("empty-text"))},me((s=e.emptyText)!=null?s:e.t("el.tree.emptyText")),3)]})],2)):ce("v-if",!0),Ct(V("div",{ref:"dropIndicator$",class:H(e.ns.e("drop-indicator"))},null,2),[[hr,e.dragState.showDropIndicator]])],2)}var RS=ke(qut,[["render",Qut],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);RS.install=e=>{e.component(RS.name,RS)};const S2=RS,Jut=S2,ect=(e,{attrs:t,emit:r},{tree:n,key:a})=>{const i=Ce("tree-select"),o={...Du(Da(e),Object.keys(Kh.props)),...t,"onUpdate:modelValue":s=>r(Nt,s),valueKey:a,popperClass:F(()=>{const s=[i.e("popper")];return e.popperClass&&s.push(e.popperClass),s.join(" ")}),filterMethod:(s="")=>{e.filterMethod&&e.filterMethod(s),qe(()=>{var l;(l=n.value)==null||l.filter(s)})},onVisibleChange:s=>{var l;(l=t.onVisibleChange)==null||l.call(t,s),e.filterable&&s&&o.filterMethod()}};return o},tct=te({extends:v2,setup(e,t){const r=v2.setup(e,t);delete r.selectOptionClick;const n=It().proxy;return qe(()=>{r.select.cachedOptions.get(n.value)||r.select.onOptionCreate(n)}),r},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function $I(e){return e||e===0}function n4(e){return Array.isArray(e)&&e.length}function ry(e){return Array.isArray(e)?e:$I(e)?[e]:[]}function OS(e,t,r,n,a){for(let i=0;i{Ae(()=>e.modelValue,()=>{e.showCheckbox&&qe(()=>{const d=i.value;d&&!to(d.getCheckedKeys(),ry(e.modelValue))&&d.setCheckedKeys(ry(e.modelValue))})},{immediate:!0,deep:!0});const s=F(()=>({value:o.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),l=(d,h)=>{var v;const p=s.value[d];return dt(p)?p(h,(v=i.value)==null?void 0:v.getNode(l("value",h))):h[p]},u=ry(e.modelValue).map(d=>OS(e.data||[],h=>l("value",h)===d,h=>l("children",h),(h,v,p,g)=>g&&l("value",g))).filter(d=>$I(d)),c=F(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const d=[];return _ae(e.data.concat(e.cacheData),h=>{const v=l("value",h);d.push({value:v,currentLabel:l("label",h),isDisabled:l("disabled",h)})},h=>l("children",h)),d}),f=F(()=>c.value.reduce((d,h)=>({...d,[h.value]:h}),{}));return{...Du(Da(e),Object.keys(S2.props)),...t,nodeKey:o,expandOnClickNode:F(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:F(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(d,{node:h,data:v,store:p})=>d(tct,{value:l("value",v),label:l("label",v),disabled:l("disabled",v)},e.renderContent?()=>e.renderContent(d,{node:h,data:v,store:p}):r.default?()=>r.default({node:h,data:v,store:p}):void 0),filterNodeMethod:(d,h,v)=>{var p;return e.filterNodeMethod?e.filterNodeMethod(d,h,v):d?(p=l("label",h))==null?void 0:p.includes(d):!0},onNodeClick:(d,h,v)=>{var p,g,m;if((p=t.onNodeClick)==null||p.call(t,d,h,v),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||h.isLeaf)){if(!l("disabled",d)){const y=(g=a.value)==null?void 0:g.options.get(l("value",d));(m=a.value)==null||m.handleOptionSelect(y)}}else e.expandOnClickNode&&v.proxy.handleExpandIconClick()},onCheck:(d,h)=>{if(!e.showCheckbox)return;const v=l("value",d),p=h.checkedKeys,g=e.multiple?ry(e.modelValue).filter(y=>y in f.value&&!i.value.getNode(y)&&!p.includes(y)):[],m=p.concat(g);if(e.checkStrictly)n(Nt,e.multiple?m:m.includes(v)?v:void 0);else if(e.multiple)n(Nt,i.value.getCheckedKeys(!0));else{const y=OS([d],x=>!n4(l("children",x))&&!l("disabled",x),x=>l("children",x)),_=y?l("value",y):void 0,w=$I(e.modelValue)&&!!OS([d],x=>l("value",x)===e.modelValue,x=>l("children",x));n(Nt,_===e.modelValue||w?void 0:_)}qe(()=>{var y;const _=ry(e.modelValue);i.value.setCheckedKeys(_),(y=t.onCheck)==null||y.call(t,d,{checkedKeys:i.value.getCheckedKeys(),checkedNodes:i.value.getCheckedNodes(),halfCheckedKeys:i.value.getHalfCheckedKeys(),halfCheckedNodes:i.value.getHalfCheckedNodes()})})},cacheOptions:c}};var nct=te({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Ye(k1);return Ae(()=>e.data,()=>{var r;e.data.forEach(a=>{t.cachedOptions.has(a.value)||t.cachedOptions.set(a.value,a)});const n=((r=t.selectWrapper)==null?void 0:r.querySelectorAll("input"))||[];Array.from(n).includes(document.activeElement)||t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const act=te({name:"ElTreeSelect",inheritAttrs:!1,props:{...Kh.props,...S2.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:r,expose:n}=t,a=G(),i=G(),o=F(()=>e.nodeKey||e.valueKey||"value"),s=ect(e,t,{select:a,tree:i,key:o}),{cacheOptions:l,...u}=rct(e,t,{select:a,tree:i,key:o}),c=Ar({});return n(c),xt(()=>{Object.assign(c,{...Du(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...Du(a.value,["focus","blur"])})}),()=>et(Kh,Ar({...s,ref:f=>a.value=f}),{...r,default:()=>[et(nct,{data:l.value}),et(S2,Ar({...u,ref:f=>i.value=f}))]})}});var kS=ke(act,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);kS.install=e=>{e.component(kS.name,kS)};const ict=kS,oct=ict,a4=Symbol(),sct={key:-1,level:-1,data:{}};var Ey=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(Ey||{}),WI=(e=>(e.ADD="add",e.DELETE="delete",e))(WI||{});const bae={type:Number,default:26},lct=Oe({data:{type:fe(Array),default:()=>mn([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:fe(Object),default:()=>mn({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:fe(Array),default:()=>mn([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:fe(Array),default:()=>mn([])},indent:{type:Number,default:16},itemSize:bae,icon:{type:Zr},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:fe([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:fe(Function)},perfMode:{type:Boolean,default:!0}}),uct=Oe({node:{type:fe(Object),default:()=>mn(sct)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:bae}),cct=Oe({node:{type:fe(Object),required:!0}}),wae="node-click",Sae="node-expand",xae="node-collapse",Aae="current-change",Tae="check",Cae="check-change",Eae="node-contextmenu",fct={[wae]:(e,t,r)=>e&&t&&r,[Sae]:(e,t)=>e&&t,[xae]:(e,t)=>e&&t,[Aae]:(e,t)=>e&&t,[Tae]:(e,t)=>e&&t,[Cae]:(e,t)=>e&&typeof t=="boolean",[Eae]:(e,t,r)=>e&&t&&r},dct={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function hct(e,t){const r=G(new Set),n=G(new Set),{emit:a}=It();Ae([()=>t.value,()=>e.defaultCheckedKeys],()=>qe(()=>{y(e.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:_,maxLevel:w}=t.value,x=r.value,S=new Set;for(let T=w-1;T>=1;--T){const A=_.get(T);A&&A.forEach(C=>{const M=C.children;if(M){let E=!0,D=!1;for(const P of M){const L=P.key;if(x.has(L))D=!0;else if(S.has(L)){E=!1,D=!0;break}else E=!1}E?x.add(C.key):D?(S.add(C.key),x.delete(C.key)):(x.delete(C.key),S.delete(C.key))}})}n.value=S},o=_=>r.value.has(_.key),s=_=>n.value.has(_.key),l=(_,w,x=!0)=>{const S=r.value,T=(A,C)=>{S[C?WI.ADD:WI.DELETE](A.key);const M=A.children;!e.checkStrictly&&M&&M.forEach(E=>{E.disabled||T(E,C)})};T(_,w),i(),x&&u(_,w)},u=(_,w)=>{const{checkedNodes:x,checkedKeys:S}=v(),{halfCheckedNodes:T,halfCheckedKeys:A}=p();a(Tae,_.data,{checkedKeys:S,checkedNodes:x,halfCheckedKeys:A,halfCheckedNodes:T}),a(Cae,_.data,w)};function c(_=!1){return v(_).checkedKeys}function f(_=!1){return v(_).checkedNodes}function d(){return p().halfCheckedKeys}function h(){return p().halfCheckedNodes}function v(_=!1){const w=[],x=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:S}=t.value;r.value.forEach(T=>{const A=S.get(T);A&&(!_||_&&A.isLeaf)&&(x.push(T),w.push(A.data))})}return{checkedKeys:x,checkedNodes:w}}function p(){const _=[],w=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:x}=t.value;n.value.forEach(S=>{const T=x.get(S);T&&(w.push(S),_.push(T.data))})}return{halfCheckedNodes:_,halfCheckedKeys:w}}function g(_){r.value.clear(),n.value.clear(),y(_)}function m(_,w){if(t!=null&&t.value&&e.showCheckbox){const x=t.value.treeNodeMap.get(_);x&&l(x,w,!1)}}function y(_){if(t!=null&&t.value){const{treeNodeMap:w}=t.value;if(e.showCheckbox&&w&&_)for(const x of _){const S=w.get(x);S&&!o(S)&&l(S,!0,!1)}}}return{updateCheckedKeys:i,toggleCheckbox:l,isChecked:o,isIndeterminate:s,getCheckedKeys:c,getCheckedNodes:f,getHalfCheckedKeys:d,getHalfCheckedNodes:h,setChecked:m,setCheckedKeys:g}}function vct(e,t){const r=G(new Set([])),n=G(new Set([])),a=F(()=>dt(e.filterMethod));function i(s){var l;if(!a.value)return;const u=new Set,c=n.value,f=r.value,d=[],h=((l=t.value)==null?void 0:l.treeNodes)||[],v=e.filterMethod;f.clear();function p(g){g.forEach(m=>{d.push(m),v!=null&&v(s,m.data)?d.forEach(_=>{u.add(_.key)}):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 _=!0;for(const w of y)if(!f.has(w.key)){_=!1;break}_?c.add(m.key):c.delete(m.key)}}d.pop()})}return p(h),u}function o(s){return n.value.has(s.key)}return{hiddenExpandIconKeySet:n,hiddenNodeKeySet:r,doFilter:i,isForceHiddenExpandIcon:o}}function pct(e,t){const r=G(new Set(e.defaultExpandedKeys)),n=G(),a=yr();Ae(()=>e.currentNodeKey,Z=>{n.value=Z},{immediate:!0}),Ae(()=>e.data,Z=>{ee(Z)},{immediate:!0});const{isIndeterminate:i,isChecked:o,toggleCheckbox:s,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:d,setCheckedKeys:h}=hct(e,a),{doFilter:v,hiddenNodeKeySet:p,isForceHiddenExpandIcon:g}=vct(e,a),m=F(()=>{var Z;return((Z=e.props)==null?void 0:Z.value)||Ey.KEY}),y=F(()=>{var Z;return((Z=e.props)==null?void 0:Z.children)||Ey.CHILDREN}),_=F(()=>{var Z;return((Z=e.props)==null?void 0:Z.disabled)||Ey.DISABLED}),w=F(()=>{var Z;return((Z=e.props)==null?void 0:Z.label)||Ey.LABEL}),x=F(()=>{const Z=r.value,ne=p.value,re=[],ie=a.value&&a.value.treeNodes||[];function Y(){const q=[];for(let oe=ie.length-1;oe>=0;--oe)q.push(ie[oe]);for(;q.length;){const oe=q.pop();if(oe&&(ne.has(oe.key)||re.push(oe),Z.has(oe.key))){const ve=oe.children;if(ve){const _e=ve.length;for(let ge=_e-1;ge>=0;--ge)q.push(ve[ge])}}}}return Y(),re}),S=F(()=>x.value.length>0);function T(Z){const ne=new Map,re=new Map;let ie=1;function Y(oe,ve=1,_e=void 0){var ge;const Le=[];for(const Se of oe){const xe=M(Se),Te={level:ve,key:xe,data:Se};Te.label=D(Se),Te.parent=_e;const Ve=C(Se);Te.disabled=E(Se),Te.isLeaf=!Ve||Ve.length===0,Ve&&Ve.length&&(Te.children=Y(Ve,ve+1,Te)),Le.push(Te),ne.set(xe,Te),re.has(ve)||re.set(ve,[]),(ge=re.get(ve))==null||ge.push(Te)}return ve>ie&&(ie=ve),Le}const q=Y(Z);return{treeNodeMap:ne,levelTreeNodeMap:re,maxLevel:ie,treeNodes:q}}function A(Z){const ne=v(Z);ne&&(r.value=ne)}function C(Z){return Z[y.value]}function M(Z){return Z?Z[m.value]:""}function E(Z){return Z[_.value]}function D(Z){return Z[w.value]}function P(Z){r.value.has(Z.key)?k(Z):B(Z)}function L(Z){r.value=new Set(Z)}function I(Z,ne){t(wae,Z.data,Z,ne),O(Z),e.expandOnClickNode&&P(Z),e.showCheckbox&&e.checkOnClickNode&&!Z.disabled&&s(Z,!o(Z),!0)}function O(Z){j(Z)||(n.value=Z.key,t(Aae,Z.data,Z))}function R(Z,ne){s(Z,ne)}function B(Z){const ne=r.value;if(a.value&&e.accordion){const{treeNodeMap:re}=a.value;ne.forEach(ie=>{const Y=re.get(ie);Z&&Z.level===(Y==null?void 0:Y.level)&&ne.delete(ie)})}ne.add(Z.key),t(Sae,Z.data,Z)}function k(Z){r.value.delete(Z.key),t(xae,Z.data,Z)}function z(Z){return r.value.has(Z.key)}function $(Z){return!!Z.disabled}function j(Z){const ne=n.value;return ne!==void 0&&ne===Z.key}function X(){var Z,ne;if(n.value)return(ne=(Z=a.value)==null?void 0:Z.treeNodeMap.get(n.value))==null?void 0:ne.data}function Q(){return n.value}function se(Z){n.value=Z}function ee(Z){qe(()=>a.value=T(Z))}function K(Z){var ne;const re=Vt(Z)?M(Z):Z;return(ne=a.value)==null?void 0:ne.treeNodeMap.get(re)}return{tree:a,flattenTree:x,isNotEmpty:S,getKey:M,getChildren:C,toggleExpand:P,toggleCheckbox:s,isExpanded:z,isChecked:o,isIndeterminate:i,isDisabled:$,isCurrent:j,isForceHiddenExpandIcon:g,handleNodeClick:I,handleNodeCheck:R,getCurrentNode:X,getCurrentKey:Q,setCurrentKey:se,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:d,setCheckedKeys:h,filter:A,setData:ee,getNode:K,expandNode:B,collapseNode:k,setExpandedKeys:L}}var gct=te({name:"ElTreeNodeContent",props:cct,setup(e){const t=Ye(a4),r=Ce("tree");return()=>{const n=e.node,{data:a}=n;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:n,data:a}):et("span",{class:r.be("node","label")},[n==null?void 0:n.label])}}});const mct=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],yct=te({name:"ElTreeNode"}),_ct=te({...yct,props:uct,emits:dct,setup(e,{emit:t}){const r=e,n=Ye(a4),a=Ce("tree"),i=F(()=>{var f;return(f=n==null?void 0:n.props.indent)!=null?f:16}),o=F(()=>{var f;return(f=n==null?void 0:n.props.icon)!=null?f:Iee}),s=f=>{t("click",r.node,f)},l=()=>{t("toggle",r.node)},u=f=>{t("check",r.node,f)},c=f=>{var d,h,v,p;(v=(h=(d=n==null?void 0:n.instance)==null?void 0:d.vnode)==null?void 0:h.props)!=null&&v.onNodeContextmenu&&(f.stopPropagation(),f.preventDefault()),n==null||n.ctx.emit(Eae,f,(p=r.node)==null?void 0:p.data,r.node)};return(f,d)=>{var h,v,p;return N(),U("div",{ref:"node$",class:H([b(a).b("node"),b(a).is("expanded",f.expanded),b(a).is("current",f.current),b(a).is("focusable",!f.disabled),b(a).is("checked",!f.disabled&&f.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":f.expanded,"aria-disabled":f.disabled,"aria-checked":f.checked,"data-key":(h=f.node)==null?void 0:h.key,onClick:it(s,["stop"]),onContextmenu:c},[V("div",{class:H(b(a).be("node","content")),style:Xe({paddingLeft:`${(f.node.level-1)*b(i)}px`,height:f.itemSize+"px"})},[b(o)?(N(),he(b(Ze),{key:0,class:H([b(a).is("leaf",!!((v=f.node)!=null&&v.isLeaf)),b(a).is("hidden",f.hiddenExpandIcon),{expanded:!((p=f.node)!=null&&p.isLeaf)&&f.expanded},b(a).be("node","expand-icon")]),onClick:it(l,["stop"])},{default:le(()=>[(N(),he(Ft(b(o))))]),_:1},8,["class","onClick"])):ce("v-if",!0),f.showCheckbox?(N(),he(b(hs),{key:1,"model-value":f.checked,indeterminate:f.indeterminate,disabled:f.disabled,onChange:u,onClick:d[0]||(d[0]=it(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):ce("v-if",!0),J(b(gct),{node:f.node},null,8,["node"])],6)],42,mct)}}});var bct=ke(_ct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const wct=te({name:"ElTreeV2"}),Sct=te({...wct,props:lct,emits:fct,setup(e,{expose:t,emit:r}){const n=e,a=$a(),i=F(()=>n.itemSize);Wt(a4,{ctx:{emit:r,slots:a},props:n,instance:It()}),Wt(Yl,void 0);const{t:o}=fr(),s=Ce("tree"),{flattenTree:l,isNotEmpty:u,toggleExpand:c,isExpanded:f,isIndeterminate:d,isChecked:h,isDisabled:v,isCurrent:p,isForceHiddenExpandIcon:g,handleNodeClick:m,handleNodeCheck:y,toggleCheckbox:_,getCurrentNode:w,getCurrentKey:x,setCurrentKey:S,getCheckedKeys:T,getCheckedNodes:A,getHalfCheckedKeys:C,getHalfCheckedNodes:M,setChecked:E,setCheckedKeys:D,filter:P,setData:L,getNode:I,expandNode:O,collapseNode:R,setExpandedKeys:B}=pct(n,r);return t({toggleCheckbox:_,getCurrentNode:w,getCurrentKey:x,setCurrentKey:S,getCheckedKeys:T,getCheckedNodes:A,getHalfCheckedKeys:C,getHalfCheckedNodes:M,setChecked:E,setCheckedKeys:D,filter:P,setData:L,getNode:I,expandNode:O,collapseNode:R,setExpandedKeys:B}),(k,z)=>{var $;return N(),U("div",{class:H([b(s).b(),{[b(s).m("highlight-current")]:k.highlightCurrent}]),role:"tree"},[b(u)?(N(),he(b(Ine),{key:0,"class-name":b(s).b("virtual-list"),data:b(l),total:b(l).length,height:k.height,"item-size":b(i),"perf-mode":k.perfMode},{default:le(({data:j,index:X,style:Q})=>[(N(),he(bct,{key:j[X].key,style:Xe(Q),node:j[X],expanded:b(f)(j[X]),"show-checkbox":k.showCheckbox,checked:b(h)(j[X]),indeterminate:b(d)(j[X]),"item-size":b(i),disabled:b(v)(j[X]),current:b(p)(j[X]),"hidden-expand-icon":b(g)(j[X]),onClick:b(m),onToggle:b(c),onCheck:b(y)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(N(),U("div",{key:1,class:H(b(s).e("empty-block"))},[V("span",{class:H(b(s).e("empty-text"))},me(($=k.emptyText)!=null?$:b(o)("el.tree.emptyText")),3)],2))],2)}}});var xct=ke(Sct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const Act=kt(xct),Mae=Symbol("uploadContextKey"),Tct="ElUpload";class Cct extends Error{constructor(t,r,n,a){super(t),this.name="UploadAjaxError",this.status=r,this.method=n,this.url=a}}function l$(e,t,r){let n;return r.response?n=`${r.response.error||r.response}`:r.responseText?n=`${r.responseText}`:n=`fail to ${t.method} ${e} ${r.status}`,new Cct(n,r.status,t.method,e)}function Ect(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Mct=e=>{typeof XMLHttpRequest>"u"&&ua(Tct,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,r=e.action;t.upload&&t.upload.addEventListener("progress",i=>{const o=i;o.percent=i.total>0?i.loaded/i.total*100:0,e.onProgress(o)});const n=new FormData;if(e.data)for(const[i,o]of Object.entries(e.data))We(o)&&o.length?n.append(i,...o):n.append(i,o);n.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(l$(r,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(l$(r,e,t));e.onSuccess(Ect(t))}),t.open(e.method,r,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const a=e.headers||{};if(a instanceof Headers)a.forEach((i,o)=>t.setRequestHeader(o,i));else for(const[i,o]of Object.entries(a))Qn(o)||t.setRequestHeader(i,String(o));return t.send(n),t},Dae=["text","picture","picture-card"];let Dct=1;const YI=()=>Date.now()+Dct++,Pae=Oe({action:{type:String,default:"#"},headers:{type:fe(Object)},method:{type:String,default:"post"},data:{type:fe([Object,Function,Promise]),default:()=>mn({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:fe(Array),default:()=>mn([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:Dae,default:"text"},httpRequest:{type:fe(Function),default:Mct},disabled:Boolean,limit:Number}),Pct=Oe({...Pae,beforeUpload:{type:fe(Function),default:zr},beforeRemove:{type:fe(Function)},onRemove:{type:fe(Function),default:zr},onChange:{type:fe(Function),default:zr},onPreview:{type:fe(Function),default:zr},onSuccess:{type:fe(Function),default:zr},onProgress:{type:fe(Function),default:zr},onError:{type:fe(Function),default:zr},onExceed:{type:fe(Function),default:zr}}),Lct=Oe({files:{type:fe(Array),default:()=>mn([])},disabled:{type:Boolean,default:!1},handlePreview:{type:fe(Function),default:zr},listType:{type:String,values:Dae,default:"text"}}),Ict={remove:e=>!!e},Rct=["onKeydown"],Oct=["src"],kct=["onClick"],Nct=["title"],Bct=["onClick"],Fct=["onClick"],Vct=te({name:"ElUploadList"}),zct=te({...Vct,props:Lct,emits:Ict,setup(e,{emit:t}){const r=e,{t:n}=fr(),a=Ce("upload"),i=Ce("icon"),o=Ce("list"),s=ho(),l=G(!1),u=F(()=>[a.b("list"),a.bm("list",r.listType),a.is("disabled",r.disabled)]),c=f=>{t("remove",f)};return(f,d)=>(N(),he(Q9,{tag:"ul",class:H(b(u)),name:b(o).b()},{default:le(()=>[(N(!0),U(Be,null,ht(f.files,h=>(N(),U("li",{key:h.uid||h.name,class:H([b(a).be("list","item"),b(a).is(h.status),{focusing:l.value}]),tabindex:"0",onKeydown:dr(v=>!b(s)&&c(h),["delete"]),onFocus:d[0]||(d[0]=v=>l.value=!0),onBlur:d[1]||(d[1]=v=>l.value=!1),onClick:d[2]||(d[2]=v=>l.value=!1)},[ye(f.$slots,"default",{file:h},()=>[f.listType==="picture"||h.status!=="uploading"&&f.listType==="picture-card"?(N(),U("img",{key:0,class:H(b(a).be("list","item-thumbnail")),src:h.url,alt:""},null,10,Oct)):ce("v-if",!0),h.status==="uploading"||f.listType!=="picture-card"?(N(),U("div",{key:1,class:H(b(a).be("list","item-info"))},[V("a",{class:H(b(a).be("list","item-name")),onClick:it(v=>f.handlePreview(h),["prevent"])},[J(b(Ze),{class:H(b(i).m("document"))},{default:le(()=>[J(b(tUe))]),_:1},8,["class"]),V("span",{class:H(b(a).be("list","item-file-name")),title:h.name},me(h.name),11,Nct)],10,kct),h.status==="uploading"?(N(),he(b(xne),{key:0,type:f.listType==="picture-card"?"circle":"line","stroke-width":f.listType==="picture-card"?6:2,percentage:Number(h.percentage),style:Xe(f.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):ce("v-if",!0)],2)):ce("v-if",!0),V("label",{class:H(b(a).be("list","item-status-label"))},[f.listType==="text"?(N(),he(b(Ze),{key:0,class:H([b(i).m("upload-success"),b(i).m("circle-check")])},{default:le(()=>[J(b(qN))]),_:1},8,["class"])):["picture-card","picture"].includes(f.listType)?(N(),he(b(Ze),{key:1,class:H([b(i).m("upload-success"),b(i).m("check")])},{default:le(()=>[J(b(P1))]),_:1},8,["class"])):ce("v-if",!0)],2),b(s)?ce("v-if",!0):(N(),he(b(Ze),{key:2,class:H(b(i).m("close")),onClick:v=>c(h)},{default:le(()=>[J(b(el))]),_:2},1032,["class","onClick"])),ce(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),ce(" This is a bug which needs to be fixed "),ce(" TODO: Fix the incorrect navigation interaction "),b(s)?ce("v-if",!0):(N(),U("i",{key:3,class:H(b(i).m("close-tip"))},me(b(n)("el.upload.deleteTip")),3)),f.listType==="picture-card"?(N(),U("span",{key:4,class:H(b(a).be("list","item-actions"))},[V("span",{class:H(b(a).be("list","item-preview")),onClick:v=>f.handlePreview(h)},[J(b(Ze),{class:H(b(i).m("zoom-in"))},{default:le(()=>[J(b(Nee))]),_:1},8,["class"])],10,Bct),b(s)?ce("v-if",!0):(N(),U("span",{key:0,class:H(b(a).be("list","item-delete")),onClick:v=>c(h)},[J(b(Ze),{class:H(b(i).m("delete"))},{default:le(()=>[J(b(JGe))]),_:1},8,["class"])],10,Fct))],2)):ce("v-if",!0)])],42,Rct))),128)),ye(f.$slots,"append")]),_:3},8,["class","name"]))}});var u$=ke(zct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const Hct=Oe({disabled:{type:Boolean,default:!1}}),Gct={file:e=>We(e)},Uct=["onDrop","onDragover"],Lae="ElUploadDrag",$ct=te({name:Lae}),Wct=te({...$ct,props:Hct,emits:Gct,setup(e,{emit:t}){const r=Ye(Mae);r||ua(Lae,"usage: ");const n=Ce("upload"),a=G(!1),i=ho(),o=l=>{if(i.value)return;a.value=!1,l.stopPropagation();const u=Array.from(l.dataTransfer.files),c=r.accept.value;if(!c){t("file",u);return}const f=u.filter(d=>{const{type:h,name:v}=d,p=v.includes(".")?`.${v.split(".").pop()}`:"",g=h.replace(/\/.*$/,"");return c.split(",").map(m=>m.trim()).filter(m=>m).some(m=>m.startsWith(".")?p===m:/\/\*$/.test(m)?g===m.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(m)?h===m:!1)});t("file",f)},s=()=>{i.value||(a.value=!0)};return(l,u)=>(N(),U("div",{class:H([b(n).b("dragger"),b(n).is("dragover",a.value)]),onDrop:it(o,["prevent"]),onDragover:it(s,["prevent"]),onDragleave:u[0]||(u[0]=it(c=>a.value=!1,["prevent"]))},[ye(l.$slots,"default")],42,Uct))}});var Yct=ke(Wct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const jct=Oe({...Pae,beforeUpload:{type:fe(Function),default:zr},onRemove:{type:fe(Function),default:zr},onStart:{type:fe(Function),default:zr},onSuccess:{type:fe(Function),default:zr},onProgress:{type:fe(Function),default:zr},onError:{type:fe(Function),default:zr},onExceed:{type:fe(Function),default:zr}}),Kct=["onKeydown"],Xct=["name","multiple","accept"],Zct=te({name:"ElUploadContent",inheritAttrs:!1}),qct=te({...Zct,props:jct,setup(e,{expose:t}){const r=e,n=Ce("upload"),a=ho(),i=yr({}),o=yr(),s=p=>{if(p.length===0)return;const{autoUpload:g,limit:m,fileList:y,multiple:_,onStart:w,onExceed:x}=r;if(m&&y.length+p.length>m){x(p,y);return}_||(p=p.slice(0,1));for(const S of p){const T=S;T.uid=YI(),w(T),g&&l(T)}},l=async p=>{if(o.value.value="",!r.beforeUpload)return c(p);let g,m={};try{const _=r.data,w=r.beforeUpload(p);m=US(r.data)?s2(r.data):r.data,g=await w,US(r.data)&&to(_,m)&&(m=s2(r.data))}catch{g=!1}if(g===!1){r.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)=>dt(p)?p(g):p,c=async(p,g)=>{const{headers:m,data:y,method:_,withCredentials:w,name:x,action:S,onProgress:T,onSuccess:A,onError:C,httpRequest:M}=r;try{g=await u(g??y,p)}catch{r.onRemove(p);return}const{uid:E}=p,D={headers:m||{},withCredentials:w,file:p,data:g,method:_,filename:x,action:S,onProgress:L=>{T(L,p)},onSuccess:L=>{A(L,p),delete i.value[E]},onError:L=>{C(L,p),delete i.value[E]}},P=M(D);i.value[E]=P,P instanceof Promise&&P.then(D.onSuccess,D.onError)},f=p=>{const g=p.target.files;g&&s(Array.from(g))},d=()=>{a.value||(o.value.value="",o.value.click())},h=()=>{d()};return t({abort:p=>{MGe(i.value).filter(p?([m])=>String(p.uid)===m:()=>!0).forEach(([m,y])=>{y instanceof XMLHttpRequest&&y.abort(),delete i.value[m]})},upload:l}),(p,g)=>(N(),U("div",{class:H([b(n).b(),b(n).m(p.listType),b(n).is("drag",p.drag)]),tabindex:"0",onClick:d,onKeydown:dr(it(h,["self"]),["enter","space"])},[p.drag?(N(),he(Yct,{key:0,disabled:b(a),onFile:s},{default:le(()=>[ye(p.$slots,"default")]),_:3},8,["disabled"])):ye(p.$slots,"default",{key:1}),V("input",{ref_key:"inputRef",ref:o,class:H(b(n).e("input")),name:p.name,multiple:p.multiple,accept:p.accept,type:"file",onChange:f,onClick:g[0]||(g[0]=it(()=>{},["stop"]))},null,42,Xct)],42,Kct))}});var c$=ke(qct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const f$="ElUpload",d$=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},Qct=(e,t)=>{const r=pFe(e,"fileList",void 0,{passive:!0}),n=d=>r.value.find(h=>h.uid===d.uid);function a(d){var h;(h=t.value)==null||h.abort(d)}function i(d=["ready","uploading","success","fail"]){r.value=r.value.filter(h=>!d.includes(h.status))}const o=(d,h)=>{const v=n(h);v&&(console.error(d),v.status="fail",r.value.splice(r.value.indexOf(v),1),e.onError(d,v,r.value),e.onChange(v,r.value))},s=(d,h)=>{const v=n(h);v&&(e.onProgress(d,v,r.value),v.status="uploading",v.percentage=Math.round(d.percent))},l=(d,h)=>{const v=n(h);v&&(v.status="success",v.response=d,e.onSuccess(d,v,r.value),e.onChange(v,r.value))},u=d=>{Qn(d.uid)&&(d.uid=YI());const h={name:d.name,percentage:0,status:"ready",size:d.size,raw:d,uid:d.uid};if(e.listType==="picture-card"||e.listType==="picture")try{h.url=URL.createObjectURL(d)}catch(v){v.message,e.onError(v,h,r.value)}r.value=[...r.value,h],e.onChange(h,r.value)},c=async d=>{const h=d instanceof File?n(d):d;h||ua(f$,"file to be removed not found");const v=p=>{a(p);const g=r.value;g.splice(g.indexOf(p),1),e.onRemove(p,g),d$(p)};e.beforeRemove?await e.beforeRemove(h,r.value)!==!1&&v(h):v(h)};function f(){r.value.filter(({status:d})=>d==="ready").forEach(({raw:d})=>{var h;return d&&((h=t.value)==null?void 0:h.upload(d))})}return Ae(()=>e.listType,d=>{d!=="picture-card"&&d!=="picture"||(r.value=r.value.map(h=>{const{raw:v,url:p}=h;if(!p&&v)try{h.url=URL.createObjectURL(v)}catch(g){e.onError(g,h,r.value)}return h}))}),Ae(r,d=>{for(const h of d)h.uid||(h.uid=YI()),h.status||(h.status="success")},{immediate:!0,deep:!0}),{uploadFiles:r,abort:a,clearFiles:i,handleError:o,handleProgress:s,handleStart:u,handleSuccess:l,handleRemove:c,submit:f,revokeFileObjectURL:d$}},Jct=te({name:"ElUpload"}),eft=te({...Jct,props:Pct,setup(e,{expose:t}){const r=e,n=ho(),a=yr(),{abort:i,submit:o,clearFiles:s,uploadFiles:l,handleStart:u,handleError:c,handleRemove:f,handleSuccess:d,handleProgress:h,revokeFileObjectURL:v}=Qct(r,a),p=F(()=>r.listType==="picture-card"),g=F(()=>({...r,fileList:l.value,onStart:u,onProgress:h,onSuccess:d,onError:c,onRemove:f}));return un(()=>{l.value.forEach(v)}),Wt(Mae,{accept:Sn(r,"accept")}),t({abort:i,submit:o,clearFiles:s,handleStart:u,handleRemove:f}),(m,y)=>(N(),U("div",null,[b(p)&&m.showFileList?(N(),he(u$,{key:0,disabled:b(n),"list-type":m.listType,files:b(l),"handle-preview":m.onPreview,onRemove:b(f)},Bl({append:le(()=>[J(c$,Ut({ref_key:"uploadRef",ref:a},b(g)),{default:le(()=>[m.$slots.trigger?ye(m.$slots,"trigger",{key:0}):ce("v-if",!0),!m.$slots.trigger&&m.$slots.default?ye(m.$slots,"default",{key:1}):ce("v-if",!0)]),_:3},16)]),_:2},[m.$slots.file?{name:"default",fn:le(({file:_})=>[ye(m.$slots,"file",{file:_})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):ce("v-if",!0),!b(p)||b(p)&&!m.showFileList?(N(),he(c$,Ut({key:1,ref_key:"uploadRef",ref:a},b(g)),{default:le(()=>[m.$slots.trigger?ye(m.$slots,"trigger",{key:0}):ce("v-if",!0),!m.$slots.trigger&&m.$slots.default?ye(m.$slots,"default",{key:1}):ce("v-if",!0)]),_:3},16)):ce("v-if",!0),m.$slots.trigger?ye(m.$slots,"default",{key:2}):ce("v-if",!0),ye(m.$slots,"tip"),!b(p)&&m.showFileList?(N(),he(u$,{key:3,disabled:b(n),"list-type":m.listType,files:b(l),"handle-preview":m.onPreview,onRemove:b(f)},Bl({_:2},[m.$slots.file?{name:"default",fn:le(({file:_})=>[ye(m.$slots,"file",{file:_})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):ce("v-if",!0)]))}});var tft=ke(eft,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const rft=kt(tft),nft=Oe({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:fe([String,Array]),default:"Element Plus"},font:{type:fe(Object)},gap:{type:fe(Array),default:()=>[100,100]},offset:{type:fe(Array)}});function aft(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function ift(e){return Object.keys(e).map(t=>`${aft(t)}: ${e[t]};`).join(" ")}function oft(){return window.devicePixelRatio||1}const sft=(e,t)=>{let r=!1;return e.removedNodes.length&&t&&(r=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(r=!0),r},Iae=3;function tD(e,t,r=1){const n=document.createElement("canvas"),a=n.getContext("2d"),i=e*r,o=t*r;return n.setAttribute("width",`${i}px`),n.setAttribute("height",`${o}px`),a.save(),[a,n,i,o]}function lft(){function e(t,r,n,a,i,o,s,l){const[u,c,f,d]=tD(a,i,n);if(t instanceof HTMLImageElement)u.drawImage(t,0,0,f,d);else{const{color:$,fontSize:j,fontStyle:X,fontWeight:Q,fontFamily:se,textAlign:ee,textBaseline:K}=o,Z=Number(j)*n;u.font=`${X} normal ${Q} ${Z}px/${i}px ${se}`,u.fillStyle=$,u.textAlign=ee,u.textBaseline=K;const ne=Array.isArray(t)?t:[t];ne==null||ne.forEach((re,ie)=>{u.fillText(re??"",f/2,ie*(Z+Iae*n))})}const h=Math.PI/180*Number(r),v=Math.max(a,i),[p,g,m]=tD(v,v,n);p.translate(m/2,m/2),p.rotate(h),f>0&&d>0&&p.drawImage(c,-f/2,-d/2);function y($,j){const X=$*Math.cos(h)-j*Math.sin(h),Q=$*Math.sin(h)+j*Math.cos(h);return[X,Q]}let _=0,w=0,x=0,S=0;const T=f/2,A=d/2;[[0-T,0-A],[0+T,0-A],[0+T,0+A],[0-T,0+A]].forEach(([$,j])=>{const[X,Q]=y($,j);_=Math.min(_,X),w=Math.max(w,X),x=Math.min(x,Q),S=Math.max(S,Q)});const M=_+m/2,E=x+m/2,D=w-_,P=S-x,L=s*n,I=l*n,O=(D+L)*2,R=P+I,[B,k]=tD(O,R);function z($=0,j=0){B.drawImage(g,M,E,D,P,$,j,D,P)}return z(),z(D+L,-P/2-I/2),z(D+L,+P/2+I/2),[k.toDataURL(),O/n,R/n]}return e}const uft=te({name:"ElWatermark"}),cft=te({...uft,props:nft,setup(e){const t=e,r={position:"relative"},n=F(()=>{var M,E;return(E=(M=t.font)==null?void 0:M.color)!=null?E:"rgba(0,0,0,.15)"}),a=F(()=>{var M,E;return(E=(M=t.font)==null?void 0:M.fontSize)!=null?E:16}),i=F(()=>{var M,E;return(E=(M=t.font)==null?void 0:M.fontWeight)!=null?E:"normal"}),o=F(()=>{var M,E;return(E=(M=t.font)==null?void 0:M.fontStyle)!=null?E:"normal"}),s=F(()=>{var M,E;return(E=(M=t.font)==null?void 0:M.fontFamily)!=null?E:"sans-serif"}),l=F(()=>{var M,E;return(E=(M=t.font)==null?void 0:M.textAlign)!=null?E:"center"}),u=F(()=>{var M,E;return(E=(M=t.font)==null?void 0:M.textBaseline)!=null?E:"top"}),c=F(()=>t.gap[0]),f=F(()=>t.gap[1]),d=F(()=>c.value/2),h=F(()=>f.value/2),v=F(()=>{var M,E;return(E=(M=t.offset)==null?void 0:M[0])!=null?E:d.value}),p=F(()=>{var M,E;return(E=(M=t.offset)==null?void 0:M[1])!=null?E:h.value}),g=()=>{const M={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let E=v.value-d.value,D=p.value-h.value;return E>0&&(M.left=`${E}px`,M.width=`calc(100% - ${E}px)`,E=0),D>0&&(M.top=`${D}px`,M.height=`calc(100% - ${D}px)`,D=0),M.backgroundPosition=`${E}px ${D}px`,M},m=yr(null),y=yr(),_=G(!1),w=()=>{y.value&&(y.value.remove(),y.value=void 0)},x=(M,E)=>{var D;m.value&&y.value&&(_.value=!0,y.value.setAttribute("style",ift({...g(),backgroundImage:`url('${M}')`,backgroundSize:`${Math.floor(E)}px`})),(D=m.value)==null||D.append(y.value),setTimeout(()=>{_.value=!1}))},S=M=>{let E=120,D=64;const P=t.image,L=t.content,I=t.width,O=t.height;if(!P&&M.measureText){M.font=`${Number(a.value)}px ${s.value}`;const R=Array.isArray(L)?L:[L],B=R.map(k=>{const z=M.measureText(k);return[z.width,z.fontBoundingBoxAscent+z.fontBoundingBoxDescent]});E=Math.ceil(Math.max(...B.map(k=>k[0]))),D=Math.ceil(Math.max(...B.map(k=>k[1])))*R.length+(R.length-1)*Iae}return[I??E,O??D]},T=lft(),A=()=>{const E=document.createElement("canvas").getContext("2d"),D=t.image,P=t.content,L=t.rotate;if(E){y.value||(y.value=document.createElement("div"));const I=oft(),[O,R]=S(E),B=k=>{const[z,$]=T(k||"",L,I,O,R,{color:n.value,fontSize:a.value,fontStyle:o.value,fontWeight:i.value,fontFamily:s.value,textAlign:l.value,textBaseline:u.value},c.value,f.value);x(z,$)};if(D){const k=new Image;k.onload=()=>{B(k)},k.onerror=()=>{B(P)},k.crossOrigin="anonymous",k.referrerPolicy="no-referrer",k.src=D}else B(P)}};return xt(()=>{A()}),Ae(()=>t,()=>{A()},{deep:!0,flush:"post"}),un(()=>{w()}),uFe(m,M=>{_.value||M.forEach(E=>{sft(E,y.value)&&(w(),A())})},{attributes:!0}),(M,E)=>(N(),U("div",{ref_key:"containerRef",ref:m,style:Xe([r])},[ye(M.$slots,"default")],4))}});var fft=ke(cft,[["__file","/home/runner/work/element-plus/element-plus/packages/components/watermark/src/watermark.vue"]]);const dft=kt(fft);var hft=[n9e,v9e,zYe,_lt,jYe,eje,Hte,hje,vje,Ja,Kte,RKe,FKe,QKe,JKe,dZe,QXe,yZe,hs,yXe,Sre,PZe,KZe,XZe,zZe,Tqe,XWe,Bqe,Fqe,Vqe,zqe,Hqe,sJe,yJe,_Je,kJe,nne,XJe,Get,Uet,$et,dne,s7e,l7e,Ze,Ntt,hne,li,vne,Ztt,grt,mrt,yrt,_rt,Crt,Int,Fnt,jnt,Fte,xne,Dre,OXe,RXe,cat,pat,TZe,ic,Kh,v2,ant,ait,dit,hit,Uit,Kit,Gne,iot,vot,pot,Cot,Ost,kst,ylt,Olt,klt,w_,zlt,fKe,Ylt,qlt,Qlt,Bi,Aut,Vut,Jut,oct,Act,rft,dft];const Ls="ElInfiniteScroll",vft=50,pft=200,gft=0,mft={delay:{type:Number,default:pft},distance:{type:Number,default:gft},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},i4=(e,t)=>Object.entries(mft).reduce((r,[n,a])=>{var i,o;const{type:s,default:l}=a,u=e.getAttribute(`infinite-scroll-${n}`);let c=(o=(i=t[u])!=null?i:u)!=null?o:l;return c=c==="false"?!1:c,c=s(c),r[n]=Number.isNaN(c)?l:c,r},{}),Rae=e=>{const{observer:t}=e[Ls];t&&(t.disconnect(),delete e[Ls].observer)},yft=(e,t)=>{const{container:r,containerEl:n,instance:a,observer:i,lastScrollTop:o}=e[Ls],{disabled:s,distance:l}=i4(e,a),{clientHeight:u,scrollHeight:c,scrollTop:f}=n,d=f-o;if(e[Ls].lastScrollTop=f,i||s||d<0)return;let h=!1;if(r===e)h=c-(u+f)<=l;else{const{clientTop:v,scrollHeight:p}=e,g=_Fe(e,n);h=f+u>=g+v+p-l}h&&t.call(a)};function rD(e,t){const{containerEl:r,instance:n}=e[Ls],{disabled:a}=i4(e,n);a||r.clientHeight===0||(r.scrollHeight<=r.clientHeight?t.call(n):Rae(e))}const _ft={async mounted(e,t){const{instance:r,value:n}=t;dt(n)||ua(Ls,"'v-infinite-scroll' binding value must be a function"),await qe();const{delay:a,immediate:i}=i4(e,r),o=ZN(e,!0),s=o===window?document.documentElement:o,l=Eh(yft.bind(null,e,n),a);if(o){if(e[Ls]={instance:r,container:o,containerEl:s,delay:a,cb:n,onScroll:l,lastScrollTop:s.scrollTop},i){const u=new MutationObserver(Eh(rD.bind(null,e,n),vft));e[Ls].observer=u,u.observe(e,{childList:!0,subtree:!0}),rD(e,n)}o.addEventListener("scroll",l)}},unmounted(e){const{container:t,onScroll:r}=e[Ls];t==null||t.removeEventListener("scroll",r),Rae(e)},async updated(e){if(!e[Ls])await qe();else{const{containerEl:t,cb:r,observer:n}=e[Ls];t.clientHeight&&n&&rD(e,r)}}},jI=_ft;jI.install=e=>{e.directive("InfiniteScroll",jI)};const bft=jI;function wft(e){let t;const r=G(!1),n=Ar({...e,originalPosition:"",originalOverflow:"",visible:!1});function a(d){n.text=d}function i(){const d=n.parent,h=f.ns;if(!d.vLoadingAddClassList){let v=d.getAttribute("loading-number");v=Number.parseInt(v)-1,v?d.setAttribute("loading-number",v.toString()):(ro(d,h.bm("parent","relative")),d.removeAttribute("loading-number")),ro(d,h.bm("parent","hidden"))}o(),c.unmount()}function o(){var d,h;(h=(d=f.$el)==null?void 0:d.parentNode)==null||h.removeChild(f.$el)}function s(){var d;e.beforeClose&&!e.beforeClose()||(r.value=!0,clearTimeout(t),t=window.setTimeout(l,400),n.visible=!1,(d=e.closed)==null||d.call(e))}function l(){if(!r.value)return;const d=n.parent;r.value=!1,d.vLoadingAddClassList=void 0,i()}const c=n7(te({name:"ElLoading",setup(d,{expose:h}){const{ns:v,zIndex:p}=ET("loading");return h({ns:v,zIndex:p}),()=>{const g=n.spinner||n.svg,m=et("svg",{class:"circular",viewBox:n.svgViewBox?n.svgViewBox:"0 0 50 50",...g?{innerHTML:g}:{}},[et("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),y=n.text?et("p",{class:v.b("text")},[n.text]):void 0;return et(Yn,{name:v.b("fade"),onAfterLeave:l},{default:le(()=>[Ct(J("div",{style:{backgroundColor:n.background||""},class:[v.b("mask"),n.customClass,n.fullscreen?"is-fullscreen":""]},[et("div",{class:v.b("spinner")},[m,y])]),[[hr,n.visible]])])})}}})),f=c.mount(document.createElement("div"));return{...Da(n),setText:a,removeElLoadingChild:o,close:s,handleAfterLeave:l,vm:f,get $el(){return f.$el}}}let _w;const KI=function(e={}){if(!ur)return;const t=Sft(e);if(t.fullscreen&&_w)return _w;const r=wft({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(_w=void 0)}});xft(t,t.parent,r),h$(t,t.parent,r),t.parent.vLoadingAddClassList=()=>h$(t,t.parent,r);let n=t.parent.getAttribute("loading-number");return n?n=`${Number.parseInt(n)+1}`:n="1",t.parent.setAttribute("loading-number",n),t.parent.appendChild(r.$el),qe(()=>r.visible.value=t.visible),t.fullscreen&&(_w=r),r},Sft=e=>{var t,r,n,a;let i;return wt(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((r=e.fullscreen)!=null?r:!0),lock:(n=e.lock)!=null?n:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,target:i}},xft=async(e,t,r)=>{const{nextZIndex:n}=r.vm.zIndex||r.vm._.exposed.zIndex,a={};if(e.fullscreen)r.originalPosition.value=Hc(document.body,"position"),r.originalOverflow.value=Hc(document.body,"overflow"),a.zIndex=n();else if(e.parent===document.body){r.originalPosition.value=Hc(document.body,"position"),await qe();for(const i of["top","left"]){const o=i==="top"?"scrollTop":"scrollLeft";a[i]=`${e.target.getBoundingClientRect()[i]+document.body[o]+document.documentElement[o]-Number.parseInt(Hc(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])a[i]=`${e.target.getBoundingClientRect()[i]}px`}else r.originalPosition.value=Hc(t,"position");for(const[i,o]of Object.entries(a))r.$el.style[i]=o},h$=(e,t,r)=>{const n=r.vm.ns||r.vm._.exposed.ns;["absolute","fixed","sticky"].includes(r.originalPosition.value)?ro(t,n.bm("parent","relative")):Pl(t,n.bm("parent","relative")),e.fullscreen&&e.lock?Pl(t,n.bm("parent","hidden")):ro(t,n.bm("parent","hidden"))},XI=Symbol("ElLoading"),v$=(e,t)=>{var r,n,a,i;const o=t.instance,s=d=>Vt(t.value)?t.value[d]:void 0,l=d=>{const h=wt(d)&&(o==null?void 0:o[d])||d;return h&&G(h)},u=d=>l(s(d)||e.getAttribute(`element-loading-${If(d)}`)),c=(r=s("fullscreen"))!=null?r: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:(n=s("target"))!=null?n:c?void 0:e,body:(a=s("body"))!=null?a:t.modifiers.body,lock:(i=s("lock"))!=null?i:t.modifiers.lock};e[XI]={options:f,instance:KI(f)}},Aft=(e,t)=>{for(const r of Object.keys(t))Qr(t[r])&&(t[r].value=e[r])},p$={mounted(e,t){t.value&&v$(e,t)},updated(e,t){const r=e[XI];t.oldValue!==t.value&&(t.value&&!t.oldValue?v$(e,t):t.value&&t.oldValue?Vt(t.value)&&Aft(t.value,r.options):r==null||r.instance.close())},unmounted(e){var t;(t=e[XI])==null||t.instance.close()}},Tft={install(e){e.directive("loading",p$),e.config.globalProperties.$loading=KI},directive:p$,service:KI},Oae=["success","info","warning","error"],ji=mn({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:ur?document.body:void 0}),Cft=Oe({customClass:{type:String,default:ji.customClass},center:{type:Boolean,default:ji.center},dangerouslyUseHTMLString:{type:Boolean,default:ji.dangerouslyUseHTMLString},duration:{type:Number,default:ji.duration},icon:{type:Zr,default:ji.icon},id:{type:String,default:ji.id},message:{type:fe([String,Object,Function]),default:ji.message},onClose:{type:fe(Function),required:!1},showClose:{type:Boolean,default:ji.showClose},type:{type:String,values:Oae,default:ji.type},offset:{type:Number,default:ji.offset},zIndex:{type:Number,default:ji.zIndex},grouping:{type:Boolean,default:ji.grouping},repeatNum:{type:Number,default:ji.repeatNum}}),Eft={destroy:()=>!0},Vs=xR([]),Mft=e=>{const t=Vs.findIndex(a=>a.id===e),r=Vs[t];let n;return t>0&&(n=Vs[t-1]),{current:r,prev:n}},Dft=e=>{const{prev:t}=Mft(e);return t?t.vm.exposed.bottom.value:0},Pft=(e,t)=>Vs.findIndex(n=>n.id===e)>0?20:t,Lft=["id"],Ift=["innerHTML"],Rft=te({name:"ElMessage"}),Oft=te({...Rft,props:Cft,emits:Eft,setup(e,{expose:t}){const r=e,{Close:n}=e3,{ns:a,zIndex:i}=ET("message"),{currentZIndex:o,nextZIndex:s}=i,l=G(),u=G(!1),c=G(0);let f;const d=F(()=>r.type?r.type==="error"?"danger":r.type:"info"),h=F(()=>{const T=r.type;return{[a.bm("icon",T)]:T&&Cf[T]}}),v=F(()=>r.icon||Cf[r.type]||""),p=F(()=>Dft(r.id)),g=F(()=>Pft(r.id,r.offset)+p.value),m=F(()=>c.value+g.value),y=F(()=>({top:`${g.value}px`,zIndex:o.value}));function _(){r.duration!==0&&({stop:f}=Wh(()=>{x()},r.duration))}function w(){f==null||f()}function x(){u.value=!1}function S({code:T}){T===Qe.esc&&x()}return xt(()=>{_(),s(),u.value=!0}),Ae(()=>r.repeatNum,()=>{w(),_()}),dn(document,"keydown",S),di(l,()=>{c.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:m,close:x}),(T,A)=>(N(),he(Yn,{name:b(a).b("fade"),onBeforeLeave:T.onClose,onAfterLeave:A[0]||(A[0]=C=>T.$emit("destroy")),persisted:""},{default:le(()=>[Ct(V("div",{id:T.id,ref_key:"messageRef",ref:l,class:H([b(a).b(),{[b(a).m(T.type)]:T.type&&!T.icon},b(a).is("center",T.center),b(a).is("closable",T.showClose),T.customClass]),style:Xe(b(y)),role:"alert",onMouseenter:w,onMouseleave:_},[T.repeatNum>1?(N(),he(b(Hte),{key:0,value:T.repeatNum,type:b(d),class:H(b(a).e("badge"))},null,8,["value","type","class"])):ce("v-if",!0),b(v)?(N(),he(b(Ze),{key:1,class:H([b(a).e("icon"),b(h)])},{default:le(()=>[(N(),he(Ft(b(v))))]),_:1},8,["class"])):ce("v-if",!0),ye(T.$slots,"default",{},()=>[T.dangerouslyUseHTMLString?(N(),U(Be,{key:1},[ce(" Caution here, message could've been compromised, never use user's input as message "),V("p",{class:H(b(a).e("content")),innerHTML:T.message},null,10,Ift)],2112)):(N(),U("p",{key:0,class:H(b(a).e("content"))},me(T.message),3))]),T.showClose?(N(),he(b(Ze),{key:2,class:H(b(a).e("closeBtn")),onClick:it(x,["stop"])},{default:le(()=>[J(b(n))]),_:1},8,["class","onClick"])):ce("v-if",!0)],46,Lft),[[hr,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var kft=ke(Oft,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let Nft=1;const kae=e=>{const t=!e||wt(e)||hn(e)||dt(e)?{message:e}:e,r={...ji,...t};if(!r.appendTo)r.appendTo=document.body;else if(wt(r.appendTo)){let n=document.querySelector(r.appendTo);us(n)||(n=document.body),r.appendTo=n}return r},Bft=e=>{const t=Vs.indexOf(e);if(t===-1)return;Vs.splice(t,1);const{handler:r}=e;r.close()},Fft=({appendTo:e,...t},r)=>{const n=`message_${Nft++}`,a=t.onClose,i=document.createElement("div"),o={...t,id:n,onClose:()=>{a==null||a(),Bft(c)},onDestroy:()=>{jp(null,i)}},s=J(kft,o,dt(o.message)||hn(o.message)?{default:dt(o.message)?o.message:()=>o.message}:null);s.appContext=r||_g._context,jp(s,i),e.appendChild(i.firstElementChild);const l=s.component,c={id:n,vnode:s,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:s.component.props};return c},_g=(e={},t)=>{if(!ur)return{close:()=>{}};if(ct(JL.max)&&Vs.length>=JL.max)return{close:()=>{}};const r=kae(e);if(r.grouping&&Vs.length){const a=Vs.find(({vnode:i})=>{var o;return((o=i.props)==null?void 0:o.message)===r.message});if(a)return a.props.repeatNum+=1,a.props.type=r.type,a.handler}const n=Fft(r,t);return Vs.push(n),n.handler};Oae.forEach(e=>{_g[e]=(t={},r)=>{const n=kae(t);return _g({...n,type:e},r)}});function Vft(e){for(const t of Vs)(!e||e===t.props.type)&&t.handler.close()}_g.closeAll=Vft;_g._context=null;const Jc=Vee(_g,"$message"),zft=te({name:"ElMessageBox",directives:{TrapFocus:jje},components:{ElButton:Ja,ElFocusTrap:DT,ElInput:li,ElOverlay:I3,ElIcon:Ze,...e3},inheritAttrs:!1,props:{buttonSize:{type:String,validator:r3},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,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:r,zIndex:n,ns:a,size:i}=ET("message-box",F(()=>e.buttonSize)),{t:o}=r,{nextZIndex:s}=n,l=G(!1),u=Ar({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),c=F(()=>{const I=u.type;return{[a.bm("icon",I)]:I&&Cf[I]}}),f=co(),d=co(),h=F(()=>u.icon||Cf[u.type]||""),v=F(()=>!!u.message),p=G(),g=G(),m=G(),y=G(),_=G(),w=F(()=>u.confirmButtonClass);Ae(()=>u.inputValue,async I=>{await qe(),e.boxType==="prompt"&&I!==null&&E()},{immediate:!0}),Ae(()=>l.value,I=>{var O,R;I&&(e.boxType!=="prompt"&&(u.autofocus?m.value=(R=(O=_.value)==null?void 0:O.$el)!=null?R:p.value:m.value=p.value),u.zIndex=s()),e.boxType==="prompt"&&(I?qe().then(()=>{var B;y.value&&y.value.$el&&(u.autofocus?m.value=(B=D())!=null?B:p.value:m.value=p.value)}):(u.editorErrorMessage="",u.validateError=!1))});const x=F(()=>e.draggable);zee(p,g,x),xt(async()=>{await qe(),e.closeOnHashChange&&window.addEventListener("hashchange",S)}),un(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",S)});function S(){l.value&&(l.value=!1,qe(()=>{u.action&&t("action",u.action)}))}const T=()=>{e.closeOnClickModal&&M(u.distinguishCancelAndClose?"close":"cancel")},A=h3(T),C=I=>{if(u.inputType!=="textarea")return I.preventDefault(),M("confirm")},M=I=>{var O;e.boxType==="prompt"&&I==="confirm"&&!E()||(u.action=I,u.beforeClose?(O=u.beforeClose)==null||O.call(u,I,u,S):S())},E=()=>{if(e.boxType==="prompt"){const I=u.inputPattern;if(I&&!I.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;const O=u.inputValidator;if(typeof O=="function"){const R=O(u.inputValue);if(R===!1)return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;if(typeof R=="string")return u.editorErrorMessage=R,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},D=()=>{const I=y.value.$refs;return I.input||I.textarea},P=()=>{M("close")},L=()=>{e.closeOnPressEscape&&P()};return e.lockScroll&&Uee(l),{...Da(u),ns:a,overlayEvent:A,visible:l,hasMessage:v,typeClass:c,contentId:f,inputId:d,btnSize:i,iconComponent:h,confirmButtonClasses:w,rootRef:p,focusStartRef:m,headerRef:g,inputRef:y,confirmRef:_,doClose:S,handleClose:P,onCloseRequested:L,handleWrapperClick:T,handleInputEnter:C,handleAction:M,t:o}}}),Hft=["aria-label","aria-describedby"],Gft=["aria-label"],Uft=["id"];function $ft(e,t,r,n,a,i){const o=bt("el-icon"),s=bt("close"),l=bt("el-input"),u=bt("el-button"),c=bt("el-focus-trap"),f=bt("el-overlay");return N(),he(Yn,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=d=>e.$emit("vanish")),persisted:""},{default:le(()=>[Ct(J(f,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:le(()=>[V("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:H(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...d)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...d)),onMousedown:t[9]||(t[9]=(...d)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...d)),onMouseup:t[10]||(t[10]=(...d)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...d))},[J(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:le(()=>[V("div",{ref:"rootRef",class:H([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Xe(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=it(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(N(),U("div",{key:0,ref:"headerRef",class:H(e.ns.e("header"))},[V("div",{class:H(e.ns.e("title"))},[e.iconComponent&&e.center?(N(),he(o,{key:0,class:H([e.ns.e("status"),e.typeClass])},{default:le(()=>[(N(),he(Ft(e.iconComponent)))]),_:1},8,["class"])):ce("v-if",!0),V("span",null,me(e.title),1)],2),e.showClose?(N(),U("button",{key:0,type:"button",class:H(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=dr(it(d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[J(o,{class:H(e.ns.e("close"))},{default:le(()=>[J(s)]),_:1},8,["class"])],42,Gft)):ce("v-if",!0)],2)):ce("v-if",!0),V("div",{id:e.contentId,class:H(e.ns.e("content"))},[V("div",{class:H(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(N(),he(o,{key:0,class:H([e.ns.e("status"),e.typeClass])},{default:le(()=>[(N(),he(Ft(e.iconComponent)))]),_:1},8,["class"])):ce("v-if",!0),e.hasMessage?(N(),U("div",{key:1,class:H(e.ns.e("message"))},[ye(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(N(),he(Ft(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(N(),he(Ft(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:le(()=>[nr(me(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):ce("v-if",!0)],2),Ct(V("div",{class:H(e.ns.e("input"))},[J(l,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=d=>e.inputValue=d),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:H({invalid:e.validateError}),onKeydown:dr(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),V("div",{class:H(e.ns.e("errormsg")),style:Xe({visibility:e.editorErrorMessage?"visible":"hidden"})},me(e.editorErrorMessage),7)],2),[[hr,e.showInput]])],10,Uft),V("div",{class:H(e.ns.e("btns"))},[e.showCancelButton?(N(),he(u,{key:0,loading:e.cancelButtonLoading,class:H([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=d=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=dr(it(d=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:le(()=>[nr(me(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):ce("v-if",!0),Ct(J(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:H([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=d=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=dr(it(d=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:le(()=>[nr(me(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[hr,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,Hft)]),_:3},8,["z-index","overlay-class","mask"]),[[hr,e.visible]])]),_:3})}var Wft=ke(zft,[["render",$ft],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const P_=new Map,Yft=e=>{let t=document.body;return e.appendTo&&(wt(e.appendTo)&&(t=document.querySelector(e.appendTo)),us(e.appendTo)&&(t=e.appendTo),us(t)||(t=document.body)),t},jft=(e,t,r=null)=>{const n=J(Wft,e,dt(e.message)||hn(e.message)?{default:dt(e.message)?e.message:()=>e.message}:null);return n.appContext=r,jp(n,t),Yft(e).appendChild(t.firstElementChild),n.component},Kft=()=>document.createElement("div"),Xft=(e,t)=>{const r=Kft();e.onVanish=()=>{jp(null,r),P_.delete(a)},e.onAction=i=>{const o=P_.get(a);let s;e.showInput?s={value:a.inputValue,action:i}:s=i,e.callback?e.callback(s,n.proxy):i==="cancel"||i==="close"?e.distinguishCancelAndClose&&i!=="cancel"?o.reject("close"):o.reject("cancel"):o.resolve(s)};const n=jft(e,r,t),a=n.proxy;for(const i in e)or(e,i)&&!or(a.$props,i)&&(a[i]=e[i]);return a.visible=!0,a};function sm(e,t=null){if(!ur)return Promise.reject();let r;return wt(e)||hn(e)?e={message:e}:r=e.callback,new Promise((n,a)=>{const i=Xft(e,t??sm._context);P_.set(i,{options:e,callback:r,resolve:n,reject:a})})}const Zft=["alert","confirm","prompt"],qft={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Zft.forEach(e=>{sm[e]=Qft(e)});function Qft(e){return(t,r,n,a)=>{let i="";return Vt(r)?(n=r,i=""):oa(r)?i="":i=r,sm(Object.assign({title:i,message:t,type:"",...qft[e]},n,{boxType:e}),a)}}sm.close=()=>{P_.forEach((e,t)=>{t.doClose()}),P_.clear()};sm._context=null;const kc=sm;kc.install=e=>{kc._context=e._context,e.config.globalProperties.$msgbox=kc,e.config.globalProperties.$messageBox=kc,e.config.globalProperties.$alert=kc.alert,e.config.globalProperties.$confirm=kc.confirm,e.config.globalProperties.$prompt=kc.prompt};const Jft=kc,Nae=["success","info","warning","error"],edt=Oe({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:Zr},id:{type:String,default:""},message:{type:fe([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:fe(Function),default:()=>{}},onClose:{type:fe(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:[...Nae,""],default:""},zIndex:Number}),tdt={destroy:()=>!0},rdt=["id"],ndt=["textContent"],adt={key:0},idt=["innerHTML"],odt=te({name:"ElNotification"}),sdt=te({...odt,props:edt,emits:tdt,setup(e,{expose:t}){const r=e,{ns:n,zIndex:a}=ET("notification"),{nextZIndex:i,currentZIndex:o}=a,{Close:s}=Fee,l=G(!1);let u;const c=F(()=>{const _=r.type;return _&&Cf[r.type]?n.m(_):""}),f=F(()=>r.type&&Cf[r.type]||r.icon),d=F(()=>r.position.endsWith("right")?"right":"left"),h=F(()=>r.position.startsWith("top")?"top":"bottom"),v=F(()=>{var _;return{[h.value]:`${r.offset}px`,zIndex:(_=r.zIndex)!=null?_:o.value}});function p(){r.duration>0&&({stop:u}=Wh(()=>{l.value&&m()},r.duration))}function g(){u==null||u()}function m(){l.value=!1}function y({code:_}){_===Qe.delete||_===Qe.backspace?g():_===Qe.esc?l.value&&m():p()}return xt(()=>{p(),i(),l.value=!0}),dn(document,"keydown",y),t({visible:l,close:m}),(_,w)=>(N(),he(Yn,{name:b(n).b("fade"),onBeforeLeave:_.onClose,onAfterLeave:w[1]||(w[1]=x=>_.$emit("destroy")),persisted:""},{default:le(()=>[Ct(V("div",{id:_.id,class:H([b(n).b(),_.customClass,b(d)]),style:Xe(b(v)),role:"alert",onMouseenter:g,onMouseleave:p,onClick:w[0]||(w[0]=(...x)=>_.onClick&&_.onClick(...x))},[b(f)?(N(),he(b(Ze),{key:0,class:H([b(n).e("icon"),b(c)])},{default:le(()=>[(N(),he(Ft(b(f))))]),_:1},8,["class"])):ce("v-if",!0),V("div",{class:H(b(n).e("group"))},[V("h2",{class:H(b(n).e("title")),textContent:me(_.title)},null,10,ndt),Ct(V("div",{class:H(b(n).e("content")),style:Xe(_.title?void 0:{margin:0})},[ye(_.$slots,"default",{},()=>[_.dangerouslyUseHTMLString?(N(),U(Be,{key:1},[ce(" Caution here, message could've been compromised, never use user's input as message "),V("p",{innerHTML:_.message},null,8,idt)],2112)):(N(),U("p",adt,me(_.message),1))])],6),[[hr,_.message]]),_.showClose?(N(),he(b(Ze),{key:0,class:H(b(n).e("closeBtn")),onClick:it(m,["stop"])},{default:le(()=>[J(b(s))]),_:1},8,["class","onClick"])):ce("v-if",!0)],2)],46,rdt),[[hr,l.value]])]),_:3},8,["name","onBeforeLeave"]))}});var ldt=ke(sdt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const x2={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},ZI=16;let udt=1;const bg=function(e={},t=null){if(!ur)return{close:()=>{}};(typeof e=="string"||hn(e))&&(e={message:e});const r=e.position||"top-right";let n=e.offset||0;x2[r].forEach(({vm:c})=>{var f;n+=(((f=c.el)==null?void 0:f.offsetHeight)||0)+ZI}),n+=ZI;const a=`notification_${udt++}`,i=e.onClose,o={...e,offset:n,id:a,onClose:()=>{cdt(a,r,i)}};let s=document.body;us(e.appendTo)?s=e.appendTo:wt(e.appendTo)&&(s=document.querySelector(e.appendTo)),us(s)||(s=document.body);const l=document.createElement("div"),u=J(ldt,o,hn(o.message)?{default:()=>o.message}:null);return u.appContext=t??bg._context,u.props.onDestroy=()=>{jp(null,l)},jp(u,l),x2[r].push({vm:u}),s.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};Nae.forEach(e=>{bg[e]=(t={})=>((typeof t=="string"||hn(t))&&(t={message:t}),bg({...t,type:e}))});function cdt(e,t,r){const n=x2[t],a=n.findIndex(({vm:u})=>{var c;return((c=u.component)==null?void 0:c.props.id)===e});if(a===-1)return;const{vm:i}=n[a];if(!i)return;r==null||r(i);const o=i.el.offsetHeight,s=t.split("-")[0];n.splice(a,1);const l=n.length;if(!(l<1))for(let u=a;u{t.component.exposed.visible.value=!1})}bg.closeAll=fdt;bg._context=null;const ddt=Vee(bg,"$notify");var hdt=[bft,Tft,Jc,Jft,ddt,Sne],vdt=qWe([...hft,...hdt]);const Mo=e=>(jl("data-v-9c9ed217"),e=e(),Kl(),e),pdt={class:"page m100"},gdt={class:"page-left-box"},mdt={class:"title"},ydt=Mo(()=>V("span",null,"能耗总量",-1)),_dt=Mo(()=>V("div",{id:"totalEnergy",class:"margin10 box-bg"},null,-1)),bdt={class:"title margin10"},wdt=Mo(()=>V("span",null,"能效对标(定额管理)",-1)),Sdt=Mo(()=>V("div",{id:"management",class:"margin10 box-bg"},null,-1)),xdt=Mo(()=>V("div",{class:"title margin10"},[V("span",null,"能效流向")],-1)),Adt={class:"margin10 box-bg flow"},Tdt={class:"date-picker"},Cdt=Mo(()=>V("span",{style:{"font-size":"0.875rem"}},"选择日期:",-1)),Edt=Mo(()=>V("div",{id:"energyFlow"},null,-1)),Mdt={class:"page-right-box"},Ddt=Mo(()=>V("div",{class:"title"},[V("span",null,"各系统能耗概况")],-1)),Pdt={id:"airConditioningLoad",class:"margin10 box-bg"},Ldt={class:"system-tab"},Idt=["onClick"],Rdt={class:"system-content"},Odt={class:"system-content-left"},kdt={class:"system-content-left-item-p1"},Ndt={class:"system-content-left-item-p2"},Bdt={style:{color:"rgb(221, 255, 253)"}},Fdt={class:"system-content-right"},Vdt={class:"system-content-right-item-title"},zdt={class:"system-content-right-item-box"},Hdt={class:"unit"},Gdt={class:"title margin10"},Udt=Mo(()=>V("span",null,"复费率",-1)),$dt=Mo(()=>V("div",{id:"exhibitionLoad",class:"margin10 box-bg"},null,-1)),Wdt={class:"title margin10"},Ydt=Mo(()=>V("span",null,"电费电价",-1)),jdt=Mo(()=>V("div",{class:"dataUpdate"},"数据更新",-1)),Kdt=Mo(()=>V("div",{id:"electricity-price",class:"margin10 box-bg"},null,-1)),Xdt={__name:"index",setup(e){const t=[{name:"空调"},{name:"照明"},{name:"展陈"},{name:"消防"},{name:"电梯"}],r=G(0),n=G("空调"),a=G([{name:"今日用能峰值",value:"322"},{name:"本月用能峰值",value:"35422"}]),i=G([[{name:"今日",value:"3122",unit:"kgce"},{name:"昨日",value:"9400",unit:"kgce"},{name:"同比",value:"-201",unit:"%"}],[{name:"本月",value:"3122",unit:"kgce"},{name:"上月",value:"9400",unit:"kgce"},{name:"同比",value:"-201",unit:"%"}],[{name:"今年",value:"3122",unit:"kgce"},{name:"去年",value:"9400",unit:"kgce"},{name:"同比",value:"-201",unit:"%"}]]),o=G("month"),s=P=>{o.value=P.srcElement.className,w()},l=G("month"),u=P=>{l.value=P.srcElement.className,x()},c=G("month"),f=P=>{c.value=P.srcElement.className,T()},d=(P,L)=>{r.value=L,n.value=P.name,S()},h=P=>{let L=document.getElementById("totalEnergy");L.removeAttribute("_echarts_instance_");let I;I=$n(L);const O={tooltip:{trigger:"axis",axisPointer:{lineStyle:{color:"#57617B"}}},grid:{top:"18%",left:"4%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",axisLine:{show:!0,lineStyle:{color:"#557775"}},axisLabel:{textStyle:{color:"#DDFFFD"}},axisTick:{show:!1},boundaryGap:!0,data:P.map(R=>R.time)}],yAxis:[{type:"value",name:"单位:kgce",nameTextStyle:{color:"#DDFFFD",align:"center",padding:[0,15,0,0]},splitNumber:5,splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.30)"}},axisLine:{show:!1},axisLabel:{textStyle:{color:"#DDFFFD"},formatter:function(R){return R>=1e3?R/1e4+"万":R>=1e7?R/1e8+"亿":R}},axisTick:{show:!1}}],series:[{name:"能耗总量",type:"line",smooth:!0,symbol:"circle",itemStyle:{color:"rgba(1, 246, 139, 1)"},lineStyle:{color:"rgba(1, 246, 139, 1)"},areaStyle:{color:new kr(0,0,0,1,[{offset:0,color:"rgba(1, 246, 139, 0.7)"},{offset:1,color:"rgba(1, 246, 139, 0)"}],!1),shadowColor:"rgba(53,142,215, 0.9)",shadowBlur:20},data:P.map(R=>R.EH)}]};I.setOption(O),window.addEventListener("resize",function(){I.resize()})},v=P=>{let L=document.getElementById("management");L.removeAttribute("_echarts_instance_");let I;I=$n(L);let O=P.map(k=>k.EnergyIndexing),R=P.map(k=>k.time);console.log(O,"xxxxxxxxx");const B={tooltip:{trigger:"axis",axisPointer:{lineStyle:{color:"#57617B"}}},legend:{show:!0,icon:"rect",right:"12",top:"12",layout:"vertical",itemHeight:"12",formatter:["{a|{name}}"].join(` `),textStyle:{color:"rgba(221, 255, 253, 1)",rich:{a:{padding:[2,0,0,0]}}}},grid:{top:"18%",left:"4%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",axisLine:{show:!0,lineStyle:{color:"#557775"}},axisLabel:{textStyle:{color:"#DDFFFD",margin:40}},axisTick:{show:!1},boundaryGap:!0,data:R}],yAxis:[{type:"value",name:"单位:kgce/m²",nameTextStyle:{color:"#DDFFFD",align:"middle",padding:[0,-15,0,0]},splitNumber:6,splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.30)"}},axisLine:{show:!1},axisLabel:{textStyle:{color:"#DDFFFD"},formatter:function(k){return console.log(k,"定额"),k===Math.max(...O)/2?"{a|"+k+"}":k},rich:{a:{color:"rgba(255, 221, 0, 1)"}}},axisTick:{show:!1}}],series:[{name:"单位建筑面积综合能耗",markLine:{silent:!0,data:[{name:"单位建筑面积综合能耗",yAxis:Math.max(...O)/2+"",label:{show:!1},tooltip:{show:!1},lineStyle:{width:1,color:"rgba(255, 221, 0, 1)"}}],symbol:["none","none"]},type:"line",smooth:!0,symbol:"circle",itemStyle:{color:"rgba(221, 255, 253, 1)"},lineStyle:{color:"rgba(221, 255, 253, 1)"},areaStyle:{color:new kr(0,0,0,1,[{offset:0,color:"rgba(221, 255, 253, .7)"},{offset:1,color:"rgba(221, 255, 253, 0)"}],!1),shadowColor:"rgba(53,142,215, 0.9)",shadowBlur:20},data:O}]};I.setOption(B),window.addEventListener("resize",function(){I.resize()})},p=P=>{let L=document.getElementById("energyFlow");L.removeAttribute("_echarts_instance_");let I;I=$n(L);let O=[{name:"能耗",nameValue:P[0].Amont,valueUnit:"kgce"},{name:"空调",nameValue:P[0].data[0].AirConditioner,valueUnit:"kgce"},{name:"照明",nameValue:P[0].data[0].Illumination,valueUnit:"kgce"},{name:"电梯",nameValue:P[0].data[0].Elevator,valueUnit:"kgce"}],R=["rgba(91, 250, 241, 1)","rgba(91, 250, 241, 1)","rgba(91, 250, 241, 1)","rgba(91, 250, 241, 1)"],B=[];for(let z=0;zR.time)}],yAxis:[{type:"value",name:"单位:kWh",nameTextStyle:{color:"#DDFFFD",padding:[0,30,0,0]},splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255,255,255, 0.30)"}},axisLine:{show:!1,lineStyle:{color:"#fff"}},axisTick:{show:!1},axisLabel:{textStyle:{color:"#DDFFFD"},formatter:function(R){return R>=1e3?R/1e4+"万":R>=1e7?R/1e8+"亿":R}},splitArea:{show:!1}}],series:[{name:"尖",type:"bar",stack:"Total1",barMaxWidth:15,barGap:"10%",label:{show:!1},itemStyle:{normal:{color:new kr(0,0,0,1,[{offset:0,color:"rgba(255, 165, 29, 1)"},{offset:1,color:"rgba(255, 165, 29, 0)"}]),borderColor:new kr(0,0,0,1,[{offset:0,color:"rgba(255, 165, 29, 1)"},{offset:1,color:"rgba(255, 165, 29, 0)"}])}},data:P.map(R=>R.Needle)},{name:"峰",type:"bar",barMaxWidth:15,stack:"Total1",label:{show:!1},itemStyle:{normal:{color:new kr(0,0,0,1,[{offset:0,color:"rgba(80, 194, 255, 1)"},{offset:1,color:"rgba(80, 194, 255, 0)"}]),borderColor:new kr(0,0,0,1,[{offset:0,color:"rgba(80, 194, 255, 1)"},{offset:1,color:"rgba(80, 194, 255, 0)"}])}},data:P.map(R=>R.Peak)},{name:"平",type:"bar",barMaxWidth:15,stack:"Total1",label:{show:!1},itemStyle:{normal:{color:new kr(0,0,0,1,[{offset:0,color:"rgba(255, 221, 0, 1)"},{offset:1,color:"rgba(255, 221, 0, 0)"}]),borderColor:new kr(0,0,0,1,[{offset:0,color:"rgba(255, 221, 0, 1)"},{offset:1,color:"rgba(255, 221, 0, 0)"}]),barBorderRadius:0}},data:P.map(R=>R.Flat)},{name:"谷",type:"bar",barMaxWidth:15,stack:"Total1",label:{show:!1},itemStyle:{normal:{color:new kr(0,0,0,1,[{offset:0,color:"rgba(1, 246, 139, 1)"},{offset:1,color:"rgba(1, 246, 139, 0)"}]),borderColor:new kr(0,0,0,1,[{offset:0,color:"rgba(1, 246, 139, 1)"},{offset:1,color:"rgba(1, 246, 139, 0)"}]),barBorderRadius:0}},data:P.map(R=>R.Grain)},{name:"深",type:"bar",barMaxWidth:15,stack:"Total1",label:{show:!1},itemStyle:{normal:{color:new kr(0,0,0,1,[{offset:0,color:"rgba(91, 250, 241, 1)"},{offset:1,color:"rgba(91, 250, 241, 0)"}]),borderColor:new kr(0,0,0,1,[{offset:0,color:"rgba(91, 250, 241, 1)"},{offset:1,color:"rgba(91, 250, 241, 0)"}]),barBorderRadius:0}},data:P.map(R=>R.Deep)}]};I.setOption(O),window.addEventListener("resize",function(){I.resize()})}const m=P=>{let L=document.getElementById("electricity-price");L.removeAttribute("_echarts_instance_");let I;I=$n(L);let O={tooltip:{trigger:"axis",backgroundColor:"rgba(1, 13, 19, 0.5)",borderWidth:0,axisPointer:{type:"shadow"},textStyle:{color:"rgba(212, 232, 254, 1)"},confine:!0},legend:{show:!0,data:["电费","销售电价"],selected:{电费:!0,销售电价:!0},icon:"rect",itemGap:14,top:"8",layout:"vertical",itemHeight:"10",textStyle:{color:"rgba(221, 255, 253, 1)"}},grid:{top:"20%",left:"4%",right:"4%",bottom:"4%",containLabel:!0},xAxis:{type:"category",data:P.map(R=>R.time),axisLine:{show:!0,lineStyle:{color:"#557775"}},axisTick:{show:!1},axisLabel:{show:!0,textStyle:{fontFamily:"Microsoft YaHei",color:"#DDFFFD"}}},yAxis:[{name:"单位:kWh",nameTextStyle:{color:"rgba(221, 255, 253, 1)",padding:[0,20,0,10]},type:"value",splitNumber:5,axisLine:{show:!1,lineStyle:{color:"#666666"}},splitLine:{show:!1},axisLabel:{textStyle:{fontFamily:"Microsoft YaHei",color:"#DDFFFD",fontSize:12},formatter:function(R){return R>=1e3?R/1e4+"万":R>=1e7?R/1e8+"亿":R}}},{name:"单位:元/kWh",position:"right",nameTextStyle:{padding:[0,15,0,0],color:"rgba(221, 255, 253, 1)"},axisLabel:{show:!0,color:"rgba(221, 255, 253, 1)",formatter:function(R){return R.toFixed(1)}},axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.30)"}}}],series:[{name:"电费",type:"bar",barWidth:"15",itemStyle:{normal:{color:new kr(0,0,0,1,[{offset:0,color:"rgba(82, 217, 208, 1)"},{offset:1,color:"rgba(82, 217, 208, 0)"}])}},data:P.map(R=>R.Electricity)},{name:"销售电价",type:"line",yAxisIndex:1,itemStyle:{color:"rgba(1, 246, 139, 1)"},symbol:"none",data:P.map(R=>R.Electrovalence)}]};I.setOption(O),window.addEventListener("resize",function(){I.resize()})},y=G([vt().subtract(1,"days").format("YYYY-MM-DD"),vt().format("YYYY-MM-DD")]),_=G([vt().subtract(1,"days").format("YYYY-MM-DD"),vt().format("YYYY-MM-DD")]),w=()=>{let P={date:o.value==="month"?"月":"日"};D5e(P).then(L=>{h(L.data.slice(-10))})},x=()=>{let P={date:l.value==="month"?"月":"年"};P5e(P).then(L=>{v(L.data.slice(-10))})},S=()=>{let P={name:n.value};I5e(P).then(L=>{a.value[0].value=L.data[0].DayPeak,a.value[1].value=L.data[0].MonthPeak,i.value.forEach((I,O)=>{L.data[0].data[O].This>1e4?(I[0].value=(L.data[0].data[O].This/1e4).toFixed(3),I[0].unit="万"+I[0].unit):I[0].value=L.data[0].data[O].This,L.data[0].data[O].Last>1e4?(I[1].value=(L.data[0].data[O].Last/1e4).toFixed(3),I[1].unit="万"+I[1].unit):I[1].value=L.data[0].data[O].Last,I[2].value=L.data[0].data[O].Year})})},T=()=>{let P={date:""};c.value==="year"?P.date="年":c.value==="month"?P.date="月":c.value==="day"&&(P.date="日"),R5e(P).then(L=>{g(L.data.slice(-10))})},A=()=>{O5e().then(P=>{m(P.data.slice(-10))})};function C(P){_.value[0]=vt(P[0]).format("YYYY-MM-DD"),_.value[1]=vt(P[1]).format("YYYY-MM-DD"),M()}function M(){let P={sdate:_.value[0],edate:_.value[1]};L5e(P).then(L=>{if(L.code==200)p(L.data);else return flase}).catch(L=>{console.log(L)})}const E=G("/api/ImportElectricalConfig");function D(P){console.log(P,"成功"),P.code==200?Jc({message:"上传"+P.msg,grouping:!0,type:"success"}):Jc({message:P.msg,grouping:!0,type:"error"})}return xt(()=>{w(),x(),M(),S(),A(),T()}),Xl(()=>{}),(P,L)=>{const I=bt("el-date-picker"),O=bt("el-upload");return N(),U("div",pdt,[V("div",gdt,[V("div",mdt,[ydt,V("p",null,[V("span",{class:H(["month",o.value==="month"?"selectMonth":""]),onClick:s},"月",2),V("span",{class:H(["day",o.value==="day"?"selectDay":""]),onClick:s},"日",2)])]),_dt,V("div",bdt,[wdt,V("p",null,[V("span",{class:H(["year",l.value==="year"?"selectYear":""]),onClick:u},"年",2),V("span",{class:H(["month",l.value==="month"?"selectMonth":""]),onClick:u},"月",2)])]),Sdt,xdt,V("div",Adt,[V("div",Tdt,[Cdt,J(I,{modelValue:y.value,"onUpdate:modelValue":L[0]||(L[0]=R=>y.value=R),type:"daterange","start-placeholder":"开始时间","end-placeholder":"结束时间","default-time":_.value,onChange:C},null,8,["modelValue","default-time"])]),Edt])]),V("div",Mdt,[Ddt,V("div",Pdt,[V("ul",Ldt,[(N(),U(Be,null,ht(t,(R,B)=>V("li",{class:H(B===r.value?"tab-select":""),onClick:k=>d(R,B),key:B},[V("span",null,me(R.name),1)],10,Idt)),64))]),V("div",Rdt,[V("div",Odt,[(N(!0),U(Be,null,ht(a.value,(R,B)=>(N(),U("div",{class:"system-content-left-item",key:B},[V("p",kdt,me(R.name),1),V("p",Ndt,[nr(me(R.value>1e4?(R.value/1e4).toFixed(3):R.value>1e8?(R.value/1e8).toFixed(3):R.value)+" ",1),V("span",Bdt,me(R.value>1e4?"万":R.value>1e8?"亿":""),1)])]))),128))]),V("div",Fdt,[(N(!0),U(Be,null,ht(i.value,(R,B)=>(N(),U("div",{class:"system-content-right-item",key:B},[V("ul",Vdt,[(N(!0),U(Be,null,ht(R,(k,z)=>(N(),U("li",{key:"name"+z},me(k.name),1))),128))]),V("div",zdt,[(N(!0),U(Be,null,ht(R,k=>(N(),U("span",{class:H(k.unit==="%"?"yoy":"")},[nr(me(k.value)+" ",1),V("span",Hdt,me(k.unit),1)],2))),256))])]))),128))])])]),V("div",Gdt,[Udt,V("p",null,[V("span",{class:H(["year",c.value==="year"?"selectYear":""]),onClick:f},"年",2),V("span",{class:H(["month",c.value==="month"?"selectMonth":""]),onClick:f},"月",2),V("span",{class:H(["day",c.value==="day"?"selectDay":""]),onClick:f},"日",2)])]),$dt,V("div",Wdt,[Ydt,J(O,{ref:"uploadRef",class:"upload-demo",action:E.value,"auto-upload":!0,"show-file-list":!1,"on-success":D,accept:".xls,.xlsx"},{trigger:le(()=>[jdt]),_:1},8,["action"])]),Kdt])])}}},Zdt=al(Xdt,[["__scopeId","data-v-9c9ed217"]]);function qdt(e){return ir({url:"/api/GetWaterDraining",method:"get",params:e})}const Bae=e=>(jl("data-v-918ab0af"),e=e(),Kl(),e),Qdt={class:"page m100"},Jdt={class:"page-left-box"},eht=Bae(()=>V("div",{class:"title"},[V("span",null,"运行情况")],-1)),tht={class:"page-big-box margin10"},rht={class:"system-item-title"},nht={class:"system-item-right"},aht={class:"tooltip-content"},iht={key:0,class:"tooltip-text"},oht={key:1,class:"tooltip-text"},sht={key:2,class:"tooltip-text"},lht={class:"page-right-box"},uht=Bae(()=>V("div",{class:"title"},[V("span",null,"运行情况")],-1)),cht={class:"page-big-box margin10"},fht={class:"system-item-title"},dht={class:"system-item-right"},hht={class:"tooltip-content"},vht={key:0,class:"tooltip-text"},pht={key:1,class:"tooltip-text"},ght={key:2,class:"tooltip-text"},mht={__name:"index",setup(e){const t=G([{name:"1号排水点",children:[{name:"1#泵",state:1},{name:"2#泵",state:0}]},{name:"2号排水点",children:[{name:"3#泵",state:1},{name:"4#泵",state:0}]},{name:"3号排水点",children:[{name:"5#泵",state:1},{name:"6#泵",state:0}]},{name:"4号排水点",children:[{name:"7#泵",state:1},{name:"8#泵",state:0}]},{name:"5号排水点",children:[{name:"9#泵",state:1},{name:"10#泵",state:0}]},{name:"6号排水点",children:[{name:"11#泵",state:1},{name:"12#泵",state:0}]},{name:"7号排水点",children:[{name:"13#泵",state:1},{name:"14#泵",state:0}]}]),r=G([{name:"8号排水点",children:[{name:"15#泵",state:1},{name:"16#泵",state:0}]},{name:"9号排水点",children:[{name:"17#泵",state:1},{name:"18#泵",state:0}]},{name:"10号排水点",children:[{name:"19#泵",state:1},{name:"20#泵",state:0}]},{name:"11号排水点",children:[{name:"21#泵",state:1},{name:"22#泵",state:0}]},{name:"12号排水点",children:[{name:"23#泵",state:1},{name:"24#泵",state:0}]},{name:"13号排水点",children:[{name:"25#泵",state:1},{name:"26#泵",state:0}]},{name:"14号排水点",children:[{name:"27#泵",state:1},{name:"28#泵",state:0}]}]),n=()=>{qdt().then(a=>{console.log(a,"排水数据"),t.value=a.data.slice(0,7).map(i=>({name:i.WaterName,children:i.list})),r.value=a.data.slice(7).map(i=>({name:i.WaterName,children:i.list}))})};return xt(()=>{n()}),(a,i)=>(N(),U("div",Qdt,[V("div",Jdt,[eht,V("div",tht,[(N(!0),U(Be,null,ht(t.value,(o,s)=>(N(),U("div",{class:"system-item",key:"sys"+s},[V("span",rht,me(o.name),1),V("div",nht,[(N(!0),U(Be,null,ht(o.children,(l,u)=>(N(),U("p",aht,[V("span",null,me(l.DrainingName),1),l.DrainingState==0?(N(),U("div",iht,"运行")):l.DrainingState==1?(N(),U("div",oht,"停止")):l.DrainingState==-1?(N(),U("div",sht,"离线")):ce("",!0),V("span",{class:H("state"+(l.DrainingState===0?"0":l.DrainingState===1?"1":"2"))},null,2)]))),256))])]))),128))])]),V("div",lht,[uht,V("div",cht,[(N(!0),U(Be,null,ht(r.value,(o,s)=>(N(),U("div",{class:"system-item",key:"sys"+s},[V("span",fht,me(o.name),1),V("div",dht,[(N(!0),U(Be,null,ht(o.children,(l,u)=>(N(),U("p",hht,[V("span",null,me(l.DrainingName),1),l.DrainingState==0?(N(),U("div",vht,"运行")):l.DrainingState==1?(N(),U("div",pht,"停止")):l.DrainingState==-1?(N(),U("div",ght,"离线")):ce("",!0),V("span",{class:H("state"+(l.DrainingState===0?"0":l.DrainingState===1?"1":"2"))},null,2)]))),256))])]))),128))])])]))}},yht=al(mht,[["__scopeId","data-v-918ab0af"]]);function _ht(e){return ir({url:"/api/GetGeneralSituation",method:"get",params:e})}function bht(e){return ir({url:"/api/GetElectricalCondition",method:"get",params:e})}function wht(e){return ir({url:"/api/GetFailureWarning",method:"get",params:e})}function Sht(e){return ir({url:"/api/GetBootStrategy",method:"get",params:e})}function xht(e){return ir({url:"/api/GetMaintenanceReminder",method:"get",params:e})}function Aht(e){return ir({url:"/api/GetPolicyEditing",method:"get",params:e})}function Tht(e){return ir({url:"/api/GetStrategyCompilation",method:"get",params:e})}function Cht(e){return ir({url:"/api/SetAircondition",method:"get",params:e})}const Fae=e=>(jl("data-v-f5a5eb17"),e=e(),Kl(),e),Eht={class:"dialog"},Mht=Fae(()=>V("div",{class:"dialog-title"},"策略编辑",-1)),Dht={class:"dialog-box"},Pht={class:"dialog-box-name"},Lht={class:"dialog-box-content"},Iht={class:"dialog-box-content-item"},Rht={class:"dialog-box-content-item"},Oht=Fae(()=>V("div",{class:"on-device"},"开机设备",-1)),kht={class:"system"},Nht={class:"select-system"},Bht=["onClick"],Fht={__name:"dialogBox",props:{dialogName:{type:String,default:""}},emits:["update"],setup(e,{emit:t}){const r=G(!1),n=G(!1),a=e;xt(()=>{Tht({name:a.dialogName}).then(d=>{s.value=d.data[0].UnitName.filter(h=>h!==""),l.value=d.data[0].PlantName,r.value=s.value.length===l.value.length,n.value=s.value.length>0&&s.value.length{i("sendDevice",s.value),i("update",!1)},s=G(["2号机窗"]),l=G(["1号机窗","2号机窗","3号机窗","4号机窗"]),u=d=>{s.value=d?l.value:[],n.value=!1},c=d=>{const h=d.length;r.value=h===l.value.length,n.value=h>0&&h{s.value.splice(d,1);const h=s.value.length;r.value=h===l.value.length,n.value=h>0&&h{const v=bt("el-input"),p=bt("el-form-item"),g=bt("el-checkbox"),m=bt("el-checkbox-group");return N(),U("div",Eht,[V("div",{class:"close-btn",onClick:o}),Mht,V("div",Dht,[V("div",Pht,[J(p,{label:"策略名称:"},{default:le(()=>[J(v,{modelValue:a.dialogName,"onUpdate:modelValue":h[0]||(h[0]=y=>a.dialogName=y)},null,8,["modelValue"])]),_:1})]),V("div",Lht,[V("div",Iht,[J(g,{modelValue:r.value,"onUpdate:modelValue":h[1]||(h[1]=y=>r.value=y),indeterminate:n.value,onChange:u},{default:le(()=>[nr("全部设备")]),_:1},8,["modelValue","indeterminate"]),J(m,{modelValue:s.value,"onUpdate:modelValue":h[2]||(h[2]=y=>s.value=y),onChange:c},{default:le(()=>[(N(!0),U(Be,null,ht(l.value,y=>(N(),he(g,{key:y,label:y},{default:le(()=>[nr(me(y),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),V("div",Rht,[Oht,V("div",kht,[(N(!0),U(Be,null,ht(s.value,(y,_)=>(N(),U("div",Nht,[V("span",null,me(y),1),V("span",{class:"close",onClick:w=>f(_)},null,8,Bht)]))),256))])])])])])}}},Vht=al(Fht,[["__scopeId","data-v-f5a5eb17"]]);const sc=e=>(jl("data-v-545c2587"),e=e(),Kl(),e),zht={class:"page m100"},Hht={class:"page-left-box"},Ght=sc(()=>V("div",{class:"title"},[V("span",null,"概况")],-1)),Uht={id:"overview",class:"margin10 box-bg overview"},$ht={class:"overview-system"},Wht={class:"overview-system-item"},Yht=["src"],jht={class:"name"},Kht={class:"num"},Xht=sc(()=>V("span",null,"台",-1)),Zht={class:"name"},qht={class:"value"},Qht={class:"unit"},Jht=sc(()=>V("div",{class:"title margin10"},[V("span",null,"用电情况")],-1)),evt={id:"electricity",class:"margin10 box-bg"},tvt=sc(()=>V("div",{class:"electricity-left"},[V("span"),V("span"),V("span")],-1)),rvt={class:"electricity-right"},nvt={class:"value",style:{"font-size":"1rem"}},avt={class:"unit"},ivt=sc(()=>V("div",{class:"title margin10"},[V("span",null,"故障报警")],-1)),ovt={id:"fault",class:"margin10 box-bg"},svt={class:"name"},lvt={class:"date"},uvt={class:"page-right-box"},cvt=sc(()=>V("div",{class:"title"},[V("span",null,"开机策略")],-1)),fvt={class:"margin10 box-bg",style:{height:"32.7%"}},dvt={class:"runningState"},hvt=sc(()=>V("div",{class:"tableTitle"},[V("span",null,"策略名称"),V("span",null,"策略状态"),V("span",null,"操作")],-1)),vvt={class:"tableContent"},pvt=["onClick"],gvt={class:"name"},mvt={class:"control"},yvt={key:0,class:"tooltip-text"},_vt={key:1,class:"tooltip-text"},bvt={class:"control-btn"},wvt=["onClick"],Svt=["onClick"],xvt=sc(()=>V("div",{class:"title margin10"},[V("span",null,"设备运行状态")],-1)),Avt={id:"reminder",class:"margin10 box-bg",style:{height:"42%"}},Tvt={class:"runningState"},Cvt=sc(()=>V("div",{class:"tableTitle",style:{height:"12%"}},[V("span",null,"策略名称"),V("span",null,"状态")],-1)),Evt={class:"tableContent"},Mvt={class:"name"},Dvt={class:"date"},Pvt={key:0,class:"tooltip-text"},Lvt={key:1,class:"tooltip-text"},Ivt={key:2,class:"tooltip-text"},Rvt={__name:"index",emits:["closeAir"],setup(e,{emit:t}){const r=G([{name:"运行设备数量",num:"1130"},{name:"停机设备数量",num:"1130"}]),n=G([jr.defaultsystemnum,jr.stopsystemnum]),a=G([{name:"展馆面积",num:83,unit:"万m²"},{name:"设备总量",num:83,unit:"台"}]),i=G([{name:"今日用电量",value:66,unit:"kWh"},{name:"今日用电费用",value:66,unit:"元"},{name:"本月用电量",value:66,unit:"kWh"},{name:"本月用电费用",value:66,unit:"元"},{name:"本年用电量",value:66,unit:"kWh"},{name:"本年用电费用",value:66,unit:"元"}]),o=G([{name:"1号机组的XX模块故障",date:"2023-11-28 16:58:02"},{name:"1号机组的XX模块故障",date:"2023-11-28 16:58:02"},{name:"1号机组的XX模块故障",date:"2023-11-28 16:58:02"}]),s=G([{name:"休息日",value:!1},{name:"节假日",value:!0},{name:"日常",value:!0},{name:"全开",value:!0},{name:"全关",value:!0}]),l=G([{name:"1#主机",date:"10"},{name:"2#主机",date:"03"},{name:"3#主机",date:"01"},{name:"4#主机",date:"07"},{name:"5#主机",date:"09"},{name:"6#主机",date:"10"},{name:"7#主机",date:"06"},{name:"8#主机",date:"04"},{name:"9#主机",date:"12"},{name:"10#主机",date:"11"},{name:"11#主机",date:"05"},{name:"12#主机",date:"06"},{name:"13#主机",date:"09"}]),u=t,c=G(!1),f=G(""),d=G(""),h=M=>{u("closeAir",""),c.value=!0,f.value=M.name,d.value=M.StrategyId},v=M=>{console.log(M,"xxxxxxxxxx");let E={id:d.value,name:f.value,value:p.value===""?null:p.value};console.log(p.value,"参数",E),Aht(E).then(D=>{D.code===200?Jc({message:D.msg,type:"success"}):Jc({message:D.msg,type:"error"})}),c.value=M},p=G(""),g=M=>{console.log(M),p.value=M.join(",")},m=G("on"),y=()=>{_ht().then(M=>{r.value[0].num=M.data[0].Operation,r.value[1].num=M.data[0].Stop,a.value[0].num=M.data[0].Area,a.value[1].num=M.data[0].Amount})},_=()=>{wht().then(M=>{o.value=M.data.map(E=>({name:E.FailureWarning,date:E.FailureTime}))})},w=()=>{bht().then(M=>{i.value[0].value=x(M.data[0].EH,0),i.value[1].value=x(M.data[0].Electricity,1),i.value[2].value=x(M.data[1].EH,2),i.value[3].value=x(M.data[1].Electricity,3),i.value[4].value=x(M.data[2].EH,4),i.value[5].value=x(M.data[2].Electricity,5)})};function x(M,E){let P=M.toString().split(".")[0];return P.length>=5?(E==0||E==2||E==4?i.value[E].unit="万kWh":i.value[E].unit="万元",S(P,!0)):S(M,!1)}function S(M,E){return Number.isInteger(M)?M:E==!0?parseFloat((M/1e4).toFixed(3)):parseFloat(M.toFixed(3))}const T=()=>{Sht().then(M=>{s.value=M.data.map(E=>({name:E.StrategyName,value:E.StrategyState,StrategyId:E.StrategyId}))})},A=()=>{console.log(m.value),xht().then(M=>{l.value=M.data.map(E=>({name:E.DeviceName,date:E.Status}))})};function C(M,E){let D={StrategyId:M.StrategyId,Type:E};Cht(D).then(P=>{P.code==200?(Jc({message:"开机策略操作成功",type:"success"}),T()):Jc({message:P.msg,type:"error"})})}return xt(()=>{y(),w(),_(),T(),A()}),(M,E)=>(N(),U("div",zht,[c.value?(N(),he(Vht,{key:0,onUpdate:v,dialogName:f.value,onSendDevice:g},null,8,["dialogName"])):ce("",!0),V("div",Hht,[Ght,V("div",Uht,[V("div",$ht,[(N(!0),U(Be,null,ht(r.value,(D,P)=>(N(),U("div",Wht,[V("img",{src:n.value[P],alt:"",srcset:""},null,8,Yht),V("p",null,[V("span",jht,me(D.name),1),V("span",Kht,me(D.num),1),Xht]),nr(" · ")]))),256))]),(N(!0),U(Be,null,ht(a.value,(D,P)=>(N(),U("div",{class:H("overview-item"+P)},[V("span",Zht,me(D.name),1),V("p",null,[V("span",qht,me(D.num),1),V("span",Qht,me(D.unit),1)])],2))),256))]),Jht,V("div",evt,[tvt,V("div",rvt,[V("ul",null,[(N(!0),U(Be,null,ht(i.value,(D,P)=>(N(),U("li",null,[V("span",null,me(D.name),1),V("span",null,[V("span",nvt,me(D.value),1),V("span",avt,me(D.unit),1)])]))),256))])])]),ivt,V("div",ovt,[(N(!0),U(Be,null,ht(o.value,D=>(N(),U("p",null,[V("span",svt,me(D.name),1),V("span",lvt,"时间:"+me(D.date),1)]))),256))])]),V("div",uvt,[cvt,V("div",fvt,[V("div",dvt,[hvt,V("div",vvt,[(N(!0),U(Be,null,ht(s.value,(D,P)=>(N(),U("div",{class:"tableBoby",onClick:L=>h(D),key:P},[V("span",gvt,me(D.name),1),V("span",mvt,[D.value=="0"?(N(),U("div",yvt,"停止")):D.value=="1"?(N(),U("div",_vt,"运行")):ce("",!0),V("i",{class:H("state"+D.value)},null,2)]),V("p",bvt,[V("span",{class:"on",onClick:it(L=>C(D,1),["stop"])},"开",8,wvt),V("span",{class:"off",style:{"margin-left":"0.7rem"},onClick:it(L=>C(D,0),["stop"])},"关",8,Svt)])],8,pvt))),128))])])]),xvt,V("div",Avt,[V("div",Tvt,[Cvt,V("div",Evt,[(N(!0),U(Be,null,ht(l.value,(D,P)=>(N(),U("div",{class:"tableBoby",style:{height:"12%"},key:P},[V("span",Mvt,me(D.name),1),V("span",Dvt,[D.date==0?(N(),U("div",Pvt,"停止")):D.date==1?(N(),U("div",Lvt,"运行")):(N(),U("div",Ivt,"离线")),V("i",{class:H("state"+D.date)},null,2)])]))),128))])])])])]))}},Ovt=al(Rvt,[["__scopeId","data-v-545c2587"]]);function kvt(){return ir({url:"/api/GetLightingMonitoring",method:"get"})}function Nvt(){return ir({url:"/api/GetLightingDetail",method:"get"})}function Bvt(e){return ir({url:"/api/GetLightingLoad",method:"get",params:e})}function Fvt(){return ir({url:"/api/GetPavilionLighting",method:"get"})}function Vvt(){return ir({url:"/api/GetLightingControl",method:"get"})}function zvt(){return ir({url:"/api/GetFaultCondition",method:"get"})}function Hvt(e){return ir({url:"/api/GetSingleControl",method:"get",params:e})}function Gvt(e){return ir({url:"/api/SetLighting",method:"get",params:e})}function g$(e){return ir({url:"/api/SetSingleSwitch",method:"get",params:e})}function Uvt(e){return ir({url:"/api/SetFullSwitch",method:"get",params:e})}const $vt=e=>(jl("data-v-4393e834"),e=e(),Kl(),e),Wvt={key:0,class:"dialog"},Yvt={class:"dialog-title"},jvt={class:"control-btn"},Kvt={class:"dialog-content"},Xvt={class:"runningState"},Zvt=$vt(()=>V("div",{class:"tableTitle"},[V("span",null,"回路名称"),V("span",null,"操作")],-1)),qvt={class:"tableContent"},Qvt={class:"name"},Jvt={__name:"dialog",props:{show:{type:Boolean,default:!1},name:{type:String,default:""},tableData:{type:Array}},emits:["update"],setup(e,{emit:t}){const r=G([]),n=G(""),a=u=>{if(u.srcElement.className==="off"){n.value="off";let c={name:i.name,value:"全关"};g$(c).then(f=>{if(f.code==200)r.value.forEach(d=>{d.State=!1});else return!1}).catch(f=>{console.log(f)})}else if(u.srcElement.className==="on"){n.value="on";let c={name:i.name,value:"全开"};g$(c).then(f=>{if(f.code==200)r.value.forEach(d=>{d.State=!0});else return!1}).catch(f=>{console.log(f)})}},i=e;console.log(i.name,i.show);const o=t,s=()=>{o("update",!1)};function l(u){let c={name:u.Id,value:u.State==!0?"255":"0"};Gvt(c).then(f=>{if(f.code==200)n.value="",o("closeAll",!1);else return!1}).catch(f=>{console.log(f)})}return Ae(()=>i.tableData,(u,c)=>{u.forEach(f=>{f.State=f.State=="255"}),r.value=u,n.value=""}),(u,c)=>{const f=bt("el-switch");return i.show?(N(),U("div",Wvt,[V("div",{class:"close-btn",onClick:s}),V("div",Yvt,[V("span",null,me(i.name),1)]),V("div",jvt,[V("span",{style:{"margin-left":"0.7rem"},class:H(["off",n.value==="off"?"select":""]),onClick:a},"全关",2)]),V("div",Kvt,[V("div",Xvt,[Zvt,V("div",qvt,[(N(!0),U(Be,null,ht(r.value,(d,h)=>(N(),U("div",{class:"tableBoby",key:h},[V("span",Qvt,me(d.name),1),V("span",null,[J(f,{modelValue:d.State,"onUpdate:modelValue":v=>d.State=v,style:{left:"8px"},onChange:v=>l(d)},null,8,["modelValue","onUpdate:modelValue","onChange"])])]))),128))])])])])):ce("",!0)}}},ept=al(Jvt,[["__scopeId","data-v-4393e834"]]);const _s=e=>(jl("data-v-202b0bae"),e=e(),Kl(),e),tpt={class:"page m100"},rpt={class:"floor"},npt=["onClick"],apt={class:"page-left-box"},ipt=_s(()=>V("div",{class:"title"},[V("span",null,"照明监测")],-1)),opt={id:"light",class:"margin10 box-bg"},spt={class:"light-item"},lpt=["src"],upt={class:"name"},cpt={class:"num"},fpt=_s(()=>V("span",{class:"unit"},"个",-1)),dpt=_s(()=>V("div",{class:"title margin10"},[V("span",null,"照明回路详情")],-1)),hpt={class:"margin10 box-bg"},vpt={class:"runningState"},ppt=_s(()=>V("div",{class:"tableTitle"},[V("span",null,"名称"),V("span",null,"位置"),V("span",null,"状态")],-1)),gpt={class:"tableContent",style:{height:"86.5%"}},mpt={class:"name"},ypt={key:0,class:"tooltip-text"},_pt={key:1,class:"tooltip-text"},bpt={key:2,class:"tooltip-text"},wpt={class:"title margin10"},Spt=_s(()=>V("span",null,"照明负荷",-1)),xpt=_s(()=>V("div",{id:"lightLoad",class:"margin10 box-bg"},null,-1)),Apt={class:"page-right-box"},Tpt=_s(()=>V("div",{class:"title"},[V("span",null,"展馆照明")],-1)),Cpt=_s(()=>V("div",{id:"hallLighting",class:"margin10 box-bg"},null,-1)),Ept={class:"title margin10"},Mpt=_s(()=>V("span",null,"照明控制",-1)),Dpt={class:"control-btn"},Ppt={class:"margin10 box-bg"},Lpt={class:"runningState"},Ipt=_s(()=>V("div",{class:"tableTitle"},[V("span",null,"控制箱名称"),V("span",null,"操作")],-1)),Rpt={class:"tableContent",style:{height:"86.5%"}},Opt={class:"name"},kpt=["onClick"],Npt=_s(()=>V("div",{class:"title margin10"},[V("span",null,"故障情况")],-1)),Bpt=_s(()=>V("div",{id:"faultConditions",class:"margin10 box-bg"},null,-1)),Fpt={__name:"index",emits:["sendVal","closeBox"],setup(e,{emit:t}){const r=G([{name:"照明回路数量",num:0,pic:jr.lightTotal},{name:"照明回路灭灯数量",num:0,pic:jr.noLightNum},{name:"照明回路亮灯数量",num:0,pic:jr.lightingNum},{name:"离线数量",num:0,pic:jr.offlineNum}]),n=G([]),a=G([]),i=G([]),o=G("day"),s=t,l=G([{name:"一层"},{name:"二层"},{name:"三层"},{name:"负一层"}]),u=G(-1),c=(I,O)=>{I.name==="一层"?s("sendVal",6):I.name==="二层"?s("sendVal",7):I.name==="三层"?s("sendVal",8):I.name==="负一层"&&s("sendVal",5),u.value=O},f=I=>{o.value=I.srcElement.className,C()},d=G(""),h=I=>{I.srcElement.className=="on"?(d.value="on",L("全开")):I.srcElement.className=="off"&&(d.value="off",L("全关"))},v=G(!1),p=G(""),g=G(""),m=I=>{s("closeBox",""),g.value=I,v.value=!0,P(I)},y=I=>{v.value=I};function _(I){I==!1&&(d.value="")}const w=I=>{let O=[{name:"正常",value:I[0].Normality},{name:"离线",value:I[0].Malfunction}];for(var R=I[0].Amount,B=[],k=["rgba(1, 246, 139, 1)","rgba(255, 221, 0, 1)"],z=0;z{const O=eo({shape:{x:0,y:0},buildPath:function(se,ee){const K=ee.xAxisPoint,Z=[ee.x-7,ee.y],ne=[ee.x+7,ee.y],re=[K[0]+7,K[1]],ie=[K[0]-7,K[1]];se.moveTo(Z[0],Z[1]).lineTo(ne[0],ne[1]).lineTo(re[0],re[1]).lineTo(ie[0],ie[1]).closePath(),se.stroke()}}),R=eo({shape:{x:0,y:0},buildPath:function(se,ee){const K=ee.xAxisPoint,Z=[ee.x+7,ee.y],ne=[K[0]+7,K[1]],re=[K[0]+7+7,K[1]-5],ie=[ee.x+7+7,ee.y-5];se.moveTo(Z[0],Z[1]).lineTo(ne[0],ne[1]).lineTo(re[0],re[1]).lineTo(ie[0],ie[1]).closePath(),se.stroke()}}),B=eo({shape:{x:0,y:0},buildPath:function(se,ee){const K=[ee.x-7,ee.y],Z=[ee.x+8,ee.y],ne=[ee.x+15,ee.y-5],re=[ee.x-2,ee.y-5];se.moveTo(K[0],K[1]).lineTo(Z[0],Z[1]).lineTo(ne[0],ne[1]).lineTo(re[0],re[1]).closePath(),se.stroke()}});zn("CubeLeft",O),zn("CubeRight",R),zn("CubeTop",B);let k=["室内","户外"],z=[I[0].Indoor,I[0].Outdoor],$,j=document.getElementById("hallLighting");j.removeAttribute("_echarts_instance_");let X;X=$n(j);const Q={tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(se,ee,K){const Z=se[1];return Z.name+" : "+Z.value}},grid:{left:"4%",right:"5%",top:"18%",bottom:"5%",containLabel:!0},xAxis:{type:"category",data:k,axisLine:{show:!0,lineStyle:{width:1,type:"solid",color:"#557775"}},axisTick:{show:!1},axisLabel:{color:"rgba(221, 255, 253, 1)",fontSize:14,interval:0}},yAxis:{type:"value",name:"单位:kW",nameTextStyle:{color:"#DDFFFD",padding:[0,20,0,0]},axisLine:{show:!1},splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.30)"}},axisTick:{show:!1},axisLabel:{fontSize:14,color:"#DDFFFD"}},series:[{type:"custom",renderItem:(se,ee)=>{const K=ee.coord([ee.value(0),ee.value(1)]);return $=se.dataIndex===0?[["rgba(0, 170, 193, 1)"],["rgba(0, 224, 255, 1)","rgba(0, 224, 255,0)"]]:[["rgba(0, 193, 113, 1)"],["rgba(0, 255, 140, 1)","rgba(0, 255, 140,0)"]],{type:"group",children:[{type:"CubeLeft",shape:{api:ee,xValue:ee.value(0),yValue:ee.value(1),x:K[0],y:K[1],xAxisPoint:ee.coord([ee.value(0),0])},style:{fill:new kr(0,0,0,1,[{offset:0,color:$[1][0]},{offset:1,color:$[1][1]}])}},{type:"CubeRight",shape:{api:ee,xValue:ee.value(0),yValue:ee.value(1),x:K[0],y:K[1],xAxisPoint:ee.coord([ee.value(0),0])},style:{fill:new kr(0,0,0,1,[{offset:0,color:$[1][0]},{offset:1,color:$[1][1]}])}},{type:"CubeTop",shape:{api:ee,xValue:ee.value(0),yValue:ee.value(1),x:K[0],y:K[1],xAxisPoint:ee.coord([ee.value(0),0])},style:{fill:new kr(0,0,0,1,[{offset:0,color:$[0][0]},{offset:1,color:$[0][0]}])}}]}},data:z},{type:"bar",label:{normal:{show:!1,position:"top",formatter:se=>se.value,fontSize:16,color:"#43C4F1",offset:[0,-5]}},itemStyle:{color:"transparent"},tooltip:{},data:z}]};X.setOption(Q),window.addEventListener("resize",function(){X.resize()})},S=I=>{let O=o.value=="year"?"去年":o.value=="month"?"上月":"昨日",R=o.value=="year"?"今年":o.value=="month"?"本月":"今日",B=[],k=[],z=[];I.forEach(Q=>{B.push(Q.time),k.push(Q.TP),z.push(Q.YP)});let $=document.getElementById("lightLoad");$.removeAttribute("_echarts_instance_");let j;j=$n($);let X={grid:{top:"18%",left:"3%",right:"5%",bottom:"7%",containLabel:!0},tooltip:{trigger:"axis",borderWidth:1},legend:[{icon:"rect",top:10,right:10,orient:"horizontal",borderRadius:20,itemHeight:10,itemWidth:15,textStyle:{color:"#DDFFFD",fontSize:12}}],xAxis:{type:"category",data:B,axisLine:{show:!0,lineStyle:{color:"#557775"}},axisTick:{show:!1},axisLabel:{show:!0,textStyle:{color:"#DDFFFD"},formatter:function(Q){return Q>=1e3?Q/1e4+"万":Q>=1e7?Q/1e8+"亿":Q}}},yAxis:[{type:"value",name:"单位/kW",nameTextStyle:{color:"#DDFFFD",fontSize:12,padding:[0,10,0,0]},axisTick:{show:!1},axisLabel:{color:"#DDFFFD",fontSize:12,formatter:function(Q){return Q>=1e3?Q/1e4+"万":Q>=1e7?Q/1e8+"亿":Q}},splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.30)"}}}],series:[{name:O,type:"line",symbol:"none",itemStyle:{color:"white",borderWidth:"2",borderColor:"rgba(91, 250, 241, 1)",normal:{color:"rgba(91, 250, 241, 1)"}},lineStyle:{color:"rgba(91, 250, 241, 1)"},data:z},{name:R,type:"line",symbol:"none",itemStyle:{color:"white",borderWidth:"2",borderColor:"#91cc75",normal:{color:"rgba(1, 246, 139, 1)"}},lineStyle:{color:"rgba(1, 246, 139, 1)"},data:k}]};j.setOption(X),window.addEventListener("resize",function(){j.resize()})};function T(){kvt().then(I=>{if(I.code==200)r.value[0].num=I.data[0].Amount,r.value[1].num=I.data[0].Blackout,r.value[2].num=I.data[0].Connection,r.value[3].num=I.data[0].Offline;else return!1}).catch(I=>{console.log(I)})}function A(){Nvt().then(I=>{if(I.code==200)I.data.forEach(O=>{O.state=O.state=="0"?"0":O.state=="255"?"1":"2"}),n.value=I.data;else return!1}).catch(I=>{console.log(I)})}function C(){let I=o.value=="year"?"年":o.value=="month"?"月":"日";Bvt({date:I}).then(O=>{if(O.code==200)S(O.data.slice(-10));else return!1}).catch(O=>{console.log(O)})}function M(){Fvt().then(I=>{if(I.code==200)x(I.data);else return!1}).catch(I=>{console.log(I)})}function E(){Vvt().then(I=>{if(I.code==200)a.value=I.data;else return!1}).catch(I=>{console.log(I)})}function D(){zvt().then(I=>{if(I.code==200)w(I.data);else return!1}).catch(I=>{console.log(I)})}function P(I){Hvt({name:I}).then(O=>{if(O.code==200)i.value=O.data;else return!1}).catch(O=>{console.log(O)})}function L(I){Uvt({name:I}).then(R=>{if(R.code!=200)return!1}).catch(R=>{console.log(R)})}return xt(()=>{window.openBox=m,D(),M(),C(),T(),A(),E()}),(I,O)=>(N(),U("div",tpt,[V("div",rpt,[(N(!0),U(Be,null,ht(l.value,(R,B)=>(N(),U("div",{onClick:k=>c(R,B),class:H(B===u.value?"floor-select":"floor-default"),key:B},me(R.name),11,npt))),128))]),J(ept,{ref_key:"box",ref:p,name:g.value,show:v.value,tableData:i.value,onUpdate:y,onCloseAll:_},null,8,["name","show","tableData"]),V("div",apt,[ipt,V("div",opt,[(N(!0),U(Be,null,ht(r.value,(R,B)=>(N(),U("div",spt,[V("img",{src:R.pic,alt:""},null,8,lpt),V("p",null,[V("span",upt,me(R.name),1),V("span",cpt,[nr(me(R.num),1),fpt])])]))),256))]),dpt,V("div",hpt,[V("div",vpt,[ppt,V("div",gpt,[(N(!0),U(Be,null,ht(n.value,(R,B)=>(N(),U("div",{key:B,class:"tableBoby"},[V("span",mpt,me(R.name),1),V("span",null,me(R.location),1),R.state==0?(N(),U("div",ypt,"停止")):R.state==1?(N(),U("div",_pt,"运行")):R.state==2?(N(),U("div",bpt,"离线")):ce("",!0),V("span",null,[V("i",{class:H("state"+R.state)},null,2)])]))),128))])])]),V("div",wpt,[Spt,V("p",null,[V("span",{class:H([o.value==="year"?"selectYear":"","year"]),onClick:f},"年",2),V("span",{class:H([o.value==="month"?"selectMonth":"","month"]),onClick:f},"月",2),V("span",{class:H([o.value==="day"?"selectDay":"","day"]),onClick:f},"日",2)])]),xpt]),V("div",Apt,[Tpt,Cpt,V("div",Ept,[Mpt,V("p",Dpt,[V("span",{class:H([d.value==="off"?"select":"","off"]),style:{"margin-left":"0.7rem"},onClick:h},"全关",2)])]),V("div",Ppt,[V("div",Lpt,[Ipt,V("div",Rpt,[(N(!0),U(Be,null,ht(a.value,(R,B)=>(N(),U("div",{key:B,class:"tableBoby"},[V("span",Opt,me(R.TypeName),1),V("span",{class:"control",onClick:k=>m(R.TypeName)},"照明控制",8,kpt)]))),128))])])]),Npt,Bpt])]))}},Vpt=al(Fpt,[["__scopeId","data-v-202b0bae"]]);Dt([jZ,PJ]);Dt(IZ);function m$(e,t,r){typeof t=="object"&&(r=t,t=null);var n=this,a;if(!(e instanceof Function)){a=[];for(var i in e)e.hasOwnProperty(i)&&a.push(i)}var o=function(l){if(n.apply(this,arguments),e instanceof Function?y$(this,e.call(this,l)):zpt(this,e,a),this.constructor===o)for(var u=o.__initializers__,c=0;c=400?e.onerror&&e.onerror():e.onload&&e.onload(t.response)},e.onerror&&(t.onerror=e.onerror),t.send(null)}const Xpt={get:Kpt};var nD,Hi={};Hi.supportWebGL=function(){if(nD==null)try{var e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");if(!t)throw new Error}catch{nD=!1}return nD};Hi.Int8Array=typeof Int8Array>"u"?Array:Int8Array;Hi.Uint8Array=typeof Uint8Array>"u"?Array:Uint8Array;Hi.Uint16Array=typeof Uint16Array>"u"?Array:Uint16Array;Hi.Uint32Array=typeof Uint32Array>"u"?Array:Uint32Array;Hi.Int16Array=typeof Int16Array>"u"?Array:Int16Array;Hi.Float32Array=typeof Float32Array>"u"?Array:Float32Array;Hi.Float64Array=typeof Float64Array>"u"?Array:Float64Array;var fh={};typeof window<"u"?fh=window:typeof global<"u"&&(fh=global);Hi.requestAnimationFrame=fh.requestAnimationFrame||fh.msRequestAnimationFrame||fh.mozRequestAnimationFrame||fh.webkitRequestAnimationFrame||function(e){setTimeout(e,16)};Hi.createCanvas=function(){return document.createElement("canvas")};Hi.createImage=function(){return new fh.Image};Hi.request={get:Xpt.get};Hi.addEventListener=function(e,t,r,n){e.addEventListener(t,r,n)};Hi.removeEventListener=function(e,t,r){e.removeEventListener(t,r)};const aa=Hi;var Ra=function(){this.head=null,this.tail=null,this._length=0};Ra.prototype.insert=function(e){var t=new Ra.Entry(e);return this.insertEntry(t),t};Ra.prototype.insertAt=function(e,t){if(!(e<0)){for(var r=this.head,n=0;r&&n!=e;)r=r.next,n++;if(r){var a=new Ra.Entry(t),i=r.prev;i?(i.next=a,a.prev=i):this.head=a,a.next=r,r.prev=a}else this.insert(t)}};Ra.prototype.insertBeforeEntry=function(e,t){var r=new Ra.Entry(e),n=t.prev;n?(n.next=r,r.prev=n):this.head=r,r.next=t,t.prev=r,this._length++};Ra.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,this.tail=e):this.head=this.tail=e,this._length++};Ra.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._length--};Ra.prototype.removeAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;if(t)return this.remove(t),t.value}};Ra.prototype.getHead=function(){if(this.head)return this.head.value};Ra.prototype.getTail=function(){if(this.tail)return this.tail.value};Ra.prototype.getAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;return t.value}};Ra.prototype.indexOf=function(e){for(var t=this.head,r=0;t;){if(t.value===e)return r;t=t.next,r++}};Ra.prototype.length=function(){return this._length};Ra.prototype.isEmpty=function(){return this._length===0};Ra.prototype.forEach=function(e,t){for(var r=this.head,n=0,a=typeof t<"u";r;)a?e.call(t,r.value,n):e(r.value,n),r=r.next,n++};Ra.prototype.clear=function(){this.tail=this.head=null,this._length=0};Ra.Entry=function(e){this.value=e,this.next=null,this.prev=null};const Zpt=Ra;var lm=function(e){this._list=new Zpt,this._map={},this._maxSize=e||10};lm.prototype.setMaxSize=function(e){this._maxSize=e};lm.prototype.put=function(e,t){if(!this._map.hasOwnProperty(e)){var r=this._list.length();if(r>=this._maxSize&&r>0){var n=this._list.head;this._list.remove(n),delete this._map[n.key]}var a=this._list.insert(t);a.key=e,this._map[e]=a}};lm.prototype.get=function(e){var t=this._map[e];if(this._map.hasOwnProperty(e))return t!==this._list.tail&&(this._list.remove(t),this._list.insertEntry(t)),t.value};lm.prototype.remove=function(e){var t=this._map[e];typeof t<"u"&&(delete this._map[e],this._list.remove(t))};lm.prototype.clear=function(){this._list.clear(),this._map={}};const Vae=lm;var Rn={},w$={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 Ys(e){return e=Math.round(e),e<0?0:e>255?255:e}function qpt(e){return e=Math.round(e),e<0?0:e>360?360:e}function L_(e){return e<0?0:e>1?1:e}function aD(e){return e.length&&e.charAt(e.length-1)==="%"?Ys(parseFloat(e)/100*255):Ys(parseInt(e,10))}function wg(e){return e.length&&e.charAt(e.length-1)==="%"?L_(parseFloat(e)/100):L_(parseFloat(e))}function iD(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function ef(e,t,r){return e+(t-e)*r}function Es(e,t,r,n,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e}function qI(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var zae=new Vae(20),bw=null;function $v(e,t){bw&&qI(bw,t),bw=zae.put(e,bw||t.slice())}Rn.parse=function(e,t){if(e){t=t||[];var r=zae.get(e);if(r)return qI(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in w$)return qI(t,w$[n]),$v(e,t),t;if(n.charAt(0)==="#"){if(n.length===4){var a=parseInt(n.substr(1),16);if(!(a>=0&&a<=4095)){Es(t,0,0,0,1);return}return Es(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,1),$v(e,t),t}else if(n.length===7){var a=parseInt(n.substr(1),16);if(!(a>=0&&a<=16777215)){Es(t,0,0,0,1);return}return Es(t,(a&16711680)>>16,(a&65280)>>8,a&255,1),$v(e,t),t}return}var i=n.indexOf("("),o=n.indexOf(")");if(i!==-1&&o+1===n.length){var s=n.substr(0,i),l=n.substr(i+1,o-(i+1)).split(","),u=1;switch(s){case"rgba":if(l.length!==4){Es(t,0,0,0,1);return}u=wg(l.pop());case"rgb":if(l.length!==3){Es(t,0,0,0,1);return}return Es(t,aD(l[0]),aD(l[1]),aD(l[2]),u),$v(e,t),t;case"hsla":if(l.length!==4){Es(t,0,0,0,1);return}return l[3]=wg(l[3]),QI(l,t),$v(e,t),t;case"hsl":if(l.length!==3){Es(t,0,0,0,1);return}return QI(l,t),$v(e,t),t;default:return}}Es(t,0,0,0,1)}};Rn.parseToFloat=function(e,t){if(t=Rn.parse(e,t),!!t)return t[0]/=255,t[1]/=255,t[2]/=255,t};function QI(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=wg(e[1]),a=wg(e[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],Es(t,Ys(iD(o,i,r+1/3)*255),Ys(iD(o,i,r)*255),Ys(iD(o,i,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Qpt(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-t)/6+o/2)/o,f=((i-r)/6+o/2)/o,d=((i-n)/6+o/2)/o;t===i?l=d-f:r===i?l=1/3+c-d:n===i&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return e[3]!=null&&h.push(e[3]),h}}Rn.lift=function(e,t){var r=Rn.parse(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0;return Rn.stringify(r,r.length===4?"rgba":"rgb")}};Rn.toHex=function(e){var t=Rn.parse(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)};Rn.fastLerp=function(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=t[a],s=t[i],l=n-a;return r[0]=Ys(ef(o[0],s[0],l)),r[1]=Ys(ef(o[1],s[1],l)),r[2]=Ys(ef(o[2],s[2],l)),r[3]=L_(ef(o[3],s[3],l)),r}};Rn.fastMapToColor=Rn.fastLerp;Rn.lerp=function(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=Rn.parse(t[a]),s=Rn.parse(t[i]),l=n-a,u=Rn.stringify([Ys(ef(o[0],s[0],l)),Ys(ef(o[1],s[1],l)),Ys(ef(o[2],s[2],l)),L_(ef(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:i,value:n}:u}};Rn.mapToColor=Rn.lerp;Rn.modifyHSL=function(e,t,r,n){if(e=Rn.parse(e),e)return e=Qpt(e),t!=null&&(e[0]=qpt(t)),r!=null&&(e[1]=wg(r)),n!=null&&(e[2]=wg(n)),Rn.stringify(QI(e),"rgba")};Rn.modifyAlpha=function(e,t){if(e=Rn.parse(e),e&&t!=null)return e[3]=L_(t),Rn.stringify(e,"rgba")};Rn.stringify=function(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}};const Jpt=Rn;var egt=Jpt.parseToFloat,oD={};function S$(e){var t=Object.keys(e);t.sort();for(var r=[],n=0;n=0},getEnabledUniforms:function(){return this._enabledUniforms},getTextureUniforms:function(){return this._textureUniforms},set:function(e,t){if(typeof e=="object")for(var r in e){var n=e[r];this.setUniform(r,n)}else this.setUniform(e,t)},get:function(e){var t=this.uniforms[e];if(t)return t.value},attachShader:function(e,t){var r=this.uniforms;this.uniforms=e.createUniforms(),this.shader=e;var n=this.uniforms;this._enabledUniforms=Object.keys(n),this._enabledUniforms.sort(),this._textureUniforms=this._enabledUniforms.filter(function(u){var c=this.uniforms[u].type;return c==="t"||c==="tv"},this);var a=this.vertexDefines,i=this.fragmentDefines;if(this.vertexDefines=za.clone(e.vertexDefines),this.fragmentDefines=za.clone(e.fragmentDefines),t){for(var o in r)n[o]&&(n[o].value=r[o].value);za.defaults(this.vertexDefines,a),za.defaults(this.fragmentDefines,i)}var s={};for(var l in e.textures)s[l]={shaderType:e.textures[l].shaderType,type:e.textures[l].type,enabled:t&&this._textureStatus[l]?this._textureStatus[l].enabled:!1};this._textureStatus=s,this._programKey=""},clone:function(){var e=new this.constructor({name:this.name,shader:this.shader});for(var t in this.uniforms)e.uniforms[t].value=this.uniforms[t].value;return e.depthTest=this.depthTest,e.depthMask=this.depthMask,e.transparent=this.transparent,e.blend=this.blend,e.vertexDefines=za.clone(this.vertexDefines),e.fragmentDefines=za.clone(this.fragmentDefines),e.enableTexture(this.getEnabledTextures()),e.precision=this.precision,e},define:function(e,t,r){var n=this.vertexDefines,a=this.fragmentDefines;e!=="vertex"&&e!=="fragment"&&e!=="both"&&arguments.length<3&&(r=t,t=e,e="both"),r=r??null,(e==="vertex"||e==="both")&&n[t]!==r&&(n[t]=r,this._programKey=""),(e==="fragment"||e==="both")&&a[t]!==r&&(a[t]=r,e!=="both"&&(this._programKey=""))},undefine:function(e,t){e!=="vertex"&&e!=="fragment"&&e!=="both"&&arguments.length<2&&(t=e,e="both"),(e==="vertex"||e==="both")&&this.isDefined("vertex",t)&&(delete this.vertexDefines[t],this._programKey=""),(e==="fragment"||e==="both")&&this.isDefined("fragment",t)&&(delete this.fragmentDefines[t],e!=="both"&&(this._programKey=""))},isDefined:function(e,t){switch(e){case"vertex":return this.vertexDefines[t]!==void 0;case"fragment":return this.fragmentDefines[t]!==void 0}},getDefine:function(e,t){switch(e){case"vertex":return this.vertexDefines[t];case"fragment":return this.fragmentDefines[t]}},enableTexture:function(e){if(Array.isArray(e)){for(var t=0;t0&&(a=1/Math.sqrt(a),e[0]=t[0]*a,e[1]=t[1]*a),e};mr.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]};mr.cross=function(e,t,r){var n=t[0]*r[1]-t[1]*r[0];return e[0]=e[1]=0,e[2]=n,e};mr.lerp=function(e,t,r,n){var a=t[0],i=t[1];return e[0]=a+n*(r[0]-a),e[1]=i+n*(r[1]-i),e};mr.random=function(e,t){t=t||1;var r=GLMAT_RANDOM()*2*Math.PI;return e[0]=Math.cos(r)*t,e[1]=Math.sin(r)*t,e};mr.transformMat2=function(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[2]*a,e[1]=r[1]*n+r[3]*a,e};mr.transformMat2d=function(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[2]*a+r[4],e[1]=r[1]*n+r[3]*a+r[5],e};mr.transformMat3=function(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[3]*a+r[6],e[1]=r[1]*n+r[4]*a+r[7],e};mr.transformMat4=function(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[4]*a+r[12],e[1]=r[1]*n+r[5]*a+r[13],e};mr.forEach=function(){var e=mr.create();return function(t,r,n,a,i,o){var s,l;for(r||(r=2),n||(n=0),a?l=Math.min(a*r+n,t.length):l=t.length,s=n;s0&&n.push("#define "+a.toUpperCase()+"_COUNT "+i)}if(r)for(var o=0;ol.getMaxJointNumber()&&(d.USE_SKIN_MATRICES_TEXTURE=null),f+=` `+lD(d)+` `}i&&(f+=` #define INSTANCING `);var h=f+lD(t.vertexDefines,s,c),v=f+lD(t.fragmentDefines,s,c),p=h+` `+t.shader.vertex,g=["OES_standard_derivatives","EXT_shader_texture_lod"].filter(function(S){return l.getGLExtension(S)!=null});g.indexOf("EXT_shader_texture_lod")>=0&&(v+=` #define SUPPORT_TEXTURE_LOD`),g.indexOf("OES_standard_derivatives")>=0&&(v+=` #define SUPPORT_STANDARD_DERIVATIVES`);var m=sgt(g)+` `+lgt(t.precision)+` `+v+` `+t.shader.fragment,y=D$(p,t.vertexDefines,s),_=D$(m,t.fragmentDefines,s),w=new igt;w.uniformSemantics=t.shader.uniformSemantics,w.attributes=t.shader.attributes;var x=w.buildProgram(u,t.shader,y,_);return w.__error=x,n[o]=w,w};var P$=/uniform\s+(bool|float|int|vec2|vec3|vec4|ivec2|ivec3|ivec4|mat2|mat3|mat4|sampler2D|samplerCube)\s+([\s\S]*?);/g,ugt=/attribute\s+(float|int|vec2|vec3|vec4)\s+([\s\S]*?);/g,L$=/#define\s+(\w+)?(\s+[\d-.]+)?\s*;?\s*\n/g,cgt={bool:"1i",int:"1i",sampler2D:"t",samplerCube:"t",float:"1f",vec2:"2f",vec3:"3f",vec4:"4f",ivec2:"2i",ivec3:"3i",ivec4:"4i",mat2:"m2",mat3:"m3",mat4:"m4"};function uu(e){for(var t=[],r=0;r=0){if(d!==s&&d!==c){Wv();break}d=l,v=[];continue}else if(d===s){e==="bool"?h[p].value=m==="true":h[p].value=parseFloat(m),v=null;continue}else if(d===c){var y=m;JI.indexOf(y)>=0||Gae.indexOf(y)>=0||Uae.indexOf(y)>=0?h[p].semantic=y:y==="ignore"||y==="unconfigurable"?h[p].ignore=!0:e==="bool"?h[p].value=y==="true":h[p].value=parseFloat(y);continue}g(m),d=o}}return h}function nt(e,t){typeof e=="object"&&(t=e.fragment,e=e.vertex),e=R$(e),t=R$(t),this._shaderID=dgt(e,t),this._vertexCode=nt.parseImport(e),this._fragmentCode=nt.parseImport(t),this.attributeSemantics={},this.matrixSemantics={},this.uniformSemantics={},this.matrixSemanticKeys=[],this.uniformTemplates={},this.attributes={},this.textures={},this.vertexDefines={},this.fragmentDefines={},this._parseAttributes(),this._parseUniforms(),this._parseDefines()}nt.prototype={constructor:nt,createUniforms:function(){var e={};for(var t in this.uniformTemplates){var r=this.uniformTemplates[t];e[t]={type:r.type,value:r.value()}}return e},_parseImport:function(){this._vertexCode=nt.parseImport(this.vertex),this._fragmentCode=nt.parseImport(this.fragment)},_addSemanticUniform:function(e,t,r){if(JI.indexOf(r)>=0)this.attributeSemantics[r]={symbol:e,type:t};else if(Uae.indexOf(r)>=0){var n=!1,a=r;r.match(/TRANSPOSE$/)&&(n=!0,a=r.slice(0,-9)),this.matrixSemantics[r]={symbol:e,type:t,isTranspose:n,semanticNoTranspose:a}}else Gae.indexOf(r)>=0&&(this.uniformSemantics[r]={symbol:e,type:t})},_addMaterialUniform:function(e,t,r,n,a,i){i[e]={type:r,value:a?I$.array:n||I$[t],semantic:null}},_parseUniforms:function(){var e={},t=this,r="vertex";this._uniformList=[],this._vertexCode=this._vertexCode.replace(P$,a),r="fragment",this._fragmentCode=this._fragmentCode.replace(P$,a),t.matrixSemanticKeys=Object.keys(this.matrixSemantics);function n(i){return i!=null?function(){return i}:null}function a(i,o,s){var l=O$(o,s),u=[];for(var c in l){var f=l[c],d=f.semantic,h=c,v=cgt[o],p=n(l[c].value);l[c].isArray&&(h+="["+l[c].arraySize+"]",v+="v"),u.push(h),t._uniformList.push(c),f.ignore||((o==="sampler2D"||o==="samplerCube")&&(t.textures[c]={shaderType:r,type:o}),d?t._addSemanticUniform(c,v,d):t._addMaterialUniform(c,o,v,p,l[c].isArray,e))}return u.length>0?"uniform "+o+" "+u.join(",")+`; `:""}this.uniformTemplates=e},_parseAttributes:function(){var e={},t=this;this._vertexCode=this._vertexCode.replace(ugt,r);function r(n,a,i){var o=O$(a,i),s=fgt[a]||1,l=[];for(var u in o){var c=o[u].semantic;if(e[u]={type:"float",size:s,semantic:c||null},c){if(JI.indexOf(c)<0)throw new Error('Unkown semantic "'+c+'"');t.attributeSemantics[c]={symbol:u,type:a}}l.push(u)}return"attribute "+a+" "+l.join(",")+`; `}this.attributes=e},_parseDefines:function(){var e=this,t="vertex";this._vertexCode=this._vertexCode.replace(L$,r),t="fragment",this._fragmentCode=this._fragmentCode.replace(L$,r);function r(n,a,i){var o=t==="vertex"?e.vertexDefines:e.fragmentDefines;return o[a]||(i==="false"?o[a]=!1:i==="true"?o[a]=!0:o[a]=i?isNaN(parseFloat(i))?i.trim():parseFloat(i):null),""}},clone:function(){var e=$ae[this._shaderID],t=new nt(e.vertex,e.fragment);return t}};Object.defineProperty&&(Object.defineProperty(nt.prototype,"shaderID",{get:function(){return this._shaderID}}),Object.defineProperty(nt.prototype,"vertex",{get:function(){return this._vertexCode}}),Object.defineProperty(nt.prototype,"fragment",{get:function(){return this._fragmentCode}}),Object.defineProperty(nt.prototype,"uniforms",{get:function(){return this._uniformList}}));var hgt=/(@import)\s*([0-9a-zA-Z_\-\.]*)/g;nt.parseImport=function(e){return e=e.replace(hgt,function(a,r,n){var a=nt.source(n);return a?nt.parseImport(a):(console.error('Shader chunk "'+n+'" not existed in library'),"")}),e};var vgt=/(@export)\s*([0-9a-zA-Z_\-\.]*)\s*\n([\s\S]*?)@end/g;nt.import=function(e){e.replace(vgt,function(t,r,n,i){var i=i.replace(/(^[\s\t\xa0\u3000]+)|([\u3000\xa0\s\t]+\x24)/g,"");if(i){for(var o=n.split("."),s=nt.codes,l=0,u;l 0.0) { if (texture2D(alphaMap, v_Texcoord).a <= alphaCutoff) { discard; } } gl_FragColor = vec4(0.0,0.0,0.0,1.0); } @end`;var vn={};vn.create=function(){var e=new Wa(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e};vn.clone=function(e){var t=new Wa(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t};vn.copy=function(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[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e};vn.identity=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e};vn.transpose=function(e,t){if(e===t){var r=t[1],n=t[2],a=t[3],i=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=i,e[11]=t[14],e[12]=a,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e};vn.invert=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],d=t[10],h=t[11],v=t[12],p=t[13],g=t[14],m=t[15],y=r*s-n*o,_=r*l-a*o,w=r*u-i*o,x=n*l-a*s,S=n*u-i*s,T=a*u-i*l,A=c*p-f*v,C=c*g-d*v,M=c*m-h*v,E=f*g-d*p,D=f*m-h*p,P=d*m-h*g,L=y*P-_*D+w*E+x*M-S*C+T*A;return L?(L=1/L,e[0]=(s*P-l*D+u*E)*L,e[1]=(a*D-n*P-i*E)*L,e[2]=(p*T-g*S+m*x)*L,e[3]=(d*S-f*T-h*x)*L,e[4]=(l*M-o*P-u*C)*L,e[5]=(r*P-a*M+i*C)*L,e[6]=(g*w-v*T-m*_)*L,e[7]=(c*T-d*w+h*_)*L,e[8]=(o*D-s*M+u*A)*L,e[9]=(n*M-r*D-i*A)*L,e[10]=(v*S-p*w+m*y)*L,e[11]=(f*w-c*S-h*y)*L,e[12]=(s*C-o*E-l*A)*L,e[13]=(r*E-n*C+a*A)*L,e[14]=(p*_-v*x-g*y)*L,e[15]=(c*x-f*_+d*y)*L,e):null};vn.adjoint=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],d=t[10],h=t[11],v=t[12],p=t[13],g=t[14],m=t[15];return e[0]=s*(d*m-h*g)-f*(l*m-u*g)+p*(l*h-u*d),e[1]=-(n*(d*m-h*g)-f*(a*m-i*g)+p*(a*h-i*d)),e[2]=n*(l*m-u*g)-s*(a*m-i*g)+p*(a*u-i*l),e[3]=-(n*(l*h-u*d)-s*(a*h-i*d)+f*(a*u-i*l)),e[4]=-(o*(d*m-h*g)-c*(l*m-u*g)+v*(l*h-u*d)),e[5]=r*(d*m-h*g)-c*(a*m-i*g)+v*(a*h-i*d),e[6]=-(r*(l*m-u*g)-o*(a*m-i*g)+v*(a*u-i*l)),e[7]=r*(l*h-u*d)-o*(a*h-i*d)+c*(a*u-i*l),e[8]=o*(f*m-h*p)-c*(s*m-u*p)+v*(s*h-u*f),e[9]=-(r*(f*m-h*p)-c*(n*m-i*p)+v*(n*h-i*f)),e[10]=r*(s*m-u*p)-o*(n*m-i*p)+v*(n*u-i*s),e[11]=-(r*(s*h-u*f)-o*(n*h-i*f)+c*(n*u-i*s)),e[12]=-(o*(f*g-d*p)-c*(s*g-l*p)+v*(s*d-l*f)),e[13]=r*(f*g-d*p)-c*(n*g-a*p)+v*(n*d-a*f),e[14]=-(r*(s*g-l*p)-o*(n*g-a*p)+v*(n*l-a*s)),e[15]=r*(s*d-l*f)-o*(n*d-a*f)+c*(n*l-a*s),e};vn.determinant=function(e){var t=e[0],r=e[1],n=e[2],a=e[3],i=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],f=e[10],d=e[11],h=e[12],v=e[13],p=e[14],g=e[15],m=t*o-r*i,y=t*s-n*i,_=t*l-a*i,w=r*s-n*o,x=r*l-a*o,S=n*l-a*s,T=u*v-c*h,A=u*p-f*h,C=u*g-d*h,M=c*p-f*v,E=c*g-d*v,D=f*g-d*p;return m*D-y*E+_*M+w*C-x*A+S*T};vn.multiply=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],f=t[8],d=t[9],h=t[10],v=t[11],p=t[12],g=t[13],m=t[14],y=t[15],_=r[0],w=r[1],x=r[2],S=r[3];return e[0]=_*n+w*s+x*f+S*p,e[1]=_*a+w*l+x*d+S*g,e[2]=_*i+w*u+x*h+S*m,e[3]=_*o+w*c+x*v+S*y,_=r[4],w=r[5],x=r[6],S=r[7],e[4]=_*n+w*s+x*f+S*p,e[5]=_*a+w*l+x*d+S*g,e[6]=_*i+w*u+x*h+S*m,e[7]=_*o+w*c+x*v+S*y,_=r[8],w=r[9],x=r[10],S=r[11],e[8]=_*n+w*s+x*f+S*p,e[9]=_*a+w*l+x*d+S*g,e[10]=_*i+w*u+x*h+S*m,e[11]=_*o+w*c+x*v+S*y,_=r[12],w=r[13],x=r[14],S=r[15],e[12]=_*n+w*s+x*f+S*p,e[13]=_*a+w*l+x*d+S*g,e[14]=_*i+w*u+x*h+S*m,e[15]=_*o+w*c+x*v+S*y,e};vn.multiplyAffine=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[4],s=t[5],l=t[6],u=t[8],c=t[9],f=t[10],d=t[12],h=t[13],v=t[14],p=r[0],g=r[1],m=r[2];return e[0]=p*n+g*o+m*u,e[1]=p*a+g*s+m*c,e[2]=p*i+g*l+m*f,p=r[4],g=r[5],m=r[6],e[4]=p*n+g*o+m*u,e[5]=p*a+g*s+m*c,e[6]=p*i+g*l+m*f,p=r[8],g=r[9],m=r[10],e[8]=p*n+g*o+m*u,e[9]=p*a+g*s+m*c,e[10]=p*i+g*l+m*f,p=r[12],g=r[13],m=r[14],e[12]=p*n+g*o+m*u+d,e[13]=p*a+g*s+m*c+h,e[14]=p*i+g*l+m*f+v,e};vn.mul=vn.multiply;vn.mulAffine=vn.multiplyAffine;vn.translate=function(e,t,r){var n=r[0],a=r[1],i=r[2],o,s,l,u,c,f,d,h,v,p,g,m;return t===e?(e[12]=t[0]*n+t[4]*a+t[8]*i+t[12],e[13]=t[1]*n+t[5]*a+t[9]*i+t[13],e[14]=t[2]*n+t[6]*a+t[10]*i+t[14],e[15]=t[3]*n+t[7]*a+t[11]*i+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],c=t[4],f=t[5],d=t[6],h=t[7],v=t[8],p=t[9],g=t[10],m=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=c,e[5]=f,e[6]=d,e[7]=h,e[8]=v,e[9]=p,e[10]=g,e[11]=m,e[12]=o*n+c*a+v*i+t[12],e[13]=s*n+f*a+p*i+t[13],e[14]=l*n+d*a+g*i+t[14],e[15]=u*n+h*a+m*i+t[15]),e};vn.scale=function(e,t,r){var n=r[0],a=r[1],i=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e};vn.rotate=function(e,t,r,n){var a=n[0],i=n[1],o=n[2],s=Math.sqrt(a*a+i*i+o*o),l,u,c,f,d,h,v,p,g,m,y,_,w,x,S,T,A,C,M,E,D,P,L,I;return Math.abs(s)0&&(i=1/Math.sqrt(i),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i),e};er.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]};er.cross=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=r[0],s=r[1],l=r[2];return e[0]=a*l-i*s,e[1]=i*o-n*l,e[2]=n*s-a*o,e};er.lerp=function(e,t,r,n){var a=t[0],i=t[1],o=t[2];return e[0]=a+n*(r[0]-a),e[1]=i+n*(r[1]-i),e[2]=o+n*(r[2]-o),e};er.random=function(e,t){t=t||1;var r=_p()*2*Math.PI,n=_p()*2-1,a=Math.sqrt(1-n*n)*t;return e[0]=Math.cos(r)*a,e[1]=Math.sin(r)*a,e[2]=n*t,e};er.transformMat4=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=r[3]*n+r[7]*a+r[11]*i+r[15];return o=o||1,e[0]=(r[0]*n+r[4]*a+r[8]*i+r[12])/o,e[1]=(r[1]*n+r[5]*a+r[9]*i+r[13])/o,e[2]=(r[2]*n+r[6]*a+r[10]*i+r[14])/o,e};er.transformMat3=function(e,t,r){var n=t[0],a=t[1],i=t[2];return e[0]=n*r[0]+a*r[3]+i*r[6],e[1]=n*r[1]+a*r[4]+i*r[7],e[2]=n*r[2]+a*r[5]+i*r[8],e};er.transformQuat=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=r[0],s=r[1],l=r[2],u=r[3],c=u*n+s*i-l*a,f=u*a+l*n-o*i,d=u*i+o*a-s*n,h=-o*n-s*a-l*i;return e[0]=c*u+h*-o+f*-l-d*-s,e[1]=f*u+h*-s+d*-o-c*-l,e[2]=d*u+h*-l+c*-s-f*-o,e};er.rotateX=function(e,t,r,n){var a=[],i=[];return a[0]=t[0]-r[0],a[1]=t[1]-r[1],a[2]=t[2]-r[2],i[0]=a[0],i[1]=a[1]*Math.cos(n)-a[2]*Math.sin(n),i[2]=a[1]*Math.sin(n)+a[2]*Math.cos(n),e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e};er.rotateY=function(e,t,r,n){var a=[],i=[];return a[0]=t[0]-r[0],a[1]=t[1]-r[1],a[2]=t[2]-r[2],i[0]=a[2]*Math.sin(n)+a[0]*Math.cos(n),i[1]=a[1],i[2]=a[2]*Math.cos(n)-a[0]*Math.sin(n),e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e};er.rotateZ=function(e,t,r,n){var a=[],i=[];return a[0]=t[0]-r[0],a[1]=t[1]-r[1],a[2]=t[2]-r[2],i[0]=a[0]*Math.cos(n)-a[1]*Math.sin(n),i[1]=a[0]*Math.sin(n)+a[1]*Math.cos(n),i[2]=a[2],e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e};er.forEach=function(){var e=er.create();return function(t,r,n,a,i,o){var s,l;for(r||(r=3),n||(n=0),a?l=Math.min(a*r+n,t.length):l=t.length,s=n;s1?0:Math.acos(a)};const Ee=er;nt.import(Wae);var Cn=ut.create,k$={};function N$(e){return e.material}function pgt(e,t,r){return t.uniforms[r].value}function ggt(e,t,r,n){return r!==n}function mgt(e){return!0}function B$(){}var F$={float:$e.FLOAT,byte:$e.BYTE,ubyte:$e.UNSIGNED_BYTE,short:$e.SHORT,ushort:$e.UNSIGNED_SHORT};function ygt(e,t,r){this.availableAttributes=e,this.availableAttributeSymbols=t,this.indicesBuffer=r,this.vao=null}function _gt(e){var t,r;this.bind=function(n){t||(t=aa.createCanvas(),t.width=t.height=1,t.getContext("2d"));var a=n.gl,i=!r;i&&(r=a.createTexture()),a.bindTexture(a.TEXTURE_2D,r),i&&a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,t)},this.unbind=function(n){n.gl.bindTexture(n.gl.TEXTURE_2D,null)},this.isRenderable=function(){return!0}}var Pf=zi.extend(function(){return{canvas:null,_width:100,_height:100,devicePixelRatio:typeof window<"u"&&window.devicePixelRatio||1,clearColor:[0,0,0,0],clearBit:17664,alpha:!0,depth:!0,stencil:!1,antialias:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!1,throwError:!0,gl:null,viewport:{},maxJointNumber:20,__currentFrameBuffer:null,_viewportStack:[],_clearStack:[],_sceneRendering:null}},function(){this.canvas||(this.canvas=aa.createCanvas());var e=this.canvas;try{var t={alpha:this.alpha,depth:this.depth,stencil:this.stencil,antialias:this.antialias,premultipliedAlpha:this.premultipliedAlpha,preserveDrawingBuffer:this.preserveDrawingBuffer};if(this.gl=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),!this.gl)throw new Error;this._glinfo=new jpt(this.gl),this.gl.targetRenderer&&console.error("Already created a renderer"),this.gl.targetRenderer=this,this.resize()}catch(r){throw"Error creating WebGL Context "+r}this._programMgr=new Hae(this),this._placeholderTexture=new _gt},{resize:function(e,t){var r=this.canvas,n=this.devicePixelRatio;e!=null?(r.style&&(r.style.width=e+"px",r.style.height=t+"px"),r.width=e*n,r.height=t*n,this._width=e,this._height=t):(this._width=r.width/n,this._height=r.height/n),this.setViewport(0,0,this._width,this._height)},getWidth:function(){return this._width},getHeight:function(){return this._height},getViewportAspect:function(){var e=this.viewport;return e.width/e.height},setDevicePixelRatio:function(e){this.devicePixelRatio=e,this.resize(this._width,this._height)},getDevicePixelRatio:function(){return this.devicePixelRatio},getGLExtension:function(e){return this._glinfo.getExtension(e)},getGLParameter:function(e){return this._glinfo.getParameter(e)},setViewport:function(e,t,r,n,a){if(typeof e=="object"){var i=e;e=i.x,t=i.y,r=i.width,n=i.height,a=i.devicePixelRatio}a=a||this.devicePixelRatio,this.gl.viewport(e*a,t*a,r*a,n*a),this.viewport={x:e,y:t,width:r,height:n,devicePixelRatio:a}},saveViewport:function(){this._viewportStack.push(this.viewport)},restoreViewport:function(){this._viewportStack.length>0&&this.setViewport(this._viewportStack.pop())},saveClear:function(){this._clearStack.push({clearBit:this.clearBit,clearColor:this.clearColor})},restoreClear:function(){if(this._clearStack.length>0){var e=this._clearStack.pop();this.clearColor=e.clearColor,this.clearBit=e.clearBit}},bindSceneRendering:function(e){this._sceneRendering=e},render:function(e,t,r,n){var a=this.gl,i=this.clearColor;if(this.clearBit){a.colorMask(!0,!0,!0,!0),a.depthMask(!0);var o=this.viewport,s=!1,l=o.devicePixelRatio;(o.width!==this._width||o.height!==this._height||l&&l!==this.devicePixelRatio||o.x||o.y)&&(s=!0,a.enable(a.SCISSOR_TEST),a.scissor(o.x*l,o.y*l,o.width*l,o.height*l)),a.clearColor(i[0],i[1],i[2],i[3]),a.clear(this.clearBit),s&&a.disable(a.SCISSOR_TEST)}if(r||e.update(!1),e.updateLights(),t=t||e.getMainCamera(),!t){console.error("Can't find camera in the scene.");return}t.update();var u=e.updateRenderList(t,!0);this._sceneRendering=e;var c=u.opaque,f=u.transparent,d=e.material;e.trigger("beforerender",this,e,t,u),n?(this.renderPreZ(c,e,t),a.depthFunc(a.LEQUAL)):a.depthFunc(a.LESS);for(var h=Cn(),v=Ee.create(),p=0;p0){var s=e[a-1],l=s.joints?s.joints.length:0,u=i.joints?i.joints.length:0;if(u===l&&i.material===s.material&&i.lightGroup===s.lightGroup){i.__program=s.__program;continue}}var c=this._programMgr.getProgram(i,o,t);this.validateProgram(c),i.__program=c}},renderPass:function(e,t,r){this.trigger("beforerenderpass",this,e,t,r),r=r||{},r.getMaterial=r.getMaterial||N$,r.getUniform=r.getUniform||pgt,r.isMaterialChanged=r.isMaterialChanged||ggt,r.beforeRender=r.beforeRender||B$,r.afterRender=r.afterRender||B$;var n=r.ifRender||mgt;this.updatePrograms(e,this._sceneRendering,r),r.sortCompare&&e.sort(r.sortCompare);var a=this.viewport,i=a.devicePixelRatio,o=[a.x*i,a.y*i,a.width*i,a.height*i],s=this.devicePixelRatio,l=this.__currentFrameBuffer?[this.__currentFrameBuffer.getTextureWidth(),this.__currentFrameBuffer.getTextureHeight()]:[this._width*s,this._height*s],u=[o[2],o[3]],c=Date.now();t?(ut.copy(Tn.VIEW,t.viewMatrix.array),ut.copy(Tn.PROJECTION,t.projectionMatrix.array),ut.copy(Tn.VIEWINVERSE,t.worldTransform.array)):(ut.identity(Tn.VIEW),ut.identity(Tn.PROJECTION),ut.identity(Tn.VIEWINVERSE)),ut.multiply(Tn.VIEWPROJECTION,Tn.PROJECTION,Tn.VIEW),ut.invert(Tn.PROJECTIONINVERSE,Tn.PROJECTION),ut.invert(Tn.VIEWPROJECTIONINVERSE,Tn.VIEWPROJECTION);for(var f=this.gl,d=this._sceneRendering,h,v,p,g,m,y,_,w,x,S,T,A,C=null,M=0;Mthis.getMaxJointNumber()){var i=a.getSubSkinMatricesTexture(e.__uid__,e.joints);t.useTextureSlot(this,i,r),t.setUniform(n,"1i","skinMatricesTexture",r),t.setUniform(n,"1f","skinMatricesTextureSize",i.width)}else{var o=a.getSubSkinMatrices(e.__uid__,e.joints);t.setUniformOfSemantic(n,"SKIN_MATRIX",o)}},_renderObject:function(e,t,r){var n=this.gl,a=e.geometry,i=e.mode;i==null&&(i=4);var o=null,s=e.isInstancedMesh&&e.isInstancedMesh();if(s&&(o=this.getGLExtension("ANGLE_instanced_arrays"),!o)){console.warn("Device not support ANGLE_instanced_arrays extension");return}var l;if(s&&(l=this._bindInstancedAttributes(e,r,o)),t.indicesBuffer){var u=this.getGLExtension("OES_element_index_uint"),c=u&&a.indices instanceof Uint32Array,f=c?n.UNSIGNED_INT:n.UNSIGNED_SHORT;s?o.drawElementsInstancedANGLE(i,t.indicesBuffer.count,f,0,e.getInstanceCount()):n.drawElements(i,t.indicesBuffer.count,f,0)}else s?o.drawArraysInstancedANGLE(i,0,a.vertexCount,e.getInstanceCount()):n.drawArrays(i,0,a.vertexCount);if(s)for(var d=0;dr?r:e}var sn=Math.atan2,Xo=Math.asin,Yv=Math.abs;Jt.eulerFromQuat=function(e,t,d){e._dirty=!0,t=t.array;var n=e.array,a=t[0],i=t[1],o=t[2],s=t[3],l=a*a,u=i*i,c=o*o,f=s*s,d=(d||"XYZ").toUpperCase();switch(d){case"XYZ":n[0]=sn(2*(a*s-i*o),f-l-u+c),n[1]=Xo(Ko(2*(a*o+i*s),-1,1)),n[2]=sn(2*(o*s-a*i),f+l-u-c);break;case"YXZ":n[0]=Xo(Ko(2*(a*s-i*o),-1,1)),n[1]=sn(2*(a*o+i*s),f-l-u+c),n[2]=sn(2*(a*i+o*s),f-l+u-c);break;case"ZXY":n[0]=Xo(Ko(2*(a*s+i*o),-1,1)),n[1]=sn(2*(i*s-o*a),f-l-u+c),n[2]=sn(2*(o*s-a*i),f-l+u-c);break;case"ZYX":n[0]=sn(2*(a*s+o*i),f-l-u+c),n[1]=Xo(Ko(2*(i*s-a*o),-1,1)),n[2]=sn(2*(a*i+o*s),f+l-u-c);break;case"YZX":n[0]=sn(2*(a*s-o*i),f-l+u-c),n[1]=sn(2*(i*s-a*o),f+l-u-c),n[2]=Xo(Ko(2*(a*i+o*s),-1,1));break;case"XZY":n[0]=sn(2*(a*s+i*o),f-l+u-c),n[1]=sn(2*(a*o+i*s),f+l-u-c),n[2]=Xo(Ko(2*(o*s-a*i),-1,1));break;default:console.warn("Unkown order: "+d)}return e};Jt.eulerFromMat3=function(e,t,v){var n=t.array,a=n[0],i=n[3],o=n[6],s=n[1],l=n[4],u=n[7],c=n[2],f=n[5],d=n[8],h=e.array,v=(v||"XYZ").toUpperCase();switch(v){case"XYZ":h[1]=Xo(Ko(o,-1,1)),Yv(o)<.99999?(h[0]=sn(-u,d),h[2]=sn(-i,a)):(h[0]=sn(f,l),h[2]=0);break;case"YXZ":h[0]=Xo(-Ko(u,-1,1)),Yv(u)<.99999?(h[1]=sn(o,d),h[2]=sn(s,l)):(h[1]=sn(-c,a),h[2]=0);break;case"ZXY":h[0]=Xo(Ko(f,-1,1)),Yv(f)<.99999?(h[1]=sn(-c,d),h[2]=sn(-i,l)):(h[1]=0,h[2]=sn(s,a));break;case"ZYX":h[1]=Xo(-Ko(c,-1,1)),Yv(c)<.99999?(h[0]=sn(f,d),h[2]=sn(s,a)):(h[0]=0,h[2]=sn(-i,l));break;case"YZX":h[2]=Xo(Ko(s,-1,1)),Yv(s)<.99999?(h[0]=sn(-u,l),h[1]=sn(-c,a)):(h[0]=0,h[1]=sn(o,d));break;case"XZY":h[2]=Xo(-Ko(i,-1,1)),Yv(i)<.99999?(h[0]=sn(f,l),h[1]=sn(o,a)):(h[0]=sn(-u,d),h[1]=0);break;default:console.warn("Unkown order: "+v)}return e._dirty=!0,e};Object.defineProperties(Jt,{POSITIVE_X:{get:function(){return new Jt(1,0,0)}},NEGATIVE_X:{get:function(){return new Jt(-1,0,0)}},POSITIVE_Y:{get:function(){return new Jt(0,1,0)}},NEGATIVE_Y:{get:function(){return new Jt(0,-1,0)}},POSITIVE_Z:{get:function(){return new Jt(0,0,1)}},NEGATIVE_Z:{get:function(){return new Jt(0,0,-1)}},UP:{get:function(){return new Jt(0,1,0)}},ZERO:{get:function(){return new Jt}}});const mt=Jt;var fD=1e-5,BS=function(e,t){this.origin=e||new mt,this.direction=t||new mt};BS.prototype={constructor:BS,intersectPlane:function(e,t){var r=e.normal.array,n=e.distance,a=this.origin.array,i=this.direction.array,o=Ee.dot(r,i);if(o===0)return null;t||(t=new mt);var s=(Ee.dot(r,a)-n)/o;return Ee.scaleAndAdd(t.array,a,i,-s),t._dirty=!0,t},mirrorAgainstPlane:function(e){var t=Ee.dot(e.normal.array,this.direction.array);Ee.scaleAndAdd(this.direction.array,this.direction.array,e.normal.array,-t*2),this.direction._dirty=!0},distanceToPoint:function(){var e=Ee.create();return function(t){Ee.sub(e,t,this.origin.array);var r=Ee.dot(e,this.direction.array);if(r<0)return Ee.distance(this.origin.array,t);var n=Ee.lenSquared(e);return Math.sqrt(n-r*r)}}(),intersectSphere:function(){var e=Ee.create();return function(t,r,n){var a=this.origin.array,i=this.direction.array;t=t.array,Ee.sub(e,t,a);var o=Ee.dot(e,i),s=Ee.squaredLength(e),l=s-o*o,u=r*r;if(!(l>u)){var c=Math.sqrt(u-l),f=o-c,d=o+c;return n||(n=new mt),f<0?d<0?null:(Ee.scaleAndAdd(n.array,a,i,d),n):(Ee.scaleAndAdd(n.array,a,i,f),n)}}}(),intersectBoundingBox:function(e,t){var r=this.direction.array,n=this.origin.array,a=e.min.array,i=e.max.array,o=1/r[0],s=1/r[1],l=1/r[2],u,c,f,d,h,v;if(o>=0?(u=(a[0]-n[0])*o,c=(i[0]-n[0])*o):(c=(a[0]-n[0])*o,u=(i[0]-n[0])*o),s>=0?(f=(a[1]-n[1])*s,d=(i[1]-n[1])*s):(d=(a[1]-n[1])*s,f=(i[1]-n[1])*s),u>d||f>c||((f>u||u!==u)&&(u=f),(d=0?(h=(a[2]-n[2])*l,v=(i[2]-n[2])*l):(v=(a[2]-n[2])*l,h=(i[2]-n[2])*l),u>v||h>c)||((h>u||u!==u)&&(u=h),(v=0?u:c;return t||(t=new mt),Ee.scaleAndAdd(t.array,n,r,p),t},intersectTriangle:function(){var e=Ee.create(),t=Ee.create(),r=Ee.create(),n=Ee.create();return function(a,i,o,s,l,u){var c=this.direction.array,f=this.origin.array;a=a.array,i=i.array,o=o.array,Ee.sub(e,i,a),Ee.sub(t,o,a),Ee.cross(n,t,c);var d=Ee.dot(e,n);if(s){if(d>-fD)return null}else if(d>-fD&&d1)return null;Ee.cross(n,e,r);var v=Ee.dot(c,n)/d;if(v<0||v>1||h+v>1)return null;Ee.cross(n,e,t);var p=-Ee.dot(r,n)/d;return p<0?null:(l||(l=new mt),u&&mt.set(u,1-h-v,h,v),Ee.scaleAndAdd(l.array,f,c,p),l)}}(),applyTransform:function(e){mt.add(this.direction,this.direction,this.origin),mt.transformMat4(this.origin,this.origin,e),mt.transformMat4(this.direction,this.direction,e),mt.sub(this.direction,this.direction,this.origin),mt.normalize(this.direction,this.direction)},copy:function(e){mt.copy(this.origin,e.origin),mt.copy(this.direction,e.direction)},clone:function(){var e=new BS;return e.copy(this),e}};const A2=BS;var wr={};wr.create=function(){var e=new Wa(4);return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e};wr.clone=function(e){var t=new Wa(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t};wr.fromValues=function(e,t,r,n){var a=new Wa(4);return a[0]=e,a[1]=t,a[2]=r,a[3]=n,a};wr.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e};wr.set=function(e,t,r,n,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e};wr.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e};wr.subtract=function(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e};wr.sub=wr.subtract;wr.multiply=function(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e};wr.mul=wr.multiply;wr.divide=function(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e};wr.div=wr.divide;wr.min=function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e};wr.max=function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e};wr.scale=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e};wr.scaleAndAdd=function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e};wr.distance=function(e,t){var r=t[0]-e[0],n=t[1]-e[1],a=t[2]-e[2],i=t[3]-e[3];return Math.sqrt(r*r+n*n+a*a+i*i)};wr.dist=wr.distance;wr.squaredDistance=function(e,t){var r=t[0]-e[0],n=t[1]-e[1],a=t[2]-e[2],i=t[3]-e[3];return r*r+n*n+a*a+i*i};wr.sqrDist=wr.squaredDistance;wr.length=function(e){var t=e[0],r=e[1],n=e[2],a=e[3];return Math.sqrt(t*t+r*r+n*n+a*a)};wr.len=wr.length;wr.squaredLength=function(e){var t=e[0],r=e[1],n=e[2],a=e[3];return t*t+r*r+n*n+a*a};wr.sqrLen=wr.squaredLength;wr.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e};wr.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e};wr.normalize=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=r*r+n*n+a*a+i*i;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e[3]=t[3]*o),e};wr.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]};wr.lerp=function(e,t,r,n){var a=t[0],i=t[1],o=t[2],s=t[3];return e[0]=a+n*(r[0]-a),e[1]=i+n*(r[1]-i),e[2]=o+n*(r[2]-o),e[3]=s+n*(r[3]-s),e};wr.random=function(e,t){return t=t||1,e[0]=_p(),e[1]=_p(),e[2]=_p(),e[3]=_p(),wr.normalize(e,e),wr.scale(e,e,t),e};wr.transformMat4=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3];return e[0]=r[0]*n+r[4]*a+r[8]*i+r[12]*o,e[1]=r[1]*n+r[5]*a+r[9]*i+r[13]*o,e[2]=r[2]*n+r[6]*a+r[10]*i+r[14]*o,e[3]=r[3]*n+r[7]*a+r[11]*i+r[15]*o,e};wr.transformQuat=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=r[0],s=r[1],l=r[2],u=r[3],c=u*n+s*i-l*a,f=u*a+l*n-o*i,d=u*i+o*a-s*n,h=-o*n-s*a-l*i;return e[0]=c*u+h*-o+f*-l-d*-s,e[1]=f*u+h*-s+d*-o-c*-l,e[2]=d*u+h*-l+c*-s-f*-o,e};wr.forEach=function(){var e=wr.create();return function(t,r,n,a,i,o){var s,l;for(r||(r=4),n||(n=0),a?l=Math.min(a*r+n,t.length):l=t.length,s=n;s.999999?(n[0]=0,n[1]=0,n[2]=0,n[3]=1,n):(Ee.cross(e,a,i),n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=1+o,Wr.normalize(n,n))}}();Wr.setAxes=function(){var e=Or.create();return function(t,r,n,a){return e[0]=n[0],e[3]=n[1],e[6]=n[2],e[1]=a[0],e[4]=a[1],e[7]=a[2],e[2]=-r[0],e[5]=-r[1],e[8]=-r[2],Wr.normalize(t,Wr.fromMat3(t,e))}}();Wr.clone=Et.clone;Wr.fromValues=Et.fromValues;Wr.copy=Et.copy;Wr.set=Et.set;Wr.identity=function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e};Wr.setAxisAngle=function(e,t,r){r=r*.5;var n=Math.sin(r);return e[0]=n*t[0],e[1]=n*t[1],e[2]=n*t[2],e[3]=Math.cos(r),e};Wr.add=Et.add;Wr.multiply=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],s=r[0],l=r[1],u=r[2],c=r[3];return e[0]=n*c+o*s+a*u-i*l,e[1]=a*c+o*l+i*s-n*u,e[2]=i*c+o*u+n*l-a*s,e[3]=o*c-n*s-a*l-i*u,e};Wr.mul=Wr.multiply;Wr.scale=Et.scale;Wr.rotateX=function(e,t,r){r*=.5;var n=t[0],a=t[1],i=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=n*l+o*s,e[1]=a*l+i*s,e[2]=i*l-a*s,e[3]=o*l-n*s,e};Wr.rotateY=function(e,t,r){r*=.5;var n=t[0],a=t[1],i=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=n*l-i*s,e[1]=a*l+o*s,e[2]=i*l+n*s,e[3]=o*l-a*s,e};Wr.rotateZ=function(e,t,r){r*=.5;var n=t[0],a=t[1],i=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=n*l+a*s,e[1]=a*l-n*s,e[2]=i*l+o*s,e[3]=o*l-i*s,e};Wr.calculateW=function(e,t){var r=t[0],n=t[1],a=t[2];return e[0]=r,e[1]=n,e[2]=a,e[3]=Math.sqrt(Math.abs(1-r*r-n*n-a*a)),e};Wr.dot=Et.dot;Wr.lerp=Et.lerp;Wr.slerp=function(e,t,r,n){var a=t[0],i=t[1],o=t[2],s=t[3],l=r[0],u=r[1],c=r[2],f=r[3],d,h,v,p,g;return h=a*l+i*u+o*c+s*f,h<0&&(h=-h,l=-l,u=-u,c=-c,f=-f),1-h>1e-6?(d=Math.acos(h),v=Math.sin(d),p=Math.sin((1-n)*d)/v,g=Math.sin(n*d)/v):(p=1-n,g=n),e[0]=p*a+g*l,e[1]=p*i+g*u,e[2]=p*o+g*c,e[3]=p*s+g*f,e};Wr.invert=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=r*r+n*n+a*a+i*i,s=o?1/o:0;return e[0]=-r*s,e[1]=-n*s,e[2]=-a*s,e[3]=i*s,e};Wr.conjugate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e};Wr.length=Et.length;Wr.len=Wr.length;Wr.squaredLength=Et.squaredLength;Wr.sqrLen=Wr.squaredLength;Wr.normalize=Et.normalize;Wr.fromMat3=function(e,t){var r=t[0]+t[4]+t[8],n;if(r>0)n=Math.sqrt(r+1),e[3]=.5*n,n=.5/n,e[0]=(t[5]-t[7])*n,e[1]=(t[6]-t[2])*n,e[2]=(t[1]-t[3])*n;else{var a=0;t[4]>t[0]&&(a=1),t[8]>t[a*3+a]&&(a=2);var i=(a+1)%3,o=(a+2)%3;n=Math.sqrt(t[a*3+a]-t[i*3+i]-t[o*3+o]+1),e[a]=.5*n,n=.5/n,e[3]=(t[i*3+o]-t[o*3+i])*n,e[i]=(t[i*3+a]+t[a*3+i])*n,e[o]=(t[o*3+a]+t[a*3+o])*n}return e};const ar=Wr;var xn=function(){this._axisX=new mt,this._axisY=new mt,this._axisZ=new mt,this.array=ut.create(),this._dirty=!0};xn.prototype={constructor:xn,setArray:function(e){for(var t=0;t0){var t=this.min,r=this.max,n=t.array,a=r.array;Aw(n,e[0]),Aw(a,e[0]);for(var i=1;ia[0]&&(a[0]=o[0]),o[1]>a[1]&&(a[1]=o[1]),o[2]>a[2]&&(a[2]=o[2])}t._dirty=!0,r._dirty=!0}},union:function(e){var t=this.min,r=this.max;return Ee.min(t.array,t.array,e.min.array),Ee.max(r.array,r.array,e.max.array),t._dirty=!0,r._dirty=!0,this},intersection:function(e){var t=this.min,r=this.max;return Ee.max(t.array,t.array,e.min.array),Ee.min(r.array,r.array,e.max.array),t._dirty=!0,r._dirty=!0,this},intersectBoundingBox:function(e){var t=this.min.array,r=this.max.array,n=e.min.array,a=e.max.array;return!(t[0]>a[0]||t[1]>a[1]||t[2]>a[2]||r[0]=a[0]&&r[1]>=a[1]&&r[2]>=a[2]},containPoint:function(e){var t=this.min.array,r=this.max.array,n=e.array;return t[0]<=n[0]&&t[1]<=n[1]&&t[2]<=n[2]&&r[0]>=n[0]&&r[1]>=n[1]&&r[2]>=n[2]},isFinite:function(){var e=this.min.array,t=this.max.array;return isFinite(e[0])&&isFinite(e[1])&&isFinite(e[2])&&isFinite(t[0])&&isFinite(t[1])&&isFinite(t[2])},applyTransform:function(e){this.transformFrom(this,e)},transformFrom:function(){var e=Ee.create(),t=Ee.create(),r=Ee.create(),n=Ee.create(),a=Ee.create(),i=Ee.create();return function(o,s){var l=o.min.array,u=o.max.array,c=s.array;return e[0]=c[0]*l[0],e[1]=c[1]*l[0],e[2]=c[2]*l[0],t[0]=c[0]*u[0],t[1]=c[1]*u[0],t[2]=c[2]*u[0],r[0]=c[4]*l[1],r[1]=c[5]*l[1],r[2]=c[6]*l[1],n[0]=c[4]*u[1],n[1]=c[5]*u[1],n[2]=c[6]*u[1],a[0]=c[8]*l[2],a[1]=c[9]*l[2],a[2]=c[10]*l[2],i[0]=c[8]*u[2],i[1]=c[9]*u[2],i[2]=c[10]*u[2],l=this.min.array,u=this.max.array,l[0]=Math.min(e[0],t[0])+Math.min(r[0],n[0])+Math.min(a[0],i[0])+c[12],l[1]=Math.min(e[1],t[1])+Math.min(r[1],n[1])+Math.min(a[1],i[1])+c[13],l[2]=Math.min(e[2],t[2])+Math.min(r[2],n[2])+Math.min(a[2],i[2])+c[14],u[0]=Math.max(e[0],t[0])+Math.max(r[0],n[0])+Math.max(a[0],i[0])+c[12],u[1]=Math.max(e[1],t[1])+Math.max(r[1],n[1])+Math.max(a[1],i[1])+c[13],u[2]=Math.max(e[2],t[2])+Math.max(r[2],n[2])+Math.max(a[2],i[2])+c[14],this.min._dirty=!0,this.max._dirty=!0,this}}(),applyProjection:function(e){var t=this.min.array,r=this.max.array,n=e.array,a=t[0],i=t[1],o=t[2],s=r[0],l=r[1],u=t[2],c=r[0],f=r[1],d=r[2];if(n[15]===1)t[0]=n[0]*a+n[12],t[1]=n[5]*i+n[13],r[2]=n[10]*o+n[14],r[0]=n[0]*c+n[12],r[1]=n[5]*f+n[13],t[2]=n[10]*d+n[14];else{var h=-1/o;t[0]=n[0]*a*h,t[1]=n[5]*i*h,r[2]=(n[10]*o+n[14])*h,h=-1/u,r[0]=n[0]*s*h,r[1]=n[5]*l*h,h=-1/d,t[2]=(n[10]*d+n[14])*h}return this.min._dirty=!0,this.max._dirty=!0,this},updateVertices:function(){var e=this.vertices;if(!e){e=[];for(var t=0;t<8;t++)e[t]=Ee.fromValues(0,0,0);this.vertices=e}var r=this.min.array,n=this.max.array;return Ac(e[0],r[0],r[1],r[2]),Ac(e[1],r[0],n[1],r[2]),Ac(e[2],n[0],r[1],r[2]),Ac(e[3],n[0],n[1],r[2]),Ac(e[4],r[0],r[1],n[2]),Ac(e[5],r[0],n[1],n[2]),Ac(e[6],n[0],r[1],n[2]),Ac(e[7],n[0],n[1],n[2]),this},copy:function(e){var t=this.min,r=this.max;return Aw(t.array,e.min.array),Aw(r.array,e.max.array),t._dirty=!0,r._dirty=!0,this},clone:function(){var e=new FS;return e.copy(this),e}};const Ti=FS;var bgt=0,wgt=zi.extend({name:"",position:null,rotation:null,scale:null,worldTransform:null,localTransform:null,autoUpdateLocalTransform:!0,_parent:null,_scene:null,_needsUpdateWorldTransform:!0,_inIterating:!1,__depth:0},function(){this.name||(this.name=(this.type||"NODE")+"_"+bgt++),this.position||(this.position=new mt),this.rotation||(this.rotation=new Yae),this.scale||(this.scale=new mt(1,1,1)),this.worldTransform=new Bt,this.localTransform=new Bt,this._children=[]},{target:null,invisible:!1,isSkinnedMesh:function(){return!1},isRenderable:function(){return!1},setName:function(e){var t=this._scene;if(t){var r=t._nodeRepository;delete r[this.name],r[e]=this}this.name=e},add:function(e){var t=e._parent;if(t!==this){t&&t.remove(e),e._parent=this,this._children.push(e);var r=this._scene;r&&r!==e.scene&&e.traverse(this._addSelfToScene,this),e._needsUpdateWorldTransform=!0}},remove:function(e){var t=this._children,r=t.indexOf(e);r<0||(t.splice(r,1),e._parent=null,this._scene&&e.traverse(this._removeSelfFromScene,this))},removeAll:function(){for(var e=this._children,t=0;t0},beforeRender:function(e){},afterRender:function(e,t){},getBoundingBox:function(e,t){return t=Nl.prototype.getBoundingBox.call(this,e,t),this.geometry&&this.geometry.boundingBox&&t.union(this.geometry.boundingBox),t},clone:function(){var e=["castShadow","receiveShadow","mode","culling","cullFace","frontFace","frustumCulling","renderOrder","lineWidth","ignorePicking","ignorePreZ","ignoreGBuffer"];return function(){var t=Nl.prototype.clone.call(this);t.geometry=this.geometry,t.material=this.material;for(var r=0;r=0&&x[_]>1e-4&&(Ee.transformMat4(A,w,m[S[_]]),Ee.scaleAndAdd(T,T,A,x[_]));C.set(y,T)}}for(var y=0;y>t;return e+1},dispose:function(e){var t=this._cache;t.use(e.__uid__);var r=t.get("webgl_texture");r&&e.gl.deleteTexture(r),t.deleteContext(e.__uid__)},isRenderable:function(){},isPowerOfTwo:function(){}});Object.defineProperty(Br.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e}});Object.defineProperty(Br.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e}});Br.BYTE=$e.BYTE;Br.UNSIGNED_BYTE=$e.UNSIGNED_BYTE;Br.SHORT=$e.SHORT;Br.UNSIGNED_SHORT=$e.UNSIGNED_SHORT;Br.INT=$e.INT;Br.UNSIGNED_INT=$e.UNSIGNED_INT;Br.FLOAT=$e.FLOAT;Br.HALF_FLOAT=36193;Br.UNSIGNED_INT_24_8_WEBGL=34042;Br.DEPTH_COMPONENT=$e.DEPTH_COMPONENT;Br.DEPTH_STENCIL=$e.DEPTH_STENCIL;Br.ALPHA=$e.ALPHA;Br.RGB=$e.RGB;Br.RGBA=$e.RGBA;Br.LUMINANCE=$e.LUMINANCE;Br.LUMINANCE_ALPHA=$e.LUMINANCE_ALPHA;Br.SRGB=35904;Br.SRGB_ALPHA=35906;Br.COMPRESSED_RGB_S3TC_DXT1_EXT=33776;Br.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777;Br.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778;Br.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779;Br.NEAREST=$e.NEAREST;Br.LINEAR=$e.LINEAR;Br.NEAREST_MIPMAP_NEAREST=$e.NEAREST_MIPMAP_NEAREST;Br.LINEAR_MIPMAP_NEAREST=$e.LINEAR_MIPMAP_NEAREST;Br.NEAREST_MIPMAP_LINEAR=$e.NEAREST_MIPMAP_LINEAR;Br.LINEAR_MIPMAP_LINEAR=$e.LINEAR_MIPMAP_LINEAR;Br.REPEAT=$e.REPEAT;Br.CLAMP_TO_EDGE=$e.CLAMP_TO_EDGE;Br.MIRRORED_REPEAT=$e.MIRRORED_REPEAT;const $t=Br;var Po=eR.extend({skeleton:null,joints:null},function(){this.joints||(this.joints=[])},{offsetMatrix:null,isInstancedMesh:function(){return!1},isSkinnedMesh:function(){return!!(this.skeleton&&this.joints&&this.joints.length>0)},clone:function(){var e=eR.prototype.clone.call(this);return e.skeleton=this.skeleton,this.joints&&(e.joints=this.joints.slice()),e}});Po.POINTS=$e.POINTS;Po.LINES=$e.LINES;Po.LINE_LOOP=$e.LINE_LOOP;Po.LINE_STRIP=$e.LINE_STRIP;Po.TRIANGLES=$e.TRIANGLES;Po.TRIANGLE_STRIP=$e.TRIANGLE_STRIP;Po.TRIANGLE_FAN=$e.TRIANGLE_FAN;Po.BACK=$e.BACK;Po.FRONT=$e.FRONT;Po.FRONT_AND_BACK=$e.FRONT_AND_BACK;Po.CW=$e.CW;Po.CCW=$e.CCW;const dh=Po;var FT={};FT.isPowerOfTwo=function(e){return(e&e-1)===0};FT.nextPowerOfTwo=function(e){return e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e++,e};FT.nearestPowerOfTwo=function(e){return Math.pow(2,Math.round(Math.log(e)/Math.LN2))};const jae=FT;var V$=jae.isPowerOfTwo;function z$(e){return Math.pow(2,Math.round(Math.log(e)/Math.LN2))}function xgt(e,t){var r=z$(e.width),n=z$(e.height);t=t||document.createElement("canvas"),t.width=r,t.height=n;var a=t.getContext("2d");return a.drawImage(e.image,0,0,r,n),t}var u4=$t.extend(function(){return{image:null,pixels:null,mipmaps:[],convertToPOT:!1}},{textureType:"texture2D",update:function(e){var t=e.gl;t.bindTexture(t.TEXTURE_2D,this._cache.get("webgl_texture")),this.updateCommon(e);var r=this.format,n=this.type,a=!!(this.convertToPOT&&!this.mipmaps.length&&this.image&&(this.wrapS===$t.REPEAT||this.wrapT===$t.REPEAT)&&this.NPOT);t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,a?this.wrapS:this.getAvailableWrapS()),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,a?this.wrapT:this.getAvailableWrapT()),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,a?this.magFilter:this.getAvailableMagFilter()),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,a?this.minFilter:this.getAvailableMinFilter());var i=e.getGLExtension("EXT_texture_filter_anisotropic");if(i&&this.anisotropic>1&&t.texParameterf(t.TEXTURE_2D,i.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),n===36193){var o=e.getGLExtension("OES_texture_half_float");o||(n=$e.FLOAT)}if(this.mipmaps.length)for(var s=this.width,l=this.height,u=0;u=$t.COMPRESSED_RGB_S3TC_DXT1_EXT?e.compressedTexImage2D(e.TEXTURE_2D,r,i,n,a,0,t.pixels):e.texImage2D(e.TEXTURE_2D,r,i,n,a,0,i,o,t.pixels)},generateMipmap:function(e){var t=e.gl;this.useMipmap&&!this.NPOT&&(t.bindTexture(t.TEXTURE_2D,this._cache.get("webgl_texture")),t.generateMipmap(t.TEXTURE_2D))},isPowerOfTwo:function(){return V$(this.width)&&V$(this.height)},isRenderable:function(){return this.image?this.image.width>0&&this.image.height>0:!!(this.width&&this.height)},bind:function(e){e.gl.bindTexture(e.gl.TEXTURE_2D,this.getWebGLTexture(e))},unbind:function(e){e.gl.bindTexture(e.gl.TEXTURE_2D,null)},load:function(e,t){var r=aa.createImage();t&&(r.crossOrigin=t);var n=this;return r.onload=function(){n.dirty(),n.trigger("success",n)},r.onerror=function(){n.trigger("error",n)},r.src=e,this.image=r,this}});Object.defineProperty(u4.prototype,"width",{get:function(){return this.image?this.image.width:this._width},set:function(e){this.image?console.warn("Texture from image can't set width"):(this._width!==e&&this.dirty(),this._width=e)}});Object.defineProperty(u4.prototype,"height",{get:function(){return this.image?this.image.height:this._height},set:function(e){this.image?console.warn("Texture from image can't set height"):(this._height!==e&&this.dirty(),this._height=e)}});const _r=u4;function Kae(e){return{byte:aa.Int8Array,ubyte:aa.Uint8Array,short:aa.Int16Array,ushort:aa.Uint16Array}[e]||aa.Float32Array}function hD(e){return"attr_"+e}function Sg(e,t,r,n){switch(this.name=e,this.type=t,this.size=r,this.semantic=n||"",this.value=null,r){case 1:this.get=function(a){return this.value[a]},this.set=function(a,i){this.value[a]=i},this.copy=function(a,i){this.value[a]=this.value[a]};break;case 2:this.get=function(a,i){var o=this.value;return i[0]=o[a*2],i[1]=o[a*2+1],i},this.set=function(a,i){var o=this.value;o[a*2]=i[0],o[a*2+1]=i[1]},this.copy=function(a,i){var o=this.value;i*=2,a*=2,o[a]=o[i],o[a+1]=o[i+1]};break;case 3:this.get=function(a,i){var o=a*3,s=this.value;return i[0]=s[o],i[1]=s[o+1],i[2]=s[o+2],i},this.set=function(a,i){var o=a*3,s=this.value;s[o]=i[0],s[o+1]=i[1],s[o+2]=i[2]},this.copy=function(a,i){var o=this.value;i*=3,a*=3,o[a]=o[i],o[a+1]=o[i+1],o[a+2]=o[i+2]};break;case 4:this.get=function(a,i){var o=this.value,s=a*4;return i[0]=o[s],i[1]=o[s+1],i[2]=o[s+2],i[3]=o[s+3],i},this.set=function(a,i){var o=this.value,s=a*4;o[s]=i[0],o[s+1]=i[1],o[s+2]=i[2],o[s+3]=i[3]},this.copy=function(a,i){var o=this.value;i*=4,a*=4,o[a]=o[i],o[a+1]=o[i+1],o[a+2]=o[i+2],o[a+3]=o[i+3]}}}Sg.prototype.init=function(e){if(!this.value||this.value.length!==e*this.size){var t=Kae(this.type);this.value=new t(e*this.size)}};Sg.prototype.fromArray=function(e){var t=Kae(this.type),r;if(e[0]&&e[0].length){var n=0,a=this.size;r=new t(e.length*a);for(var i=0;i=0){t||(t=[]);var r=this.indices;return t[0]=r[e*3],t[1]=r[e*3+1],t[2]=r[e*3+2],t}},setTriangleIndices:function(e,t){var r=this.indices;r[e*3]=t[0],r[e*3+1]=t[1],r[e*3+2]=t[2]},isUseIndices:function(){return!!this.indices},initIndicesFromArray:function(e){var t,r=this.vertexCount>65535?aa.Uint32Array:aa.Uint16Array;if(e[0]&&e[0].length){var n=0,a=3;t=new r(e.length*a);for(var i=0;i=0?(t.splice(r,1),delete this.attributes[e],!0):!1},getAttribute:function(e){return this.attributes[e]},getEnabledAttributes:function(){var e=this._enabledAttributes,t=this._attributeList;if(e)return e;for(var r=[],n=this.vertexCount,a=0;ai[0]&&(i[0]=s),l>i[1]&&(i[1]=l),u>i[2]&&(i[2]=u)}r._dirty=!0,n._dirty=!0}},generateVertexNormals:function(){if(this.vertexCount){var e=this.indices,t=this.attributes,r=t.position.value,n=t.normal.value;if(!n||n.length!==r.length)n=t.normal.value=new aa.Float32Array(r.length);else for(var a=0;a65535&&(this.indices=new aa.Uint32Array(this.indices));for(var e=this.attributes,t=this.indices,r=this.getEnabledAttributes(),n={},a=0;athis.distance,a=1;a<8;a++)if(Ee.dot(t[a].array,r)>this.distance!=n)return!0},intersectLine:function(){var e=Ee.create();return function(t,r,n){var a=this.distanceToPoint(t),i=this.distanceToPoint(r);if(a>0&&i>0||a<0&&i<0)return null;var o=this.normal.array,s=this.distance,l=t.array;Ee.sub(e,r.array,t.array),Ee.normalize(e,e);var u=Ee.dot(o,e);if(u===0)return null;n||(n=new mt);var c=(Ee.dot(o,l)-s)/u;return Ee.scaleAndAdd(n.array,l,e,-c),n._dirty=!0,n}}(),applyTransform:function(){var e=ut.create(),t=Et.create(),r=Et.create();return r[3]=1,function(n){n=n.array,Ee.scale(r,this.normal.array,this.distance),Et.transformMat4(r,r,n),this.distance=Ee.dot(r,this.normal.array),ut.invert(e,n),ut.transpose(e,e),t[3]=0,Ee.copy(t,this.normal.array),Et.transformMat4(t,t,e),Ee.copy(this.normal.array,t)}}(),copy:function(e){Ee.copy(this.normal.array,e.normal.array),this.normal._dirty=!0,this.distance=e.distance},clone:function(){var e=new VS;return e.copy(this),e}};const qae=VS;var Zn=Ee.set,H$=Ee.copy,G$=Ee.transformMat4,vD=Math.min,pD=Math.max,Qae=function(){this.planes=[];for(var e=0;e<6;e++)this.planes.push(new qae);this.boundingBox=new Ti,this.vertices=[];for(var e=0;e<8;e++)this.vertices[e]=Ee.fromValues(0,0,0)};Qae.prototype={setFromProjection:function(e){var t=this.planes,r=e.array,n=r[0],a=r[1],i=r[2],o=r[3],s=r[4],l=r[5],u=r[6],c=r[7],f=r[8],d=r[9],h=r[10],v=r[11],p=r[12],g=r[13],m=r[14],y=r[15];Zn(t[0].normal.array,o-n,c-s,v-f),t[0].distance=-(y-p),t[0].normalize(),Zn(t[1].normal.array,o+n,c+s,v+f),t[1].distance=-(y+p),t[1].normalize(),Zn(t[2].normal.array,o+a,c+l,v+d),t[2].distance=-(y+g),t[2].normalize(),Zn(t[3].normal.array,o-a,c-l,v-d),t[3].distance=-(y-g),t[3].normalize(),Zn(t[4].normal.array,o-i,c-u,v-h),t[4].distance=-(y-m),t[4].normalize(),Zn(t[5].normal.array,o+i,c+u,v+h),t[5].distance=-(y+m),t[5].normalize();var _=this.boundingBox,w=this.vertices;if(y===0){var x=l/n,S=-m/(h-1),T=-m/(h+1),A=-T/l,C=-S/l;_.min.set(-A*x,-A,T),_.max.set(A*x,A,S),Zn(w[0],-A*x,-A,T),Zn(w[1],-A*x,A,T),Zn(w[2],A*x,-A,T),Zn(w[3],A*x,A,T),Zn(w[4],-C*x,-C,S),Zn(w[5],-C*x,C,S),Zn(w[6],C*x,-C,S),Zn(w[7],C*x,C,S)}else{var M=(-1-p)/n,E=(1-p)/n,D=(1-g)/l,P=(-1-g)/l,L=(-1-m)/h,I=(1-m)/h;_.min.set(Math.min(M,E),Math.min(P,D),Math.min(I,L)),_.max.set(Math.max(E,M),Math.max(D,P),Math.max(L,I));var O=_.min.array,R=_.max.array;Zn(w[0],O[0],O[1],O[2]),Zn(w[1],O[0],R[1],O[2]),Zn(w[2],R[0],O[1],O[2]),Zn(w[3],R[0],R[1],O[2]),Zn(w[4],O[0],O[1],R[2]),Zn(w[5],O[0],R[1],R[2]),Zn(w[6],R[0],O[1],R[2]),Zn(w[7],R[0],R[1],R[2])}},getTransformedBoundingBox:function(){var e=Ee.create();return function(t,r){var n=this.vertices,a=r.array,i=t.min,o=t.max,s=i.array,l=o.array,u=n[0];G$(e,u,a),H$(s,e),H$(l,e);for(var c=1;c<8;c++)u=n[c],G$(e,u,a),s[0]=vD(e[0],s[0]),s[1]=vD(e[1],s[1]),s[2]=vD(e[2],s[2]),l[0]=pD(e[0],l[0]),l[1]=pD(e[1],l[1]),l[2]=pD(e[2],l[2]);return i._dirty=!0,o._dirty=!0,t}}()};const c4=Qae;var Egt=Nl.extend(function(){return{projectionMatrix:new Bt,invProjectionMatrix:new Bt,viewMatrix:new Bt,frustum:new c4}},function(){this.update(!0)},{update:function(e){Nl.prototype.update.call(this,e),Bt.invert(this.viewMatrix,this.worldTransform),this.updateProjectionMatrix(),Bt.invert(this.invProjectionMatrix,this.projectionMatrix),this.frustum.setFromProjection(this.projectionMatrix)},setViewMatrix:function(e){Bt.copy(this.viewMatrix,e),Bt.invert(this.worldTransform,e),this.decomposeWorldTransform()},decomposeProjectionMatrix:function(){},setProjectionMatrix:function(e){Bt.copy(this.projectionMatrix,e),Bt.invert(this.invProjectionMatrix,e),this.decomposeProjectionMatrix()},updateProjectionMatrix:function(){},castRay:function(){var e=Et.create();return function(t,r){var n=r!==void 0?r:new A2,a=t.array[0],i=t.array[1];return Et.set(e,a,i,-1,1),Et.transformMat4(e,e,this.invProjectionMatrix.array),Et.transformMat4(e,e,this.worldTransform.array),Ee.scale(n.origin.array,e,1/e[3]),Et.set(e,a,i,1,1),Et.transformMat4(e,e,this.invProjectionMatrix.array),Et.transformMat4(e,e,this.worldTransform.array),Ee.scale(e,e,1/e[3]),Ee.sub(n.direction.array,e,n.origin.array),Ee.normalize(n.direction.array,n.direction.array),n.direction._dirty=!0,n.origin._dirty=!0,n}}()});const xg=Egt;var Mgt=ut.create(),U$=ut.create(),gD={};function Dgt(e){var t=[],r=Object.keys(e);r.sort();for(var n=0;n0&&console.warn("Found multiple camera in one scene. Use the fist one."),this._cameraList.push(e)):e instanceof tl&&this.lights.push(e),e.name&&(this._nodeRepository[e.name]=e)},removeFromScene:function(e){var t;e instanceof xg?(t=this._cameraList.indexOf(e),t>=0&&this._cameraList.splice(t,1)):e instanceof tl&&(t=this.lights.indexOf(e),t>=0&&this.lights.splice(t,1)),e.name&&delete this._nodeRepository[e.name]},getNode:function(e){return this._nodeRepository[e]},setMainCamera:function(e){var t=this._cameraList.indexOf(e);t>=0&&this._cameraList.splice(t,1),this._cameraList.unshift(e)},getMainCamera:function(){return this._cameraList[0]},getLights:function(){return this.lights},updateLights:function(){var e=this.lights;this._previousLightNumber=this._lightNumber;for(var t={},r=0;r0&&this._doUpdateRenderList(o,t,r,n,a)}},isFrustumCulled:function(){var e=new Ti,t=new Bt;return function(r,n,a){var i=r.boundingBox;if(i||(r.skeleton&&r.skeleton.boundingBox?i=r.skeleton.boundingBox:i=r.geometry.boundingBox),!i)return!1;if(t.array=a,e.transformFrom(i,t),r.castShadow&&this.viewBoundingBoxLastFrame.union(e),r.frustumCulling){if(!e.intersectBoundingBox(n.frustum.boundingBox))return!0;t.array=n.projectionMatrix.array,e.max.array[2]>0&&e.min.array[2]<0&&(e.max.array[2]=-1e-20),e.applyProjection(t);var o=e.min.array,s=e.max.array;if(s[0]<-1||o[0]>1||s[1]<-1||o[1]>1||s[2]<-1||o[2]>1)return!0}return!1}}(),_updateLightUniforms:function(){var e=this.lights;e.sort(Lgt);var t=this._lightUniforms;for(var r in t)for(var n in t[r])t[r][n].value.length=0;for(var a=0;a1&&t.texParameterf(t.TEXTURE_CUBE_MAP,a.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),n===36193){var i=e.getGLExtension("OES_texture_half_float");i||(n=$e.FLOAT)}if(this.mipmaps.length)for(var o=this.width,s=this.height,l=0;l0&&e.height>0}const I_=f4;var Rgt=xg.extend({fov:50,aspect:1,near:.1,far:2e3},{updateProjectionMatrix:function(){var e=this.fov/180*Math.PI;this.projectionMatrix.perspective(e,this.aspect,this.near,this.far)},decomposeProjectionMatrix:function(){var e=this.projectionMatrix.array,t=Math.atan(1/e[5])*2;this.fov=t/Math.PI*180,this.aspect=e[5]/e[0],this.near=e[14]/(e[10]-1),this.far=e[14]/(e[10]+1)},clone:function(){var e=xg.prototype.clone.call(this);return e.fov=this.fov,e.aspect=this.aspect,e.near=this.near,e.far=this.far,e}});const Sa=Rgt;var Cw="framebuffer",bu="renderbuffer",$$=bu+"_width",W$=bu+"_height",mD=bu+"_attached",yD="depthtexture_attached",Cd=$e.FRAMEBUFFER,oy=$e.RENDERBUFFER,Dy=$e.DEPTH_ATTACHMENT,Jae=$e.COLOR_ATTACHMENT0,F1=zi.extend({depthBuffer:!0,viewport:null,_width:0,_height:0,_textures:null,_boundRenderer:null},function(){this._cache=new l4,this._textures={}},{getTextureWidth:function(){return this._width},getTextureHeight:function(){return this._height},bind:function(e){if(e.__currentFrameBuffer){if(e.__currentFrameBuffer===this)return;console.warn("Renderer already bound with another framebuffer. Unbind it first")}e.__currentFrameBuffer=this;var t=e.gl;t.bindFramebuffer(Cd,this._getFrameBufferGL(e)),this._boundRenderer=e;var r=this._cache;r.put("viewport",e.viewport);var n=!1,a,i;for(var o in this._textures){n=!0;var s=this._textures[o];s&&(a=s.texture.width,i=s.texture.height,this._doAttach(e,s.texture,o,s.target))}this._width=a,this._height=i,!n&&this.depthBuffer&&console.error("Must attach texture before bind, or renderbuffer may have incorrect width and height."),this.viewport?e.setViewport(this.viewport):e.setViewport(0,0,a,i,1);var l=r.get("attached_textures");if(l){for(var o in l)if(!this._textures[o]){var u=l[o];this._doDetach(t,o,u)}}if(!r.get(yD)&&this.depthBuffer){r.miss(bu)&&r.put(bu,t.createRenderbuffer());var c=r.get(bu);(a!==r.get($$)||i!==r.get(W$))&&(t.bindRenderbuffer(oy,c),t.renderbufferStorage(oy,t.DEPTH_COMPONENT16,a,i),r.put($$,a),r.put(W$,i),t.bindRenderbuffer(oy,null)),r.get(mD)||(t.framebufferRenderbuffer(Cd,Dy,oy,c),r.put(mD,!0))}},unbind:function(e){e.__currentFrameBuffer=null;var t=e.gl;t.bindFramebuffer(Cd,null),this._boundRenderer=null,this._cache.use(e.__uid__);var r=this._cache.get("viewport");r&&e.setViewport(r),this.updateMipmap(e)},updateMipmap:function(e){var t=e.gl;for(var r in this._textures){var n=this._textures[r];if(n){var a=n.texture;if(!a.NPOT&&a.useMipmap&&a.minFilter===$t.LINEAR_MIPMAP_LINEAR){var i=a.textureType==="textureCube"?$e.TEXTURE_CUBE_MAP:$e.TEXTURE_2D;t.bindTexture(i,a.getWebGLTexture(e)),t.generateMipmap(i),t.bindTexture(i,null)}}}},checkStatus:function(e){return e.checkFramebufferStatus(Cd)},_getFrameBufferGL:function(e){var t=this._cache;return t.use(e.__uid__),t.miss(Cw)&&t.put(Cw,e.gl.createFramebuffer()),t.get(Cw)},attach:function(e,t,r){if(!e.width)throw new Error("The texture attached to color buffer is not a valid.");t=t||Jae,r=r||$e.TEXTURE_2D;var n=this._boundRenderer,a=n&&n.gl,i;if(a){var o=this._cache;o.use(n.__uid__),i=o.get("attached_textures")}var s=this._textures[t];if(!(s&&s.target===r&&s.texture===e&&i&&i[t]!=null)){var l=!0;n&&(l=this._doAttach(n,e,t,r),this.viewport||n.setViewport(0,0,e.width,e.height,1)),l&&(this._textures[t]=this._textures[t]||{},this._textures[t].texture=e,this._textures[t].target=r)}},_doAttach:function(e,t,r,n){var a=e.gl,i=t.getWebGLTexture(e),o=this._cache.get("attached_textures");if(o&&o[r]){var s=o[r];if(s.texture===t&&s.target===n)return}r=+r;var l=!0;if(r===Dy||r===$e.DEPTH_STENCIL_ATTACHMENT){var u=e.getGLExtension("WEBGL_depth_texture");if(u||(console.error("Depth texture is not supported by the browser"),l=!1),t.format!==$e.DEPTH_COMPONENT&&t.format!==$e.DEPTH_STENCIL&&(console.error("The texture attached to depth buffer is not a valid."),l=!1),l){var c=this._cache.get(bu);c&&(a.framebufferRenderbuffer(Cd,Dy,oy,null),a.deleteRenderbuffer(c),this._cache.put(bu,!1)),this._cache.put(mD,!1),this._cache.put(yD,!0)}}return a.framebufferTexture2D(Cd,r,n,i,0),o||(o={},this._cache.put("attached_textures",o)),o[r]=o[r]||{},o[r].texture=t,o[r].target=n,l},_doDetach:function(e,t,r){e.framebufferTexture2D(Cd,t,r,null,0);var n=this._cache.get("attached_textures");n&&n[t]&&(n[t]=null),(t===Dy||t===$e.DEPTH_STENCIL_ATTACHMENT)&&this._cache.put(yD,!1)},detach:function(e,t){if(this._textures[e]=null,this._boundRenderer){var r=this._cache;r.use(this._boundRenderer.__uid__),this._doDetach(this._boundRenderer.gl,e,t)}},dispose:function(e){var t=e.gl,r=this._cache;r.use(e.__uid__);var n=r.get(bu);n&&t.deleteRenderbuffer(n);var a=r.get(Cw);a&&t.deleteFramebuffer(a),r.deleteContext(e.__uid__),this._textures={}}});F1.DEPTH_ATTACHMENT=Dy;F1.COLOR_ATTACHMENT0=Jae;F1.STENCIL_ATTACHMENT=$e.STENCIL_ATTACHMENT;F1.DEPTH_STENCIL_ATTACHMENT=$e.DEPTH_STENCIL_ATTACHMENT;const Ua=F1;var Ogt=["px","nx","py","ny","pz","nz"],kgt=zi.extend(function(){var e={position:new mt,far:1e3,near:.1,texture:null,shadowMapPass:null},t=e._cameras={px:new Sa({fov:90}),nx:new Sa({fov:90}),py:new Sa({fov:90}),ny:new Sa({fov:90}),pz:new Sa({fov:90}),nz:new Sa({fov:90})};return t.px.lookAt(mt.POSITIVE_X,mt.NEGATIVE_Y),t.nx.lookAt(mt.NEGATIVE_X,mt.NEGATIVE_Y),t.py.lookAt(mt.POSITIVE_Y,mt.POSITIVE_Z),t.ny.lookAt(mt.NEGATIVE_Y,mt.NEGATIVE_Z),t.pz.lookAt(mt.POSITIVE_Z,mt.NEGATIVE_Y),t.nz.lookAt(mt.NEGATIVE_Z,mt.NEGATIVE_Y),e._frameBuffer=new Ua,e},{getCamera:function(e){return this._cameras[e]},render:function(e,t,r){var n=e.gl;r||t.update();for(var a=this.texture.width,i=2*Math.atan(a/(a-.5))/Math.PI*180,o=0;o<6;o++){var s=Ogt[o],l=this._cameras[s];if(mt.copy(l.position,this.position),l.far=this.far,l.near=this.near,l.fov=i,this.shadowMapPass){l.update();var u=t.getBoundingBox();u.applyTransform(l.viewMatrix),t.viewBoundingBoxLastFrame.copy(u),this.shadowMapPass.render(e,t,l,!0)}this._frameBuffer.attach(this.texture,n.COLOR_ATTACHMENT0,n.TEXTURE_CUBE_MAP_POSITIVE_X+o),this._frameBuffer.bind(e),e.render(t,l,!0),this._frameBuffer.unbind(e)}},dispose:function(e){this._frameBuffer.dispose(e)}});const d4=kgt;var Ngt=Hr.extend({dynamic:!1,widthSegments:1,heightSegments:1},function(){this.build()},{build:function(){for(var e=this.heightSegments,t=this.widthSegments,r=this.attributes,n=[],a=[],i=[],o=[],s=0;s<=e;s++)for(var l=s/e,u=0;u<=t;u++){var c=u/t;if(n.push([2*c-1,2*l-1,0]),a&&a.push([c,l]),i&&i.push([0,0,1]),u0?this.material.define("fragment","LOD"):this.material.undefine("fragment","LOD"),e.renderPass([this],r)}});const R_=Vgt;var zgt=542327876,Hgt=131072,Ggt=512,Ugt=4;function h4(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}var $gt=31,Wgt=h4("DXT1"),Ygt=h4("DXT3"),jgt=h4("DXT5"),Kgt=0,Xgt=1,Zgt=2,qgt=3,Qgt=4,Jgt=7,emt=20,tmt=21,rmt=28,nmt={parse:function(e,t){var r=new Int32Array(e,0,$gt);if(r[Kgt]!==zgt||!r(emt)&Ugt)return null;var n=r(tmt),a=r[Qgt],i=r[qgt],o=r[rmt]&Ggt,s=r[Zgt]&Hgt,l,u;switch(n){case Wgt:l=8,u=$t.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case Ygt:l=16,u=$t.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case jgt:l=16,u=$t.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return null}var c=r[Xgt]+4,f=o?6:1,d=1;s&&(d=Math.max(1,r[Jgt]));for(var h=[],v=0;v0){var a=Math.pow(2,e[3]-128-8+n);t[r+0]=e[0]*a,t[r+1]=e[1]*a,t[r+2]=e[2]*a}else t[r+0]=0,t[r+1]=0,t[r+2]=0;return t[r+3]=1,t}function lmt(e,t,r){for(var n="",a=t;a0;)if(e[i][0]=t[r++],e[i][1]=t[r++],e[i][2]=t[r++],e[i][3]=t[r++],e[i][0]===1&&e[i][1]===1&&e[i][2]===1){for(var s=e[i][3]<>>0;s>0;s--)umt(e[i-1],e[i]),i++,o--;a+=8}else i++,o--,a=0;return r}function cmt(e,t,r,n){if(nomt)return Y$(e,t,r,n);var a=t[r++];if(a!=2)return Y$(e,t,r-1,n);if(e[0][1]=t[r++],e[0][2]=t[r++],a=t[r++],(e[0][2]<<8>>>0|a)>>>0!==n)return null;for(var a=0;a<4;a++)for(var i=0;i128){o=(o&127)>>>0;for(var s=t[r++];o--;)e[i++][a]=s}else for(;o--;)e[i++][a]=t[r++]}return r}var fmt={parseRGBE:function(e,t,r){r==null&&(r=0);var n=new Uint8Array(e),a=n.length;if(lmt(n,0,2)==="#?"){for(var i=2;i=a)){i+=2;for(var o="";i20)return console.warn("Given image is not a height map"),e}var h,v,p,g;l%(n*4)===0?(h=o.data[l],p=o.data[l+4]):l%(n*4)===(n-1)*4?(h=o.data[l-4],p=o.data[l]):(h=o.data[l-4],p=o.data[l+4]),ln*(a-1)*4?(v=o.data[l-n*4],g=o.data[l]):(v=o.data[l-n*4],g=o.data[l+n*4]),s.data[l]=h-p+127,s.data[l+1]=v-g+127,s.data[l+2]=255,s.data[l+3]=255}return i.putImageData(s,0,0),r},isHeightImage:function(e,t,r){if(!e||!e.width||!e.height)return!1;var n=document.createElement("canvas"),a=n.getContext("2d"),i=t||32;r=r||20,n.width=n.height=i,a.drawImage(e,0,0,i,i);for(var o=a.getImageData(0,0,i,i),s=0;sr)return!1}return!0},_fetchTexture:function(e,t,r){aa.request.get({url:e,responseType:"arraybuffer",onload:t,onerror:r})},createChessboard:function(e,t,r,n){e=e||512,t=t||64,r=r||"black",n=n||"white";var a=Math.ceil(e/t),i=document.createElement("canvas");i.width=e,i.height=e;var o=i.getContext("2d");o.fillStyle=n,o.fillRect(0,0,e,e),o.fillStyle=r;for(var s=0;s=0||(tR.forEach(function(t){e.on(t,this[rR(t)],this)},this),this._meshes.push(e))},detachFromMesh:function(e){var t=this._meshes.indexOf(e);t>=0&&this._meshes.splice(t,1),tR.forEach(function(r){e.off(r,this[rR(r)])},this)},dispose:function(){this._meshes.forEach(function(e){this.detachFromMesh(e)},this)}};const hmt=nR;var vmt=xg.extend({left:-1,right:1,near:-1,far:1,top:1,bottom:-1},{updateProjectionMatrix:function(){this.projectionMatrix.ortho(this.left,this.right,this.bottom,this.top,this.near,this.far)},decomposeProjectionMatrix:function(){var e=this.projectionMatrix.array;this.left=(-1-e[12])/e[0],this.right=(1-e[12])/e[0],this.top=(1-e[13])/e[5],this.bottom=(-1-e[13])/e[5],this.near=-(-1-e[14])/e[10],this.far=-(1-e[14])/e[10]},clone:function(){var e=xg.prototype.clone.call(this);return e.left=this.left,e.right=this.right,e.near=this.near,e.far=this.far,e.top=this.top,e.bottom=this.bottom,e}});const Ag=vmt,pmt=` @export clay.compositor.vertex uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; attribute vec3 position : POSITION; attribute vec2 texcoord : TEXCOORD_0; varying vec2 v_Texcoord; void main() { v_Texcoord = texcoord; gl_Position = worldViewProjection * vec4(position, 1.0); } @end`;nt.import(pmt);var gmt=new zT,j$=new dh({geometry:gmt,frustumCulling:!1}),mmt=new Ag,ymt=zi.extend(function(){return{fragment:"",outputs:null,material:null,blendWithPrevious:!1,clearColor:!1,clearDepth:!0}},function(){var e=new nt(nt.source("clay.compositor.vertex"),this.fragment),t=new as({shader:e});t.enableTexturesAll(),this.material=t},{setUniform:function(e,t){this.material.setUniform(e,t)},getUniform:function(e){var t=this.material.uniforms[e];if(t)return t.value},attachOutput:function(e,t){this.outputs||(this.outputs={}),t=t||$e.COLOR_ATTACHMENT0,this.outputs[t]=e},detachOutput:function(e){for(var t in this.outputs)this.outputs[t]===e&&(this.outputs[t]=null)},bind:function(e,t){if(this.outputs)for(var r in this.outputs){var n=this.outputs[r];n&&t.attach(n,r)}t&&t.bind(e)},unbind:function(e,t){t.unbind(e)},render:function(e,t){var r=e.gl;if(t){this.bind(e,t);var n=e.getGLExtension("EXT_draw_buffers");if(n&&this.outputs){var a=[];for(var i in this.outputs)i=+i,i>=r.COLOR_ATTACHMENT0&&i<=r.COLOR_ATTACHMENT0+8&&a.push(i);n.drawBuffersEXT(a)}}this.trigger("beforerender",this,e);var o=this.clearDepth?r.DEPTH_BUFFER_BIT:0;if(r.depthMask(!0),this.clearColor){o=o|r.COLOR_BUFFER_BIT,r.colorMask(!0,!0,!0,!0);var s=this.clearColor;Array.isArray(s)&&r.clearColor(s[0],s[1],s[2],s[3])}r.clear(o),this.blendWithPrevious?(r.enable(r.BLEND),this.material.transparent=!0):(r.disable(r.BLEND),this.material.transparent=!1),this.renderQuad(e),this.trigger("afterrender",this,e),t&&this.unbind(e,t)},renderQuad:function(e){j$.material=this.material,e.renderPass([j$],mmt)},dispose:function(e){}});const sa=ymt,_mt=`#define SAMPLE_NUMBER 1024 #define PI 3.14159265358979 uniform sampler2D normalDistribution; uniform vec2 viewportSize : [512, 256]; const vec3 N = vec3(0.0, 0.0, 1.0); const float fSampleNumber = float(SAMPLE_NUMBER); vec3 importanceSampleNormal(float i, float roughness, vec3 N) { vec3 H = texture2D(normalDistribution, vec2(roughness, i)).rgb; vec3 upVector = abs(N.y) > 0.999 ? vec3(1.0, 0.0, 0.0) : vec3(0.0, 1.0, 0.0); vec3 tangentX = normalize(cross(N, upVector)); vec3 tangentZ = cross(N, tangentX); return normalize(tangentX * H.x + N * H.y + tangentZ * H.z); } float G_Smith(float roughness, float NoV, float NoL) { float k = roughness * roughness / 2.0; float G1V = NoV / (NoV * (1.0 - k) + k); float G1L = NoL / (NoL * (1.0 - k) + k); return G1L * G1V; } void main() { vec2 uv = gl_FragCoord.xy / viewportSize; float NoV = uv.x; float roughness = uv.y; vec3 V; V.x = sqrt(1.0 - NoV * NoV); V.y = 0.0; V.z = NoV; float A = 0.0; float B = 0.0; for (int i = 0; i < SAMPLE_NUMBER; i++) { vec3 H = importanceSampleNormal(float(i) / fSampleNumber, roughness, N); vec3 L = reflect(-V, H); float NoL = clamp(L.z, 0.0, 1.0); float NoH = clamp(H.z, 0.0, 1.0); float VoH = clamp(dot(V, H), 0.0, 1.0); if (NoL > 0.0) { float G = G_Smith(roughness, NoV, NoL); float G_Vis = G * VoH / (NoH * NoV); float Fc = pow(1.0 - VoH, 5.0); A += (1.0 - Fc) * G_Vis; B += Fc * G_Vis; } } gl_FragColor = vec4(vec2(A, B) / fSampleNumber, 0.0, 1.0); } `,bmt=`#define SHADER_NAME prefilter #define SAMPLE_NUMBER 1024 #define PI 3.14159265358979 uniform mat4 viewInverse : VIEWINVERSE; uniform samplerCube environmentMap; uniform sampler2D normalDistribution; uniform float roughness : 0.5; varying vec2 v_Texcoord; varying vec3 v_WorldPosition; @import clay.util.rgbm vec3 importanceSampleNormal(float i, float roughness, vec3 N) { vec3 H = texture2D(normalDistribution, vec2(roughness, i)).rgb; vec3 upVector = abs(N.y) > 0.999 ? vec3(1.0, 0.0, 0.0) : vec3(0.0, 1.0, 0.0); vec3 tangentX = normalize(cross(N, upVector)); vec3 tangentZ = cross(N, tangentX); return normalize(tangentX * H.x + N * H.y + tangentZ * H.z); } void main() { vec3 eyePos = viewInverse[3].xyz; vec3 V = normalize(v_WorldPosition - eyePos); vec3 N = V; vec3 prefilteredColor = vec3(0.0); float totalWeight = 0.0; float fMaxSampleNumber = float(SAMPLE_NUMBER); for (int i = 0; i < SAMPLE_NUMBER; i++) { vec3 H = importanceSampleNormal(float(i) / fMaxSampleNumber, roughness, N); vec3 L = reflect(-V, H); float NoL = clamp(dot(N, L), 0.0, 1.0); if (NoL > 0.0) { prefilteredColor += decodeHDR(textureCube(environmentMap, L)).rgb * NoL; totalWeight += NoL; } } gl_FragColor = encodeHDR(vec4(prefilteredColor / totalWeight, 1.0)); } `;var Ih={},_D=["px","nx","py","ny","pz","nz"];Ih.prefilterEnvironmentMap=function(e,t,r,n,a){(!a||!n)&&(n=Ih.generateNormalDistribution(),a=Ih.integrateBRDF(e,n)),r=r||{};var i=r.width||64,o=r.height||64,s=r.type||t.type,l=new I_({width:i,height:o,type:s,flipY:!1,mipmaps:[]});l.isPowerOfTwo()||console.warn("Width and height must be power of two to enable mipmap.");var u=Math.min(i,o),c=Math.log(u)/Math.log(2)+1,f=new as({shader:new nt({vertex:nt.source("clay.skybox.vertex"),fragment:bmt})});f.set("normalDistribution",n),r.encodeRGBM&&f.define("fragment","RGBM_ENCODE"),r.decodeRGBM&&f.define("fragment","RGBM_DECODE");var d=new Wf,h;if(t.textureType==="texture2D"){var v=new I_({width:i,height:o,type:s===$t.FLOAT?$t.HALF_FLOAT:s});Lh.panoramaToCubeMap(e,t,v,{encodeRGBM:r.decodeRGBM}),t=v}h=new R_({scene:d,material:f}),h.material.set("environmentMap",t);var p=new d4({texture:l});r.encodeRGBM&&(s=l.type=$t.UNSIGNED_BYTE);for(var g=new _r({width:i,height:o,type:s}),m=new Ua({depthBuffer:!1}),y=aa[s===$t.UNSIGNED_BYTE?"Uint8Array":"Float32Array"],_=0;_>>16)>>>0;f=((f&1431655765)<<1|(f&2863311530)>>>1)>>>0,f=((f&858993459)<<2|(f&3435973836)>>>2)>>>0,f=((f&252645135)<<4|(f&4042322160)>>>4)>>>0,f=(((f&16711935)<<8|(f&4278255360)>>>8)>>>0)/4294967296;var d=Math.sqrt((1-f)/(1+(u*u-1)*f));o[c]=d}for(var c=0;c65535?Uint32Array:Uint16Array,s=this.indices=new o(t*e*6),l,u,c,f,d,h,v,_=this.radius,p=this.phiStart,g=this.phiLength,m=this.thetaStart,y=this.thetaLength,_=this.radius,w=[],x=[],S=0,T=1/_;for(v=0;v<=e;v++)for(h=0;h<=t;h++)f=h/t,d=v/e,l=-_*Math.cos(p+f*g)*Math.sin(m+d*y),u=_*Math.cos(m+d*y),c=_*Math.sin(p+f*g)*Math.sin(m+d*y),w[0]=l,w[1]=u,w[2]=c,x[0]=f,x[1]=d,r.set(S,w),n.set(S,x),w[0]*=T,w[1]*=T,w[2]*=T,a.set(S,w),S++;var A,C,M,E,D=t+1,P=0;for(v=0;v=0&&l.splice(f,1)}),l.push(u),this.__zr&&this.__zr.animation.addAnimator(u),u},stopAnimation:function(e){this._animators=this._animators||[];for(var t=this._animators,r=t.length,n=0;n 1e-4) { skinMatrixWS += getSkinMatrix(joint.y) * weight.y; } if (weight.z > 1e-4) { skinMatrixWS += getSkinMatrix(joint.z) * weight.z; } float weightW = 1.0-weight.x-weight.y-weight.z; if (weightW > 1e-4) { skinMatrixWS += getSkinMatrix(joint.w) * weightW; } @end @export clay.chunk.instancing_header #ifdef INSTANCING attribute vec4 instanceMat1; attribute vec4 instanceMat2; attribute vec4 instanceMat3; #endif @end @export clay.chunk.instancing_matrix mat4 instanceMat = mat4( vec4(instanceMat1.xyz, 0.0), vec4(instanceMat2.xyz, 0.0), vec4(instanceMat3.xyz, 0.0), vec4(instanceMat1.w, instanceMat2.w, instanceMat3.w, 1.0) ); @end @export clay.util.parallax_correct vec3 parallaxCorrect(in vec3 dir, in vec3 pos, in vec3 boxMin, in vec3 boxMax) { vec3 first = (boxMax - pos) / dir; vec3 second = (boxMin - pos) / dir; vec3 further = max(first, second); float dist = min(further.x, min(further.y, further.z)); vec3 fixedPos = pos + dir * dist; vec3 boxCenter = (boxMax + boxMin) * 0.5; return normalize(fixedPos - boxCenter); } @end @export clay.util.clamp_sample vec4 clampSample(const in sampler2D texture, const in vec2 coord) { #ifdef STEREO float eye = step(0.5, coord.x) * 0.5; vec2 coordClamped = clamp(coord, vec2(eye, 0.0), vec2(0.5 + eye, 1.0)); #else vec2 coordClamped = clamp(coord, vec2(0.0), vec2(1.0)); #endif return texture2D(texture, coordClamped); } @end @export clay.util.ACES vec3 ACESToneMapping(vec3 color) { const float A = 2.51; const float B = 0.03; const float C = 2.43; const float D = 0.59; const float E = 0.14; return (color * (A * color + B)) / (color * (C * color + D) + E); } @end`,Ymt=` @export ecgl.common.transformUniforms uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; uniform mat4 worldInverseTranspose : WORLDINVERSETRANSPOSE; uniform mat4 world : WORLD; @end @export ecgl.common.attributes attribute vec3 position : POSITION; attribute vec2 texcoord : TEXCOORD_0; attribute vec3 normal : NORMAL; @end @export ecgl.common.uv.header uniform vec2 uvRepeat : [1.0, 1.0]; uniform vec2 uvOffset : [0.0, 0.0]; uniform vec2 detailUvRepeat : [1.0, 1.0]; uniform vec2 detailUvOffset : [0.0, 0.0]; varying vec2 v_Texcoord; varying vec2 v_DetailTexcoord; @end @export ecgl.common.uv.main v_Texcoord = texcoord * uvRepeat + uvOffset; v_DetailTexcoord = texcoord * detailUvRepeat + detailUvOffset; @end @export ecgl.common.uv.fragmentHeader varying vec2 v_Texcoord; varying vec2 v_DetailTexcoord; @end @export ecgl.common.albedo.main vec4 albedoTexel = vec4(1.0); #ifdef DIFFUSEMAP_ENABLED albedoTexel = texture2D(diffuseMap, v_Texcoord); #ifdef SRGB_DECODE albedoTexel = sRGBToLinear(albedoTexel); #endif #endif #ifdef DETAILMAP_ENABLED vec4 detailTexel = texture2D(detailMap, v_DetailTexcoord); #ifdef SRGB_DECODE detailTexel = sRGBToLinear(detailTexel); #endif albedoTexel.rgb = mix(albedoTexel.rgb, detailTexel.rgb, detailTexel.a); albedoTexel.a = detailTexel.a + (1.0 - detailTexel.a) * albedoTexel.a; #endif @end @export ecgl.common.wireframe.vertexHeader #ifdef WIREFRAME_QUAD attribute vec4 barycentric; varying vec4 v_Barycentric; #elif defined(WIREFRAME_TRIANGLE) attribute vec3 barycentric; varying vec3 v_Barycentric; #endif @end @export ecgl.common.wireframe.vertexMain #if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE) v_Barycentric = barycentric; #endif @end @export ecgl.common.wireframe.fragmentHeader uniform float wireframeLineWidth : 1; uniform vec4 wireframeLineColor: [0, 0, 0, 0.5]; #ifdef WIREFRAME_QUAD varying vec4 v_Barycentric; float edgeFactor () { vec4 d = fwidth(v_Barycentric); vec4 a4 = smoothstep(vec4(0.0), d * wireframeLineWidth, v_Barycentric); return min(min(min(a4.x, a4.y), a4.z), a4.w); } #elif defined(WIREFRAME_TRIANGLE) varying vec3 v_Barycentric; float edgeFactor () { vec3 d = fwidth(v_Barycentric); vec3 a3 = smoothstep(vec3(0.0), d * wireframeLineWidth, v_Barycentric); return min(min(a3.x, a3.y), a3.z); } #endif @end @export ecgl.common.wireframe.fragmentMain #if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE) if (wireframeLineWidth > 0.) { vec4 lineColor = wireframeLineColor; #ifdef SRGB_DECODE lineColor = sRGBToLinear(lineColor); #endif gl_FragColor.rgb = mix(gl_FragColor.rgb, lineColor.rgb, (1.0 - edgeFactor()) * lineColor.a); } #endif @end @export ecgl.common.bumpMap.header #ifdef BUMPMAP_ENABLED uniform sampler2D bumpMap; uniform float bumpScale : 1.0; vec3 bumpNormal(vec3 surfPos, vec3 surfNormal, vec3 baseNormal) { vec2 dSTdx = dFdx(v_Texcoord); vec2 dSTdy = dFdy(v_Texcoord); float Hll = bumpScale * texture2D(bumpMap, v_Texcoord).x; float dHx = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdx).x - Hll; float dHy = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdy).x - Hll; vec3 vSigmaX = dFdx(surfPos); vec3 vSigmaY = dFdy(surfPos); vec3 vN = surfNormal; vec3 R1 = cross(vSigmaY, vN); vec3 R2 = cross(vN, vSigmaX); float fDet = dot(vSigmaX, R1); vec3 vGrad = sign(fDet) * (dHx * R1 + dHy * R2); return normalize(abs(fDet) * baseNormal - vGrad); } #endif @end @export ecgl.common.normalMap.vertexHeader #ifdef NORMALMAP_ENABLED attribute vec4 tangent : TANGENT; varying vec3 v_Tangent; varying vec3 v_Bitangent; #endif @end @export ecgl.common.normalMap.vertexMain #ifdef NORMALMAP_ENABLED if (dot(tangent, tangent) > 0.0) { v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz); v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w); } #endif @end @export ecgl.common.normalMap.fragmentHeader #ifdef NORMALMAP_ENABLED uniform sampler2D normalMap; varying vec3 v_Tangent; varying vec3 v_Bitangent; #endif @end @export ecgl.common.normalMap.fragmentMain #ifdef NORMALMAP_ENABLED if (dot(v_Tangent, v_Tangent) > 0.0) { vec3 normalTexel = texture2D(normalMap, v_DetailTexcoord).xyz; if (dot(normalTexel, normalTexel) > 0.0) { N = normalTexel * 2.0 - 1.0; mat3 tbn = mat3(v_Tangent, v_Bitangent, v_Normal); N = normalize(tbn * N); } } #endif @end @export ecgl.common.vertexAnimation.header #ifdef VERTEX_ANIMATION attribute vec3 prevPosition; attribute vec3 prevNormal; uniform float percent; #endif @end @export ecgl.common.vertexAnimation.main #ifdef VERTEX_ANIMATION vec3 pos = mix(prevPosition, position, percent); vec3 norm = mix(prevNormal, normal, percent); #else vec3 pos = position; vec3 norm = normal; #endif @end @export ecgl.common.ssaoMap.header #ifdef SSAOMAP_ENABLED uniform sampler2D ssaoMap; uniform vec4 viewport : VIEWPORT; #endif @end @export ecgl.common.ssaoMap.main float ao = 1.0; #ifdef SSAOMAP_ENABLED ao = texture2D(ssaoMap, (gl_FragCoord.xy - viewport.xy) / viewport.zw).r; #endif @end @export ecgl.common.diffuseLayer.header #if (LAYER_DIFFUSEMAP_COUNT > 0) uniform float layerDiffuseIntensity[LAYER_DIFFUSEMAP_COUNT]; uniform sampler2D layerDiffuseMap[LAYER_DIFFUSEMAP_COUNT]; #endif @end @export ecgl.common.emissiveLayer.header #if (LAYER_EMISSIVEMAP_COUNT > 0) uniform float layerEmissionIntensity[LAYER_EMISSIVEMAP_COUNT]; uniform sampler2D layerEmissiveMap[LAYER_EMISSIVEMAP_COUNT]; #endif @end @export ecgl.common.layers.header @import ecgl.common.diffuseLayer.header @import ecgl.common.emissiveLayer.header @end @export ecgl.common.diffuseLayer.main #if (LAYER_DIFFUSEMAP_COUNT > 0) for (int _idx_ = 0; _idx_ < LAYER_DIFFUSEMAP_COUNT; _idx_++) {{ float intensity = layerDiffuseIntensity[_idx_]; vec4 texel2 = texture2D(layerDiffuseMap[_idx_], v_Texcoord); #ifdef SRGB_DECODE texel2 = sRGBToLinear(texel2); #endif albedoTexel.rgb = mix(albedoTexel.rgb, texel2.rgb * intensity, texel2.a); albedoTexel.a = texel2.a + (1.0 - texel2.a) * albedoTexel.a; }} #endif @end @export ecgl.common.emissiveLayer.main #if (LAYER_EMISSIVEMAP_COUNT > 0) for (int _idx_ = 0; _idx_ < LAYER_EMISSIVEMAP_COUNT; _idx_++) {{ vec4 texel2 = texture2D(layerEmissiveMap[_idx_], v_Texcoord) * layerEmissionIntensity[_idx_]; #ifdef SRGB_DECODE texel2 = sRGBToLinear(texel2); #endif float intensity = layerEmissionIntensity[_idx_]; gl_FragColor.rgb += texel2.rgb * texel2.a * intensity; }} #endif @end `,jmt=`@export ecgl.color.vertex uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; @import ecgl.common.uv.header attribute vec2 texcoord : TEXCOORD_0; attribute vec3 position: POSITION; @import ecgl.common.wireframe.vertexHeader #ifdef VERTEX_COLOR attribute vec4 a_Color : COLOR; varying vec4 v_Color; #endif #ifdef VERTEX_ANIMATION attribute vec3 prevPosition; uniform float percent : 1.0; #endif #ifdef ATMOSPHERE_ENABLED attribute vec3 normal: NORMAL; uniform mat4 worldInverseTranspose : WORLDINVERSETRANSPOSE; varying vec3 v_Normal; #endif void main() { #ifdef VERTEX_ANIMATION vec3 pos = mix(prevPosition, position, percent); #else vec3 pos = position; #endif gl_Position = worldViewProjection * vec4(pos, 1.0); @import ecgl.common.uv.main #ifdef VERTEX_COLOR v_Color = a_Color; #endif #ifdef ATMOSPHERE_ENABLED v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz); #endif @import ecgl.common.wireframe.vertexMain } @end @export ecgl.color.fragment #define LAYER_DIFFUSEMAP_COUNT 0 #define LAYER_EMISSIVEMAP_COUNT 0 uniform sampler2D diffuseMap; uniform sampler2D detailMap; uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; #ifdef ATMOSPHERE_ENABLED uniform mat4 viewTranspose: VIEWTRANSPOSE; uniform vec3 glowColor; uniform float glowPower; varying vec3 v_Normal; #endif #ifdef VERTEX_COLOR varying vec4 v_Color; #endif @import ecgl.common.layers.header @import ecgl.common.uv.fragmentHeader @import ecgl.common.wireframe.fragmentHeader @import clay.util.srgb void main() { #ifdef SRGB_DECODE gl_FragColor = sRGBToLinear(color); #else gl_FragColor = color; #endif #ifdef VERTEX_COLOR gl_FragColor *= v_Color; #endif @import ecgl.common.albedo.main @import ecgl.common.diffuseLayer.main gl_FragColor *= albedoTexel; #ifdef ATMOSPHERE_ENABLED float atmoIntensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower); gl_FragColor.rgb += glowColor * atmoIntensity; #endif @import ecgl.common.emissiveLayer.main @import ecgl.common.wireframe.fragmentMain } @end`,Kmt=`/** * http: */ @export ecgl.lambert.vertex @import ecgl.common.transformUniforms @import ecgl.common.uv.header @import ecgl.common.attributes @import ecgl.common.wireframe.vertexHeader #ifdef VERTEX_COLOR attribute vec4 a_Color : COLOR; varying vec4 v_Color; #endif @import ecgl.common.vertexAnimation.header varying vec3 v_Normal; varying vec3 v_WorldPosition; void main() { @import ecgl.common.uv.main @import ecgl.common.vertexAnimation.main gl_Position = worldViewProjection * vec4(pos, 1.0); v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz); v_WorldPosition = (world * vec4(pos, 1.0)).xyz; #ifdef VERTEX_COLOR v_Color = a_Color; #endif @import ecgl.common.wireframe.vertexMain } @end @export ecgl.lambert.fragment #define LAYER_DIFFUSEMAP_COUNT 0 #define LAYER_EMISSIVEMAP_COUNT 0 #define NORMAL_UP_AXIS 1 #define NORMAL_FRONT_AXIS 2 @import ecgl.common.uv.fragmentHeader varying vec3 v_Normal; varying vec3 v_WorldPosition; uniform sampler2D diffuseMap; uniform sampler2D detailMap; @import ecgl.common.layers.header uniform float emissionIntensity: 1.0; uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; uniform mat4 viewInverse : VIEWINVERSE; #ifdef ATMOSPHERE_ENABLED uniform mat4 viewTranspose: VIEWTRANSPOSE; uniform vec3 glowColor; uniform float glowPower; #endif #ifdef AMBIENT_LIGHT_COUNT @import clay.header.ambient_light #endif #ifdef AMBIENT_SH_LIGHT_COUNT @import clay.header.ambient_sh_light #endif #ifdef DIRECTIONAL_LIGHT_COUNT @import clay.header.directional_light #endif #ifdef VERTEX_COLOR varying vec4 v_Color; #endif @import ecgl.common.ssaoMap.header @import ecgl.common.bumpMap.header @import clay.util.srgb @import ecgl.common.wireframe.fragmentHeader @import clay.plugin.compute_shadow_map void main() { #ifdef SRGB_DECODE gl_FragColor = sRGBToLinear(color); #else gl_FragColor = color; #endif #ifdef VERTEX_COLOR #ifdef SRGB_DECODE gl_FragColor *= sRGBToLinear(v_Color); #else gl_FragColor *= v_Color; #endif #endif @import ecgl.common.albedo.main @import ecgl.common.diffuseLayer.main gl_FragColor *= albedoTexel; vec3 N = v_Normal; #ifdef DOUBLE_SIDED vec3 eyePos = viewInverse[3].xyz; vec3 V = normalize(eyePos - v_WorldPosition); if (dot(N, V) < 0.0) { N = -N; } #endif float ambientFactor = 1.0; #ifdef BUMPMAP_ENABLED N = bumpNormal(v_WorldPosition, v_Normal, N); ambientFactor = dot(v_Normal, N); #endif vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]); vec3 diffuseColor = vec3(0.0, 0.0, 0.0); @import ecgl.common.ssaoMap.main #ifdef AMBIENT_LIGHT_COUNT for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++) { diffuseColor += ambientLightColor[i] * ambientFactor * ao; } #endif #ifdef AMBIENT_SH_LIGHT_COUNT for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++) {{ diffuseColor += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao; }} #endif #ifdef DIRECTIONAL_LIGHT_COUNT #if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT]; if(shadowEnabled) { computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir); } #endif for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++) { vec3 lightDirection = -directionalLightDirection[i]; vec3 lightColor = directionalLightColor[i]; float shadowContrib = 1.0; #if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) if (shadowEnabled) { shadowContrib = shadowContribsDir[i]; } #endif float ndl = dot(N, normalize(lightDirection)) * shadowContrib; diffuseColor += lightColor * clamp(ndl, 0.0, 1.0); } #endif gl_FragColor.rgb *= diffuseColor; #ifdef ATMOSPHERE_ENABLED float atmoIntensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower); gl_FragColor.rgb += glowColor * atmoIntensity; #endif @import ecgl.common.emissiveLayer.main @import ecgl.common.wireframe.fragmentMain } @end`,Xmt=`@export ecgl.realistic.vertex @import ecgl.common.transformUniforms @import ecgl.common.uv.header @import ecgl.common.attributes @import ecgl.common.wireframe.vertexHeader #ifdef VERTEX_COLOR attribute vec4 a_Color : COLOR; varying vec4 v_Color; #endif #ifdef NORMALMAP_ENABLED attribute vec4 tangent : TANGENT; varying vec3 v_Tangent; varying vec3 v_Bitangent; #endif @import ecgl.common.vertexAnimation.header varying vec3 v_Normal; varying vec3 v_WorldPosition; void main() { @import ecgl.common.uv.main @import ecgl.common.vertexAnimation.main gl_Position = worldViewProjection * vec4(pos, 1.0); v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz); v_WorldPosition = (world * vec4(pos, 1.0)).xyz; #ifdef VERTEX_COLOR v_Color = a_Color; #endif #ifdef NORMALMAP_ENABLED v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz); v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w); #endif @import ecgl.common.wireframe.vertexMain } @end @export ecgl.realistic.fragment #define LAYER_DIFFUSEMAP_COUNT 0 #define LAYER_EMISSIVEMAP_COUNT 0 #define PI 3.14159265358979 #define ROUGHNESS_CHANEL 0 #define METALNESS_CHANEL 1 #define NORMAL_UP_AXIS 1 #define NORMAL_FRONT_AXIS 2 #ifdef VERTEX_COLOR varying vec4 v_Color; #endif @import ecgl.common.uv.fragmentHeader varying vec3 v_Normal; varying vec3 v_WorldPosition; uniform sampler2D diffuseMap; uniform sampler2D detailMap; uniform sampler2D metalnessMap; uniform sampler2D roughnessMap; @import ecgl.common.layers.header uniform float emissionIntensity: 1.0; uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; uniform float metalness : 0.0; uniform float roughness : 0.5; uniform mat4 viewInverse : VIEWINVERSE; #ifdef ATMOSPHERE_ENABLED uniform mat4 viewTranspose: VIEWTRANSPOSE; uniform vec3 glowColor; uniform float glowPower; #endif #ifdef AMBIENT_LIGHT_COUNT @import clay.header.ambient_light #endif #ifdef AMBIENT_SH_LIGHT_COUNT @import clay.header.ambient_sh_light #endif #ifdef AMBIENT_CUBEMAP_LIGHT_COUNT @import clay.header.ambient_cubemap_light #endif #ifdef DIRECTIONAL_LIGHT_COUNT @import clay.header.directional_light #endif @import ecgl.common.normalMap.fragmentHeader @import ecgl.common.ssaoMap.header @import ecgl.common.bumpMap.header @import clay.util.srgb @import clay.util.rgbm @import ecgl.common.wireframe.fragmentHeader @import clay.plugin.compute_shadow_map vec3 F_Schlick(float ndv, vec3 spec) { return spec + (1.0 - spec) * pow(1.0 - ndv, 5.0); } float D_Phong(float g, float ndh) { float a = pow(8192.0, g); return (a + 2.0) / 8.0 * pow(ndh, a); } void main() { vec4 albedoColor = color; vec3 eyePos = viewInverse[3].xyz; vec3 V = normalize(eyePos - v_WorldPosition); #ifdef VERTEX_COLOR #ifdef SRGB_DECODE albedoColor *= sRGBToLinear(v_Color); #else albedoColor *= v_Color; #endif #endif @import ecgl.common.albedo.main @import ecgl.common.diffuseLayer.main albedoColor *= albedoTexel; float m = metalness; #ifdef METALNESSMAP_ENABLED float m2 = texture2D(metalnessMap, v_DetailTexcoord)[METALNESS_CHANEL]; m = clamp(m2 + (m - 0.5) * 2.0, 0.0, 1.0); #endif vec3 baseColor = albedoColor.rgb; albedoColor.rgb = baseColor * (1.0 - m); vec3 specFactor = mix(vec3(0.04), baseColor, m); float g = 1.0 - roughness; #ifdef ROUGHNESSMAP_ENABLED float g2 = 1.0 - texture2D(roughnessMap, v_DetailTexcoord)[ROUGHNESS_CHANEL]; g = clamp(g2 + (g - 0.5) * 2.0, 0.0, 1.0); #endif vec3 N = v_Normal; #ifdef DOUBLE_SIDED if (dot(N, V) < 0.0) { N = -N; } #endif float ambientFactor = 1.0; #ifdef BUMPMAP_ENABLED N = bumpNormal(v_WorldPosition, v_Normal, N); ambientFactor = dot(v_Normal, N); #endif @import ecgl.common.normalMap.fragmentMain vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]); vec3 diffuseTerm = vec3(0.0); vec3 specularTerm = vec3(0.0); float ndv = clamp(dot(N, V), 0.0, 1.0); vec3 fresnelTerm = F_Schlick(ndv, specFactor); @import ecgl.common.ssaoMap.main #ifdef AMBIENT_LIGHT_COUNT for(int _idx_ = 0; _idx_ < AMBIENT_LIGHT_COUNT; _idx_++) {{ diffuseTerm += ambientLightColor[_idx_] * ambientFactor * ao; }} #endif #ifdef AMBIENT_SH_LIGHT_COUNT for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++) {{ diffuseTerm += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao; }} #endif #ifdef DIRECTIONAL_LIGHT_COUNT #if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT]; if(shadowEnabled) { computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir); } #endif for(int _idx_ = 0; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{ vec3 L = -directionalLightDirection[_idx_]; vec3 lc = directionalLightColor[_idx_]; vec3 H = normalize(L + V); float ndl = clamp(dot(N, normalize(L)), 0.0, 1.0); float ndh = clamp(dot(N, H), 0.0, 1.0); float shadowContrib = 1.0; #if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) if (shadowEnabled) { shadowContrib = shadowContribsDir[_idx_]; } #endif vec3 li = lc * ndl * shadowContrib; diffuseTerm += li; specularTerm += li * fresnelTerm * D_Phong(g, ndh); }} #endif #ifdef AMBIENT_CUBEMAP_LIGHT_COUNT vec3 L = reflect(-V, N); L = vec3(L.x, L[NORMAL_UP_AXIS], L[NORMAL_FRONT_AXIS]); float rough2 = clamp(1.0 - g, 0.0, 1.0); float bias2 = rough2 * 5.0; vec2 brdfParam2 = texture2D(ambientCubemapLightBRDFLookup[0], vec2(rough2, ndv)).xy; vec3 envWeight2 = specFactor * brdfParam2.x + brdfParam2.y; vec3 envTexel2; for(int _idx_ = 0; _idx_ < AMBIENT_CUBEMAP_LIGHT_COUNT; _idx_++) {{ envTexel2 = RGBMDecode(textureCubeLodEXT(ambientCubemapLightCubemap[_idx_], L, bias2), 8.12); specularTerm += ambientCubemapLightColor[_idx_] * envTexel2 * envWeight2 * ao; }} #endif gl_FragColor.rgb = albedoColor.rgb * diffuseTerm + specularTerm; gl_FragColor.a = albedoColor.a; #ifdef ATMOSPHERE_ENABLED float atmoIntensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower); gl_FragColor.rgb += glowColor * atmoIntensity; #endif #ifdef SRGB_ENCODE gl_FragColor = linearTosRGB(gl_FragColor); #endif @import ecgl.common.emissiveLayer.main @import ecgl.common.wireframe.fragmentMain } @end`,Zmt=`@export ecgl.hatching.vertex @import ecgl.realistic.vertex @end @export ecgl.hatching.fragment #define NORMAL_UP_AXIS 1 #define NORMAL_FRONT_AXIS 2 @import ecgl.common.uv.fragmentHeader varying vec3 v_Normal; varying vec3 v_WorldPosition; uniform vec4 color : [0.0, 0.0, 0.0, 1.0]; uniform vec4 paperColor : [1.0, 1.0, 1.0, 1.0]; uniform mat4 viewInverse : VIEWINVERSE; #ifdef AMBIENT_LIGHT_COUNT @import clay.header.ambient_light #endif #ifdef AMBIENT_SH_LIGHT_COUNT @import clay.header.ambient_sh_light #endif #ifdef DIRECTIONAL_LIGHT_COUNT @import clay.header.directional_light #endif #ifdef VERTEX_COLOR varying vec4 v_Color; #endif @import ecgl.common.ssaoMap.header @import ecgl.common.bumpMap.header @import clay.util.srgb @import ecgl.common.wireframe.fragmentHeader @import clay.plugin.compute_shadow_map uniform sampler2D hatch1; uniform sampler2D hatch2; uniform sampler2D hatch3; uniform sampler2D hatch4; uniform sampler2D hatch5; uniform sampler2D hatch6; float shade(in float tone) { vec4 c = vec4(1. ,1., 1., 1.); float step = 1. / 6.; vec2 uv = v_DetailTexcoord; if (tone <= step / 2.0) { c = mix(vec4(0.), texture2D(hatch6, uv), 12. * tone); } else if (tone <= step) { c = mix(texture2D(hatch6, uv), texture2D(hatch5, uv), 6. * tone); } if(tone > step && tone <= 2. * step){ c = mix(texture2D(hatch5, uv), texture2D(hatch4, uv) , 6. * (tone - step)); } if(tone > 2. * step && tone <= 3. * step){ c = mix(texture2D(hatch4, uv), texture2D(hatch3, uv), 6. * (tone - 2. * step)); } if(tone > 3. * step && tone <= 4. * step){ c = mix(texture2D(hatch3, uv), texture2D(hatch2, uv), 6. * (tone - 3. * step)); } if(tone > 4. * step && tone <= 5. * step){ c = mix(texture2D(hatch2, uv), texture2D(hatch1, uv), 6. * (tone - 4. * step)); } if(tone > 5. * step){ c = mix(texture2D(hatch1, uv), vec4(1.), 6. * (tone - 5. * step)); } return c.r; } const vec3 w = vec3(0.2125, 0.7154, 0.0721); void main() { #ifdef SRGB_DECODE vec4 inkColor = sRGBToLinear(color); #else vec4 inkColor = color; #endif #ifdef VERTEX_COLOR #ifdef SRGB_DECODE inkColor *= sRGBToLinear(v_Color); #else inkColor *= v_Color; #endif #endif vec3 N = v_Normal; #ifdef DOUBLE_SIDED vec3 eyePos = viewInverse[3].xyz; vec3 V = normalize(eyePos - v_WorldPosition); if (dot(N, V) < 0.0) { N = -N; } #endif float tone = 0.0; float ambientFactor = 1.0; #ifdef BUMPMAP_ENABLED N = bumpNormal(v_WorldPosition, v_Normal, N); ambientFactor = dot(v_Normal, N); #endif vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]); @import ecgl.common.ssaoMap.main #ifdef AMBIENT_LIGHT_COUNT for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++) { tone += dot(ambientLightColor[i], w) * ambientFactor * ao; } #endif #ifdef AMBIENT_SH_LIGHT_COUNT for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++) {{ tone += dot(calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_], w) * ao; }} #endif #ifdef DIRECTIONAL_LIGHT_COUNT #if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT]; if(shadowEnabled) { computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir); } #endif for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++) { vec3 lightDirection = -directionalLightDirection[i]; float lightTone = dot(directionalLightColor[i], w); float shadowContrib = 1.0; #if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) if (shadowEnabled) { shadowContrib = shadowContribsDir[i]; } #endif float ndl = dot(N, normalize(lightDirection)) * shadowContrib; tone += lightTone * clamp(ndl, 0.0, 1.0); } #endif gl_FragColor = mix(inkColor, paperColor, shade(clamp(tone, 0.0, 1.0))); } @end `,qmt=`@export ecgl.sm.depth.vertex uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; attribute vec3 position : POSITION; attribute vec2 texcoord : TEXCOORD_0; #ifdef VERTEX_ANIMATION attribute vec3 prevPosition; uniform float percent : 1.0; #endif varying vec4 v_ViewPosition; varying vec2 v_Texcoord; void main(){ #ifdef VERTEX_ANIMATION vec3 pos = mix(prevPosition, position, percent); #else vec3 pos = position; #endif v_ViewPosition = worldViewProjection * vec4(pos, 1.0); gl_Position = v_ViewPosition; v_Texcoord = texcoord; } @end @export ecgl.sm.depth.fragment @import clay.sm.depth.fragment @end`;Object.assign(Nl.prototype,Wmt);nt.import(rie);nt.import(Wae);nt.import(Ymt);nt.import(jmt);nt.import(Kmt);nt.import(Xmt);nt.import(Zmt);nt.import(qmt);function Qmt(e){return!e||e==="none"}function nie(e){return e instanceof HTMLCanvasElement||e instanceof HTMLImageElement||e instanceof Image}function Jmt(e){return e.getZr&&e.setOption}var eyt=Wf.prototype.addToScene,tyt=Wf.prototype.removeFromScene;Wf.prototype.addToScene=function(e){if(eyt.call(this,e),this.__zr){var t=this.__zr;e.traverse(function(r){r.__zr=t,r.addAnimatorsToZr&&r.addAnimatorsToZr(t)})}};Wf.prototype.removeFromScene=function(e){tyt.call(this,e),e.traverse(function(t){var r=t.__zr;t.__zr=null,r&&t.removeAnimatorsFromZr&&t.removeAnimatorsFromZr(r)})};as.prototype.setTextureImage=function(e,t,r,n){if(this.shader){var a=r.getZr(),i=this,o;return i.autoUpdateTextureStatus=!1,i.disableTexture(e),Qmt(t)||(o=rr.loadTexture(t,r,n,function(s){i.enableTexture(e),a&&a.refresh()}),i.set(e,o)),o}};var rr={};rr.Renderer=f0;rr.Node=Nl;rr.Mesh=dh;rr.Shader=nt;rr.Material=as;rr.Texture=$t;rr.Texture2D=_r;rr.Geometry=Hr;rr.SphereGeometry=Lmt;rr.PlaneGeometry=zT;rr.CubeGeometry=eie;rr.AmbientLight=Rmt;rr.DirectionalLight=kmt;rr.PointLight=Bmt;rr.SpotLight=Vmt;rr.PerspectiveCamera=Sa;rr.OrthographicCamera=Ag;rr.Vector2=mo;rr.Vector3=mt;rr.Vector4=zmt;rr.Quaternion=Yae;rr.Matrix2=Hmt;rr.Matrix2d=Gmt;rr.Matrix3=Umt;rr.Matrix4=Bt;rr.Plane=qae;rr.Ray=A2;rr.BoundingBox=Ti;rr.Frustum=c4;var Mw=null;function ryt(){return Mw!==null||(Mw=Lh.createBlank("rgba(255,255,255,0)").image),Mw}function K$(e){return Math.pow(2,Math.round(Math.log(e)/Math.LN2))}function X$(e){if((e.wrapS===$t.REPEAT||e.wrapT===$t.REPEAT)&&e.image){var t=K$(e.width),r=K$(e.height);if(t!==e.width||r!==e.height){var n=document.createElement("canvas");n.width=t,n.height=r;var a=n.getContext("2d");a.drawImage(e.image,0,0,t,r),e.image=n}}}rr.loadTexture=function(e,t,r,n){typeof r=="function"&&(n=r,r={}),r=r||{};for(var a=Object.keys(r).sort(),i="",o=0;o3?t[3]=e[3]:t[3]=1,t):(t=Za(e||"#000",t)||[0,0,0,0],t[0]/=255,t[1]/=255,t[2]/=255,t)};rr.directionFromAlphaBeta=function(e,t){var r=e/180*Math.PI+Math.PI/2,n=-t/180*Math.PI+Math.PI/2,a=[],i=Math.sin(r);return a[0]=i*Math.cos(n),a[1]=-Math.cos(r),a[2]=i*Math.sin(n),a};rr.getShadowResolution=function(e){var t=1024;switch(e){case"low":t=512;break;case"medium":break;case"high":t=2048;break;case"ultra":t=4096;break}return t};rr.COMMON_SHADERS=["lambert","color","realistic","hatching","shadow"];rr.createShader=function(e){e==="ecgl.shadow"&&(e="ecgl.displayShadow");var t=nt.source(e+".vertex"),r=nt.source(e+".fragment");t||console.error("Vertex shader of '%s' not exits",e),r||console.error("Fragment shader of '%s' not exits",e);var n=new nt(t,r);return n.name=e,n};rr.createMaterial=function(e,t){t instanceof Array||(t=[t]);var r=rr.createShader(e),n=new as({shader:r});return t.forEach(function(a){typeof a=="string"&&n.define(a)}),n};rr.setMaterialFromModel=function(e,t,r,n){t.autoUpdateTextureStatus=!1;var a=r.getModel(e+"Material"),i=a.get("detailTexture"),o=Sr.firstNotNull(a.get("textureTiling"),1),s=Sr.firstNotNull(a.get("textureOffset"),0);typeof o=="number"&&(o=[o,o]),typeof s=="number"&&(s=[s,s]);var l=o[0]>1||o[1]>1?rr.Texture.REPEAT:rr.Texture.CLAMP_TO_EDGE,u={anisotropic:8,wrapS:l,wrapT:l};if(e==="realistic"){var c=a.get("roughness"),f=a.get("metalness");f!=null?isNaN(f)&&(t.setTextureImage("metalnessMap",f,n,u),f=Sr.firstNotNull(a.get("metalnessAdjust"),.5)):f=0,c!=null?isNaN(c)&&(t.setTextureImage("roughnessMap",c,n,u),c=Sr.firstNotNull(a.get("roughnessAdjust"),.5)):c=.5;var d=a.get("normalTexture");t.setTextureImage("detailMap",i,n,u),t.setTextureImage("normalMap",d,n,u),t.set({roughness:c,metalness:f,detailUvRepeat:o,detailUvOffset:s})}else if(e==="lambert")t.setTextureImage("detailMap",i,n,u),t.set({detailUvRepeat:o,detailUvOffset:s});else if(e==="color")t.setTextureImage("detailMap",i,n,u),t.set({detailUvRepeat:o,detailUvOffset:s});else if(e==="hatching"){var h=a.get("hatchingTextures")||[];h.length<6;for(var v=0;v<6;v++)t.setTextureImage("hatch"+(v+1),h[v],n,{anisotropic:8,wrapS:rr.Texture.REPEAT,wrapT:rr.Texture.REPEAT});t.set({detailUvRepeat:o,detailUvOffset:s})}};rr.updateVertexAnimation=function(e,t,r,n){var a=n.get("animation"),i=n.get("animationDurationUpdate"),o=n.get("animationEasingUpdate"),s=r.shadowDepthMaterial;if(a&&t&&i>0&&t.geometry.vertexCount===r.geometry.vertexCount){r.material.define("vertex","VERTEX_ANIMATION"),r.ignorePreZ=!0,s&&s.define("vertex","VERTEX_ANIMATION");for(var l=0;l=0&&this._viewsToDispose.splice(t,1),this.views.push(e),e.layer=this;var r=this.zr;e.scene.traverse(function(n){n.__zr=r,n.addAnimatorsToZr&&n.addAnimatorsToZr(r)})}};function aie(e){var t=e.__zr;e.__zr=null,t&&e.removeAnimatorsFromZr&&e.removeAnimatorsFromZr(t)}pn.prototype.removeView=function(e){if(e.layer===this){var t=this.views.indexOf(e);t>=0&&(this.views.splice(t,1),e.scene.traverse(aie,this),e.layer=null,this._viewsToDispose.push(e))}};pn.prototype.removeViewsAll=function(){this.views.forEach(function(e){e.scene.traverse(aie,this),e.layer=null,this._viewsToDispose.push(e)},this),this.views.length=0};pn.prototype.resize=function(e,t){var r=this.renderer;r.resize(e,t)};pn.prototype.clear=function(){var e=this.renderer.gl,t=this._backgroundColor||[0,0,0,0];e.clearColor(t[0],t[1],t[2],t[3]),e.depthMask(!0),e.colorMask(!0,!0,!0,!0),e.clear(e.DEPTH_BUFFER_BIT|e.COLOR_BUFFER_BIT)};pn.prototype.clearDepth=function(){var e=this.renderer.gl;e.clear(e.DEPTH_BUFFER_BIT)};pn.prototype.clearColor=function(){var e=this.renderer.gl;e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT)};pn.prototype.needsRefresh=function(){this.zr.refresh()};pn.prototype.refresh=function(e){this._backgroundColor=e?ue.parseColor(e):[0,0,0,0],this.renderer.clearColor=this._backgroundColor;for(var t=0;t20)){e=e.event;var n=this.pickObject(e.offsetX,e.offsetY);n&&(this._dispatchEvent(e.type,e,n),this._dispatchDataEvent(e.type,e,n));var a=this._clickToSetFocusPoint(e);if(a){var i=a.view.setDOFFocusOnPoint(a.distance);i&&this.zr.refresh()}}}};pn.prototype._clickToSetFocusPoint=function(e){for(var t=this.renderer,r=t.viewport,n=this.views.length-1;n>=0;n--){var a=this.views[n];if(a.hasDOF()&&a.containPoint(e.offsetX,e.offsetY)){this._picking.scene=a.scene,this._picking.camera=a.camera,t.viewport=a.viewport;var i=this._picking.pick(e.offsetX,e.offsetY,!0);if(i)return i.view=a,i}}t.viewport=r};pn.prototype.onglobalout=function(e){var t=this._hovered;t&&this._dispatchEvent("mouseout",e,{target:t.target})};pn.prototype.pickObject=function(e,t){for(var r=[],n=this.renderer,a=n.viewport,i=0;i=0&&(c.dataIndex=this._lastDataIndex,c.seriesIndex=this._lastSeriesIndex,this.zr.handler.dispatchToElement(u,"mouseout",t)),s=!0):o!=null&&o!==this._lastEventData&&(this._lastEventData!=null&&(c.eventData=this._lastEventData,this.zr.handler.dispatchToElement(u,"mouseout",t)),s=!0),this._lastEventData=o,this._lastDataIndex=a,this._lastSeriesIndex=i),c.eventData=o,c.dataIndex=a,c.seriesIndex=i,(o!=null||parseInt(a,10)>=0&&parseInt(i,10)>=0)&&(this.zr.handler.dispatchToElement(u,e,t),s&&this.zr.handler.dispatchToElement(u,"mouseover",t))};pn.prototype._dispatchToView=function(e,t){for(var r=0;r=0&&(oyt(t),t.coordinateSystem==="mapbox"&&(t.coordinateSystem="mapbox3D",e.mapbox3D=e.mapbox))}),Pw(e.xAxis3D),Pw(e.yAxis3D),Pw(e.zAxis3D),Pw(e.grid3D),Py(e.geo3D)}function oie(e){this._layers={},this._zr=e}oie.prototype.update=function(e,t){var r=this,n=t.getZr();if(!n.getWidth()||!n.getHeight()){console.warn("Dom has no width or height");return}function a(s){n.setSleepAfterStill(0);var l;s.coordinateSystem&&s.coordinateSystem.model,l=s.get("zlevel");var u=r._layers,c=u[l];if(!c){if(c=u[l]=new iie("gl-"+l,n),n.painter.isSingleCanvas()){c.virtual=!0;var f=new Oa({z:1e4,style:{image:c.renderer.canvas},silent:!0});c.__hostImage=f,n.add(f)}n.painter.insertLayer(l,c)}return c.__hostImage&&c.__hostImage.setStyle({width:c.renderer.getWidth(),height:c.renderer.getHeight()}),c}function i(s,l){s&&s.traverse(function(u){u.isRenderable&&u.isRenderable()&&(u.ignorePicking=u.$ignorePicking!=null?u.$ignorePicking:l)})}for(var o in this._layers)this._layers[o].removeViewsAll();e.eachComponent(function(s,l){if(s!=="series"){var u=t.getViewOfComponentModel(l),c=l.coordinateSystem;if(u.__ecgl__){var f;if(c){if(!c.viewGL){console.error("Can't find viewGL in coordinateSystem of component "+l.id);return}f=c.viewGL}else{if(!l.viewGL){console.error("Can't find viewGL of component "+l.id);return}f=c.viewGL}var f=c.viewGL,d=a(l);d.addView(f),u.afterRender&&u.afterRender(l,e,t,d),i(u.groupGL,l.get("silent"))}}}),e.eachSeries(function(s){var l=t.getViewOfSeriesModel(s),u=s.coordinateSystem;if(l.__ecgl__){if(u&&!u.viewGL&&!l.viewGL){console.error("Can't find viewGL of series "+l.id);return}var c=u&&u.viewGL||l.viewGL,f=a(s);f.addView(c),l.afterRender&&l.afterRender(s,e,t,f),i(l.groupGL,s.get("silent"))}})};pk(function(e){var t=e.getZr(),r=t.painter.dispose;t.painter.dispose=function(){typeof this.eachOtherLayer=="function"&&this.eachOtherLayer(function(n){n instanceof iie&&n.dispose()}),r.call(this)},t.painter.getRenderedCanvas=function(n){if(n=n||{},this._singleCanvas)return this._layers[0].dom;var a=document.createElement("canvas"),i=n.pixelRatio||this.dpr;a.width=this.getWidth()*i,a.height=this.getHeight()*i;var o=a.getContext("2d");o.dpr=i,o.clearRect(0,0,a.width,a.height),n.backgroundColor&&(o.fillStyle=n.backgroundColor,o.fillRect(0,0,a.width,a.height));var s=this.storage.getDisplayList(!0),l={},u,c=this;function f(p,g){var m=c._zlevelList;p==null&&(p=-1/0);for(var y,_=0;_p&&w0&&this._notFirst?this.animateTo({alpha:u,beta:c,center:f,distance:i,orthographicSize:o,easing:l.animationEasingUpdate,duration:l.animationDurationUpdate}):(this.setDistance(i),this.setAlpha(u),this.setBeta(c),this.setCenter(f),this.setOrthographicSize(o)),this._notFirst=!0,this._validateProperties()},_validateProperties:function(){},animateTo:function(e){var t=this.zr,r=this,n={},a={};return e.distance!=null&&(n.distance=this.getDistance(),a.distance=e.distance),e.orthographicSize!=null&&(n.orthographicSize=this.getOrthographicSize(),a.orthographicSize=e.orthographicSize),e.alpha!=null&&(n.alpha=this.getAlpha(),a.alpha=e.alpha),e.beta!=null&&(n.beta=this.getBeta(),a.beta=e.beta),e.center!=null&&(n.center=this.getCenter(),a.center=e.center),this._addAnimator(t.animation.animate(n).when(e.duration||1e3,a).during(function(){n.alpha!=null&&r.setAlpha(n.alpha),n.beta!=null&&r.setBeta(n.beta),n.distance!=null&&r.setDistance(n.distance),n.center!=null&&r.setCenter(n.center),n.orthographicSize!=null&&r.setOrthographicSize(n.orthographicSize),r._needsUpdate=!0})).start(e.easing||"linear")},stopAllAnimation:function(){for(var e=0;e0},_update:function(e){if(this._rotating){var t=(this.autoRotateDirection==="cw"?1:-1)*this.autoRotateSpeed/180*Math.PI;this._phi-=t*e/1e3,this._needsUpdate=!0}else this._rotateVelocity.len()>0&&(this._needsUpdate=!0);(Math.abs(this._zoomSpeed)>.1||this._panVelocity.len()>0)&&(this._needsUpdate=!0),this._needsUpdate&&(e=Math.min(e,50),this._updateDistanceOrSize(e),this._updatePan(e),this._updateRotate(e),this._updateTransform(),this.getCamera().update(),this.zr&&this.zr.refresh(),this.trigger("update"),this._needsUpdate=!1)},_updateRotate:function(e){var t=this._rotateVelocity;this._phi=t.y*e/20+this._phi,this._theta=t.x*e/20+this._theta,this.setAlpha(this.getAlpha()),this.setBeta(this.getBeta()),this._vectorDamping(t,Math.pow(this.damping,e/16))},_updateDistanceOrSize:function(e){this._projection==="perspective"?this._setDistance(this._distance+this._zoomSpeed*e/20):this._setOrthoSize(this._orthoSize+this._zoomSpeed*e/20),this._zoomSpeed*=Math.pow(this.damping,e/16)},_setDistance:function(e){this._distance=Math.max(Math.min(e,this.maxDistance),this.minDistance)},_setOrthoSize:function(e){this._orthoSize=Math.max(Math.min(e,this.maxOrthographicSize),this.minOrthographicSize);var t=this.getCamera(),r=this._orthoSize,n=r/this.viewGL.viewport.height*this.viewGL.viewport.width;t.left=-n/2,t.right=n/2,t.top=r/2,t.bottom=-r/2},_updatePan:function(e){var t=this._panVelocity,r=this._distance,n=this.getCamera(),a=n.worldTransform.y,i=n.worldTransform.x;this._center.scaleAndAdd(i,-t.x*r/200).scaleAndAdd(a,-t.y*r/200),this._vectorDamping(t,0)},_updateTransform:function(){var e=this.getCamera(),t=new mt,r=this._theta+Math.PI/2,n=this._phi+Math.PI/2,a=Math.sin(r);t.x=a*Math.cos(n),t.y=-Math.cos(r),t.z=a*Math.sin(n),e.position.copy(this._center).scaleAndAdd(t,this._distance),e.rotation.identity().rotateY(-this._phi).rotateX(-this._theta)},_startCountingStill:function(){clearTimeout(this._stillTimeout);var e=this.autoRotateAfterStill,t=this;!isNaN(e)&&e>0&&(this._stillTimeout=setTimeout(function(){t._rotating=!0},e*1e3))},_vectorDamping:function(e,t){var r=e.len();r=r*t,r<1e-4&&(r=0),e.normalize().scale(r)},_decomposeTransform:function(){if(this.getCamera()){this.getCamera().updateWorldTransform();var e=this.getCamera().worldTransform.z,t=Math.asin(e.y),r=Math.atan2(e.x,e.z);this._theta=t,this._phi=-r,this.setBeta(this.getBeta()),this.setAlpha(this.getAlpha()),this.getCamera().aspect?this._setDistance(this.getCamera().position.dist(this._center)):this._setOrthoSize(this.getCamera().top-this.getCamera().bottom)}},_mouseDownHandler:function(e){if(!e.target&&!this._isAnimating()){var t=e.offsetX,r=e.offsetY;this.viewGL&&!this.viewGL.containPoint(t,r)||(this.zr.on("mousemove",this._mouseMoveHandler),this.zr.on("mouseup",this._mouseUpHandler),e.event.targetTouches?e.event.targetTouches.length===1&&(this._mode="rotate"):e.event.button===Z$[this.rotateMouseButton]?this._mode="rotate":e.event.button===Z$[this.panMouseButton]?this._mode="pan":this._mode="",this._rotateVelocity.set(0,0),this._rotating=!1,this.autoRotate&&this._startCountingStill(),this._mouseX=e.offsetX,this._mouseY=e.offsetY)}},_mouseMoveHandler:function(e){if(!(e.target&&e.target.__isGLToZRProxy)&&!this._isAnimating()){var t=q$(this.panSensitivity),r=q$(this.rotateSensitivity);this._mode==="rotate"?(this._rotateVelocity.y=(e.offsetX-this._mouseX)/this.zr.getHeight()*2*r[0],this._rotateVelocity.x=(e.offsetY-this._mouseY)/this.zr.getWidth()*2*r[1]):this._mode==="pan"&&(this._panVelocity.x=(e.offsetX-this._mouseX)/this.zr.getWidth()*t[0]*400,this._panVelocity.y=(-e.offsetY+this._mouseY)/this.zr.getHeight()*t[1]*400),this._mouseX=e.offsetX,this._mouseY=e.offsetY,e.event.preventDefault()}},_mouseWheelHandler:function(e){if(!this._isAnimating()){var t=e.event.wheelDelta||-e.event.detail;this._zoomHandler(e,t)}},_pinchHandler:function(e){this._isAnimating()||(this._zoomHandler(e,e.pinchScale>1?1:-1),this._mode="")},_zoomHandler:function(e,t){if(t!==0){var r=e.offsetX,n=e.offsetY;if(!(this.viewGL&&!this.viewGL.containPoint(r,n))){var a;this._projection==="perspective"?a=Math.max(Math.max(Math.min(this._distance-this.minDistance,this.maxDistance-this._distance))/20,.5):a=Math.max(Math.max(Math.min(this._orthoSize-this.minOrthographicSize,this.maxOrthographicSize-this._orthoSize))/20,.5),this._zoomSpeed=(t>0?-1:1)*a*this.zoomSensitivity,this._rotating=!1,this.autoRotate&&this._mode==="rotate"&&this._startCountingStill(),e.event.preventDefault()}}},_mouseUpHandler:function(){this.zr.off("mousemove",this._mouseMoveHandler),this.zr.off("mouseup",this._mouseUpHandler)},_isRightMouseButtonUsed:function(){return this.rotateMouseButton==="right"||this.panMouseButton==="right"},_contextMenuHandler:function(e){this._isRightMouseButtonUsed()&&e.preventDefault()},_addAnimator:function(e){var t=this._animators;return t.push(e),e.done(function(){var r=t.indexOf(e);r>=0&&t.splice(r,1)}),e}});Object.defineProperty(sie.prototype,"autoRotate",{get:function(e){return this._autoRotate},set:function(e){this._autoRotate=e,this._rotating=e}});const UT=sie,V1={convertToDynamicArray:function(e){e&&this.resetOffset();var t=this.attributes;for(var r in t)e||!t[r].value?t[r].value=[]:t[r].value=Array.prototype.slice.call(t[r].value);e||!this.indices?this.indices=[]:this.indices=Array.prototype.slice.call(this.indices)},convertToTypedArray:function(){var e=this.attributes;for(var t in e)e[t].value&&e[t].value.length>0?e[t].value=new Float32Array(e[t].value):e[t].value=null;this.indices&&this.indices.length>0&&(this.indices=this.vertexCount>65535?new Uint32Array(this.indices):new Uint16Array(this.indices)),this.dirty()}},Jn={vec2:jt,vec3:Ee,vec4:Et,mat2:Un,mat2d:ta,mat3:Or,mat4:ut,quat:ar};var bD=Jn.vec3,Q$=[[0,0],[1,1]],lie=Hr.extend(function(){return{segmentScale:1,dynamic:!0,useNativeLine:!0,attributes:{position:new Hr.Attribute("position","float",3,"POSITION"),positionPrev:new Hr.Attribute("positionPrev","float",3),positionNext:new Hr.Attribute("positionNext","float",3),prevPositionPrev:new Hr.Attribute("prevPositionPrev","float",3),prevPosition:new Hr.Attribute("prevPosition","float",3),prevPositionNext:new Hr.Attribute("prevPositionNext","float",3),offset:new Hr.Attribute("offset","float",1),color:new Hr.Attribute("color","float",4,"COLOR")}}},{resetOffset:function(){this._vertexOffset=0,this._triangleOffset=0,this._itemVertexOffsets=[]},setVertexCount:function(e){var t=this.attributes;this.vertexCount!==e&&(t.position.init(e),t.color.init(e),this.useNativeLine||(t.positionPrev.init(e),t.positionNext.init(e),t.offset.init(e)),e>65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(e){this.triangleCount!==e&&(e===0?this.indices=null:this.indices=this.vertexCount>65535?new Uint32Array(e*3):new Uint16Array(e*3))},_getCubicCurveApproxStep:function(e,t,r,n){var a=bD.dist(e,t)+bD.dist(r,t)+bD.dist(n,r),i=1/(a+1)*this.segmentScale;return i},getCubicCurveVertexCount:function(e,t,r,n){var a=this._getCubicCurveApproxStep(e,t,r,n),i=Math.ceil(1/a);return this.useNativeLine?i*2:i*2+2},getCubicCurveTriangleCount:function(e,t,r,n){var a=this._getCubicCurveApproxStep(e,t,r,n),i=Math.ceil(1/a);return this.useNativeLine?0:i*2},getLineVertexCount:function(){return this.getPolylineVertexCount(Q$)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(Q$)},getPolylineVertexCount:function(e){var t;if(typeof e=="number")t=e;else{var r=typeof e[0]!="number";t=r?e.length:e.length/3}return this.useNativeLine?(t-1)*2:(t-1)*2+2},getPolylineTriangleCount:function(e){var t;if(typeof e=="number")t=e;else{var r=typeof e[0]!="number";t=r?e.length:e.length/3}return this.useNativeLine?0:Math.max(t-1,0)*2},addCubicCurve:function(e,t,r,n,a,i){i==null&&(i=1);for(var o=e[0],s=e[1],l=e[2],u=t[0],c=t[1],f=t[2],d=r[0],h=r[1],v=r[2],p=n[0],g=n[1],m=n[2],y=this._getCubicCurveApproxStep(e,t,r,n),_=y*y,w=_*y,x=3*y,S=3*_,T=6*_,A=6*w,C=o-u*2+d,M=s-c*2+h,E=l-f*2+v,D=(u-d)*3-o+p,P=(c-h)*3-s+g,L=(f-v)*3-l+m,I=o,O=s,R=l,B=(u-o)*x+C*S+D*w,k=(c-s)*x+M*S+P*w,z=(f-l)*x+E*S+L*w,$=C*T+D*A,j=M*T+P*A,X=E*T+L*A,Q=D*A,se=P*A,ee=L*A,K=0,Z=0,ne=Math.ceil(1/y),re=new Float32Array((ne+1)*3),re=[],ie=0,Z=0;Z1&&(I=B>0?Math.min(I,p):Math.max(I,p),O=k>0?Math.min(O,g):Math.max(O,g),R=z>0?Math.min(R,m):Math.max(R,m));return this.addPolyline(re,a,i)},addLine:function(e,t,r,n){return this.addPolyline([e,t],r,n)},addPolyline:function(e,t,r,n,a){if(e.length){var i=typeof e[0]!="number";if(a==null&&(a=i?e.length:e.length/3),!(a<2)){n==null&&(n=0),r==null&&(r=1),this._itemVertexOffsets.push(this._vertexOffset);var i=typeof e[0]!="number",o=i?typeof t[0]!="number":t.length/4===a,s=this.attributes.position,l=this.attributes.positionPrev,u=this.attributes.positionNext,c=this.attributes.color,f=this.attributes.offset,d=this.indices,h=this._vertexOffset,v,p;r=Math.max(r,.01);for(var g=n;g1&&(s.copy(h,h-1),c.copy(h,h-1),h++):(g0&&(u.set(h-2,v),u.set(h-1,v)),s.set(h,v),s.set(h+1,v),c.set(h,p),c.set(h+1,p),f.set(h,r/2),f.set(h+1,-r/2),h+=2),this.useNativeLine)c.set(h,p),s.set(h,v),h++;else if(g>0){var _=this._triangleOffset*3,d=this.indices;d[_]=h-4,d[_+1]=h-3,d[_+2]=h-2,d[_+3]=h-3,d[_+4]=h-1,d[_+5]=h-2,this._triangleOffset+=2}}if(!this.useNativeLine){var w=this._vertexOffset,x=this._vertexOffset+a*2;l.copy(w,w+2),l.copy(w+1,w+3),u.copy(x-1,x-3),u.copy(x-2,x-4)}return this._vertexOffset=h,this._vertexOffset}}},setItemColor:function(e,t){for(var r=this._itemVertexOffsets[e],n=eo&&(a=this._x=0,i+=this._rowHeight+l,this._y=i,this._rowHeight=0),this._x+=t+l,this._rowHeight=Math.max(this._rowHeight,r),i+r+l>s)return null;e.x+=this.offsetX*this.dpr+a,e.y+=this.offsetY*this.dpr+i,this._zr.add(e);var u=[this.offsetX/this.width,this.offsetY/this.height],c=[[a/o+u[0],i/s+u[1]],[(a+t)/o+u[0],(i+r)/s+u[1]]];return c},_fitElement:function(e,t,r){var n=e.getBoundingRect(),a=t/n.width,i=r/n.height;e.x=-n.x*a,e.y=-n.y*i,e.scaleX=a,e.scaleY=i,e.update()}};function D2(e){e=e||{},e.width=e.width||512,e.height=e.height||512,e.devicePixelRatio=e.devicePixelRatio||1,e.gap=e.gap==null?2:e.gap;var t=document.createElement("canvas");t.width=e.width*e.devicePixelRatio,t.height=e.height*e.devicePixelRatio,this._canvas=t,this._texture=new _r({image:t,flipY:!1});var r=this;this._zr=hx(t);var n=this._zr.refreshImmediately;this._zr.refreshImmediately=function(){n.call(this),r._texture.dirty(),r.onupdate&&r.onupdate()},this._dpr=e.devicePixelRatio,this._coords={},this.onupdate=e.onupdate,this._gap=e.gap,this._textureAtlasNodes=[new M2(this._zr,0,0,e.width,e.height,this._gap,this._dpr)],this._nodeWidth=e.width,this._nodeHeight=e.height,this._currentNodeIdx=0}D2.prototype={clear:function(){for(var e=0;e=e)){var i=(n+this._nodeWidth)*this._dpr,o=(a+this._nodeHeight)*this._dpr;try{this._zr.resize({width:i,height:o})}catch{this._canvas.width=i,this._canvas.height=o}var s=new M2(this._zr,n,a,this._nodeWidth,this._nodeHeight,this._gap,this._dpr);return this._textureAtlasNodes.push(s),s}},add:function(e,t,r){if(this._coords[e.id])return this._coords[e.id];var n=this._getCurrentNode().add(e,t,r);if(!n){var a=this._expand();if(!a)return;n=a.add(e,t,r)}return this._coords[e.id]=n,n},getCoordsScale:function(){var e=this._dpr;return[this._nodeWidth/this._canvas.width*e,this._nodeHeight/this._canvas.height*e]},getCoords:function(e){return this._coords[e]},dispose:function(){this._zr.dispose()}};function Lf(){}Lf.prototype={constructor:Lf,setScene:function(e){this._scene=e,this._skybox&&this._skybox.attachScene(this._scene)},initLight:function(e){this._lightRoot=e,this.mainLight=new ue.DirectionalLight({shadowBias:.005}),this.ambientLight=new ue.AmbientLight,e.add(this.mainLight),e.add(this.ambientLight)},dispose:function(){this._lightRoot&&(this._lightRoot.remove(this.mainLight),this._lightRoot.remove(this.ambientLight))},updateLight:function(e){var t=this.mainLight,r=this.ambientLight,n=e.getModel("light"),a=n.getModel("main"),i=n.getModel("ambient");t.intensity=a.get("intensity"),r.intensity=i.get("intensity"),t.color=ue.parseColor(a.get("color")).slice(0,3),r.color=ue.parseColor(i.get("color")).slice(0,3);var o=a.get("alpha")||0,s=a.get("beta")||0;t.position.setArray(ue.directionFromAlphaBeta(o,s)),t.lookAt(ue.Vector3.ZERO),t.castShadow=a.get("shadow"),t.shadowResolution=ue.getShadowResolution(a.get("shadowQuality"))},updateAmbientCubemap:function(e,t,r){var n=t.getModel("light.ambientCubemap"),a=n.get("texture");if(a){this._cubemapLightsCache=this._cubemapLightsCache||{};var i=this._cubemapLightsCache[a];if(!i){var o=this;i=this._cubemapLightsCache[a]=ue.createAmbientCubemap(n.option,e,r,function(){o._isSkyboxFromAmbientCubemap&&o._skybox.setEnvironmentMap(i.specular.cubemap),r.getZr().refresh()})}this._lightRoot.add(i.diffuse),this._lightRoot.add(i.specular),this._currentCubemapLights=i}else this._currentCubemapLights&&(this._lightRoot.remove(this._currentCubemapLights.diffuse),this._lightRoot.remove(this._currentCubemapLights.specular),this._currentCubemapLights=null)},updateSkybox:function(e,t,r){var n=t.get("environment"),a=this;function i(){return a._skybox=a._skybox||new R_,a._skybox}var o=i();if(n&&n!=="none")if(n==="auto")if(this._isSkyboxFromAmbientCubemap=!0,this._currentCubemapLights){var s=this._currentCubemapLights.specular.cubemap;o.setEnvironmentMap(s),this._scene&&o.attachScene(this._scene),o.material.set("lod",3)}else this._skybox&&this._skybox.detachScene();else if(typeof n=="object"&&n.colorStops||typeof n=="string"&&Za(n)){this._isSkyboxFromAmbientCubemap=!1;var l=new ue.Texture2D({anisotropic:8,flipY:!1});o.setEnvironmentMap(l);var u=l.image=document.createElement("canvas");u.width=u.height=16;var c=u.getContext("2d"),f=new br({shape:{x:0,y:0,width:16,height:16},style:{fill:n}});d1(c,f),o.attachScene(this._scene)}else{this._isSkyboxFromAmbientCubemap=!1;var l=ue.loadTexture(n,r,{anisotropic:8,flipY:!1});o.setEnvironmentMap(l),o.attachScene(this._scene)}else this._skybox&&this._skybox.detachScene(this._scene),this._skybox=null;var d=t.coordinateSystem;if(this._skybox)if(d&&d.viewGL&&n!=="auto"&&!(n.match&&n.match(/.hdr$/))){var h=d.viewGL.isLinearSpace()?"define":"undefine";this._skybox.material[h]("fragment","SRGB_DECODE")}else this._skybox.material.undefine("fragment","SRGB_DECODE")}};var Ed=Jn.vec3,uie=Hr.extend(function(){return{segmentScale:1,useNativeLine:!0,attributes:{position:new Hr.Attribute("position","float",3,"POSITION"),normal:new Hr.Attribute("normal","float",3,"NORMAL"),color:new Hr.Attribute("color","float",4,"COLOR")}}},{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0},setQuadCount:function(e){var t=this.attributes,r=this.getQuadVertexCount()*e,n=this.getQuadTriangleCount()*e;this.vertexCount!==r&&(t.position.init(r),t.normal.init(r),t.color.init(r)),this.triangleCount!==n&&(this.indices=r>65535?new Uint32Array(n*3):new Uint16Array(n*3))},getQuadVertexCount:function(){return 4},getQuadTriangleCount:function(){return 2},addQuad:function(){var e=Ed.create(),t=Ed.create(),r=Ed.create(),n=[0,3,1,3,2,1];return function(a,i){var o=this.attributes.position,s=this.attributes.normal,l=this.attributes.color;Ed.sub(e,a[1],a[0]),Ed.sub(t,a[2],a[1]),Ed.cross(r,e,t),Ed.normalize(r,r);for(var u=0;u<4;u++)o.set(this._vertexOffset+u,a[u]),l.set(this._vertexOffset+u,i),s.set(this._vertexOffset+u,r);for(var c=this._faceOffset*3,u=0;u<6;u++)this.indices[c+u]=n[u]+this._vertexOffset;this._vertexOffset+=4,this._faceOffset+=2}}()});yt(uie.prototype,V1);const uyt=uie;var aR=Sr.firstNotNull,cyt={x:0,y:2,z:1};function fyt(e,t,r,n){var a=[0,0,0],i=n<0?r.getExtentMin():r.getExtentMax();a[cyt[r.dim]]=i,e.position.setArray(a),e.rotation.identity(),t.distance=-Math.abs(i),t.normal.set(0,0,0),r.dim==="x"?(e.rotation.rotateY(n*Math.PI/2),t.normal.x=-n):r.dim==="z"?(e.rotation.rotateX(-n*Math.PI/2),t.normal.y=-n):(n>0&&e.rotation.rotateY(Math.PI),t.normal.z=-n)}function $T(e,t,r){this.rootNode=new ue.Node;var n=new ue.Mesh({geometry:new gv({useNativeLine:!1}),material:t,castShadow:!1,ignorePicking:!0,$ignorePicking:!0,renderOrder:1}),a=new ue.Mesh({geometry:new uyt,material:r,castShadow:!1,culling:!1,ignorePicking:!0,$ignorePicking:!0,renderOrder:0});this.rootNode.add(a),this.rootNode.add(n),this.faceInfo=e,this.plane=new ue.Plane,this.linesMesh=n,this.quadsMesh=a}$T.prototype.update=function(e,t,r){var n=e.coordinateSystem,a=[n.getAxis(this.faceInfo[0]),n.getAxis(this.faceInfo[1])],i=this.linesMesh.geometry,o=this.quadsMesh.geometry;i.convertToDynamicArray(!0),o.convertToDynamicArray(!0),this._updateSplitLines(i,a,e,r),this._udpateSplitAreas(o,a,e,r),i.convertToTypedArray(),o.convertToTypedArray();var s=n.getAxis(this.faceInfo[2]);fyt(this.rootNode,this.plane,s,this.faceInfo[3])};$T.prototype._updateSplitLines=function(e,t,r,n){var a=n.getDevicePixelRatio();t.forEach(function(i,o){var s=i.model,l=t[1-o].getExtent();if(!i.scale.isBlank()){var u=s.getModel("splitLine",r.getModel("splitLine"));if(u.get("show")){var c=u.getModel("lineStyle"),f=c.get("color"),d=aR(c.get("opacity"),1),h=aR(c.get("width"),1);f=Ne(f)?f:[f];for(var v=i.getTicksCoords({tickModel:u}),p=0,g=0;g65535?new Uint32Array(r*3):new Uint16Array(r*3))},setSpriteAlign:function(e,t,r,n,a){r==null&&(r="left"),n==null&&(n="top");var i,o,s,l;switch(a=a||0,r){case"left":i=a,s=t[0]+a;break;case"center":case"middle":i=-t[0]/2,s=t[0]/2;break;case"right":i=-t[0]-a,s=-a;break}switch(n){case"bottom":o=a,l=t[1]+a;break;case"middle":o=-t[1]/2,l=t[1]/2;break;case"top":o=-t[1]-a,l=-a;break}var u=e*4,c=this.attributes.offset;c.set(u,[i,l]),c.set(u+1,[s,l]),c.set(u+2,[s,o]),c.set(u+3,[i,o])},addSprite:function(e,t,r,n,a,i){var o=this._vertexOffset;this.setSprite(this._vertexOffset/4,e,t,r,n,a,i);for(var s=0;s 0.0) { currProj = clipNear(currProj, nextProj); } else if (prevProj.w > 0.0) { currProj = clipNear(currProj, prevProj); } } vec2 prevScreen = (prevProj.xy / abs(prevProj.w) + 1.0) * 0.5 * viewport.zw; vec2 currScreen = (currProj.xy / abs(currProj.w) + 1.0) * 0.5 * viewport.zw; vec2 nextScreen = (nextProj.xy / abs(nextProj.w) + 1.0) * 0.5 * viewport.zw; vec2 dir; float len = offset; if (position == positionPrev) { dir = normalize(nextScreen - currScreen); } else if (position == positionNext) { dir = normalize(currScreen - prevScreen); } else { vec2 dirA = normalize(currScreen - prevScreen); vec2 dirB = normalize(nextScreen - currScreen); vec2 tanget = normalize(dirA + dirB); float miter = 1.0 / max(dot(tanget, dirA), 0.5); len *= miter; dir = tanget; } dir = vec2(-dir.y, dir.x) * len; currScreen += dir; currProj.xy = (currScreen / viewport.zw - 0.5) * 2.0 * abs(currProj.w); @end @export ecgl.meshLines3D.vertex attribute vec3 position: POSITION; attribute vec3 positionPrev; attribute vec3 positionNext; attribute float offset; attribute vec4 a_Color : COLOR; #ifdef VERTEX_ANIMATION attribute vec3 prevPosition; attribute vec3 prevPositionPrev; attribute vec3 prevPositionNext; uniform float percent : 1.0; #endif uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; uniform vec4 viewport : VIEWPORT; uniform float near : NEAR; varying vec4 v_Color; @import ecgl.common.wireframe.vertexHeader @import ecgl.lines3D.clipNear void main() { @import ecgl.lines3D.expandLine gl_Position = currProj; v_Color = a_Color; @import ecgl.common.wireframe.vertexMain } @end @export ecgl.meshLines3D.fragment uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; varying vec4 v_Color; @import ecgl.common.wireframe.fragmentHeader @import clay.util.srgb void main() { #ifdef SRGB_DECODE gl_FragColor = sRGBToLinear(color * v_Color); #else gl_FragColor = color * v_Color; #endif @import ecgl.common.wireframe.fragmentMain } @end`;var eW=Sr.firstNotNull;ue.Shader.import(WT);var Pd={x:0,y:2,z:1};const vyt=rn.extend({type:"grid3D",__ecgl__:!0,init:function(e,t){var r=[["y","z","x",-1,"left"],["y","z","x",1,"right"],["x","y","z",-1,"bottom"],["x","y","z",1,"top"],["x","z","y",-1,"far"],["x","z","y",1,"near"]],n=["x","y","z"],a=new ue.Material({shader:ue.createShader("ecgl.color"),depthMask:!1,transparent:!0}),i=new ue.Material({shader:ue.createShader("ecgl.meshLines3D"),depthMask:!1,transparent:!0});a.define("fragment","DOUBLE_SIDED"),a.define("both","VERTEX_COLOR"),this.groupGL=new ue.Node,this._control=new UT({zr:t.getZr()}),this._control.init(),this._faces=r.map(function(s){var l=new $T(s,i,a);return this.groupGL.add(l.rootNode),l},this),this._axes=n.map(function(s){var l=new p4(s,i);return this.groupGL.add(l.rootNode),l},this);var o=t.getDevicePixelRatio();this._axisLabelSurface=new D2({width:256,height:256,devicePixelRatio:o}),this._axisLabelSurface.onupdate=function(){t.getZr().refresh()},this._axisPointerLineMesh=new ue.Mesh({geometry:new gv({useNativeLine:!1}),material:i,castShadow:!1,ignorePicking:!0,renderOrder:3}),this.groupGL.add(this._axisPointerLineMesh),this._axisPointerLabelsSurface=new D2({width:128,height:128,devicePixelRatio:o}),this._axisPointerLabelsMesh=new v4({ignorePicking:!0,renderOrder:4,castShadow:!1}),this._axisPointerLabelsMesh.material.set("textureAtlas",this._axisPointerLabelsSurface.getTexture()),this.groupGL.add(this._axisPointerLabelsMesh),this._lightRoot=new ue.Node,this._sceneHelper=new Lf,this._sceneHelper.initLight(this._lightRoot)},render:function(e,t,r){this._model=e,this._api=r;var n=e.coordinateSystem;n.viewGL.add(this._lightRoot),e.get("show")?n.viewGL.add(this.groupGL):n.viewGL.remove(this.groupGL);var a=this._control;a.setViewGL(n.viewGL);var i=e.getModel("viewControl");a.setFromViewControlModel(i,0),this._axisLabelSurface.clear(),a.off("update"),e.get("show")&&(this._faces.forEach(function(o){o.update(e,t,r)},this),this._axes.forEach(function(o){o.update(e,this._axisLabelSurface,r)},this)),a.on("update",this._onCameraChange.bind(this,e,r),this),this._sceneHelper.setScene(n.viewGL.scene),this._sceneHelper.updateLight(e),n.viewGL.setPostEffect(e.getModel("postEffect"),r),n.viewGL.setTemporalSuperSampling(e.getModel("temporalSuperSampling")),this._initMouseHandler(e)},afterRender:function(e,t,r,n){var a=n.renderer;this._sceneHelper.updateAmbientCubemap(a,e,r),this._sceneHelper.updateSkybox(a,e,r)},showAxisPointer:function(e,t,r,n){this._doShowAxisPointer(),this._updateAxisPointer(n.value)},hideAxisPointer:function(e,t,r,n){this._doHideAxisPointer()},_initMouseHandler:function(e){var t=e.coordinateSystem,r=t.viewGL;e.get("show")&&e.get("axisPointer.show")?r.on("mousemove",this._updateAxisPointerOnMousePosition,this):r.off("mousemove",this._updateAxisPointerOnMousePosition)},_updateAxisPointerOnMousePosition:function(e){if(!e.target){for(var t=this._model,r=t.coordinateSystem,n=r.viewGL,a=n.castRay(e.offsetX,e.offsetY,new ue.Ray),i,o=0;on[1]?0:1,s=this._faces[r*2+o],l=this._faces[r*2+1-o];s.rootNode.invisible=!0,l.rootNode.invisible=!1}},_updateAxisLinePosition:function(){var e=this._model.coordinateSystem,t=e.getAxis("x"),r=e.getAxis("y"),n=e.getAxis("z"),a=n.getExtentMax(),i=n.getExtentMin(),o=t.getExtentMin(),s=t.getExtentMax(),l=r.getExtentMax(),u=r.getExtentMin(),c=this._axes[0].rootNode,f=this._axes[1].rootNode,d=this._axes[2].rootNode,h=this._faces,v=h[4].rootNode.invisible?u:l,p=h[2].rootNode.invisible?a:i,g=h[0].rootNode.invisible?o:s,m=h[2].rootNode.invisible?a:i,y=h[0].rootNode.invisible?s:o,_=h[4].rootNode.invisible?u:l;c.rotation.identity(),f.rotation.identity(),d.rotation.identity(),h[4].rootNode.invisible&&(this._axes[0].flipped=!0,c.rotation.rotateX(Math.PI)),h[0].rootNode.invisible&&(this._axes[1].flipped=!0,f.rotation.rotateZ(Math.PI)),h[4].rootNode.invisible&&(this._axes[2].flipped=!0,d.rotation.rotateY(Math.PI)),c.position.set(0,p,v),f.position.set(g,m,0),d.position.set(y,0,_),c.update(),f.update(),d.update(),this._updateAxisLabelAlign()},_updateAxisLabelAlign:function(){var e=this._control.getCamera(),t=[new ue.Vector4,new ue.Vector4],r=new ue.Vector4;this.groupGL.getWorldPosition(r),r.w=1,r.transformMat4(e.viewMatrix).transformMat4(e.projectionMatrix),r.x/=r.w,r.y/=r.w,this._axes.forEach(function(n){var a=n.axisLineCoords;n.labelsMesh.geometry;for(var i=0;ir.y?"bottom":"top"):(f="middle",c=l>r.x?"left":"right"),n.setSpriteAlign(c,f,this._api)},this)},_doShowAxisPointer:function(){this._axisPointerLineMesh.invisible&&(this._axisPointerLineMesh.invisible=!1,this._axisPointerLabelsMesh.invisible=!1,this._api.getZr().refresh())},_doHideAxisPointer:function(){this._axisPointerLineMesh.invisible||(this._axisPointerLineMesh.invisible=!0,this._axisPointerLabelsMesh.invisible=!0,this._api.getZr().refresh())},_updateAxisPointer:function(e){var t=this._model.coordinateSystem,r=t.dataToPoint(e),n=this._axisPointerLineMesh,a=n.geometry,i=this._model.getModel("axisPointer"),o=this._api.getDevicePixelRatio();a.convertToDynamicArray(!0);function s(A){return Sr.firstNotNull(A.model.get("axisPointer.show"),i.get("show"))}function l(A){var C=A.model.getModel("axisPointer",i),M=C.getModel("lineStyle"),E=ue.parseColor(M.get("color")),D=eW(M.get("width"),1),P=eW(M.get("opacity"),1);return E[3]*=P,{color:E,lineWidth:D}}for(var u=0;u 0.0) { if (texture2D(alphaMap, v_Texcoord).a <= alphaCutoff) { discard; } } #ifdef USE_VSM depth = depth * 0.5 + 0.5; float moment1 = depth; float moment2 = depth * depth; #ifdef SUPPORT_STANDARD_DERIVATIVES float dx = dFdx(depth); float dy = dFdy(depth); moment2 += 0.25*(dx*dx+dy*dy); #endif gl_FragColor = vec4(moment1, moment2, 0.0, 1.0); #else #ifdef SUPPORT_STANDARD_DERIVATIVES float dx = dFdx(depth); float dy = dFdy(depth); depth += sqrt(dx*dx + dy*dy) * slopeScale + bias; #else depth += bias; #endif gl_FragColor = encodeFloat(depth * 0.5 + 0.5); #endif } @end @export clay.sm.debug_depth uniform sampler2D depthMap; varying vec2 v_Texcoord; @import clay.util.decode_float void main() { vec4 tex = texture2D(depthMap, v_Texcoord); #ifdef USE_VSM gl_FragColor = vec4(tex.rgb, 1.0); #else float depth = decodeFloat(tex); gl_FragColor = vec4(depth, depth, depth, 1.0); #endif } @end @export clay.sm.distance.vertex uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; uniform mat4 world : WORLD; attribute vec3 position : POSITION; @import clay.chunk.skinning_header varying vec3 v_WorldPosition; void main (){ vec4 P = vec4(position, 1.0); #ifdef SKINNING @import clay.chunk.skin_matrix P = skinMatrixWS * P; #endif #ifdef INSTANCING @import clay.chunk.instancing_matrix P = instanceMat * P; #endif gl_Position = worldViewProjection * P; v_WorldPosition = (world * P).xyz; } @end @export clay.sm.distance.fragment uniform vec3 lightPosition; uniform float range : 100; varying vec3 v_WorldPosition; @import clay.util.encode_float void main(){ float dist = distance(lightPosition, v_WorldPosition); #ifdef USE_VSM gl_FragColor = vec4(dist, dist * dist, 0.0, 0.0); #else dist = dist / range; gl_FragColor = encodeFloat(dist); #endif } @end @export clay.plugin.shadow_map_common @import clay.util.decode_float float tapShadowMap(sampler2D map, vec2 uv, float z){ vec4 tex = texture2D(map, uv); return step(z, decodeFloat(tex) * 2.0 - 1.0); } float pcf(sampler2D map, vec2 uv, float z, float textureSize, vec2 scale) { float shadowContrib = tapShadowMap(map, uv, z); vec2 offset = vec2(1.0 / textureSize) * scale; #ifdef PCF_KERNEL_SIZE for (int _idx_ = 0; _idx_ < PCF_KERNEL_SIZE; _idx_++) {{ shadowContrib += tapShadowMap(map, uv + offset * pcfKernel[_idx_], z); }} return shadowContrib / float(PCF_KERNEL_SIZE + 1); #else shadowContrib += tapShadowMap(map, uv+vec2(offset.x, 0.0), z); shadowContrib += tapShadowMap(map, uv+vec2(offset.x, offset.y), z); shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, offset.y), z); shadowContrib += tapShadowMap(map, uv+vec2(0.0, offset.y), z); shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, 0.0), z); shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, -offset.y), z); shadowContrib += tapShadowMap(map, uv+vec2(offset.x, -offset.y), z); shadowContrib += tapShadowMap(map, uv+vec2(0.0, -offset.y), z); return shadowContrib / 9.0; #endif } float pcf(sampler2D map, vec2 uv, float z, float textureSize) { return pcf(map, uv, z, textureSize, vec2(1.0)); } float chebyshevUpperBound(vec2 moments, float z){ float p = 0.0; z = z * 0.5 + 0.5; if (z <= moments.x) { p = 1.0; } float variance = moments.y - moments.x * moments.x; variance = max(variance, 0.0000001); float mD = moments.x - z; float pMax = variance / (variance + mD * mD); pMax = clamp((pMax-0.4)/(1.0-0.4), 0.0, 1.0); return max(p, pMax); } float computeShadowContrib( sampler2D map, mat4 lightVPM, vec3 position, float textureSize, vec2 scale, vec2 offset ) { vec4 posInLightSpace = lightVPM * vec4(position, 1.0); posInLightSpace.xyz /= posInLightSpace.w; float z = posInLightSpace.z; if(all(greaterThan(posInLightSpace.xyz, vec3(-0.99, -0.99, -1.0))) && all(lessThan(posInLightSpace.xyz, vec3(0.99, 0.99, 1.0)))){ vec2 uv = (posInLightSpace.xy+1.0) / 2.0; #ifdef USE_VSM vec2 moments = texture2D(map, uv * scale + offset).xy; return chebyshevUpperBound(moments, z); #else return pcf(map, uv * scale + offset, z, textureSize, scale); #endif } return 1.0; } float computeShadowContrib(sampler2D map, mat4 lightVPM, vec3 position, float textureSize) { return computeShadowContrib(map, lightVPM, position, textureSize, vec2(1.0), vec2(0.0)); } float computeShadowContribOmni(samplerCube map, vec3 direction, float range) { float dist = length(direction); vec4 shadowTex = textureCube(map, direction); #ifdef USE_VSM vec2 moments = shadowTex.xy; float variance = moments.y - moments.x * moments.x; float mD = moments.x - dist; float p = variance / (variance + mD * mD); if(moments.x + 0.001 < dist){ return clamp(p, 0.0, 1.0); }else{ return 1.0; } #else return step(dist, (decodeFloat(shadowTex) + 0.0002) * range); #endif } @end @export clay.plugin.compute_shadow_map #if defined(SPOT_LIGHT_SHADOWMAP_COUNT) || defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) || defined(POINT_LIGHT_SHADOWMAP_COUNT) #ifdef SPOT_LIGHT_SHADOWMAP_COUNT uniform sampler2D spotLightShadowMaps[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable; uniform mat4 spotLightMatrices[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable; uniform float spotLightShadowMapSizes[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable; #endif #ifdef DIRECTIONAL_LIGHT_SHADOWMAP_COUNT #if defined(SHADOW_CASCADE) uniform sampler2D directionalLightShadowMaps[1]:unconfigurable; uniform mat4 directionalLightMatrices[SHADOW_CASCADE]:unconfigurable; uniform float directionalLightShadowMapSizes[1]:unconfigurable; uniform float shadowCascadeClipsNear[SHADOW_CASCADE]:unconfigurable; uniform float shadowCascadeClipsFar[SHADOW_CASCADE]:unconfigurable; #else uniform sampler2D directionalLightShadowMaps[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable; uniform mat4 directionalLightMatrices[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable; uniform float directionalLightShadowMapSizes[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable; #endif #endif #ifdef POINT_LIGHT_SHADOWMAP_COUNT uniform samplerCube pointLightShadowMaps[POINT_LIGHT_SHADOWMAP_COUNT]:unconfigurable; #endif uniform bool shadowEnabled : true; #ifdef PCF_KERNEL_SIZE uniform vec2 pcfKernel[PCF_KERNEL_SIZE]; #endif @import clay.plugin.shadow_map_common #if defined(SPOT_LIGHT_SHADOWMAP_COUNT) void computeShadowOfSpotLights(vec3 position, inout float shadowContribs[SPOT_LIGHT_COUNT] ) { float shadowContrib; for(int _idx_ = 0; _idx_ < SPOT_LIGHT_SHADOWMAP_COUNT; _idx_++) {{ shadowContrib = computeShadowContrib( spotLightShadowMaps[_idx_], spotLightMatrices[_idx_], position, spotLightShadowMapSizes[_idx_] ); shadowContribs[_idx_] = shadowContrib; }} for(int _idx_ = SPOT_LIGHT_SHADOWMAP_COUNT; _idx_ < SPOT_LIGHT_COUNT; _idx_++){{ shadowContribs[_idx_] = 1.0; }} } #endif #if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) #ifdef SHADOW_CASCADE void computeShadowOfDirectionalLights(vec3 position, inout float shadowContribs[DIRECTIONAL_LIGHT_COUNT]){ float depth = (2.0 * gl_FragCoord.z - gl_DepthRange.near - gl_DepthRange.far) / (gl_DepthRange.far - gl_DepthRange.near); float shadowContrib; shadowContribs[0] = 1.0; for (int _idx_ = 0; _idx_ < SHADOW_CASCADE; _idx_++) {{ if ( depth >= shadowCascadeClipsNear[_idx_] && depth <= shadowCascadeClipsFar[_idx_] ) { shadowContrib = computeShadowContrib( directionalLightShadowMaps[0], directionalLightMatrices[_idx_], position, directionalLightShadowMapSizes[0], vec2(1.0 / float(SHADOW_CASCADE), 1.0), vec2(float(_idx_) / float(SHADOW_CASCADE), 0.0) ); shadowContribs[0] = shadowContrib; } }} for(int _idx_ = DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{ shadowContribs[_idx_] = 1.0; }} } #else void computeShadowOfDirectionalLights(vec3 position, inout float shadowContribs[DIRECTIONAL_LIGHT_COUNT]){ float shadowContrib; for(int _idx_ = 0; _idx_ < DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_++) {{ shadowContrib = computeShadowContrib( directionalLightShadowMaps[_idx_], directionalLightMatrices[_idx_], position, directionalLightShadowMapSizes[_idx_] ); shadowContribs[_idx_] = shadowContrib; }} for(int _idx_ = DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{ shadowContribs[_idx_] = 1.0; }} } #endif #endif #if defined(POINT_LIGHT_SHADOWMAP_COUNT) void computeShadowOfPointLights(vec3 position, inout float shadowContribs[POINT_LIGHT_COUNT] ){ vec3 lightPosition; vec3 direction; for(int _idx_ = 0; _idx_ < POINT_LIGHT_SHADOWMAP_COUNT; _idx_++) {{ lightPosition = pointLightPosition[_idx_]; direction = position - lightPosition; shadowContribs[_idx_] = computeShadowContribOmni(pointLightShadowMaps[_idx_], direction, pointLightRange[_idx_]); }} for(int _idx_ = POINT_LIGHT_SHADOWMAP_COUNT; _idx_ < POINT_LIGHT_COUNT; _idx_++) {{ shadowContribs[_idx_] = 1.0; }} } #endif #endif @end`;var Tc=["px","nx","py","ny","pz","nz"];nt.import(myt);function xD(e,t,r){if(r==="alphaMap")return e.material.get("diffuseMap");if(r==="alphaCutoff"){if(e.material.isDefined("fragment","ALPHA_TEST")&&e.material.get("diffuseMap")){var n=e.material.get("alphaCutoff");return n||0}return 0}else return r==="uvRepeat"?e.material.get("uvRepeat"):r==="uvOffset"?e.material.get("uvOffset"):t.get(r)}function rW(e,t){var r=e.material,n=t.material;return r.get("diffuseMap")!==n.get("diffuseMap")||(r.get("alphaCutoff")||0)!==(n.get("alphaCutoff")||0)}var _l=zi.extend(function(){return{softShadow:_l.PCF,shadowBlur:1,lightFrustumBias:"auto",kernelPCF:new Float32Array([1,0,1,1,-1,1,0,1,-1,0,-1,-1,1,-1,0,-1]),precision:"highp",_lastRenderNotCastShadow:!1,_frameBuffer:new Ua,_textures:{},_shadowMapNumber:{POINT_LIGHT:0,DIRECTIONAL_LIGHT:0,SPOT_LIGHT:0},_depthMaterials:{},_distanceMaterials:{},_receivers:[],_lightsCastShadow:[],_lightCameras:{},_lightMaterials:{},_texturePool:new die}},function(){this._gaussianPassH=new sa({fragment:nt.source("clay.compositor.gaussian_blur")}),this._gaussianPassV=new sa({fragment:nt.source("clay.compositor.gaussian_blur")}),this._gaussianPassH.setUniform("blurSize",this.shadowBlur),this._gaussianPassH.setUniform("blurDir",0),this._gaussianPassV.setUniform("blurSize",this.shadowBlur),this._gaussianPassV.setUniform("blurDir",1),this._outputDepthPass=new sa({fragment:nt.source("clay.sm.debug_depth")})},{render:function(e,t,r,n){r||(r=t.getMainCamera()),this.trigger("beforerender",this,e,t,r),this._renderShadowPass(e,t,r,n),this.trigger("afterrender",this,e,t,r)},renderDebug:function(e,t){e.saveClear();var r=e.viewport,n=0,a=0,i=t||r.width/4,o=i;this.softShadow===_l.VSM?this._outputDepthPass.material.define("fragment","USE_VSM"):this._outputDepthPass.material.undefine("fragment","USE_VSM");for(var s in this._textures){var l=this._textures[s];e.setViewport(n,a,i*l.width/l.height,o),this._outputDepthPass.setUniform("depthMap",l),this._outputDepthPass.render(e),n+=i*l.width/l.height}e.setViewport(r),e.restoreClear()},_updateReceivers:function(e,t){if(t.receiveShadow?(this._receivers.push(t),t.material.set("shadowEnabled",1),t.material.set("pcfKernel",this.kernelPCF)):t.material.set("shadowEnabled",0),this.softShadow===_l.VSM)t.material.define("fragment","USE_VSM"),t.material.undefine("fragment","PCF_KERNEL_SIZE");else{t.material.undefine("fragment","USE_VSM");var r=this.kernelPCF;r&&r.length?t.material.define("fragment","PCF_KERNEL_SIZE",r.length/2):t.material.undefine("fragment","PCF_KERNEL_SIZE")}},_update:function(e,t){var r=this;t.traverse(function(i){i.isRenderable()&&r._updateReceivers(e,i)});for(var n=0;n4){console.warn("Support at most 4 cascade");continue}v.shadowCascade>1&&(d=v),this.renderDirectionalLightShadow(e,t,r,v,c,u,l)}else v.type==="SPOT_LIGHT"?this.renderSpotLightShadow(e,t,v,s,o):v.type==="POINT_LIGHT"&&this.renderPointLightShadow(e,t,v,f);this._shadowMapNumber[v.type]++}for(var p in this._shadowMapNumber)for(var g=this._shadowMapNumber[p],m=p+"_SHADOWMAP_COUNT",h=0;h0?_.define("fragment",m,g):_.isDefined("fragment",m)&&_.undefine("fragment",m))}for(var h=0;h0){var S=l.map(x);if(w.directionalLightShadowMaps={value:l,type:"tv"},w.directionalLightMatrices={value:u,type:"m4v"},w.directionalLightShadowMapSizes={value:S,type:"1fv"},d){var T=c.slice(),A=c.slice();T.pop(),A.shift(),T.reverse(),A.reverse(),u.reverse(),w.shadowCascadeClipsNear={value:T,type:"1fv"},w.shadowCascadeClipsFar={value:A,type:"1fv"}}}if(o.length>0){var C=o.map(x),w=t.shadowUniforms;w.spotLightShadowMaps={value:o,type:"tv"},w.spotLightMatrices={value:s,type:"m4v"},w.spotLightShadowMapSizes={value:C,type:"1fv"}}f.length>0&&(w.pointLightShadowMaps={value:f,type:"tv"})},renderDirectionalLightShadow:function(){var e=new c4,t=new Bt,r=new Ti,n=new Bt,a=new Bt,i=new Bt,o=new Bt;return function(s,l,u,c,f,d,h){var v=this._getDepthMaterial(c),p={getMaterial:function(X){return X.shadowDepthMaterial||v},isMaterialChanged:rW,getUniform:xD,ifRender:function(X){return X.castShadow},sortCompare:f0.opaqueSortCompare};if(!l.viewBoundingBoxLastFrame.isFinite()){var g=l.getBoundingBox();l.viewBoundingBoxLastFrame.copy(g).applyTransform(u.viewMatrix)}var m=Math.min(-l.viewBoundingBoxLastFrame.min.z,u.far),y=Math.max(-l.viewBoundingBoxLastFrame.max.z,u.near),_=this._getDirectionalLightCamera(c,l,u),w=i.array;o.copy(_.projectionMatrix),ut.invert(a.array,_.worldTransform.array),ut.multiply(a.array,a.array,u.worldTransform.array),ut.multiply(w,o.array,a.array);for(var x=[],S=u instanceof Sa,T=(u.near+u.far)/(u.near-u.far),A=2*u.near*u.far/(u.near-u.far),C=0;C<=c.shadowCascade;C++){var M=y*Math.pow(m/y,C/c.shadowCascade),E=y+(m-y)*C/c.shadowCascade,D=M*c.cascadeSplitLogFactor+E*(1-c.cascadeSplitLogFactor);x.push(D),f.push(-(-D*T+A)/-D)}var P=this._getTexture(c,c.shadowCascade);h.push(P);var L=s.viewport,I=s.gl;this._frameBuffer.attach(P),this._frameBuffer.bind(s),I.clear(I.COLOR_BUFFER_BIT|I.DEPTH_BUFFER_BIT);for(var C=0;CM?C>E?v[S>0?"px":"nx"]=!0:v[A>0?"pz":"nz"]=!0:M>E?v[T>0?"py":"ny"]=!0:v[A>0?"pz":"nz"]=!0}for(var w=0;w0){var t=this.outputs[e];t.keepLastFrame?(this._prevOutputTextures[e]&&this._compositor.releaseTexture(this._prevOutputTextures[e]),this._prevOutputTextures[e]=this._outputTextures[e]):this._compositor.releaseTexture(this._outputTextures[e])}}});const k_=_yt;var byt=zi.extend(function(){return{nodes:[]}},{dirty:function(){this._dirty=!0},addNode:function(e){this.nodes.indexOf(e)>=0||(this.nodes.push(e),this._dirty=!0)},removeNode:function(e){typeof e=="string"&&(e=this.getNodeByName(e));var t=this.nodes.indexOf(e);t>=0&&(this.nodes.splice(t,1),this._dirty=!0)},getNodeByName:function(e){for(var t=0;t=t.COLOR_ATTACHMENT0&&l<=t.COLOR_ATTACHMENT0+8&&c.push(l);u.drawBuffersEXT(c)}e.saveClear(),e.clearBit=$e.DEPTH_BUFFER_BIT|$e.COLOR_BUFFER_BIT,r=e.render(this.scene,this.camera,!this.autoUpdateScene,this.preZ),e.restoreClear(),n.unbind(e)}this.trigger("afterrender",r),this._rendering=!1,this._rendered=!0}});const Ayt=xyt;var Tyt=k_.extend(function(){return{texture:null,outputs:{color:{}}}},function(){},{getOutput:function(e,t){return this.texture},beforeFrame:function(){},afterFrame:function(){}});const Cyt=Tyt;var Eyt=k_.extend(function(){return{name:"",inputs:{},outputs:null,shader:"",inputLinks:{},outputLinks:{},pass:null,_prevOutputTextures:{},_outputTextures:{},_outputReferences:{},_rendering:!1,_rendered:!1,_compositor:null}},function(){var e=new sa({fragment:this.shader});this.pass=e},{render:function(e,t){this.trigger("beforerender",e),this._rendering=!0;var r=e.gl;for(var n in this.inputLinks){var a=this.inputLinks[n],i=a.node.getOutput(e,a.pin);this.pass.setUniform(n,i)}if(!this.outputs)this.pass.outputs=null,this._compositor.getFrameBuffer().unbind(e),this.pass.render(e,t);else{this.pass.outputs={};var o={};for(var s in this.outputs){var l=this.updateParameter(s,e);isNaN(l.width)&&this.updateParameter(s,e);var u=this.outputs[s],c=this._compositor.allocateTexture(l);this._outputTextures[s]=c;var f=u.attachment||r.COLOR_ATTACHMENT0;typeof f=="string"&&(f=r[f]),o[f]=c}this._compositor.getFrameBuffer().bind(e);for(var f in o)this._compositor.getFrameBuffer().attach(o[f],f);this.pass.render(e),this._compositor.getFrameBuffer().updateMipmap(e)}for(var n in this.inputLinks){var a=this.inputLinks[n];a.node.removeReference(a.pin)}this._rendering=!1,this._rendered=!0,this.trigger("afterrender",e)},updateParameter:function(e,t){var r=this.outputs[e],n=r.parameters,a=r._parametersCopy;if(a||(a=r._parametersCopy={}),n)for(var i in n)i!=="width"&&i!=="height"&&(a[i]=n[i]);var o,s;return typeof n.width=="function"?o=n.width.call(this,t):o=n.width,typeof n.height=="function"?s=n.height.call(this,t):s=n.height,o=Math.ceil(o),s=Math.ceil(s),(a.width!==o||a.height!==s)&&this._outputTextures[e]&&this._outputTextures[e].dispose(t),a.width=o,a.height=s,a},setParameter:function(e,t){this.pass.setUniform(e,t)},getParameter:function(e){return this.pass.getUniform(e)},setParameters:function(e){for(var t in e)this.setParameter(t,e[t])},define:function(e,t){this.pass.material.define("fragment",e,t)},undefine:function(e){this.pass.material.undefine("fragment",e)},removeReference:function(e){if(this._outputReferences[e]--,this._outputReferences[e]===0){var t=this.outputs[e];t.keepLastFrame?(this._prevOutputTextures[e]&&this._compositor.releaseTexture(this._prevOutputTextures[e]),this._prevOutputTextures[e]=this._outputTextures[e]):this._compositor.releaseTexture(this._outputTextures[e])}},clear:function(){k_.prototype.clear.call(this),this.pass.material.disableTexturesAll()}});const Myt=Eyt,Dyt=`@export clay.compositor.coloradjust varying vec2 v_Texcoord; uniform sampler2D texture; uniform float brightness : 0.0; uniform float contrast : 1.0; uniform float exposure : 0.0; uniform float gamma : 1.0; uniform float saturation : 1.0; const vec3 w = vec3(0.2125, 0.7154, 0.0721); void main() { vec4 tex = texture2D( texture, v_Texcoord); vec3 color = clamp(tex.rgb + vec3(brightness), 0.0, 1.0); color = clamp( (color-vec3(0.5))*contrast+vec3(0.5), 0.0, 1.0); color = clamp( color * pow(2.0, exposure), 0.0, 1.0); color = clamp( pow(color, vec3(gamma)), 0.0, 1.0); float luminance = dot( color, w ); color = mix(vec3(luminance), color, saturation); gl_FragColor = vec4(color, tex.a); } @end @export clay.compositor.brightness varying vec2 v_Texcoord; uniform sampler2D texture; uniform float brightness : 0.0; void main() { vec4 tex = texture2D( texture, v_Texcoord); vec3 color = tex.rgb + vec3(brightness); gl_FragColor = vec4(color, tex.a); } @end @export clay.compositor.contrast varying vec2 v_Texcoord; uniform sampler2D texture; uniform float contrast : 1.0; void main() { vec4 tex = texture2D( texture, v_Texcoord); vec3 color = (tex.rgb-vec3(0.5))*contrast+vec3(0.5); gl_FragColor = vec4(color, tex.a); } @end @export clay.compositor.exposure varying vec2 v_Texcoord; uniform sampler2D texture; uniform float exposure : 0.0; void main() { vec4 tex = texture2D(texture, v_Texcoord); vec3 color = tex.rgb * pow(2.0, exposure); gl_FragColor = vec4(color, tex.a); } @end @export clay.compositor.gamma varying vec2 v_Texcoord; uniform sampler2D texture; uniform float gamma : 1.0; void main() { vec4 tex = texture2D(texture, v_Texcoord); vec3 color = pow(tex.rgb, vec3(gamma)); gl_FragColor = vec4(color, tex.a); } @end @export clay.compositor.saturation varying vec2 v_Texcoord; uniform sampler2D texture; uniform float saturation : 1.0; const vec3 w = vec3(0.2125, 0.7154, 0.0721); void main() { vec4 tex = texture2D(texture, v_Texcoord); vec3 color = tex.rgb; float luminance = dot(color, w); color = mix(vec3(luminance), color, saturation); gl_FragColor = vec4(color, tex.a); } @end`,hie=`@export clay.compositor.kernel.gaussian_9 float gaussianKernel[9]; gaussianKernel[0] = 0.07; gaussianKernel[1] = 0.09; gaussianKernel[2] = 0.12; gaussianKernel[3] = 0.14; gaussianKernel[4] = 0.16; gaussianKernel[5] = 0.14; gaussianKernel[6] = 0.12; gaussianKernel[7] = 0.09; gaussianKernel[8] = 0.07; @end @export clay.compositor.kernel.gaussian_13 float gaussianKernel[13]; gaussianKernel[0] = 0.02; gaussianKernel[1] = 0.03; gaussianKernel[2] = 0.06; gaussianKernel[3] = 0.08; gaussianKernel[4] = 0.11; gaussianKernel[5] = 0.13; gaussianKernel[6] = 0.14; gaussianKernel[7] = 0.13; gaussianKernel[8] = 0.11; gaussianKernel[9] = 0.08; gaussianKernel[10] = 0.06; gaussianKernel[11] = 0.03; gaussianKernel[12] = 0.02; @end @export clay.compositor.gaussian_blur #define SHADER_NAME gaussian_blur uniform sampler2D texture;varying vec2 v_Texcoord; uniform float blurSize : 2.0; uniform vec2 textureSize : [512.0, 512.0]; uniform float blurDir : 0.0; @import clay.util.rgbm @import clay.util.clamp_sample void main (void) { @import clay.compositor.kernel.gaussian_9 vec2 off = blurSize / textureSize; off *= vec2(1.0 - blurDir, blurDir); vec4 sum = vec4(0.0); float weightAll = 0.0; for (int i = 0; i < 9; i++) { float w = gaussianKernel[i]; vec4 texel = decodeHDR(clampSample(texture, v_Texcoord + float(i - 4) * off)); sum += texel * w; weightAll += w; } gl_FragColor = encodeHDR(sum / max(weightAll, 0.01)); } @end `,Pyt=`@export clay.compositor.hdr.log_lum varying vec2 v_Texcoord; uniform sampler2D texture; const vec3 w = vec3(0.2125, 0.7154, 0.0721); @import clay.util.rgbm void main() { vec4 tex = decodeHDR(texture2D(texture, v_Texcoord)); float luminance = dot(tex.rgb, w); luminance = log(luminance + 0.001); gl_FragColor = encodeHDR(vec4(vec3(luminance), 1.0)); } @end @export clay.compositor.hdr.lum_adaption varying vec2 v_Texcoord; uniform sampler2D adaptedLum; uniform sampler2D currentLum; uniform float frameTime : 0.02; @import clay.util.rgbm void main() { float fAdaptedLum = decodeHDR(texture2D(adaptedLum, vec2(0.5, 0.5))).r; float fCurrentLum = exp(encodeHDR(texture2D(currentLum, vec2(0.5, 0.5))).r); fAdaptedLum += (fCurrentLum - fAdaptedLum) * (1.0 - pow(0.98, 30.0 * frameTime)); gl_FragColor = encodeHDR(vec4(vec3(fAdaptedLum), 1.0)); } @end @export clay.compositor.lum varying vec2 v_Texcoord; uniform sampler2D texture; const vec3 w = vec3(0.2125, 0.7154, 0.0721); void main() { vec4 tex = texture2D( texture, v_Texcoord ); float luminance = dot(tex.rgb, w); gl_FragColor = vec4(vec3(luminance), 1.0); } @end`,vie=` @export clay.compositor.lut varying vec2 v_Texcoord; uniform sampler2D texture; uniform sampler2D lookup; void main() { vec4 tex = texture2D(texture, v_Texcoord); float blueColor = tex.b * 63.0; vec2 quad1; quad1.y = floor(floor(blueColor) / 8.0); quad1.x = floor(blueColor) - (quad1.y * 8.0); vec2 quad2; quad2.y = floor(ceil(blueColor) / 8.0); quad2.x = ceil(blueColor) - (quad2.y * 8.0); vec2 texPos1; texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.r); texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.g); vec2 texPos2; texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.r); texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.g); vec4 newColor1 = texture2D(lookup, texPos1); vec4 newColor2 = texture2D(lookup, texPos2); vec4 newColor = mix(newColor1, newColor2, fract(blueColor)); gl_FragColor = vec4(newColor.rgb, tex.w); } @end`,Lyt=`@export clay.compositor.vignette #define OUTPUT_ALPHA varying vec2 v_Texcoord; uniform sampler2D texture; uniform float darkness: 1; uniform float offset: 1; @import clay.util.rgbm void main() { vec4 texel = decodeHDR(texture2D(texture, v_Texcoord)); gl_FragColor.rgb = texel.rgb; vec2 uv = (v_Texcoord - vec2(0.5)) * vec2(offset); gl_FragColor = encodeHDR(vec4(mix(texel.rgb, vec3(1.0 - darkness), dot(uv, uv)), texel.a)); } @end`,pie=`@export clay.compositor.output #define OUTPUT_ALPHA varying vec2 v_Texcoord; uniform sampler2D texture; @import clay.util.rgbm void main() { vec4 tex = decodeHDR(texture2D(texture, v_Texcoord)); gl_FragColor.rgb = tex.rgb; #ifdef OUTPUT_ALPHA gl_FragColor.a = tex.a; #else gl_FragColor.a = 1.0; #endif gl_FragColor = encodeHDR(gl_FragColor); #ifdef PREMULTIPLY_ALPHA gl_FragColor.rgb *= gl_FragColor.a; #endif } @end`,gie=`@export clay.compositor.bright uniform sampler2D texture; uniform float threshold : 1; uniform float scale : 1.0; uniform vec2 textureSize: [512, 512]; varying vec2 v_Texcoord; const vec3 lumWeight = vec3(0.2125, 0.7154, 0.0721); @import clay.util.rgbm vec4 median(vec4 a, vec4 b, vec4 c) { return a + b + c - min(min(a, b), c) - max(max(a, b), c); } void main() { vec4 texel = decodeHDR(texture2D(texture, v_Texcoord)); #ifdef ANTI_FLICKER vec3 d = 1.0 / textureSize.xyx * vec3(1.0, 1.0, 0.0); vec4 s1 = decodeHDR(texture2D(texture, v_Texcoord - d.xz)); vec4 s2 = decodeHDR(texture2D(texture, v_Texcoord + d.xz)); vec4 s3 = decodeHDR(texture2D(texture, v_Texcoord - d.zy)); vec4 s4 = decodeHDR(texture2D(texture, v_Texcoord + d.zy)); texel = median(median(texel, s1, s2), s3, s4); #endif float lum = dot(texel.rgb , lumWeight); vec4 color; if (lum > threshold && texel.a > 0.0) { color = vec4(texel.rgb * scale, texel.a * scale); } else { color = vec4(0.0); } gl_FragColor = encodeHDR(color); } @end `,mie=`@export clay.compositor.downsample uniform sampler2D texture; uniform vec2 textureSize : [512, 512]; varying vec2 v_Texcoord; @import clay.util.rgbm float brightness(vec3 c) { return max(max(c.r, c.g), c.b); } @import clay.util.clamp_sample void main() { vec4 d = vec4(-1.0, -1.0, 1.0, 1.0) / textureSize.xyxy; #ifdef ANTI_FLICKER vec3 s1 = decodeHDR(clampSample(texture, v_Texcoord + d.xy)).rgb; vec3 s2 = decodeHDR(clampSample(texture, v_Texcoord + d.zy)).rgb; vec3 s3 = decodeHDR(clampSample(texture, v_Texcoord + d.xw)).rgb; vec3 s4 = decodeHDR(clampSample(texture, v_Texcoord + d.zw)).rgb; float s1w = 1.0 / (brightness(s1) + 1.0); float s2w = 1.0 / (brightness(s2) + 1.0); float s3w = 1.0 / (brightness(s3) + 1.0); float s4w = 1.0 / (brightness(s4) + 1.0); float oneDivideSum = 1.0 / (s1w + s2w + s3w + s4w); vec4 color = vec4( (s1 * s1w + s2 * s2w + s3 * s3w + s4 * s4w) * oneDivideSum, 1.0 ); #else vec4 color = decodeHDR(clampSample(texture, v_Texcoord + d.xy)); color += decodeHDR(clampSample(texture, v_Texcoord + d.zy)); color += decodeHDR(clampSample(texture, v_Texcoord + d.xw)); color += decodeHDR(clampSample(texture, v_Texcoord + d.zw)); color *= 0.25; #endif gl_FragColor = encodeHDR(color); } @end`,yie=` @export clay.compositor.upsample #define HIGH_QUALITY uniform sampler2D texture; uniform vec2 textureSize : [512, 512]; uniform float sampleScale: 0.5; varying vec2 v_Texcoord; @import clay.util.rgbm @import clay.util.clamp_sample void main() { #ifdef HIGH_QUALITY vec4 d = vec4(1.0, 1.0, -1.0, 0.0) / textureSize.xyxy * sampleScale; vec4 s; s = decodeHDR(clampSample(texture, v_Texcoord - d.xy)); s += decodeHDR(clampSample(texture, v_Texcoord - d.wy)) * 2.0; s += decodeHDR(clampSample(texture, v_Texcoord - d.zy)); s += decodeHDR(clampSample(texture, v_Texcoord + d.zw)) * 2.0; s += decodeHDR(clampSample(texture, v_Texcoord )) * 4.0; s += decodeHDR(clampSample(texture, v_Texcoord + d.xw)) * 2.0; s += decodeHDR(clampSample(texture, v_Texcoord + d.zy)); s += decodeHDR(clampSample(texture, v_Texcoord + d.wy)) * 2.0; s += decodeHDR(clampSample(texture, v_Texcoord + d.xy)); gl_FragColor = encodeHDR(s / 16.0); #else vec4 d = vec4(-1.0, -1.0, +1.0, +1.0) / textureSize.xyxy; vec4 s; s = decodeHDR(clampSample(texture, v_Texcoord + d.xy)); s += decodeHDR(clampSample(texture, v_Texcoord + d.zy)); s += decodeHDR(clampSample(texture, v_Texcoord + d.xw)); s += decodeHDR(clampSample(texture, v_Texcoord + d.zw)); gl_FragColor = encodeHDR(s / 4.0); #endif } @end`,_ie=`@export clay.compositor.hdr.composite #define TONEMAPPING uniform sampler2D texture; #ifdef BLOOM_ENABLED uniform sampler2D bloom; #endif #ifdef LENSFLARE_ENABLED uniform sampler2D lensflare; uniform sampler2D lensdirt; #endif #ifdef LUM_ENABLED uniform sampler2D lum; #endif #ifdef LUT_ENABLED uniform sampler2D lut; #endif #ifdef COLOR_CORRECTION uniform float brightness : 0.0; uniform float contrast : 1.0; uniform float saturation : 1.0; #endif #ifdef VIGNETTE uniform float vignetteDarkness: 1.0; uniform float vignetteOffset: 1.0; #endif uniform float exposure : 1.0; uniform float bloomIntensity : 0.25; uniform float lensflareIntensity : 1; varying vec2 v_Texcoord; @import clay.util.srgb vec3 ACESToneMapping(vec3 color) { const float A = 2.51; const float B = 0.03; const float C = 2.43; const float D = 0.59; const float E = 0.14; return (color * (A * color + B)) / (color * (C * color + D) + E); } float eyeAdaption(float fLum) { return mix(0.2, fLum, 0.5); } #ifdef LUT_ENABLED vec3 lutTransform(vec3 color) { float blueColor = color.b * 63.0; vec2 quad1; quad1.y = floor(floor(blueColor) / 8.0); quad1.x = floor(blueColor) - (quad1.y * 8.0); vec2 quad2; quad2.y = floor(ceil(blueColor) / 8.0); quad2.x = ceil(blueColor) - (quad2.y * 8.0); vec2 texPos1; texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r); texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g); vec2 texPos2; texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r); texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g); vec4 newColor1 = texture2D(lut, texPos1); vec4 newColor2 = texture2D(lut, texPos2); vec4 newColor = mix(newColor1, newColor2, fract(blueColor)); return newColor.rgb; } #endif @import clay.util.rgbm void main() { vec4 texel = vec4(0.0); vec4 originalTexel = vec4(0.0); #ifdef TEXTURE_ENABLED texel = decodeHDR(texture2D(texture, v_Texcoord)); originalTexel = texel; #endif #ifdef BLOOM_ENABLED vec4 bloomTexel = decodeHDR(texture2D(bloom, v_Texcoord)); texel.rgb += bloomTexel.rgb * bloomIntensity; texel.a += bloomTexel.a * bloomIntensity; #endif #ifdef LENSFLARE_ENABLED texel += decodeHDR(texture2D(lensflare, v_Texcoord)) * texture2D(lensdirt, v_Texcoord) * lensflareIntensity; #endif texel.a = min(texel.a, 1.0); #ifdef LUM_ENABLED float fLum = texture2D(lum, vec2(0.5, 0.5)).r; float adaptedLumDest = 3.0 / (max(0.1, 1.0 + 10.0*eyeAdaption(fLum))); float exposureBias = adaptedLumDest * exposure; #else float exposureBias = exposure; #endif #ifdef TONEMAPPING texel.rgb *= exposureBias; texel.rgb = ACESToneMapping(texel.rgb); #endif texel = linearTosRGB(texel); #ifdef LUT_ENABLED texel.rgb = lutTransform(clamp(texel.rgb,vec3(0.0),vec3(1.0))); #endif #ifdef COLOR_CORRECTION texel.rgb = clamp(texel.rgb + vec3(brightness), 0.0, 1.0); texel.rgb = clamp((texel.rgb - vec3(0.5))*contrast+vec3(0.5), 0.0, 1.0); float lum = dot(texel.rgb, vec3(0.2125, 0.7154, 0.0721)); texel.rgb = mix(vec3(lum), texel.rgb, saturation); #endif #ifdef VIGNETTE vec2 uv = (v_Texcoord - vec2(0.5)) * vec2(vignetteOffset); texel.rgb = mix(texel.rgb, vec3(1.0 - vignetteDarkness), dot(uv, uv)); #endif gl_FragColor = encodeHDR(texel); #ifdef DEBUG #if DEBUG == 1 gl_FragColor = encodeHDR(decodeHDR(texture2D(texture, v_Texcoord))); #elif DEBUG == 2 gl_FragColor = encodeHDR(decodeHDR(texture2D(bloom, v_Texcoord)) * bloomIntensity); #elif DEBUG == 3 gl_FragColor = encodeHDR(decodeHDR(texture2D(lensflare, v_Texcoord) * lensflareIntensity)); #endif #endif if (originalTexel.a <= 0.01 && gl_FragColor.a > 1e-5) { gl_FragColor.a = dot(gl_FragColor.rgb, vec3(0.2125, 0.7154, 0.0721)); } #ifdef PREMULTIPLY_ALPHA gl_FragColor.rgb *= gl_FragColor.a; #endif } @end`,Iyt=`@export clay.compositor.lensflare #define SAMPLE_NUMBER 8 uniform sampler2D texture; uniform sampler2D lenscolor; uniform vec2 textureSize : [512, 512]; uniform float dispersal : 0.3; uniform float haloWidth : 0.4; uniform float distortion : 1.0; varying vec2 v_Texcoord; @import clay.util.rgbm vec4 textureDistorted( in vec2 texcoord, in vec2 direction, in vec3 distortion ) { return vec4( decodeHDR(texture2D(texture, texcoord + direction * distortion.r)).r, decodeHDR(texture2D(texture, texcoord + direction * distortion.g)).g, decodeHDR(texture2D(texture, texcoord + direction * distortion.b)).b, 1.0 ); } void main() { vec2 texcoord = -v_Texcoord + vec2(1.0); vec2 textureOffset = 1.0 / textureSize; vec2 ghostVec = (vec2(0.5) - texcoord) * dispersal; vec2 haloVec = normalize(ghostVec) * haloWidth; vec3 distortion = vec3(-textureOffset.x * distortion, 0.0, textureOffset.x * distortion); vec4 result = vec4(0.0); for (int i = 0; i < SAMPLE_NUMBER; i++) { vec2 offset = fract(texcoord + ghostVec * float(i)); float weight = length(vec2(0.5) - offset) / length(vec2(0.5)); weight = pow(1.0 - weight, 10.0); result += textureDistorted(offset, normalize(ghostVec), distortion) * weight; } result *= texture2D(lenscolor, vec2(length(vec2(0.5) - texcoord)) / length(vec2(0.5))); float weight = length(vec2(0.5) - fract(texcoord + haloVec)) / length(vec2(0.5)); weight = pow(1.0 - weight, 10.0); vec2 offset = fract(texcoord + haloVec); result += textureDistorted(offset, normalize(ghostVec), distortion) * weight; gl_FragColor = result; } @end`,bie=`@export clay.compositor.blend #define SHADER_NAME blend #ifdef TEXTURE1_ENABLED uniform sampler2D texture1; uniform float weight1 : 1.0; #endif #ifdef TEXTURE2_ENABLED uniform sampler2D texture2; uniform float weight2 : 1.0; #endif #ifdef TEXTURE3_ENABLED uniform sampler2D texture3; uniform float weight3 : 1.0; #endif #ifdef TEXTURE4_ENABLED uniform sampler2D texture4; uniform float weight4 : 1.0; #endif #ifdef TEXTURE5_ENABLED uniform sampler2D texture5; uniform float weight5 : 1.0; #endif #ifdef TEXTURE6_ENABLED uniform sampler2D texture6; uniform float weight6 : 1.0; #endif varying vec2 v_Texcoord; @import clay.util.rgbm void main() { vec4 tex = vec4(0.0); #ifdef TEXTURE1_ENABLED tex += decodeHDR(texture2D(texture1, v_Texcoord)) * weight1; #endif #ifdef TEXTURE2_ENABLED tex += decodeHDR(texture2D(texture2, v_Texcoord)) * weight2; #endif #ifdef TEXTURE3_ENABLED tex += decodeHDR(texture2D(texture3, v_Texcoord)) * weight3; #endif #ifdef TEXTURE4_ENABLED tex += decodeHDR(texture2D(texture4, v_Texcoord)) * weight4; #endif #ifdef TEXTURE5_ENABLED tex += decodeHDR(texture2D(texture5, v_Texcoord)) * weight5; #endif #ifdef TEXTURE6_ENABLED tex += decodeHDR(texture2D(texture6, v_Texcoord)) * weight6; #endif gl_FragColor = encodeHDR(tex); } @end`,wie=`@export clay.compositor.fxaa uniform sampler2D texture; uniform vec4 viewport : VIEWPORT; varying vec2 v_Texcoord; #define FXAA_REDUCE_MIN (1.0/128.0) #define FXAA_REDUCE_MUL (1.0/8.0) #define FXAA_SPAN_MAX 8.0 @import clay.util.rgbm void main() { vec2 resolution = 1.0 / viewport.zw; vec3 rgbNW = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( -1.0, -1.0 ) ) * resolution ) ).xyz; vec3 rgbNE = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( 1.0, -1.0 ) ) * resolution ) ).xyz; vec3 rgbSW = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( -1.0, 1.0 ) ) * resolution ) ).xyz; vec3 rgbSE = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( 1.0, 1.0 ) ) * resolution ) ).xyz; vec4 rgbaM = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution ) ); vec3 rgbM = rgbaM.xyz; float opacity = rgbaM.w; vec3 luma = vec3( 0.299, 0.587, 0.114 ); float lumaNW = dot( rgbNW, luma ); float lumaNE = dot( rgbNE, luma ); float lumaSW = dot( rgbSW, luma ); float lumaSE = dot( rgbSE, luma ); float lumaM = dot( rgbM, luma ); float lumaMin = min( lumaM, min( min( lumaNW, lumaNE ), min( lumaSW, lumaSE ) ) ); float lumaMax = max( lumaM, max( max( lumaNW, lumaNE) , max( lumaSW, lumaSE ) ) ); vec2 dir; dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE)); dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE)); float dirReduce = max( ( lumaNW + lumaNE + lumaSW + lumaSE ) * ( 0.25 * FXAA_REDUCE_MUL ), FXAA_REDUCE_MIN ); float rcpDirMin = 1.0 / ( min( abs( dir.x ), abs( dir.y ) ) + dirReduce ); dir = min( vec2( FXAA_SPAN_MAX, FXAA_SPAN_MAX), max( vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX), dir * rcpDirMin)) * resolution; vec3 rgbA = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * ( 1.0 / 3.0 - 0.5 ) ) ).xyz; rgbA += decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * ( 2.0 / 3.0 - 0.5 ) ) ).xyz; rgbA *= 0.5; vec3 rgbB = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * -0.5 ) ).xyz; rgbB += decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * 0.5 ) ).xyz; rgbB *= 0.25; rgbB += rgbA * 0.5; float lumaB = dot( rgbB, luma ); if ( ( lumaB < lumaMin ) || ( lumaB > lumaMax ) ) { gl_FragColor = vec4( rgbA, opacity ); } else { gl_FragColor = vec4( rgbB, opacity ); } } @end`;function Ryt(e){e.import(Dyt),e.import(hie),e.import(Pyt),e.import(vie),e.import(Lyt),e.import(pie),e.import(gie),e.import(mie),e.import(yie),e.import(_ie),e.import(Iyt),e.import(bie),e.import(wie)}Ryt(nt);var Oyt=/^#source\((.*?)\)/;function kyt(e,t){var r=new Syt;t=t||{};var n={textures:{},parameters:{}},a=function(s,l){for(var u=0;u0;)r=r+n*(a%t),a=Math.floor(a/t),n=n/t;return r}const Gyt=`@export ecgl.ssao.estimate uniform sampler2D depthTex; uniform sampler2D normalTex; uniform sampler2D noiseTex; uniform vec2 depthTexSize; uniform vec2 noiseTexSize; uniform mat4 projection; uniform mat4 projectionInv; uniform mat4 viewInverseTranspose; uniform vec3 kernel[KERNEL_SIZE]; uniform float radius : 1; uniform float power : 1; uniform float bias: 1e-2; uniform float intensity: 1.0; varying vec2 v_Texcoord; float ssaoEstimator(in vec3 originPos, in mat3 kernelBasis) { float occlusion = 0.0; for (int i = 0; i < KERNEL_SIZE; i++) { vec3 samplePos = kernel[i]; #ifdef NORMALTEX_ENABLED samplePos = kernelBasis * samplePos; #endif samplePos = samplePos * radius + originPos; vec4 texCoord = projection * vec4(samplePos, 1.0); texCoord.xy /= texCoord.w; vec4 depthTexel = texture2D(depthTex, texCoord.xy * 0.5 + 0.5); float sampleDepth = depthTexel.r * 2.0 - 1.0; if (projection[3][3] == 0.0) { sampleDepth = projection[3][2] / (sampleDepth * projection[2][3] - projection[2][2]); } else { sampleDepth = (sampleDepth - projection[3][2]) / projection[2][2]; } float rangeCheck = smoothstep(0.0, 1.0, radius / abs(originPos.z - sampleDepth)); occlusion += rangeCheck * step(samplePos.z, sampleDepth - bias); } #ifdef NORMALTEX_ENABLED occlusion = 1.0 - occlusion / float(KERNEL_SIZE); #else occlusion = 1.0 - clamp((occlusion / float(KERNEL_SIZE) - 0.6) * 2.5, 0.0, 1.0); #endif return pow(occlusion, power); } void main() { vec4 depthTexel = texture2D(depthTex, v_Texcoord); #ifdef NORMALTEX_ENABLED vec4 tex = texture2D(normalTex, v_Texcoord); if (dot(tex.rgb, tex.rgb) == 0.0) { gl_FragColor = vec4(1.0); return; } vec3 N = tex.rgb * 2.0 - 1.0; N = (viewInverseTranspose * vec4(N, 0.0)).xyz; vec2 noiseTexCoord = depthTexSize / vec2(noiseTexSize) * v_Texcoord; vec3 rvec = texture2D(noiseTex, noiseTexCoord).rgb * 2.0 - 1.0; vec3 T = normalize(rvec - N * dot(rvec, N)); vec3 BT = normalize(cross(N, T)); mat3 kernelBasis = mat3(T, BT, N); #else if (depthTexel.r > 0.99999) { gl_FragColor = vec4(1.0); return; } mat3 kernelBasis; #endif float z = depthTexel.r * 2.0 - 1.0; vec4 projectedPos = vec4(v_Texcoord * 2.0 - 1.0, z, 1.0); vec4 p4 = projectionInv * projectedPos; vec3 position = p4.xyz / p4.w; float ao = ssaoEstimator(position, kernelBasis); ao = clamp(1.0 - (1.0 - ao) * intensity, 0.0, 1.0); gl_FragColor = vec4(vec3(ao), 1.0); } @end @export ecgl.ssao.blur #define SHADER_NAME SSAO_BLUR uniform sampler2D ssaoTexture; #ifdef NORMALTEX_ENABLED uniform sampler2D normalTex; #endif varying vec2 v_Texcoord; uniform vec2 textureSize; uniform float blurSize : 1.0; uniform int direction: 0.0; #ifdef DEPTHTEX_ENABLED uniform sampler2D depthTex; uniform mat4 projection; uniform float depthRange : 0.5; float getLinearDepth(vec2 coord) { float depth = texture2D(depthTex, coord).r * 2.0 - 1.0; return projection[3][2] / (depth * projection[2][3] - projection[2][2]); } #endif void main() { float kernel[5]; kernel[0] = 0.122581; kernel[1] = 0.233062; kernel[2] = 0.288713; kernel[3] = 0.233062; kernel[4] = 0.122581; vec2 off = vec2(0.0); if (direction == 0) { off[0] = blurSize / textureSize.x; } else { off[1] = blurSize / textureSize.y; } vec2 coord = v_Texcoord; float sum = 0.0; float weightAll = 0.0; #ifdef NORMALTEX_ENABLED vec3 centerNormal = texture2D(normalTex, v_Texcoord).rgb * 2.0 - 1.0; #endif #if defined(DEPTHTEX_ENABLED) float centerDepth = getLinearDepth(v_Texcoord); #endif for (int i = 0; i < 5; i++) { vec2 coord = clamp(v_Texcoord + vec2(float(i) - 2.0) * off, vec2(0.0), vec2(1.0)); float w = kernel[i]; #ifdef NORMALTEX_ENABLED vec3 normal = texture2D(normalTex, coord).rgb * 2.0 - 1.0; w *= clamp(dot(normal, centerNormal), 0.0, 1.0); #endif #ifdef DEPTHTEX_ENABLED float d = getLinearDepth(coord); w *= (1.0 - smoothstep(abs(centerDepth - d) / depthRange, 0.0, 1.0)); #endif weightAll += w; sum += texture2D(ssaoTexture, coord).r * w; } gl_FragColor = vec4(vec3(sum / weightAll), 1.0); } @end `;nt.import(Gyt);function xie(e){for(var t=new Uint8Array(e*e*4),r=0,n=new mt,a=0;a 0.999 ? vec3(1.0, 0.0, 0.0) : vec3(0.0, 1.0, 0.0); vec3 tangentX = normalize(cross(N, upVector)); vec3 tangentZ = cross(N, tangentX); return normalize(tangentX * H.x + N * H.y + tangentZ * H.z); } vec3 importanceSampleNormalGGX(float i, float roughness, vec3 N) { float p = fract((i + sampleOffset) / float(TOTAL_SAMPLES)); vec3 H = texture2D(normalDistribution,vec2(roughness, p)).rgb; return transformNormal(H, N); } float G_Smith(float g, float ndv, float ndl) { float roughness = 1.0 - g; float k = roughness * roughness / 2.0; float G1V = ndv / (ndv * (1.0 - k) + k); float G1L = ndl / (ndl * (1.0 - k) + k); return G1L * G1V; } vec3 F_Schlick(float ndv, vec3 spec) { return spec + (1.0 - spec) * pow(1.0 - ndv, 5.0); } #endif float fetchDepth(sampler2D depthTexture, vec2 uv) { vec4 depthTexel = texture2D(depthTexture, uv); return depthTexel.r * 2.0 - 1.0; } float linearDepth(float depth) { if (projection[3][3] == 0.0) { return projection[3][2] / (depth * projection[2][3] - projection[2][2]); } else { return (depth - projection[3][2]) / projection[2][2]; } } bool rayIntersectDepth(float rayZNear, float rayZFar, vec2 hitPixel) { if (rayZFar > rayZNear) { float t = rayZFar; rayZFar = rayZNear; rayZNear = t; } float cameraZ = linearDepth(fetchDepth(gBufferTexture2, hitPixel)); return rayZFar <= cameraZ && rayZNear >= cameraZ - zThicknessThreshold; } bool traceScreenSpaceRay( vec3 rayOrigin, vec3 rayDir, float jitter, out vec2 hitPixel, out vec3 hitPoint, out float iterationCount ) { float rayLength = ((rayOrigin.z + rayDir.z * maxRayDistance) > -nearZ) ? (-nearZ - rayOrigin.z) / rayDir.z : maxRayDistance; vec3 rayEnd = rayOrigin + rayDir * rayLength; vec4 H0 = projection * vec4(rayOrigin, 1.0); vec4 H1 = projection * vec4(rayEnd, 1.0); float k0 = 1.0 / H0.w, k1 = 1.0 / H1.w; vec3 Q0 = rayOrigin * k0, Q1 = rayEnd * k1; vec2 P0 = (H0.xy * k0 * 0.5 + 0.5) * viewportSize; vec2 P1 = (H1.xy * k1 * 0.5 + 0.5) * viewportSize; P1 += dot(P1 - P0, P1 - P0) < 0.0001 ? 0.01 : 0.0; vec2 delta = P1 - P0; bool permute = false; if (abs(delta.x) < abs(delta.y)) { permute = true; delta = delta.yx; P0 = P0.yx; P1 = P1.yx; } float stepDir = sign(delta.x); float invdx = stepDir / delta.x; vec3 dQ = (Q1 - Q0) * invdx; float dk = (k1 - k0) * invdx; vec2 dP = vec2(stepDir, delta.y * invdx); float strideScaler = 1.0 - min(1.0, -rayOrigin.z / pixelStrideZCutoff); float pixStride = 1.0 + strideScaler * pixelStride; dP *= pixStride; dQ *= pixStride; dk *= pixStride; vec4 pqk = vec4(P0, Q0.z, k0); vec4 dPQK = vec4(dP, dQ.z, dk); pqk += dPQK * jitter; float rayZFar = (dPQK.z * 0.5 + pqk.z) / (dPQK.w * 0.5 + pqk.w); float rayZNear; bool intersect = false; vec2 texelSize = 1.0 / viewportSize; iterationCount = 0.0; for (int i = 0; i < MAX_ITERATION; i++) { pqk += dPQK; rayZNear = rayZFar; rayZFar = (dPQK.z * 0.5 + pqk.z) / (dPQK.w * 0.5 + pqk.w); hitPixel = permute ? pqk.yx : pqk.xy; hitPixel *= texelSize; intersect = rayIntersectDepth(rayZNear, rayZFar, hitPixel); iterationCount += 1.0; dPQK *= 1.2; if (intersect) { break; } } Q0.xy += dQ.xy * iterationCount; Q0.z = pqk.z; hitPoint = Q0 / pqk.w; return intersect; } float calculateAlpha( float iterationCount, float reflectivity, vec2 hitPixel, vec3 hitPoint, float dist, vec3 rayDir ) { float alpha = clamp(reflectivity, 0.0, 1.0); alpha *= 1.0 - (iterationCount / float(MAX_ITERATION)); vec2 hitPixelNDC = hitPixel * 2.0 - 1.0; float maxDimension = min(1.0, max(abs(hitPixelNDC.x), abs(hitPixelNDC.y))); alpha *= 1.0 - max(0.0, maxDimension - screenEdgeFadeStart) / (1.0 - screenEdgeFadeStart); float _eyeFadeStart = eyeFadeStart; float _eyeFadeEnd = eyeFadeEnd; if (_eyeFadeStart > _eyeFadeEnd) { float tmp = _eyeFadeEnd; _eyeFadeEnd = _eyeFadeStart; _eyeFadeStart = tmp; } float eyeDir = clamp(rayDir.z, _eyeFadeStart, _eyeFadeEnd); alpha *= 1.0 - (eyeDir - _eyeFadeStart) / (_eyeFadeEnd - _eyeFadeStart); alpha *= 1.0 - clamp(dist / maxRayDistance, 0.0, 1.0); return alpha; } @import clay.util.rand @import clay.util.rgbm void main() { vec4 normalAndGloss = texture2D(gBufferTexture1, v_Texcoord); if (dot(normalAndGloss.rgb, vec3(1.0)) == 0.0) { discard; } float g = normalAndGloss.a; #if !defined(PHYSICALLY_CORRECT) if (g <= minGlossiness) { discard; } #endif float reflectivity = (g - minGlossiness) / (1.0 - minGlossiness); vec3 N = normalize(normalAndGloss.rgb * 2.0 - 1.0); N = normalize((toViewSpace * vec4(N, 0.0)).xyz); vec4 projectedPos = vec4(v_Texcoord * 2.0 - 1.0, fetchDepth(gBufferTexture2, v_Texcoord), 1.0); vec4 pos = projectionInv * projectedPos; vec3 rayOrigin = pos.xyz / pos.w; vec3 V = -normalize(rayOrigin); float ndv = clamp(dot(N, V), 0.0, 1.0); float iterationCount; float jitter = rand(fract(v_Texcoord + jitterOffset)); #ifdef PHYSICALLY_CORRECT vec4 color = vec4(vec3(0.0), 1.0); vec4 albedoMetalness = texture2D(gBufferTexture3, v_Texcoord); vec3 albedo = albedoMetalness.rgb; float m = albedoMetalness.a; vec3 diffuseColor = albedo * (1.0 - m); vec3 spec = mix(vec3(0.04), albedo, m); float jitter2 = rand(fract(v_Texcoord)) * float(TOTAL_SAMPLES); for (int i = 0; i < SAMPLE_PER_FRAME; i++) { vec3 H = importanceSampleNormalGGX(float(i) + jitter2, 1.0 - g, N); vec3 rayDir = normalize(reflect(-V, H)); #else vec3 rayDir = normalize(reflect(-V, N)); #endif vec2 hitPixel; vec3 hitPoint; bool intersect = traceScreenSpaceRay(rayOrigin, rayDir, jitter, hitPixel, hitPoint, iterationCount); float dist = distance(rayOrigin, hitPoint); vec3 hitNormal = texture2D(gBufferTexture1, hitPixel).rgb * 2.0 - 1.0; hitNormal = normalize((toViewSpace * vec4(hitNormal, 0.0)).xyz); #ifdef PHYSICALLY_CORRECT float ndl = clamp(dot(N, rayDir), 0.0, 1.0); float vdh = clamp(dot(V, H), 0.0, 1.0); float ndh = clamp(dot(N, H), 0.0, 1.0); vec3 litTexel = vec3(0.0); if (dot(hitNormal, rayDir) < 0.0 && intersect) { litTexel = texture2D(sourceTexture, hitPixel).rgb; litTexel *= pow(clamp(1.0 - dist / 200.0, 0.0, 1.0), 3.0); } else { #ifdef SPECULARCUBEMAP_ENABLED vec3 rayDirW = normalize(toWorldSpace * vec4(rayDir, 0.0)).rgb; litTexel = RGBMDecode(textureCubeLodEXT(specularCubemap, rayDirW, 0.0), 8.12).rgb * specularIntensity; #endif } color.rgb += ndl * litTexel * ( F_Schlick(ndl, spec) * G_Smith(g, ndv, ndl) * vdh / (ndh * ndv + 0.001) ); } color.rgb /= float(SAMPLE_PER_FRAME); #else #if !defined(SPECULARCUBEMAP_ENABLED) if (dot(hitNormal, rayDir) >= 0.0) { discard; } if (!intersect) { discard; } #endif float alpha = clamp(calculateAlpha(iterationCount, reflectivity, hitPixel, hitPoint, dist, rayDir), 0.0, 1.0); vec4 color = texture2D(sourceTexture, hitPixel); color.rgb *= alpha; #ifdef SPECULARCUBEMAP_ENABLED vec3 rayDirW = normalize(toWorldSpace * vec4(rayDir, 0.0)).rgb; alpha = alpha * (intersect ? 1.0 : 0.0); float bias = (1.0 -g) * 5.0; color.rgb += (1.0 - alpha) * RGBMDecode(textureCubeLodEXT(specularCubemap, rayDirW, bias), 8.12).rgb * specularIntensity; #endif #endif gl_FragColor = encodeHDR(color); } @end @export ecgl.ssr.blur uniform sampler2D texture; uniform sampler2D gBufferTexture1; uniform sampler2D gBufferTexture2; uniform mat4 projection; uniform float depthRange : 0.05; varying vec2 v_Texcoord; uniform vec2 textureSize; uniform float blurSize : 1.0; #ifdef BLEND #ifdef SSAOTEX_ENABLED uniform sampler2D ssaoTex; #endif uniform sampler2D sourceTexture; #endif float getLinearDepth(vec2 coord) { float depth = texture2D(gBufferTexture2, coord).r * 2.0 - 1.0; return projection[3][2] / (depth * projection[2][3] - projection[2][2]); } @import clay.util.rgbm void main() { @import clay.compositor.kernel.gaussian_9 vec4 centerNTexel = texture2D(gBufferTexture1, v_Texcoord); float g = centerNTexel.a; float maxBlurSize = clamp(1.0 - g, 0.0, 1.0) * blurSize; #ifdef VERTICAL vec2 off = vec2(0.0, maxBlurSize / textureSize.y); #else vec2 off = vec2(maxBlurSize / textureSize.x, 0.0); #endif vec2 coord = v_Texcoord; vec4 sum = vec4(0.0); float weightAll = 0.0; vec3 cN = centerNTexel.rgb * 2.0 - 1.0; float cD = getLinearDepth(v_Texcoord); for (int i = 0; i < 9; i++) { vec2 coord = clamp((float(i) - 4.0) * off + v_Texcoord, vec2(0.0), vec2(1.0)); float w = gaussianKernel[i] * clamp(dot(cN, texture2D(gBufferTexture1, coord).rgb * 2.0 - 1.0), 0.0, 1.0); float d = getLinearDepth(coord); w *= (1.0 - smoothstep(abs(cD - d) / depthRange, 0.0, 1.0)); weightAll += w; sum += decodeHDR(texture2D(texture, coord)) * w; } #ifdef BLEND float aoFactor = 1.0; #ifdef SSAOTEX_ENABLED aoFactor = texture2D(ssaoTex, v_Texcoord).r; #endif gl_FragColor = encodeHDR( sum / weightAll * aoFactor + decodeHDR(texture2D(sourceTexture, v_Texcoord)) ); #else gl_FragColor = encodeHDR(sum / weightAll); #endif } @end`;nt.import($yt);function uc(e){e=e||{},this._ssrPass=new sa({fragment:nt.source("ecgl.ssr.main"),clearColor:[0,0,0,0]}),this._blurPass1=new sa({fragment:nt.source("ecgl.ssr.blur"),clearColor:[0,0,0,0]}),this._blurPass2=new sa({fragment:nt.source("ecgl.ssr.blur"),clearColor:[0,0,0,0]}),this._blendPass=new sa({fragment:nt.source("clay.compositor.blend")}),this._blendPass.material.disableTexturesAll(),this._blendPass.material.enableTexture(["texture1","texture2"]),this._ssrPass.setUniform("gBufferTexture1",e.normalTexture),this._ssrPass.setUniform("gBufferTexture2",e.depthTexture),this._blurPass1.setUniform("gBufferTexture1",e.normalTexture),this._blurPass1.setUniform("gBufferTexture2",e.depthTexture),this._blurPass2.setUniform("gBufferTexture1",e.normalTexture),this._blurPass2.setUniform("gBufferTexture2",e.depthTexture),this._blurPass2.material.define("fragment","VERTICAL"),this._blurPass2.material.define("fragment","BLEND"),this._ssrTexture=new _r({type:$t.HALF_FLOAT}),this._texture2=new _r({type:$t.HALF_FLOAT}),this._texture3=new _r({type:$t.HALF_FLOAT}),this._prevTexture=new _r({type:$t.HALF_FLOAT}),this._currentTexture=new _r({type:$t.HALF_FLOAT}),this._frameBuffer=new Ua({depthBuffer:!1}),this._normalDistribution=null,this._totalSamples=256,this._samplePerFrame=4,this._ssrPass.material.define("fragment","SAMPLE_PER_FRAME",this._samplePerFrame),this._ssrPass.material.define("fragment","TOTAL_SAMPLES",this._totalSamples),this._downScale=1}uc.prototype.setAmbientCubemap=function(e,t){this._ssrPass.material.set("specularCubemap",e),this._ssrPass.material.set("specularIntensity",t);var r=e&&t;this._ssrPass.material[r?"enableTexture":"disableTexture"]("specularCubemap")};uc.prototype.update=function(e,t,r,n){var a=e.getWidth(),i=e.getHeight(),o=this._ssrTexture,s=this._texture2,l=this._texture3;o.width=this._prevTexture.width=this._currentTexture.width=a/this._downScale,o.height=this._prevTexture.height=this._currentTexture.height=i/this._downScale,s.width=l.width=a,s.height=l.height=i;var u=this._frameBuffer,c=this._ssrPass,f=this._blurPass1,d=this._blurPass2,h=this._blendPass,v=new Bt,p=new Bt;Bt.transpose(v,t.worldTransform),Bt.transpose(p,t.viewMatrix),c.setUniform("sourceTexture",r),c.setUniform("projection",t.projectionMatrix.array),c.setUniform("projectionInv",t.invProjectionMatrix.array),c.setUniform("toViewSpace",v.array),c.setUniform("toWorldSpace",p.array),c.setUniform("nearZ",t.near);var g=n/this._totalSamples*this._samplePerFrame;if(c.setUniform("jitterOffset",g),c.setUniform("sampleOffset",n*this._samplePerFrame),f.setUniform("textureSize",[o.width,o.height]),d.setUniform("textureSize",[a,i]),d.setUniform("sourceTexture",r),f.setUniform("projection",t.projectionMatrix.array),d.setUniform("projection",t.projectionMatrix.array),u.attach(o),u.bind(e),c.render(e),this._physicallyCorrect&&(u.attach(this._currentTexture),h.setUniform("texture1",this._prevTexture),h.setUniform("texture2",o),h.material.set({weight1:n>=1?.95:0,weight2:n>=1?.05:1}),h.render(e)),u.attach(s),f.setUniform("texture",this._physicallyCorrect?this._currentTexture:o),f.render(e),u.attach(l),d.setUniform("texture",s),d.render(e),u.unbind(e),this._physicallyCorrect){var m=this._prevTexture;this._prevTexture=this._currentTexture,this._currentTexture=m}};uc.prototype.getTargetTexture=function(){return this._texture3};uc.prototype.setParameter=function(e,t){e==="maxIteration"?this._ssrPass.material.define("fragment","MAX_ITERATION",t):this._ssrPass.setUniform(e,t)};uc.prototype.setPhysicallyCorrect=function(e){e?(this._normalDistribution||(this._normalDistribution=GS.generateNormalDistribution(64,this._totalSamples)),this._ssrPass.material.define("fragment","PHYSICALLY_CORRECT"),this._ssrPass.material.set("normalDistribution",this._normalDistribution),this._ssrPass.material.set("normalDistributionSize",[64,this._totalSamples])):this._ssrPass.material.undefine("fragment","PHYSICALLY_CORRECT"),this._physicallyCorrect=e};uc.prototype.setSSAOTexture=function(e){var t=this._blurPass2;e?(t.material.enableTexture("ssaoTex"),t.material.set("ssaoTex",e)):t.material.disableTexture("ssaoTex")};uc.prototype.isFinished=function(e){return this._physicallyCorrect?e>this._totalSamples/this._samplePerFrame:!0};uc.prototype.dispose=function(e){this._ssrTexture.dispose(e),this._texture2.dispose(e),this._texture3.dispose(e),this._prevTexture.dispose(e),this._currentTexture.dispose(e),this._frameBuffer.dispose(e)};const iW=[0,0,-.321585265978,-.154972575841,.458126042375,.188473391593,.842080129861,.527766490688,.147304551086,-.659453822776,-.331943915203,-.940619700594,.0479226680259,.54812163202,.701581552186,-.709825561388,-.295436780218,.940589268233,-.901489676764,.237713156085,.973570876096,-.109899459384,-.866792314779,-.451805525005,.330975007087,.800048655954,-.344275183665,.381779221166,-.386139432542,-.437418421534,-.576478634965,-.0148463392551,.385798197415,-.262426961053,-.666302061145,.682427250835,-.628010632582,-.732836215494,.10163141741,-.987658134403,.711995289051,-.320024291314,.0296005138058,.950296523438,.0130612307608,-.351024443122,-.879596633704,-.10478487883,.435712737232,.504254490347,.779203817497,.206477676721,.388264289969,-.896736162545,-.153106280781,-.629203242522,-.245517550697,.657969239148,.126830499058,.26862328493,-.634888119007,-.302301223431,.617074219636,.779817204925],Wyt=`@export ecgl.normal.vertex @import ecgl.common.transformUniforms @import ecgl.common.uv.header @import ecgl.common.attributes varying vec3 v_Normal; varying vec3 v_WorldPosition; @import ecgl.common.normalMap.vertexHeader @import ecgl.common.vertexAnimation.header void main() { @import ecgl.common.vertexAnimation.main @import ecgl.common.uv.main v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz); v_WorldPosition = (world * vec4(pos, 1.0)).xyz; @import ecgl.common.normalMap.vertexMain gl_Position = worldViewProjection * vec4(pos, 1.0); } @end @export ecgl.normal.fragment #define ROUGHNESS_CHANEL 0 uniform bool useBumpMap; uniform bool useRoughnessMap; uniform bool doubleSide; uniform float roughness; @import ecgl.common.uv.fragmentHeader varying vec3 v_Normal; varying vec3 v_WorldPosition; uniform mat4 viewInverse : VIEWINVERSE; @import ecgl.common.normalMap.fragmentHeader @import ecgl.common.bumpMap.header uniform sampler2D roughnessMap; void main() { vec3 N = v_Normal; bool flipNormal = false; if (doubleSide) { vec3 eyePos = viewInverse[3].xyz; vec3 V = normalize(eyePos - v_WorldPosition); if (dot(N, V) < 0.0) { flipNormal = true; } } @import ecgl.common.normalMap.fragmentMain if (useBumpMap) { N = bumpNormal(v_WorldPosition, v_Normal, N); } float g = 1.0 - roughness; if (useRoughnessMap) { float g2 = 1.0 - texture2D(roughnessMap, v_DetailTexcoord)[ROUGHNESS_CHANEL]; g = clamp(g2 + (g - 0.5) * 2.0, 0.0, 1.0); } if (flipNormal) { N = -N; } gl_FragColor.rgb = (N.xyz + 1.0) * 0.5; gl_FragColor.a = g; } @end`;nt.import(Wyt);function AD(e,t,r,n,a){var i=e.gl;t.setUniform(i,"1i",r,a),i.activeTexture(i.TEXTURE0+a),n.isRenderable()?n.bind(e):n.unbind(e)}function Yyt(e,t,r,n,a){var i,o,s,l,u=e.gl;return function(c,f,d){if(!(l&&l.material===c.material)){var h=c.material,v=c.__program,p=h.get("roughness");p==null&&(p=1);var g=h.get("normalMap")||t,m=h.get("roughnessMap"),y=h.get("bumpMap"),_=h.get("uvRepeat"),w=h.get("uvOffset"),x=h.get("detailUvRepeat"),S=h.get("detailUvOffset"),T=!!y&&h.isTextureEnabled("bumpMap"),A=!!m&&h.isTextureEnabled("roughnessMap"),C=h.isDefined("fragment","DOUBLE_SIDED");y=y||r,m=m||n,d!==f?(f.set("normalMap",g),f.set("bumpMap",y),f.set("roughnessMap",m),f.set("useBumpMap",T),f.set("useRoughnessMap",A),f.set("doubleSide",C),_!=null&&f.set("uvRepeat",_),w!=null&&f.set("uvOffset",w),x!=null&&f.set("detailUvRepeat",x),S!=null&&f.set("detailUvOffset",S),f.set("roughness",p)):(v.setUniform(u,"1f","roughness",p),i!==g&&AD(e,v,"normalMap",g,0),o!==y&&y&&AD(e,v,"bumpMap",y,1),s!==m&&m&&AD(e,v,"roughnessMap",m,2),_!=null&&v.setUniform(u,"2f","uvRepeat",_),w!=null&&v.setUniform(u,"2f","uvOffset",w),x!=null&&v.setUniform(u,"2f","detailUvRepeat",x),S!=null&&v.setUniform(u,"2f","detailUvOffset",S),v.setUniform(u,"1i","useBumpMap",+T),v.setUniform(u,"1i","useRoughnessMap",+A),v.setUniform(u,"1i","doubleSide",+C)),i=g,o=y,s=m,l=c}}}function fm(e){this._depthTex=new _r({format:$t.DEPTH_COMPONENT,type:$t.UNSIGNED_INT}),this._normalTex=new _r({type:$t.HALF_FLOAT}),this._framebuffer=new Ua,this._framebuffer.attach(this._normalTex),this._framebuffer.attach(this._depthTex,Ua.DEPTH_ATTACHMENT),this._normalMaterial=new as({shader:new nt(nt.source("ecgl.normal.vertex"),nt.source("ecgl.normal.fragment"))}),this._normalMaterial.enableTexture(["normalMap","bumpMap","roughnessMap"]),this._defaultNormalMap=Lh.createBlank("#000"),this._defaultBumpMap=Lh.createBlank("#000"),this._defaultRoughessMap=Lh.createBlank("#000"),this._debugPass=new sa({fragment:nt.source("clay.compositor.output")}),this._debugPass.setUniform("texture",this._normalTex),this._debugPass.material.undefine("fragment","OUTPUT_ALPHA")}fm.prototype.getDepthTexture=function(){return this._depthTex};fm.prototype.getNormalTexture=function(){return this._normalTex};fm.prototype.update=function(e,t,r){var n=e.getWidth(),a=e.getHeight(),i=this._depthTex,o=this._normalTex,s=this._normalMaterial;i.width=n,i.height=a,o.width=n,o.height=a;var l=t.getRenderList(r).opaque;this._framebuffer.bind(e),e.gl.clearColor(0,0,0,0),e.gl.clear(e.gl.COLOR_BUFFER_BIT|e.gl.DEPTH_BUFFER_BIT),e.gl.disable(e.gl.BLEND),e.renderPass(l,r,{getMaterial:function(){return s},ifRender:function(u){return u.renderNormal},beforeRender:Yyt(e,this._defaultNormalMap,this._defaultBumpMap,this._defaultRoughessMap,this._normalMaterial),sort:e.opaqueSortCompare}),this._framebuffer.unbind(e)};fm.prototype.renderDebug=function(e){this._debugPass.render(e)};fm.prototype.dispose=function(e){this._depthTex.dispose(e),this._normalTex.dispose(e)};function z1(e){e=e||{},this._edgePass=new sa({fragment:nt.source("ecgl.edge")}),this._edgePass.setUniform("normalTexture",e.normalTexture),this._edgePass.setUniform("depthTexture",e.depthTexture),this._targetTexture=new _r({type:$t.HALF_FLOAT}),this._frameBuffer=new Ua,this._frameBuffer.attach(this._targetTexture)}z1.prototype.update=function(e,t,r,n){var a=e.getWidth(),i=e.getHeight(),o=this._targetTexture;o.width=a,o.height=i;var s=this._frameBuffer;s.bind(e),this._edgePass.setUniform("projectionInv",t.invProjectionMatrix.array),this._edgePass.setUniform("textureSize",[a,i]),this._edgePass.setUniform("texture",r),this._edgePass.render(e),s.unbind(e)};z1.prototype.getTargetTexture=function(){return this._targetTexture};z1.prototype.setParameter=function(e,t){this._edgePass.setUniform(e,t)};z1.prototype.dispose=function(e){this._targetTexture.dispose(e),this._frameBuffer.dispose(e)};const jyt={type:"compositor",nodes:[{name:"source",type:"texture",outputs:{color:{}}},{name:"source_half",shader:"#source(clay.compositor.downsample)",inputs:{texture:"source"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bright",shader:"#source(clay.compositor.bright)",inputs:{texture:"source_half"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{threshold:2,scale:4,textureSize:"expr([width * 1.0 / 2, height / 2])"}},{name:"bright_downsample_4",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 2, height / 2] )"}},{name:"bright_downsample_8",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 4, height / 4] )"}},{name:"bright_downsample_16",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 8, height / 8] )"}},{name:"bright_downsample_32",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 32)",height:"expr(height * 1.0 / 32)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 16, height / 16] )"}},{name:"bright_upsample_16_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_32"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 32, height / 32] )"}},{name:"bright_upsample_16_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_16_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_8_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_8_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_8_blur_v",texture2:"bright_upsample_16_blur_v"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_4_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_4_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_4_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_4_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_4_blur_v",texture2:"bright_upsample_8_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_2_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_2_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_2_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_2_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_2_blur_v",texture2:"bright_upsample_4_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_full_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_full_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_full_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bloom_composite",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_full_blur_v",texture2:"bright_upsample_2_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"coc",shader:"#source(ecgl.dof.coc)",outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{focalDist:50,focalRange:30}},{name:"dof_far_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"dof_near_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_NEARFIELD:null}},{name:"dof_coc_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"coc"},outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_COC:null}},{name:"dof_composite",shader:"#source(ecgl.dof.composite)",inputs:{original:"source",blurred:"dof_far_blur",nearfield:"dof_near_blur",coc:"coc",nearcoc:"dof_coc_blur"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}}},{name:"composite",shader:"#source(clay.compositor.hdr.composite)",inputs:{texture:"source",bloom:"bloom_composite"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},defines:{}},{name:"FXAA",shader:"#source(clay.compositor.fxaa)",inputs:{texture:"composite"}}]},Kyt=`@export ecgl.dof.coc uniform sampler2D depth; uniform float zNear: 0.1; uniform float zFar: 2000; uniform float focalDistance: 3; uniform float focalRange: 1; uniform float focalLength: 30; uniform float fstop: 2.8; varying vec2 v_Texcoord; @import clay.util.encode_float void main() { float z = texture2D(depth, v_Texcoord).r * 2.0 - 1.0; float dist = 2.0 * zNear * zFar / (zFar + zNear - z * (zFar - zNear)); float aperture = focalLength / fstop; float coc; float uppper = focalDistance + focalRange; float lower = focalDistance - focalRange; if (dist <= uppper && dist >= lower) { coc = 0.5; } else { float focalAdjusted = dist > uppper ? uppper : lower; coc = abs(aperture * (focalLength * (dist - focalAdjusted)) / (dist * (focalAdjusted - focalLength))); coc = clamp(coc, 0.0, 2.0) / 2.00001; if (dist < lower) { coc = -coc; } coc = coc * 0.5 + 0.5; } gl_FragColor = encodeFloat(coc); } @end @export ecgl.dof.composite #define DEBUG 0 uniform sampler2D original; uniform sampler2D blurred; uniform sampler2D nearfield; uniform sampler2D coc; uniform sampler2D nearcoc; varying vec2 v_Texcoord; @import clay.util.rgbm @import clay.util.float void main() { vec4 blurredColor = texture2D(blurred, v_Texcoord); vec4 originalColor = texture2D(original, v_Texcoord); float fCoc = decodeFloat(texture2D(coc, v_Texcoord)); fCoc = abs(fCoc * 2.0 - 1.0); float weight = smoothstep(0.0, 1.0, fCoc); #ifdef NEARFIELD_ENABLED vec4 nearfieldColor = texture2D(nearfield, v_Texcoord); float fNearCoc = decodeFloat(texture2D(nearcoc, v_Texcoord)); fNearCoc = abs(fNearCoc * 2.0 - 1.0); gl_FragColor = encodeHDR( mix( nearfieldColor, mix(originalColor, blurredColor, weight), pow(1.0 - fNearCoc, 4.0) ) ); #else gl_FragColor = encodeHDR(mix(originalColor, blurredColor, weight)); #endif } @end @export ecgl.dof.diskBlur #define POISSON_KERNEL_SIZE 16; uniform sampler2D texture; uniform sampler2D coc; varying vec2 v_Texcoord; uniform float blurRadius : 10.0; uniform vec2 textureSize : [512.0, 512.0]; uniform vec2 poissonKernel[POISSON_KERNEL_SIZE]; uniform float percent; float nrand(const in vec2 n) { return fract(sin(dot(n.xy ,vec2(12.9898,78.233))) * 43758.5453); } @import clay.util.rgbm @import clay.util.float void main() { vec2 offset = blurRadius / textureSize; float rnd = 6.28318 * nrand(v_Texcoord + 0.07 * percent ); float cosa = cos(rnd); float sina = sin(rnd); vec4 basis = vec4(cosa, -sina, sina, cosa); #if !defined(BLUR_NEARFIELD) && !defined(BLUR_COC) offset *= abs(decodeFloat(texture2D(coc, v_Texcoord)) * 2.0 - 1.0); #endif #ifdef BLUR_COC float cocSum = 0.0; #else vec4 color = vec4(0.0); #endif float weightSum = 0.0; for (int i = 0; i < POISSON_KERNEL_SIZE; i++) { vec2 ofs = poissonKernel[i]; ofs = vec2(dot(ofs, basis.xy), dot(ofs, basis.zw)); vec2 uv = v_Texcoord + ofs * offset; vec4 texel = texture2D(texture, uv); float w = 1.0; #ifdef BLUR_COC float fCoc = decodeFloat(texel) * 2.0 - 1.0; cocSum += clamp(fCoc, -1.0, 0.0) * w; #else texel = texel; #if !defined(BLUR_NEARFIELD) float fCoc = decodeFloat(texture2D(coc, uv)) * 2.0 - 1.0; w *= abs(fCoc); #endif texel.rgb *= texel.a; color += texel * w; #endif weightSum += w; } #ifdef BLUR_COC gl_FragColor = encodeFloat(clamp(cocSum / weightSum, -1.0, 0.0) * 0.5 + 0.5); #else color /= weightSum; color.rgb /= (color.a + 0.0001); gl_FragColor = color; #endif } @end`,Xyt=`@export ecgl.edge uniform sampler2D texture; uniform sampler2D normalTexture; uniform sampler2D depthTexture; uniform mat4 projectionInv; uniform vec2 textureSize; uniform vec4 edgeColor: [0,0,0,0.8]; varying vec2 v_Texcoord; vec3 packColor(vec2 coord) { float z = texture2D(depthTexture, coord).r * 2.0 - 1.0; vec4 p = vec4(v_Texcoord * 2.0 - 1.0, z, 1.0); vec4 p4 = projectionInv * p; return vec3( texture2D(normalTexture, coord).rg, -p4.z / p4.w / 5.0 ); } void main() { vec2 cc = v_Texcoord; vec3 center = packColor(cc); float size = clamp(1.0 - (center.z - 10.0) / 100.0, 0.0, 1.0) * 0.5; float dx = size / textureSize.x; float dy = size / textureSize.y; vec2 coord; vec3 topLeft = packColor(cc+vec2(-dx, -dy)); vec3 top = packColor(cc+vec2(0.0, -dy)); vec3 topRight = packColor(cc+vec2(dx, -dy)); vec3 left = packColor(cc+vec2(-dx, 0.0)); vec3 right = packColor(cc+vec2(dx, 0.0)); vec3 bottomLeft = packColor(cc+vec2(-dx, dy)); vec3 bottom = packColor(cc+vec2(0.0, dy)); vec3 bottomRight = packColor(cc+vec2(dx, dy)); vec3 v = -topLeft-2.0*top-topRight+bottomLeft+2.0*bottom+bottomRight; vec3 h = -bottomLeft-2.0*left-topLeft+bottomRight+2.0*right+topRight; float edge = sqrt(dot(h, h) + dot(v, v)); edge = smoothstep(0.8, 1.0, edge); gl_FragColor = mix(texture2D(texture, v_Texcoord), vec4(edgeColor.rgb, 1.0), edgeColor.a * edge); } @end`;nt.import(hie);nt.import(vie);nt.import(pie);nt.import(gie);nt.import(mie);nt.import(yie);nt.import(_ie);nt.import(bie);nt.import(wie);nt.import(Kyt);nt.import(Xyt);function Aie(e,t){return{color:{parameters:{width:e,height:t}}}}var m4=["composite","FXAA"];function Rr(){this._width,this._height,this._dpr,this._sourceTexture=new _r({type:$t.HALF_FLOAT}),this._depthTexture=new _r({format:$t.DEPTH_COMPONENT,type:$t.UNSIGNED_INT}),this._framebuffer=new Ua,this._framebuffer.attach(this._sourceTexture),this._framebuffer.attach(this._depthTexture,Ua.DEPTH_ATTACHMENT),this._normalPass=new fm,this._compositor=kyt(jyt);var e=this._compositor.getNodeByName("source");e.texture=this._sourceTexture;var t=this._compositor.getNodeByName("coc");this._sourceNode=e,this._cocNode=t,this._compositeNode=this._compositor.getNodeByName("composite"),this._fxaaNode=this._compositor.getNodeByName("FXAA"),this._dofBlurNodes=["dof_far_blur","dof_near_blur","dof_coc_blur"].map(function(n){return this._compositor.getNodeByName(n)},this),this._dofBlurKernel=0,this._dofBlurKernelSize=new Float32Array(0),this._finalNodesChain=m4.map(function(n){return this._compositor.getNodeByName(n)},this);var r={normalTexture:this._normalPass.getNormalTexture(),depthTexture:this._normalPass.getDepthTexture()};this._ssaoPass=new lc(r),this._ssrPass=new uc(r),this._edgePass=new z1(r)}Rr.prototype.resize=function(n,a,r){r=r||1;var n=n*r,a=a*r,i=this._sourceTexture,o=this._depthTexture;i.width=n,i.height=a,o.width=n,o.height=a;var s={getWidth:function(){return n},getHeight:function(){return a},getDevicePixelRatio:function(){return r}};function l(u,c){if(typeof u[c]=="function"){var f=u[c].__original||u[c];u[c]=function(d){return f.call(this,s)},u[c].__original=f}}this._compositor.nodes.forEach(function(u){for(var c in u.outputs){var f=u.outputs[c].parameters;f&&(l(f,"width"),l(f,"height"))}for(var d in u.parameters)l(u.parameters,d)}),this._width=n,this._height=a,this._dpr=r};Rr.prototype.getWidth=function(){return this._width};Rr.prototype.getHeight=function(){return this._height};Rr.prototype._ifRenderNormalPass=function(){return this._enableSSAO||this._enableEdge||this._enableSSR};Rr.prototype._getPrevNode=function(e){for(var t=m4.indexOf(e.name)-1,r=this._finalNodesChain[t];r&&!this._compositor.getNodeByName(r.name);)t-=1,r=this._finalNodesChain[t];return r};Rr.prototype._getNextNode=function(e){for(var t=m4.indexOf(e.name)+1,r=this._finalNodesChain[t];r&&!this._compositor.getNodeByName(r.name);)t+=1,r=this._finalNodesChain[t];return r};Rr.prototype._addChainNode=function(e){var t=this._getPrevNode(e),r=this._getNextNode(e);t&&(e.inputs.texture=t.name,r?(e.outputs=Aie(this.getWidth.bind(this),this.getHeight.bind(this)),r.inputs.texture=e.name):e.outputs=null,this._compositor.addNode(e))};Rr.prototype._removeChainNode=function(e){var t=this._getPrevNode(e),r=this._getNextNode(e);t&&(r?(t.outputs=Aie(this.getWidth.bind(this),this.getHeight.bind(this)),r.inputs.texture=t.name):t.outputs=null,this._compositor.removeNode(e))};Rr.prototype.updateNormal=function(e,t,r,n){this._ifRenderNormalPass()&&this._normalPass.update(e,t,r)};Rr.prototype.updateSSAO=function(e,t,r,n){this._ssaoPass.update(e,r,n)};Rr.prototype.enableSSAO=function(){this._enableSSAO=!0};Rr.prototype.disableSSAO=function(){this._enableSSAO=!1};Rr.prototype.enableSSR=function(){this._enableSSR=!0};Rr.prototype.disableSSR=function(){this._enableSSR=!1};Rr.prototype.getSSAOTexture=function(){return this._ssaoPass.getTargetTexture()};Rr.prototype.getSourceFrameBuffer=function(){return this._framebuffer};Rr.prototype.getSourceTexture=function(){return this._sourceTexture};Rr.prototype.disableFXAA=function(){this._removeChainNode(this._fxaaNode)};Rr.prototype.enableFXAA=function(){this._addChainNode(this._fxaaNode)};Rr.prototype.enableBloom=function(){this._compositeNode.inputs.bloom="bloom_composite",this._compositor.dirty()};Rr.prototype.disableBloom=function(){this._compositeNode.inputs.bloom=null,this._compositor.dirty()};Rr.prototype.enableDOF=function(){this._compositeNode.inputs.texture="dof_composite",this._compositor.dirty()};Rr.prototype.disableDOF=function(){this._compositeNode.inputs.texture="source",this._compositor.dirty()};Rr.prototype.enableColorCorrection=function(){this._compositeNode.define("COLOR_CORRECTION"),this._enableColorCorrection=!0};Rr.prototype.disableColorCorrection=function(){this._compositeNode.undefine("COLOR_CORRECTION"),this._enableColorCorrection=!1};Rr.prototype.enableEdge=function(){this._enableEdge=!0};Rr.prototype.disableEdge=function(){this._enableEdge=!1};Rr.prototype.setBloomIntensity=function(e){this._compositeNode.setParameter("bloomIntensity",e)};Rr.prototype.setSSAOParameter=function(e,t){switch(e){case"quality":var r={low:6,medium:12,high:32,ultra:62}[t]||12;this._ssaoPass.setParameter("kernelSize",r);break;case"radius":this._ssaoPass.setParameter(e,t),this._ssaoPass.setParameter("bias",t/200);break;case"intensity":this._ssaoPass.setParameter(e,t);break}};Rr.prototype.setDOFParameter=function(e,t){switch(e){case"focalDistance":case"focalRange":case"fstop":this._cocNode.setParameter(e,t);break;case"blurRadius":for(var r=0;r=this._haltonSequence.length},render:function(e,t,r){var n=this._blendPass;this._frame===0?(n.setUniform("weight1",0),n.setUniform("weight2",1)):(n.setUniform("weight1",.9),n.setUniform("weight2",.1)),n.setUniform("texture1",this._prevFrameTex),n.setUniform("texture2",t||this._sourceTex),this._blendFb.attach(this._outputTex),this._blendFb.bind(e),n.render(e),this._blendFb.unbind(e),r||(this._outputPass.setUniform("texture",this._outputTex),this._outputPass.render(e));var a=this._prevFrameTex;this._prevFrameTex=this._outputTex,this._outputTex=a,this._frame++},dispose:function(e){this._sourceFb.dispose(e),this._blendFb.dispose(e),this._prevFrameTex.dispose(e),this._outputTex.dispose(e),this._sourceTex.dispose(e),this._outputPass.dispose(e),this._blendPass.dispose(e)}};function an(e){e=e||"perspective",this.layer=null,this.scene=new Wf,this.rootNode=this.scene,this.viewport={x:0,y:0,width:0,height:0},this.setProjection(e),this._compositor=new Rr,this._temporalSS=new oR,this._shadowMapPass=new yyt;for(var t=[],r=0,n=0;n<30;n++){for(var a=[],i=0;i<6;i++)a.push(Tg(r,2)*4-2),a.push(Tg(r,3)*4-2),r++;t.push(a)}this._pcfKernels=t,this.scene.on("beforerender",function(o,s,l){this.needsTemporalSS()&&this._temporalSS.jitterProjection(o,l)},this)}an.prototype.setProjection=function(e){var t=this.camera;t&&t.update(),e==="perspective"?this.camera instanceof Sa||(this.camera=new Sa,t&&this.camera.setLocalTransform(t.localTransform)):this.camera instanceof Ag||(this.camera=new Ag,t&&this.camera.setLocalTransform(t.localTransform)),this.camera.near=.1,this.camera.far=2e3};an.prototype.setViewport=function(e,t,r,n,a){this.camera instanceof Sa&&(this.camera.aspect=r/n),a=a||1,this.viewport.x=e,this.viewport.y=t,this.viewport.width=r,this.viewport.height=n,this.viewport.devicePixelRatio=a,this._compositor.resize(r*a,n*a),this._temporalSS.resize(r*a,n*a)};an.prototype.containPoint=function(e,t){var r=this.viewport,n=this.layer.renderer.getHeight();return t=n-t,e>=r.x&&t>=r.y&&e<=r.x+r.width&&t<=r.y+r.height};var oW=new mo;an.prototype.castRay=function(e,t,r){var n=this.layer.renderer,a=n.viewport;return n.viewport=this.viewport,n.screenToNDC(e,t,oW),this.camera.castRay(oW,r),n.viewport=a,r};an.prototype.prepareRender=function(){this.scene.update(),this.camera.update(),this.scene.updateLights();var e=this.scene.updateRenderList(this.camera);this._needsSortProgressively=!1;for(var t=0;t30};an.prototype._doRender=function(e,t,r){var n=this.scene,a=this.camera;r=r||0,this._updateTransparent(e,n,a,r),t||(this._shadowMapPass.kernelPCF=this._pcfKernels[0],this._shadowMapPass.render(e,n,a,!0)),this._updateShadowPCFKernel(r);var i=e.clearColor;if(e.gl.clearColor(i[0],i[1],i[2],i[3]),this._enablePostEffect&&(this.needsTemporalSS()&&this._temporalSS.jitterProjection(e,a),this._compositor.updateNormal(e,n,a,this._temporalSS.getFrame())),this._updateSSAO(e,n,a,this._temporalSS.getFrame()),this._enablePostEffect){var o=this._compositor.getSourceFrameBuffer();o.bind(e),e.gl.clear(e.gl.DEPTH_BUFFER_BIT|e.gl.COLOR_BUFFER_BIT),e.render(n,a,!0,!0),o.unbind(e),this.needsTemporalSS()&&t?(this._compositor.composite(e,n,a,this._temporalSS.getSourceFrameBuffer(),this._temporalSS.getFrame()),e.setViewport(this.viewport),this._temporalSS.render(e)):(e.setViewport(this.viewport),this._compositor.composite(e,n,a,null,0))}else if(this.needsTemporalSS()&&t){var o=this._temporalSS.getSourceFrameBuffer();o.bind(e),e.saveClear(),e.clearBit=e.gl.DEPTH_BUFFER_BIT|e.gl.COLOR_BUFFER_BIT,e.render(n,a,!0,!0),e.restoreClear(),o.unbind(e),e.setViewport(this.viewport),this._temporalSS.render(e)}else e.setViewport(this.viewport),e.render(n,a,!0,!0)};an.prototype._updateTransparent=function(e,t,r,n){for(var a=new mt,i=new Bt,o=r.getWorldPosition(),s=t.getRenderList(r).transparent,l=0;lthis.camera.far||e80*r){s=u=e[0],l=c=e[1];for(var v=r;vu&&(u=f),d>c&&(c=d);h=Math.max(u-s,c-l)}return B_(i,o,r,s,l,h),o}function Pie(e,t,r,n,a){var i,o;if(a===uR(e,t,r,n)>0)for(i=t;i=t;i-=n)o=sW(i,e[i],e[i+1],o);return o&&vh(o,o.next)&&(V_(o),o=o.next),o}function N_(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(vh(r,r.next)||Ci(r.prev,r,r.next)===0)){if(V_(r),r=t=r.prev,r===r.next)return null;n=!0}else r=r.next;while(n||r!==t);return t}function B_(e,t,r,n,a,i,o){if(e){!o&&i&&m0t(e,n,a,i);for(var s=e,l,u;e.prev!==e.next;){if(l=e.prev,u=e.next,i?c0t(e,n,a,i):u0t(e)){t.push(l.i/r),t.push(e.i/r),t.push(u.i/r),V_(e),e=u.next,s=u.next;continue}if(e=u,e===s){o?o===1?(e=f0t(e,t,r),B_(e,t,r,n,a,i,2)):o===2&&d0t(e,t,r,n,a,i):B_(N_(e),t,r,n,a,i,1);break}}}}function u0t(e){var t=e.prev,r=e,n=e.next;if(Ci(t,r,n)>=0)return!1;for(var a=e.next.next;a!==e.prev;){if(L2(t.x,t.y,r.x,r.y,n.x,n.y,a.x,a.y)&&Ci(a.prev,a,a.next)>=0)return!1;a=a.next}return!0}function c0t(e,t,r,n){var a=e.prev,i=e,o=e.next;if(Ci(a,i,o)>=0)return!1;for(var s=a.xi.x?a.x>o.x?a.x:o.x:i.x>o.x?i.x:o.x,c=a.y>i.y?a.y>o.y?a.y:o.y:i.y>o.y?i.y:o.y,f=sR(s,l,t,r,n),d=sR(u,c,t,r,n),h=e.nextZ;h&&h.z<=d;){if(h!==e.prev&&h!==e.next&&L2(a.x,a.y,i.x,i.y,o.x,o.y,h.x,h.y)&&Ci(h.prev,h,h.next)>=0)return!1;h=h.nextZ}for(h=e.prevZ;h&&h.z>=f;){if(h!==e.prev&&h!==e.next&&L2(a.x,a.y,i.x,i.y,o.x,o.y,h.x,h.y)&&Ci(h.prev,h,h.next)>=0)return!1;h=h.prevZ}return!0}function f0t(e,t,r){var n=e;do{var a=n.prev,i=n.next.next;!vh(a,i)&&Lie(a,n,n.next,i)&&F_(a,i)&&F_(i,a)&&(t.push(a.i/r),t.push(n.i/r),t.push(i.i/r),V_(n),V_(n.next),n=e=i),n=n.next}while(n!==e);return n}function d0t(e,t,r,n,a,i){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&b0t(o,s)){var l=Iie(o,s);o=N_(o,o.next),l=N_(l,l.next),B_(o,t,r,n,a,i),B_(l,t,r,n,a,i);return}s=s.next}o=o.next}while(o!==e)}function h0t(e,t,r,n){var a=[],i,o,s,l,u;for(i=0,o=t.length;i=r.next.y&&r.next.y!==r.y){var s=r.x+(a-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=n&&s>i){if(i=s,s===n){if(a===r.y)return r;if(a===r.next.y)return r.next}o=r.x=r.x&&r.x>=u&&n!==r.x&&L2(ao.x)&&F_(r,e)&&(o=r,f=d)),r=r.next;return o}function m0t(e,t,r,n){var a=e;do a.z===null&&(a.z=sR(a.x,a.y,t,r,n)),a.prevZ=a.prev,a.nextZ=a.next,a=a.next;while(a!==e);a.prevZ.nextZ=null,a.prevZ=null,y0t(a)}function y0t(e){var t,r,n,a,i,o,s,l,u=1;do{for(r=e,e=null,i=null,o=0;r;){for(o++,n=r,s=0,t=0;t0||l>0&&n;)s!==0&&(l===0||!n||r.z<=n.z)?(a=r,r=r.nextZ,s--):(a=n,n=n.nextZ,l--),i?i.nextZ=a:e=a,a.prevZ=i,i=a;r=n}i.nextZ=null,u*=2}while(o>1);return e}function sR(e,t,r,n,a){return e=32767*(e-r)/a,t=32767*(t-n)/a,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function _0t(e){var t=e,r=e;do t.x=0&&(e-o)*(n-s)-(r-o)*(t-s)>=0&&(r-o)*(i-s)-(a-o)*(n-s)>=0}function b0t(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!w0t(e,t)&&F_(e,t)&&F_(t,e)&&S0t(e,t)}function Ci(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function vh(e,t){return e.x===t.x&&e.y===t.y}function Lie(e,t,r,n){return vh(e,t)&&vh(r,n)||vh(e,n)&&vh(r,t)?!0:Ci(e,t,r)>0!=Ci(e,t,n)>0&&Ci(r,n,e)>0!=Ci(r,n,t)>0}function w0t(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&Lie(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function F_(e,t){return Ci(e.prev,e,e.next)<0?Ci(e,t,e.next)>=0&&Ci(e,e.prev,t)>=0:Ci(e,t,e.prev)<0||Ci(e,e.next,t)<0}function S0t(e,t){var r=e,n=!1,a=(e.x+t.x)/2,i=(e.y+t.y)/2;do r.y>i!=r.next.y>i&&r.next.y!==r.y&&a<(r.next.x-r.x)*(i-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function Iie(e,t){var r=new lR(e.i,e.x,e.y),n=new lR(t.i,t.x,t.y),a=e.next,i=t.prev;return e.next=t,t.prev=e,r.next=a,a.prev=r,n.next=r,r.prev=n,i.next=n,n.prev=i,n}function sW(e,t,r,n){var a=new lR(e,t,r);return n?(a.next=n.next,a.prev=n,n.next.prev=a,n.next=a):(a.prev=a,a.next=a),a}function V_(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function lR(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}Die.deviation=function(e,t,r,n){var a=t&&t.length,i=a?t[0]*r:e.length,o=Math.abs(uR(e,0,i,r));if(a)for(var s=0,l=t.length;sl&&s.push({pivot:Math.floor((u+l)/2),left:l,right:u});var l=i[o].pivot+1,u=i[o].right;u>l&&s.push({pivot:Math.floor((u+l)/2),left:l,right:u})}i=this._parts=s}else for(var o=0;o=2e4},doSortTriangles:function(e,t){var r=this.indices;if(t===0){var n=this.attributes.position,e=e.array;(!this._triangleZList||this._triangleZList.length!==this.triangleCount)&&(this._triangleZList=new Float32Array(this.triangleCount),this._sortedTriangleIndices=new Uint32Array(this.triangleCount),this._indicesTmp=new r.constructor(r.length),this._triangleZListTmp=new Float32Array(this.triangleCount));for(var a=0,i,o=0;o0,r={},n=0;n65535?new Uint32Array(o*3):new Uint16Array(o*3),d.material.shader!==t&&d.material.attachShader(t,!0),ue.setMaterialFromModel(t.__shading,d.material,e,r),s>0&&(this._linesMesh.geometry.resetOffset(),this._linesMesh.geometry.setVertexCount(s),this._linesMesh.geometry.setTriangleCount(l)),this._dataIndexOfVertex=new Uint32Array(i),this._vertexRangeOfDataIndex=new Uint32Array((a-n)*2)},_updateRegionMesh:function(e,t,r,n){for(var a=e.getData(),i=0,o=0,s=!1,S=this._polygonMesh,l=this._linesMesh,u=r;u0;x&&(w*=t.getDevicePixelRatio(),this._updateLinesGeometry(l.geometry,e,u,m,w,e.coordinateSystem.transform)),l.invisible=!x,l.material.set({color:p})}var S=this._polygonMesh;S.material.transparent=s,S.material.depthMask=!s,S.geometry.updateBoundingBox(),S.frontFace=this.extrudeY?ue.Mesh.CCW:ue.Mesh.CW,S.material.get("normalMap")&&S.geometry.generateTangents(),S.seriesIndex=e.seriesIndex,S.on("mousemove",this._onmousemove,this),S.on("mouseout",this._onmouseout,this)},_updateDebugWireframe:function(e){var t=e.getModel("debug.wireframe");if(t.get("show")){var r=ue.parseColor(t.get("lineStyle.color")||"rgba(0,0,0,0.5)"),n=Sr.firstNotNull(t.get("lineStyle.width"),1),a=this._polygonMesh;a.geometry.generateBarycentric(),a.material.define("both","WIREFRAME_TRIANGLE"),a.material.set("wireframeLineColor",r),a.material.set("wireframeLineWidth",n)}},_onmousemove:function(e){var t=this._dataIndexOfVertex[e.triangle[0]];t==null&&(t=-1),t!==this._lastHoverDataIndex&&(this.downplay(this._lastHoverDataIndex),this.highlight(t),this._labelsBuilder.updateLabels([t])),this._lastHoverDataIndex=t,this._polygonMesh.dataIndex=t},_onmouseout:function(e){e.target&&(this.downplay(this._lastHoverDataIndex),this._lastHoverDataIndex=-1,this._polygonMesh.dataIndex=-1),this._labelsBuilder.updateLabels([])},_updateGroundPlane:function(e,t,r){var n=e.getModel("groundPlane",e);if(this._groundMesh.invisible=!n.get("show",!0),!this._groundMesh.invisible){var a=e.get("shading"),i=this._groundMaterials[a];i||(i=this._groundMaterials.lambert),ue.setMaterialFromModel(a,i,n,r),i.get("normalMap")&&this._groundMesh.geometry.generateTangents(),this._groundMesh.material=i,this._groundMesh.material.set("color",ue.parseColor(n.get("color"))),this._groundMesh.scale.set(t.size[0],t.size[2],1)}},_triangulation:function(e,t,r){this._triangulationResults=[];for(var n=[1/0,1/0,1/0],a=[-1/0,-1/0,-1/0],i=e.coordinateSystem,o=t;o1?n:0,I[se][g]=E.points[K+2],l.set(a+se,I[se]),s?(k[0]=(E.points[K]*m[0]-y[0])/w,k[1]=(E.points[K+2]*m[g]-y[g])/w):(k[0]=(ee?z:z+Q)/w,k[1]=(I[se][p]*m[p]-y[p])/w),c.set(a+se,k)}Wi.sub(O,I[1],I[0]),Wi.sub(R,I[3],I[0]),Wi.cross(B,O,R),Wi.normalize(B,B);for(var se=0;se<4;se++)u.set(a+se,B),h&&f.set(a+se,o);for(var se=0;se<6;se++)v[i*3+se]=L[se]+a;a+=4,i+=2,z+=Q}}return t.dirty(),{vertexOffset:a,triangleOffset:i}},_getRegionLinesInfo:function(e,t,r){var n=0,a=0,i=t.getRegionModel(e),o=i.getModel("itemStyle"),s=o.get("borderWidth");if(s>0){var l=t.getRegionPolygonCoords(e);l.forEach(function(u){var c=u.exterior,f=u.interiors;n+=r.getPolylineVertexCount(c),a+=r.getPolylineTriangleCount(c);for(var d=0;dthis._endIndex)){t-=this._startIndex;for(var n=this._vertexRangeOfDataIndex[t*2];n0},_displacementChanged:!0,_displacementScale:0,updateDisplacementHash:function(){var e=this.getDisplacementTexture(),t=this.getDisplacemenScale();this._displacementChanged=this._displacementTexture!==e||this._displacementScale!==t,this._displacementTexture=e,this._displacementScale=t},isDisplacementChanged:function(){return this._displacementChanged}});st(Zh.prototype,HT);st(Zh.prototype,um);st(Zh.prototype,cm);st(Zh.prototype,dm);const I0t=Zh;var Vie=Math.PI,is=Math.sin,Bu=Math.cos,zie=Math.tan,Hie=Math.asin,Gie=Math.atan2,qh=Vie/180,R0t=1e3*60*60*24,O0t=2440588,k0t=2451545;function N0t(e){return e.valueOf()/R0t-.5+O0t}function B0t(e){return N0t(e)-k0t}var O2=qh*23.4397;function F0t(e,t){return Gie(is(e)*Bu(O2)-zie(t)*is(O2),Bu(e))}function V0t(e,t){return Hie(is(t)*Bu(O2)+Bu(t)*is(O2)*is(e))}function z0t(e,t,r){return Gie(is(e),Bu(e)*is(t)-zie(r)*Bu(t))}function H0t(e,t,r){return Hie(is(t)*is(r)+Bu(t)*Bu(r)*Bu(e))}function G0t(e,t){return qh*(280.16+360.9856235*e)-t}function U0t(e){return qh*(357.5291+.98560028*e)}function $0t(e){var t=qh*(1.9148*is(e)+.02*is(2*e)+3e-4*is(3*e)),r=qh*102.9372;return e+t+r+Vie}function W0t(e){var t=U0t(e),r=$0t(t);return{dec:V0t(r,0),ra:F0t(r,0)}}var Uie={};Uie.getPosition=function(e,t,r){var n=qh*-r,a=qh*t,i=B0t(e),o=W0t(i),s=G0t(i,n)-o.ra;return{azimuth:z0t(s,a,o.dec),altitude:H0t(s,a,o.dec)}};const Y0t=Uie,j0t=`@export ecgl.atmosphere.vertex attribute vec3 position: POSITION; attribute vec3 normal : NORMAL; uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; uniform mat4 normalMatrix : WORLDINVERSETRANSPOSE; varying vec3 v_Normal; void main() { v_Normal = normalize((normalMatrix * vec4(normal, 0.0)).xyz); gl_Position = worldViewProjection * vec4(position, 1.0); } @end @export ecgl.atmosphere.fragment uniform mat4 viewTranspose: VIEWTRANSPOSE; uniform float glowPower; uniform vec3 glowColor; varying vec3 v_Normal; void main() { float intensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower); gl_FragColor = vec4(glowColor, intensity * intensity); } @end`;ue.Shader.import(rie);ue.Shader.import(j0t);const K0t=rn.extend({type:"globe",__ecgl__:!0,_displacementScale:0,init:function(e,t){this.groupGL=new ue.Node,this._sphereGeometry=new ue.SphereGeometry({widthSegments:200,heightSegments:100,dynamic:!0}),this._overlayGeometry=new ue.SphereGeometry({widthSegments:80,heightSegments:40}),this._planeGeometry=new ue.PlaneGeometry,this._earthMesh=new ue.Mesh({renderNormal:!0}),this._atmosphereMesh=new ue.Mesh,this._atmosphereGeometry=new ue.SphereGeometry({widthSegments:80,heightSegments:40}),this._atmosphereMaterial=new ue.Material({shader:new ue.Shader(ue.Shader.source("ecgl.atmosphere.vertex"),ue.Shader.source("ecgl.atmosphere.fragment")),transparent:!0}),this._atmosphereMesh.geometry=this._atmosphereGeometry,this._atmosphereMesh.material=this._atmosphereMaterial,this._atmosphereMesh.frontFace=ue.Mesh.CW,this._lightRoot=new ue.Node,this._sceneHelper=new Lf,this._sceneHelper.initLight(this._lightRoot),this.groupGL.add(this._atmosphereMesh),this.groupGL.add(this._earthMesh),this._control=new UT({zr:t.getZr()}),this._control.init(),this._layerMeshes={}},render:function(e,t,r){var n=e.coordinateSystem,a=e.get("shading");n.viewGL.add(this._lightRoot),e.get("show")?n.viewGL.add(this.groupGL):n.viewGL.remove(this.groupGL),this._sceneHelper.setScene(n.viewGL.scene),n.viewGL.setPostEffect(e.getModel("postEffect"),r),n.viewGL.setTemporalSuperSampling(e.getModel("temporalSuperSampling"));var i=this._earthMesh;i.geometry=this._sphereGeometry;var o="ecgl."+a;(!i.material||i.material.shader.name!==o)&&(i.material=ue.createMaterial(o)),ue.setMaterialFromModel(a,i.material,e,r),["roughnessMap","metalnessMap","detailMap","normalMap"].forEach(function(f){var d=i.material.get(f);d&&(d.flipY=!1)}),i.material.set("color",ue.parseColor(e.get("baseColor")));var s=n.radius*.99;if(i.scale.set(s,s,s),e.get("atmosphere.show")){i.material.define("both","ATMOSPHERE_ENABLED"),this._atmosphereMesh.invisible=!1,this._atmosphereMaterial.setUniforms({glowPower:e.get("atmosphere.glowPower")||6,glowColor:e.get("atmosphere.color")||"#ffffff"}),i.material.setUniforms({glowPower:e.get("atmosphere.innerGlowPower")||2,glowColor:e.get("atmosphere.color")||"#ffffff"});var l=e.get("atmosphere.offset")||5;this._atmosphereMesh.scale.set(s+l,s+l,s+l)}else i.material.undefine("both","ATMOSPHERE_ENABLED"),this._atmosphereMesh.invisible=!0;var u=i.material.setTextureImage("diffuseMap",e.get("baseTexture"),r,{flipY:!1,anisotropic:8});u&&u.surface&&u.surface.attachToMesh(i);var c=i.material.setTextureImage("bumpMap",e.get("heightTexture"),r,{flipY:!1,anisotropic:8});c&&c.surface&&c.surface.attachToMesh(i),i.material[e.get("postEffect.enable")?"define":"undefine"]("fragment","SRGB_DECODE"),this._updateLight(e,r),this._displaceVertices(e,r),this._updateViewControl(e,r),this._updateLayers(e,r)},afterRender:function(e,t,r,n){var a=n.renderer;this._sceneHelper.updateAmbientCubemap(a,e,r),this._sceneHelper.updateSkybox(a,e,r)},_updateLayers:function(e,t){var r=e.coordinateSystem,n=e.get("layers"),a=r.radius,i=[],o=[],s=[],l=[];W(n,function(h){var v=new $r(h),p=v.get("type"),g=ue.loadTexture(v.get("texture"),t,{flipY:!1,anisotropic:8});if(g.surface&&g.surface.attachToMesh(this._earthMesh),p==="blend"){var m=v.get("blendTo"),y=Sr.firstNotNull(v.get("intensity"),1);m==="emission"?(s.push(g),l.push(y)):(i.push(g),o.push(y))}else{var _=v.get("id"),w=this._layerMeshes[_];w||(w=this._layerMeshes[_]=new ue.Mesh({geometry:this._overlayGeometry,castShadow:!1,ignorePicking:!0}));var x=v.get("shading");x==="lambert"?(w.material=w.__lambertMaterial||new ue.Material({autoUpdateTextureStatus:!1,shader:ue.createShader("ecgl.lambert"),transparent:!0,depthMask:!1}),w.__lambertMaterial=w.material):(w.material=w.__colorMaterial||new ue.Material({autoUpdateTextureStatus:!1,shader:ue.createShader("ecgl.color"),transparent:!0,depthMask:!1}),w.__colorMaterial=w.material),w.material.enableTexture("diffuseMap");var S=v.get("distance"),T=a+(S??r.radius/100);w.scale.set(T,T,T),a=T;var A=this._blankTexture||(this._blankTexture=ue.createBlankTexture("rgba(255, 255, 255, 0)"));w.material.set("diffuseMap",A),ue.loadTexture(v.get("texture"),t,{flipY:!1,anisotropic:8},function(C){C.surface&&C.surface.attachToMesh(w),w.material.set("diffuseMap",C),t.getZr().refresh()}),v.get("show")?this.groupGL.add(w):this.groupGL.remove(w)}},this);var u=this._earthMesh.material;u.define("fragment","LAYER_DIFFUSEMAP_COUNT",i.length),u.define("fragment","LAYER_EMISSIVEMAP_COUNT",s.length),u.set("layerDiffuseMap",i),u.set("layerDiffuseIntensity",o),u.set("layerEmissiveMap",s),u.set("layerEmissionIntensity",l);var c=e.getModel("debug.wireframe");if(c.get("show")){u.define("both","WIREFRAME_TRIANGLE");var f=ue.parseColor(c.get("lineStyle.color")||"rgba(0,0,0,0.5)"),d=Sr.firstNotNull(c.get("lineStyle.width"),1);u.set("wireframeLineWidth",d),u.set("wireframeLineColor",f)}else u.undefine("both","WIREFRAME_TRIANGLE")},_updateViewControl:function(e,t){var r=e.coordinateSystem,n=e.getModel("viewControl");r.viewGL.camera;var a=this;function i(){return{type:"globeChangeCamera",alpha:o.getAlpha(),beta:o.getBeta(),distance:o.getDistance()-r.radius,center:o.getCenter(),from:a.uid,globeId:e.id}}var o=this._control;o.setViewGL(r.viewGL);var s=n.get("targetCoord"),l,u;s!=null&&(u=s[0]+90,l=s[1]),o.setFromViewControlModel(n,{baseDistance:r.radius,alpha:l,beta:u}),o.off("update"),o.on("update",function(){t.dispatchAction(i())})},_displaceVertices:function(e,t){var r=e.get("displacementQuality"),n=e.get("debug.wireframe.show"),a=e.coordinateSystem;if(!(!e.isDisplacementChanged()&&r===this._displacementQuality&&n===this._showDebugWireframe)){this._displacementQuality=r,this._showDebugWireframe=n;var i=this._sphereGeometry,o={low:100,medium:200,high:400,ultra:800}[r]||200,s=o/2;(i.widthSegments!==o||n)&&(i.widthSegments=o,i.heightSegments=s,i.build()),this._doDisplaceVertices(i,a),n&&i.generateBarycentric()}},_doDisplaceVertices:function(e,t){var r=e.attributes.position.value,n=e.attributes.texcoord0.value,a=e.__originalPosition;(!a||a.length!==r.length)&&(a=new Float32Array(r.length),a.set(r),e.__originalPosition=a);for(var i=t.displacementWidth,o=t.displacementHeight,s=t.displacementData,l=0;l50&&(o=1e3);var s=[];Cc.perspective(s,CD,this.width/this.height,1,o),this.viewGL.camera.projectionMatrix.setArray(s),this.viewGL.camera.decomposeProjectionMatrix();var s=Cc.identity([]),l=this.dataToPoint(this.center);Cc.scale(s,s,[1,-1,1]),Cc.translate(s,s,[0,0,-e]),Cc.rotateX(s,s,t),Cc.rotateZ(s,s,-this.bearing/180*Math.PI),Cc.translate(s,s,[-l[0]*this.getScale()*Qv,-l[1]*this.getScale()*Qv,0]),this.viewGL.camera.viewMatrix.array=s;var u=[];Cc.invert(u,s),this.viewGL.camera.worldTransform.array=u,this.viewGL.camera.decomposeWorldTransform();var c=uy*this.getScale(),f;if(this.altitudeExtent&&!isNaN(this.boxHeight)){var d=this.altitudeExtent[1]-this.altitudeExtent[0];f=this.boxHeight/d*this.getScale()/Math.pow(2,this._initialZoom-this.zoomOffset)}else f=c/(2*Math.PI*6378e3*Math.abs(Math.cos(this.center[1]*(Math.PI/180))))*this.altitudeScale*Qv;this.viewGL.rootNode.scale.set(this.getScale()*Qv,this.getScale()*Qv,f)}},getScale:function(){return Math.pow(2,this.zoom-this.zoomOffset)},projectOnTile:function(e,t){return this.projectOnTileWithScale(e,this.getScale()*uy,t)},projectOnTileWithScale:function(e,t,r){var n=e[0],a=e[1],i=n*Yi/180,o=a*Yi/180,s=t*(i+Yi)/(2*Yi),l=t*(Yi-Math.log(Math.tan(Yi/4+o*.5)))/(2*Yi);return r=r||[],r[0]=s,r[1]=l,r},unprojectFromTile:function(e,t){return this.unprojectOnTileWithScale(e,this.getScale()*uy,t)},unprojectOnTileWithScale:function(e,t,r){var n=e[0],a=e[1],i=n/t*(2*Yi)-Yi,o=2*(Math.atan(Math.exp(Yi-a/t*(2*Yi)))-Yi/4);return r=r||[],r[0]=i*180/Yi,r[1]=o*180/Yi,r},dataToPoint:function(e,t){return t=this.projectOnTileWithScale(e,uy,t),t[0]-=this._origin[0],t[1]-=this._origin[1],t[2]=isNaN(e[2])?0:e[2],isNaN(e[2])||(t[2]=e[2],this.altitudeExtent&&(t[2]-=this.altitudeExtent[0])),t}};function z_(){Mg.apply(this,arguments)}z_.prototype=new Mg;z_.prototype.constructor=z_;z_.prototype.type="mapbox3D";function Yie(e,t,r){function n(i,o){var s=o.getWidth(),l=o.getHeight(),u=o.getDevicePixelRatio();this.viewGL.setViewport(0,0,s,l,u),this.width=s,this.height=l,this.altitudeScale=i.get("altitudeScale"),this.boxHeight=i.get("boxHeight")}function a(i,o){if(this.model.get("boxHeight")!=="auto"){var s=[1/0,-1/0];i.eachSeries(function(l){if(l.coordinateSystem===this){var u=l.getData(),c=l.coordDimToDataDim("alt")[0];if(c){var f=u.getDataExtent(c,!0);s[0]=Math.min(s[0],f[0]),s[1]=Math.max(s[1],f[1])}}},this),s&&isFinite(s[1]-s[0])&&(this.altitudeExtent=s)}}return{dimensions:t.prototype.dimensions,create:function(i,o){var s=[];return i.eachComponent(e,function(l){var u=l.__viewGL;u||(u=l.__viewGL=new an,u.setRootNode(new ue.Node));var c=new t;c.viewGL=l.__viewGL,c.resize=n,c.resize(l,o),s.push(c),l.coordinateSystem=c,c.model=l,c.update=a}),i.eachSeries(function(l){if(l.get("coordinateSystem")===e){var u=l.getReferringComponents(e).models[0];if(u||(u=i.getComponent(e)),!u)throw new Error(e+' "'+Sr.firstNotNull(l.get(e+"Index"),l.get(e+"Id"),0)+'" not found');l.coordinateSystem=u.coordinateSystem}}),r&&r(s,i,o),s}}}var a_t=Yie("mapbox3D",z_,function(e){e.forEach(function(t){t.setCameraOption(t.model.getMapboxCameraOption())})});const i_t=a_t;function o_t(e){e.registerComponentModel(r_t),e.registerComponentView(n_t),e.registerCoordinateSystem("mapbox3D",i_t),e.registerAction({type:"mapbox3DChangeCamera",event:"mapbox3dcamerachanged",update:"mapbox3D:updateCamera"},function(t,r){r.eachComponent({mainType:"mapbox3D",query:t},function(n){n.setMapboxCameraOption(t)})})}Dt(o_t);var vW=["zoom","center","pitch","bearing"],w4=sr.extend({type:"maptalks3D",layoutMode:"box",coordinateSystem:null,defaultOption:{zlevel:-10,urlTemplate:"http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png",attribution:'© OpenStreetMap contributors, © CARTO',center:[0,0],zoom:0,pitch:0,bearing:0,light:{main:{alpha:20,beta:30}},altitudeScale:1,boxHeight:"auto"},getMaptalksCameraOption:function(){var e=this;return vW.reduce(function(t,r){return t[r]=e.get(r),t},{})},setMaptalksCameraOption:function(e){e!=null&&vW.forEach(function(t){e[t]!=null&&(this.option[t]=e[t])},this)},getMaptalks:function(){return this._maptalks},setMaptalks:function(e){this._maptalks=e}});st(w4.prototype,um);st(w4.prototype,cm);const s_t=w4;function jf(e,t,r,n){if(this.id=e,this.zr=t,this.dom=document.createElement("div"),this.dom.style.cssText="position:absolute;left:0;right:0;top:0;bottom:0;",!maptalks)throw new Error("Maptalks library must be included. See https://maptalks.org");this._maptalks=new maptalks.Map(this.dom,{center:r,zoom:n,doubleClickZoom:!1,fog:!1}),this._initEvents()}jf.prototype.setUnpainted=function(){};jf.prototype.resize=function(){this._maptalks.checkSize()};jf.prototype.getMaptalks=function(){return this._maptalks};jf.prototype.clear=function(){};jf.prototype.refresh=function(){this._maptalks.checkSize()};var jie=["mousedown","mouseup","click","dblclick","mousemove","mousewheel","DOMMouseScroll","touchstart","touchend","touchmove","touchcancel"];jf.prototype._initEvents=function(){var e=this.dom;this._handlers=this._handlers||{contextmenu:function(t){return t.preventDefault(),!1}},jie.forEach(function(t){this._handlers[t]=function(r){var n={};for(var a in r)n[a]=r[a];n.bubbles=!1;var i=new r.constructor(r.type,n);t==="mousewheel"||t==="DOMMouseScroll"?e.dispatchEvent(i):e.firstElementChild.dispatchEvent(i)},this.zr.dom.addEventListener(t,this._handlers[t])},this),this.zr.dom.addEventListener("contextmenu",this._handlers.contextmenu)};jf.prototype.dispose=function(){jie.forEach(function(e){this.zr.dom.removeEventListener(e,this._handlers[e])},this),this._maptalks.remove()};ue.Shader.import(Wie);const l_t=rn.extend({type:"maptalks3D",__ecgl__:!0,init:function(e,t){this._groundMesh=new ue.Mesh({geometry:new ue.PlaneGeometry,material:new ue.Material({shader:new ue.Shader({vertex:ue.Shader.source("ecgl.displayShadow.vertex"),fragment:ue.Shader.source("ecgl.displayShadow.fragment")}),depthMask:!1}),renderOrder:-100,culling:!1,castShadow:!1,$ignorePicking:!0,renderNormal:!0})},_initMaptalksLayer:function(e,t){var r=t.getZr();this._zrLayer=new jf("maptalks3D",r,e.get("center"),e.get("zoom")),r.painter.insertLayer(-1e3,this._zrLayer),this._lightRoot=new ue.Node,this._sceneHelper=new Lf(this._lightRoot),this._sceneHelper.initLight(this._lightRoot);var n=this._zrLayer.getMaptalks(),a=this._dispatchInteractAction.bind(this,t,n);["zoomend","zooming","zoomstart","dragrotating","pitch","pitchend","movestart","moving","moveend","resize","touchstart","touchmove","touchend","animating"].forEach(function(i){n.on(i,a)})},render:function(e,t,r){this._zrLayer||this._initMaptalksLayer(e,r);var n=this._zrLayer.getMaptalks(),a=e.get("urlTemplate"),i=n.getBaseLayer();a!==this._oldUrlTemplate&&(i?i.setOptions({urlTemplate:a,attribution:e.get("attribution")}):(i=new maptalks.TileLayer("maptalks-echarts-gl-baselayer",{urlTemplate:a,subdomains:["a","b","c"],attribution:e.get("attribution")}),n.setBaseLayer(i))),this._oldUrlTemplate=a,n.setCenter(e.get("center")),n.setZoom(e.get("zoom"),{animation:!1}),n.setPitch(e.get("pitch")),n.setBearing(e.get("bearing")),e.setMaptalks(n);var o=e.coordinateSystem;o.viewGL.scene.add(this._lightRoot),o.viewGL.add(this._groundMesh),this._updateGroundMesh(),this._sceneHelper.setScene(o.viewGL.scene),this._sceneHelper.updateLight(e),o.viewGL.setPostEffect(e.getModel("postEffect"),r),o.viewGL.setTemporalSuperSampling(e.getModel("temporalSuperSampling")),this._maptalks3DModel=e},afterRender:function(e,t,r,n){var a=n.renderer;this._sceneHelper.updateAmbientCubemap(a,e,r),this._sceneHelper.updateSkybox(a,e,r),e.coordinateSystem.viewGL.scene.traverse(function(i){i.material&&(i.material.define("fragment","NORMAL_UP_AXIS",2),i.material.define("fragment","NORMAL_FRONT_AXIS",1))})},updateCamera:function(e,t,r,n){e.coordinateSystem.setCameraOption(n),this._updateGroundMesh(),r.getZr().refresh()},_dispatchInteractAction:function(e,t,r){e.dispatchAction({type:"maptalks3DChangeCamera",pitch:t.getPitch(),zoom:c_t(t.getResolution())+1,center:t.getCenter().toArray(),bearing:t.getBearing(),maptalks3DId:this._maptalks3DModel&&this._maptalks3DModel.id})},_updateGroundMesh:function(){if(this._maptalks3DModel){var e=this._maptalks3DModel.coordinateSystem,t=e.dataToPoint(e.center);this._groundMesh.position.set(t[0],t[1],-.001);var r=new ue.Plane(new ue.Vector3(0,0,1),0),n=e.viewGL.camera.castRay(new ue.Vector2(-1,-1)),a=e.viewGL.camera.castRay(new ue.Vector2(1,1)),i=n.intersectPlane(r),o=a.intersectPlane(r),s=i.dist(o)/e.viewGL.rootNode.scale.x;this._groundMesh.scale.set(s,s,1)}},dispose:function(e,t){this._zrLayer&&this._zrLayer.dispose(),t.getZr().painter.delLayer(-1e3)}}),u_t=2*6378137*Math.PI/(256*Math.pow(2,20));function c_t(e){return 19-Math.log(e/u_t)/Math.LN2}function H_(){Mg.apply(this,arguments),this.maxPitch=85,this.zoomOffset=1}H_.prototype=new Mg;H_.prototype.constructor=H_;H_.prototype.type="maptalks3D";var f_t=Yie("maptalks3D",H_,function(e){e.forEach(function(t){t.setCameraOption(t.model.getMaptalksCameraOption())})});const d_t=f_t;function h_t(e){e.registerComponentModel(s_t),e.registerComponentView(l_t),e.registerCoordinateSystem("maptalks3D",d_t),e.registerAction({type:"maptalks3DChangeCamera",event:"maptalks3dcamerachanged",update:"maptalks3D:updateCamera"},function(t,r){r.eachComponent({mainType:"maptalks3D",query:t},function(n){n.setMaptalksCameraOption(t)})})}Dt(h_t);var v_t=Jn.vec3,p_t=JA.isDimensionStacked;function g_t(e){var t=e[0],r=e[1];return!(t>0&&r>0||t<0&&r<0)}function m_t(e,t){var r=e.getData(),n=e.get("barSize");if(n==null){var a=t.size,i,o,s=t.getAxis("x"),l=t.getAxis("y");s.type==="category"?i=s.getBandWidth()*.7:i=Math.round(a[0]/Math.sqrt(r.count()))*.6,l.type==="category"?o=l.getBandWidth()*.7:o=Math.round(a[1]/Math.sqrt(r.count()))*.6,n=[i,o]}else Ne(n)||(n=[n,n]);var u=t.getAxis("z").scale.getExtent(),c=g_t(u),f=["x","y","z"].map(function(v){return e.coordDimToDataDim(v)[0]}),d=p_t(r,f[2]),h=d?r.getCalculationInfo("stackResultDimension"):f[2];r.each(f,function(v,p,g,m){var y=r.get(h,m),_=d?y-g:c?0:u[0],w=t.dataToPoint([v,p,_]),x=t.dataToPoint([v,p,y]),S=v_t.dist(w,x),T=[0,x[1]"+d.join("
")}var a=e.getData(),i=e.getRawValue(t),o=Ne(i)?n(i):na(U0(i)),s=a.getName(t),l=Ma(a,t);Mt(l)&&l.colorStops&&(l=(l.colorStops[0]||{}).color),l=l||"transparent";var u=XO(l),c=e.name;return c==="\0-"&&(c=""),c=c?na(c)+(r?": ":"
"):"",r?u+c+o:c+u+(s?na(s)+": "+o:o)}function YT(e,t,r){r=r||e.getSource();var n=t||mk(e.get("coordinateSystem"))||["x","y","z"],a=em(r,{dimensionsDefine:r.dimensionsDefine||e.get("dimensions"),encodeDefine:r.encodeDefine||e.get("encode"),coordDimensions:n.map(function(s){var l=e.getReferringComponents(s+"Axis3D").models[0];return{type:l&&l.get("type")==="category"?"ordinal":"float",name:s}})});e.get("coordinateSystem")==="cartesian3D"&&a.forEach(function(s){if(n.indexOf(s.coordDim)>=0){var l=e.getReferringComponents(s.coordDim+"Axis3D").models[0];l&&l.get("type")==="category"&&(s.ordinalMeta=l.getOrdinalMeta())}});var i=JA.enableDataStack(e,a,{byIndex:!0,stackedCoordDimension:"z"}),o=new Dn(a,e);return o.setCalculationInfo(i),o.initData(r),o}var Kie=Ir.extend({type:"series.bar3D",dependencies:["globe"],visualStyleAccessPathvisu:"itemStyle",getInitialData:function(e,t){return YT(this)},getFormattedLabel:function(e,t,r,n){var a=vm.getFormattedLabel(this,e,t,r,n);return a==null&&(a=this.getData().get("z",e)),a},formatTooltip:function(e){return H1(this,e)},defaultOption:{coordinateSystem:"cartesian3D",globeIndex:0,grid3DIndex:0,zlevel:-10,bevelSize:0,bevelSmoothness:2,onGridPlane:"xy",shading:"color",minHeight:0,itemStyle:{opacity:1},label:{show:!1,distance:2,textStyle:{fontSize:14,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:3}},emphasis:{label:{show:!0}},animationDurationUpdate:500}});st(Kie.prototype,dm);const A_t=Kie;var Fn=Jn.vec3,T_t=Jn.mat3,T4=Hr.extend(function(){return{attributes:{position:new Hr.Attribute("position","float",3,"POSITION"),normal:new Hr.Attribute("normal","float",3,"NORMAL"),color:new Hr.Attribute("color","float",4,"COLOR"),prevPosition:new Hr.Attribute("prevPosition","float",3),prevNormal:new Hr.Attribute("prevNormal","float",3)},dynamic:!0,enableNormal:!1,bevelSize:1,bevelSegments:0,_dataIndices:null,_vertexOffset:0,_triangleOffset:0}},{resetOffset:function(){this._vertexOffset=0,this._triangleOffset=0},setBarCount:function(e){var t=this.enableNormal,r=this.getBarVertexCount()*e,n=this.getBarTriangleCount()*e;this.vertexCount!==r&&(this.attributes.position.init(r),t?this.attributes.normal.init(r):this.attributes.normal.value=null,this.attributes.color.init(r)),this.triangleCount!==n&&(this.indices=r>65535?new Uint32Array(n*3):new Uint16Array(n*3),this._dataIndices=new Uint32Array(r))},getBarVertexCount:function(){var e=this.bevelSize>0?this.bevelSegments:0;return e>0?this._getBevelBarVertexCount(e):this.enableNormal?24:8},getBarTriangleCount:function(){var e=this.bevelSize>0?this.bevelSegments:0;return e>0?this._getBevelBarTriangleCount(e):12},_getBevelBarVertexCount:function(e){return(e+1)*4*(e+1)*2},_getBevelBarTriangleCount:function(e){var t=e*4+3,r=e*2+1;return(t+1)*r*2+4},setColor:function(e,t){for(var r=this.getBarVertexCount(),n=r*e,a=r*(e+1),i=n;i0&&this.bevelSegments>0)this._addBevelBar(_,w,x,S,this.bevelSize,this.bevelSegments,T);else{Fn.copy(a,w),Fn.normalize(a,a),Fn.cross(i,x,a),Fn.normalize(i,i),Fn.cross(n,a,i),Fn.normalize(i,i),Fn.negate(o,n),Fn.negate(s,a),Fn.negate(l,i),t(u[0],_,n,S[0]/2),t(u[0],u[0],i,S[2]/2),t(u[1],_,n,S[0]/2),t(u[1],u[1],l,S[2]/2),t(u[2],_,o,S[0]/2),t(u[2],u[2],l,S[2]/2),t(u[3],_,o,S[0]/2),t(u[3],u[3],i,S[2]/2),t(r,_,a,S[1]),t(u[4],r,n,S[0]/2),t(u[4],u[4],i,S[2]/2),t(u[5],r,n,S[0]/2),t(u[5],u[5],l,S[2]/2),t(u[6],r,o,S[0]/2),t(u[6],u[6],l,S[2]/2),t(u[7],r,o,S[0]/2),t(u[7],u[7],i,S[2]/2);var M=this.attributes;if(this.enableNormal){c[0]=n,c[1]=o,c[2]=a,c[3]=s,c[4]=i,c[5]=l;for(var E=this._vertexOffset,D=0;D0&&(g++,c[3]<.99&&(h=!0))}}),o.geometry.setBarCount(g);var v=r.getLayout("orient"),p=this._barIndexOfData=new Int32Array(r.count()),g=0;r.each(function(y){if(!r.hasValue(y)){p[y]=-1;return}var _=r.getItemLayout(y),w=_[0],x=_[1],S=_[2],T=y*4;c[0]=f[T++],c[1]=f[T++],c[2]=f[T++],c[3]=f[T++],c[3]>0&&(i._barMesh.geometry.addBar(w,x,v,S,c,y),p[y]=g++)}),o.geometry.dirty(),o.geometry.updateBoundingBox();var m=o.material;m.transparent=h,m.depthMask=!h,o.geometry.sortTriangles=h,this._initHandler(e,t)},_initHandler:function(e,t){var r=e.getData(),n=this._barMesh,a=e.coordinateSystem.type==="cartesian3D";n.seriesIndex=e.seriesIndex;var i=-1;n.off("mousemove"),n.off("mouseout"),n.on("mousemove",function(o){var s=n.geometry.getDataIndexOfVertex(o.triangle[0]);s!==i&&(this._downplay(i),this._highlight(s),this._labelsBuilder.updateLabels([s]),a&&t.dispatchAction({type:"grid3DShowAxisPointer",value:[r.get("x",s),r.get("y",s),r.get("z",s,!0)]})),i=s,n.dataIndex=s},this),n.on("mouseout",function(o){this._downplay(i),this._labelsBuilder.updateLabels(),i=-1,n.dataIndex=-1,a&&t.dispatchAction({type:"grid3DHideAxisPointer"})},this)},_highlight:function(e){var t=this._data;if(t){var r=this._barIndexOfData[e];if(!(r<0)){var n=t.getItemModel(e),a=n.getModel("emphasis.itemStyle"),i=a.get("color"),o=a.get("opacity");if(i==null){var s=Ma(t,e);i=Nh(s,-.4)}o==null&&(o=Ea(t,e));var l=ue.parseColor(i);l[3]*=o,this._barMesh.geometry.setColor(r,l),this._api.getZr().refresh()}}},_downplay:function(e){var t=this._data;if(t){var r=this._barIndexOfData[e];if(!(r<0)){var n=Ma(t,e),a=Ea(t,e),i=ue.parseColor(n);i[3]*=a,this._barMesh.geometry.setColor(r,i),this._api.getZr().refresh()}}},highlight:function(e,t,r,n){this._toggleStatus("highlight",e,t,r,n)},downplay:function(e,t,r,n){this._toggleStatus("downplay",e,t,r,n)},_toggleStatus:function(e,t,r,n,a){var i=t.getData(),o=Sr.queryDataIndex(i,a),s=this;o!=null?W(vm.normalizeToArray(o),function(l){e==="highlight"?this._highlight(l):this._downplay(l)},this):i.each(function(l){e==="highlight"?s._highlight(l):s._downplay(l)})},remove:function(){this.groupGL.removeAll()},dispose:function(){this._labelsBuilder.dispose(),this.groupGL.removeAll()}});function D_t(e){e.registerChartView(M_t),e.registerSeriesModel(A_t),S_t(e),e.registerProcessor(function(t,r){t.eachSeriesByType("bar3d",function(n){var a=n.getData();a.filterSelf(function(i){return a.hasValue(i)})})})}Dt(D_t);var P_t=Ir.extend({type:"series.line3D",dependencies:["grid3D"],visualStyleAccessPath:"lineStyle",visualDrawType:"stroke",getInitialData:function(e,t){return YT(this)},formatTooltip:function(e){return H1(this,e)},defaultOption:{coordinateSystem:"cartesian3D",zlevel:-10,grid3DIndex:0,lineStyle:{width:2},animationDurationUpdate:500}});const L_t=P_t;var I_t=Jn.vec3;ue.Shader.import(WT);const R_t=xr.extend({type:"line3D",__ecgl__:!0,init:function(e,t){this.groupGL=new ue.Node,this._api=t},render:function(e,t,r){var n=this._prevLine3DMesh;this._prevLine3DMesh=this._line3DMesh,this._line3DMesh=n,this._line3DMesh||(this._line3DMesh=new ue.Mesh({geometry:new gv({useNativeLine:!1,sortTriangles:!0}),material:new ue.Material({shader:ue.createShader("ecgl.meshLines3D")}),renderOrder:10}),this._line3DMesh.geometry.pick=this._pick.bind(this)),this.groupGL.remove(this._prevLine3DMesh),this.groupGL.add(this._line3DMesh);var a=e.coordinateSystem;if(a&&a.viewGL){a.viewGL.add(this.groupGL);var i=a.viewGL.isLinearSpace()?"define":"undefine";this._line3DMesh.material[i]("fragment","SRGB_DECODE")}this._doRender(e,r),this._data=e.getData(),this._camera=a.viewGL.camera,this.updateCamera(),this._updateAnimation(e)},updateCamera:function(){this._updateNDCPosition()},_doRender:function(e,t){var r=e.getData(),n=this._line3DMesh;n.geometry.resetOffset();var a=r.getLayout("points"),i=[],o=new Float32Array(a.length/3*4),s=0,l=!1;r.each(function(f){var d=Ma(r,f),h=Ea(r,f);h==null&&(h=1),ue.parseColor(d,i),i[3]*=h,o[s++]=i[0],o[s++]=i[1],o[s++]=i[2],o[s++]=i[3],i[3]<.99&&(l=!0)}),n.geometry.setVertexCount(n.geometry.getPolylineVertexCount(a)),n.geometry.setTriangleCount(n.geometry.getPolylineTriangleCount(a)),n.geometry.addPolyline(a,o,Sr.firstNotNull(e.get("lineStyle.width"),1)),n.geometry.dirty(),n.geometry.updateBoundingBox();var u=n.material;u.transparent=l,u.depthMask=!l;var c=e.getModel("debug.wireframe");c.get("show")?(n.geometry.createAttribute("barycentric","float",3),n.geometry.generateBarycentric(),n.material.set("both","WIREFRAME_TRIANGLE"),n.material.set("wireframeLineColor",ue.parseColor(c.get("lineStyle.color")||"rgba(0,0,0,0.5)")),n.material.set("wireframeLineWidth",Sr.firstNotNull(c.get("lineStyle.width"),1))):n.material.set("both","WIREFRAME_TRIANGLE"),this._points=a,this._initHandler(e,t)},_updateAnimation:function(e){ue.updateVertexAnimation([["prevPosition","position"],["prevPositionPrev","positionPrev"],["prevPositionNext","positionNext"]],this._prevLine3DMesh,this._line3DMesh,e)},_initHandler:function(e,t){var r=e.getData(),n=e.coordinateSystem,a=this._line3DMesh,i=-1;a.seriesIndex=e.seriesIndex,a.off("mousemove"),a.off("mouseout"),a.on("mousemove",function(o){var s=n.pointToData(o.point.array),l=r.indicesOfNearest("x",s[0])[0];l!==i&&(t.dispatchAction({type:"grid3DShowAxisPointer",value:[r.get("x",l),r.get("y",l),r.get("z",l)]}),a.dataIndex=l),i=l},this),a.on("mouseout",function(o){i=-1,a.dataIndex=-1,t.dispatchAction({type:"grid3DHideAxisPointer"})},this)},_updateNDCPosition:function(){var e=new Bt,t=this._camera;Bt.multiply(e,t.projectionMatrix,t.viewMatrix);var r=this._positionNDC,n=this._points,a=n.length/3;(!r||r.length/2!==a)&&(r=this._positionNDC=new Float32Array(a*2));for(var i=[],o=0;o=0){var x=u*3,S=new mt(this._points[x],this._points[x+1],this._points[x+2]);i.push({dataIndex:u,point:S,pointWorld:S.clone(),target:this._line3DMesh,distance:this._camera.getWorldPosition().dist(S)})}},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}});function O_t(e){e.registerChartView(R_t),e.registerSeriesModel(L_t),e.registerLayout(function(t,r){t.eachSeriesByType("line3D",function(n){var a=n.getData(),i=n.coordinateSystem;if(i){if(i.type!=="cartesian3D")return;var o=new Float32Array(a.count()*3),s=[],l=[],u=i.dimensions,c=u.map(function(f){return n.coordDimToDataDim(f)[0]});i&&a.each(c,function(f,d,h,v){s[0]=f,s[1]=d,s[2]=h,i.dataToPoint(s,l),o[v*3]=l[0],o[v*3+1]=l[1],o[v*3+2]=l[2]}),a.setLayout("points",o)}})})}Dt(O_t);const k_t=Ir.extend({type:"series.scatter3D",dependencies:["globe","grid3D","geo3D"],visualStyleAccessPath:"itemStyle",hasSymbolVisual:!0,getInitialData:function(e,t){return YT(this)},getFormattedLabel:function(e,t,r,n){var a=vm.getFormattedLabel(this,e,t,r,n);if(a==null){var i=this.getData(),o=i.dimensions[i.dimensions.length-1];a=i.get(o,e)}return a},formatTooltip:function(e){return H1(this,e)},defaultOption:{coordinateSystem:"cartesian3D",zlevel:-10,progressive:1e5,progressiveThreshold:1e5,grid3DIndex:0,globeIndex:0,symbol:"circle",symbolSize:10,blendMode:"source-over",label:{show:!1,position:"right",distance:5,textStyle:{fontSize:14,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:3}},itemStyle:{opacity:.8},emphasis:{label:{show:!0}},animationDurationUpdate:500}});function ED(e,n,r){var n=n||document.createElement("canvas");n.width=e,n.height=e;var a=n.getContext("2d");return r&&r(a),n}function N_t(e,t,r,n){Ne(t)||(t=[t,t]);var a=C4.getMarginByStyle(r,n),i=t[0]+a.left+a.right,o=t[1]+a.top+a.bottom,s=jn(e,0,0,t[0],t[1]),l=Math.max(i,o);s.x=a.left,s.y=a.top,i>o?s.y+=(l-o)/2:s.x+=(l-i)/2;var u=s.getBoundingRect();return s.x-=u.x,s.y-=u.y,s.setStyle(r),s.update(),s.__size=l,s}function B_t(e,t,r){var n=t.width,a=t.height,i=e.canvas.width,o=e.canvas.height,s=n/i,l=a/o;function u(m){return m<128?1:-1}function c(m,y){var _=1/0;m=Math.floor(m*s),y=Math.floor(y*l);for(var w=y*n+m,x=t.data[w*4],S=u(x),T=Math.max(y-r,0);T=2e4},doSortVertices:function(e,t){var r=this.indices,n=mW.create();if(!r){r=this.indices=this.vertexCount>65535?new Uint32Array(this.vertexCount):new Uint16Array(this.vertexCount);for(var a=0;a.05);else for(var a=0;a<3;a++)this._progressiveQuickSort(t*3+a);this.dirtyIndices()},_simpleSort:function(e){var t=this._zList,r=this.indices;function n(a,i){return t[i]-t[a]}e?Array.prototype.sort.call(r,n):Cg.sort(r,n,0,r.length-1)},_progressiveQuickSort:function(e){var t=this._zList,r=this.indices;this._quickSort=this._quickSort||new Cg,this._quickSort.step(r,function(n,a){return t[a]-t[n]},e)}},V_t=`@export ecgl.sdfSprite.vertex uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; uniform float elapsedTime : 0; attribute vec3 position : POSITION; #ifdef VERTEX_SIZE attribute float size; #else uniform float u_Size; #endif #ifdef VERTEX_COLOR attribute vec4 a_FillColor: COLOR; varying vec4 v_Color; #endif #ifdef VERTEX_ANIMATION attribute vec3 prevPosition; attribute float prevSize; uniform float percent : 1.0; #endif #ifdef POSITIONTEXTURE_ENABLED uniform sampler2D positionTexture; #endif varying float v_Size; void main() { #ifdef POSITIONTEXTURE_ENABLED gl_Position = worldViewProjection * vec4(texture2D(positionTexture, position.xy).xy, -10.0, 1.0); #else #ifdef VERTEX_ANIMATION vec3 pos = mix(prevPosition, position, percent); #else vec3 pos = position; #endif gl_Position = worldViewProjection * vec4(pos, 1.0); #endif #ifdef VERTEX_SIZE #ifdef VERTEX_ANIMATION v_Size = mix(prevSize, size, percent); #else v_Size = size; #endif #else v_Size = u_Size; #endif #ifdef VERTEX_COLOR v_Color = a_FillColor; #endif gl_PointSize = v_Size; } @end @export ecgl.sdfSprite.fragment uniform vec4 color: [1, 1, 1, 1]; uniform vec4 strokeColor: [1, 1, 1, 1]; uniform float smoothing: 0.07; uniform float lineWidth: 0.0; #ifdef VERTEX_COLOR varying vec4 v_Color; #endif varying float v_Size; uniform sampler2D sprite; @import clay.util.srgb void main() { gl_FragColor = color; vec4 _strokeColor = strokeColor; #ifdef VERTEX_COLOR gl_FragColor *= v_Color; #endif #ifdef SPRITE_ENABLED float d = texture2D(sprite, gl_PointCoord).r; gl_FragColor.a *= smoothstep(0.5 - smoothing, 0.5 + smoothing, d); if (lineWidth > 0.0) { float sLineWidth = lineWidth / 2.0; float outlineMaxValue0 = 0.5 + sLineWidth; float outlineMaxValue1 = 0.5 + sLineWidth + smoothing; float outlineMinValue0 = 0.5 - sLineWidth - smoothing; float outlineMinValue1 = 0.5 - sLineWidth; if (d <= outlineMaxValue1 && d >= outlineMinValue0) { float a = _strokeColor.a; if (d <= outlineMinValue1) { a = a * smoothstep(outlineMinValue0, outlineMinValue1, d); } else { a = a * smoothstep(outlineMaxValue1, outlineMaxValue0, d); } gl_FragColor.rgb = mix(gl_FragColor.rgb * gl_FragColor.a, _strokeColor.rgb, a); gl_FragColor.a = gl_FragColor.a * (1.0 - a) + a; } } #endif #ifdef SRGB_DECODE gl_FragColor = sRGBToLinear(gl_FragColor); #endif } @end`;var MD=Jn.vec4;ue.Shader.import(V_t);var z_t=ue.Mesh.extend(function(){var e=new ue.Geometry({dynamic:!0,attributes:{color:new ue.Geometry.Attribute("color","float",4,"COLOR"),position:new ue.Geometry.Attribute("position","float",3,"POSITION"),size:new ue.Geometry.Attribute("size","float",1),prevPosition:new ue.Geometry.Attribute("prevPosition","float",3),prevSize:new ue.Geometry.Attribute("prevSize","float",1)}});Object.assign(e,F_t);var t=new ue.Material({shader:ue.createShader("ecgl.sdfSprite"),transparent:!0,depthMask:!1});t.enableTexture("sprite"),t.define("both","VERTEX_COLOR"),t.define("both","VERTEX_SIZE");var r=new ue.Texture2D({image:document.createElement("canvas"),flipY:!1});return t.set("sprite",r),e.pick=this._pick.bind(this),{geometry:e,material:t,mode:ue.Mesh.POINTS,sizeScale:1}},{_pick:function(e,t,r,n,a,i){var o=this._positionNDC;if(o)for(var s=r.viewport,l=2/s.width,u=2/s.height,c=this.geometry.vertexCount-1;c>=0;c--){var f;this.geometry.indices?f=this.geometry.indices[c]:f=c;var d=o[f*2],h=o[f*2+1],v=this.geometry.attributes.size.get(f)/this.sizeScale,p=v/2;if(e>d-p*l&&eh-p*u&&t2?(v=this._updateSymbolSprite(e,d,c,f),s.enableTexture("sprite")):s.disableTexture("sprite"),u.position.init(a-n);var p=[];if(h){s.undefine("VERTEX_SIZE"),s.undefine("VERTEX_COLOR");var g=x0t(o),m=A0t(o);ue.parseColor(g,p),p[3]*=m,s.set({color:p,u_Size:c.maxSize*this._sizeScale})}else s.set({color:[1,1,1,1]}),s.define("VERTEX_SIZE"),s.define("VERTEX_COLOR"),u.size.init(a-n),u.color.init(a-n),this._originalOpacity=new Float32Array(a-n);for(var y=o.getLayout("points"),_=u.position.value,w=0;w1?(a[0]=r.maxSize,a[1]=r.maxSize/r.aspect):(a[1]=r.maxSize,a[0]=r.maxSize*r.aspect),a[0]=a[0]||1,a[1]=a[1]||1,(this._symbolType!==r.type||!G_t(this._symbolSize,a)||this._lineWidth!==t.lineWidth)&&(gW.createSymbolSprite(r.type,a,{fill:"#fff",lineWidth:t.lineWidth,stroke:"transparent",shadowColor:"transparent",minMargin:Math.min(a[0]/2,10)},this._spriteImageCanvas),gW.createSDFFromCanvas(this._spriteImageCanvas,Math.min(this._spriteImageCanvas.width,32),yW,this._mesh.material.get("sprite").image),this._symbolType=r.type,this._symbolSize=a,this._lineWidth=t.lineWidth),this._spriteImageCanvas.width/r.maxSize*n},_updateMaterial:function(e,t){var r=e.get("blendMode")==="lighter"?ue.additiveBlend:null,n=this._mesh.material;n.blend=r,n.set("lineWidth",t.lineWidth/yW);var a=ue.parseColor(t.stroke);n.set("strokeColor",a),n.transparent=!0,n.depthMask=!1,n.depthTest=!this.is2D,n.sortVertices=!this.is2D},_updateLabelBuilder:function(e,o,r){var n=e.getData(),a=this._mesh.geometry,i=a.attributes.position.value,o=this._startDataIndex,s=this._mesh.sizeScale;this._labelsBuilder.updateData(n,o,r),this._labelsBuilder.getLabelPosition=function(l,u,c){var f=(l-o)*3;return[i[f],i[f+1],i[f+2]]},this._labelsBuilder.getLabelDistance=function(l,u,c){var f=a.attributes.size.get(l-o)/s;return f/2+c},this._labelsBuilder.updateLabels()},_updateAnimation:function(e){ue.updateVertexAnimation([["prevPosition","position"],["prevSize","size"]],this._prevMesh,this._mesh,e)},_updateHandler:function(e,t,r){var n=e.getData(),a=this._mesh,i=this,o=-1,s=e.coordinateSystem&&e.coordinateSystem.type==="cartesian3D",l;s&&(l=e.coordinateSystem.model),a.seriesIndex=e.seriesIndex,a.off("mousemove"),a.off("mouseout"),a.on("mousemove",function(u){var c=u.vertexIndex+i._startDataIndex;c!==o&&(this.highlightOnMouseover&&(this.downplay(n,o),this.highlight(n,c),this._labelsBuilder.updateLabels([c])),s&&r.dispatchAction({type:"grid3DShowAxisPointer",value:[n.get(e.coordDimToDataDim("x")[0],c),n.get(e.coordDimToDataDim("y")[0],c),n.get(e.coordDimToDataDim("z")[0],c)],grid3DIndex:l.componentIndex})),a.dataIndex=c,o=c},this),a.on("mouseout",function(u){var c=u.vertexIndex+i._startDataIndex;this.highlightOnMouseover&&(this.downplay(n,c),this._labelsBuilder.updateLabels()),o=-1,a.dataIndex=-1,s&&r.dispatchAction({type:"grid3DHideAxisPointer",grid3DIndex:l.componentIndex})},this)},updateLayout:function(e,t,r){var n=e.getData();if(this._mesh){var a=this._mesh.geometry.attributes.position.value,i=n.getLayout("points");if(this.is2D)for(var o=0;othis._endDataIndex||tthis._endDataIndex||t 1.0 || v_Percent < 0.0) { discard; } float fade = v_Percent; #ifdef SRGB_DECODE gl_FragColor = sRGBToLinear(color * v_Color); #else gl_FragColor = color * v_Color; #endif @import ecgl.common.wireframe.fragmentMain if (v_Percent > (1.0 - v_SpotPercent)) { gl_FragColor.rgb *= spotIntensity; } gl_FragColor.a *= fade; } @end`;var TW=Jn.vec3;function q_t(e){return e>0?1:-1}ue.Shader.import(Z_t);const Q_t=ue.Mesh.extend(function(){var e=new ue.Material({shader:new ue.Shader(ue.Shader.source("ecgl.trail2.vertex"),ue.Shader.source("ecgl.trail2.fragment")),transparent:!0,depthMask:!1}),t=new gv({dynamic:!0});return t.createAttribute("dist","float",1),t.createAttribute("distAll","float",1),t.createAttribute("start","float",1),{geometry:t,material:e,culling:!1,$ignorePicking:!0}},{updateData:function(e,t,r){var n=e.hostModel,a=this.geometry,i=n.getModel("effect"),o=i.get("trailWidth")*t.getDevicePixelRatio(),s=i.get("trailLength"),l=n.get("effect.constantSpeed"),u=n.get("effect.period")*1e3,c=l!=null;c?this.material.set("speed",l/1e3):this.material.set("period",u),this.material[c?"define":"undefine"]("vertex","CONSTANT_SPEED");var f=n.get("polyline");a.trailLength=s,this.material.set("trailLength",s),a.resetOffset(),["position","positionPrev","positionNext"].forEach(function(T){a.attributes[T].value=r.attributes[T].value});var d=["dist","distAll","start","offset","color"];d.forEach(function(T){a.attributes[T].init(a.vertexCount)}),a.indices=r.indices;var h=[],v=i.get("trailColor"),p=i.get("trailOpacity"),g=v!=null,m=p!=null;this.updateWorldTransform();var y=this.worldTransform.x.len(),_=this.worldTransform.y.len(),w=this.worldTransform.z.len(),x=0,S=0;e.each(function(T){var A=e.getItemLayout(T),C=m?p:Ea(e,T),M=Ma(e,T);C==null&&(C=1),h=ue.parseColor(g?v:M,h),h[3]*=C;for(var E=f?r.getPolylineVertexCount(A):r.getCubicCurveVertexCount(A[0],A[1],A[2],A[3]),D=0,P=[],L=[],I=x;Ix&&(D+=TW.dist(P,L)),a.attributes.dist.set(I,D),TW.copy(L,P);S=Math.max(S,D);for(var O=Math.random()*(c?D:u),I=x;I0;this._updateSurfaceMesh(this._surfaceMesh,e,c,h);var v=this._surfaceMesh.material;h?(v.define("WIREFRAME_QUAD"),v.set("wireframeLineWidth",d),v.set("wireframeLineColor",ue.parseColor(f.get("lineStyle.color")))):v.undefine("WIREFRAME_QUAD"),this._initHandler(e,r),this._updateAnimation(e)},_updateAnimation:function(e){ue.updateVertexAnimation([["prevPosition","position"],["prevNormal","normal"]],this._prevSurfaceMesh,this._surfaceMesh,e)},_createSurfaceMesh:function(){var e=new ue.Mesh({geometry:new ue.Geometry({dynamic:!0,sortTriangles:!0}),shadowDepthMaterial:new ue.Material({shader:new ue.Shader(ue.Shader.source("ecgl.sm.depth.vertex"),ue.Shader.source("ecgl.sm.depth.fragment"))}),culling:!1,renderOrder:10,renderNormal:!0});return e.geometry.createAttribute("barycentric","float",4),e.geometry.createAttribute("prevPosition","float",3),e.geometry.createAttribute("prevNormal","float",3),Object.assign(e.geometry,_4),e},_initHandler:function(e,t){var r=e.getData(),n=this._surfaceMesh,a=e.coordinateSystem;function i(s,l){for(var u=1/0,c=-1,f=[],d=0;d=0){var u=[];n.geometry.attributes.position.get(l,u);for(var c=a.pointToData(u),f=1/0,d=-1,h=[],v=0;v65535?Uint32Array:Uint16Array)((v-1)*(p-1)*6),S=function(q,oe,ve){ve[1]=q*p+oe,ve[0]=q*p+oe+1,ve[3]=(q+1)*p+oe+1,ve[2]=(q+1)*p+oe},T=!1;if(l){var A=[],C=[],M=0;m?c.init(a.vertexCount):c.value=null;for(var E=[[],[],[]],D=[],P=[],L=Ld.create(),I=function(q,oe,ve){var _e=oe*3;return ve[0]=q[_e],ve[1]=q[_e+1],ve[2]=q[_e+2],ve},O=new Float32Array(o.length),R=new Float32Array(o.length/3*4),B=0;B0;){if(Math.floor(s/c)===s/c)return[c,s/c];c--}return c=Math.floor(Math.sqrt(s)),[c,c]},dispose:function(){this.groupGL.removeAll()},remove:function(){this.groupGL.removeAll()}});function l1t(e){e.registerChartView(s1t),e.registerSeriesModel(i1t),e.registerLayout(function(t,r){t.eachSeriesByType("surface",function(n){var a=n.coordinateSystem;!a||a.type;var i=n.getData(),o=new Float32Array(3*i.count()),s=[NaN,NaN,NaN];if(a&&a.type==="cartesian3D"){var l=a.dimensions,u=l.map(function(c){return n.coordDimToDataDim(c)[0]});i.each(u,function(c,f,d,h){var v;i.hasValue(h)?v=a.dataToPoint([c,f,d]):v=s,o[h*3]=v[0],o[h*3+1]=v[1],o[h*3+2]=v[2]})}i.setLayout("points",o)})})}Dt(l1t);function EW(e,t){for(var r=[],n=0;n "+d)),u++)}var h,v=em(e,{coordDimensions:["value"]});h=new Dn(v,r),h.initData(e);var p=new Dn(["value"],r);return p.initData(l,s),a&&a(h,p),Hk({mainData:h,struct:i,structAttr:"graph",datas:{node:h,edge:p},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Ly=Ir.extend({type:"series.graphGL",visualStyleAccessPath:"itemStyle",hasSymbolVisual:!0,init:function(e){Ly.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this._updateCategoriesData()},mergeOption:function(e){Ly.superApply(this,"mergeOption",arguments),this._updateCategoriesData()},getFormattedLabel:function(e,t,r,n){var a=vm.getFormattedLabel(this,e,t,r,n);if(a==null){var i=this.getData(),o=i.dimensions[i.dimensions.length-1];a=i.get(o,e)}return a},getInitialData:function(e,t){var r=e.edges||e.links||[],n=e.data||e.nodes||[],a=this;if(n&&r)return p1t(n,r,this,!0,i).data;function i(o,s){o.wrapMethod("getItemModel",function(f){const d=a._categoriesModels,h=f.getShallow("category"),v=d[h];return v&&(v.parentModel=f.parentModel,f.parentModel=v),f});const l=t.getModel([]).getModel;function u(f,d){const h=l.call(this,f,d);return h.resolveParentPath=c,h}s.wrapMethod("getItemModel",function(f){return f.resolveParentPath=c,f.getModel=u,f});function c(f){if(f&&(f[0]==="label"||f[1]==="label")){const d=f.slice();return f[0]==="label"?d[0]="edgeLabel":f[1]==="label"&&(d[1]="edgeLabel"),d}return f}}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,t,r){if(r==="edge"){var n=this.getData(),a=this.getDataParams(e,r),i=n.graph.getEdgeByIndex(e),o=n.getName(i.node1.dataIndex),s=n.getName(i.node2.dataIndex),l=[];return o!=null&&l.push(o),s!=null&&l.push(s),l=na(l.join(" > ")),a.value&&(l+=" : "+na(a.value)),l}else return Ly.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=(this.option.categories||[]).map(function(r){return r.value!=null?r:Object.assign({value:0},r)}),t=new Dn(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(r){return t.getItemModel(r,!0)})},setView:function(e){e.zoom!=null&&(this.option.zoom=e.zoom),e.offset!=null&&(this.option.offset=e.offset)},setNodePosition:function(e){for(var t=0;t65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(e){this.triangleCount!==e&&(e===0?this.indices=null:this.indices=this.vertexCount>65535?new Uint32Array(e*3):new Uint16Array(e*3))},_getCubicCurveApproxStep:function(e,t,r,n){var a=fa.dist(e,t)+fa.dist(r,t)+fa.dist(n,r),i=1/(a+1)*this.segmentScale;return i},getCubicCurveVertexCount:function(e,t,r,n){var a=this._getCubicCurveApproxStep(e,t,r,n),i=Math.ceil(1/a);return this.useNativeLine?i*2:i*2+2},getCubicCurveTriangleCount:function(e,t,r,n){var a=this._getCubicCurveApproxStep(e,t,r,n),i=Math.ceil(1/a);return this.useNativeLine?0:i*2},getLineVertexCount:function(){return this.getPolylineVertexCount(MW)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(MW)},getPolylineVertexCount:function(e){var t;if(typeof e=="number")t=e;else{var r=typeof e[0]!="number";t=r?e.length:e.length/2}return this.useNativeLine?(t-1)*2:(t-1)*2+2},getPolylineTriangleCount:function(e){var t;if(typeof e=="number")t=e;else{var r=typeof e[0]!="number";t=r?e.length:e.length/2}return this.useNativeLine?0:(t-1)*2},addCubicCurve:function(e,t,r,n,a,i){i==null&&(i=1);for(var o=e[0],s=e[1],l=t[0],u=t[1],c=r[0],f=r[1],d=n[0],h=n[1],v=this._getCubicCurveApproxStep(e,t,r,n),p=v*v,g=p*v,m=3*v,y=3*p,_=6*p,w=6*g,x=o-l*2+c,S=s-u*2+f,T=(l-c)*3-o+d,A=(u-f)*3-s+h,C=o,M=s,E=(l-o)*m+x*y+T*g,D=(u-s)*m+S*y+A*g,P=x*_+T*w,L=S*_+A*w,I=T*w,O=A*w,R=0,B=0,k=Math.ceil(1/v),z=new Float32Array((k+1)*3),z=[],$=0,B=0;B1&&(C=E>0?Math.min(C,d):Math.max(C,d),M=D>0?Math.min(M,h):Math.max(M,h));this.addPolyline(z,a,i)},addLine:function(e,t,r,n){this.addPolyline([e,t],r,n)},addPolyline:function(){var e=fa.create(),t=fa.create(),r=fa.create(),n=fa.create(),a=[],i=[],o=[];return function(s,l,u,c,f){if(s.length){var d=typeof s[0]!="number";if(f==null&&(f=d?s.length:s.length/2),!(f<2)){c==null&&(c=0),u==null&&(u=1),this._itemVertexOffsets.push(this._vertexOffset);for(var h=d?typeof l[0]!="number":l.length/4===f,v=this.attributes.position,p=this.attributes.color,g=this.attributes.offset,m=this.attributes.normal,y=this.indices,_=this._vertexOffset,w,x=0;x1&&(v.copy(_,_-1),p.copy(_,_-1),_++);else{var A;if(x0){fa.sub(e,a,o),fa.sub(t,i,a),fa.normalize(e,e),fa.normalize(t,t),fa.add(n,e,t),fa.normalize(n,n);var C=u/2*Math.min(1/fa.dot(e,n),2);r[0]=-n[1],r[1]=n[0],A=C}else fa.sub(e,i,a),fa.normalize(e,e),r[0]=-e[1],r[1]=e[0],A=u/2}else fa.sub(e,a,o),fa.normalize(e,e),r[0]=-e[1],r[1]=e[0],A=u/2;m.set(_,r),m.set(_+1,r),g.set(_,A),g.set(_+1,-A),fa.copy(o,a),v.set(_,a),v.set(_+1,a),p.set(_,w),p.set(_+1,w),_+=2}if(this.useNativeLine)p.set(_,w),v.set(_,a),_++;else if(x>0){var M=this._faceOffset*3,y=this.indices;y[M]=_-4,y[M+1]=_-3,y[M+2]=_-2,y[M+3]=_-3,y[M+4]=_-1,y[M+5]=_-2,this._faceOffset+=2}}this._vertexOffset=_}}}}(),setItemColor:function(e,t){for(var r=this._itemVertexOffsets[e],n=e 0.0) { float factor = 0.0; if (preventOverlap) { float d = sqrt(d2); d = d - n0.w - n1.w; if (d > 0.0) { factor = scaling * n0.z * n1.z / (d * d); } else if (d < 0.0) { factor = scaling * 100.0 * n0.z * n1.z; } } else { factor = scaling * n0.z * n1.z / d2; } force += dir * factor; } } vec2 dir = gravityCenter - n0.xy; float d = 1.0; if (!strongGravityMode) { d = length(dir); } force += dir * n0.z * gravity / (d + 1.0); gl_FragColor = vec4(force, 0.0, 1.0); } @end @export ecgl.forceAtlas2.updateEdgeAttraction.vertex attribute vec2 node1; attribute vec2 node2; attribute float weight; uniform sampler2D positionTex; uniform float edgeWeightInfluence; uniform bool preventOverlap; uniform bool linLogMode; uniform vec2 windowSize: WINDOW_SIZE; varying vec2 v_Force; void main() { vec4 n0 = texture2D(positionTex, node1); vec4 n1 = texture2D(positionTex, node2); vec2 dir = n1.xy - n0.xy; float d = length(dir); float w; if (edgeWeightInfluence == 0.0) { w = 1.0; } else if (edgeWeightInfluence == 1.0) { w = weight; } else { w = pow(weight, edgeWeightInfluence); } vec2 offset = vec2(1.0 / windowSize.x, 1.0 / windowSize.y); vec2 scale = vec2((windowSize.x - 1.0) / windowSize.x, (windowSize.y - 1.0) / windowSize.y); vec2 pos = node1 * scale * 2.0 - 1.0; gl_Position = vec4(pos + offset, 0.0, 1.0); gl_PointSize = 1.0; float factor; if (preventOverlap) { d = d - n1.w - n0.w; } if (d <= 0.0) { v_Force = vec2(0.0); return; } if (linLogMode) { factor = w * log(d) / d; } else { factor = w; } v_Force = dir * factor; } @end @export ecgl.forceAtlas2.updateEdgeAttraction.fragment varying vec2 v_Force; void main() { gl_FragColor = vec4(v_Force, 0.0, 0.0); } @end @export ecgl.forceAtlas2.calcWeightedSum.vertex attribute vec2 node; varying vec2 v_NodeUv; void main() { v_NodeUv = node; gl_Position = vec4(0.0, 0.0, 0.0, 1.0); gl_PointSize = 1.0; } @end @export ecgl.forceAtlas2.calcWeightedSum.fragment varying vec2 v_NodeUv; uniform sampler2D positionTex; uniform sampler2D forceTex; uniform sampler2D forcePrevTex; void main() { vec2 force = texture2D(forceTex, v_NodeUv).rg; vec2 forcePrev = texture2D(forcePrevTex, v_NodeUv).rg; float mass = texture2D(positionTex, v_NodeUv).z; float swing = length(force - forcePrev) * mass; float traction = length(force + forcePrev) * 0.5 * mass; gl_FragColor = vec4(swing, traction, 0.0, 0.0); } @end @export ecgl.forceAtlas2.calcGlobalSpeed uniform sampler2D globalSpeedPrevTex; uniform sampler2D weightedSumTex; uniform float jitterTolerence; void main() { vec2 weightedSum = texture2D(weightedSumTex, vec2(0.5)).xy; float prevGlobalSpeed = texture2D(globalSpeedPrevTex, vec2(0.5)).x; float globalSpeed = jitterTolerence * jitterTolerence * weightedSum.y / weightedSum.x; if (prevGlobalSpeed > 0.0) { globalSpeed = min(globalSpeed / prevGlobalSpeed, 1.5) * prevGlobalSpeed; } gl_FragColor = vec4(globalSpeed, 0.0, 0.0, 1.0); } @end @export ecgl.forceAtlas2.updatePosition uniform sampler2D forceTex; uniform sampler2D forcePrevTex; uniform sampler2D positionTex; uniform sampler2D globalSpeedTex; varying vec2 v_Texcoord; void main() { vec2 force = texture2D(forceTex, v_Texcoord).xy; vec2 forcePrev = texture2D(forcePrevTex, v_Texcoord).xy; vec4 node = texture2D(positionTex, v_Texcoord); float globalSpeed = texture2D(globalSpeedTex, vec2(0.5)).r; float swing = length(force - forcePrev); float speed = 0.1 * globalSpeed / (0.1 + globalSpeed * sqrt(swing)); float df = length(force); if (df > 0.0) { speed = min(df * speed, 10.0) / df; gl_FragColor = vec4(node.xy + speed * force, node.zw); } else { gl_FragColor = node; } } @end @export ecgl.forceAtlas2.edges.vertex uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; attribute vec2 node; attribute vec4 a_Color : COLOR; varying vec4 v_Color; uniform sampler2D positionTex; void main() { gl_Position = worldViewProjection * vec4( texture2D(positionTex, node).xy, -10.0, 1.0 ); v_Color = a_Color; } @end @export ecgl.forceAtlas2.edges.fragment uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; varying vec4 v_Color; void main() { gl_FragColor = color * v_Color; } @end`;ue.Shader.import(m1t);var PD={repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,scaling:1,edgeWeightInfluence:1,jitterTolerence:.1,preventOverlap:!1,dissuadeHubs:!1,gravityCenter:null};function ga(e){var t={type:ue.Texture.FLOAT,minFilter:ue.Texture.NEAREST,magFilter:ue.Texture.NEAREST};this._positionSourceTex=new ue.Texture2D(t),this._positionSourceTex.flipY=!1,this._positionTex=new ue.Texture2D(t),this._positionPrevTex=new ue.Texture2D(t),this._forceTex=new ue.Texture2D(t),this._forcePrevTex=new ue.Texture2D(t),this._weightedSumTex=new ue.Texture2D(t),this._weightedSumTex.width=this._weightedSumTex.height=1,this._globalSpeedTex=new ue.Texture2D(t),this._globalSpeedPrevTex=new ue.Texture2D(t),this._globalSpeedTex.width=this._globalSpeedTex.height=1,this._globalSpeedPrevTex.width=this._globalSpeedPrevTex.height=1,this._nodeRepulsionPass=new sa({fragment:ue.Shader.source("ecgl.forceAtlas2.updateNodeRepulsion")}),this._positionPass=new sa({fragment:ue.Shader.source("ecgl.forceAtlas2.updatePosition")}),this._globalSpeedPass=new sa({fragment:ue.Shader.source("ecgl.forceAtlas2.calcGlobalSpeed")}),this._copyPass=new sa({fragment:ue.Shader.source("clay.compositor.output")});var r=function(n){n.blendEquation(n.FUNC_ADD),n.blendFunc(n.ONE,n.ONE)};this._edgeForceMesh=new ue.Mesh({geometry:new ue.Geometry({attributes:{node1:new ue.Geometry.Attribute("node1","float",2),node2:new ue.Geometry.Attribute("node2","float",2),weight:new ue.Geometry.Attribute("weight","float",1)},dynamic:!0,mainAttribute:"node1"}),material:new ue.Material({transparent:!0,shader:ue.createShader("ecgl.forceAtlas2.updateEdgeAttraction"),blend:r,depthMask:!1,depthText:!1}),mode:ue.Mesh.POINTS}),this._weightedSumMesh=new ue.Mesh({geometry:new ue.Geometry({attributes:{node:new ue.Geometry.Attribute("node","float",2)},dynamic:!0,mainAttribute:"node"}),material:new ue.Material({transparent:!0,shader:ue.createShader("ecgl.forceAtlas2.calcWeightedSum"),blend:r,depthMask:!1,depthText:!1}),mode:ue.Mesh.POINTS}),this._framebuffer=new Ua({depthBuffer:!1}),this._dummyCamera=new ue.OrthographicCamera({left:-1,right:1,top:1,bottom:-1,near:0,far:100}),this._globalSpeed=0}ga.prototype.updateOption=function(e){for(var t in PD)this[t]=PD[t];var r=this._nodes.length;if(r>5e4?this.jitterTolerence=10:r>5e3?this.jitterTolerence=1:this.jitterTolerence=.1,r>100?this.scaling=2:this.scaling=10,e)for(var t in PD)e[t]!=null&&(this[t]=e[t]);if(this.repulsionByDegree)for(var n=this._positionSourceTex.pixels,a=0;ae};ga.prototype._swapTexture=function(){var e=this._positionPrevTex;this._positionPrevTex=this._positionTex,this._positionTex=e;var e=this._forcePrevTex;this._forcePrevTex=this._forceTex,this._forceTex=e;var e=this._globalSpeedPrevTex;this._globalSpeedPrevTex=this._globalSpeedTex,this._globalSpeedTex=e};ga.prototype._initFromSource=function(e){this._framebuffer.attach(this._positionPrevTex),this._framebuffer.bind(e),this._copyPass.setUniform("texture",this._positionSourceTex),this._copyPass.render(e),e.gl.clearColor(0,0,0,0),this._framebuffer.attach(this._forcePrevTex),e.gl.clear(e.gl.COLOR_BUFFER_BIT),this._framebuffer.attach(this._globalSpeedPrevTex),e.gl.clear(e.gl.COLOR_BUFFER_BIT),this._framebuffer.unbind(e)};ga.prototype._resize=function(e,t){["_positionSourceTex","_positionTex","_positionPrevTex","_forceTex","_forcePrevTex"].forEach(function(r){this[r].width=e,this[r].height=t,this[r].dirty()},this)};ga.prototype.dispose=function(e){this._framebuffer.dispose(e),this._copyPass.dispose(e),this._nodeRepulsionPass.dispose(e),this._positionPass.dispose(e),this._globalSpeedPass.dispose(e),this._edgeForceMesh.geometry.dispose(e),this._weightedSumMesh.geometry.dispose(e),this._positionSourceTex.dispose(e),this._positionTex.dispose(e),this._positionPrevTex.dispose(e),this._forceTex.dispose(e),this._forcePrevTex.dispose(e),this._weightedSumTex.dispose(e),this._globalSpeedTex.dispose(e),this._globalSpeedPrevTex.dispose(e)};function y1t(){var e={create:function(){return new Float32Array(2)},dist:function(l,u){var c=u[0]-l[0],f=u[1]-l[1];return Math.sqrt(c*c+f*f)},len:function(l){var u=l[0],c=l[1];return Math.sqrt(u*u+c*c)},scaleAndAdd:function(l,u,c,f){return l[0]=u[0]+c[0]*f,l[1]=u[1]+c[1]*f,l},scale:function(l,u,c){return l[0]=u[0]*c,l[1]=u[1]*c,l},add:function(l,u,c){return l[0]=u[0]+c[0],l[1]=u[1]+c[1],l},sub:function(l,u,c){return l[0]=u[0]-c[0],l[1]=u[1]-c[1],l},normalize:function(l,u){var c=u[0],f=u[1],d=c*c+f*f;return d>0&&(d=1/Math.sqrt(d),l[0]=u[0]*d,l[1]=u[1]*d),l},negate:function(l,u){return l[0]=-u[0],l[1]=-u[1],l},copy:function(l,u){return l[0]=u[0],l[1]=u[1],l},set:function(l,u,c){return l[0]=u,l[1]=c,l}};function t(){this.subRegions=[],this.nSubRegions=0,this.node=null,this.mass=0,this.centerOfMass=null,this.bbox=new Float32Array(4),this.size=0}var r=t.prototype;r.beforeUpdate=function(){for(var l=0;l=l&&this.bbox[1]<=u&&this.bbox[3]>=u},r.setBBox=function(l,u,c,f){this.bbox[0]=l,this.bbox[1]=u,this.bbox[2]=c,this.bbox[3]=f,this.size=(c-l+f-u)/2},r._newSubRegion=function(){var l=this.subRegions[this.nSubRegions];return l||(l=new t,this.subRegions[this.nSubRegions]=l),this.nSubRegions++,l},r._addNodeToSubRegion=function(l){var u=this.findSubRegion(l.position[0],l.position[1]),c=this.bbox;if(!u){var f=(c[0]+c[2])/2,d=(c[1]+c[3])/2,h=(c[2]-c[0])/2,v=(c[3]-c[1])/2,p=l.position[0]>=f?1:0,g=l.position[1]>=d?1:0,u=this._newSubRegion();u.setBBox(p*h+c[0],g*v+c[1],(p+1)*h+c[0],(g+1)*v+c[1])}u.addNode(l)},r._updateCenterOfMass=function(l){this.centerOfMass==null&&(this.centerOfMass=new Float32Array(2));var u=this.centerOfMass[0]*this.mass,c=this.centerOfMass[1]*this.mass;u+=l.position[0]*l.mass,c+=l.position[1]*l.mass,this.mass+=l.mass,this.centerOfMass[0]=u/this.mass,this.centerOfMass[1]=c/this.mass};function n(){this.position=new Float32Array(2),this.force=e.create(),this.forcePrev=e.create(),this.mass=1,this.inDegree=0,this.outDegree=0}function a(l,u){this.source=l,this.target=u,this.weight=1}function i(){this.autoSettings=!0,this.barnesHutOptimize=!0,this.barnesHutTheta=1.5,this.repulsionByDegree=!0,this.linLogMode=!1,this.strongGravityMode=!1,this.gravity=1,this.scaling=1,this.edgeWeightInfluence=1,this.jitterTolerence=.1,this.preventOverlap=!1,this.dissuadeHubs=!1,this.rootRegion=new t,this.rootRegion.centerOfMass=e.create(),this.nodes=[],this.edges=[],this.bbox=new Float32Array(4),this.gravityCenter=null,this._massArr=null,this._swingingArr=null,this._sizeArr=null,this._globalSpeed=0}var o=i.prototype;o.initNodes=function(l,u,c){var f=u.length;this.nodes.length=0;for(var d=typeof c<"u",h=0;h0&&(this.strongGravityMode?this.applyNodeStrongGravity(f):this.applyNodeGravity(f))}for(var u=0;u0&&(_=Math.min(_/this._globalSpeed,1.5)*this._globalSpeed),this._globalSpeed=_;for(var u=0;u0&&(w=Math.min(x*w,10)/x,e.scaleAndAdd(c.position,c.position,c.force,w))}},o.applyRegionToNodeRepulsion=function(){var l=e.create();return function(c,f){if(c.node)this.applyNodeToNodeRepulsion(c.node,f,!0);else{e.sub(l,f.position,c.centerOfMass);var d=l[0]*l[0]+l[1]*l[1];if(d>this.barnesHutTheta*c.size*c.size){var h=this.scaling*f.mass*c.mass/d;e.scaleAndAdd(f.force,f.force,l,h)}else for(var v=0;v0)v=this.scaling*c.mass*f.mass/(p*p);else if(p<0)v=this.scaling*100*c.mass*f.mass;else return}else v=this.scaling*c.mass*f.mass/h;e.scaleAndAdd(c.force,c.force,l,v),e.scaleAndAdd(f.force,f.force,l,-v)}}}}(),o.applyEdgeAttraction=function(){var l=e.create();return function(c){var f=c.source,d=c.target;e.sub(l,f.position,d.position);var h=e.len(l),v;this.edgeWeightInfluence===0?v=1:this.edgeWeightInfluence===1?v=c.weight:v=Math.pow(c.weight,this.edgeWeightInfluence);var p;this.preventOverlap&&(h=h-f.size-d.size,h<=0)||(this.linLogMode?p=-v*Math.log(h+1)/(h+1):p=-v,e.scaleAndAdd(f.force,f.force,l,p),e.scaleAndAdd(d.force,d.force,l,-p))}}(),o.applyNodeGravity=function(){var l=e.create();return function(u){e.sub(l,this.gravityCenter,u.position);var c=e.len(l);e.scaleAndAdd(u.force,u.force,l,this.gravity*u.mass/(c+1))}}(),o.applyNodeStrongGravity=function(){var l=e.create();return function(u){e.sub(l,this.gravityCenter,u.position),e.scaleAndAdd(u.force,u.force,l,this.gravity*u.mass)}}(),o.updateBBox=function(){for(var l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d5e4?t.jitterTolerence=10:i>5e3?t.jitterTolerence=1:t.jitterTolerence=.1,i>100?t.scaling=2:t.scaling=10,i>1e3?t.barnesHutOptimize=!0:t.barnesHutOptimize=!1,e)for(var r in d0)e[r]!=null&&(t[r]=e[r]);if(!t.gravityCenter){for(var o=[1/0,1/0],s=[-1/0,-1/0],l=0;le};Lo.prototype.getNodePosition=function(e,t){if(t||(t=new Float32Array(this._nodes.length*2)),this._positionArr)for(var r=0;r0?1.1:.9,i=Math.max(Math.min(this._zoom*a,this.maxZoom),this.minZoom);a=i/this._zoom;var o=this._convertPos(r,n),s=(o.x-this._dx)*(a-1),l=(o.y-this._dy)*(a-1);this._dx-=s,this._dy-=l,this._zoom=i,this._needsUpdate=!0}}},dispose:function(){var e=this.zr;e.off("mousedown",this._mouseDownHandler),e.off("mousemove",this._mouseMoveHandler),e.off("mouseup",this._mouseUpHandler),e.off("mousewheel",this._mouseWheelHandler),e.off("globalout",this._mouseUpHandler),e.animation.off("frame",this._update)}});const b1t=_1t,w1t=`@export ecgl.lines2D.vertex uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; attribute vec2 position: POSITION; attribute vec4 a_Color : COLOR; varying vec4 v_Color; #ifdef POSITIONTEXTURE_ENABLED uniform sampler2D positionTexture; #endif void main() { gl_Position = worldViewProjection * vec4(position, -10.0, 1.0); v_Color = a_Color; } @end @export ecgl.lines2D.fragment uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; varying vec4 v_Color; void main() { gl_FragColor = color * v_Color; } @end @export ecgl.meshLines2D.vertex attribute vec2 position: POSITION; attribute vec2 normal; attribute float offset; attribute vec4 a_Color : COLOR; uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; uniform vec4 viewport : VIEWPORT; varying vec4 v_Color; varying float v_Miter; void main() { vec4 p2 = worldViewProjection * vec4(position + normal, -10.0, 1.0); gl_Position = worldViewProjection * vec4(position, -10.0, 1.0); p2.xy /= p2.w; gl_Position.xy /= gl_Position.w; vec2 N = normalize(p2.xy - gl_Position.xy); gl_Position.xy += N * offset / viewport.zw * 2.0; gl_Position.xy *= gl_Position.w; v_Color = a_Color; } @end @export ecgl.meshLines2D.fragment uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; varying vec4 v_Color; varying float v_Miter; void main() { gl_FragColor = color * v_Color; } @end`;var Iw=Jn.vec2;ue.Shader.import(w1t);var S1t=1;const x1t=xr.extend({type:"graphGL",__ecgl__:!0,init:function(e,t){this.groupGL=new ue.Node,this.viewGL=new an("orthographic"),this.viewGL.camera.left=this.viewGL.camera.right=0,this.viewGL.add(this.groupGL),this._pointsBuilder=new Qh(!0,t),this._forceEdgesMesh=new ue.Mesh({material:new ue.Material({shader:ue.createShader("ecgl.forceAtlas2.edges"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new ue.Geometry({attributes:{node:new ue.Geometry.Attribute("node","float",2),color:new ue.Geometry.Attribute("color","float",4,"COLOR")},dynamic:!0,mainAttribute:"node"}),renderOrder:-1,mode:ue.Mesh.LINES}),this._edgesMesh=new ue.Mesh({material:new ue.Material({shader:ue.createShader("ecgl.meshLines2D"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new eoe({useNativeLine:!1,dynamic:!0}),renderOrder:-1,culling:!1}),this._layoutId=0,this._control=new b1t({zr:t.getZr(),viewGL:this.viewGL}),this._control.setTarget(this.groupGL),this._control.init(),this._clickHandler=this._clickHandler.bind(this)},render:function(e,t,r){this.groupGL.add(this._pointsBuilder.rootNode),this._model=e,this._api=r,this._initLayout(e,t,r),this._pointsBuilder.update(e,t,r),this._forceLayoutInstance instanceof ga||this.groupGL.remove(this._forceEdgesMesh),this._updateCamera(e,r),this._control.off("update"),this._control.on("update",function(){r.dispatchAction({type:"graphGLRoam",seriesId:e.id,zoom:this._control.getZoom(),offset:this._control.getOffset()}),this._pointsBuilder.updateView(this.viewGL.camera)},this),this._control.setZoom(Sr.firstNotNull(e.get("zoom"),1)),this._control.setOffset(e.get("offset")||[0,0]);var n=this._pointsBuilder.getPointsMesh();if(n.off("mousemove",this._mousemoveHandler),n.off("mouseout",this._mouseOutHandler,this),r.getZr().off("click",this._clickHandler),this._pointsBuilder.highlightOnMouseover=!0,e.get("focusNodeAdjacency")){var a=e.get("focusNodeAdjacencyOn");a==="click"?r.getZr().on("click",this._clickHandler):a==="mouseover"&&(n.on("mousemove",this._mousemoveHandler,this),n.on("mouseout",this._mouseOutHandler,this),this._pointsBuilder.highlightOnMouseover=!1)}this._lastMouseOverDataIndex=-1},_clickHandler:function(e){if(!this._layouting){var t=this._pointsBuilder.getPointsMesh().dataIndex;t>=0?this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:t}):this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id})}},_mousemoveHandler:function(e){if(!this._layouting){var t=this._pointsBuilder.getPointsMesh().dataIndex;t>=0?t!==this._lastMouseOverDataIndex&&this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:t}):this._mouseOutHandler(e),this._lastMouseOverDataIndex=t}},_mouseOutHandler:function(e){this._layouting||(this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id}),this._lastMouseOverDataIndex=-1)},_updateForceEdgesGeometry:function(e,t){var r=this._forceEdgesMesh.geometry,n=t.getEdgeData(),a=0,i=this._forceLayoutInstance,o=n.count()*2;r.attributes.node.init(o),r.attributes.color.init(o),n.each(function(s){var l=e[s];r.attributes.node.set(a,i.getNodeUV(l.node1)),r.attributes.node.set(a+1,i.getNodeUV(l.node2));var u=Ma(n,l.dataIndex),c=ue.parseColor(u);c[3]*=Sr.firstNotNull(Ea(n,l.dataIndex),1),r.attributes.color.set(a,c),r.attributes.color.set(a+1,c),a+=2}),r.dirty()},_updateMeshLinesGeometry:function(){var t=this._model.getEdgeData(),e=this._edgesMesh.geometry,t=this._model.getEdgeData(),r=this._model.getData().getLayout("points");e.resetOffset(),e.setVertexCount(t.count()*e.getLineVertexCount()),e.setTriangleCount(t.count()*e.getLineTriangleCount());var n=[],a=[],i=["lineStyle","width"];this._originalEdgeColors=new Float32Array(t.count()*4),this._edgeIndicesMap=new Float32Array(t.count()),t.each(function(o){var s=t.graph.getEdgeByIndex(o),l=s.node1.dataIndex*2,u=s.node2.dataIndex*2;n[0]=r[l],n[1]=r[l+1],a[0]=r[u],a[1]=r[u+1];var c=Ma(t,s.dataIndex),f=ue.parseColor(c);f[3]*=Sr.firstNotNull(Ea(t,s.dataIndex),1);var d=t.getItemModel(s.dataIndex),h=Sr.firstNotNull(d.get(i),1)*this._api.getDevicePixelRatio();e.addLine(n,a,f,h);for(var v=0;v<4;v++)this._originalEdgeColors[s.dataIndex*4+v]=f[v];this._edgeIndicesMap[s.dataIndex]=o},this),e.dirty()},_updateForceNodesGeometry:function(e){for(var t=this._pointsBuilder.getPointsMesh(),r=[],n=0;n=v&&(u._syncNodePosition(e),h=0),i.getZr().refresh(),qp(function(){p(g)})})}};qp(function(){u._forceLayoutInstanceToDispose&&(u._forceLayoutInstanceToDispose.dispose(a.layer.renderer),u._forceLayoutInstanceToDispose=null),p(c)}),this._layouting=!0}}},stopLayout:function(e,t,r,n){n&&n.from!=null&&n.from!==this.uid||(this._layoutId=0,this.groupGL.remove(this._forceEdgesMesh),this.groupGL.add(this._edgesMesh),this._forceLayoutInstance&&this.viewGL.layer&&(n&&n.beforeLayout||(this._syncNodePosition(e),this._updateAfterLayout(e,t,r)),this._api.getZr().refresh(),this._layouting=!1))},_syncNodePosition:function(e){var t=this._forceLayoutInstance.getNodePosition(this.viewGL.layer.renderer);e.getData().setLayout("points",t),e.setNodePosition(t)},_updateAfterLayout:function(e,t,r){this._updateMeshLinesGeometry(),this._pointsBuilder.removePositionTexture(),this._pointsBuilder.updateLayout(e,t,r),this._pointsBuilder.updateView(this.viewGL.camera),this._pointsBuilder.updateLabels(),this._pointsBuilder.showLabels()},focusNodeAdjacency:function(e,t,r,n){var a=this._model.getData();this._downplayAll();var i=n.dataIndex,o=a.graph,s=[],l=o.getNodeByIndex(i);s.push(l),l.edges.forEach(function(c){c.dataIndex<0||(c.node1!==l&&s.push(c.node1),c.node2!==l&&s.push(c.node2))},this),this._pointsBuilder.fadeOutAll(.05),this._fadeOutEdgesAll(.05),s.forEach(function(c){this._pointsBuilder.highlight(a,c.dataIndex)},this),this._pointsBuilder.updateLabels(s.map(function(c){return c.dataIndex}));var u=[];l.edges.forEach(function(c){c.dataIndex>=0&&(this._highlightEdge(c.dataIndex),u.push(c))},this),this._focusNodes=s,this._focusEdges=u},unfocusNodeAdjacency:function(e,t,r,n){this._downplayAll(),this._pointsBuilder.fadeInAll(),this._fadeInEdgesAll(),this._pointsBuilder.updateLabels()},_highlightEdge:function(e){var t=this._model.getEdgeData().getItemModel(e),r=ue.parseColor(t.get("emphasis.lineStyle.color")||t.get("lineStyle.color")),n=Sr.firstNotNull(t.get("emphasis.lineStyle.opacity"),t.get("lineStyle.opacity"),1);r[3]*=n,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[e],r)},_downplayAll:function(){this._focusNodes&&this._focusNodes.forEach(function(e){this._pointsBuilder.downplay(this._model.getData(),e.dataIndex)},this),this._focusEdges&&this._focusEdges.forEach(function(e){this._downplayEdge(e.dataIndex)},this)},_downplayEdge:function(e){var t=this._getColor(e,[]);this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[e],t)},_setEdgeFade:function(){var e=[];return function(t,r){this._getColor(t,e),e[3]*=r,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[t],e)}}(),_getColor:function(e,t){for(var r=0;r<4;r++)t[r]=this._originalEdgeColors[e*4+r];return t},_fadeOutEdgesAll:function(e){var t=this._model.getData().graph;t.eachEdge(function(r){this._setEdgeFade(r.dataIndex,e)},this)},_fadeInEdgesAll:function(){this._fadeOutEdgesAll(1)},_updateCamera:function(e,t){this.viewGL.setViewport(0,0,t.getWidth(),t.getHeight(),t.getDevicePixelRatio());for(var r=this.viewGL.camera,n=e.getData(),a=n.getLayout("points"),i=Iw.create(1/0,1/0),o=Iw.create(-1/0,-1/0),s=[],l=0;lr.left&&cr.top)){var f=Math.max(o[0]-i[0],10),d=f/t.getWidth()*t.getHeight();f*=1.4,d*=1.4,i[0]-=f*.2,r.left=i[0],r.top=u-d/2,r.bottom=u+d/2,r.right=f+i[0],r.near=0,r.far=100}},dispose:function(){var e=this.viewGL.layer.renderer;this._forceLayoutInstance&&this._forceLayoutInstance.dispose(e),this.groupGL.removeAll(),this._layoutId=-1,this._pointsBuilder.dispose()},remove:function(){this.groupGL.removeAll(),this._control.dispose()}});function Rw(e){return e instanceof Array||(e=[e,e]),e}function A1t(e){e.registerChartView(x1t),e.registerSeriesModel(g1t),e.registerVisual(function(r){const n={};r.eachSeriesByType("graphGL",function(a){var i=a.getCategoriesData(),o=a.getData(),s={};i.each(function(l){var u=i.getName(l);s["ec-"+u]=l;var c=i.getItemModel(l),f=c.getModel("itemStyle").getItemStyle();f.fill||(f.fill=a.getColorFromPalette(u,n)),i.setItemVisual(l,"style",f);var d=["symbol","symbolSize","symbolKeepAspect"];for(let v=0;v65535?new Uint32Array(n*3):new Uint16Array(n*3))},addLine:function(e){var t=this._vertexOffset;this.attributes.position.set(t,[e[0],e[1],1]),this.attributes.position.set(t+1,[e[0],e[1],-1]),this.attributes.position.set(t+2,[e[0],e[1],2]),this.attributes.position.set(t+3,[e[0],e[1],-2]),this.setTriangleIndices(this._faceOffset++,[t,t+1,t+2]),this.setTriangleIndices(this._faceOffset++,[t+1,t+2,t+3]),this._vertexOffset+=4}});const E1t=C1t,M1t=`@export ecgl.vfParticle.particle.fragment uniform sampler2D particleTexture; uniform sampler2D spawnTexture; uniform sampler2D velocityTexture; uniform float deltaTime; uniform float elapsedTime; uniform float speedScaling : 1.0; uniform vec2 textureSize; uniform vec4 region : [0, 0, 1, 1]; uniform float firstFrameTime; varying vec2 v_Texcoord; void main() { vec4 p = texture2D(particleTexture, v_Texcoord); bool spawn = false; if (p.w <= 0.0) { p = texture2D(spawnTexture, fract(v_Texcoord + elapsedTime / 10.0)); p.w -= firstFrameTime; spawn = true; } vec2 v = texture2D(velocityTexture, fract(p.xy * region.zw + region.xy)).xy; v = (v - 0.5) * 2.0; p.z = length(v); p.xy += v * deltaTime / 10.0 * speedScaling; p.w -= deltaTime; if (spawn || p.xy != fract(p.xy)) { p.z = 0.0; } p.xy = fract(p.xy); gl_FragColor = p; } @end @export ecgl.vfParticle.renderPoints.vertex #define PI 3.1415926 attribute vec2 texcoord : TEXCOORD_0; uniform sampler2D particleTexture; uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; uniform float size : 1.0; varying float v_Mag; varying vec2 v_Uv; void main() { vec4 p = texture2D(particleTexture, texcoord); if (p.w > 0.0 && p.z > 1e-5) { gl_Position = worldViewProjection * vec4(p.xy * 2.0 - 1.0, 0.0, 1.0); } else { gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0); } v_Mag = p.z; v_Uv = p.xy; gl_PointSize = size; } @end @export ecgl.vfParticle.renderPoints.fragment uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; uniform sampler2D gradientTexture; uniform sampler2D colorTexture; uniform sampler2D spriteTexture; varying float v_Mag; varying vec2 v_Uv; void main() { gl_FragColor = color; #ifdef SPRITETEXTURE_ENABLED gl_FragColor *= texture2D(spriteTexture, gl_PointCoord); if (color.a == 0.0) { discard; } #endif #ifdef GRADIENTTEXTURE_ENABLED gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5)); #endif #ifdef COLORTEXTURE_ENABLED gl_FragColor *= texture2D(colorTexture, v_Uv); #endif } @end @export ecgl.vfParticle.renderLines.vertex #define PI 3.1415926 attribute vec3 position : POSITION; uniform sampler2D particleTexture; uniform sampler2D prevParticleTexture; uniform float size : 1.0; uniform vec4 vp: VIEWPORT; uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; varying float v_Mag; varying vec2 v_Uv; @import clay.util.rand void main() { vec4 p = texture2D(particleTexture, position.xy); vec4 p2 = texture2D(prevParticleTexture, position.xy); p.xy = p.xy * 2.0 - 1.0; p2.xy = p2.xy * 2.0 - 1.0; if (p.w > 0.0 && p.z > 1e-5) { vec2 dir = normalize(p.xy - p2.xy); vec2 norm = vec2(dir.y / vp.z, -dir.x / vp.w) * sign(position.z) * size; if (abs(position.z) == 2.0) { gl_Position = vec4(p.xy + norm, 0.0, 1.0); v_Uv = p.xy; v_Mag = p.z; } else { gl_Position = vec4(p2.xy + norm, 0.0, 1.0); v_Mag = p2.z; v_Uv = p2.xy; } gl_Position = worldViewProjection * gl_Position; } else { gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0); } } @end @export ecgl.vfParticle.renderLines.fragment uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; uniform sampler2D gradientTexture; uniform sampler2D colorTexture; varying float v_Mag; varying vec2 v_Uv; void main() { gl_FragColor = color; #ifdef GRADIENTTEXTURE_ENABLED gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5)); #endif #ifdef COLORTEXTURE_ENABLED gl_FragColor *= texture2D(colorTexture, v_Uv); #endif } @end `;nt.import(M1t);function D1t(e){var t=document.createElement("canvas");t.width=t.height=e;var r=t.getContext("2d");return r.fillStyle="#fff",r.arc(e/2,e/2,e/2,0,Math.PI*2),r.fill(),t}var cR=function(){this.motionBlurFactor=.99,this.vectorFieldTexture=new _r({type:$t.FLOAT,flipY:!1}),this.particleLife=[5,20],this._particleType="point",this._particleSize=1,this.particleColor=[1,1,1,1],this.particleSpeedScaling=1,this._thisFrameTexture=null,this._particlePass=null,this._spawnTexture=null,this._particleTexture0=null,this._particleTexture1=null,this._particlePointsMesh=null,this._surfaceFrameBuffer=null,this._elapsedTime=0,this._scene=null,this._camera=null,this._lastFrameTexture=null,this._supersampling=1,this._downsampleTextures=[],this._width=512,this._height=512,this.init()};cR.prototype={constructor:cR,init:function(){var e={type:$t.FLOAT,minFilter:$t.NEAREST,magFilter:$t.NEAREST,useMipmap:!1};this._spawnTexture=new _r(e),this._particleTexture0=new _r(e),this._particleTexture1=new _r(e),this._frameBuffer=new Ua({depthBuffer:!1}),this._particlePass=new sa({fragment:nt.source("ecgl.vfParticle.particle.fragment")}),this._particlePass.setUniform("velocityTexture",this.vectorFieldTexture),this._particlePass.setUniform("spawnTexture",this._spawnTexture),this._downsamplePass=new sa({fragment:nt.source("clay.compositor.downsample")});var t=new dh({renderOrder:10,material:new as({shader:new nt(nt.source("ecgl.vfParticle.renderPoints.vertex"),nt.source("ecgl.vfParticle.renderPoints.fragment"))}),mode:dh.POINTS,geometry:new Hr({dynamic:!0,mainAttribute:"texcoord0"})}),r=new dh({renderOrder:10,material:new as({shader:new nt(nt.source("ecgl.vfParticle.renderLines.vertex"),nt.source("ecgl.vfParticle.renderLines.fragment"))}),geometry:new E1t,culling:!1}),n=new dh({material:new as({shader:new nt(nt.source("ecgl.color.vertex"),nt.source("ecgl.color.fragment"))}),geometry:new zT});n.material.enableTexture("diffuseMap"),this._particlePointsMesh=t,this._particleLinesMesh=r,this._lastFrameFullQuadMesh=n,this._camera=new Ag,this._thisFrameTexture=new _r,this._lastFrameTexture=new _r},setParticleDensity:function(e,t){for(var r=e*t,n=new Float32Array(r*4),a=0,i=this.particleLife,o=0;o0?e[e.length-1]:this._lastFrameTexture},setRegion:function(e){this._particlePass.setUniform("region",e)},resize:function(e,t){this._lastFrameTexture.width=e*this._supersampling,this._lastFrameTexture.height=t*this._supersampling,this._thisFrameTexture.width=e*this._supersampling,this._thisFrameTexture.height=t*this._supersampling,this._width=e,this._height=t},setParticleSize:function(e){var t=this._getParticleMesh();if(e<=2){t.material.disableTexture("spriteTexture"),t.material.transparent=!1;return}this._spriteTexture||(this._spriteTexture=new _r),(!this._spriteTexture.image||this._spriteTexture.image.width!==e)&&(this._spriteTexture.image=D1t(e),this._spriteTexture.dirty()),t.material.transparent=!0,t.material.enableTexture("spriteTexture"),t.material.set("spriteTexture",this._spriteTexture),this._particleSize=e},setGradientTexture:function(e){var t=this._getParticleMesh().material;t[e?"enableTexture":"disableTexture"]("gradientTexture"),t.setUniform("gradientTexture",e)},setColorTextureImage:function(e,t){var r=this._getParticleMesh().material;r.setTextureImage("colorTexture",e,t,{flipY:!0})},setParticleType:function(e){this._particleType=e},clearFrame:function(e){var t=this._frameBuffer;t.attach(this._lastFrameTexture),t.bind(e),e.gl.clear(e.gl.DEPTH_BUFFER_BIT|e.gl.COLOR_BUFFER_BIT),t.unbind(e)},setSupersampling:function(e){this._supersampling=e,this.resize(this._width,this._height)},_updateDownsampleTextures:function(e,t){for(var r=this._downsampleTextures,n=Math.max(Math.floor(Math.log(this._supersampling/t.getDevicePixelRatio())/Math.log(2)),0),a=2,i=this._width*this._supersampling,o=this._height*this._supersampling,s=0;s=359;s&&(a[0]>0&&(a[0]=0),i[0]1?(t.material.shader!==this._meshLinesShader&&t.material.attachShader(this._meshLinesShader),t.mode=ue.Mesh.TRIANGLES):(t.material.shader!==this._nativeLinesShader&&t.material.attachShader(this._nativeLinesShader),t.mode=ue.Mesh.LINES),r=r||0,n=n||a.count(),s.resetOffset();var c=0,f=0,d=[],h=[],v=[],p=[],g=[],m=.3,y=.7;function _(){h[0]=d[0]*y+p[0]*m-(d[1]-p[1])*i,h[1]=d[1]*y+p[1]*m-(p[0]-d[0])*i,v[0]=d[0]*m+p[0]*y-(d[1]-p[1])*i,v[1]=d[1]*m+p[1]*y-(p[0]-d[0])*i}if(o||i!==0)for(var w=r;w{const o=[];let s=0,l=0,u=0,c=[],f=[];const d=1-t;e.sort((p,g)=>g.value-p.value);for(let p=0;p"u"?`series${p}`:e[p].name,type:"surface",parametric:!0,wireframe:{show:!1},pieData:e[p],pieStatus:{selected:!1,hovered:!1,k:d},center:["10%","50%"]};if(typeof e[p].itemStyle<"u"){const m={};m.color=typeof e[p].itemStyle.color<"u"?e[p].itemStyle.color:i,m.opacity=typeof e[p].itemStyle.opacity<"u"?e[p].itemStyle.opacity:i,g.itemStyle=m}o.push(g)}c=[],f=[];for(let p=0;py.name===p)[0],m=PW(g.value*100,2)+"%";return`${g.name} ${m}`}},labelLine:{show:!0,lineStyle:{color:"#fff"}},label:{show:!0,position:"outside",formatter:`{b} {c} {d}%`},xAxis3D:{min:-1,max:1},yAxis3D:{min:-1,max:1},zAxis3D:{min:-1,max:1},grid3D:{show:!1,boxHeight:h,viewControl:{alpha:n,distance:r,rotateSensitivity:0,zoomSensitivity:0,panSensitivity:0,autoRotate:!1}},series:o}},B1t=(e,t,r,n,a,i)=>{const o=(e+t)/2,s=e*Math.PI*2,l=t*Math.PI*2,u=o*Math.PI*2;e===0&&t===1&&(r=!1),a=typeof a<"u"?a:1/3;const c=r?Math.cos(u)*.1:0,f=r?Math.sin(u)*.1:0,d=n?1.05:1;return{u:{min:-Math.PI,max:Math.PI*3,step:Math.PI/32},v:{min:0,max:Math.PI*2,step:Math.PI/20},x:function(h,v){return hl?c+Math.cos(l)*(1+Math.cos(v)*a)*d:c+Math.cos(h)*(1+Math.cos(v)*a)*d},y:function(h,v){return hl?f+Math.sin(l)*(1+Math.cos(v)*a)*d:f+Math.sin(h)*(1+Math.cos(v)*a)*d},z:function(h,v){return h<-Math.PI*.5?Math.sin(h):h>Math.PI*2.5?Math.sin(h)*i*.1:Math.sin(v)>0?1*i*.1:-1}}},F1t=(e,t)=>(e.sort((r,n)=>n.pieData.value-r.pieData.value),t*25/e[0].pieData.value),PW=(e,t)=>{let r=parseFloat(e);if(isNaN(r))return!1;r=Math.round(e*Math.pow(10,t))/Math.pow(10,t);let n=r.toString(),a=n.indexOf(".");for(a<0&&(a=n.length,n+=".");n.length<=a+t;)n+="0";return n};function V1t(e){return ir({url:"/api/GetCarbonOverview",method:"get",params:e})}function z1t(){return ir({url:"/api/GetCarbonFlux",method:"get"})}function H1t(e){return ir({url:"/api/GetCarbonTrend",method:"get",params:e})}function G1t(){return ir({url:"/api/GetCarbonIntensity",method:"get"})}function U1t(){return ir({url:"/api/GetSystemPurge",method:"get"})}function $1t(){return ir({url:"/api/GetCarbonNeutral",method:"get"})}function W1t(){return ir({url:"/api/ExportCarbonTrend",method:"get",responseType:"blob"})}const G1=e=>(jl("data-v-9163df22"),e=e(),Kl(),e),Y1t={class:"page m100"},j1t={class:"page-left-box"},K1t={class:"title"},X1t=G1(()=>V("span",null,"总览",-1)),Z1t={class:"titleDate"},q1t=["onClick"],Q1t={class:"margin10 box-bg",style:{display:"flex","flex-wrap":"wrap","flex-direction":"column","align-content":"space-around","justify-content":"space-evenly"}},J1t={class:""},ebt={class:"overviewValue"},tbt={class:"value"},rbt={class:"unit"},nbt=G1(()=>V("div",{class:"title margin10"},[V("span",null,"碳流图")],-1)),abt=G1(()=>V("div",{class:"margin10 box-bg",id:"energyFlow"},null,-1)),ibt={class:"title margin10"},obt=G1(()=>V("span",null,"碳排放趋势",-1)),sbt={class:"titleDate"},lbt=["onClick"],ubt=G1(()=>V("div",{id:"carbonTrends",style:{width:"100%",height:"100%"}},null,-1)),cbt=H9('
碳排放强度
各系统碳排放量统计
碳中和
',1),fbt={__name:"index",setup(e){const t=G([{name:"年"},{name:"月"}]),r=G(0),n=G([{name:"总排放量",num:83,unit:"万tCO₂"},{name:"碳抵消量",num:83,unit:"万tCO₂"},{name:"碳减排量",num:83,unit:"万tCO₂"}]);function a(A){r.value=A,y()}function i(A){o.value=A,w()}const o=G(0),s=G([{name:"月"},{name:"日"}]);function l(){W1t().then(A=>{var C=A;if(C){var M=document.createElement("a");M.download="碳排放统计报表.docx",M.style.display="none";var E=new Blob([C],{type:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"});M.href=URL.createObjectURL(E),document.body.appendChild(M),M.click(),document.body.removeChild(M)}else this.$message.error("导出异常请联系管理员")}).catch(A=>{})}function u(A){let C=[],M=[];A.forEach(L=>{C.push(L.time),M.push(L.EH)});let E=document.getElementById("carbonTrends");E.removeAttribute("_echarts_instance_");let D;D=$n(E);const P={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"18%",left:"4%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",axisLine:{show:!0,lineStyle:{color:"#557775"}},axisLabel:{textStyle:{color:"#DDFFFD",margin:40}},axisTick:{show:!1},boundaryGap:!0,data:C}],yAxis:[{type:"value",name:"单位:万tCO₂",nameTextStyle:{color:"#DDFFFD",padding:[0,10,0,0]},splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.30)"}},axisLine:{show:!1},axisLabel:{textStyle:{color:"#DDFFFD"}},axisTick:{show:!1}}],series:[{name:"碳排放量",type:"line",smooth:!0,symbolSize:0,lineStyle:{color:"#5BFAF1"},areaStyle:{color:new kr(0,0,0,1,[{offset:0,color:"rgba(91, 250, 241, 0.40)"},{offset:1,color:"rgba(91, 250, 241, 0)"}],!1),shadowColor:"rgba(53,142,215, 0.9)",shadowBlur:20},data:M}]};D.setOption(P),window.addEventListener("resize",function(){D.resize()})}const c=A=>{let C=[],M=[];A.forEach(z=>{C.push(z.time),M.push(parseInt(z.CarbonIntensity))});const E=eo({shape:{x:0,y:0},buildPath:function(z,$){const j=$.xAxisPoint,X=[$.x-7,$.y],Q=[$.x+7,$.y],se=[j[0]+7,j[1]],ee=[j[0]-7,j[1]];z.moveTo(X[0],X[1]).lineTo(Q[0],Q[1]).lineTo(se[0],se[1]).lineTo(ee[0],ee[1]).closePath(),z.stroke()}}),D=eo({shape:{x:0,y:0},buildPath:function(z,$){const j=$.xAxisPoint,X=[$.x+7,$.y],Q=[j[0]+7,j[1]],se=[j[0]+7+7,j[1]-5],ee=[$.x+7+7,$.y-5];z.moveTo(X[0],X[1]).lineTo(Q[0],Q[1]).lineTo(se[0],se[1]).lineTo(ee[0],ee[1]).closePath(),z.stroke()}}),P=eo({shape:{x:0,y:0},buildPath:function(z,$){const j=[$.x-7,$.y],X=[$.x+8,$.y],Q=[$.x+15,$.y-5],se=[$.x-2,$.y-5];z.moveTo(j[0],j[1]).lineTo(X[0],X[1]).lineTo(Q[0],Q[1]).lineTo(se[0],se[1]).closePath(),z.stroke()}});zn("CubeLeft",E),zn("CubeRight",D),zn("CubeTop",P);let L=C,I=M,O=[["rgba(0, 170, 193, 1)"],["rgba(0, 224, 255, 1)","rgba(0, 224, 255,0)"],["rgba(0, 224, 255, 1)","rgba(0, 224, 255,0)"]],R=document.getElementById("carbonIntensity");R.removeAttribute("_echarts_instance_");let B;B=$n(R);const k={tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(z,$,j){const X=z[1];return X.name+" : "+X.value}},color:"#01DDF9",legend:{icon:"rect",right:"4%",top:"3%",itemWidth:20,itemHeight:10,textStyle:{color:"rgba(221, 255, 253, 1)"},data:["单位面积碳排放强度限值"]},grid:{left:"4%",right:"5%",top:"18%",bottom:"5%",containLabel:!0},xAxis:{type:"category",data:L,axisLine:{show:!0,lineStyle:{width:1,type:"solid",color:"#557775"}},axisTick:{show:!1},axisLabel:{color:"rgba(221, 255, 253, 1)",fontSize:12,interval:0}},yAxis:{type:"value",name:"单位:万tCO₂/m²",nameTextStyle:{color:"#DDFFFD",padding:[0,0,0,27]},axisLine:{show:!1},splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.30)"}},axisTick:{show:!1},axisLabel:{fontSize:12,color:"#DDFFFD",formatter:function(z){return console.log(z,"定额"),z===Math.max(...I)/2?"{a|"+z+"}":z},rich:{a:{color:"rgba(255, 221, 0, 1)"}}}},series:[{type:"custom",name:"单位面积碳排放强度限值",renderItem:(z,$)=>{const j=$.coord([$.value(0),$.value(1)]);return{type:"group",children:[{type:"CubeLeft",shape:{api:$,xValue:$.value(0),yValue:$.value(1),x:j[0],y:j[1],xAxisPoint:$.coord([$.value(0),0])},style:{fill:new kr(0,0,0,1,[{offset:0,color:O[1][0]},{offset:1,color:O[1][1]}])}},{type:"CubeRight",shape:{api:$,xValue:$.value(0),yValue:$.value(1),x:j[0],y:j[1],xAxisPoint:$.coord([$.value(0),0])},style:{fill:new kr(0,0,0,1,[{offset:0,color:O[2][0]},{offset:1,color:O[2][1]}])}},{type:"CubeTop",shape:{api:$,xValue:$.value(0),yValue:$.value(1),x:j[0],y:j[1],xAxisPoint:$.coord([$.value(0),0])},style:{fill:new kr(0,0,0,1,[{offset:0,color:O[0][0]},{offset:1,color:O[0][0]}])}}]}},data:I},{type:"bar",label:{normal:{show:!1,position:"top",formatter:z=>z.value,fontSize:16,color:"#43C4F1",offset:[0,-5]}},itemStyle:{color:"transparent"},tooltip:{},data:I,markLine:{symbol:"none",data:[{yAxis:Math.max(...I)/2+"",lineStyle:{color:"rgba(255, 221, 0, 1)",type:"dashed",width:1},label:{show:!1,position:"end"}}]}}]};B.setOption(k),window.addEventListener("resize",function(){B.resize()})},f=A=>{let C=0,M=[],E=[];A.forEach(I=>{C+=I.CarbonEmission,M.push(I.name),E.push(I.CarbonEmission)}),console.log(C);let D=document.getElementById("carbonEmissionStatistics");D.removeAttribute("_echarts_instance_");let P;P=$n(D);let L={grid:{left:"5%",right:"5%",bottom:"-10%",top:"8%",containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"none"},formatter:function(I){return I[0].name+"
"+I[0].seriesName+Number(I[0].value.toFixed(2)).toLocaleString()+" 万tCO₂
"}},xAxis:{max:C,show:!1,type:"value"},yAxis:[{type:"category",inverse:!0,axisLabel:{padding:[0,0,10,-10],verticalAlign:"bottom",inside:!0,show:!0,textStyle:{color:"#fff",fontSize:"14"}},splitLine:{show:!1},axisTick:{show:!1},axisLine:{show:!1},data:M},{type:"category",inverse:!0,axisTick:"none",axisLine:"none",show:!0,axisLabel:{padding:[0,0,10,-10],verticalAlign:"bottom",inside:!0,textStyle:{},formatter:function(I){return"{a|"+I.toLocaleString()+"}{b|万tCO₂}"},rich:{a:{fontSize:"20",fontFamily:"D-DIN-Bold",color:"rgba(0, 255, 240, 1)",padding:[0,6,0,0]},b:{color:"#fff",fontSize:"12"}}},data:E}],series:[{name:"",type:"bar",zlevel:1,itemStyle:{color:new kr(0,0,1,0,[{offset:0,color:"rgba(29, 169, 153, 1)"},{offset:1,color:"rgba(223, 243, 240, 1)"}])},barWidth:8,data:E},{name:"背景",type:"bar",barWidth:10,barGap:"-115%",data:[C,C,C,C,C],itemStyle:{color:"rgba(5, 33, 31, 0.32)",borderColor:"rgba(4, 24, 44, 1)",borderWidth:2}}]};P.setOption(L),window.addEventListener("resize",function(){P.resize()})},d=G([]),h=["rgba(27, 255, 118, 1)","rgba(1, 225, 242, 1)","rgba(0, 140, 255, 1)"],v=["rgba(0, 140, 255, 1)","rgba(1, 225, 242, 1)","rgba(27, 255, 118, 1)"],p=()=>{d.value.forEach((A,C)=>{A.itemStyle={color:h[C]},console.log(h[C]),A.label={normal:{show:!0,padding:[0,-50],offset:[0,3],formatter:["{d|{d}%}","{b|{b}}"].join(` `),rich:{b:{lineHeight:30,align:"left",fontSize:12,color:"#fff"},c:{fontSize:15,textShadowColor:"#1c90a6",textShadowOffsetX:0,textShadowOffsetY:2,textShadowBlur:5},d:{color:v[C],fontSize:18,fontWeight:600,align:"left"}}}},A.labelLine={normal:{length2:100,lineStyle:{width:1,color:v[C]}}}})},g=()=>{p();let A=document.getElementById("carbonNeutrality");A.removeAttribute("_echarts_instance_");let C;C=$n(A);let M=N1t(d.value,0,270,26,30,1);M.series.push({name:"",backgroundColor:"transparent",type:"pie",label:{opacity:1,fontSize:13,lineHeight:20},startAngle:-40,clockwise:!0,radius:["20%","60%"],center:["50%","50%"],data:d.value,itemStyle:{opacity:0}}),C.setOption(M),window.addEventListener("resize",function(){C.resize()})},m=A=>{let C=document.getElementById("energyFlow");C.removeAttribute("_echarts_instance_");let M;M=$n(C);let E=[{name:"碳",nameValue:A[0].Amount,valueUnit:"万tCO₂"},{name:"空调",nameValue:A[0].data[0].AirConditioner,valueUnit:"万tCO₂"},{name:"照明",nameValue:A[0].data[0].Lighting,valueUnit:"万tCO₂"},{name:"电梯",nameValue:A[0].data[0].Elevator,valueUnit:"万tCO₂"},{name:"其他",nameValue:A[0].data[0].Other,valueUnit:"万tCO₂"}],D=["rgba(91, 250, 241, 1)","rgba(91, 250, 241, 1)","rgba(91, 250, 241, 1)","rgba(91, 250, 241, 1)","rgba(91, 250, 241, 1)"],P=[];for(let I=0;I{if(C.code==200)n.value[0].num=C.data[0].TotalRelease,n.value[1].num=C.data[0].CarbonOffset,n.value[2].num=C.data[0].CarbonReduction;else return!1}).catch(C=>{console.log(C)})}function _(A){z1t().then(C=>{if(C.code==200)m(C.data);else return!1}).catch(C=>{console.log(C)})}function w(){let A=o.value==0?"月":"日";H1t({date:A}).then(C=>{if(C.code==200)u(C.data.slice(-10));else return!1}).catch(C=>{console.log(C)})}function x(){G1t().then(A=>{if(A.code==200)c(A.data);else return!1}).catch(A=>{console.log(A)})}function S(){U1t().then(A=>{if(A.code==200)f(A.data);else return!1}).catch(A=>{console.log(A)})}function T(A){$1t().then(C=>{if(C.code==200)console.log(C.data,"碳中和数据"),d.value=Object.keys(C.data).map((M,E)=>({name:C.data[E].name,value:Number(C.data[E].CarbonNeutral)})),g();else return!1}).catch(C=>{console.log(C)})}return xt(()=>{y(),_(),w(),x(),S(),T()}),(A,C)=>(N(),U("div",Y1t,[V("div",j1t,[V("div",K1t,[X1t,V("div",Z1t,[(N(!0),U(Be,null,ht(t.value,(M,E)=>(N(),U("div",{key:E,class:H([r.value===E?"dateAc":"date"]),onClick:D=>a(E)},me(M.name),11,q1t))),128))])]),V("div",Q1t,[(N(!0),U(Be,null,ht(n.value,(M,E)=>(N(),U("div",{class:H("overview-item"+E)},[V("span",J1t,me(M.name),1),V("p",ebt,[V("span",tbt,me(M.num),1),V("span",rbt,me(M.unit),1)])],2))),256))]),nbt,abt,V("div",ibt,[obt,V("div",sbt,[(N(!0),U(Be,null,ht(s.value,(M,E)=>(N(),U("div",{key:E,class:H([o.value===E?"dateAc":"date"]),onClick:D=>i(E)},me(M.name),11,lbt))),128))])]),V("div",{class:"margin10 box-bg"},[ubt,V("div",{class:"carbonTrendsReport",onClick:l})])]),cbt]))}},dbt=al(fbt,[["__scopeId","data-v-9163df22"]]);function hbt(){return ir({url:"/api/GetBigScreen",method:"get"})}function vbt(){return ir({url:"/api/GetOperatingState",method:"get"})}function pbt(e){return ir({url:"/api/SetScreenState",method:"get",params:e})}const E4=e=>(jl("data-v-185ab9d8"),e=e(),Kl(),e),gbt={class:"page m100"},mbt={class:"floor"},ybt=["onClick"],_bt={class:"page-left-box",style:{opacity:"0 !important"}},bbt=E4(()=>V("div",{class:"title"},[V("span",null,"设备名称")],-1)),wbt={class:"page-big-box margin10",style:{display:"flex","align-items":"center"}},Sbt={class:"alarm"},xbt={class:"name"},Abt={class:"content"},Tbt={class:"location"},Cbt={class:"time"},Ebt={class:"page-right-box"},Mbt={class:"title"},Dbt=E4(()=>V("span",null,"运行状态",-1)),Pbt={class:"control-btn"},Lbt={class:"page-big-box margin10"},Ibt={class:"runningState"},Rbt=E4(()=>V("div",{class:"tableTitle"},[V("span",null,"区域名称"),V("span",null,"状态")],-1)),Obt={class:"tableContent"},kbt={class:"control"},Nbt={key:0,class:"tooltip-text"},Bbt={key:1,class:"tooltip-text"},Fbt={key:2,class:"tooltip-text"},Vbt={__name:"index",emits:["sendVal"],setup(e,{emit:t}){const r=G([]),n=G([]),a=G([{name:"一层"},{name:"二层"},{name:"三层"}]),i=G(-1),o=t,s=(v,p)=>{v.name==="一层"?o("sendVal",10):v.name==="二层"?o("sendVal",11):v.name==="三层"&&o("sendVal",12),i.value=p};function l(){hbt().then(v=>{if(v.code==200)r.value=v.data;else return!1}).catch(v=>{console.log(v)})}function u(){vbt().then(v=>{if(v.code==200)n.value=v.data;else return!1}).catch(v=>{console.log(v)})}function c(v){return console.log(v),v=="1"?"state2":v=="2"||v=="3"?"state1":"state2"}const f=G(""),d=v=>{v.srcElement.className=="on"?(f.value="on",h("全开")):v.srcElement.className=="off"&&(f.value="off",h("全关"))};function h(v){pbt({type:v}).then(p=>{p.code==200&&(Jc({message:"设置"+v+p.msg,type:"success"}),u())})}return xt(()=>{l(),u()}),(v,p)=>(N(),U("div",gbt,[V("div",mbt,[(N(!0),U(Be,null,ht(a.value,(g,m)=>(N(),U("div",{class:H(m===i.value?"floor-select":"floor-default"),onClick:y=>s(g,m)},me(g.name),11,ybt))),256))]),V("div",_bt,[bbt,V("div",wbt,[V("div",Sbt,[(N(!0),U(Be,null,ht(r.value,(g,m)=>(N(),U("div",{class:"alarmList",key:m},[V("span",xbt,me(g.Device),1),V("div",Abt,[V("span",Tbt,"地点:"+me(g.Place),1),V("span",Cbt,"时间:"+me(g.time),1)])]))),128))])])]),V("div",Ebt,[V("div",Mbt,[Dbt,V("p",Pbt,[V("span",{class:H([f.value==="on"?"select":"","on"]),onClick:d},"全开",2),V("span",{class:H([f.value==="off"?"select":"","off"]),style:{"margin-left":"0.7rem"},onClick:d},"全关",2)])]),V("div",Lbt,[V("div",Ibt,[Rbt,V("div",Obt,[(N(!0),U(Be,null,ht(n.value,(g,m)=>(N(),U("div",{class:"tableBoby",key:m},[V("span",null,me(g.Name),1),V("span",kbt,[g.State=="1"?(N(),U("div",Nbt,"停止")):g.State=="2"||g.State=="3"?(N(),U("div",Bbt,"运行")):(N(),U("div",Fbt,"离线")),V("i",{class:H(c(g.State))},null,2)])]))),128))])])])])]))}},zbt=al(Vbt,[["__scopeId","data-v-185ab9d8"]]);function Hbt(e){return console.log(e,ir),ir({url:"/api/GetRealLoad",method:"get",params:e})}function Gbt(e){return ir({url:"/api/GetDailyElectricity",method:"get",params:e})}function Ubt(e){return ir({url:"/api/GetLoadClassification",method:"get",params:e})}function $bt(e){return ir({url:"/api/GetAirconditioningLoad",method:"get",params:e})}function Wbt(e){return ir({url:"/api/GetDisplayLoad",method:"get",params:e})}function Ybt(e){return ir({url:"/api/GetLoopRanking",method:"get",params:e})}const jbt={class:"page m100"},Kbt=H9('
实时负荷
当日累计用电量
负荷分类
空调负荷
展陈负荷
配电回路排名
',2),Xbt=[Kbt],Zbt={__name:"index",setup(e){const t=v=>new URL(v,import.meta.url).href,r=v=>{let p=document.getElementById("realTimeLoad");p.removeAttribute("_echarts_instance_");let g;g=$n(p);const m={tooltip:{trigger:"axis",axisPointer:{lineStyle:{color:"#57617B"}}},grid:{top:"18%",left:"4%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",axisLine:{show:!0,lineStyle:{color:"#557775"}},axisLabel:{textStyle:{color:"#DDFFFD",margin:40}},axisTick:{show:!1},boundaryGap:!0,data:v.map(y=>y.time)}],yAxis:[{type:"value",name:"单位:kW",nameTextStyle:{color:"#DDFFFD",align:"right",padding:[0,-10,0,0]},splitNumber:5,splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.20)"}},axisLine:{show:!1},axisLabel:{textStyle:{color:"#DDFFFD"}},axisTick:{show:!1}}],series:[{name:"实时负荷",type:"line",symbol:"circle",symbolSize:6,itemStyle:{color:"#44C558"},lineStyle:{width:2},data:v.map(y=>y.P)}]};g.setOption(m),window.addEventListener("resize",function(){g.resize()})},n=v=>{const p=eo({shape:{x:0,y:0},buildPath:function(A,C){const M=C.xAxisPoint,E=[C.x-7,C.y],D=[C.x+7,C.y],P=[M[0]+7,M[1]],L=[M[0]-7,M[1]];A.moveTo(E[0],E[1]).lineTo(D[0],D[1]).lineTo(P[0],P[1]).lineTo(L[0],L[1]).closePath(),A.stroke()}}),g=eo({shape:{x:0,y:0},buildPath:function(A,C){const M=C.xAxisPoint,E=[C.x+7,C.y],D=[M[0]+7,M[1]],P=[M[0]+7+7,M[1]-5],L=[C.x+7+7,C.y-5];A.moveTo(E[0],E[1]).lineTo(D[0],D[1]).lineTo(P[0],P[1]).lineTo(L[0],L[1]).closePath(),A.stroke()}}),m=eo({shape:{x:0,y:0},buildPath:function(A,C){const M=[C.x-7,C.y],E=[C.x+8,C.y],D=[C.x+15,C.y-5],P=[C.x-2,C.y-5];A.moveTo(M[0],M[1]).lineTo(E[0],E[1]).lineTo(D[0],D[1]).lineTo(P[0],P[1]).closePath(),A.stroke()}});zn("CubeLeft",p),zn("CubeRight",g),zn("CubeTop",m);let y=v.map(A=>A.time),_=v.map(A=>A.EH),w=[["rgba(0, 170, 193, 1)"],["rgba(0, 224, 255, 1)","rgba(0, 224, 255,0)"],["rgba(0, 224, 255, 1)","rgba(0, 224, 255,0)"]],x=document.getElementById("dailyElectricityConsumption");x.removeAttribute("_echarts_instance_");let S;S=$n(x);const T={tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(A,C,M){const E=A[1];return E.name+" : "+E.value}},grid:{left:"4%",right:"5%",top:"18%",bottom:"5%",containLabel:!0},xAxis:{type:"category",data:y,axisLine:{show:!0,lineStyle:{width:1,type:"solid",color:"#557775"}},axisTick:{show:!1},axisLabel:{color:"rgba(221, 255, 253, 1)",fontSize:12,interval:1}},yAxis:{type:"value",name:"单位:kWh",nameTextStyle:{color:"#DDFFFD",align:"right",padding:[0,-17,0,0]},axisLine:{show:!1},splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.30)"}},axisTick:{show:!1},axisLabel:{fontSize:12,color:"#DDFFFD"}},series:[{type:"custom",renderItem:(A,C)=>{const M=C.coord([C.value(0),C.value(1)]);return{type:"group",children:[{type:"CubeLeft",shape:{api:C,xValue:C.value(0),yValue:C.value(1),x:M[0],y:M[1],xAxisPoint:C.coord([C.value(0),0])},style:{fill:new kr(0,0,0,1,[{offset:0,color:w[1][0]},{offset:1,color:w[1][1]}])}},{type:"CubeRight",shape:{api:C,xValue:C.value(0),yValue:C.value(1),x:M[0],y:M[1],xAxisPoint:C.coord([C.value(0),0])},style:{fill:new kr(0,0,0,1,[{offset:0,color:w[2][0]},{offset:1,color:w[2][1]}])}},{type:"CubeTop",shape:{api:C,xValue:C.value(0),yValue:C.value(1),x:M[0],y:M[1],xAxisPoint:C.coord([C.value(0),0])},style:{fill:new kr(0,0,0,1,[{offset:0,color:w[0][0]},{offset:1,color:w[0][0]}])}}]}},data:_},{type:"bar",label:{normal:{show:!1,position:"top",formatter:A=>A.value,fontSize:16,color:"#43C4F1",offset:[0,-5]}},itemStyle:{color:"transparent"},tooltip:{},data:_}]};S.setOption(T),window.addEventListener("resize",function(){S.resize()})},a=v=>{let p=document.getElementById("airConditioningLoad");p.removeAttribute("_echarts_instance_");let g;g=$n(p);const m={tooltip:{trigger:"axis",axisPointer:{lineStyle:{color:"#57617B"}}},grid:{top:"18%",left:"4%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",axisLine:{show:!0,lineStyle:{color:"#557775"}},axisLabel:{textStyle:{color:"#DDFFFD",margin:40}},axisTick:{show:!1},boundaryGap:!0,data:v.map(y=>y.time)}],yAxis:[{type:"value",name:"单位:kW",nameTextStyle:{color:"#DDFFFD",align:"right",padding:[0,-10,0,0]},splitNumber:5,splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.30)"}},axisLine:{show:!1},axisLabel:{textStyle:{color:"#DDFFFD"}},axisTick:{show:!1}}],series:[{name:"空调负荷",type:"line",smooth:!0,symbolSize:0,itemStyle:{color:"#5BFAF1"},lineStyle:{color:"#5BFAF1"},areaStyle:{color:new kr(0,0,0,1,[{offset:0,color:"rgba(91, 250, 241, 0.40)"},{offset:1,color:"rgba(91, 250, 241, 0)"}],!1),shadowColor:"rgba(53,142,215, 0.9)",shadowBlur:20},data:v.map(y=>y.P)}]};g.setOption(m),window.addEventListener("resize",function(){g.resize()})},i=v=>{let p=document.getElementById("exhibitionLoad");p.removeAttribute("_echarts_instance_");let g;g=$n(p);const m={tooltip:{trigger:"axis",axisPointer:{lineStyle:{color:"#57617B"}}},grid:{top:"18%",left:"4%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",axisLine:{show:!0,lineStyle:{color:"#557775"}},axisLabel:{textStyle:{color:"#DDFFFD",margin:40}},axisTick:{show:!1},boundaryGap:!0,data:v.map(y=>y.time)}],yAxis:[{type:"value",name:"单位:kW",nameTextStyle:{color:"#DDFFFD",align:"right",padding:[0,-10,0,0]},splitNumber:5,splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.30)"}},axisLine:{show:!1},axisLabel:{textStyle:{color:"#DDFFFD"}},axisTick:{show:!1}}],series:[{name:"展陈负荷",type:"line",smooth:!0,symbol:"circle",symbolSize:0,itemStyle:{color:"rgba(1, 246, 139, 1)"},lineStyle:{color:"rgba(1, 246, 139, 1)"},areaStyle:{color:new kr(0,0,0,1,[{offset:0,color:"rgba(1, 246, 139, 0.7)"},{offset:1,color:"rgba(1, 246, 139, 0)"}],!1),shadowColor:"rgba(53,142,215, 0.9)",shadowBlur:20},data:v.map(y=>y.P)}]};g.setOption(m),window.addEventListener("resize",function(){g.resize()})},o=v=>{let p=0;v.forEach(x=>{p+=x.EH});let g=[],m=[];v.forEach(x=>{m.push(x.Ranking+" "+x.DeviceName),g.push(parseInt(x.EH))});let y=document.getElementById("ranking");y.removeAttribute("_echarts_instance_");let _;_=$n(y);let w={grid:{left:"5%",right:"5%",bottom:"-10%",top:"8%",containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"none"},formatter:function(x){return x[0].name+"
"+x[0].seriesName+" : "+Number(x[0].value).toLocaleString()+"kWh
"}},xAxis:{show:!1,type:"value",max:p},yAxis:[{type:"category",inverse:!0,axisLabel:{padding:[0,0,10,-10],verticalAlign:"bottom",inside:!0,show:!0,textStyle:{color:"#fff",fontSize:"14"},formatter:function(x,S){return"{a|"+x.slice(0,4)+"}{b|"+x.slice(4)+"}"},rich:{a:{width:45,fontSize:"16",fontFamily:"title",backgroundColor:{image:t("../../assets/images/rank-bg.png")},b:{fontSize:"14"}}}},splitLine:{show:!1},axisTick:{show:!1},axisLine:{show:!1},data:m.slice(0,5)},{type:"category",inverse:!0,axisTick:"none",axisLine:"none",show:!0,axisLabel:{padding:[0,0,10,-10],verticalAlign:"bottom",inside:!0,textStyle:{},formatter:function(x){return"{a|"+x.toLocaleString()+"}{b|kWh}"},rich:{a:{fontSize:"20",color:"rgba(0, 255, 240, 1)",padding:[0,6,0,0],fontFamily:"D-DIN-Bold"},b:{color:"#fff",fontSize:"12"}}},data:g.slice(0,5)}],series:[{name:"用电量",type:"bar",zlevel:1,itemStyle:{color:new kr(0,0,1,0,[{offset:0,color:"rgba(29, 169, 153, 1)"},{offset:1,color:"rgba(223, 243, 240, 1)"}])},barWidth:8,data:g.slice(0,5)},{name:"背景",type:"bar",barWidth:10,barGap:"-115%",data:[p,p,p,p,p],itemStyle:{borderColor:"rgba(4, 24, 44, 1)",borderWidth:2,color:"rgba(5, 33, 31, 0.32)"}}]};_.setOption(w),window.addEventListener("resize",function(){_.resize()})},s=v=>{let p="kW";v[0].Amount>1e3?p="万kW":v[0].Amount>1e7&&(p="亿kW"),v[0].Amount>1e3?v[0].Amount=(v[0].Amount/1e4).toFixed(2):v[0].Amount>1e7&&(v[0].Amount=(v[0].Amount/1e8).toFixed(2));for(var g=v[0].list.map(A=>({name:A.type,value:A.P})),m=0,y=0;y{Hbt().then(v=>{r(v.data.slice(-10))})},u=()=>{Gbt().then(v=>{n(v.data.slice(-10))})},c=()=>{Ubt().then(v=>{s(v.data)})},f=()=>{$bt().then(v=>{a(v.data.slice(-10))})},d=()=>{Wbt().then(v=>{i(v.data.slice(-10))})},h=()=>{Ybt().then(v=>{o(v.data)})};return xt(()=>{l(),u(),f(),d(),h(),c()}),Xl(()=>{}),(v,p)=>(N(),U("div",jbt,Xbt))}};const U1=e=>(jl("data-v-44cb99c7"),e=e(),Kl(),e),qbt={class:"container"},Qbt=U1(()=>V("div",{class:"bg-border"},null,-1)),Jbt=U1(()=>V("div",{class:"header"},null,-1)),ewt=U1(()=>V("div",{class:"left-mask"},null,-1)),twt=U1(()=>V("div",{class:"right-mask"},null,-1)),rwt=U1(()=>V("div",{class:"bottom-mask"},null,-1)),nwt={class:"date"},awt={class:"m10"},iwt={class:"m10"},owt={class:"menu"},swt=["onClick"],lwt={__name:"index",setup(e){const t=G(""),r=G(""),n=G(""),a=G(0),i=()=>{t.value=vt().format("YYYY年MM月DD日"),r.value=vt().format("dddd"),n.value=vt().format("HH:mm:ss")};i(),a.value=setInterval(()=>{i()},1e3);const o=G([{text:"总览",name:yr(DH),default:jr.overview,select:jr.overviewselect},{text:"用能监测",name:yr(Zbt),default:jr.energy,select:jr.energyselect},{text:"能效",name:yr(Zdt),default:jr.energyefficiency,select:jr.energyefficiencyselect},{text:"排水",name:yr(yht),default:jr.drainage,select:jr.drainageselect},{text:"空调",name:yr(Ovt),default:jr.airconditioning,select:jr.airconditioningselect},{text:"照明",name:yr(Vpt),default:jr.lighting,select:jr.lightingselect},{text:"碳排放",name:yr(dbt),default:jr.carbon,select:jr.carbonselect},{text:"显示屏",name:yr(zbt),default:jr.screen,select:jr.screenselect}]),s=G(0),l=G(""),u=(p,g)=>{f.value=p==null?void 0:p.name,s.value=g,p.text==="总览"||p.text==="用能监测"||p.text==="能效"||p.text==="碳排放"?l.value.contentWindow.unity3D(1):p.text==="排水"?l.value.contentWindow.unity3D(2):p.text==="空调"?l.value.contentWindow.unity3D(3):p.text==="照明"?l.value.contentWindow.unity3D(4):p.text=="显示屏"&&l.value.contentWindow.unity3D(9)},c=p=>{l.value.contentWindow.unity3D(p)},f=yr(DH),d=()=>{l.value.contentWindow.closeLight()},h=G("4");function v(p){console.log(p,"室外温度"),h.value=p}return xt(()=>{}),(p,g)=>(N(),U("div",qbt,[Qbt,V("iframe",{id:"iframe",ref_key:"dome",ref:l,width:"100%",height:"100%",src:"ChangDaobuild/index.html",frameborder:"0"},null,512),Jbt,ewt,twt,rwt,V("div",nwt,[V("p",null,[V("span",awt,me(t.value),1),V("span",iwt,me(r.value),1),V("span",null,me(n.value),1)]),V("p",null,[V("span",null,me(h.value)+"℃",1)])]),V("div",owt,[V("ul",null,[(N(!0),U(Be,null,ht(o.value,(m,y)=>(N(),U("li",{class:H("menu-icon"+y),style:Xe(s.value===y?"background-image:url("+m.select+")":"background-image:url("+m.default+")"),onClick:_=>u(m,y),key:"icon"+y},null,14,swt))),128))])]),(N(),he(Ft(f.value),{key:f.value,onGetHeart:v,onSendVal:c,onCloseBox:d,onCloseAir:g[0]||(g[0]=m=>l.value.contentWindow.closeStrategy())},null,32))]))}},uwt=al(lwt,[["__scopeId","data-v-44cb99c7"]]),cwt={__name:"App",setup(e){return(t,r)=>(N(),he(uwt))}};/*! * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT */const up=typeof window<"u";function fwt(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const cn=Object.assign;function LD(e,t){const r={};for(const n in t){const a=t[n];r[n]=rl(a)?a.map(e):e(a)}return r}const h0=()=>{},rl=Array.isArray,dwt=/\/$/,hwt=e=>e.replace(dwt,"");function ID(e,t,r="/"){let n,a={},i="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(n=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),a=e(i)),s>-1&&(n=n||t.slice(0,s),o=t.slice(s,t.length)),n=mwt(n??t,r),{fullPath:n+(i&&"?")+i+o,path:n,query:a,hash:o}}function vwt(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function LW(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function pwt(e,t,r){const n=t.matched.length-1,a=r.matched.length-1;return n>-1&&n===a&&Dg(t.matched[n],r.matched[a])&&toe(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Dg(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function toe(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!gwt(e[r],t[r]))return!1;return!0}function gwt(e,t){return rl(e)?IW(e,t):rl(t)?IW(t,e):e===t}function IW(e,t){return rl(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function mwt(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),a=n[n.length-1];(a===".."||a===".")&&n.push("");let i=r.length-1,o,s;for(o=0;o1&&i--;else break;return r.slice(0,i).join("/")+"/"+n.slice(o-(o===n.length?1:0)).join("/")}var G_;(function(e){e.pop="pop",e.push="push"})(G_||(G_={}));var v0;(function(e){e.back="back",e.forward="forward",e.unknown=""})(v0||(v0={}));function ywt(e){if(!e)if(up){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),hwt(e)}const _wt=/^[^#]+#/;function bwt(e,t){return e.replace(_wt,"#")+t}function wwt(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const jT=()=>({left:window.pageXOffset,top:window.pageYOffset});function Swt(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),a=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!a)return;t=wwt(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function RW(e,t){return(history.state?history.state.position-t:-1)+e}const dR=new Map;function xwt(e,t){dR.set(e,t)}function Awt(e){const t=dR.get(e);return dR.delete(e),t}let Twt=()=>location.protocol+"//"+location.host;function roe(e,t){const{pathname:r,search:n,hash:a}=t,i=e.indexOf("#");if(i>-1){let s=a.includes(e.slice(i))?e.slice(i).length:1,l=a.slice(s);return l[0]!=="/"&&(l="/"+l),LW(l,"")}return LW(r,e)+n+a}function Cwt(e,t,r,n){let a=[],i=[],o=null;const s=({state:d})=>{const h=roe(e,location),v=r.value,p=t.value;let g=0;if(d){if(r.value=h,t.value=d,o&&o===v){o=null;return}g=p?d.position-p.position:0}else n(h);a.forEach(m=>{m(r.value,v,{delta:g,type:G_.pop,direction:g?g>0?v0.forward:v0.back:v0.unknown})})};function l(){o=r.value}function u(d){a.push(d);const h=()=>{const v=a.indexOf(d);v>-1&&a.splice(v,1)};return i.push(h),h}function c(){const{history:d}=window;d.state&&d.replaceState(cn({},d.state,{scroll:jT()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function OW(e,t,r,n=!1,a=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:a?jT():null}}function Ewt(e){const{history:t,location:r}=window,n={value:roe(e,r)},a={value:t.state};a.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=e.indexOf("#"),d=f>-1?(r.host&&document.querySelector("base")?e:e.slice(f))+l:Twt()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),a.value=u}catch(h){console.error(h),r[c?"replace":"assign"](d)}}function o(l,u){const c=cn({},t.state,OW(a.value.back,l,a.value.forward,!0),u,{position:a.value.position});i(l,c,!0),n.value=l}function s(l,u){const c=cn({},a.value,t.state,{forward:l,scroll:jT()});i(c.current,c,!0);const f=cn({},OW(n.value,l,null),{position:c.position+1},u);i(l,f,!1),n.value=l}return{location:n,state:a,push:s,replace:o}}function Mwt(e){e=ywt(e);const t=Ewt(e),r=Cwt(e,t.state,t.location,t.replace);function n(i,o=!0){o||r.pauseListeners(),history.go(i)}const a=cn({location:"",base:e,go:n,createHref:bwt.bind(null,e)},t,r);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function Dwt(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Mwt(e)}function Pwt(e){return typeof e=="string"||e&&typeof e=="object"}function noe(e){return typeof e=="string"||typeof e=="symbol"}const Dc={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},aoe=Symbol("");var kW;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(kW||(kW={}));function Pg(e,t){return cn(new Error,{type:e,[aoe]:!0},t)}function fu(e,t){return e instanceof Error&&aoe in e&&(t==null||!!(e.type&t))}const NW="[^/]+?",Lwt={sensitive:!1,strict:!1,start:!0,end:!0},Iwt=/[.+*?^${}()[\]/\\]/g;function Rwt(e,t){const r=cn({},Lwt,t),n=[];let a=r.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[90];r.strict&&!u.length&&(a+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function kwt(e,t){let r=0;const n=e.score,a=t.score;for(;r0&&t[t.length-1]<0}const Nwt={type:0,value:""},Bwt=/[a-zA-Z0-9_]/;function Fwt(e){if(!e)return[[]];if(e==="/")return[[Nwt]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${r})/"${u}": ${h}`)}let r=0,n=r;const a=[];let i;function o(){i&&a.push(i),i=[]}let s=0,l,u="",c="";function f(){u&&(r===0?i.push({type:0,value:u}):r===1||r===2||r===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;s{o(y)}:h0}function o(c){if(noe(c)){const f=n.get(c);f&&(n.delete(c),r.splice(r.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=r.indexOf(c);f>-1&&(r.splice(f,1),c.record.name&&n.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return r}function l(c){let f=0;for(;f=0&&(c.record.path!==r[f].record.path||!ioe(c,r[f]));)f++;r.splice(f,0,c),c.record.name&&!VW(c)&&n.set(c.record.name,c)}function u(c,f){let d,h={},v,p;if("name"in c&&c.name){if(d=n.get(c.name),!d)throw Pg(1,{location:c});p=d.record.name,h=cn(FW(f.params,d.keys.filter(y=>!y.optional).map(y=>y.name)),c.params&&FW(c.params,d.keys.map(y=>y.name))),v=d.stringify(h)}else if("path"in c)v=c.path,d=r.find(y=>y.re.test(v)),d&&(h=d.parse(v),p=d.record.name);else{if(d=f.name?n.get(f.name):r.find(y=>y.re.test(f.path)),!d)throw Pg(1,{location:c,currentLocation:f});p=d.record.name,h=cn({},f.params,c.params),v=d.stringify(h)}const g=[];let m=d;for(;m;)g.unshift(m.record),m=m.parent;return{name:p,path:v,params:h,matched:g,meta:Uwt(g)}}return e.forEach(c=>i(c)),{addRoute:i,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:a}}function FW(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function Hwt(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Gwt(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Gwt(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function VW(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Uwt(e){return e.reduce((t,r)=>cn(t,r.meta),{})}function zW(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function ioe(e,t){return t.children.some(r=>r===e||ioe(e,r))}const ooe=/#/g,$wt=/&/g,Wwt=/\//g,Ywt=/=/g,jwt=/\?/g,soe=/\+/g,Kwt=/%5B/g,Xwt=/%5D/g,loe=/%5E/g,Zwt=/%60/g,uoe=/%7B/g,qwt=/%7C/g,coe=/%7D/g,Qwt=/%20/g;function M4(e){return encodeURI(""+e).replace(qwt,"|").replace(Kwt,"[").replace(Xwt,"]")}function Jwt(e){return M4(e).replace(uoe,"{").replace(coe,"}").replace(loe,"^")}function hR(e){return M4(e).replace(soe,"%2B").replace(Qwt,"+").replace(ooe,"%23").replace($wt,"%26").replace(Zwt,"`").replace(uoe,"{").replace(coe,"}").replace(loe,"^")}function eSt(e){return hR(e).replace(Ywt,"%3D")}function tSt(e){return M4(e).replace(ooe,"%23").replace(jwt,"%3F")}function rSt(e){return e==null?"":tSt(e).replace(Wwt,"%2F")}function N2(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function nSt(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;ai&&hR(i)):[n&&hR(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+r,i!=null&&(t+="="+i))})}return t}function aSt(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=rl(n)?n.map(a=>a==null?null:""+a):n==null?n:""+n)}return t}const iSt=Symbol(""),GW=Symbol(""),D4=Symbol(""),foe=Symbol(""),vR=Symbol("");function fy(){let e=[];function t(n){return e.push(n),()=>{const a=e.indexOf(n);a>-1&&e.splice(a,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Vc(e,t,r,n,a){const i=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return()=>new Promise((o,s)=>{const l=f=>{f===!1?s(Pg(4,{from:r,to:t})):f instanceof Error?s(f):Pwt(f)?s(Pg(2,{from:t,to:f})):(i&&n.enterCallbacks[a]===i&&typeof f=="function"&&i.push(f),o())},u=e.call(n&&n.instances[a],t,r,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(f=>s(f))})}function RD(e,t,r,n){const a=[];for(const i of e)for(const o in i.components){let s=i.components[o];if(!(t!=="beforeRouteEnter"&&!i.instances[o]))if(oSt(s)){const u=(s.__vccOpts||s)[t];u&&a.push(Vc(u,r,n,i,o))}else{let l=s();a.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));const c=fwt(u)?u.default:u;i.components[o]=c;const d=(c.__vccOpts||c)[t];return d&&Vc(d,r,n,i,o)()}))}}return a}function oSt(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function UW(e){const t=Ye(D4),r=Ye(foe),n=F(()=>t.resolve(b(e.to))),a=F(()=>{const{matched:l}=n.value,{length:u}=l,c=l[u-1],f=r.matched;if(!c||!f.length)return-1;const d=f.findIndex(Dg.bind(null,c));if(d>-1)return d;const h=$W(l[u-2]);return u>1&&$W(c)===h&&f[f.length-1].path!==h?f.findIndex(Dg.bind(null,l[u-2])):d}),i=F(()=>a.value>-1&&cSt(r.params,n.value.params)),o=F(()=>a.value>-1&&a.value===r.matched.length-1&&toe(r.params,n.value.params));function s(l={}){return uSt(l)?t[b(e.replace)?"replace":"push"](b(e.to)).catch(h0):Promise.resolve()}return{route:n,href:F(()=>n.value.href),isActive:i,isExactActive:o,navigate:s}}const sSt=te({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:UW,setup(e,{slots:t}){const r=Ar(UW(e)),{options:n}=Ye(D4),a=F(()=>({[WW(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[WW(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const i=t.default&&t.default(r);return e.custom?i:et("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},i)}}}),lSt=sSt;function uSt(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function cSt(e,t){for(const r in t){const n=t[r],a=e[r];if(typeof n=="string"){if(n!==a)return!1}else if(!rl(a)||a.length!==n.length||n.some((i,o)=>i!==a[o]))return!1}return!0}function $W(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const WW=(e,t,r)=>e??t??r,fSt=te({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Ye(vR),a=F(()=>e.route||n.value),i=Ye(GW,0),o=F(()=>{let u=b(i);const{matched:c}=a.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=F(()=>a.value.matched[o.value]);Wt(GW,F(()=>o.value+1)),Wt(iSt,s),Wt(vR,a);const l=G();return Ae(()=>[l.value,s.value,e.name],([u,c,f],[d,h,v])=>{c&&(c.instances[f]=u,h&&h!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!Dg(c,h)||!d)&&(c.enterCallbacks[f]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=a.value,c=e.name,f=s.value,d=f&&f.components[c];if(!d)return YW(r.default,{Component:d,route:u});const h=f.props[c],v=h?h===!0?u.params:typeof h=="function"?h(u):h:null,g=et(d,cn({},v,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return YW(r.default,{Component:g,route:u})||g}}});function YW(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const dSt=fSt;function hSt(e){const t=zwt(e.routes,e),r=e.parseQuery||nSt,n=e.stringifyQuery||HW,a=e.history,i=fy(),o=fy(),s=fy(),l=yr(Dc);let u=Dc;up&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=LD.bind(null,K=>""+K),f=LD.bind(null,rSt),d=LD.bind(null,N2);function h(K,Z){let ne,re;return noe(K)?(ne=t.getRecordMatcher(K),re=Z):re=K,t.addRoute(re,ne)}function v(K){const Z=t.getRecordMatcher(K);Z&&t.removeRoute(Z)}function p(){return t.getRoutes().map(K=>K.record)}function g(K){return!!t.getRecordMatcher(K)}function m(K,Z){if(Z=cn({},Z||l.value),typeof K=="string"){const oe=ID(r,K,Z.path),ve=t.resolve({path:oe.path},Z),_e=a.createHref(oe.fullPath);return cn(oe,ve,{params:d(ve.params),hash:N2(oe.hash),redirectedFrom:void 0,href:_e})}let ne;if("path"in K)ne=cn({},K,{path:ID(r,K.path,Z.path).path});else{const oe=cn({},K.params);for(const ve in oe)oe[ve]==null&&delete oe[ve];ne=cn({},K,{params:f(oe)}),Z.params=f(Z.params)}const re=t.resolve(ne,Z),ie=K.hash||"";re.params=c(d(re.params));const Y=vwt(n,cn({},K,{hash:Jwt(ie),path:re.path})),q=a.createHref(Y);return cn({fullPath:Y,hash:ie,query:n===HW?aSt(K.query):K.query||{}},re,{redirectedFrom:void 0,href:q})}function y(K){return typeof K=="string"?ID(r,K,l.value.path):cn({},K)}function _(K,Z){if(u!==K)return Pg(8,{from:Z,to:K})}function w(K){return T(K)}function x(K){return w(cn(y(K),{replace:!0}))}function S(K){const Z=K.matched[K.matched.length-1];if(Z&&Z.redirect){const{redirect:ne}=Z;let re=typeof ne=="function"?ne(K):ne;return typeof re=="string"&&(re=re.includes("?")||re.includes("#")?re=y(re):{path:re},re.params={}),cn({query:K.query,hash:K.hash,params:"path"in re?{}:K.params},re)}}function T(K,Z){const ne=u=m(K),re=l.value,ie=K.state,Y=K.force,q=K.replace===!0,oe=S(ne);if(oe)return T(cn(y(oe),{state:typeof oe=="object"?cn({},ie,oe.state):ie,force:Y,replace:q}),Z||ne);const ve=ne;ve.redirectedFrom=Z;let _e;return!Y&&pwt(n,re,ne)&&(_e=Pg(16,{to:ve,from:re}),$(re,re,!0,!1)),(_e?Promise.resolve(_e):M(ve,re)).catch(ge=>fu(ge)?fu(ge,2)?ge:z(ge):B(ge,ve,re)).then(ge=>{if(ge){if(fu(ge,2))return T(cn({replace:q},y(ge.to),{state:typeof ge.to=="object"?cn({},ie,ge.to.state):ie,force:Y}),Z||ve)}else ge=D(ve,re,!0,q,ie);return E(ve,re,ge),ge})}function A(K,Z){const ne=_(K,Z);return ne?Promise.reject(ne):Promise.resolve()}function C(K){const Z=Q.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(K):K()}function M(K,Z){let ne;const[re,ie,Y]=vSt(K,Z);ne=RD(re.reverse(),"beforeRouteLeave",K,Z);for(const oe of re)oe.leaveGuards.forEach(ve=>{ne.push(Vc(ve,K,Z))});const q=A.bind(null,K,Z);return ne.push(q),ee(ne).then(()=>{ne=[];for(const oe of i.list())ne.push(Vc(oe,K,Z));return ne.push(q),ee(ne)}).then(()=>{ne=RD(ie,"beforeRouteUpdate",K,Z);for(const oe of ie)oe.updateGuards.forEach(ve=>{ne.push(Vc(ve,K,Z))});return ne.push(q),ee(ne)}).then(()=>{ne=[];for(const oe of Y)if(oe.beforeEnter)if(rl(oe.beforeEnter))for(const ve of oe.beforeEnter)ne.push(Vc(ve,K,Z));else ne.push(Vc(oe.beforeEnter,K,Z));return ne.push(q),ee(ne)}).then(()=>(K.matched.forEach(oe=>oe.enterCallbacks={}),ne=RD(Y,"beforeRouteEnter",K,Z),ne.push(q),ee(ne))).then(()=>{ne=[];for(const oe of o.list())ne.push(Vc(oe,K,Z));return ne.push(q),ee(ne)}).catch(oe=>fu(oe,8)?oe:Promise.reject(oe))}function E(K,Z,ne){s.list().forEach(re=>C(()=>re(K,Z,ne)))}function D(K,Z,ne,re,ie){const Y=_(K,Z);if(Y)return Y;const q=Z===Dc,oe=up?history.state:{};ne&&(re||q?a.replace(K.fullPath,cn({scroll:q&&oe&&oe.scroll},ie)):a.push(K.fullPath,ie)),l.value=K,$(K,Z,ne,q),z()}let P;function L(){P||(P=a.listen((K,Z,ne)=>{if(!se.listening)return;const re=m(K),ie=S(re);if(ie){T(cn(ie,{replace:!0}),re).catch(h0);return}u=re;const Y=l.value;up&&xwt(RW(Y.fullPath,ne.delta),jT()),M(re,Y).catch(q=>fu(q,12)?q:fu(q,2)?(T(q.to,re).then(oe=>{fu(oe,20)&&!ne.delta&&ne.type===G_.pop&&a.go(-1,!1)}).catch(h0),Promise.reject()):(ne.delta&&a.go(-ne.delta,!1),B(q,re,Y))).then(q=>{q=q||D(re,Y,!1),q&&(ne.delta&&!fu(q,8)?a.go(-ne.delta,!1):ne.type===G_.pop&&fu(q,20)&&a.go(-1,!1)),E(re,Y,q)}).catch(h0)}))}let I=fy(),O=fy(),R;function B(K,Z,ne){z(K);const re=O.list();return re.length?re.forEach(ie=>ie(K,Z,ne)):console.error(K),Promise.reject(K)}function k(){return R&&l.value!==Dc?Promise.resolve():new Promise((K,Z)=>{I.add([K,Z])})}function z(K){return R||(R=!K,L(),I.list().forEach(([Z,ne])=>K?ne(K):Z()),I.reset()),K}function $(K,Z,ne,re){const{scrollBehavior:ie}=e;if(!up||!ie)return Promise.resolve();const Y=!ne&&Awt(RW(K.fullPath,0))||(re||!ne)&&history.state&&history.state.scroll||null;return qe().then(()=>ie(K,Z,Y)).then(q=>q&&Swt(q)).catch(q=>B(q,K,Z))}const j=K=>a.go(K);let X;const Q=new Set,se={currentRoute:l,listening:!0,addRoute:h,removeRoute:v,hasRoute:g,getRoutes:p,resolve:m,options:e,push:w,replace:x,go:j,back:()=>j(-1),forward:()=>j(1),beforeEach:i.add,beforeResolve:o.add,afterEach:s.add,onError:O.add,isReady:k,install(K){const Z=this;K.component("RouterLink",lSt),K.component("RouterView",dSt),K.config.globalProperties.$router=Z,Object.defineProperty(K.config.globalProperties,"$route",{enumerable:!0,get:()=>b(l)}),up&&!X&&l.value===Dc&&(X=!0,w(a.location).catch(ie=>{}));const ne={};for(const ie in Dc)Object.defineProperty(ne,ie,{get:()=>l.value[ie],enumerable:!0});K.provide(D4,Z),K.provide(foe,xR(ne)),K.provide(vR,l);const re=K.unmount;Q.add(K),K.unmount=function(){Q.delete(K),Q.size<1&&(u=Dc,P&&P(),P=null,l.value=Dc,X=!1,R=!1),re()}}};function ee(K){return K.reduce((Z,ne)=>Z.then(()=>C(ne)),Promise.resolve())}return se}function vSt(e,t){const r=[],n=[],a=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;oDg(u,s))?n.push(s):r.push(s));const l=e.matched[o];l&&(t.matched.find(u=>Dg(u,l))||a.push(l))}return[r,n,a]}const pSt=[],gSt=hSt({history:Dwt(),routes:pSt});/*! Element Plus v2.4.3 */var mSt={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}};vt.locale("zh-cn",{weekdays:"周日_周一_周二_周三_周四_周五_周六".split("_")});const doe=n7(cwt);doe.config.globalProperties.$echarts=BNe;doe.use(gSt).use(vdt,{locale:mSt}).mount("#app");